This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: displaying source files during debugging.
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Squal <pmarty at enssat dot fr>
- Cc: gdb at sources dot redhat dot com, froure at enssat dot fr
- Date: Thu, 26 Sep 2002 13:04:37 -0400
- Subject: Re: displaying source files during debugging.
- References: <3D932899.F708BD5F@enssat.fr>
Hi,
We are trying to debug program with gdb for a
m68k target. We are compiling the source files
in two executable:
- the first in aout format.
- the second in srecord format (with objcopy).
The second is download on the target and the first
is giving to gdb in order to reach the symbol table.
Our problem is that this configuration don't allow
us to display source files during debugging.
We tried to specifie the source files directorie
with the dir command but with no success.
Off the top of my head:
Is the original code compiled with -g?
Which C compiler? The problem may be that GDB doesn't recognize the
debug info being generated by the compiler.
Is gdb reporting ``no symbol information found''.
Andrew