Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to configure ddd to use another gdb instead of the default one

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.

like image 741
pepero Avatar asked May 13 '11 10:05

pepero


People also ask

What is DDD GDB?

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.

How do I GDB a specific file?

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".

How do you set a breakpoint in DDD?

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).

How do you use Gdbgui?

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.


1 Answers

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

like image 97
sehe Avatar answered Sep 19 '22 09:09

sehe