aboutsummaryrefslogtreecommitdiff
path: root/gdb/somread.c
AgeCommit message (Collapse)AuthorFilesLines
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2000-12-15Replace free() with xfree().Kevin Buettner1-2/+2
2000-10-30* gdbarch.sh, hp-psymtab-read.c, hpread.c, m3-nat.c, mcore-tdep.c,J.T. Conklin1-1/+1
mips-tdep.c, monitor.c, regcache.c, remote-es.c, ser-unix.c, somread.c, tracepoint.c: Fix spelling errors in comments. * gdbarch.c: Regenerate. * gnu-nat.c (S_exception_raise_request): Fix typos and spelling errors in strings. * m3-nat.c (intercept_exec_calls, mach_thread_parse_id): Likewise. * mcore-tdep.c (mcore_analyze_prologue): Likewise. * mips-tdep.c (mips16_next_pc, _initialize_mips_tdep): Likewise. * remote-e7000.c (e7000_start_remote): Likewise. * remote-rdp.c (handle_swi): Likewise. * remote-vx.c (vx_load_command): Likewise. * sh-tdep.c (sh_do_pseudo_register): Likewise. * sol-thread.c (td_err_string): Likewise. * symtab.c (decode_line_2): Likewise. -------------------------------------------------------------------
2000-08-272000-08-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-1/+1
* 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-21/+10
2000-05-28PARAMS removal.Kevin Buettner1-19/+10
2000-05-16Cleanup discard_minimal_symbols cleanup.Andrew Cagney1-1/+1
2000-05-04Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-0/+14
* 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/+7
* 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-10-05import gdb-1999-10-04 snapshotJason Molenda1-5/+5
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-10/+7
1999-08-16import gdb-1999-08-16 snapshotJason Molenda1-28/+0
1999-08-09import gdb-1999-08-09 snapshotJason Molenda1-7/+6
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-193/+200
1999-06-07import gdb-1999-06-07 snapshotJason Molenda1-25/+1
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+803
1999-04-16Initial creation of sourceware repositoryStan Shebs1-803/+0
1999-02-02Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-1/+1
* hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg passed to make_cleanup to the correct type. (hpread_quick_traverse): Change fifth arg to call to hpread_end_psymtab to be 0. Compare CURR_MODULE_END to 0 rather than NULL. Get rid of ifdef'ed out code. (scan_procs): Get rid of ifdef'ed out code. * somread.c (som_symfile_read): Coerce first argument passed to make_cleanup to the correct type.
1999-02-02Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-0/+5
* hp-psymtab-read.c (do_pxdb): New function. Check whether the file needs to be processed by pxdb (an HP debug info massaging tool), if so call it. (hpread_build_psymtabs): Initialize scan_start to 0 and simplify flow of control. * somread.c (som_symfile_read): Add call to do_pxdb (), in hp-psymtab-read.c. * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific code. (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now in hp-psymtab-read.c.
1998-12-31all remaining *.c *.h files from hp merge.David Taylor1-9/+342
1996-08-09 * somread.c (som_symtab_read): Handle secondary definitionJeff Law1-1/+5
symbols (aka weak symbols).
1996-08-08 * somread.c: Rearrange order of includes to fix warnings underStu Grossman1-3/+2
hpux-10.10. Also don't include sys/file.h.
1996-07-28 * configure.in: Add test for "long long" support.Fred Fish1-0/+11
* 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-07-08(laying some groundwork for a fix for PR 8443)Fred Fish1-19/+2
* 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-07-03 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,Mark Alexander1-3/+1
os9kread.c: Replace identical sym_offsets functions with default_symfile_offsets. * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS macro to allocate section_offsets. * symfile.c (default_symfile_offsets): New function. * symfile.h: Declare default_symfile_offsets. * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to simplify allocation of section_offsets.
1996-01-08 * buildsym.c (end_symtab): Remove sort_pending and sort_linevecJeff Law1-3/+6
arguments. Sorting is now dependent on OBJF_REORDERED. All callers/references changed. * dbxread.c (read_ofile_symtab): Correctly determine value for last_source_start_addr for reordered executables. (process_one_symbol): Handle N_FUN with no name as an end of function marker. * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE is the high text address for a psymtab. (case N_SO): Likewise. (case N_FUN): Handle N_FUN with no name as an end of function marker. * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols at the same address rather than a random subset of them. * coffread.c (coff_symfile_init): Set OBJF_REORDERED. * elfread.c (elf_symfile_init): Similarly. * somread.c (som_symfile_init): Similarly. * xcoffread.c (xcoff_symfile_init): Similarly. Support for debugging reordered executables. Remaining mentor vm changes.
1995-10-19 * Makefile.in (CC-LD): Rename to CC_LD, so MPW xform works.Stan Shebs1-2/+2
(MMALLOC_SRC): Define. (MMALLOC_CFLAGS): Use. (ser-mac.o): Add rule. * dwarfread.c, somread.c, ultra3-nat.c, xcoffread.c: Replace L_SET with SEEK_SET in all calls to bfd_seek. * scm-tags.h (scm_tags): Remove excess comma.
1995-08-02Update FSF address.Fred Fish1-1/+1
1995-08-01* configure.in: Check for working mmap, ansi headers, string.h,J.T. Conklin1-1/+1
strings.h, and memory.h. * configure: Regenerated. * gdb_stat.h: New file, "portable" <sys/stat.h>. * gdb_string.h: New file, "portable" <string.h>. * altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c, convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c, gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c, i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c, mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c, rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c, symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c, ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h" instead of <sys/stat.h>. * alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c, ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c, core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c, dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c, exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c, fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c, inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c, m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c, monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c, printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c, remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c, remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c, remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c, remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c, remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c, solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c, symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c, valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include "gdb_string.h" instead of <string.h>. * gdbtk.c: Likewise. * config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h, sparc/xm-sun4os4.h (HAVE_MMAP): Removed. * config/xm-lynx.h, config/i386/xm-ptx.h, config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h, config/mips/xm-irix3.h, config/mips/xm-mips.h, config/mips/xm-news-mips.h, config/mips/xm-riscos.h, config/pa/hppah.h, config/rs6000/xm-rs6000.h, config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h, config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h, config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed. * config/mips/xm-irix3.h, config/mips/xm-mips.h, config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-07-21 * somread.c (som_symtab_read): Add unsatisfied common symbols toJeff Law1-0/+17
the minimal symbol table. All common symbols are "unsatisfied" when -E is passed to the linker. mentor-7462
1995-03-03 * somread.c (check_strange_names): Filter names emitted by the HPJeff Law1-2/+8
compiler when generating PIC code.
1995-02-09 * somread.c (som_symtab_read): Handle dynamic relocation for bothJeff Law1-4/+11
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.
1994-12-12 * f-lang.c: Remove duplicate declaration ofJim Kingdon1-1/+1
builtin_type_f_integer, and only include it in the f_builtin_types once. * somread.c (som_symfile_read): Just assign to objfile->obj_private, not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which the HP compiler doesn't like.
1994-11-25 * hpread.c: Include hp-symtab.h instead of hpux-symtab.h.Jeff Law1-6/+0
Various name changes to match those used by hp-symtab.h. No longer sanitize away hpread changes. Merge ChangeLog.hpread into ChangeLog and ChangeLog-93.
1994-11-07 * Beginnings of SOM shared library support. Breakpoints andJeff Law1-11/+19
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.
1994-08-31 * somread.c (som_symfile_read): Force unwinds to be re-read afterJeff Law1-0/+2
reading in a new partial symbol table.
1994-08-19 * Makefile.in (ALLDEPFILES): Add hpread.c.Jeff Law1-10/+14
(hpread.o): Add dependencies. * somread.c: Do not include "aout/aout64.h". SOM has nothing to do with a.out. (BYTES_IN_WORD): Delete. (som_symfile_read): Call hpread_build_psymtabs to build any minimal symbols based on the HP C native debug symbols. (som_symfile_finish): Call hpread_symfile_finish. (som_symfile_init): Call hpread_symfile_init. * config/pa/tm-hppa.h (HPREAD_ADJUST_STACK_ADDRESS): Define. * hppa-tdep.c (hpread_adjust_stack_address): New function. * config/pa/hppabsd.mh (NATDEPFILES): Add hpread.o * config/pa/hppahpux.mh (NATDEPFILES): Likewise. * hpread.c: New file.
1994-07-14 * dbxread.c: Don't include libbfd.h.Stan Shebs1-3/+0
* dwarfread.c, elfread.c somread.c: Don't include libbfd.h, <time.h>, or <sys/types.h>. * elfread.c (elf_symfile_read): Use only standard BFD functions to collect information about the stab and stab string sections.
1994-06-27 * somread.c: Simplify by using stabsect_build_psymtabs.Jeff Law1-130/+15
* dbxread.c (stabsect_build_psymtabs): New argument "text_name" corresponding to the name of the text section. All references changed. (somstab_build_psymtabs): Delete function, no longer needed.
1994-06-27 * somread.c: Renamed from paread.c. Changed function names andJeff Law1-0/+547
comments to reflect that this file deals with SOM (an object file format), rather than the PA (a cpu). (Makefile.in): Chaned appropriately. (config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise. * dbxread.c (somstab_build_psymtabs): Renamed from pastab_build_psymtabs.