diff options
author | Jason Molenda <jsm@bugshack.cygnus.com> | 2000-01-06 03:07:20 +0000 |
---|---|---|
committer | Jason Molenda <jsm@bugshack.cygnus.com> | 2000-01-06 03:07:20 +0000 |
commit | 1961aa2638e1c11c166de668e780a4385b724265 (patch) | |
tree | f6ee7ff39bd6a3525560cdf62b30748be2a6f33d /gdb/dbxread.c | |
parent | 3cee212a702cfb7f44caebf7a6389e17771a3072 (diff) | |
download | gdb-1961aa2638e1c11c166de668e780a4385b724265.tar.gz |
import gdb-2000-01-05 snapshot
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 9e72314b59c..74667e4c129 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -2379,6 +2379,13 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile) function_start_offset = valu; within_function = 1; + + if (context_stack_depth > 1) + { + complain (&lbrac_unmatched_complaint, symnum); + break; + } + if (context_stack_depth > 0) { new = pop_context (); @@ -2386,9 +2393,6 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile) finish_block (new->name, &local_symbols, new->old_blocks, new->start_addr, valu, objfile); } - /* Stack must be empty now. */ - if (context_stack_depth != 0) - complain (&lbrac_unmatched_complaint, symnum); new = push_context (0, valu); new->name = define_symbol (valu, name, desc, type, objfile); |