Commit Graph

6634 Commits

Author SHA1 Message Date
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
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 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 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
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
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
Jason Thorpe acceddb653 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove. 2002-01-18 18:14:51 +00:00
Jason Thorpe ec32e4bec5 * alpha-tdep.c: Update copyright years.
(alpha_next_pc): New function.
(alpha_software_single_step): Ditto.
* config/alpha/tm-alpha.h: Add prototype for
alpha_software_single_step.
2002-01-18 18:00:44 +00:00
Jason Thorpe e771a87134 * alphabsd-nat.c: Update copyright years.
(fill_gregset): Use regcache_collect.
(fill_fpregset): Likewise.
(fetch_inferior_registers): Only fetch integer registers
if requested to do so.
(store_inferior_registers): Only store integer registers
if requested to do so.
2002-01-18 17:47:13 +00:00
Andrew Cagney 7708fa0111 Remove XDEPFILES from GDB. 2002-01-18 04:51:10 +00:00
Andrew Cagney 375fc98382 Change behavour of internal-error to quit and dump core by default. 2002-01-17 23:33:39 +00:00
Andrew Cagney 8926118ce2 Remove else clause to #if UI_OUT. 2002-01-17 22:15:18 +00:00
Daniel Jacobowitz db728ff7cd 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
        gdbserver/low-nbsd.c, gdbserver/low-sim.c,
        gdbserver/low-sparc.c, gdbserver/low-sun3.c,
        gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
2002-01-17 21:13:50 +00:00
Daniel Jacobowitz 45b7b34510 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
* low-hppabsd.c (myattach): New function, returning -1.
        * low-lynx.c (myattach): Likewise.
        * low-nbsd.c (myattach): Likewise.
        * low-sim.c (myattach): Likewise.
        * low-sparc.c (myattach): Likewise.
        * low-sun3.c (myattach): Likewise.

        * low-linux.c (myattach): New function.

        * server.c (attach_inferior): New function.
        (main): Handle "--attach".
2002-01-17 20:46:16 +00:00
Andrew Cagney 8de3c354c7 Daniel J as C++ maintainer. 2002-01-17 02:04:27 +00:00
Daniel Jacobowitz b012904272 * c-typeprint.c (is_type_conversion_operator): Add additional
check for non-conversion operators.
2002-01-16 02:43:38 +00:00
Michael Snyder ba8679fb81 Fix oops with previous checkin. 2002-01-15 20:14:04 +00:00
Michael Snyder 2bf543a6e7 2002-01-10 Michael Snyder <msnyder@redhat.com>
* linux-proc.c: Add "info proc" command, a la procfs.c.
	(read_mapping): New function, abstract and re-use code.
	(linux_find_memory_regions): Use new func read_mapping.
	(linux_info_proc_cmd): New function, implement "info proc".
	(_initialize_linux_proc): Add new command "info proc".
2002-01-15 20:10:55 +00:00
Michael Snyder e4f9b4d584 2002-01-15 Michael Snyder <msnyder@redhat.com>
* symfile.c (generic_load): Use bfd_map_over_sections method
	instead of manipulating bfd structure members directly.
	(add_section_size_callback): New function, bfd sections callback
        used by generic_load.
	(load_sections_callback): New function, bfd sections callback
        used by generic_load.
2002-01-15 20:00:56 +00:00
Elena Zannoni 08cf96df0e 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
[Based on work by Jim Blandy]

	* gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
	(builtin_type_vec128): Export.

	* gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
	types.
	(builtin_type_vec128): New builtin type for 128 bit vector
	registers.
	(build_gdbtypes): Initialize builtin_type_v16qi and
	builtin_type_v8hi. Create the vec128 register builtin type
	structure.
	(build_builtin_type_vec128): New function.
 	(_initialize_gdbtypes): Register builtin_type_v16qi and
	builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.

	* rs6000-tdep.c (rs6000_register_virtual_type): Change type of
	AltiVec register to new builtin type.
2002-01-15 19:38:19 +00:00
Daniel Jacobowitz d7242108d7 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
* stabsread.c (read_type): Pass dbx_lookup_type (typenums)
        to make_cv_type.
2002-01-15 16:47:17 +00:00
Andrew Cagney 4ee3352dfb * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
CLEAN_UP_REGISTER_VALUE.
* regcache.c (supply_register): Update only call.
2002-01-15 02:06:47 +00:00
Andrew Cagney f015b2e7fc Mark all 29k targets as obsolete (second attempt to commit this). 2002-01-15 01:52:37 +00:00
Michael Snyder 356ae49dda 2002-01-14 Michael Snyder <msnyder@redhat.com>
* linux-proc.c (linux_do_thread_registers): Ignore fpxregs
	until we can resolve portability issues.
	* gregset.h: Remove references to fpxregs.
	* gcore.c (gcore_command): Initialize note_sec to NULL.
2002-01-14 20:00:48 +00:00
Andrew Cagney ade8f45eaf Rewrite target_signal_to_name(). 2002-01-13 21:58:16 +00:00
Andrew Cagney 89c49e7acb From Petr Ledvina <ledvinap@kae.zcu.cz>:
* signals.c (target_signal_to_name): Verify that SIG is within the
bounds of the signals array.
2002-01-13 21:11:38 +00:00