This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: coffread.c extension for DLLs without debugging symbols

> From: "Raoul Gough" <>
> Date: Sat, 4 Jan 2003 16:25:16 -0000
> How's this:
> 2003-01-03  Raoul Gough  <>
>  * coffread.c: Support non-debug export symbols for win32 DLLs.
>  (coff_symtab_read): call read_pe_exported_syms iff no symbols
>  found and objfile is "pe-i386" or "pei-i386".
>  (read_pe_exported_syms): New function.
>  (read_pe_section_data): New struct (temporary section info).
>  (read_pe_section_index): New function.
>  (read_pe_truncate_name): New function.
>  (get_section_vmas): New function.
>  (add_pe_exported_sym): New function.
>  (pe_get16, pe_get32, pe_as32): New functions.

This is okay, thanks.

> > 2) I wonder if this code should be ifdef'ed somehow for Windows
> since
> > it will add extra code for no gain on every COFF platform.  Of
> course,
> > how many of those are there out there?  Maybe this isn't a huge
> issue
> > after all.
> I wondered about that myself. However, wouldn't that suggest putting
> the bulk of the code somewhere like win32-nat.c?

The DJGPP port of GDB uses COFF (and doesn't support DLLs).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]