nakst / gf

A GDB frontend for Linux.
MIT License
1.78k stars 60 forks source link

GDB `define` command doesn't work #167

Open lefp opened 9 months ago

lefp commented 9 months ago

The define command breaks after I input the first line of the definition body.

https://github.com/nakst/gf/assets/70862148/0d746dc0-2082-4e8e-b7a0-2eccece4cc4c

I frequently come up with a define during debugging like

define np
> next
> print variable in a specific format

This would be a lot of hassle to pre-define in my .gdbinit before running GF, because I don't know that I want it until deep in the debugging session.

barbozafernando commented 2 months ago

@lefp Would you mind to copy/paste your gf2 layout, please?

lefp commented 2 months ago

@lefp Would you mind to copy/paste your gf2 layout, please?

layout=h(25,v(66,v(30,t(Breakpoints,Commands,CmdSearch),t(Stack,Thread)),t(Struct,Data)),h(60,v(66,Source,t(Console,Files,Exe)),v(15,t(Watch),v(70,t(Locals),t(Registers)))))