Whenever I try to debug a simple app within PhAB using gdb (invoked by
clicking the Debug button from the “Build + Run” dialog) I get nowhere. The
debugger terminal (I use the default setup “pterm gdb”) comes up and loads
the application. I type “run” and then the terminal window immediately
closes, e.g. gdb exits for some reason. I know the app is fine and runs fine
if I click the “Run” button in the “Build + Run” dialog.
Anyone got an idea what I’m doing wrong here?
Thanks,
Jay Marchetti
Pittsburgh Firmware, Inc.
Jay Marchetti <marchetti@pittsburghfirmware.com> wrote:
Hi Jay,
Whenever I try to debug a simple app within PhAB using gdb (invoked by
clicking the Debug button from the “Build + Run” dialog) I get nowhere. The
debugger terminal (I use the default setup “pterm gdb”) comes up and loads
the application. I type “run” and then the terminal window immediately
closes, e.g. gdb exits for some reason. I know the app is fine and runs fine
if I click the “Run” button in the “Build + Run” dialog.
Anyone got an idea what I’m doing wrong here?
What OS version are you using?
Did you chose debug under Version from the “Build + Run” dialog box?, Make
sure you re-generate your app, before clicking on debug button.
Regards,
Marcin
Thanks,
Jay Marchetti
Pittsburgh Firmware, Inc.
Marcin:
I have the RTP version 01/01/16 install CD-ROM. I am running the RTP App
Builder Version 2.01.
I did have Version = Debug selected and have done an Action = Clean, then
Action = Make shared to ensure I rebuilt everything. I still see gdb just
exit when I say run. Since I’m new to gdb, I then installed the ddd
front-end. Now when I click Debug, I see a GUI window source listing come
up. I click ‘Run’ and DDD gives me an error dialog that “GDB suddenly
exited”, e.g. the same basic problem exists.
Jay
“Tools Mail Account” <tools@qnx.com> wrote in message
news:a3emlp$pod$1@nntp.qnx.com…
Jay Marchetti <> marchetti@pittsburghfirmware.com> > wrote:
Hi Jay,
Whenever I try to debug a simple app within PhAB using gdb (invoked by
clicking the Debug button from the “Build + Run” dialog) I get nowhere.
The
debugger terminal (I use the default setup “pterm gdb”) comes up and
loads
the application. I type “run” and then the terminal window immediately
closes, e.g. gdb exits for some reason. I know the app is fine and runs
fine
if I click the “Run” button in the “Build + Run” dialog.
Anyone got an idea what I’m doing wrong here?
What OS version are you using?
Did you chose debug under Version from the “Build + Run” dialog box?, Make
sure you re-generate your app, before clicking on debug button.
Regards,
Marcin
Thanks,
Jay Marchetti
Pittsburgh Firmware, Inc.
Jay Marchetti <marchetti@pittsburghfirmware.com> wrote:
Marcin:
Hi Jay,
I have the RTP version 01/01/16 install CD-ROM. I am running the RTP App
Builder Version 2.01.
That explains, you have 6.0.x version where the problem existed, it was
fixed in QNX RTP 6.1.0.
Regards,
Marcin
I did have Version = Debug selected and have done an Action = Clean, then
Action = Make shared to ensure I rebuilt everything. I still see gdb just
exit when I say run. Since I’m new to gdb, I then installed the ddd
front-end. Now when I click Debug, I see a GUI window source listing come
up. I click ‘Run’ and DDD gives me an error dialog that “GDB suddenly
exited”, e.g. the same basic problem exists.
Jay
“Tools Mail Account” <> tools@qnx.com> > wrote in message
news:a3emlp$pod$> 1@nntp.qnx.com> …
Jay Marchetti <> marchetti@pittsburghfirmware.com> > wrote:
Hi Jay,
Whenever I try to debug a simple app within PhAB using gdb (invoked by
clicking the Debug button from the “Build + Run” dialog) I get nowhere.
The
debugger terminal (I use the default setup “pterm gdb”) comes up and
loads
the application. I type “run” and then the terminal window immediately
closes, e.g. gdb exits for some reason. I know the app is fine and runs
fine
if I click the “Run” button in the “Build + Run” dialog.
Anyone got an idea what I’m doing wrong here?
What OS version are you using?
Did you chose debug under Version from the “Build + Run” dialog box?, Make
sure you re-generate your app, before clicking on debug button.
Regards,
Marcin
Thanks,
Jay Marchetti
Pittsburgh Firmware, Inc.
Tools Mail Account wrote:
Jay Marchetti <> marchetti@pittsburghfirmware.com> > wrote:
Marcin:
Hi Jay,
I have the RTP version 01/01/16 install CD-ROM. I am running the RTP App
Builder Version 2.01.
That explains, you have 6.0.x version where the problem existed, it was
fixed in QNX RTP 6.1.0.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Just to let you know what the problem is (and how to work around)
gdb in 6.0.x did not use relative PATH
and therefor, it doesn’t find your application.
ie, as a workaround, add your application path (…bleh/src/gcc_ntox86/)
(export PATH=$PATH:/dir/to/phab/app/src/gcc_ntox86/ )
/Johan
ps, you really should upgrade though, lots of new stuff…
Thanks much!
“phearbear” <phearbear@spray.se> wrote in message
news:3C5D22B2.2070404@spray.se…
Tools Mail Account wrote:
Jay Marchetti <> marchetti@pittsburghfirmware.com> > wrote:
Marcin:
Hi Jay,
I have the RTP version 01/01/16 install CD-ROM. I am running the RTP App
Builder Version 2.01.
That explains, you have 6.0.x version where the problem existed, it was
fixed in QNX RTP 6.1.0.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Just to let you know what the problem is (and how to work around)
gdb in 6.0.x did not use relative PATH
and therefor, it doesn’t find your application.
ie, as a workaround, add your application path (…bleh/src/gcc_ntox86/)
(export PATH=$PATH:/dir/to/phab/app/src/gcc_ntox86/ )
/Johan
ps, you really should upgrade though, lots of new stuff…