diff options
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; |