Frank Rudolph
01/10/2008 11:48 AM
post4188
|
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!!).
|
|
|