Commit Graph

13943 Commits

Author SHA1 Message Date
Daniel Jacobowitz bea7185483 * gdb.base/signals.exp: Make backtrace tests more specific. 2003-04-28 00:50:30 +00:00
gdbadmin ccfd2c4da7 *** empty log message *** 2003-04-28 00:00:01 +00:00
Adam Fedor d2630e6981 * linespec.c (decode_objc): New function to decode ObjC calls
(decode_line_1): Check for ObjC calls (using decode_objc)
* Makefile (linespec.o): Update dependencies.
2003-04-27 03:23:38 +00:00
Daniel Jacobowitz 3086aeaed2 * breakpoint.h (struct breakpoint_ops): New.
(struct breakpoint): Add ops member.

	* breakpoint.c (print_bp_stop_message, print_one_breakpoint)
	(mention): Use new breakpoint ops member.
	(set_raw_breakpoint): Initialize ops field to NULL.
	(print_exception_catchpoint, print_one_exception_catchpoint)
	(print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
	(gnu_v3_exception_catchpoint_ops): New.
	(catch_exception_command_1): Call handle_gnu_v3_exceptions.
2003-04-27 01:11:10 +00:00
gdbadmin 44c0647d80 *** empty log message *** 2003-04-27 00:00:31 +00:00
Adam Fedor 1fbec6c348 * Makefile.in (COMMON_OBS): Add objc-lang.o 2003-04-26 01:57:28 +00:00
gdbadmin 626c000b6c *** empty log message *** 2003-04-26 00:00:32 +00:00
Andrew Cagney 0ef21242ea 2003-04-25 Andrew Cagney <cagney@redhat.com>
* d10v-tdep.c (print_insn): Delete function.
	(display_trace): Use TARGET_PRINT_INSN.
	(_initialize_d10v_tdep): Do not set tm_print_insn.
	(d10v_gdbarch_init): Set print_insn.
2003-04-25 22:14:05 +00:00
Andrew Cagney f75493ed72 2003-04-25 Andrew Cagney <cagney@redhat.com>
* d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
	(_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
	(d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
	(NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
	(nr_dmap_regs, a0_regnum): ... new functions.
	(d10v_print_registers_info): Use a0_regnum, use register_size.
	(d10v_register_byte): Delete function.
	(d10v_register_raw_size): Delete function.
	(d10v_register_type): Use a0_regnum.
	(d10v_print_registers_info): Use a0_regnum.
	(D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
	(d10v_gdbarch_init): Do not set register_byte or
	register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
	(d10v_pointer_to_address): Use extract_unsigned_integer instead of
	extract_address.
	(trace_command): Use XCALLOC.
	(print_insn): Delete reference to tm_print_insn.
	(saved_regs_unwinder): Use store_unsigned_integer instead of
	store_address.
	* frame.h (FRAME_OBSTACK_CALLOC): Define
2003-04-25 21:20:58 +00:00
David Carlton 2202b100e8 2003-04-25 David Carlton <carlton@bactrian.org>
* config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
2003-04-25 16:49:22 +00:00
Adam Fedor 4e45ca2e2a * objc-lang.c: Include "valprint.h"
* Makefile.in (objc-lang.o): Update dependencies.
2003-04-25 03:30:17 +00:00
Adam Fedor 93de3e7f81 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
architecture dependant compilation and mark as unimplemented
(until they get put in the gdbarch vector).
2003-04-25 03:18:20 +00:00
gdbadmin 4ac33a9514 *** empty log message *** 2003-04-25 00:00:32 +00:00
gdbadmin 6e94181b1e *** empty log message *** 2003-04-24 00:00:31 +00:00
David Carlton 0f20eeea6c 2003-04-23 David Carlton <carlton@bactrian.org>
* cp-support.c (cp_find_first_component): Accept 'operator' in
	more locations.

2003-04-23  David Carlton  <carlton@bactrian.org>

	* gdb.c++/maint.exp (test_first_component): Add tests for
	'operator' in more locations.
2003-04-23 23:45:24 +00:00
Andrew Cagney 74cfe982ed 2003-04-23 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): Eliminate redundant
	indentation.  Move "saved_async" and "old_cleanups" to where they
	are needed.
2003-04-23 22:28:42 +00:00
Andrew Cagney 5255753375 2003-04-23 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): Eliminate the variables "rc"
	and "buffer".  Move the "name" code to where it is needed.
2003-04-23 22:12:40 +00:00
Andrew Cagney 158775dee3 2003-04-23 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): Move variables "start_sp",
	"dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
	code to ON_STACK switch branch.
2003-04-23 21:14:33 +00:00
Andrew Cagney ebc7896c3c 2003-04-23 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): Make declaration of "i",
	"sal", "bpt" and "old_sp" more local to their use.  Delete #if
	lint.
2003-04-23 20:31:57 +00:00
Andrew Cagney d727590f88 2003-04-23 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): Delete variable
	"n_method_args".  Localize "param_type"'s declaration to the loop
	that it is used.  Reinstate code assigning to said variable -
	deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
	Rationalize code using "param_type".
