diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-20 23:42:01 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-16 08:55:22 -0600 |
commit | edb0470b99a9f399ccb5d666173c4315f6cb02c0 (patch) | |
tree | 8a7e1590c59dd1fa72c2d85ca642157f50f8aaaa /gdb/dbxread.c | |
parent | 6cccc9a89160455aab634784c231af4590d943f3 (diff) | |
download | gdb-edb0470b99a9f399ccb5d666173c4315f6cb02c0.zip gdb-edb0470b99a9f399ccb5d666173c4315f6cb02c0.tar.gz gdb-edb0470b99a9f399ccb5d666173c4315f6cb02c0.tar.bz2 |
Use outermost_context_p in more places
This changes a few explicit checks of context_stack_depth to use
outermost_context_p instead. This simplifies some future work.
gdb/ChangeLog
2018-07-16 Tom Tromey <tom@tromey.com>
* xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
* dwarf2read.c (using_directives, new_symbol): Use
outermost_context_p.
* dbxread.c (process_one_symbol): Use outermost_context_p.
* coffread.c (coff_symtab_read): Use outermost_context_p.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 5d4b978..996da27 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -2493,7 +2493,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name, the current block. */ struct block *block; - if (context_stack_depth <= 0) + if (outermost_context_p ()) { lbrac_mismatch_complaint (symnum); break; @@ -2562,7 +2562,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name, valu += function_start_offset; - if (context_stack_depth <= 0) + if (outermost_context_p ()) { lbrac_mismatch_complaint (symnum); break; @@ -2883,7 +2883,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name, break; } - if (context_stack_depth > 0) + if (!outermost_context_p ()) { struct block *block; |