]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
authorJim Blandy <jimb@codesourcery.com>
Mon, 23 Dec 2002 08:53:26 +0000 (08:53 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 23 Dec 2002 08:53:26 +0000 (08:53 +0000)
like the old symbol_file_add, but taking new arguments: you can
now pass in either a `struct section_addr_info' list to say where
each section is loaded, or a `struct section_offsets' table.  Pass
these new arguments through to syms_from_objfile as appropriate.
(symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
with the appropriate quiescent values for the new arguments.

* symfile.c: #include "gdb_assert.h".
(syms_from_objfile): Add the ability to pass in a section offset
table directly, as an alternative to the section_addr_info table.
Document arguments better.
(symbol_file_add): Pass extra arguments to syms_from_objfile.
* symfile.h (syms_from_objfile): Update declaration.
* rs6000-nat.c (objfile_symbol_add): Pass new arguments to
syms_from_objfile.
* Makefile.in (symfile.o): List dependency on $(gdb_assert_h).

gdb/ChangeLog

index a7e0bae860da056384c028e0e8ec2a0d2463b85b..5a200e5a4eeece9ea28242c42a550795a2355575 100644 (file)
@@ -1,3 +1,23 @@
+2002-12-23  Jim Blandy  <jimb@redhat.com>
+
+       * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
+       like the old symbol_file_add, but taking new arguments: you can
+       now pass in either a `struct section_addr_info' list to say where
+       each section is loaded, or a `struct section_offsets' table.  Pass
+       these new arguments through to syms_from_objfile as appropriate.
+       (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets, 
+       with the appropriate quiescent values for the new arguments.
+
+       * symfile.c: #include "gdb_assert.h".
+       (syms_from_objfile): Add the ability to pass in a section offset
+       table directly, as an alternative to the section_addr_info table.
+       Document arguments better.
+       (symbol_file_add): Pass extra arguments to syms_from_objfile.
+       * symfile.h (syms_from_objfile): Update declaration.
+       * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
+       syms_from_objfile.
+       * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
+
 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
 
        * x86-64-tdep.h (x86_64_init_abi): New prototype.