mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 00:52:16 +08:00
* 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.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user