Skip to content

Instantly share code, notes, and snippets.

View SJLC's full-sized avatar

S. Lockwood-Childs SJLC

View GitHub Profile
# found gdb_strcmp at https://moythreads.com/wordpress/2015/06/25/gdb-strcmp-in-a-core-dump/
define gdb_strcmp
dont-repeat
set $result = 1
set $_i = 0
if ($arg0[0] == 0x0 && $arg1[0] != 0x0)
set $result = 0
end
if ($arg0[0] != 0x0 && $arg1[0] == 0x0)
set $result = 0