mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 08:47:28 +00:00
* symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
while (0). That defeats the whole purpose of using do . . . while (0). * mdebugread.c (parse_partial_symbols): Don't use ?: expression as list for ADD_PSYMBOL_TO_LIST; the macro takes its address and using a ?: expression as an lvalue is not portable.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user