Re: ddd cannot find the source code
"Colin S. Miller" <[email protected]> Thu, 13 Sep 2012 20:38:40 +0100
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Organization | SunSITE.dk - Supporting Open source |
| Message-ID | <[email protected]> |
On 09/09/12 21:20, Kuo-Hsien Chang wrote: > Dear all, > > Here is my procedure to use ddd with idb. > (1) compile the code using these ifort options: -extend-source 132 -O0 -g -save-temps -fpic -Wl,-no_pie > (2) run the DDD with idb: ddd --ladebug --debugger idb my_program > > I got the messages from DDD: > The DDD GUI window showed the following messages: > GNU DDD 3.3.12 (i386-apple-darwin12.1.0), by Dorothea LIntel(R) Debugger for applications running on Intel(R) 64, Version 12.1, Build [76.205.11] > ------------------ > object file name: /Users/changks/IBIS/ibis_ted/EDG/ibis > Reading symbols from /Users/changks/IBIS/ibis_ted/EDG/ibis...done. > (idb) No file. > (idb) > No symbol "MAIN" in current context. > No source file for address MAIN. > (idb) > No symbol "MAIN_" in current context. > No source file for address MAIN_. > (idb) > No symbol "MAIN__" in current context. > No source file for address MAIN__. > (idb) > No symbol "_MAIN" in current context. > No source file for address _MAIN. > (idb) > No symbol "__MAIN" in current context. > No source file for address __MAIN. > (idb) > No symbol "the_main" in current context. > No source file for address the_main. > (idb) > No symbol "main_vxworks" in current context. > No source file for address main_vxworks. > (idb) > > I was wondering if my_program did not carry on the path of the source code. > > What is the solution? Thanks for helping me on this. > > Cheers, > Michael Assuming that ibis uses "MAIN" as the entry point (not _main as in C); symbols are case sensitive, it looks like the debug symbols weren't found. Did you link your program with -g as well as compiling it with -g ? HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.