OpenQNX :: The QNX Community Portal

Oct 07, 2008 - 12:02 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 44 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
RichardVerzijl
Post subject: slow remote debug  PostPosted: Feb 21, 2008 - 11:06 AM
New Member


Joined: Jan 23, 2008
Posts: 7

Hi,

I have Momentix 2.0 on a Windows XP machine. The target machine is a (stripped) QNX 6.3.0 machine. When I want to do remote debugging I have a slow debug-startup. This means uploading the executable is ok but then I have to wait for a couple of minutes before I reach main(). What I see is Thread[1] (running). I have noticed that at this moment pdebug is communicating with Momentix using TCP. After about 6.4 Mb to the QNX machine and about 3.5 Mb to Momentix the main() is reached and I can start debugging.
When my target machine is a complete 6.3.2 machine debugging works fine.

Does anyone know what is missing on my QNX 6.3.0 machine?

Regards,
Richard
 
 View user's profile Send private message  
Reply with quote Back to top
Colin Burgess
Post subject: Re: slow remote debug  PostPosted: Feb 21, 2008 - 04:39 PM
Guest





Sounds like you have mismatched versions - the host must be 6.3.0 too (switch
with qwincfg)

The reason this affects things is that the debugger sets a breakpoint
inside libc for detecting shared libs being loaded. If the libc.so on the
target doesn't match then it could be set in the wrong place, and often this
goes into the symbol resolution code, which will cause things to take forever
to get to main. I'm surprised you waited that long actually! :-)

Sometimes it may even cause your target program to crash!

RichardVerzijl wrote:
Quote:
Hi,

I have Momentix 2.0 on a Windows XP machine. The target machine is a
(stripped) QNX 6.3.0 machine. When I want to do remote debugging I
have a slow debug-startup. This means uploading the executable is ok
but then I have to wait for a couple of minutes before I reach
main(). What I see is Thread[1] (running). I have noticed that at
this moment pdebug is communicating with Momentix using TCP. After
about 6.4 Mb to the QNX machine and about 3.5 Mb to Momentix the
main() is reached and I can start debugging.
When my target machine is a complete 6.3.2 machine debugging works
fine.

Does anyone know what is missing on my QNX 6.3.0 machine?

Regards,
Richard


--
cburgess@qnx.com
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.