Commit Graph

10878 Commits

Author SHA1 Message Date
Corinna Vinschen 211a4f6935 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
parameter.  Set frameless flag if it exists and depended of
	whether the scanned function is frameless or not.
	(xstormy16_skip_prologue): If function is frameless, return
	result of xstormy16_scan_prologue().
	(xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
	call.
2002-01-22 11:22:23 +00:00
Fred Fish b3ff9d9a65 2002-01-21 Fred Fish <fnf@redhat.com>
* gdb.base/restore.exp (restore_tests): Fix obvious typo, callee
	not caller.
2002-01-22 01:05:06 +00:00
Elena Zannoni f81353e4f9 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
	sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
	sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
	sh_sh4_register_byte, sh_sh4_register_raw_size,
	sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
	sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
	sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
	sh_store_pseudo_register, sh_do_pseudo_register): Call
	gdbarch_tdep() just once, assign result to variable and use that,
	instead of calling the function several times.
2002-01-22 00:22:38 +00:00
Andrew Cagney e9afe819c3 FOOBAR, didn't ChangeLog UI_OUT removal. 2002-01-22 00:08:55 +00:00
gdbadmin f6841f210f *** empty log message *** 2002-01-22 00:00:32 +00:00
Andrew Cagney 6b2f586db6 Add menu entries for ``Remote Debugging''. 2002-01-21 23:27:40 +00:00
Mark Kettenis 63c73a17b2 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
macros instead of LAST_FPU_CTRL_REGNUM.
(store_register): Likewise.
2002-01-21 23:03:13 +00:00
Jim Blandy 39ad761d6d * infcmd.c (run_command): Check that the `exec' target layer's BFD
is up-to-date before running the program, not just when a program
exits.

* testsuite/gdb.base/reread.exp: Check that GDB properly re-reads the
executable file when it changes while no inferior is running.
2002-01-21 21:57:55 +00:00
Fred Fish aaf320fa4a Approved by fnasser@redhat.com:
2002-01-21  Fred Fish  <fnf@redhat.com>
        * gdb.base/maint.exp: Simplify the "maint info breakpoints" test to
        optionally accept the "shlib events" variation.
2002-01-21 20:25:18 +00:00
Fred Fish 3d74b771bd Approved by fnasser@redhat.com:
2002-01-21  Fred Fish  <fnf@redhat.com>
	* arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
	when we have found all instructions we are looking for.
2002-01-21 20:12:36 +00:00
Andrew Cagney 6f05cf9ffa * gdb.texinfo (Remote): Move the sub-section ``The GDB remote
serial protocol'' from here.
(Remote Debugging): To here.  New chapter.
2002-01-21 18:56:05 +00:00
Jim Blandy 808a31f526 * gdb.base/ending-run.c (main): Avoid messing with setvbuf; just
call `fflush' after every `printf', so that the output is produced
at predictable points, regardless of whatever buffering does (or
doesn't) take place.
* gdb.base/ending-run.exp: Adjust tests to expect output to appear
at different points.
2002-01-21 18:46:33 +00:00
Richard Earnshaw 966fbf700a * arm-tdep.c (arm_register_name): New function.
(arm_registers_names): Make static.
* config/arm/tm-arm.h (arm_register_names): Delete declaration.
(arm_register_name): Declare.
(REGISTER_NAME): Use it.
2002-01-21 17:36:11 +00:00
Richard Earnshaw c3b4394c3a Richard Earnshaw <rearnsha@arm.com>
and Kevin Buettner  <kevinb@redhat.com>
Convert arm targets to new FRAME interface.
* arm-tdep.c (struct frame_extra_info): Remove fsr.
(arm_frame_find_save_regs): Delete.
(arm_frame_init_saved_regs): New.
(arm_init_extra_frame_info): Alloacte saved_regs as required.
Allocate extra_info as required.  Convert all uses of fsr.regs
to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
to use extra_info.
(thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
(arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
(check_prologue_cache, save_prologue_cache): Likewise.
(_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
* config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
(FRAME_FIND_SAVED_REGS): Delete.
(arm_frame_find_saved_regs): Delete prototype.
(arm_frame_init_saved_regs): New prototype.
(FRAME_INIT_SAVED_REGS): Define.
2002-01-21 16:27:42 +00:00
Andrew Cagney 61d99182f0 Zap an IEEE_FLOAT. 2002-01-21 03:34:30 +00:00
Andrew Cagney 6aaea2917f * infttrace.c: Include <sys/pstat.h>.
(child_pid_to_exec_file): Revamp.  Use pstat call to get the
exec file if the ttrace equivalent fails.
2002-01-21 01:27:01 +00:00
gdbadmin fa8484114c *** empty log message *** 2002-01-21 00:00:03 +00:00
Andrew Cagney 15f698d230 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
(closeLogFile): Ditto.
2002-01-20 22:44:44 +00:00
Michael Chastain f86ddd7c6f 2002-01-20 Michael Chastain <mec@shout.net>
* top.c (print_gdb_version): Bump copyright year to 2002.
2002-01-20 22:05:15 +00:00
Andrew Cagney 904507ce81 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
Zannoni and Eli Zaretskii.
2002-01-20 21:47:27 +00:00
Daniel Jacobowitz 4420d5e23b Copyright year updates. 2002-01-20 19:46:32 +00:00
Daniel Jacobowitz d7f0b9ce2d 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* buildsym.c: Update copyright years.
	* c-typeprint.c: Likewise.
	* dwarf2read.c: Likewise.
	* f-typeprint.c: Likewise.
	* gdbtypes.c: Likewise.
	* gdbtypes.h: Likewise.
	* hp-symtab-read.c: Likewise.
	* hpread.c: Likewise.
	* mdebugread.c: Likewise.
	* p-typeprint.c: Likewise.
2002-01-20 19:42:04 +00:00
Andrew Cagney 3fd3d7d29c Assume TARGET_BYTE_ORDER_SELECTABLE{,_P} is always true. 2002-01-20 19:26:50 +00:00
Daniel Jacobowitz 3e36a0f45e 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/classes.exp: Update for improved v3 support and skipping
	artificial methods/arguments.
	* gdb.c++/derivation.exp: Likewise.
	* gdb.c++/inherit.exp: Likewise.
	* gdb.c++/method.exp: Likewise.
	* gdb.c++/virtfunc.exp: Likewise.
2002-01-20 19:22:13 +00:00
Daniel Jacobowitz b02dede253 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* gdbtypes.h (struct cplus_struct_type): Add is_artificial to
	member function fields.  Add accessor macro
	TYPE_FN_FIELD_ARTIFICIAL.
	* dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
	* c-typeprint.c (c_type_print_base): Skip artificial member
	functions.
2002-01-20 19:20:16 +00:00
Daniel Jacobowitz c3643761b5 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* f-typeprint.c: Delete unused function f_type_print_args.
	* p-typeprint.c: Delete unused function pascal_type_print_args.
2002-01-20 19:14:59 +00:00
Daniel Jacobowitz 8176bb6dee 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
* gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
	comment.  Add ``artificial'' to ``union field_location''.

	* dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.

	* buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
	* mdebugread.c (parse_symbol): Likewise.
	* stabsread.c (define_symbol): Likewise.
	* hp-symtab-read.c (hpread_function_type): Likewise, instead of
	initializing TYPE_FIELD_BITPOS to n (obsolete).
	(hpread_doc_function_type): Likewise.
	* hpread.c (hpread_function_type): Likewise.
2002-01-20 19:12:23 +00:00
Andrew Cagney 7fd6052758 Remove assumption that there is a host. 2002-01-20 18:19:30 +00:00
Andrew Cagney c2f05ac92e Eliminate IEEE_FLOAT. 2002-01-20 18:05:54 +00:00
Eli Zaretskii 56248298dc (DJGPP Native): Fix overfull hboxes in examples. From Brian Youmans
<3diff@gnu.org>
2002-01-20 11:59:38 +00:00
Eli Zaretskii 798c8bc6fa Fix a typo. 2002-01-20 11:45:22 +00:00
Eli Zaretskii 8a037dd706 Fix last change. 2002-01-20 11:21:25 +00:00
Eli Zaretskii 231b2aadea * gdb.texinfo: Beautify copyright years; fix a typo. 2002-01-20 11:18:28 +00:00
Andreas Jaeger b7c4cbf8b4 2002-01-20 Jiri Smid <smid@suse.cz>
* config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
	* x86-64-linux-nat.c (x86_64_register_u_addr): New function.
	* config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
	* Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
	x86-64-linux-nat.o): Fix dependencies.
2002-01-20 09:29:41 +00:00
Andreas Jaeger abf22e64b8 2002-01-20 Jiri Smid <smid@suse.cz>
* configure.host, configure.tgt: Support x86-64.
	* NEWS: Note new target x86-64.
2002-01-20 09:10:27 +00:00
Andrew Cagney 826000345c Eliminate MALLOC_INCOMPATIBLE. 2002-01-20 04:23:29 +00:00
Andrew Cagney bbe5c628c2 Zap empty host lynx header files. 2002-01-20 03:29:01 +00:00
Jason Thorpe f8453e34b9 * alpha-tdep.c (alpha_register_byte): New function.
(alpha_register_raw_size): Ditto.
(alpha_register_virtual_size): Ditto.
(alpha_skip_prologue_internal): Renamed from
alpha_skip_prologue.
(alpha_skip_prologue): New version that calls
alpha_skip_prologue_internal.
(alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
* config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
second argument from alpha_skip_prologue.
(REGISTER_BYTE): Use alpha_register_byte.
(REGISTER_RAW_SIZE): Use alpha_register_raw_size.
(REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
(FRAMELESS_FUNCTION_INVOCATION): Use
generic_frameless_function_invocation_not.
(FRAME_NUM_ARGS): Use frame_num_args_unknown.
(COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
2002-01-20 01:33:15 +00:00
Andrew Cagney 52d9e61301 Zap empty or unused xm-*.h files. 2002-01-20 01:12:51 +00:00
Andrew Cagney 2d1b2124ee Use MAXPATHLEN when no PATH_MAX. 2002-01-20 00:44:47 +00:00
Jason Thorpe ee1f65f0e3 * alpha-tdep.c (alpha_call_dummy_words): New.
* config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
(CALL_DUMMY_P): Define.
(CALL_DUMMY_WORDS): Define.
(SIZEOF_CALL_DUMMY_WORDS): Define.
2002-01-20 00:23:10 +00:00
Per Bothner 98081e55d9 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
isn't NULL, which can happen with some gcj-3.x-produced code.
2002-01-20 00:09:59 +00:00
gdbadmin 20b7f9f6eb *** empty log message *** 2002-01-20 00:00:32 +00:00
Jason Thorpe 0d056799fd * alpha-tdep.c (alpha_register_virtual_type): New function.
(alpha_init_frame_pc_first): Ditto.
(alpha_fix_call_dummy): Ditto.
(alpha_store_struct_return): Ditto.
(alpha_extract_struct_value_address): Ditto.
* config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
alpha_register_virtual_type.
(STORE_STRUCT_RETURN): Use alpha_store_struct_return.
(EXTRACT_STRUCT_VALUE_ADDRESS): Use
alpha_extract_struct_value_address.
(FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
(INIT_FRAME_PC): Use init_frame_pc_noop.
(INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
2002-01-19 20:22:28 +00:00
Mark Kettenis 4604bcad46 * i386gnu-nat.c: Include "i386-tdep.h".
(fetch_fpregs): Simplify code dealing with uninitialized floating
point states such that it doesn't require FP7_REGNUM.
2002-01-19 12:51:04 +00:00
Jason Thorpe 140f998426 * alpha-tdep.c (frame_extra_info): New.
(alpha_find_saved_regs): Make static.  Use
frame->extra_info.
(alpha_frame_init_saved_regs): New function.
(alpha_frame_saved_pc): Use frame->extra_info.
(temp_saved_regs): Don't declare as struct frame_saved_regs.
(heuristic_proc_desc): Adjust for temp_saved_regs changes.
(init_extra_frame_info): Rename to...
(alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
(alpha_print_extra_frame_info): New function.
(alpha_frame_locals_address): Ditto.
(alpha_frame_args_address): Ditto.
(alpha_pop_frame): Use frame->extra_info.
* config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
alpha_frame_args_address.
(FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
(alpha_find_saved_regs): Remove prototype.
(FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
(EXTRA_FRAME_INFO): Remove.
(INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
(PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
2002-01-19 06:44:56 +00:00
Jason Thorpe d734c450e1 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
(alpha_cannot_fetch_register): Ditto.
(alpha_cannot_store_register): Ditto.
(alpha_register_convertible): Ditto.
(alpha_use_struct_convention): Ditto.
* config/alpha/tm-alpha.h: Update copyright years.
(IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
(INNER_THAN): Use core_addr_lessthan.
(CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
(CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
(REGISTER_CONVERTIBLE): Use alpha_register_convertible.
(USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
(FRAME_CHAIN): Remove unnecessary cast.
2002-01-19 05:26:47 +00:00
Andrew Cagney b4ceaee622 Mark testsuite/gdb.hp/gdb.threads-hp/ as obsolete. 2002-01-19 03:48:21 +00:00
Andrew Cagney 0a65a603d3 Remove ATTRIBUTE_UNUSED. Update (C). 2002-01-19 03:32:43 +00:00
Jason Thorpe 636a6dfc8d * alpha-tdep.c (alpha_register_name): New function.
* config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
(REGISTER_NAME): Define.
2002-01-19 00:09:16 +00:00