From aef9c3b3f539d16ff8286c492038090d29f9aa68 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 18 Nov 2006 23:54:32 +0000 Subject: 2006-11-18 Pedro Alves * parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before dereferencing it. --- gdb/ChangeLog | 5 +++++ gdb/parse.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1ecd368..7f7ea37 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-11-18 Pedro Alves + + * parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before + dereferencing it. + 2006-11-17 Daniel Jacobowitz * utils.c (string_to_core_addr): Use error instead of diff --git a/gdb/parse.c b/gdb/parse.c index b0edaf4..5f23120 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -408,7 +408,8 @@ write_exp_msymbol (struct minimal_symbol *msymbol, write_exp_elt_opcode (OP_LONG); - if (SYMBOL_BFD_SECTION (msymbol)->flags & SEC_THREAD_LOCAL) + if (SYMBOL_BFD_SECTION (msymbol) + && SYMBOL_BFD_SECTION (msymbol)->flags & SEC_THREAD_LOCAL) { bfd *bfd = SYMBOL_BFD_SECTION (msymbol)->owner; struct objfile *ofp; -- cgit v1.1