This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Gdb does not list .S files
- From: Pierre Habraken <Pierre dot Habraken at imag dot fr>
- To: Richard dot Earnshaw at arm dot com
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 09 Sep 2002 16:22:57 +0200
- Subject: Re: Gdb does not list .S files
- Organization: Université Joseph Fourier
- References: <200209091416.g89EGZx11684@pc960.cambridge.arm.com>
Richard Earnshaw wrote:
>
> Pierre.Habraken@imag.fr said:
> > I am debugging a program compiled from C and Arm assembly language
> > source files, using the simulator (target sim) of arm-elf-gdb
> > (compiled on 23 august 2002 from cvs repository). As long as no
> > breakpoint has been declared within a given assembly language file the
> > contents of that file can NOT be listed. Is this a feature or am I
> > doing something wrong ? How can one obtain the list of ALL source
> > files, assembly language as well as C language, right after gdb has
> > been started ?
>
> If there's a problem anywhere it's in gas not in gdb. GDB doesn't know
> about your assembly files because they contain no debug information.
Ok. But I do not undestand what is the purpose of the gas option
--gdwarf2 ?...
Pierre
--
________________________________________________________________________
Pierre HABRAKEN - mailto:Pierre.Habraken@imag.fr
Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87
IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex
________________________________________________________________________