diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-05-11 20:39:58 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-05-11 20:39:58 +0000 |
commit | 2ec466f9507c25cf9650e02971d831fb9e835c4f (patch) | |
tree | 2b19a37bdd4ec61f3adc7507accf5837c062fb51 /gdb/coffread.c | |
parent | 381323f4f85898c075fc70aa5ee607f5c08cba7e (diff) | |
download | gdb-2ec466f9507c25cf9650e02971d831fb9e835c4f.zip gdb-2ec466f9507c25cf9650e02971d831fb9e835c4f.tar.gz gdb-2ec466f9507c25cf9650e02971d831fb9e835c4f.tar.bz2 |
2000-05-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* coffread.c (coff_symtab_read): In the case of C_THUMBEXT |
C_THUMBEXTFUNC | C_EXT, sec will never ever be the index for
.rodata, because cs_to_section doesn't deal with .rodata. Fix test
accordingly.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r-- | gdb/coffread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index 6f6e6cb..7b9f5af 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -969,7 +969,7 @@ coff_symtab_read (symtab_offset, nsyms, objfile) || cs->c_sclass == C_THUMBEXT) tmpaddr += ANOFFSET (objfile->section_offsets, sec); - if (sec == SECT_OFF_TEXT (objfile) || sec == SECT_OFF_RODATA (objfile)) + if (sec == SECT_OFF_TEXT (objfile)) { ms_type = cs->c_sclass == C_EXT || cs->c_sclass == C_THUMBEXTFUNC |