aboutsummaryrefslogtreecommitdiff
path: root/gdb/somsolib.c
AgeCommit message (Collapse)AuthorFilesLines
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-0/+1
2001-02-162001-02-12 Michael Chastain <chastain@redhat.com>Michael Chastain1-6/+22
* gdb/somsolib.c (som_solib_add_solib_objfile): Do not use section relocation feature of syms_from_objfile. Do my own section relocation, offsetting each section of the som by either text_addr - text_link_addr or data_start.
2000-12-15Replace free() with xfree().Kevin Buettner1-5/+5
2000-08-272000-08-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-6/+6
* pa64solib.c (pa64_solib_load_symbols): Don't use ANOFFSET as an lvalue. * xcoffread.c (xcoff_symfile_offsets): Ditto * somsolib.c (som_solib_section_offsets): Ditto. * somread.c (som_symfile_offsets): Ditto. * rs6000-nat.c (vmap_symtab): Ditto. * remote-vx.c (vx_add_symbols): Ditto. * remote-os9k.c (rombug_wait): Ditto.
2000-07-30Protoization.Kevin Buettner1-65/+30
2000-05-28PARAMS removal.Kevin Buettner1-3/+3
2000-05-04Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-12/+12
* objfiles.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS, SECT_OFF_RODATA): Define as functions of OBJFILE. Add sect_index_text, sect_index_data, sect_index_rodata, sect_index_bss to objfile structure. * gdb-stabs.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS, SECT_OFF_RODATA): Remove. * objfiles.c (allocate_objfile): Initialize sect_index_{text,data,bss,rodata} to -1, for error detection. * symfile.c (default_symfile_offsets): Initialize sect_index_{text,data,bss,rodata} from bfd information. * xcoffread.c (xcoff_symfile_offsets): Ditto. * somread.c (som_symfile_offsets): Initialize sect_index_{text,data,bss,rodata}. * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hp-symtab-read.c, hpread.c, mdebugread.c, minsyms.c, mipsread.c, objfiles.c, os9kread.c, pa64solib.c, partial-stab.h, remote-os9k.c, remote-vx.c, remote.c, rs6000-nat.c, somsolib.c, stabsread.c, symfile.c, xcoffread.c: Update use of SECT_OFF_{TEXT,DATA,BSS,RODATA} to depend on the current objfile. * xcoffread.c: Add new field objfile to find_targ_sec_arg.
2000-04-212000-04-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-1/+2
* win32-nat.c (handle_load_dll): Don't treat .text as a special section anymore. * somread.c (som_symfile_offsets): Ditto. * somsolib.c (som_solib_add_solib_objfile): Ditto.
1999-11-17import gdb-1999-11-16 snapshotJason Molenda1-1/+1
1999-10-12import gdb-1999-10-11 snapshotJason Molenda1-1/+1
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-1/+4
1999-09-28import gdb-1999-09-28 snapshotJason Molenda1-41/+3
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-411/+416
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1640
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1640/+0
1999-01-19fix copyright years (forgot to add 1999).David Taylor1-1/+1
1999-01-19disable_breakpoints_in_shlibs now takes a new parameter -- silent; callersDavid Taylor1-1/+1
updated. new callers -- clear_solib (irix5-nat.c, osfsolib.c, solib.c). PR 16495 / PR 18213.
1998-12-31all remaining *.c *.h files from hp merge.David Taylor1-176/+974
1998-05-06 * somsolib.c: Include gdb_stat.h.Jeff Law1-0/+1
1996-08-14 From Blair MacIntyre <bm@cs.columbia.edu>:Fred Fish1-1/+1
* hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather than SYMBOL_TYPE on msymbols. * somsolib.c (som_solib_create_inferior_hook): Ditto.
1996-07-30 * somsolib.c (som_solib_create_inferior_hook): Don'tJeff Law1-6/+4
warn if __d_pid can't be found.
1996-07-28 * configure.in: Add test for "long long" support.Fred Fish1-2/+4
* configure: Regenerate with autoconf. * acconfig.h: Add CC_HAS_LONG_LONG * config.in: Regenerate with autoheader. * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove. * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove. * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove. * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove (PRINTF_HAS_LONG_LONG): Remove. (FORCE_LONG_LONG): Remove. * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version. * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove (PRINTF_HAS_LONG_LONG): Remove. * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove. (PRINTF_HAS_LONG_LONG): Remove. * config/pa/tm-hppa.h (GET_FIELD): Put parens around subtraction inside shift. Put parens around subtraction in operand of bitwise and. (struct frame_info): Forward declare if __STDC__ defined. (frame_saved_regs): Ditto. (struct value): Ditto. (struct type): Ditto. (struct inferior_status): Ditto. (init_extra_frame_info): Add prototype. (skip_prologue): Ditto. (frameless_function_invocation): Ditto. (frame_chain): Ditto. (frame_chain_valid): Ditto. (saved_pc_after_call): Ditto. (hppa_fix_call_dummy): Ditto. (hppa_push_arguments): Ditto. (pa_do_registers_info): Ditto. (in_solib_call_trampoline): Ditto. (in_solib_return_trampoline): Ditto. (push_dummy_frame): Ditto. * convex-tdep.c (decout): Use print_longest rather than fprintf_filtered. * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set CC_HAS_LONG_LONG. (INT_MIN): Fix so it works correctly when assigned to a long long. * valprint.c (longest_to_int): Rewrite to remove dependence on INT_MIN and INT_MAX. (print_longest): Rewrite the code that falls back to synthesized hex output when LONGEST value is not representable as in a long and printf doesn't support printing long longs. * ch-valprint.c (chill_val_print): Cast 2nd arg of chill_print_type_scalar to LONGEST. chill_print_type_scalar): Make static and add prototype. * hppa-tdep.c (get_field): Ifdef out unused function. (set_field): Ditto. (extract_3): Ditto. (extract_5_store): Ditto. (extract_11): Ditto. (extract_12): Ditto. (deposit_17): Ditto. (extract_14): Convert to static and add prototype. (deposit_14): Ditto. (extract_21): Ditto. (deposit_21): Ditto. (extract_17): Ditto. (extract_5r_store): Ditto. (extract_5R_store): Ditto. (extract_5_load): Ditto. (find_proc_framesize): Ditto. (find_dummy_frame_regs): Ditto. (sign_extend): Ditto. (find_unwind_entry): Add prototype. (find_return_regnum): Ditto. (unwind_command): Ditto. (find_dummy_frame_regs): Add parens around subtraction in operand of bitwise-and. (skip_prologue): Add parens around operands of logical-and inside operand of logical-or. (sign_extend): Add parens around operands of subtraction inside operand of shift. (low_sign_extend): Ditto. * top.c (filename_completer): Convert old style decl of filename_completion_function into prototype. * f-lang.c (patch_common_entries): Ifdef out unused function. * stabsread.c (read_cfront_baseclasses): Remove unused local variable "msg_noterm". (resolve_cfront_continuation): Remove unused local variable "fip". (read_type): Remove unused variable xtypenums. (read_cfront_static_fields): Remove unused variable "i". (read_cfront_static_fields): Remove unused variable "nfields". (read_cfront_member_functions): Add missing comment terminator. (read_cfront_static_fields): Return 1 rather than random value. (read_cfront_baseclasses): Ditto. (read_cfront_baseclasses): Ditto. (read_cfront_baseclasses): Ditto. * somsolib.c (som_solib_create_inferior_hook): Remove unused variable "u". (som_solib_create_inferior_hook): Remove unused variable shadow_contents. (language.h): Add for needed prototypes. (som_solib_sharedlibrary_command): Add prototype. * hpread.c: (hpread_read_array_type): Add prototype. * somread.c (hpread_build_pysmtabs): Add prototype. (hpread_symfile_finish): Ditto. (hpread_symfile_init): Ditto. * hppah-nat.c (fetch_register): Convert old style decl to prototype. (gdbcore.h): Include for needed prototypes. (fetch_register): Remove unused variable "mess". * remote-pa.c (get_offsets): Ifdef out unused function. (remote_start_remote): Remove unused variable "timeout". (boot_board): Add prototype. (reaad_frame): Add prototype. (getpkt): Remove unused variable "bp". (remote_kill): Add prototype. (remote_mourn): Add prototype. (remote_insert_breakpoint): Add prototype. (remote_remove_breakpoint): Add prototype. * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined. * infcmd.c (do_registers_info): Only need prototype if DO_REGISTERS_INFO is not defined. (breakpoint_auto_delete_contents): Only need if CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1996-06-16 * somsolib.c (som_solib_create_inferior_hook): Handle trackingJeff Law1-48/+69
of shl_load calls for hpux10. Just something that needed fixing.
1996-04-09 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets andFred Fish1-0/+1
dependencies. * scm-lang.c (gdb_string.h): Include. * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow call to correct type (char *). * cp-valprint.c (cp_print_static_field): Ditto. * somsolib.c (som_solib_create_inferior_hook): Add a declaration for external find_unwind_entry function (from hppa-tdep.c). * remote-pa.c (remote_write_bytes, remote_read_bytes): Change type of second arg to "char *" to be type compatible with dcache. (remote_wait): Cast second arg to strtol to correct type. * hppa-tdep.c (compare_unwind_entries): Change argument types to "const void *" to be type compatible with qsort, and then assign to local args prior to use.
1996-02-28 * somsolib.c (som_solib_create_inferior_hook): Before returningJeff Law1-0/+1
call clear_symtab_users. Fixes minor hpux problem with 7763 patches.
1996-02-19 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.Jeff Law1-43/+22
Minor build nit. * breakpoint.h (remove_solib_event_breakpoints): Declare. * breakpoint.c (remove_solib_event_breakpoints): New function. * somsolib.c (solib_create_inferior_hook): Remove all solib event breakpoints before inserting any new ones. Use a solib event breakpoint for the breakpoint at "_start". Remove extraneous "\n" from calls to warning. Don't leave bogus breakpoints in the breakpoint chain. Simplify solib_create_inferior_hook and allow for debugging of startup code (more 7763 related changes). * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes name array. Another minor nit.
1996-02-12 * somsolib.c (som_solib_add): Use xmalloc rather than bareFred Fish1-1/+1
unchecked call to malloc. * remote-mips.c (pmon_load_fast): ditto. * remote-mm.c (mm_open): ditto. * hpread.c (hpread_lookup_type): ditto. * remote-adapt.c (adapt_open): ditto.
1996-01-23 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.Jeff Law1-12/+112
All references changed. * breakpoint.c (bpstat_what): Add shlib_event to the class types. Update state table. Reformat so that it's still readable. When we hit the shlib_event breakpoint, set the calss of shlib_event. (breakpoint_1): Add "shlib events" as a breakpoint type. Print the shlib_event breakpoint like other breakpoints. (create_solib_event_breakpoint): New function. (breakpoint_re_set_one): Handle solib_event breakpoints. * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type. (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS action. (create_solib_event_breakpoint): Declare. * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat. (normal_stop): Inform the user when the inferior stoped due to a shared library event. (_initialize_infrun): Add new set/show variable "stop_on-solib-events" to control whether or not gdb continues the inferior or stops it when a shared library event occurs. * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function. * somsolib.c (TODO list): Update. (som_solib_create_inferior_hook): Arrange for gdb to be notified when significant shared library events occur. * hppa-tdep.c (find_unwind_entry): No longer static. First cut at the machine independent changes for 7363. Also includes code to automatically track shl_load/shl_unload calls on hpux.
1995-10-13 * somsolib.c (som_solib_add): Just give a warning if a fileJeff Law1-1/+17
mentioned in the dld_list can't be found. Warning seems more reasonable than croaking. * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP): Dig out the PC from the PC queues rather than %r31. Fixes net bug. Might also fix one of the hpux10 corefile.exp failures, not sure (will test when I get back monday morning).
1995-10-12 * corelow.c (core_open): Don't update the to_sections andJeff Law1-0/+16
to_sections_end fields in core_ops here. It's too late. * irix5-nat.c (solib_add): Update the to_sections and to_sections_end fields in core_ops here if needed. * osfsolib.c (solib_add): Likewise. * rs6000-nat.c (xcoff_reload_core): Likewise. * solib.c (solib_add): Likewise. * somsolib.c (solib_add): Likewise.
1995-09-18 * somsolib.c (auto_solib_add_at_startup): Delete definition. NoJeff Law1-11/+0
longer needed.
1995-09-13 * somsolib.c (auto_solib_add_at_startup): Define new global variable.Jeff Law1-1/+24
(som_solib_create_inferior_hook): Don't add libraries if auto_solib_add_at_startup is zero. (_initialize_som_solib): Add command to toggle auto_solib_add_at_startup.
1995-08-02Update FSF address.Fred Fish1-1/+1
1995-06-19 * somsolib.c (som_solib_add): Validate regexp argument.Jeff Law1-9/+39
Don't assume the first entry on dld's library list is the main program. Don't load the same library more than once and don't consider the main program a shared library. (som_solib_sharedlibrary_command): New function (_initialize_som_solib): Add "sharedlibrary" command. mentor-7135
1995-06-12Zap static data problem off the TODO list.Jeff Law1-3/+0
1995-06-12 * somsolib.c: Include gdb-stabs.h.Jeff Law1-5/+12
(som_solib_section_offsets): Use SECT_OFF_XXX rather than 0, 1, etc. Initialize offsets for RODATA & BSS too. Remainder of mentor-6302.
1995-06-07 * somsolib.c (som_solib_section_offsets): Handle relative pathnames.Jeff Law1-2/+3
Part of mentor-6302.
1995-03-24 * somsolib.c (som_solib_add): Handle case where a shared libraryJeff Law1-9/+6
referenced by a core file has sections without the SEC_ALLOC bit set (eg stabs sections).
1995-03-09 * somsolib.c (som_solib_section_offsets): Get offset of textJeff Law1-1/+2
section right.
1995-02-09 * somread.c (som_symtab_read): Handle dynamic relocation for bothJeff Law1-2/+38
text and data symbols. (som_symfile_offsets): If objfile is a shared library, then get text and data offsets from the shared library structures. * somsolib.c (som_solib_add): Copy the bfd pointer from the objfile rather than reopening the file again. (som_solib_section_offsets): New function. * somsolib.h (som_solib_section_offsets): Declare.
1995-02-09 * config/sparc/tm-sun4sol2.h, dbxread.c: RenameJim Kingdon1-5/+5
N_SO_ADDRESS_MAYBE_MISSING to SOFUN_ADDRESS_MAYBE_MISSING. * symtab.h (minimal_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Add filename field. * elfread.c (record_minimal_symbol_and_info), minsyms.c, symtab.h (prim_record_minimal_symbol_and_info): Return newly created symbol. * elfread.c (elf_symtab_read) [SOFUN_ADDRESS_MAYBE_MISSING]: Set filename field of minimal symbol. * symmisc.c (dump_msymbols) [SOFUN_ADDRESS_MAYBE_MISSING]: Print filename field. * minsyms.c, symtab.h (lookup_minimal_symbol): New arg sfile. * symm-tdep.c, somsolib.c, hppa-tdep.c, c-exp.y, f-exp.y, m2-exp.y, nindy-tdep.c, m3-nat.c, irix5-nat.c, hpread.c, os9kread.c, breakpoint.c, alpha-tdep.c, valops.c, symtab.c, printcmd.c, dbxread.c: Change callers to pass NULL for sfile. * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Find address of function from minimal symbols. * partial-stab.h, case 'f', 'F': Call find_stab_function_addr instead of getting pst->textlow from the stab. * minsyms.c (find_stab_function_addr): New function.
1994-12-27 * somsolib.c (som_solib_add): Return without loading any sharedJeff Law1-0/+6
libraries if symfile_objfile is NULL. (som_solib_create_inferior_hook): Likewise.
1994-12-01 * somsolib.c (som_solib_get_got_by_pc): New function.Jeff Law1-2/+23
* somsolib.h (som_solib_get_got_by_pc): Add extern decl. * hppa-tdep.c (hppa_fix_call_dummy): Handle case where FUN is the function's export stub or real address in a shared library.
1994-11-13 * somsolib.c: Add TODO list.Jeff Law1-36/+280
(som_solib_add): Immediately return if $SHLIB_INFO$ sections does not exist or has size zero. Slightly simplify error handling. Keep an internal list of all the loaded shared libraries and various tidbits of information about the loaded shared libraries. Build section tables for each loaded shared library and add those tables to the core target if necessary. (som_solib_create_inferior_hook): Force re-reading of shared libraries at exec time. (som_sharedlibrary_info_command): New function for dumping information about the currently loaded shared libraries. (_initialize_som_solib): New function.
1994-11-11 * hppa-tdep.c (rp_saved): Handle IMPORT stubs too.Jeff Law1-0/+36
* somsolib.c (som_solib_add): Check the value of __dld_flags, if it indicates __dld_list is not valid return an error. If it indicates that libraries were not mapped privately, issue a warning.
1994-11-07 * Beginnings of SOM shared library support. Breakpoints andJeff Law1-0/+319
single frame backtracing within the library only. Only works when using the HPUX 9 dynamic linker. More functionality to be added soon. * somsolib.c, somsolib.h: New files. * Makefile.in (HFILES_NO_SRCDIR): Add somsolib.h (ALLDEPFILES): Add somsolib.c. (somsolib.o): Add some dependencies. * mpw-make.in (HFILES_NO_SRCDIR): Add somsolib.h (ALLDEPFILES): Add somsolib.c. (somsolib.o): Add some dependencies. * somread.c (som_symtab_read): Accept multiple section offsets. All callers changed. Adjust all text symbols with the first section offset. * symfile.c (find_lowest_section): Enable this function. Add some tie-breaking logic when sections have the same vma. (syms_from_objfile): Use find_lowest_section rather than looking for ".text" by name. Relax warning to only warn if the lowest section is not a code section. * config/pa/{hppabsd.mh, hppahpux.mh} (NATDEPFILES): Add somsolib.o * config/pa/{nm-hppab.h, nm-hppah.h}: Include somsolib.h.