diff options
author | Jim Blandy <jimb@codesourcery.com> | 2003-09-12 22:49:25 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2003-09-12 22:49:25 +0000 |
commit | ae55c0bf3c5fb36bd7cb51ebcc1b75f4500b56cf (patch) | |
tree | 6a1b8d8fffb8a06ee5f2786f7647470b59f85855 /gdb/dbxread.c | |
parent | f05d64e4fe591b39057eb52a80ccaff196cf7568 (diff) | |
download | gdb-ae55c0bf3c5fb36bd7cb51ebcc1b75f4500b56cf.tar.gz |
* dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
symbol types are, by definition, in the .data section, so it is
correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
If there is no .data section, there should be no N_DATA or N_DATA
| N_EXT symbols.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 52cf14987d1..d0b3710c5d8 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -1409,7 +1409,7 @@ read_dbx_symtab (struct objfile *objfile) case N_DATA | N_EXT: case N_NBDATA | N_EXT: - nlist.n_value += ANOFFSET (objfile->section_offsets, data_sect_index); + nlist.n_value += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile)); goto record_it; case N_BSS: @@ -1476,7 +1476,7 @@ read_dbx_symtab (struct objfile *objfile) continue; case N_DATA: - nlist.n_value += ANOFFSET (objfile->section_offsets, data_sect_index); + nlist.n_value += ANOFFSET (objfile->section_offsets, SECT_OFF_DATA (objfile)); goto record_it; case N_UNDF | N_EXT: |