aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-10-21 19:28:54 +0000
committerKen Raeburn <raeburn@cygnus>1993-10-21 19:28:54 +0000
commit003ccb904df6c52b02fcf935222d30f87905bdb9 (patch)
tree48cef58b2853eb4e62b245a1a22cdd5d9e12e874
parent3bca03362f49605507a672b0a7bcadd4cab8aae6 (diff)
downloadgdb-003ccb904df6c52b02fcf935222d30f87905bdb9.zip
gdb-003ccb904df6c52b02fcf935222d30f87905bdb9.tar.gz
gdb-003ccb904df6c52b02fcf935222d30f87905bdb9.tar.bz2
Patch from Jeff Law:
* paread.c: Fix references to "hppa" that should now be "som".
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/paread.c17
2 files changed, 14 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b120d26..c51fee7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 21 12:05:08 1993 Ken Raeburn (raeburn@cygnus.com)
+
+ Patch from Jeff Law:
+ * paread.c: Fix references to "hppa" that should now be "som".
+
Thu Oct 21 12:23:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* symtab.c (decode_line_1): Don't use SYMBOL_LINE for functions.
diff --git a/gdb/paread.c b/gdb/paread.c
index d21aa54..c79ddb5 100644
--- a/gdb/paread.c
+++ b/gdb/paread.c
@@ -24,6 +24,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/types.h> /* For time_t, if not in time.h. */
#include "libbfd.h"
#include "som.h"
+#include "libhppa.h"
#include <syms.h>
#include "symtab.h"
#include "symfile.h"
@@ -119,15 +120,15 @@ pa_symtab_read (abfd, addr, objfile)
number_of_symbols = bfd_get_symcount (abfd);
buf = alloca (symsize * number_of_symbols);
- bfd_seek (abfd, obj_sym_filepos (abfd), L_SET);
+ bfd_seek (abfd, obj_som_sym_filepos (abfd), L_SET);
val = bfd_read (buf, symsize * number_of_symbols, 1, abfd);
if (val != symsize * number_of_symbols)
error ("Couldn't read symbol dictionary!");
- stringtab = alloca (obj_stringtab_size (abfd));
- bfd_seek (abfd, obj_str_filepos (abfd), L_SET);
- val = bfd_read (stringtab, obj_stringtab_size (abfd), 1, abfd);
- if (val != obj_stringtab_size (abfd))
+ stringtab = alloca (obj_som_stringtab_size (abfd));
+ bfd_seek (abfd, obj_som_str_filepos (abfd), L_SET);
+ val = bfd_read (stringtab, obj_som_stringtab_size (abfd), 1, abfd);
+ if (val != obj_som_stringtab_size (abfd))
error ("Can't read in HP string table.");
endbufp = buf + number_of_symbols;
@@ -214,7 +215,7 @@ pa_symtab_read (abfd, addr, objfile)
continue;
}
- if (bufp->name.n_strx > obj_stringtab_size (abfd))
+ if (bufp->name.n_strx > obj_som_stringtab_size (abfd))
error ("Invalid symbol data; bad HP string table offset: %d",
bufp->name.n_strx);
@@ -504,8 +505,8 @@ pa_symfile_offsets (objfile, addr)
file format name with an -hppa suffix? */
static struct sym_fns pa_sym_fns =
{
- "hppa", /* sym_name: name or name prefix of BFD target type */
- 4, /* sym_namelen: number of significant sym_name chars */
+ "som", /* sym_name: name or name prefix of BFD target type */
+ 3, /* sym_namelen: number of significant sym_name chars */
pa_new_init, /* sym_new_init: init anything gbl to entire symtab */
pa_symfile_init, /* sym_init: read initial info, setup for sym_read() */
pa_symfile_read, /* sym_read: read a symbol file into symtab */