crash
crash copied to clipboard
Is this `gdb` functionality supposed to work?
I know i'm able to define macros in ~/.gdbinit
(just not interactively using define
from the crash
prompt)
hoping to have a string comparison in such a macro using $_streq
as per https://sourceware.org/gdb/onlinedocs/gdb/Convenience-Funs.html
When I have the test macro
define dotest
if $_streq("1", "1")
echo ok\n
end
end
I observe different results between gdb
and crash
(gdb) dotest
ok
vs
crash> dotest
You can't do that without a process to debug.
gdb: gdb request failed: dotest