diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-11-18 23:54:32 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-11-18 23:54:32 +0000 |
commit | aef9c3b3f539d16ff8286c492038090d29f9aa68 (patch) | |
tree | fc73f088c4cc9aa5cc5e67adddc5412ca15216e1 /gdb/parse.c | |
parent | 7f762562fef3bf6b46913539917179af4f3a8a48 (diff) | |
download | gdb-aef9c3b3f539d16ff8286c492038090d29f9aa68.zip gdb-aef9c3b3f539d16ff8286c492038090d29f9aa68.tar.gz gdb-aef9c3b3f539d16ff8286c492038090d29f9aa68.tar.bz2 |
2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
* parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before
dereferencing it.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |