forked from Imagelibrary/binutils-gdb
2002-01-23 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (hpread_h): Delete.
(HFILES_NO_SRCDIR): Remove hpread.h.
(ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
(hpread.o): Update dependencies.
(hp-psymtab-read.o, hp-symtab-read.o): Remove.
* hp-psymtab-read.c: Remove file.
* hp-symtab-read.c: Remove file.
* hpread.h: Remove file.
* hpread.c: Merge all contents of hp-psymtab-read.c,
hp-symtab-read.c and hpread.h into this file, as it was prior to
January 1999.
* config/pa/hpux11w.mh, config/pa/hpux11.mh,
config/pa/hpux1020.mh, config/pa/hppaosf.mh,
config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
This commit is contained in:
@@ -1,3 +1,24 @@
|
||||
2002-01-23 Elena Zannoni <ezannoni@redhat.com>
|
||||
|
||||
* Makefile.in (hpread_h): Delete.
|
||||
(HFILES_NO_SRCDIR): Remove hpread.h.
|
||||
(ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
|
||||
(hpread.o): Update dependencies.
|
||||
(hp-psymtab-read.o, hp-symtab-read.o): Remove.
|
||||
|
||||
* hp-psymtab-read.c: Remove file.
|
||||
* hp-symtab-read.c: Remove file.
|
||||
* hpread.h: Remove file.
|
||||
|
||||
* hpread.c: Merge all contents of hp-psymtab-read.c,
|
||||
hp-symtab-read.c and hpread.h into this file, as it was prior to
|
||||
January 1999.
|
||||
|
||||
* config/pa/hpux11w.mh, config/pa/hpux11.mh,
|
||||
config/pa/hpux1020.mh, config/pa/hppaosf.mh,
|
||||
config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
|
||||
Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
|
||||
|
||||
2002-01-23 Elena Zannoni <ezannoni@redhat.com>
|
||||
|
||||
* ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
|
||||
|
||||
@@ -617,10 +617,6 @@ gdbcmd_h = gdbcmd.h $(command_h) $(ui_out_h)
|
||||
gdbcore_h = gdbcore.h $(bfd_h)
|
||||
gdbthread_h = gdbthread.h $(breakpoint_h)
|
||||
gdbtypes_h = gdbtypes.h
|
||||
hpread_h = hpread.h $(defs_h) $(bfd_h) $(gdb_string_h) $(hp_symtab_h) \
|
||||
$(syms_h) $(symtab_h) $(symfile_h) $(objfiles_h) \
|
||||
$(buildsym_h) $(complaints_h) $(gdb_stabs_h) $(gdbtypes_h) \
|
||||
$(demangle_h)
|
||||
inf_loop_h = inf-loop.h
|
||||
inferior_h = inferior.h $(breakpoint_h)
|
||||
language_h = language.h
|
||||
@@ -660,7 +656,7 @@ xcoffsolib_h = xcoffsolib.h
|
||||
|
||||
HFILES_NO_SRCDIR = bcache.h buildsym.h call-cmds.h coff-solib.h defs.h \
|
||||
dst.h environ.h $(gdbcmd_h) gdb.h gdbcore.h \
|
||||
gdb-stabs.h hpread.h $(inferior_h) language.h minimon.h monitor.h \
|
||||
gdb-stabs.h $(inferior_h) language.h minimon.h monitor.h \
|
||||
objfiles.h parser-defs.h serial.h solib.h \
|
||||
symfile.h stabsread.h target.h terminal.h typeprint.h xcoffsolib.h \
|
||||
c-lang.h ch-lang.h f-lang.h \
|
||||
@@ -1177,8 +1173,7 @@ ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
|
||||
core-sol2.c core-regset.c core-aout.c corelow.c \
|
||||
dcache.c delta68-nat.c dpx2-nat.c dstread.c exec.c fork-child.c \
|
||||
go32-nat.c h8300-tdep.c h8500-tdep.c \
|
||||
hp300ux-nat.c hppa-tdep.c hppab-nat.c hppah-nat.c \
|
||||
hp-psymtab-read.c hp-symtab-read.c \
|
||||
hp300ux-nat.c hppa-tdep.c hppab-nat.c hppah-nat.c hpread.c \
|
||||
i386-tdep.c i386b-nat.c i386mach-nat.c i386v-nat.c i386-linux-nat.c \
|
||||
i386aix-nat.c i386m3-nat.c i386v4-nat.c i386ly-tdep.c \
|
||||
i386bsd-nat.c i386bsd-tdep.c i386fbsd-nat.c \
|
||||
@@ -1800,18 +1795,10 @@ hpux-thread.o: hpux-thread.c $(defs_h) $(gdbthread_h) $(target_h) inferior.h \
|
||||
$(CC) -c $(INTERNAL_CFLAGS) -I$(srcdir)/osf-share \
|
||||
-I$(srcdir)/osf-share/HP800 -I/usr/include/dce $(srcdir)/hpux-thread.c
|
||||
|
||||
# FIXME!!!
|
||||
hpread.o: hpread.c $(bfd_h) $(buildsym_h) $(complaints_h) $(defs_h) \
|
||||
$(gdb_stabs_h) $(objfiles_h) $(symfile_h) $(symtab_h) $(gdb_string_h)
|
||||
|
||||
hp-psymtab-read.o: hp-psymtab-read.c $(hpread_h) $(bfd_h) $(buildsym_h) \
|
||||
$(complaints_h) $(defs_h) $(gdb_stabs_h) $(objfiles_h) $(symfile_h) \
|
||||
$(symtab_h) $(gdb_string_h)
|
||||
|
||||
hp-symtab-read.o: hp-symtab-read.c $(hpread_h) $(bfd_h) $(buildsym_h) \
|
||||
$(complaints_h) $(defs_h) $(gdb_stabs_h) $(objfiles_h) $(symfile_h) \
|
||||
$(symtab_h) $(gdb_string_h)
|
||||
# END FIXME!!!
|
||||
$(demangle_h) $(gdb_stabs_h) $(gdbtypes_h) $(objfiles_h) \
|
||||
$(symfile_h) $(syms_h) $(symtab_h) $(gdb_string_h) \
|
||||
$(INCLUDE_DIR)/hp-symtab.h
|
||||
|
||||
parse.o: parse.c $(command_h) $(defs_h) $(expression_h) $(frame_h) \
|
||||
$(gdbtypes_h) $(language_h) $(parser_defs_h) $(symtab_h) $(value_h) \
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Host: Hewlett-Packard PA-RISC machine, running BSD
|
||||
XM_FILE= xm-hppab.h
|
||||
NAT_FILE= nm-hppab.h
|
||||
NATDEPFILES= hppab-nat.o corelow.o core-aout.o inftarg.o fork-child.o somread.o infptrace.o hp-psymtab-read.o hp-symtab-read.o somsolib.o
|
||||
NATDEPFILES= hppab-nat.o corelow.o core-aout.o inftarg.o fork-child.o somread.o infptrace.o hpread.o somsolib.o
|
||||
|
||||
GDBSERVER_DEPFILES= low-hppabsd.o
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
XM_FILE= xm-hppah.h
|
||||
|
||||
NAT_FILE= nm-hppah.h
|
||||
NATDEPFILES= hppah-nat.o corelow.o core-aout.o inftarg.o fork-child.o somread.o infptrace.o hp-psymtab-read.o hp-symtab-read.o somsolib.o
|
||||
NATDEPFILES= hppah-nat.o corelow.o core-aout.o inftarg.o fork-child.o somread.o infptrace.o hpread.o somsolib.o
|
||||
|
||||
HOST_IPC=-DBSD_IPC -DPOSIX_WAIT
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Host: Hewlett-Packard PA-RISC machine, running BSD
|
||||
XM_FILE= xm-hppab.h
|
||||
NAT_FILE= nm-hppao.h
|
||||
NATDEPFILES= fork-child.o m3-nat.o hppam3-nat.o somread.o hp-psymtab-read.o hp-symtab-read.o somsolib.o
|
||||
NATDEPFILES= fork-child.o m3-nat.o hppam3-nat.o somread.o hpread.o somsolib.o
|
||||
NAT_CLIBS= -lmachid -lnetname -lmach
|
||||
|
||||
GDBSERVER_DEPFILES= low-hppabsd.o
|
||||
|
||||
@@ -5,6 +5,6 @@ MH_CFLAGS = -D__HP_CURSES
|
||||
XM_FILE= xm-hppah.h
|
||||
|
||||
NAT_FILE= nm-hppah.h
|
||||
NATDEPFILES= hppah-nat.o corelow.o core-aout.o inftarg.o fork-child.o infptrace.o somread.o hp-psymtab-read.o hp-symtab-read.o somsolib.o
|
||||
NATDEPFILES= hppah-nat.o corelow.o core-aout.o inftarg.o fork-child.o infptrace.o somread.o hpread.o somsolib.o
|
||||
|
||||
HOST_IPC=-DBSD_IPC -DPOSIX_WAIT
|
||||
|
||||
@@ -5,6 +5,6 @@ MH_CFLAGS = -D__HP_CURSES
|
||||
XM_FILE= xm-hppah.h
|
||||
|
||||
NAT_FILE= nm-hppah11.h
|
||||
NATDEPFILES= hppah-nat.o corelow.o core-aout.o inftarg.o fork-child.o infttrace.o somread.o hp-psymtab-read.o hp-symtab-read.o somsolib.o
|
||||
NATDEPFILES= hppah-nat.o corelow.o core-aout.o inftarg.o fork-child.o infttrace.o somread.o hpread.o somsolib.o
|
||||
|
||||
HOST_IPC=-DBSD_IPC -DPOSIX_WAIT
|
||||
|
||||
@@ -5,6 +5,6 @@ MH_CFLAGS = -D__HP_CURSES
|
||||
XM_FILE= xm-hppah.h
|
||||
|
||||
NAT_FILE= nm-hppah11.h
|
||||
NATDEPFILES= hppah-nat.o corelow.o core-aout.o inftarg.o fork-child.o infttrace.o hp-psymtab-read.o hp-symtab-read.o pa64solib.o
|
||||
NATDEPFILES= hppah-nat.o corelow.o core-aout.o inftarg.o fork-child.o infttrace.o hpread.o pa64solib.o
|
||||
|
||||
HOST_IPC=-DBSD_IPC -DPOSIX_WAIT
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
3979
gdb/hp-symtab-read.c
3979
gdb/hp-symtab-read.c
File diff suppressed because it is too large
Load Diff
5133
gdb/hpread.c
5133
gdb/hpread.c
File diff suppressed because it is too large
Load Diff
145
gdb/hpread.h
145
gdb/hpread.h
@@ -1,145 +0,0 @@
|
||||
/* hpread.h
|
||||
* Common include file for:
|
||||
* hp_symtab_read.c
|
||||
* hp_psymtab_read.c
|
||||
*/
|
||||
|
||||
/* Copyright 1993, 1996, 1998, 2000 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
|
||||
Written by the Center for Software Science at the University of Utah
|
||||
and by Cygnus Support. */
|
||||
|
||||
#include "defs.h"
|
||||
#include "bfd.h"
|
||||
#include "gdb_string.h"
|
||||
#include "hp-symtab.h"
|
||||
#include "syms.h"
|
||||
#include "symtab.h"
|
||||
#include "symfile.h"
|
||||
#include "objfiles.h"
|
||||
#include "buildsym.h"
|
||||
#include "complaints.h"
|
||||
#include "gdb-stabs.h"
|
||||
#include "gdbtypes.h"
|
||||
#include "demangle.h"
|
||||
|
||||
/* Private information attached to an objfile which we use to find
|
||||
and internalize the HP C debug symbols within that objfile. */
|
||||
|
||||
struct hpread_symfile_info
|
||||
{
|
||||
/* The contents of each of the debug sections (there are 4 of them). */
|
||||
char *gntt;
|
||||
char *lntt;
|
||||
char *slt;
|
||||
char *vt;
|
||||
|
||||
/* We keep the size of the $VT$ section for range checking. */
|
||||
unsigned int vt_size;
|
||||
|
||||
/* Some routines still need to know the number of symbols in the
|
||||
main debug sections ($LNTT$ and $GNTT$). */
|
||||
unsigned int lntt_symcount;
|
||||
unsigned int gntt_symcount;
|
||||
|
||||
/* To keep track of all the types we've processed. */
|
||||
struct type **type_vector;
|
||||
int type_vector_length;
|
||||
|
||||
/* Keeps track of the beginning of a range of source lines. */
|
||||
sltpointer sl_index;
|
||||
|
||||
/* Some state variables we'll need. */
|
||||
int within_function;
|
||||
|
||||
/* Keep track of the current function's address. We may need to look
|
||||
up something based on this address. */
|
||||
unsigned int current_function_value;
|
||||
};
|
||||
|
||||
/* Accessor macros to get at the fields. */
|
||||
#define HPUX_SYMFILE_INFO(o) \
|
||||
((struct hpread_symfile_info *)((o)->sym_private))
|
||||
#define GNTT(o) (HPUX_SYMFILE_INFO(o)->gntt)
|
||||
#define LNTT(o) (HPUX_SYMFILE_INFO(o)->lntt)
|
||||
#define SLT(o) (HPUX_SYMFILE_INFO(o)->slt)
|
||||
#define VT(o) (HPUX_SYMFILE_INFO(o)->vt)
|
||||
#define VT_SIZE(o) (HPUX_SYMFILE_INFO(o)->vt_size)
|
||||
#define LNTT_SYMCOUNT(o) (HPUX_SYMFILE_INFO(o)->lntt_symcount)
|
||||
#define GNTT_SYMCOUNT(o) (HPUX_SYMFILE_INFO(o)->gntt_symcount)
|
||||
#define TYPE_VECTOR(o) (HPUX_SYMFILE_INFO(o)->type_vector)
|
||||
#define TYPE_VECTOR_LENGTH(o) (HPUX_SYMFILE_INFO(o)->type_vector_length)
|
||||
#define SL_INDEX(o) (HPUX_SYMFILE_INFO(o)->sl_index)
|
||||
#define WITHIN_FUNCTION(o) (HPUX_SYMFILE_INFO(o)->within_function)
|
||||
#define CURRENT_FUNCTION_VALUE(o) (HPUX_SYMFILE_INFO(o)->current_function_value)
|
||||
|
||||
/* Given the native debug symbol SYM, set NAMEP to the name associated
|
||||
with the debug symbol. Note we may be called with a debug symbol which
|
||||
has no associated name, in that case we return an empty string.
|
||||
|
||||
Also note we "know" that the name for any symbol is always in the
|
||||
same place. Hence we don't have to conditionalize on the symbol type. */
|
||||
#define SET_NAMESTRING(SYM, NAMEP, OBJFILE) \
|
||||
if (! hpread_has_name ((SYM)->dblock.kind)) \
|
||||
*NAMEP = ""; \
|
||||
else if (((unsigned)(SYM)->dsfile.name) >= VT_SIZE (OBJFILE)) \
|
||||
{ \
|
||||
complain (&string_table_offset_complaint, (char *) symnum); \
|
||||
*NAMEP = ""; \
|
||||
} \
|
||||
else \
|
||||
*NAMEP = (SYM)->dsfile.name + VT (OBJFILE)
|
||||
|
||||
/* We put a pointer to this structure in the read_symtab_private field
|
||||
of the psymtab. */
|
||||
|
||||
struct symloc
|
||||
{
|
||||
/* The offset within the file symbol table of first local symbol for
|
||||
this file. */
|
||||
|
||||
int ldsymoff;
|
||||
|
||||
/* Length (in bytes) of the section of the symbol table devoted to
|
||||
this file's symbols (actually, the section bracketed may contain
|
||||
more than just this file's symbols). If ldsymlen is 0, the only
|
||||
reason for this thing's existence is the dependency list.
|
||||
Nothing else will happen when it is read in. */
|
||||
|
||||
int ldsymlen;
|
||||
};
|
||||
|
||||
#define LDSYMOFF(p) (((struct symloc *)((p)->read_symtab_private))->ldsymoff)
|
||||
#define LDSYMLEN(p) (((struct symloc *)((p)->read_symtab_private))->ldsymlen)
|
||||
#define SYMLOC(p) ((struct symloc *)((p)->read_symtab_private))
|
||||
|
||||
/* FIXME: Shouldn't this stuff be in a .h file somewhere? */
|
||||
/* Complaints about the symbols we have encountered. */
|
||||
extern struct complaint string_table_offset_complaint;
|
||||
extern struct complaint lbrac_unmatched_complaint;
|
||||
extern struct complaint lbrac_mismatch_complaint;
|
||||
|
||||
extern union sltentry *hpread_get_slt (int, struct objfile *);
|
||||
|
||||
extern union dnttentry *hpread_get_lntt (int, struct objfile *);
|
||||
|
||||
int hpread_has_name (enum dntt_entry_type);
|
||||
|
||||
/* end of hpread.h */
|
||||
Reference in New Issue
Block a user