This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Move test for null symbols further down.



Check was made too early.

2002-03-28  Michael Snyder  <msnyder@redhat.com>

	* symfile.c (symbol_file_add): Move test for null symbols to later.

Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.57
diff -c -3 -p -r1.57 symfile.c
*** symfile.c	2002/03/28 01:35:55	1.57
--- symfile.c	2002/03/29 01:08:58
*************** symbol_file_add (char *name, int from_tt
*** 861,869 ****
        syms_from_objfile (objfile, addrs, mainline, from_tty);
      }
  
-   if (objfile->sf == NULL)
-     return objfile;	/* No symbols. */
- 
    /* We now have at least a partial symbol table.  Check to see if the
       user requested that all symbols be read on initial access via either
       the gdb startup command line or on a per symbol file basis.  Expand
--- 861,866 ----
*************** symbol_file_add (char *name, int from_tt
*** 896,901 ****
--- 893,901 ----
  	  gdb_flush (gdb_stdout);
  	}
      }
+ 
+   if (objfile->sf == NULL)
+     return objfile;	/* No symbols. */
  
    new_symfile_objfile (objfile, mainline, from_tty);
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]