diff options
author | Fred Fish <fnf@specifix.com> | 1992-04-17 02:59:43 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-04-17 02:59:43 +0000 |
commit | 2d6d969c616d286076df1778db0d06a64f11251a (patch) | |
tree | 1cd211eb346eef7d90fcfbbb6e2ba561138f06bd /gdb/dwarfread.c | |
parent | d453b386ac60cb219f5949da95cb99d1e22ad6b9 (diff) | |
download | gdb-2d6d969c616d286076df1778db0d06a64f11251a.zip gdb-2d6d969c616d286076df1778db0d06a64f11251a.tar.gz gdb-2d6d969c616d286076df1778db0d06a64f11251a.tar.bz2 |
Fix to dwarfread.c to target pointer and target long sizes, fixes for
mapped symbol file handling, and a couple of other misc small fixes.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index 161fc78..2e52295 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -103,15 +103,15 @@ typedef unsigned int DIE_REF; /* Reference to a DIE */ /* Macros that return the sizes of various types of data in the target environment. - FIXME: They currently just return the sizes in the host environment. - They need to be able to get the right size either from the bfd or possibly - from the DWARF info. It would be nice if the DWARF producer inserted DIES - that describe the fundamental types in the target environment into the - DWARF info, similar to the way dbx stabs producers produce information - about their fundamental types. */ - -#define TARGET_FT_POINTER_SIZE(objfile) sizeof (PTR) /* FIXME */ -#define TARGET_FT_LONG_SIZE(objfile) sizeof (long) /* FIXME */ + FIXME: Currently these are just compile time constants (as they are in + other parts of gdb as well). They need to be able to get the right size + either from the bfd or possibly from the DWARF info. It would be nice if + the DWARF producer inserted DIES that describe the fundamental types in + the target environment into the DWARF info, similar to the way dbx stabs + producers produce information about their fundamental types. */ + +#define TARGET_FT_POINTER_SIZE(objfile) (TARGET_PTR_BIT / TARGET_CHAR_BIT) +#define TARGET_FT_LONG_SIZE(objfile) (TARGET_LONG_BIT / TARGET_CHAR_BIT) /* The Amiga SVR4 header file <dwarf.h> defines AT_element_list as a FORM_BLOCK2, and this is the value emitted by the AT&T compiler. |