Re: DDD debugger problem

From: jacob navia (jacob_at_jacob.remcomp.fr)
Date: 02/03/05


Date: Thu, 03 Feb 2005 21:32:51 +0100

Ioannis Hadjichambis wrote:
> I am trying to debug my program using the DDD debugger. I have also
> downloaded a manual for the debugger but I cannot RUN my
> program in the debugger. I use the -g flag when compiling. I then write
> to the command line
> > ddd table2
> Then the debugger pops up and i press Programs->Run where it asks for
> arguments and because my program doesn't need any, I don't provide it
> with any and so I check the blank line.
>
> I always get the following:
>
> Program terminated with signal ?, Unknown signal.
> The program no longer exists.
> You can't do that without a process to debug.
> (gdb) set args
> (gdb) run
> warning: Child process unexpectedly missing: No child processes
>
> Program terminated with signal ?, Unknown signal.
> The program no longer exists.
> You can't do that without a process to debug.
> (gdb)
>
> I don't understand why.
>
> Do you have any suggestions?

Your program is dying somehow.

Do not use any gdb extensions and use gdb itself.

gdb table2
run

If this works, it means that your installation of ddd is
screwed and you should re-install it.

If it doesn't, it means that your program is linking with some
wrong shared library and your program crashes before it
reaches the main() function.

Inspect your program to see which shared objects it uses
and then try figuring out which one is faulty.

jacob



Relevant Pages

  • Re: Firewire blues
    ... I compiled a kernel with exactly the same options that you cited below. ... it entering the debugger and waiting for the remote gdb attach. ... When I try to attach from the debug machine, ...
    (freebsd-hackers)
  • Re: dde Debug message
    ... The DDE is the absolute worst debugger I have ever used. ... it is the only one that can debug MT apps on hpux 10.20 ... The other thing you can do is run the app under gdb until it SIGSERVs ... In order to understand recursion you must first understand recursion. ...
    (comp.unix.programmer)
  • Re: FreeBSD 7.0 Beta, RC, RELEASE (amd64) freezes with dummynet enabled
    ... I have some screenshots from debug console after the ... [GDB will not be able to debug user-mode threads: ... KDB: enter: manual escape to debugger ... I disabled the polling, for my suprise, the server didn`t crashed after some minutes, but after 1 hour, but crushed, maybe only a coincidence, but maybe not. ...
    (freebsd-current)
  • Re: FreeBSD 7.0 Beta, RC, RELEASE (amd64) freezes with dummynet enabled
    ... The original thread and my post with details is ... I have some screenshots from debug console after the ... [GDB will not be able to debug user-mode threads: ... KDB: enter: manual escape to debugger ...
    (freebsd-current)
  • Re: DDD debugger problem
    ... > Ioannis Hadjichambis wrote: ... >> I am trying to debug my program using the DDD debugger. ... >> (gdb) set args ...
    (comp.lang.c)