Problems debugging with ddd or pdb

I haven’t been able to debug yet, either with ddd or with pdb. I’m
trying this with RTP stand-alone, gcc, no cross-dev, with procnto-smp.

I compiled with gcc -g and qcc -g. Doesn’t make a difference.

After removing all accented characters in the sources, ddd can at last
open the source code.

But when I put a break point (at the 1rst executable statement in main),
and run, I get no visible sign of the breakpoint succeeding.

After run, I do get these messages:
Starting program: …
Debug server launched.
Launching on pty /dev/pty6
(gdb)

Next or Step then give me the following message “Cannot find bound of
current function”.

Status / Backtrace says:
Cannot access memory at address 0x0.
#0 0xb032c3c4 in ?? ()


With pdb, when I open a program, I get empty windows, and the cursor
changes to an up arrow, and it seems to hang.

I’ve used ddd on Linux with the same programs, works fine there. Is
there anything I have to do differently for RTP ??

You need to issue a continue command. Under qnx, the program
will be stopped at the code entry point when after the run command.

Francois Desruisseaux <Francois.Desruisseaux@opal-rt.com> wrote:

I haven’t been able to debug yet, either with ddd or with pdb. I’m
trying this with RTP stand-alone, gcc, no cross-dev, with procnto-smp.

I compiled with gcc -g and qcc -g. Doesn’t make a difference.

After removing all accented characters in the sources, ddd can at last
open the source code.

But when I put a break point (at the 1rst executable statement in main),
and run, I get no visible sign of the breakpoint succeeding.

After run, I do get these messages:
Starting program: …
Debug server launched.
Launching on pty /dev/pty6
(gdb)

Next or Step then give me the following message “Cannot find bound of
current function”.

Status / Backtrace says:
Cannot access memory at address 0x0.
#0 0xb032c3c4 in ?? ()



With pdb, when I open a program, I get empty windows, and the cursor
changes to an up arrow, and it seems to hang.

I’ve used ddd on Linux with the same programs, works fine there. Is
there anything I have to do differently for RTP ??


cburgess@qnx.com

Yep. I can step with ddd now.

Thanks

Colin Burgess wrote:

You need to issue a continue command. Under qnx, the program
will be stopped at the code entry point when after the run command.

Francois Desruisseaux <> Francois.Desruisseaux@opal-rt.com> > wrote:
I haven’t been able to debug yet, either with ddd or with pdb. I’m
trying this with RTP stand-alone, gcc, no cross-dev, with procnto-smp.

I compiled with gcc -g and qcc -g. Doesn’t make a difference.

After removing all accented characters in the sources, ddd can at last
open the source code.

But when I put a break point (at the 1rst executable statement in main),
and run, I get no visible sign of the breakpoint succeeding.

After run, I do get these messages:
Starting program: …
Debug server launched.
Launching on pty /dev/pty6
(gdb)

Next or Step then give me the following message “Cannot find bound of
current function”.

Status / Backtrace says:
Cannot access memory at address 0x0.
#0 0xb032c3c4 in ?? ()

With pdb, when I open a program, I get empty windows, and the cursor
changes to an up arrow, and it seems to hang.

I’ve used ddd on Linux with the same programs, works fine there. Is
there anything I have to do differently for RTP ??


cburgess@qnx.com

Francois Desruisseaux <Francois.Desruisseaux@opal-rt.com> wrote:

Hello,

I have just added this issue to the Knowlege Base at http://qnd.qnx.com.
You can find the solution to this issue, by searching on “ddd”.
You’ll also find the answer at the following link:

http://support.qnx.com/support/bok/solution.qnx?10137

Best Regards,

Marcin

Yep. I can step with ddd now.

Thanks

Colin Burgess wrote:

You need to issue a continue command. Under qnx, the program
will be stopped at the code entry point when after the run command.

Francois Desruisseaux <> Francois.Desruisseaux@opal-rt.com> > wrote:
I haven’t been able to debug yet, either with ddd or with pdb. I’m
trying this with RTP stand-alone, gcc, no cross-dev, with procnto-smp.

I compiled with gcc -g and qcc -g. Doesn’t make a difference.

After removing all accented characters in the sources, ddd can at last
open the source code.

But when I put a break point (at the 1rst executable statement in main),
and run, I get no visible sign of the breakpoint succeeding.

After run, I do get these messages:
Starting program: …
Debug server launched.
Launching on pty /dev/pty6
(gdb)

Next or Step then give me the following message “Cannot find bound of
current function”.

Status / Backtrace says:
Cannot access memory at address 0x0.
#0 0xb032c3c4 in ?? ()

With pdb, when I open a program, I get empty windows, and the cursor
changes to an up arrow, and it seems to hang.

I’ve used ddd on Linux with the same programs, works fine there. Is
there anything I have to do differently for RTP ??


cburgess@qnx.com

Marcin Dzieciol
Technical Support
QNX Software Systems Ltd.
Email: <marcind@qnx.com>