Comments on: GDB strcmp in a core dump https://moythreads.com/wordpress/2015/06/25/gdb-strcmp-in-a-core-dump/ Abandon All Hope, Ye Who Read This Blog Fri, 14 Aug 2020 20:06:49 +0000 hourly 1 https://wordpress.org/?v=5.1.9 By: Sandeep https://moythreads.com/wordpress/2015/06/25/gdb-strcmp-in-a-core-dump/comment-page-1/#comment-16110 Wed, 26 Jul 2017 06:33:37 +0000 http://www.moythreads.com/wordpress/?p=286#comment-16110 Thanks!
We need this code after while loop to rule out the comparison failure for strings like “abcd” and “abcdef”

if ($arg0[$_i] != 0x0 || $arg1[$_i] != 0x0)
set $strcmp_res = 0
end

]]>
By: moy https://moythreads.com/wordpress/2015/06/25/gdb-strcmp-in-a-core-dump/comment-page-1/#comment-15968 Fri, 21 Jul 2017 20:43:38 +0000 http://www.moythreads.com/wordpress/?p=286#comment-15968 Sorry Subramanya, I have not.

]]>
By: Subramanya https://moythreads.com/wordpress/2015/06/25/gdb-strcmp-in-a-core-dump/comment-page-1/#comment-15535 Wed, 21 Jun 2017 05:49:48 +0000 http://www.moythreads.com/wordpress/?p=286#comment-15535 Hi have you written any macro which does the work of strlcpy.
If there let me know

Thanks in advance

]]>