Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Cannot debug: (3 Items)
   
Cannot debug  
 I have a "[Main]: Program not found" error message that I have had a lot of trouble resolving.
  
 I am doing a Standard C Makefile. Building on the target system.
 
 I am debugging using Momentics and browsing the target file system which is connected to Windows via Samba to get at 
files.
 
 I have made certain that the QNX binary parser is the only binary parser
 enabled. 
 
 This project used to be debuggable. But wanted to debug a new application (with  a different project) and got this 
error message with the new project. 
 
 So now I had two projects all built the same and one worked and the other  didn't -- just two different applications.
 
 I hacked on the 2 project configurations to try and see what the difference  between them was. During the hacking 
around, something changed (accidentally?)  and suddenly neither of the projects were debuggable.
 
 Aftter considerable hacking at the problem, I finally arrived at this 
 conclusion:
 
 Under C/C++ Application in the main tab of the debug configuration, if I Search 
 the project for the executable file, the error message goes away. If I browse  directly to the target file system to 
find THE SAME FILE, the error message  persists and prevents debugging.
  
 What is confounding is that SOMETIMES (I don't know how) SOME versions of the project allowed me to browse directly to 
the target file system and debug just  fine.
 
OK, now I am excited! With my recent "success" fresh on my mind, I creat a new project.

I start from scratch and import the executable into the project (which seems to 
have worked by eliminating the Program Not Found message).

But now, I can no longer select the QNX GDB debugger

No matter which debugger I select, Cygwin, gdb, gdb/mi or gdbserver, I get a popup message that says "Invalid debugger 
type"


Even if I create a new project with Standard C Makefile instead of C++ as its type, I STILL can't see the QNX GDB 
Debugger and still get the same invalid debugger type error.

Suggestions?

- Frank

PS: 
 So why not just start from scratch debugging a Momentics IDE resident project?? 

 I have no choice in my case. I can't put a Momentics style project make 
 together until after I migrate the existing code (a huge body of code with a  hand-crafted Makefile that is not 
Momentics friendly). 

The toy projects  provided in the Momentics documentation ("Hello World", and various  applications of semaphores and 
MUTEXes) are interesting, but are pretty much  self-evident. Migrating an application to the world of Managed QNX Makes 
is NOT!
 
I actually tried to do this and failed. I was waste deep in changes trying to 
compile the code and never, after several days of trying, even got close to a  successful compilation. On the other hand
, the Neutrino resident Makefile was  relatively easy to modify to migrate from Linux to QNX as long as I was happy  
with the make facility resident under Neutrino (and I AM!!).

RE: Cannot debug  
The latest problem you reported is because when you create a project you
picked MinGW type not QNX type. It is not reversible, so you have to
recreate project from the scratch (I assumed that because otherwise you
would not see other debugger types for this project except QNX Debugger)

Problem with not be able to recognize executable is usually caused by
missing parser, also can be caused by the same reason as above - executable
is actually not made for neutrino. 

We have a bug report about making this binary selection in debug less strict
- have warning not error when it cannot recognize the binary.
RE: Cannot debug  
Elena:

How did I create a MinGW type? Where is that selection made? As far as I
know, I built the application projects exactly the same way in each
case.

I was also very careful to make sure the QNX binary parser was active
(and no others).

But I subsequently found that one of my debug configurations worked
fine. I duplicated it and with new projects I have built from scratch,
if I select the debug configuration I duplicated from that good
configuration, they have all worked.

I did, in fact delete the old non-working configurations and the
associated projects.

I worked with Brent Waniga and Keith O'Dell yesterday and by the time
they left I had resolved all the issues. Brent sends his regards. 

Thanks for the response. It is good to know someone is aware of the
problem and a fix is forthcoming.

Sincerely, Frank.

Frank Rudolph, Ph.D., P.E.
Embedded Systems Software Engineer
Beacon Power Corporation
65 Middlesex Road
Tyngsboro, MA 01879
phone: 978-661-2803
email: rudolph@beaconpower.com
Web: www.beaconpower.com


-----Original Message-----
From: Elena Laskavaia [mailto:elaskavaia@qnx.com] 
Sent: Friday, January 11, 2008 10:32 AM
To: momenticsgs-community
Subject: RE: Cannot debug

The latest problem you reported is because when you create a project you
picked MinGW type not QNX type. It is not reversible, so you have to
recreate project from the scratch (I assumed that because otherwise you
would not see other debugger types for this project except QNX Debugger)

Problem with not be able to recognize executable is usually caused by
missing parser, also can be caused by the same reason as above -
executable
is actually not made for neutrino. 

We have a bug report about making this binary selection in debug less
strict
- have warning not error when it cannot recognize the binary.


_______________________________________________
QNX Momentics Getting Started
http://community.qnx.com/sf/go/post4223