Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ddd cannot find the source code

15 views
Skip to first unread message

Kuo-Hsien Chang

unread,
Sep 9, 2012, 4:20:09 PM9/9/12
to help-gn...@gnu.org
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

Colin S. Miller

unread,
Sep 13, 2012, 3:38:40 PM9/13/12
to
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.
0 new messages