This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: DWARF question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It's generating one compilation unit for the "main" program and another
one for a function called by that program. Both are implemented in the
same source file.
Carlos Eduardo Seo
Software Engineer
IBM Linux Technology Center
Phone: +55 19-2132-4339
T/L: 839-4339
E-Mail: eduseo@br.ibm.com
Daniel Jacobowitz wrote:
> On Wed, Sep 26, 2007 at 06:06:31PM -0300, Carlos Eduardo Seo wrote:
>> I found something strange in a binary generated from a fortran code: two
>> compilation units for the same source file. Is that allowed by the DWARF
>> specification? The binary was generated from a single source file.
>
> Yes, it happens in several cases, though I don't know why in your case.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG+tRrkuArJ/wDsWwRAizRAKC801NR6yOlitCL2YD3WK0v2zN8mgCgucXp
wrd5czl6wJv5xIrZnKJr0VU=
=TvHT
-----END PGP SIGNATURE-----