aboutsummaryrefslogtreecommitdiff
path: root/gdb/somread.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-08-19 16:48:51 +0000
committerJeff Law <law@redhat.com>1994-08-19 16:48:51 +0000
commit98c0e047bdd9407ada8b5ba18f89418bb6351614 (patch)
tree5c19e92f9d98edd62f0de6229f6cddcd51f80fb4 /gdb/somread.c
parent36d4f4d8516c9293d633ad65dadf8e2f52c7a7b1 (diff)
downloadgdb-98c0e047bdd9407ada8b5ba18f89418bb6351614.zip
gdb-98c0e047bdd9407ada8b5ba18f89418bb6351614.tar.gz
gdb-98c0e047bdd9407ada8b5ba18f89418bb6351614.tar.bz2
* Makefile.in (ALLDEPFILES): Add hpread.c.
(hpread.o): Add dependencies. * somread.c: Do not include "aout/aout64.h". SOM has nothing to do with a.out. (BYTES_IN_WORD): Delete. (som_symfile_read): Call hpread_build_psymtabs to build any minimal symbols based on the HP C native debug symbols. (som_symfile_finish): Call hpread_symfile_finish. (som_symfile_init): Call hpread_symfile_init. * config/pa/tm-hppa.h (HPREAD_ADJUST_STACK_ADDRESS): Define. * hppa-tdep.c (hpread_adjust_stack_address): New function. * config/pa/hppabsd.mh (NATDEPFILES): Add hpread.o * config/pa/hppahpux.mh (NATDEPFILES): Likewise. * hpread.c: New file.
Diffstat (limited to 'gdb/somread.c')
-rw-r--r--gdb/somread.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/gdb/somread.c b/gdb/somread.c
index d991019..2dd2291 100644
--- a/gdb/somread.c
+++ b/gdb/somread.c
@@ -34,13 +34,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "demangle.h"
#include <sys/file.h>
-/* Size of n_value and n_strx fields in a stab symbol. */
-#define BYTES_IN_WORD 4
-
-#if 0
-#include "aout/aout64.h"
-#endif
-
/* Various things we might complain about... */
static void
@@ -336,10 +329,15 @@ som_symfile_read (objfile, section_offsets, mainline)
som_symtab_read (abfd, offset, objfile);
- /* Now read information from the debugging sections. */
+ /* Now read information from the stabs debug sections. */
stabsect_build_psymtabs (objfile, section_offsets, mainline,
"$GDB_SYMBOLS$", "$GDB_STRINGS$", "$TEXT$");
+/* start-sanitize-hpread */
+ /* Now read the native debug information. */
+ hpread_build_psymtabs (objfile, section_offsets, mainline);
+/* end-sanitize-hpread */
+
/* Install any minimal symbols that have been collected as the current
minimal symbols for this objfile. */
install_minimal_symbols (objfile);
@@ -374,15 +372,21 @@ som_symfile_finish (objfile)
{
mfree (objfile -> md, objfile -> sym_stab_info);
}
+/* start-sanitize-hpread */
+ hpread_symfile_finish (objfile);
+/* end-sanitize-hpread */
}
/* SOM specific initialization routine for reading symbols.
Nothing SOM specific left to do anymore. */
static void
-som_symfile_init (ignore)
- struct objfile *ignore;
+som_symfile_init (objfile)
+ struct objfile *objfile;
{
+/* start-sanitize-hpread */
+ hpread_symfile_init (objfile);
+/* end-sanitize-hpread */
}
/* SOM specific parsing routine for section offsets.