I am quite new to ddd and gdb.
I have another cross-compiler, e.g. arm_gdb, how can set the ddd to use this arm_gdb instead of the default gdb?
Thanks in advance.
A debugger allows the user to control execution of a program, examine variables, other memory (i.e., stack space), and display program output (if any). The open source GNU Data Display Debugger (DDD) is a visual front-end to the GNU Debugger (GDB) and is widely available.
Type "gdb [filename]" where [filename] is the name of the compiled file you wish to debug (the name you type to run your program). Set the arguments. If your program runs with any command line arguments, you should input them with "set args".
To set a breakpoint in DDD, right-click on the instruction where you want to set the breakpoint, in the source window. Then, select "Set Breakpoint" from the popup menu, as shown below. The breakpoint will appear as a "stop" sign on the left of the instruction (Figure 4.2).
You need to help gdbgui out by typing main into the file browser box: and selecting the main.rs file. The source code should then appear in the browser and you can click to set breakpoints and run the program. Of course, if you want to break in some other file, you can find that in the file browser instead.
From the man page:
ddd --debugger "xdb -d directory"
so for you
ddd --debugger "arm_gdb"
To make it the default, consider using symlinks and / or shell aliases
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With