Skip navigation.
Home
The QNX Community Portal

View topic - Unable to debug remotely with Momentics

Page 1 of 1

Unable to debug remotely with Momentics

PostPosted: Thu Feb 19, 2015 12:43 pm
by CptanPanic
I am using QNX 6.5.0, and Momentics 4.7.0, and am unable to debug remote application. I have tried both "QConn connection" , and "Attach to remote process", but both end up with error "Cannot access memory at address 0x82533a4". GDB does work to debug on target, but would like to get the visual debugger working. Any ideas?

Re: Unable to debug remotely with Momentics

PostPosted: Thu Feb 19, 2015 6:52 pm
by denkelly
A couple of thing to check- 1) /usr/bin/pdebug must exist on target with execute perms and 2) devc-pty must be running.

Is the program C++? C++ programs can crash in constructors called BEFORE the first line in main()

Re: Unable to debug remotely with Momentics

PostPosted: Thu Feb 19, 2015 8:28 pm
by CptanPanic
So I have pdebug, and devc-pty running. I don't think it is nessarily the c++ crashing before attaching, because I get the same result when the program is running happily, and I then try to attach using momentics. Anything else I can try?

Re: Unable to debug remotely with Momentics

PostPosted: Tue Feb 24, 2015 4:16 pm
by CptanPanic
I have a little more information. I run ntox86-gdb.exe on my windows machine. If I try to load executable using "file e:\\<PATH>\\test.out" I get the error "Cannot access memory at address 0x82533a4" that Momentics was reporting. Any idea why gdb can't load my file?

Re: Unable to debug remotely with Momentics

PostPosted: Tue Feb 24, 2015 4:53 pm
by CptanPanic
Ok a little more progress. If I start gdb in the directory that the executable is in, then I can load file. Next problem is when I run I get "remote (spawn error) input/output error"