The "record goto" command scans its arguments for "begin", "start", or "end".
[deliverable/binutils-gdb.git] / gdb / symmisc.c
index 4156fc64de3a38e68590fde2b11974c90a20f823..52c934ab536313b79a35df32c35a40aca51dbc2f 100644 (file)
@@ -261,9 +261,15 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile)
                      outfile);
       fprintf_filtered (outfile, " %s", SYMBOL_LINKAGE_NAME (msymbol));
       if (section)
-       fprintf_filtered (outfile, " section %s",
-                         bfd_section_name (objfile->obfd,
-                                           section->the_bfd_section));
+       {
+         if (section->the_bfd_section != NULL)
+           fprintf_filtered (outfile, " section %s",
+                             bfd_section_name (objfile->obfd,
+                                               section->the_bfd_section));
+         else
+           fprintf_filtered (outfile, " spurious section %ld",
+                             (long) (section - objfile->sections));
+       }
       if (SYMBOL_DEMANGLED_NAME (msymbol) != NULL)
        {
          fprintf_filtered (outfile, "  %s", SYMBOL_DEMANGLED_NAME (msymbol));
This page took 0.023866 seconds and 4 git commands to generate.