aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
AgeCommit message (Collapse)AuthorFilesLines
2000-11-21 * solib.c (solib_open): Handle the case whereKevin Buettner1-12/+16
solib_absolute_prefix is NULL.
2000-11-212000-11-20 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-38/+84
* solist.h: Declare new function solib_open. * solib.c (solib_open): New function. Abstracts some of the code from solib_map_sections, for finding the binary solib file. (solib_map_sections): Call solib_open. * solib-svr4.c (enable_break): Call solib_open.
2000-10-30solib.c relocation improvementsKevin Buettner1-43/+19
2000-10-24Reorganize solib.c.Kevin Buettner1-1552/+25
2000-10-24* solib.c (open_symbol_file_object): Update function signature toAndrew Cagney1-3/+4
match catch_errors function argument.
2000-10-20Protoization.Kevin Buettner1-20/+14
2000-08-31Rename bfd_elf_get_arch_size to bfd_get_arch_size().Kevin Buettner1-11/+11
2000-08-302000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-30/+177
* valops.c (value_cast): Indentation fix-up. * acconfig.h (HAVE_PRGREGSET32_T, HAVE_PRFPREGSET32_T, HAVE_STRUCT_LINK_MAP32): New configure macros. * config.in: Ditto. * configure.in: Test for the above new macros. * breakpoint.c: Update copyright date. * core-sol2.c: Include v9/sys/privregs.h directly to work around a bug in Sun's Solaris 8 header files. (fetch_core_registers): Use the above new configure macros to handle cross-debugging of 32-bit core files on a 64-bit host. * sol-thread.c (ps_pdmodel) New function. (rw_common): For debugging of 32-bit apps on a 64-bit host, truncate addresses to 32 bits. * solib.c (solib_extract_address): Functionize. Make 32/64 aware. (LM_ADDR, LM_NEXT, LM_NAME): Ditto. (IGNORE_FIRST_LINK_MAP): Ditto. (first_link_map_member): Make 32/64 aware. (open_symbol_file_object): Ditto. (current_sos): Ditto.
2000-08-092000-08-09 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-1/+2
* blockframe.c (sigtramp_saved_pc): Use dynamic allocation, since TARGET_PTR_BIT is no longer a constant (MULTI_ARCH). * irix4-nat.c (get_longjmp_target): Ditto. * irix5-nat.c (get_longjmp_target): Ditto. * jv-valprint.c (java_value_print): Ditto. * m3-nat.c (get_cprocs): Ditto. * m68k-tdep.c (get_longjmp_target): Ditto. * mips-nat.c (get_longjmp_target): Ditto. * mipsv4-nat.c(get_longjmp_target): Ditto. * pa64solib.c (read_dynamic_info): Ditto. * solib.c (elf_locate_base): Ditto.
2000-08-07* solib.c (bfd_lookup_symbol): Fall back on the dynamic symbolMark Kettenis1-2/+30
table if the symbol couldn't be found in the normal symbol table (i.e. if the shared object in question was stripped).
2000-07-30Protoization.Kevin Buettner1-37/+22
2000-07-19* solib.c (elf_locate_base, info_sharedlibrary_command): RenameAndrew Cagney1-2/+2
bfd_elf_get_arch_size to bfd_get_arch_size.
2000-05-28PARAMS removal.Kevin Buettner1-31/+17
2000-05-22Purge (almost) make_cleanup_func.Andrew Cagney1-1/+1
2000-05-16Cleanup discard_minimal_symbols cleanup.Andrew Cagney1-1/+1
2000-05-112000-05-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-17/+18
* solib.c (symbol_add_stub): Remember the index and the name of the section with the lowest address. Use this data (instead of data from .text) to pass info into symbol_file_add. * elfread.c (record_minimal_symbol_and_info): Use the section where the symbol lives to get the index, instead of guessing.
2000-05-052000-05-03 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-49/+67
* solib.c (elf_locate_base, info_sharedlibrary_command): Look at the bfd to determine if it is elf32 or elf64, rather than using an ifdef. This makes it runtime teststable and multi-arch.
2000-04-172000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-1/+10
* symfile.h (struct section_addr_info ): Remove fields for special treatment of .text, .data and .bss sections. * solib.c (symbol_add_stub): The special field text_addr is not available anymore. Search for the .text field the hard way. * symfile.c (build_section_addr_info_from_section_table): Don't fill in {text, data, bss}_addr any more. (default_symfile_offsets): Don't use {text, data, bss}_addr fields to fill in section_offsets for objfile. (syms_from_objfile): Don't deal with {text, data, bss}_addr as a special case anymore. (add_symbol_file_command): Ditto.
2000-04-05* solib.c (update_solib_list): New function.Jim Blandy1-30/+54
(solib_add): Call update_solib_list, and then read symbols. (info_sharedlibrary_command): Call update_solib_list, not solib_add.
2000-04-042000-04-03 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+1
* gdb_regex.h: New. Include "regex.h" if USE_INCLUDED_REGEX is defined and <regex.h> otherwise. * irix5-nat.c: Include "gdb_regex.h" instead of "gnu-regex.h". * monitor.c: Likewise. * osfsolib.c: Likewise. * solib.c: Likewise. * source.c: Likewise. * symtab.c: Likewise. * Makefile.in (REGEX): Changed to @REGEX@. (REGEX_CFLAGS): New. (REGEX1): Removed. (ADD_DEPS): Use $(REGEX) instead of $(REGEX1). (INTERNAL_WARN_CFLAGS): Add $(REGEX_CFLAGS). * configure.in (--with-included-regex): New switch. (REGEX): New. Subsstitue @REGEX@ in Makefile.in. (REGEX_CFLAGS): New. Subsstitue @REGEX_CFLAGS@ in Makefile.in. * configure: Regenerated.
2000-04-03* solib.c (solib_add): Move all the code for loading symbol tablesJim Blandy1-33/+51
below the code to sort out additions and removals. That way, we always catch all loaded shared libraries whose symbols we haven't grabbed yet. * solib.c (solib_add): Don't try to free a shared object's objfile if it doesn't have one. Duh. * solib.c (solib_add): If a pattern was given, but it doesn't match any currently loaded shared libraries, print a message; don't just be silent.
2000-03-242000-03-23 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-7/+6
* solib.c (open_symbol_file_object): to sneak an int argument past catch_errors, instead of casting it to a pointer, simply pass it by address.
2000-03-21Make sure section addresses from a shared object are correctly set inKevin Buettner1-9/+7
a new struct objfile.
2000-03-17* solib.c (solib_add): Delete debugging code.Jim Blandy1-23/+0
2000-03-16* solib.c (current_sos): Be more careful about freeing the newJim Blandy1-3/+4
so_list node if an error occurs.
2000-03-15Deal with the inferior unloading shared objects.Jim Blandy1-259/+422
* solib.c (current_sos): New function, replacing find_solib. (find_solib): Deleted. (free_so): New function. (clear_solib): Call free_so, instead of writing it out. (solib_add): Rewritten: compare the inferior's current list of shared objects with GDB's list, and do the required loads and unloads. (info_sharedlibrary_command, solib_address): Don't use find_solib to walk the list of shared libraries: call solib_add, and then walk the list at so_list_head normally. * objfiles.c (free_objfile): Don't call CLEAR_SOLIB, and don't detach the core target. These tasks are taken care of elsewhere. * target.c (remove_target_sections): New function. * target.h (remove_target_sections): New declaration. * solib.c (symbol_add_stub): Check whether we've already created an objfile for this shared object first, before doing all that work to compute section addresses, etc. * objfiles.c (unlink_objfile): Report an internal error if objfile doesn't occur in the object_files list. * solib.c (special_symbol_handling): Delete argument; it's not used. * solib.c (SOLIB_EXTRACT_ADDRESS): New macro to extract addresses from solib structures. Use it throughout solib.c, get rid of all CORE_ADDR casts. (struct so_list): Change type of lmaddr to CORE_ADDR. (first_link_map_member): Change return value type to CORE_ADDR, update callers. (solib_add_common_symbols): Change parameter type to CORE_ADDR, update callers. (open_symbol_file_object, find_solib): Change type of lm variable to CORE_ADDR.
2000-03-06Doc fix.Jim Blandy1-4/+4
1999-11-17import gdb-1999-11-16 snapshotJason Molenda1-1/+1
1999-10-12import gdb-1999-10-11 snapshotJason Molenda1-2/+1
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-2/+5
1999-09-28import gdb-1999-09-28 snapshotJason Molenda1-32/+3
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-1/+76
1999-08-09import gdb-1999-08-09 snapshotJason Molenda1-1/+1
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-493/+501
1999-06-28import gdb-1999-06-28 snapshotJason Molenda1-1/+25
1999-04-26import gdb-19990422 snapshotStan Shebs1-1/+1
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1888
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1890/+0
1999-01-19disable_breakpoints_in_shlibs now takes a new parameter -- silent; callersDavid Taylor1-1/+3
updated. new callers -- clear_solib (irix5-nat.c, osfsolib.c, solib.c). PR 16495 / PR 18213.
1999-01-19More make_cleanups/catch_errors warning fixes.Andrew Cagney1-8/+6
1998-12-31all remaining *.c *.h files from hp merge.David Taylor1-5/+7
1998-04-22 Handle missing shared libraries during the examination of a corePeter Schauer1-10/+18
dump gracefully. * solib.c (find_solib): Use catch_errors around call to solib_map_sections. Use warning instead of error if reading of the shared library name fails. (solib_map_sections): Change return and argument types to make it callable from catch_errors. (symbol_add_stub): Avoid GDB core dump if solib->abfd is NULL. * irix5-nat.c, osfsolib.c (xfer_link_map_member, solib_map_sections, symbol_add_stub): Ditto.
1998-04-22Humoring RMS by saying "GNU/Linux" instead of just "Linux"Stan Shebs1-4/+6
1998-04-15Wed Apr 15 12:19:42 1998 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1-3/+1
* solib.c (enable_break): Only call warning once instead of three times.
1998-04-08Wed Apr 8 16:47:33 1998 Jason Molenda (crash@bugshack.cygnus.com)Jason Molenda1-29/+1
* solib.c (solib_create_inferior_hook): Remove Ulrich Drepper's patch of March 23 1998. * breakpoint.c (breakpoint_re_set_one): Remove Ulrich Drepper's patch of March 23 1998.
1998-03-23Mon Mar 23 13:52:28 1998 Ulrich Drepper (drepper@cygnus.com)Jason Molenda1-12/+69
* breakpoint.c (breakpoint_re_set_one): Treat bp_shlib_events like bp_breakpoints. * solib.c (solib_create_inferior_hook): Relocate section addresses if the alleged start address doesn't agree with the PC.
1998-01-30Changes by Peter.Schauer to fix gdb/13521 -- gdb step command fails to stepDavid Taylor1-7/+95
from a function in one dynamically linked library into a function in another dynamically linked library.
1996-07-17 * command.c (do_setshow_command): Don't segfault when showingStu Grossman1-3/+55
var_string and var_string_noescape vars that are NULL. From the fsf: * solib.c (solib_absolute_prefix, solib_search_path): New variables. (_initialize_solib): Add set/show commands for those variables. (solib_map_sections): Implement searching using them.
1996-07-08(laying some groundwork for a fix for PR 8443)Fred Fish1-10/+20
* coffread.c (record_minimal_symbol): Don't presave name string on symbol_obstack before passing to prim_record_minimal_symbol. It now handles saving the string itself. * dbxread.c (read_dbx_dynamic_symtab): Ditto. * mipsread.c (read_alphacoff_dynamic_symtab): Ditto. * os9kread.c (record_minimal_symbol): Ditto. * solib.c (solib_add_common_symbols): Ditto. * coffread.c (coff_symtab_read): Don't presave name string on symbol_obstack before passing to prim_record_minimal_symbol_and_info. It now handles saving the string itself. * dbxread.c (record_minimal_symbol): Ditto. * elfread.c (record_minimal_symbol_and_info): Ditto. * dstread.c (record_minimal_symbol): Remove static function that just called prim_record_minimal_symbol with the same args (after change to prim_record_minimal_symbol to do it's own name string saves). * nlmread.c (record_minimal_symbol): Ditto. * somread.c (record_minimal_symbol): Ditto. * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack. (hpread_read_function_type): Ditto. (hpread_process_one_debug_symbol): Ditto. * mdebugread.c (parse_symbol): Ditto. (new_symbol): Ditto. * minsyms.c (prim_record_minimal_symbol_and_info): Ditto. * coffread.c (process_coff_symbol): Use obsavestring to save SYMBOL_NAME, rather than obstack_copy0. * dstread.c (create_new_symbol): Ditto * symfile.c (obconcat): Ditto. * stabsread.c (patch_block_stabs): Ditto. * xcoffread.c (SYMNAME_ALLOC): Ditto. * symfile.c (obsavestring): Update comments * solib.c (solib_add_common_symbols): Remove local var origname.
1996-03-14 * solib.c (solib_break_names): Add _r_debug_state forJeff Law1-28/+29
vanilla SVR4 implementations. From Peter Schauer.