OK, today’s lessons for me were using makefiles and enabling threads to do
port i/o. The next newbie roadblock that I have run into is with debugging
a program. Is it possible to debug a program on a self hosted system? The
literature says the only supported usage for GDB is for cross-platform
development. If it’s possible, what are the steps? Is there any hope of
doing useful (I mean real-life source line level debugging) debugging
without slapping down 2.5K for CodeWarrior? I guess if the OS works well, I
might be able to swing it later.
Thanks,
John
Sure, why not? GDB works fine on self-hosted RTP and DDD is very helpful
too.
John Bowen wrote:
OK, today’s lessons for me were using makefiles and enabling threads to do
port i/o. The next newbie roadblock that I have run into is with debugging
a program. Is it possible to debug a program on a self hosted system? The
literature says the only supported usage for GDB is for cross-platform
development. If it’s possible, what are the steps? Is there any hope of
doing useful (I mean real-life source line level debugging) debugging
without slapping down 2.5K for CodeWarrior? I guess if the OS works well, I
might be able to swing it later.
Thanks,
John
When I start a GDB session, where does the input/output go (using Photon in
a pterm window)?
Also, I have a licensed copy of QNX 4.24 with Watcom C++ 10.6. Can I use
this under NTO?
Thanks,
John
“Igor Kovalenko” <Igor.Kovalenko@motorola.com> wrote in message
news:3A4BB2DC.201354BD@motorola.com…
Sure, why not? GDB works fine on self-hosted RTP and DDD is very helpful
too.
John Bowen wrote:
OK, today’s lessons for me were using makefiles and enabling threads to
do
port i/o. The next newbie roadblock that I have run into is with
debugging
a program. Is it possible to debug a program on a self hosted system?
The
literature says the only supported usage for GDB is for cross-platform
development. If it’s possible, what are the steps? Is there any hope
of
doing useful (I mean real-life source line level debugging) debugging
without slapping down 2.5K for CodeWarrior? I guess if the OS works
well, I
might be able to swing it later.
Thanks,
John
Sure, why not? GDB works fine on self-hosted RTP and DDD is very helpful
too.
But when I try to debug my program with gdb, it display ‘cannot get bounds
of the function’. ;-(
Mike Gorchak
CJSC Malva
System Programmer
Because you forgot to type ‘cont’ command after ‘run’. Under neutrino/gdb
all programs stop before entering main(), so you have to continue them
explicitly.
“Mike Gorchak” <deflektor@crosswinds.net> wrote in message
news:92i6gp$3tb$1@inn.qnx.com…
Sure, why not? GDB works fine on self-hosted RTP and DDD is very helpful
too.
But when I try to debug my program with gdb, it display ‘cannot get bounds
of the function’. ;-(
Mike Gorchak
CJSC Malva
System Programmer
\
Hello,
Igor Kovalenko <kovalenko@home.com> wrote:
Because you forgot to type ‘cont’ command after ‘run’. Under neutrino/gdb
all programs stop before entering main(), so you have to continue them
explicitly.
For more info on how to use GDB please go to:
http://qdn.qnx.com/support/docs/index.html (free online docs).
http://qdn.qnx.com/support/docs/neutrino_qrp/dev_tools/using_gdb.html
http://qdn.qnx.com/support/docs/neutrino_qrp/dev_tools/gdb.html
Best Regards,
Marcin
“Mike Gorchak” <> deflektor@crosswinds.net> > wrote in message
news:92i6gp$3tb$> 1@inn.qnx.com> …
Sure, why not? GDB works fine on self-hosted RTP and DDD is very helpful
too.
But when I try to debug my program with gdb, it display ‘cannot get bounds
of the function’. ;-(
Mike Gorchak
CJSC Malva
System Programmer