2003-04-23 19:32:38 +00:00
Andrew Cagney d585e13a97 2003-04-22 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): Use new variable "bp_addr" to
	compute the breakpoint address.  Only call FIX_CALL_DUMMY when
	ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
	to DEPRECATED_PUSH_RETURN_ADDRESS.
2003-04-23 15:02:02 +00:00
gdbadmin e5fe5ced63 *** empty log message *** 2003-04-23 03:38:43 +00:00
Kevin Buettner 051caad9cb * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
on the DWARF2 register number prior to fetching a register.
2003-04-22 23:18:26 +00:00
Joel Brobecker 772968793e * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
Update all the tests using SOFT_FLOAT considering the fact that
        this macro was always set to 0.
        * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
        considering the fact that this macro was always set to 0.
        * hppa-tdep.h (hppa_store_return_value): Likewise.
        (hppa_extract_return_value): Likewise.
2003-04-22 23:04:40 +00:00
Joel Brobecker 4252f1df1a * config/pa/tm-hppa.h: Remove obsolete code, was used by
the hppa-pro target only.
2003-04-22 18:27:47 +00:00
Joel Brobecker 14604c6bf7 Ongoing multi-arch conversion effort for HP/UX:
* config/pa/tm-hppa.h: Move all macro that are no longer
       defined now that GDB_MULTI_ARCH is now set to 1 from here...
       * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
2003-04-22 02:44:27 +00:00
Joel Brobecker 77eb01d11f * config/pa/tm-hppa.h: Obsolete a section that was only used
for hppa-pro.
2003-04-22 01:13:05 +00:00
Joel Brobecker 61995b3b2c Ongoing multi-arch conversion for HP/UX.
* config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
        if already defined (allows hppa64 to stay non-multiarched for now).
        * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
2003-04-22 00:53:54 +00:00
gdbadmin 52ad6187b7 *** empty log message *** 2003-04-22 00:00:32 +00:00
Andrew Cagney 4aa79dcc21 2003-04-21 Andrew Cagney <cagney@redhat.com>
* frame.c (frame_id_eq): Fail when the code_addr's do not match.
2003-04-21 19:34:02 +00:00
Andrew Cagney 0f751ff2f4 2003-04-21 Andrew Cagney <cagney@redhat.com>
* i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
	"i386_num_mmx_regs".
