crash icon indicating copy to clipboard operation
crash copied to clipboard

Is this `gdb` functionality supposed to work?

Open nhed opened this issue 5 years ago • 3 comments

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

nhed avatar Feb 05 '19 01:02 nhed