* symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 10 Mar 1994 18:25:33 +0000 (18:25 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 10 Mar 1994 18:25:33 +0000 (18:25 +0000)
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.

gdb/ChangeLog
gdb/mdebugread.c

index 878d273b8fd73247609d878b9411d8ba7124ecb4..1894dadb37789cefbbca005cce06f3065c525469 100644 (file)
@@ -1,3 +1,17 @@
+Thu Mar 10 08:52:38 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * 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.
+
+       * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
+       convert a LOC_ARG to a LOC_REF_ARG.  Update code which combines
+       'p' and 'r' symbol descriptors into a single symbol to look for a
+       LOC_REF_ARG.
+       * README, config/sparc/tm-sparc.h: Update comments.
+
 Wed Mar  9 21:43:24 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
 
        * mdebugread.c (parse_type):  Do not complain for types with
index e620b0bd71d282eaad027f57483d301edda3654f..4e713222bc54dad96726fc2e6fcb0f509e91d155 100644 (file)
@@ -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)
                    {
This page took 0.034485 seconds and 4 git commands to generate.