2003-04-21 18:55:52 +00:00
Andrew Cagney 04714b914f 2003-04-21 Andrew Cagney <cagney@redhat.com>
* infcall.c: New file.
	* infcall.h: New file.
	* valarith.c: Include "infcall.h".
	* scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
	* eval.c, ada-valprint.c, ada-lang.c: Ditto.
	* Makefile.in (valarith.o, scm-lang.o): Update dependencies.
	(objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
	(eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
	(SFILES): Add "infcall.c"
	(COMMON_OBS): Add "infcall.o".
	(infcall.o): Specify dependencies.
	* value.h (call_function_by_hand): Delete declaration.
	* inferior.h (run_stack_dummy): Delete declaration.
	* infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
	(run_stack_dummy): Move to "infcall.c", merged into
	call_function_by_hand.
	* valops.c (call_function_by_hand): Moved to "infcall.c".
	(find_function_addr, value_arg_coerce): Ditto.
	(unwindonsignal_p, coerce_float_to_double): Ditto.
	(_initialize_valops): Move "set/show coerce-float-to-double", and
	"set/show unwindonsignal" commands to "infcall.c".
	* v850-tdep.c, target.h: Update comments.
	* sparc-tdep.c (sparc_fix_call_dummy): Update comments.
	* sh-tdep.c (sh_init_extra_frame_info): Update comments.
	(sh64_init_extra_frame_info): Update comments.
	* mn10300-tdep.c: Update comments.
	* mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
	* config/sparc/tm-sparc.h: Update comments.
	* breakpoint.h: Update comments.
	* avr-tdep.c (avr_init_extra_frame_info): Update comments.
	* arm-tdep.c: Update comment.
2003-04-21 16:48:41 +00:00
gdbadmin 7d6c247d0e *** empty log message *** 2003-04-21 00:00:02 +00:00
gdbadmin 0abe530a33 *** empty log message *** 2003-04-20 00:00:31 +00:00
Mark Kettenis c40e1eabaf * i386-tdep.c (i386_num_register_names): New variable.
(i386_num_mmx_regs): Renamed from mmx_num_regs.
(MM0_REGNUM): Remove redundant parentheses in define.
(i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
(i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
i386_mxcsr_regnum_p): Remove redundant parentheses.
(i386_register_name): Use i386_num_register_names.
2003-04-19 14:43:50 +00:00
Mark Kettenis 94ea66b376 * i386-tdep.c (i386_extract_return_value,
i386_store_return_value): Correct check for availability of
floating-point registers.
2003-04-19 14:38:47 +00:00
Mark Kettenis 54299a1dfc * i386-tdep.c (i386_frame_num_args): Remove function.
(i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
2003-04-19 14:34:31 +00:00
Mark Kettenis c86c27affb * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
mmx_regnum_to_fp_regnum.  Adjust all callers.
2003-04-19 14:30:33 +00:00
Mark Kettenis f9d3c2a8ad * i386-tdep.c (i386_get_longjmp_target): Use
TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
and TARGET_CHAR_BIT.  Use extract_typed_address instead of
extract_address.
2003-04-19 14:26:15 +00:00
Mark Kettenis 94ba74a9fa * core-regset.c: Update comments to reflect reality. Re-order
includes.
(fetch_core_registers): Use switch instead of if.  Remove
redundant prototype.
2003-04-19 12:00:48 +00:00
gdbadmin d6ae4bd9d3 *** empty log message *** 2003-04-19 00:00:02 +00:00
Jim Blandy 4074e13c63 * s390-tdep.c (s390_frame_align): New function.
(s390_gdbarch_init): Register it with the gdbarch object.
2003-04-18 20:20:21 +00:00
Richard Henderson e3ab4aba1a * remote.c (minitelnet): Don't redeclare escape_count, echo_check. 2003-04-18 00:21:38 +00:00
gdbadmin efc864b149 *** empty log message *** 2003-04-18 00:00:01 +00:00
Elena Zannoni 627bf7c1c7 2003-04-17 Michael Snyder <msnyder@redhat.com>
Karen Bennet  <bennet@redhat.com>

	Committed by Elena Zannoni  <ezannoni@redhat.com>
	* gdb_gcore.sh: New script to create a core dump of a process.
2003-04-17 20:33:09 +00:00
Elena Zannoni 514621a981 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
* values.c (value_being_returned): Don't fetch the return
        value if the return type is void.
2003-04-17 20:31:43 +00:00
Jeff Johnston b4acd5590b 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
* thread-db.c: Reindented.
2003-04-17 17:30:02 +00:00
Jeff Johnston 530b167e9a 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
* gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
        td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
        as types.
2003-04-17 17:18:49 +00:00
gdbadmin f32ffeb535 *** empty log message *** 2003-04-17 00:00:32 +00:00
Kevin Buettner 610a37459e Fix typo. 2003-04-16 20:44:04 +00:00