Manoj Thorat(deleted)
|
Re: Not able to debug Applications over ethernet using QNX Momentics IDE.
|
Manoj Thorat(deleted)
05/14/2014 5:00 AM
post110317
|
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 .
|
|
|