From 2ec466f9507c25cf9650e02971d831fb9e835c4f Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Thu, 11 May 2000 20:39:58 +0000 Subject: [PATCH] 2000-05-11 Elena Zannoni * 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. --- gdb/ChangeLog | 7 +++++++ gdb/coffread.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b624ed3..cc58ae5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2000-05-11 Elena Zannoni + + * 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. + Thu May 11 21:33:59 2000 Andrew Cagney * gdbarch.sh (gdbarch_dump): Print the value of GDB_MULTI_ARCH. 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 -- 2.7.4