Hi @Watergard let me see if I can help
1) Yes. See https://www.gdbgui.com/guides/. You can either run gdbgui on the pi, or run gdbserver on the pi
2) You don't have to use the command line at the bottom to load a binary. If the binary exists on the machine the gdbgui server is running on, it should work. (The binary is the compiled output of the code, not the source file)
3) I am not sure what a label is, but if you are programming in C, you can do something like
&myVariable and it should give you the address.
Hi guys.. Trying gdbgui for the first.. Had a question about attaching to process... So, the way I used to do this before was:
Run my program: ~./myprogram
Attach to process: gdbtui -p <pid>
Set breakpoints "b <func>", followed by "c" to continue.
Then, I trigger something on my running program, which hits the breakpoint in gdbtui...
With gdbgui, I am not able to find "attach to process" option.
When I try running like this: gdbgui "~/.myprogram", I am unable to connect to my program to do any triggers. How do should I do this?
@Primalr3d it should be turned on by default as long as you have python support built into your gdb binary. To test this, run
Then in gdb, run
to see if Python support is on.
There is also a setting in the gdbgui settings menu to turn pretty printing on/off. Click the gear icon in to the top right.
tabkey sends the
completecommand to the prompt
groxxI realize this isn't (probably?) a general gdb room, but would anyone know if there's a way to do
rr-like recording in gdb? I know I can
recordexecution of a binary, but I'm dealing with stripped binaries and it stops every 1-10 instructions, so it'd take me years to
cenough to reach the execution points I'm interested in.
Hi, I am trying to implement some pretty printers to help me debug some programs. I have successfully been able to make them work in the console, but it seems they are not used in the local variable tree view. Is this an expected behaviour ? is there a way to make them used ?
As a side question does implementing the children hook permit to change this tree view ?
Also, I have a script that externally auto set brekpoint, ut they seems to be not recognised by gdbgui until they are reached, but first lets talk about the first question...