aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-01-30 07:28:03 +0000
committerJeff Law <law@redhat.com>1994-01-30 07:28:03 +0000
commitd64956faaf563b18d45b550c643c7a3442899581 (patch)
treeb60feecb928348a9be2b0d538c6d5e0c1a0ec783
parent3a479851ff70446bd7ef968ee5ffabc0aa61a73e (diff)
downloadgdb-d64956faaf563b18d45b550c643c7a3442899581.zip
gdb-d64956faaf563b18d45b550c643c7a3442899581.tar.gz
gdb-d64956faaf563b18d45b550c643c7a3442899581.tar.bz2
* paread.c (read_unwind_info)
* paread.c (pa_symtab_read): Update the "check_strange_names" filter to match GCC's current output. Filter out section symbols (which the HP linker sometimes puts in the wrong place).
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/paread.c26
2 files changed, 21 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b885102..fffe0ad 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+Sat Jan 29 23:25:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
+
+ * paread.c (read_unwind_info): Fix typo.
+
+ * paread.c (pa_symtab_read): Update the "check_strange_names"
+ filter to match GCC's current output. Filter out section symbols
+ (which the HP linker sometimes puts in the wrong place).
+
Sat Jan 29 07:44:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
* serial.h (SERIAL_SET_TTY_STATE): Comment return value.
diff --git a/gdb/paread.c b/gdb/paread.c
index 3c4755d..1afe3b5 100644
--- a/gdb/paread.c
+++ b/gdb/paread.c
@@ -190,18 +190,18 @@ pa_symtab_read (abfd, addr, objfile)
#endif
check_strange_names:
- /* GAS leaves labels in .o files after assembling. At
- least labels starting with "LS$", "LBB$", "LBE$",
- "LC$", and "L$" can happen. This should be fixed in
- the assembler and/or compiler, to save space in the
- executable (and because having GDB make gross
- distinctions based on the name is kind of ugly), but
- until then, just ignore them. ("L$" at least, has something
- to do with getting relocation correct, so that one might
- be hard to fix). */
- if (*symname == 'L'
- && (symname[1] == '$' || symname[2] == '$'
- || symname[3] == '$'))
+ /* Utah GCC 2.5, FSF GCC 2.6 and later generate correct local
+ label prefixes for stabs, constant data, etc. So we need
+ only filter out L$ symbols which are left in due to
+ limitations in how GAS generates SOM relocations.
+
+ When linking in the HPUX C-library the HP linker has
+ the nasty habit of placing section symbols from the literal
+ subspaces in the middle of the program's text. Filter
+ those out as best we can. Check for first and last character
+ being '$'. */
+ if ((symname[0] == 'L' && symname[1] == '$')
+ || (symname[0] == '$' && symname[strlen(symname) - 1] == '$'))
continue;
break;
@@ -314,7 +314,7 @@ read_unwind_info (objfile)
/* Allocate memory for the unwind table. */
ui->table = obstack_alloc (&objfile->psymbol_obstack, total_size);
- ui->last = total_entries + 1;
+ ui->last = total_entries - 1;
/* We will read the unwind entries into temporary memory, then
fill in the actual unwind table. */