Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - GDB On QNX OS: (4 Items)
   
GDB On QNX OS  
Hi Team,

My host  OS is Windows and QNX OS is on QualComm Snapdragon Ride platform hardware. We are using QNX 7.1.0 SDP and SDK 
is 11.1.
We are unable to run our application through QNX Momentics IDE[We are discussing with the technical team]. 
Our application crashes when we run on QNX OS. Can we run gdb directly on QNX OS without Momentics IDE and host OS like 
how we use valgrind tool on QNX OS? 
https://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.hypervisor.user/topic/debug/gdb.html
The above page states we need to connect to QNX OS through host OS remotely. 
Whether QNX Software Centre has GDB tool like it has valgrind? So that we can copy gdb binaries to QNX OS and run 
directly?
Please someone share idea on how to do this.
Re: GDB On QNX OS  
For SDP7.1 only remote debugging is supported. To do this you run an application called pdebug on your target and you 
run gdb on your Windows host.
http://www.qnx.com/developers/docs/7.1/com.qnx.doc.neutrino.utilities/topic/p/pdebug.html
http://www.qnx.com/developers/docs/7.1/#com.qnx.doc.neutrino.utilities/topic/g/gdb.html

Re: GDB On QNX OS  
may also want to use dumper, so you can do postmortem debugging.
http://www.qnx.com/developers/docs/7.1/#com.qnx.doc.neutrino.utilities/topic/d/dumper.html
Re: GDB Native On QNX OS 7.1  
As stated above, it's not officially supported by QNX.

However, the source code is available.  My team member has recently compiled it on QNX 7.1.

We haven't gotten it to successfully run just yet.   We fixed a reported error ("working directory: not a directory"), 
but it looks like the next step is creating some initialization files to get gdb to recognize x86_64 qnx (our target) as
 a supported architecture. 

OP: have you tried compiling yourself?