Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Not able to debug Applications over ethernet using QNX Momentics IDE.: (4 Items)
   
Not able to debug Applications over ethernet using QNX Momentics IDE.  
Hi have established connection with QNX X86 target (6.6.0)

I have made sure that qconn is running on target.

I am able to see systeam infrormation in QNX Systeam Information Perspective.

I am also able to run hello_world and other sample application from IDE and can observe printf's on IDE console .

how ever I cannont debugg any application using IDE . I run QNX Momentics IDE on Ubuntu 64 bit ..

Here is the output when I try to debug.
------------------------------------------------------------------
MsgNak received - resending
Timed out.
MsgNak received - resending
Timed out.
MsgNak received - resending
Remote exhausted 3 retries.
Couldn't establish connection to remote target
Connection failed: 5.
Timed out.
MsgNak received - resending
Timed out.
MsgNak received - resending
Timed out.
MsgNak received - resending
Remote exhausted 3 retries.
----------------------------------------------------------------------

please let me know what am i missing out ??
leat me know if any more info is need in order to help me ??

Awating your response 
Best Regards ,
Manoj 



Re: Not able to debug Applications over ethernet using QNX Momentics IDE.  
I just try to run basic application to explane case : Neutrino Threads .

here is the output on console of IDE for Run As > C/C++ QNX Application :
--------------------------------------------------------------

Creating thread now.
functionA active
Thread was created.
The main thread is going on...
... as long as it hasn't used up its timeslice.
Creating another thread.
functionB is working...
Thread was created.
The main thread continues...
We are now creating two more threads...
universalthread is now running...
universalthread: localvariable 3 * parameter 12 = 36
universalthread is now running...
universalthread: localvariable 3 * parameter 59 = 177
Threads created.
Main thread now waiting for first thread to finish
universalthread: localvariable 15 * parameter 12 = 180
universalthread: localvariable 62 * parameter 59 = 3658
universalthread: localvariable 27 * parameter 12 = 324
universalthread: localvariable 121 * parameter 59 = 7139
functionA is finished.
Thread 2 completed its function!
Main thread now waiting for termination through user.
Other threads keep running in the background until
they finish or are terminated together with the main thread.
universalthread: localvariable 39 * parameter 12 = 468
universalthread: localvariable 180 * parameter 59 = 10620
functionB done.
universalthread: localvariable 51 * parameter 12 = 612
universalthread: localvariable 239 * parameter 59 = 14101
universalthread with parameter 12 finished.
universalthread with parameter 59 finished.
---------------------------------------------------------------------------------------


trying to debug:

IDE opens debug prospective .
It try's to run following gdb utility :
/opt/qnx660/host/linux/x86/usr/bin/ntox86-gdb

here is output on console :
--------------------------------------------------------
MsgNak received - resending
Timed out.
MsgNak received - resending
Timed out.
Couldn't establish connection to remote target
MsgNak received - resending
Remote exhausted 3 retries.
Connection failed: 5.
Timed out.
MsgNak received - resending
Timed out.
MsgNak received - resending
Timed out.
MsgNak received - resending
Remote exhausted 3 retries.
----------------------------------------------------------

also i get popup error message :

Error in final launch sequence
Failed to execute MI command:
attach 139282
Error message from debugger back end:
Don't know how to attach.  Try "help target".
Don't know how to attach.  Try "help target".



I also tried to achieve this using command line but ended up in same problem : here is the steps i followed
---------------------------------------------------------------
root@Pipit:/opt/qnx660# source qnx660-env.sh
root@Pipit:/opt/qnx660# cd host/linux/x86/usr/bin/
root@Pipit:/opt/qnx660/host/linux/x86/usr/bin# ./ntox86-gdb
GNU gdb (GDB) 7.6.1 qnx (rev. 863)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=i486-pc-nto-qnx6.6.0".
(gdb) target qnx 10.73.73.157:8000
Remote debugging using 10.73.73.157:8000
MsgNak received - resending
Timed out.
MsgNak received - resending
Timed out.
MsgNak received - resending
Remote exhausted 3 retries.
Couldn't establish connection to remote target
Connection failed: 5.
--------------------------------------------------------

Please let me know if any more details required .


Best Regards .
Attachment: Image Screenshot from 2014-05-14 13:54:43.png 242 KB
Re: Not able to debug Applications over ethernet using QNX Momentics IDE.  
For me worked, in
debug configuration
-> C/C++ QNX QConn
-> Main

 in the very bottom i changed "Using DFS Debugging Framework (new) Launcher"
to "Using CDI Debugging Framework (Traditional) Launcher"
Attachment: PDF drawing.pdf 885.8 KB
Re: Not able to debug Applications over ethernet using QNX Momentics IDE.  
Hi,

I am using IDE 7.0. But faced the issue when debugging QNX application using Ethernet. But I don't have options for 
selecting DFS Debugging Framework  or CDI Debugging Framework 
.
Thanks and regards 
Devendra
Attachment: Image No option for Using CDI Debugging Framework (Traditional) Launcher.png 199.09 KB Image error attach.png 193.82 KB