aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index e620b0b..4e71322 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -2375,12 +2375,17 @@ parse_partial_symbols (objfile, section_offsets)
still able to find the PROGRAM name via the partial
symbol table, and the MAIN__ symbol via the minimal
symbol table. */
- ADD_PSYMBOL_TO_LIST (name, strlen (name),
- VAR_NAMESPACE, LOC_BLOCK,
- (sh.st == stProc)
- ? objfile->global_psymbols
- : objfile->static_psymbols,
- sh.value, psymtab_language, objfile);
+ if (sh.st == stProc)
+ ADD_PSYMBOL_TO_LIST (name, strlen (name),
+ VAR_NAMESPACE, LOC_BLOCK,
+ objfile->global_psymbols,
+ sh.value, psymtab_language, objfile);
+ else
+ ADD_PSYMBOL_TO_LIST (name, strlen (name),
+ VAR_NAMESPACE, LOC_BLOCK,
+ objfile->static_psymbols,
+ sh.value, psymtab_language, objfile);
+
/* Skip over procedure to next one. */
if (sh.index >= hdr->iauxMax)
{