Commit Graph

8198 Commits

Author SHA1 Message Date
Mark Kettenis 8bb2c1226b * configure.in: Create "Checks for programs" section, and move
appropriate tests there.
2003-01-02 00:51:28 +00:00
Mark Kettenis 9a15616775 * configure.in: Create "Checks for libraries" section, and move
appropriate tests there.  Cleanup check for wctype in libw.  Use
AC_SEARCH_LIBS to see whether we need libsocket.
* configure: Regenerated.
2003-01-01 23:50:46 +00:00
Mark Kettenis 3250596b89 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
* config.in, configure: Regenerated.
2002-12-31 13:05:02 +00:00
Mark Kettenis 9608ab8b2a * gdb_dirent.h: Cleanup and update code to match the example in
the Autoconf manual.
* configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
* configure: Regenerated.
2002-12-31 12:41:00 +00:00
Adam Fedor 7ee21aad7d objc-exp.y (parse_number): Cast sscanf arguments to proper type.
(yylex): Initialize c to avoid uninitialized warning.
2002-12-31 04:48:32 +00:00
Kazu Hirata 4c8eeedd8b * doc/fdl.texi: Revert the last change. 2002-12-30 02:47:27 +00:00
Mark Kettenis 6f2ecac5d9 * tracepoint.c (ISATTY): Removed. 2002-12-28 23:22:21 +00:00
Joel Brobecker 60383d105d Continuing work to convert the hppa targets to multiarch partil.
* hppa-tdep.c: Add some missing forward declarations.
        (frameless_function_invocation): Prefix the function name
        by "hppa_" to avoid polluting the namespace.  Update all calls
        to use the new function name.
        (saved_pc_after_call): Ditto.
        (init_extra_frame_info): Ditto.
        (frame_chain): Ditto.
        (push_dummy_frame): Ditto.
        (target_read_pc): Ditto.
        (target_write_pc): Ditto.
        (in_solib_call_trampoline): Ditto.
        (in_solib_return_trampoline): Ditto.
        (skip_trampoline_code): Ditto.
        (hppa_read_fp): New function, renamed from target_read_fp.
        (hppa_target_read_fp): New function, using hppa_read_fp.
        This function conforms to the function profile for the
        READ_FP gdbarch method.
        (hppa_extract_struct_value_address): New function, extracted
        from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
        macro.
        (hppa_frame_num_args): New function.
        (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.

        * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
        inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
        for the switch to multiarch partial.
        Update some of the macros definitions to match some changes
        described above in the name of the function they are calling.
        (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
        not be straightforward to convert. Do now wrap it inside
        "#if !... #endif" to remember that this macro has still not
        been taken care of.
        (FIX_CALL_DUMMY): Likewise.
2002-12-26 20:10:13 +00:00
Joel Brobecker 60e1ff2716 Continuing work to convert the hppa targets to multiarch partial.
* hppa-tdep.c: (hppa_register_raw_size): New function replacing
       the body of macro REGISTER_RAW_SIZE.
       * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
       config/pa/tm-hppah.h. These functions will be used to initialize
       the gdbarch structure.
       (hppa_hpux_pc_in_sigtramp): New function.
       (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
       (hppa_hpux_frame_base_before_sigtramp): New function.
       (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
       Add gdbcore.h #include.
       * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
       of this gdbarch-eligible macro to a call to the new associated
       function.
       * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
       (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
       into a call to the new associated function.
       (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
       (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
       * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
2002-12-26 09:36:43 +00:00
David Carlton 6c756a306f 2002-12-24 David Carlton <carlton@math.stanford.edu>
* config/sparc/tm-sparc.h: Delete duplicate definition of
	DEPRECATED_PC_IN_CALL_DUMMY.
2002-12-24 20:14:30 +00:00
Kevin Buettner 96f026fc7b Add GNU/Linux specific support for the n32 and n64 MIPS ABIs. 2002-12-24 19:21:10 +00:00
Adam Fedor 5a24b7e3b5 maint.c (maintenance_demangle): Add switch to demangle
ObjC language symbols as well.
2002-12-24 03:57:58 +00:00
Adam Fedor 9d1127c56c (lookup_objc_class, lookup_child_selector): Remove
last argument from complaint function call.
2002-12-24 03:42:36 +00:00
Kevin Buettner bcf16802ca * exec.c (print_section_info): Add FIXME comments regarding format
string choices.
2002-12-23 23:36:39 +00:00
Daniel Jacobowitz 710686b360 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
* config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.

	* config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
2002-12-23 17:07:28 +00:00
David Carlton e45febe22e 2002-12-23 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
	(lookup_symbol_aux_minsyms): Delete 'force_return' argument.
	(search_symbols): Call lookup_symbol_aux_minsyms to find debugging
	information associated to a minsym, not lookup_symbol.
2002-12-23 16:43:18 +00:00
Mark Kettenis 2213a65dbc * x86-64-tdep.h (x86_64_init_abi): New prototype.
* x86-64-tdep.c (i386_fp_regnum_p): Remove function.
(x86_64_init_abi): Make non-static.  Set number of pseudo
registers to 0.
(x86_64_gdbarch_init): Remove function.
(_initialize_x86_64_tdep): Renove register_gdbarch_init call.
Remove code dealing with dissambly.
* x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
(_initialize_x86_64_linux_tdep): New function.
* config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
i386-tdep.o.
2002-12-21 21:09:58 +00:00
Mark Kettenis 05816f706e * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
(struct gdb_osabi_handler): Remove member `arch'.  Add member
`arch_info'.
(gdbarch_register_osabi): Add new argument `machine'.  Use ot to
construct a `struct bfd_arch_info' and store it in the `struct
gdb_osabi_handler' that is created.
(gdbarch_init_osabi): Check for compatibility based on machine
type and architecture.
* osabi.h (gdbarch_register_osabi): Adjust prototype and update
comment.
* alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
second argument in call to gdbarch_register_osabi.
* alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
* alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
* alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
* arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
* arm-tdep.c (_initialize_arm_tdep): Likewise.
* armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
* hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
* i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
* i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
* i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
* i386-tdep.c (_initialize_i386_tdep): Likewise.
* i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
* i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
* i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
_initialize_i386bsd_tdep and updated likewise.
* i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
* i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
* mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
* mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
* mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
* ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
* ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
* ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
* shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
* sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
2002-12-21 19:58:07 +00:00
Kevin Buettner 743b930b59 Add DT_MIPS_RLD_MAP case for 64-bit targets. 2002-12-21 06:43:25 +00:00
Kevin Buettner 3758ac483d Fix bug introduced when multiarching NUM_REGS. 2002-12-21 06:36:02 +00:00
Kevin Buettner 19ed69dd06 Multiarch SVR4_FETCH_LINK_MAP_OFFSETS and GET_LONGJMP_TARGET for GNU/Linux/MIPS. 2002-12-21 05:07:36 +00:00
Elena Zannoni 7990a5784c 2002-12-19 Keith Seitz <keiths@redhat.com>
patch committed by Elena Zannoni  <ezannoni@redhat.com>
	* thread.c (do_captured_list_thread_ids): Call prune_threads and
	target_find_new_threads. Fix for PR mi/669.
2002-12-20 03:37:33 +00:00
David Carlton 84fba31b3b 2002-12-19 David Carlton <carlton@math.stanford.edu>
* linespec.c (decode_line_1): Move code into decode_all_digits.
	(decode_all_digits): New function.
2002-12-19 18:56:14 +00:00
Kevin Buettner 2fc70c99f5 * exec.c (print_section_info): Select a format string to use with
local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
2002-12-19 18:49:27 +00:00
Andrew Cagney 2f1071075b 2002-12-18 Andrew Cagney <ac131313@redhat.com>
* frame.c (deprecated_update_current_frame_pc_hack): Replace
	deprecated_update_current_frame_pc_hack.
	(deprecated_update_frame_base_hack): New function.
	* frame.h (deprecated_update_frame_pc_hack): Replace
	(deprecated_update_frame_base_hack): Declare.
	* infrun.c (normal_stop): Update.
2002-12-18 18:03:42 +00:00
Andrew Cagney c9012c7106 2002-12-18 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_init_extra_frame_info): Use
	frame_extra_info_zalloc.
	(rs6000_frame_args_address): Use get_frame_extra_info.
	(frame_get_saved_regs): Use get_frame_saved_regs.
	(frame_initial_stack_address): Use get_frame_saved_regs and
	get_frame_extra_info.
	(frame_initial_stack_address): Use get_frame_extra_info.
2002-12-18 15:23:22 +00:00
Kevin Buettner 6819ae388f Don't use NUM_REGS to determine array size. 2002-12-17 23:13:31 +00:00
Richard Earnshaw 625602f2f4 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
All uses changed
(ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
2002-12-17 22:11:31 +00:00
David Carlton 38d49aff68 2002-12-17 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_partial_symbol): Don't search past the end of
	the partial symbols.
2002-12-17 18:34:06 +00:00
Andrew Cagney 30f7db39bd 2002-12-17 Andrew Cagney <ac131313@redhat.com>
* stack.c (frame_info): Use get_frame_saved_regs.
	* breakpoint.c (until_break_command): Use get_frame_pc.
2002-12-17 17:27:45 +00:00
Kevin Buettner 231367095d Replace complain() with complaint(). 2002-12-17 00:39:08 +00:00
Andrew Cagney 1a14e23479 2002-12-16 Andrew Cagney <ac131313@redhat.com>
* config/arc/arc.mt, config/arc/tm-arc.h: Delete.
	* config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
	* config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
	* config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
	* config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
	* config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
	* config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
	* config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
	* config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
	* config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
	* config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
	* config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
	* config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
	* config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
	* config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
	* config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
	* config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
	* config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
	* config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
	* config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
	* config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
	* config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
	* config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
	* config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
	* config/m88k/xm-dgux.h: Delete.
	* fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
	* i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
	* os9kread.c, remote-bug.c, remote-nindy.c: Delete.
	* remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
	* d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
	* ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
	* ch-valprint.c: Delete.
2002-12-16 20:39:23 +00:00
Daniel Jacobowitz 04e688714f * infrun.c (handle_inferior_event): Rearrange code to resume if
no catchpoint triggers for an event.
2002-12-15 20:38:52 +00:00
Daniel Jacobowitz deb3b17b03 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
and TARGET_WAITKIND_VFORKED cases.
2002-12-15 20:15:56 +00:00
Daniel Jacobowitz 675bf4cbc8 * infrun.c (handle_inferior_event): Assume that catchpoints
are not affected by DECR_PC_AFTER_BREAK.
2002-12-15 20:08:02 +00:00
Daniel Jacobowitz 81e5617914 * target.c (update_current_target): Don't inherit DONT_USE.
* target.h (struct target_ops): Remove DONT_USE.
	(target_next): Remove macro.
2002-12-15 19:00:33 +00:00
Mark Kettenis a3edc55b09 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654. 2002-12-15 16:05:37 +00:00
Richard Earnshaw b508a996e6 * arm-tdep.c (convert_from_extended): New argument to hold the
type of floating point result we want to convert to.  Make input
argument const.  Fix all callers.
(convert_to_extended): Similarly.
(arm_extract_return_value): Now takes a regcache argument.  Change
code to use regcache accessor functions.  Correctly extract
smaller-than-word results on big-endian machines.
(arm_store_return_value): Now takes a regcache argument.  Change
code to use regcache accessor functions.  Correctly zero/sign extend
smaller than word results before storing into r0.
(arm_gdbarch_init): Register new-style extract_return_value and
store_return_value functions.
2002-12-14 10:42:05 +00:00
Michael Snyder 3197744f24 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
* thread-db.c (thread_from_lwp): Uniquify error msg.
	(lwp_from_thread): Ditto.
	(check_event): Ditto.
	(find_new_threads_callback): Ditto.
	(thread_db_pid_to_str): Ditto.
2002-12-13 23:28:28 +00:00
Andrew Cagney 6baff1d2e5 2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.h (get_frame_saved_regs): Declare.
	(frame_saved_regs_zalloc): Change return type to CORE_ADDR
	pointer.
	* frame.c (get_frame_saved_regs): New function.
	(frame_saved_regs_zalloc): Return the allocated saved_regs.
2002-12-13 23:18:56 +00:00
Andrew Cagney b87efeee0c 2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.c (deprecated_update_current_frame_pc_hack): New
	function.
	* frame.h (deprecated_update_current_frame_pc_hack): Declare.
	* infrun.c (normal_stop): Use said function instead of directly
	modifying the frame's PC.
2002-12-13 21:57:40 +00:00
Alexandre Oliva 3de2dc4ff6 * frame.h (frame_id_unwind_ftype): Fix typo in return type. 2002-12-13 20:21:32 +00:00
Kevin Buettner fe29b929e2 Multiarch NUM_REGS for MIPS. 2002-12-13 18:09:30 +00:00
Jeff Johnston c04e0a08c9 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
* defs.h (init_last_source_visited): New prototype.
        (add_path): Ditto.
        * source.c (add_path): New function that adds to a specified path.
        (mod_path): Change to call add_path.
        (init_last_source_visited): New function to allow interfaces to
        initialize static variable: last_source_visited.  Part of fix
        for PR gdb/741.
        * Makefile.in: Add support for mi/mi-cmd-env.c.
2002-12-13 17:55:49 +00:00
Andrew Cagney c689142bec 2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.h (frame_id_unwind): Declare.
	(struct frame_info): Add fields id_unwind, id_unwind_cache_p and
	id_unwind_cache.
	(frame_id_unwind_ftype): Declare.
	* frame.c (frame_id_unwind): New function.
	(set_unwind_by_pc): Add unwind_id parameter.  Initialized.
	(create_new_frame, get_prev_frame): Pass id_unwind to
	set_unwind_by_pc.
	(frame_saved_regs_id_unwind): New function.
	(frame_saved_regs_id_unwind): New function.
	* dummy-frame.c (dummy_frame_id_unwind): New function.
	(struct dummy_frame): Add field id.
	(generic_push_dummy_frame): Initialize `id'.
	* dummy-frame.h (dummy_frame_id_unwind): Declare.
2002-12-13 16:40:25 +00:00
Andrew Cagney 18ea5ba4f0 2002-12-13 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (run_stack_dummy): Create a frame ID directly and then
	pass that to set_momentary_breakpoint.  Move comments to where they
	belong.
	* frame.h (set_current_frame): Delete declaration.
	* frame.c (set_current_frame): Delete function.
2002-12-13 16:26:02 +00:00
Andrew Cagney 2c517d0eb4 2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_extra_info_zalloc): New function.
	* frame.h (frame_extra_info_zalloc): Declare.
2002-12-13 16:11:32 +00:00
Joel Brobecker 516b1f280d * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
in the previous prototype change to set_momentary_breakpoint.
2002-12-13 14:37:41 +00:00
Daniel Jacobowitz fbb265fcf2 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
and saw_child_exec.
	(follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
	references to saw_parent_fork, saw_child_fork, and saw_child_exec.
	(stop_stepping): Remove outdated check for child vfork events.
2002-12-12 22:41:21 +00:00
Andrew Cagney 4fd7f624ea 5.3 released. 2002-12-12 06:29:25 +00:00