* config/sparc/tm-sun4sol2.h, dbxread.c: Rename
[deliverable/binutils-gdb.git] / gdb / partial-stab.h
index 4530bab44dc739c31f2a90697b62c7a7b08145a2..e92da5a3b704a099748ca4668eb3293d0a2a8fda 100644 (file)
@@ -511,10 +511,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #ifdef DBXREAD_ONLY
              /* Kludges for ELF/STABS with Sun ACC */
              last_function_name = namestring;
+#ifdef SOFUN_ADDRESS_MAYBE_MISSING
              /* Do not fix textlow==0 for .o or NLM files, as 0 is a legit
                 value for the bottom of the text seg in those cases. */
              if (pst && pst->textlow == 0 && !symfile_relocatable)
-               pst->textlow = CUR_SYMBOL_VALUE;
+               pst->textlow =
+                 find_stab_function_addr (namestring, pst, objfile);
+#endif
 #if 0
              if (startup_file_end == 0)
                startup_file_end = CUR_SYMBOL_VALUE;
@@ -535,10 +538,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #ifdef DBXREAD_ONLY
              /* Kludges for ELF/STABS with Sun ACC */
              last_function_name = namestring;
+#ifdef SOFUN_ADDRESS_MAYBE_MISSING
              /* Do not fix textlow==0 for .o or NLM files, as 0 is a legit
                 value for the bottom of the text seg in those cases. */
              if (pst && pst->textlow == 0 && !symfile_relocatable)
-               pst->textlow = CUR_SYMBOL_VALUE;
+               pst->textlow =
+                 find_stab_function_addr (namestring, pst, objfile);
+#endif
 #if 0
              if (startup_file_end == 0)
                startup_file_end = CUR_SYMBOL_VALUE;
This page took 0.030277 seconds and 4 git commands to generate.