Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Cannot debug generated "Hello world" CDT 4.0, Debian Lenny, x86_64
Cannot debug generated "Hello world" CDT 4.0, Debian Lenny, x86_64 [message #197316] Mon, 16 July 2007 04:53 Go to next message
Eclipse UserFriend
Hi,

I have generated a "Hello World" application by using the wizard in CDT
4.0, I can build the application and it runs (it prints "!!!Hello
World!!!").

However, I cannot run it with the debugger. Creating debug run
configuration (Run->Open Debug Dialog->C/C++ Local Application, new
application and than Debug) first shows a messagebox with the title
"gdb/mi" plus a timestamp) and the message "Error stopping at main.
Reason Target request failed: Parsing Error. Continue?". Selecting "yes"
shows a messagebox:

Execution is suspended because of error.
No executable file specified.
Use the "file" or "exec-file" command.

and the console output says:

No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
No executable file specified.
Use the "file" or "exec-file" command.
kill
The program is not being run

I have no idea what to do. Can anyone tell me how I can debug a application?

Additional:
- I have verified that the file exists.
- I have tried all debuggers (can anyone tell me which debugger is to be
used when?) and with and without stopping in main. It made no
difference: I could not debug.
- g++ --version: g++ (GCC) 4.1.3 20070601 (prerelease) (Debian 4.1.2-12)
- gdb --version: GNU gdb 6.4.90-debian


TIA

Joost
Re: Cannot debug generated "Hello world" CDT 4.0, Debian Lenny, x86_64 [message #197368 is a reply to message #197316] Mon, 16 July 2007 09:50 Go to previous messageGo to next message
Eclipse UserFriend
In addition to my previous mail, running gdb from the commandprompt
shows this output:

panoramix:~/Programming/C++/CDTTest/Debug$ gdb CDTTest
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...BFD:
/home/jkr/Programming/C++/CDTTest/Debug/CDTTest: don't know how to
handle OS specific section `.gnu.hash' [0x6ffffff6]
"/home/jkr/Programming/C++/CDTTest/Debug/CDTTest": not in executable
format: File format not recognized


Does this say anything to anyone?

TIA

Joost
Re: Cannot debug generated "Hello world" CDT 4.0, Debian Lenny, x86_64 [message #197438 is a reply to message #197368] Mon, 16 July 2007 10:45 Go to previous message
Eclipse UserFriend
To answer my own question: it's a known problem:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425838

Joost
Previous Topic:Indexing of preprocessor symbol definitions
Next Topic:Seeing std::string values while debugging
Goto Forum:
  


Current Time: Fri Sep 19 06:45:31 EDT 2025

Powered by FUDForum. Page generated in 0.04575 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top