diff options
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r-- | gdb/partial-stab.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index 4530bab..e92da5a 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -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; |