diff options
author | Stu Grossman <grossman@cygnus> | 1997-01-04 00:25:53 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1997-01-04 00:25:53 +0000 |
commit | 6c310da826b31a1ce75469b0c402a75dafbf19b1 (patch) | |
tree | c166cf5f4500a649b7f8b71dbd4bd92a969ee771 /gdb/elfread.c | |
parent | b3ef389468d5b03b388b2c4ec3b047c7728961a3 (diff) | |
download | gdb-6c310da826b31a1ce75469b0c402a75dafbf19b1.zip gdb-6c310da826b31a1ce75469b0c402a75dafbf19b1.tar.gz gdb-6c310da826b31a1ce75469b0c402a75dafbf19b1.tar.bz2 |
* Makefile.in configure configure.in: Remove ENABLE_CLIBS,
ENABLE_OBS, and THREAD_DB_OBS. These are consolidated into LIBS
and CONFIG_OBS.
* configure configure.in: Clean up test cases around thread support.
start-sanitize-v850
* configure.tgt (v850-*-*): Include v850ice.o and v850.lib if
host is Windows.
end-sanitize-v850
* c-valprint.c ch-valprint.c cp-valprint.c eval.c expprint.c
printcmd.c valops.c value.h values.c: Add bfd_section arg to
value_at and value_at_lazy.
* coffread.c dbxread.c elfread.c mdebugread.c minsyms.c symtab.h:
Add bfd_section arg to prim_record_minimal_symbol_and_info.
* corefile.c gdbcore.h printcmd.c valops.c: Use read_memory_section
instead of read_memory. It takes a bfd_section arg.
* coffread.c dbxread.c elfread.c gdb-stabs.h objfiles.h: Remove
unnecessary cast for assignment of struct dbx_symfile_info.
Struct objfile now uses a real pointer instead of PTR for this
element.
* dbxread.c (dbx_symfile_init): Stash bfd section pointers for
text, data and bss into dbx_symfile_info.
* exec.c (xfer_memory): Handle transfers for user-specified
sections.
* findvar.c (read_var_value locate_var_value): Copy bfd section
from the symbol to the value.
* gdb-stabs.h: Add section pointers for text, data and bss
sections.
* maint.c (translate address command): Add test code for overlay
address translation.
* printcmd.c (do_examine do_one_display): Now takes a bfd section
arg.
* (print_formatted x_command): Record current section along with
current address for repeated commands.
* sparc-nat.c (fetch_inferior_registers): Change
target_xfer_memory to target_{read write}_memory to allow changes
to target_xfer_memory interface for section info.
* symmisc.c (dump_msymbols print_symbol): Print section
assocaited with symbol.
* symtab.c (fixup_symbol_section): New routine to
add section info to symbols returned by lookup_symbol.
* symtab.h (struct general_symbol_info): Add bfd section to
symbols.
* target.c target.h (target_xfer_memory): Add bfd section to
args.
* (target_read_memory_section): New routine to read data from a
specific section.
* (target_memory_bfd_section): New global variable to pass bfd
section in to targets.
* valarith.c (value_add value_addr value_array): Preserve bfd
section when computing new value.
* value.h (struct value): Add bfd section to values.
* values.c (allocate_value value_copy): Initialize/preserve bfd
section.
* (unpack_double): Clean up _MSC_VER conditionals to remove
duplicate code.
start-sanitize-v850
* v850ice.c: New module to support communication with NEC's
PC-based ICE.
* config/v850/tm-v850.h (REGISTER_NAMES): Replace sp, gp, fp, and
ep names with rxx names. sp and fp are renamed via a different
mechanism.
end-sanitize-v850
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index 524df4a..b96fa17 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -81,6 +81,7 @@ free_elfinfo PARAMS ((void *)); static struct minimal_symbol * record_minimal_symbol_and_info PARAMS ((char *, CORE_ADDR, enum minimal_symbol_type, char *, + asection *bfd_section, struct objfile *)); static void @@ -169,11 +170,13 @@ elf_interpreter (abfd) #endif static struct minimal_symbol * -record_minimal_symbol_and_info (name, address, ms_type, info, objfile) +record_minimal_symbol_and_info (name, address, ms_type, info, bfd_section, + objfile) char *name; CORE_ADDR address; enum minimal_symbol_type ms_type; char *info; /* FIXME, is this really char *? */ + asection *bfd_section; struct objfile *objfile; { int section; @@ -203,7 +206,7 @@ record_minimal_symbol_and_info (name, address, ms_type, info, objfile) } return prim_record_minimal_symbol_and_info - (name, address, ms_type, info, section, objfile); + (name, address, ms_type, info, section, bfd_section, objfile); } /* @@ -258,8 +261,7 @@ elf_symtab_read (abfd, addr, objfile, dynamic) /* Name of filesym, as saved on the symbol_obstack. */ char *filesymname = obsavestring ("", 0, &objfile->symbol_obstack); #endif - struct dbx_symfile_info *dbx = (struct dbx_symfile_info *) - objfile->sym_stab_info; + struct dbx_symfile_info *dbx = objfile->sym_stab_info; unsigned long size; int stripped = (bfd_get_symcount (abfd) == 0); @@ -320,7 +322,7 @@ elf_symtab_read (abfd, addr, objfile, dynamic) symaddr += addr; msym = record_minimal_symbol_and_info ((char *) sym -> name, symaddr, - mst_solib_trampoline, NULL, objfile); + mst_solib_trampoline, NULL, sym -> section, objfile); #ifdef SOFUN_ADDRESS_MAYBE_MISSING if (msym != NULL) msym->filename = filesymname; @@ -531,7 +533,7 @@ elf_symtab_read (abfd, addr, objfile, dynamic) size = ((elf_symbol_type *) sym) -> internal_elf_sym.st_size; msym = record_minimal_symbol_and_info ((char *) sym -> name, symaddr, - ms_type, (PTR) size, objfile); + ms_type, (PTR) size, sym -> section, objfile); #ifdef SOFUN_ADDRESS_MAYBE_MISSING if (msym != NULL) msym->filename = filesymname; @@ -671,8 +673,7 @@ free_elfinfo (objp) PTR objp; { struct objfile *objfile = (struct objfile *)objp; - struct dbx_symfile_info *dbxinfo = (struct dbx_symfile_info *) - objfile->sym_stab_info; + struct dbx_symfile_info *dbxinfo = objfile->sym_stab_info; struct stab_section_info *ssi, *nssi; ssi = dbxinfo->stab_section_info; @@ -749,8 +750,7 @@ elfstab_offset_sections (objfile, pst) struct partial_symtab *pst; { char *filename = pst->filename; - struct dbx_symfile_info *dbx = (struct dbx_symfile_info *) - objfile->sym_stab_info; + struct dbx_symfile_info *dbx = objfile->sym_stab_info; struct stab_section_info *maybe = dbx->stab_section_info; struct stab_section_info *questionable = 0; int i; |