DDD problem

Hi,
I am trying to use DDD debugger tool on my QNX RTP 6.0.1.
However, I am having problems.

First, I compiled the sample source code with gcc -g test.c.
And then did
ddd a.out


DDD will launch fine and I can see the source code in DDD source window.
However, when I try to set the breakpoint to a line by placing the cursur to
the left on the line and click the breakpoint icon, it doesn’t work…

First of all, the Argument field doesn’t contain the current location, like
( test.c: 10)
Secondly, I get the message in the debugger console like following:

GNU DDD 3.2.1 ( x8 6-pc-nto-qnx) ,by Dorothea L (gdb) greak
No default breakpoint address now.

Third, in another terminal ( For instance, ttyp2:ddd), I see repeated
number of warning messages.

Warning:

Name: arg
Class: XmTextField
Character ‘\61’ not supported in font. Discarded. ( Where ‘\61’
could be different number for each warning.
Seems like this warning keeps showing as long as my DDD is open.

I am not sure if these are all related, but I cannot proceed to use DDD at
all.
Please tell me what I should do.

Thank you,
Eri

Eri Makimura <emakimura@aus.telusa.com> wrote:

Hi,
I am trying to use DDD debugger tool on my QNX RTP 6.0.1.
However, I am having problems.

First, I compiled the sample source code with gcc -g test.c.
And then did
ddd a.out



DDD will launch fine and I can see the source code in DDD source window.
However, when I try to set the breakpoint to a line by placing the cursur to
the left on the line and click the breakpoint icon, it doesn’t work…

Try right clicking on the line number and select ‘set breakpoint’. You could
also type ‘break main’ or 'break ’ into the console.

First of all, the Argument field doesn’t contain the current location, like
( test.c: 10)
Secondly, I get the message in the debugger console like following:

GNU DDD 3.2.1 ( x8 6-pc-nto-qnx) ,by Dorothea L (gdb) greak
No default breakpoint address now.

Third, in another terminal ( For instance, ttyp2:ddd), I see repeated
number of warning messages.

Warning:

Name: arg
Class: XmTextField
Character ‘\61’ not supported in font. Discarded. ( Where ‘\61’
could be different number for each warning.
Seems like this warning keeps showing as long as my DDD is open.

These are benign X warnings. You can get rid of them by selecting “suppress
X warnings” in the preferences dialog. Don’t forget to save options. Another
tip: there seems to be a problem with the X-server that causes the buttons to
not work in the command tool. If you look in the preferences under the
“Source” tab, you can set the location to be in the main window rather than
in the command tool.

I am not sure if these are all related, but I cannot proceed to use DDD at
all.
Please tell me what I should do.

Thank you,
Eri

cheers,


Kris Warkentin
kewarken@qnx.com
(613)591-0836 x9368
“Computer science is no more about computers than astronomy is about telescopes”
–E.W.Dijkstra

Try issuing a ‘run’ command in the console before doing anything else.
The QNX version of gdb doesn’t automatically load the new process.

Note that ‘run’ doesn’t cause the program to continue executing, it
just loads the process. Issue a ‘continue’ to start program execution.

Eri Makimura <emakimura@aus.telusa.com> wrote:

Hi,
I am trying to use DDD debugger tool on my QNX RTP 6.0.1.
However, I am having problems.

First, I compiled the sample source code with gcc -g test.c.
And then did
ddd a.out



DDD will launch fine and I can see the source code in DDD source window.
However, when I try to set the breakpoint to a line by placing the cursur to
the left on the line and click the breakpoint icon, it doesn’t work…

First of all, the Argument field doesn’t contain the current location, like
( test.c: 10)
Secondly, I get the message in the debugger console like following:

GNU DDD 3.2.1 ( x8 6-pc-nto-qnx) ,by Dorothea L (gdb) greak
No default breakpoint address now.

Third, in another terminal ( For instance, ttyp2:ddd), I see repeated
number of warning messages.

Warning:

Name: arg
Class: XmTextField
Character ‘\61’ not supported in font. Discarded. ( Where ‘\61’
could be different number for each warning.
Seems like this warning keeps showing as long as my DDD is open.

I am not sure if these are all related, but I cannot proceed to use DDD at
all.
Please tell me what I should do.

Thank you,
Eri




cburgess@qnx.com