Questions tagged [ddd-debugger]

Data Display Debugger (DDD). A GUI based front-end for command line debuggers. Distributed under the GNU GPL license.

The Data Display Debugger has GUI front-end features such as code browsing, data display and interactive graphic displays. DDD is primarily used on Unix based systems.

91 questions
2
votes
1 answer

python debugger pdb doesn't show command when typing (only shows dots in place of chars)

I was using the pdb debugger in the google colab https://colab.research.google.com/. I was able to set a breakpoint at a line using pdb.set_trace(), but when the debugger stops there and I type-in the next command, it hides the typed characters in…
Joe Black
  • 625
  • 6
  • 19
2
votes
2 answers

DDD - Partial source file

I am using DDD to debug a program with many files and I am able to successfully set breakpoints and step through C source code. Sometimes, with larger source files, I find that when I try to step into a function that is located near the end of the…
2
votes
2 answers

gdb equivalent to java eclipse "drop to frame"

In Eclipse and Java, there is a debugging feature that allows you to drop back to any point in the current call stack. So, pause the thread then choose any line in the call stack and say "Drop to Frame." That will position the debugger to start of…
jcalfee314
  • 4,642
  • 8
  • 43
  • 75
2
votes
2 answers

DDD debugger: save A command history between sessions

I noticed that my command history remains only during the current session, and once I re-start ddd, say with the same process, it starts with a clean slate. Is there way I can force the latest history to persist/reload. I couldn't find any relevant…
vehomzzz
  • 42,832
  • 72
  • 186
  • 216
2
votes
3 answers

ddd gets inactive when mouse is moved out of its window

My ddd window doesn't take any keyboard input when my mouse cursor is moved out of the window. Although ddd window is still active, but it doesn't take any inputs. I will have to move my mouse over its window to make it work again. Is there a way to…
Smash
  • 839
  • 1
  • 9
  • 10
2
votes
0 answers

Can one configure gdb/ddd to never step into certain functions?

Possible Duplicate: Preventing GDB from stepping into a function (or file) I have some infrastructure C++ code (containers, memory managers etc.) and I want the debugger to never step into those methods while debugging an application issue. I…
Jeroen Dirks
  • 7,705
  • 12
  • 50
  • 70
2
votes
2 answers

How can I debug a program using scanf with ddd?

When ddd encounters a scanf statement, it displays "Waiting until GDB gets ready" message. The debugging activity stops here. Please guide me of overcoming this bug. I'm using an amd64 athlon processor.
Joshi
  • 61
  • 1
  • 4
2
votes
2 answers

Interpreting eFlags in DDD

I am attempting to learn how to write and understand x86 Assembly as well as how to use GDB and related tools effectively. To do this, I am using DDD as a front-end for GDB. I am having trouble understanding what the condition flags (eflags?) are…
BlackVegetable
  • 12,594
  • 8
  • 50
  • 82
1
vote
1 answer

How can I debug or analyze qemu code while running linux on the qemu virtual machine?

I can run ubuntu 20.04 on a virtual machine (here ab21q) like this. The disk drive0 already has ubuntu installed on it(ab21q-ubuntu-20.04-image.img). qemu-system-aarch64 -nographic -machine ab21q,gic-version=max -m 512M -cpu max -smp 4 -netdev…
Chan Kim
  • 5,177
  • 12
  • 57
  • 112
1
vote
1 answer

How to start GDB for C++ called from Python?

I need to debug a C++ function that is called from Python code. How to start GDB (or better DDD) in such a way that it debugs the C++ code called from a given Python command line? The given Python command line is: python3 -m…
porton
  • 5,214
  • 11
  • 47
  • 95
1
vote
1 answer

jtag debugging on avr with avr-gdb and ddd

I try to debug with jtag on an AVR 8 bit microcontroller. avarice --jtag /dev/ttyUSB0 :4444 ddd lcd --debugger avr-gdb in the session I do: target remote localhost:4444 break main Breakpoint 1 at 0x244: file lcd_test.cpp, line 254. cont Now…
Klaus
  • 24,205
  • 7
  • 58
  • 113
1
vote
0 answers

Assembly x86 with global main - mov doesn't change variable values

So, I'm trying to just write the logic and make working code, but when I went to run my code to check what I have so far, all the variables were their initialized values. I went as far as to make the first two executed lines just me putting a number…
zapshe
  • 228
  • 1
  • 8
1
vote
1 answer

how to disable all breakpoints at once in DDD debugger (pydb mode)

Using gdb, we can disable breakpoints as explained on ftp://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_32.html. On the document, to disalbe all the breakpoints it says to give just disalbe without the breakpoint list. But in my…
Chan Kim
  • 5,177
  • 12
  • 57
  • 112
1
vote
2 answers

GDB / DDD no symbol in current context

I found an old solution to this problem that suggested compiling with -gdwarf-2, but this solution does not or no longer work for me. So, running ddd on a compiled file and then double clicking variables always results in the error no symbol
lo tolmencre
  • 3,804
  • 3
  • 30
  • 60
1
vote
1 answer

DDD doesn't show the code anymore

I'm writing a C program. During "code & fix" phase I use DDD (gdb UI) to debug. I compile with gcc -g and invoke ddd with ddd ./a.out DDD has worked well until, suddenly, when I invoke it, the code doesn't appear anymore. All I visualize is the…
Bobby
  • 187
  • 1
  • 11