Commit Graph

11109 Commits

Author SHA1 Message Date
Andreas Schwab 9852326a86 * m68klinux-nat.c: Fix last change to use regcache_collect
instead of referencing registers[] directly.
2002-01-30 13:57:33 +00:00
Andrew Cagney 977a303014 Delete REGISTER_NAME_ALIAS_HOOK. 2002-01-30 00:18:17 +00:00
gdbadmin d07daa9780 *** empty log message *** 2002-01-30 00:00:04 +00:00
Andrew Cagney ba997f4882 Zap >>>> 2002-01-29 21:37:15 +00:00
Michael Snyder 2076c72b06 2002-01-28 Michael Snyder <msnyder@redhat.com>
* regcache.c (legacy_read_register_gen): Need to be able to
	read pseudo-register as well as real register.
	(legacy_write_register_gen): Ditto.
2002-01-29 20:24:27 +00:00
Andrew Cagney 8642bc8fb0 Revise and update ``Releasing GDB''. 2002-01-29 16:32:02 +00:00
Andrew Cagney 8fcc723b1c Eliminate TARGET_BYTE_ORDER. 2002-01-29 04:42:45 +00:00
Andrew Cagney afe64c1a68 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
(target_byte_order): Initialize to BFD_ENDIAN_BIG.
(initialize_current_architecture): Update target_byte_order using
information from BFD.
* config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
* config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
* config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.

Update doco.
2002-01-29 03:51:19 +00:00
Andrew Cagney 75bc7ddf1b * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
* vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.

* rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
#ifdef INVALID_FLOAT.
* infcmd.c (do_registers_info): Ditto.
* values.c (unpack_double): Ditto.  Add comment.

* config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
already commented out.
2002-01-29 03:08:28 +00:00
gdbadmin 806dedcd0c *** empty log message *** 2002-01-29 00:00:03 +00:00
gdbadmin 7a2c05236d *** empty log message *** 2002-01-28 00:00:02 +00:00
Eli Zaretskii 59649f2e83 * gdb.texinfo: Fix typos and markup. From Dmitry Sivachenko
<mitya@cavia.pp.ru>.
2002-01-27 09:34:24 +00:00
gdbadmin af2dc4b8c3 *** empty log message *** 2002-01-27 00:00:02 +00:00
Andreas Schwab 0280a90a33 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
* m68klinux-nat.c: Update ptrace interface for fetching/storing
	registers and add support for PTRACE_GETREGS.
2002-01-26 22:23:23 +00:00
gdbadmin 09114b8784 *** empty log message *** 2002-01-26 00:00:04 +00:00
gdbadmin c895725ba0 *** empty log message *** 2002-01-25 00:00:03 +00:00
Andrew Cagney 7072a9542f Merge in 5.1.1 tweeks. 2002-01-24 08:05:31 +00:00
Fred Fish 86f902e0d1 Approved by msynder@redhat.com
2002-01-23  Fred Fish  <fnf@redhat.com>
	* mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
	stabstring on initial malloc.  Reallocing will copy it for us,
	if necessary.
2002-01-24 04:08:33 +00:00
Elena Zannoni 8af51c360e 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (hpread_h): Delete.
        (HFILES_NO_SRCDIR): Remove hpread.h.
        (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
        (hpread.o): Update dependencies.
        (hp-psymtab-read.o, hp-symtab-read.o): Remove.

        * hp-psymtab-read.c: Remove file.
        * hp-symtab-read.c: Remove file.
        * hpread.h: Remove file.

        * hpread.c: Merge all contents of hp-psymtab-read.c,
        hp-symtab-read.c and hpread.h into this file, as it was prior to
        January 1999.

        * config/pa/hpux11w.mh, config/pa/hpux11.mh,
        config/pa/hpux1020.mh, config/pa/hppaosf.mh,
        config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
        Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2002-01-24 03:44:10 +00:00
Elena Zannoni dc5cfeb6a3 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
* ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
	fill_gregset): Call gdbarch_tdep() just once, assign result to
	variable and use that, instead of calling the function several
	times.
2002-01-24 02:58:24 +00:00
Alexandre Oliva ea87b71bed * configure.host: Accept sparcv9 as alias for sparc64.
* configure.tgt: Likewise.
2002-01-24 02:48:04 +00:00
gdbadmin 97c39797f4 *** empty log message *** 2002-01-24 00:00:34 +00:00
Andrew Cagney 3d6e1b5afe Remove libgdb.texinfo 2002-01-23 21:08:19 +00:00
Kevin Buettner 13fc0c2f38 Fix xcalloc() calls so order of arguments is not reversed. 2002-01-23 06:24:20 +00:00
Elena Zannoni 7bd872fe05 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
	modified version of obsolete sh_fetch_pseudo_register.
	(sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
	(sh4_register_read): New function.
	(sh_pseudo_register_write): New function. Renamed and modified
	version of obsolete sh_store_pseudo_register.
	(sh_store_pseudo_register): Rename to sh_pseudo_register_write.
	(sh4_register_write): New function.
	(sh_gdbarch_init): Remove setting of gdbarch function
	fetch_pseudo_register and store_pseudo_register. Remove setting of
	register_convert_to_raw, register_convert_to_virtual,
	register_convertible.
	(sh_sh4_register_convertible): Delete. No longer needed. All is
	taken care by architecture specific functions
	register_read/register_write.
	(sh_sh4_register_convert_to_virtual): Make static.
	(sh_sh4_register_convert_to_raw): Ditto.
2002-01-23 04:00:55 +00:00
gdbadmin 3d2c237685 *** empty log message *** 2002-01-23 00:00:38 +00:00
Andrew Cagney 069e84fd96 Initialize the TYPE_FLOATFORMAT field of the h/w floating-point
builtin types.
2002-01-22 19:57:40 +00:00
Andrew Cagney 6c0e9fb3d2 Eliminate texinfo 3.12 hacks. 2002-01-22 17:15:57 +00:00
Andrew Cagney e0ce93ac9c Remove->Remote 2002-01-22 16:58:30 +00:00
Andrew Cagney be298bcc5f Use texi2dvi instead of TEX/TEXINDEX. 2002-01-22 16:37:08 +00:00
Andrew Cagney 8e04817fcd Move remote protocol specification to an appendix. 2002-01-22 16:25:57 +00:00
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
gdbadmin 93d5c60074 *** empty log message *** 2002-01-19 00:00:03 +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
Jim Blandy ecace851a6 * gdb.asm/asm-source.exp (info symbol): Take another shot at
anchoring the pattern matching the entry point symbol's name.
2002-01-18 00:13:00 +00:00
gdbadmin 590a5fb55e *** empty log message *** 2002-01-18 00:00:04 +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 eb12ee304f Add an appendix for maintenance commands. 2002-01-17 23:06:47 +00:00
Andrew Cagney c9ccaa9289 Remove links from @node 2002-01-17 22:56:48 +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
Eli Zaretskii 6826cf005f * gdb.texinfo: @include fdl.texi. Fixes for overfull hboxes and
for monstrous @multitable (from Brian Youmans).

	* fdl.texi: New file.

	* Makefile.in (SFILES_INCLUDED): Add fdl.texi.
2002-01-17 08:54:12 +00:00
Andrew Cagney 8de3c354c7 Daniel J as C++ maintainer. 2002-01-17 02:04:27 +00:00
gdbadmin 0423f018bc *** empty log message *** 2002-01-17 00:00:33 +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
gdbadmin 391c4305e8 *** empty log message *** 2002-01-16 00:00:06 +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
Andrew Cagney 7064928b62 Doh. s/kdb/kbd/ 2002-01-15 19:06:22 +00:00
Andrew Cagney 8973da3a1a * gdbint.texinfo (Releasing GDB): New chapter. 2002-01-15 19:01:20 +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
Andrew Cagney 7d86b5d55d * gdb.texinfo (Embedded Processors, Calling program functions):
Obsolete references to a29k.
2002-01-15 01:38:45 +00:00
Andrew Cagney cc1cb004a9 Review cleanups() section. Add examples. 2002-01-15 01:29:24 +00:00
gdbadmin 156d18a2e6 *** empty log message *** 2002-01-15 00:00:05 +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
gdbadmin cfc07856b8 *** empty log message *** 2002-01-14 00:00:02 +00:00
Daniel Jacobowitz e017c81f1f 2002-01-13 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/demangle.exp: Accept slightly dubious v2 demangler result
        for slightly dubious v2 mangled string.
2002-01-13 23:54:10 +00:00
Daniel Jacobowitz 37ab3bf83d 2002-01-13 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/completion.exp: Expand ${srcdir} to an absolute path.
2002-01-13 22:13:06 +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
Andrew Cagney 4daa9f9f37 * MAINTAINERS: Remove arm-coff and arm-pe from target list. 2002-01-13 20:43:46 +00:00
Keith Seitz ba4bbdcb1e * stack.c (print_frame_info_base): Print the frame's pc
only if when print_frame_info_listing_hook is not defined.
2002-01-13 20:19:28 +00:00
Keith Seitz 575bbeb6ee * varobj.c (varobj_set_value): Make sure that there were no
errors evaluating the object before attempting to set its
        value.
        value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
        so this offset adjustment is no longer necessary.
        (create_child): Don't set the error flag if the child is
        a CPLUS_FAKE_CHILD.
        (value_of_child): If value_fetch_lazy fails, return NULL
        so that callers will be notified that an error occurred.
        (c_value_of_variable): Delay check of variable's validity
        until later. We actually want all structs and unions to have
        the value "{...}".
        Do not return "???" for variables which could not be evaluated.
        This error condition must be returned to the caller so that it
        can get the error condition from gdb.
        (cplus_name_of_child): Adjust index for vptr before figuring
        out the name of the child.
        (cplus_value_of_child): If a child's (real) parent is not valid,
        don't even bother trying to give a value for it. Just return
        an error. Change all instances in this function.
        (cplus_type_of_child): If our parent is one of the "fake"
        parents, we need to get at the type of the real parent, and
        derive the child's true type using this information.
2002-01-13 20:17:55 +00:00
Andrew Cagney b76898ab5d From 2002-01-09 John Marshall <johnm@falch.net>:
* CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
sources.redhat.com, and tweak some related URLs which had
suffered from linkrot.
2002-01-13 16:16:58 +00:00
Andrew Cagney b6649e8838 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
structures passed in registers.
2002-01-13 15:48:56 +00:00
Eli Zaretskii 82cc503325 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
white space which prevented compilation.  Reported by DSK
	<dsk@student.unsw.edu.au>.
2002-01-13 09:51:22 +00:00
Michael Snyder fbd3554072 2002-01-11 Michael Snyder <msnyder@redhat.com>
* symfile.c (build_section_addr_info_from_section_tab):
        Use bfd access method instead of manipulating bfd directly.
        (syms_from_objfile): Ditto.
        (simple_overlay_update_1): Ditto.
        (simple_overlay_update): Ditto.
        (generic_load): Ditto.
        (overlay_unmapped_address): FIXME comment, bfd access methods.
        (sections_overlap): FIXME comment, bfd access methods.
        (pc_in_mapped_range): FIXME comment, bfd access methods.
        (pc_in_unmapped_range): FIXME comment, bfd access methods.
        (section_is_mapped): FIXME comment, bfd access methods.
        (section_is_overlay): FIXME comment, bfd access methods.
2002-01-13 05:59:30 +00:00
gdbadmin 75a20643de *** empty log message *** 2002-01-13 00:00:33 +00:00
Michael Snyder ba5f2f8ad2 2002-01-11 Michael Snyder <msnyder@redhat.com>
* symfile.c (generic_load): Whitespace and long line cleanups.
        Remove duplicate variable, change several local variables to
        more appropriate data types.
        (print_transfer_performance): Use %lu instead of %ld for ulongs.
2002-01-12 23:44:26 +00:00
Andrew Cagney 17df2af65c Use phex_nz() not printf 2002-01-12 20:00:07 +00:00
Elena Zannoni 538a76d6b8 Update Copyright year. 2002-01-12 16:38:47 +00:00
Elena Zannoni ec920329eb 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
	the function.
2002-01-12 16:29:44 +00:00
Andrew Cagney 3abd2e019d * language.c (longest_raw_hex_string): Delete unused function. 2002-01-12 05:19:10 +00:00
gdbadmin 6fe757f684 *** empty log message *** 2002-01-12 00:00:03 +00:00
Michael Snyder 79f1224722 2002-01-11 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo (Choosing files): Change @samp to @file.
2002-01-11 20:24:14 +00:00
Petr Sorfa b21b22e068 1) Handling of the DW_AT_byte_size attribute when processing a
DW_TAG_string_type (this is acceptable under the current DWARF 2.1/3.0
standard.)
2) In read_tag_string_type(), a fix for FORTRAN that propagates the
first string length to all string types. This is important as FORTRAN
strings are not delimited as in C/C++.
3) Handling of the DW_LANG_Fortran95.
2002-01-11 16:56:04 +00:00
Petr Sorfa 41ae02c9ea Added Self to Write After Approval 2002-01-11 16:51:03 +00:00
Richard Earnshaw 747fe7125b * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
GETPID(inferior_ptid).
(store_inferior_registers): Likewise.
2002-01-11 10:46:15 +00:00
Jason Merrill f1bea926d1 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
Fix DW_OP_minus.
2002-01-11 09:32:50 +00:00
Michael Snyder 352ed7b4c2 2002-01-10 Michael Snyder <msnyder@redhat.com>
* NEWS: Mention --pid and corefile/proc-id behavior change.
2002-01-11 01:46:17 +00:00
Andrew Cagney ae940673aa * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
and bfd/elf32-sh-nbsd.c.
2002-01-11 01:13:26 +00:00
gdbadmin 32e230beae *** empty log message *** 2002-01-11 00:00:35 +00:00
Michael Snyder c18be923ef 2002-01-10 Michael Snyder <msnyder@redhat.com>
* Makefile.in: Add rules for gcore.o and linux-proc.o.
	* gcore.c: Include cli/cli-decode.h instead of command.h.
2002-01-10 23:32:25 +00:00
Michael Snyder 198377909c 2002-01-05 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo (--pid): Document new command line option (attach).
2002-01-10 23:03:35 +00:00
Michael Snyder 00546b04b2 2002-01-10 Michael Snyder <msnyder@redhat.com>
* main.c (captured_main): Add new command line option "--pid".
	If the second command line argument (following the symbol-file)
	begins with a digit, try to attach to it before trying to open
	it as a corefile.
	(print_gdb_help): Document the "--pid" argument.
2002-01-10 23:03:08 +00:00
Jason Merrill 1bc05c3a56 * gdb.c++/namespace.exp: Accept trailing const for 'this'.
* gdb.c++/classes.exp: Accept 'A const' or 'const A' in copy
        constructors.
        * gdb.c++/derivation.exp: Likewise.
        * gdb.c++/templates.exp: Likewise.
        * gdb.c++/virtfunc.exp: Likewise.
2002-01-10 20:46:16 +00:00
Michael Snyder 7b2ac63ba0 2002-01-10 Michael Snyder <msnyder@redhat.com>
* gdb.c++/namespace.exp: Accept both '\0' and '\000'.
2002-01-10 18:27:09 +00:00
Jason Merrill ce520b11b3 update copyright 2002-01-10 17:48:03 +00:00
Jason Merrill ffcb195b51 * gdb.c++/namespace.exp: '\0', not '\000'. 2002-01-10 13:21:58 +00:00
Eli Zaretskii db60ec6263 * completer.c (command_completer): New function.
* completer.h <command_completer>: Add prototype.

	* cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
	completer for the "help" command.
2002-01-10 08:15:58 +00:00
Jason Merrill 39c22d1ade * c-typeprint.c (is_type_conversion_operator): Fix thinko. 2002-01-10 00:06:02 +00:00
gdbadmin 155ca243e1 *** empty log message *** 2002-01-10 00:00:34 +00:00
Michael Snyder 975aec09bd 2002-01-09 Michael Snyder <msnyder@redhat.com>
* i386-linux-nat.c (fill_fpxregset): Make global.
	(store_fpxregset): Ditto.
2002-01-09 22:32:16 +00:00
Michael Snyder db4a10fae4 2002-01-09 Michael Snyder <msnyder@redhat.com>
* gregset.h (gdb_fpxregset_t): Define.
	(supply_fpxregset): Prototype.
	(fill_fpxregset): Prototype.
2002-01-09 20:48:43 +00:00
Michael Snyder c564377fea 2002-01-09 Michael Snyder <msnyder@redhat.com>
* exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
2002-01-09 18:49:22 +00:00
Richard Earnshaw c3d45d70a5 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
* config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
* config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
2002-01-09 18:39:37 +00:00
Andrew Cagney fcc87af1cf Update target section. 2002-01-09 18:33:21 +00:00
Richard Earnshaw d4297db931 Fix formatting of ChangeLog entry in previous commit. 2002-01-09 18:27:53 +00:00
Richard Earnshaw dd96c05b5f MAINTAINERS (write-after-approval): Add myself.
arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
IN_SIGTRAMP.
2002-01-09 18:07:48 +00:00
Michael Snyder 145fdc6e9f 2002-01-08 Michael Snyder <msnyder@redhat.com>
* linux-proc.c (child_pid_to_exec_file): Use readlink to get the
	real name of the executable, rather than the /proc name.
2002-01-09 02:21:25 +00:00
Michael Snyder a911c3606d 2002-01-08 Michael Snyder <msnyder@redhat.com>
* gdb.base/gcore.exp: New test for generate-core-file command.
	* gdb.base/gcore.c: Testcase for above.
	* gdb.threads/gcore-thread.exp: New test for gcore (threaded).
2002-01-09 00:37:41 +00:00
Michael Snyder be4d133316 2002-01-03 Michael Snyder <msnyder@redhat.com>
Implement a "generate-core-file" command in gdb, save target state.
	* gcore.c: New file.  Implement new command 'generate-core-file'.
	Save a corefile image of the current state of the inferior.
	* linux-proc.c: Add linux-specific code for saving corefiles.
	* target.h (struct target_ops): Add new target vectors for saving
	corefiles; to_find_memory_regions and to_make_corefile_notes.
	(target_find_memory_regions): New macro.
	(target_make_corefile_notes): New macro.
	* target.c (update_current_target): Inherit new target methods.
	(dummy_find_memory_regions): New place-holder method.
	(dummy_make_corefile_notes): New place-holder method.
	(init_dummy_target): Initialize new dummy target vectors.
	* exec.c (exec_set_find_memory_regions): New function.
	Allow the exec_ops vector for memory regions to be taken over.
	(exec_make_note_section): New function, target vector method.
	* defs.h (exec_set_find_memory_regions): Export prototype.
	* procfs.c (proc_find_memory_regions): New function, corefile method.
	(procfs_make_note_section): New function, corefile method.
	(init_procfs_ops): Set new target vector pointers.
	(find_memory_regions_callback): New function.
	(procfs_do_thread_registers): New function.
	(procfs_corefile_thread_callback): New function.
	* sol-thread.c (sol_find_memory_regions): New function.
	(sol_make_note_section): New function.
	(init_sol_thread_ops): Initialize new target vectors.
	* inftarg.c (inftarg_set_find_memory_regions): New function.
	Allow to_find_memory_regions vector to be taken over.
	(inftarg_set_make_corefile_notes): New function.
	Allow to_make_corefile_notes vector to be taken over.
	* thread-db.c (thread_db_new_objfile): Don't activate thread-db
	interface layer if not target_has_execution (may be a corefile).
	* config/i386/linux.mh: Add gcore.o to NATDEPFILES.
	* config/sparc/sun4sol2.mh: Ditto.
	* config/alpha/alpha-linux.mh: Ditto.
	* config/arm/linux.mh: Ditto.
	* config/i386/x86-64linux.mh: Ditto.
	* config/ia64/linux.mh: Ditto.
	* config/m68k/linux.mh: Ditto.
	* config/mips/linux.mh: Ditto.
	* config/powerpc/linux.mh: Ditto.
	* config/sparc/linux.mh: Ditto.
2002-01-09 00:37:02 +00:00
gdbadmin 30070dac97 *** empty log message *** 2002-01-09 00:00:03 +00:00
Michael Snyder c6b92abd3d 2002-01-07 Michael Snyder <msnyder@redhat.com>
* arm-linux-nat.c: Remove references to regcache.c internal data
	(registers[] and register_valid[]).
2002-01-08 22:14:15 +00:00
Michael Snyder 4b09dc8c14 2002-01-07 Michael Snyder <msnyder@redhat.com>
* linux-proc.c: New file.  Implement child_pid_to_exec_file,
	so that attaching to a pid will automatically read the process's
	symbol file and shlibs.
	* Makefile.in: Add rule for linux-proc.o.
	* config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
	* config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
	* config/arm/linux.mh: Ditto.
	* config/i386/linux.mh: Ditto.
	* config/i386/x86-64linux.mh: Ditto.
	* config/ia64/linux.mh: Ditto.
	* config/m68k/linux.mh: Ditto.
	* config/mips/linux.mh: Ditto.
	* config/powerpc/linux.mh: Ditto.
	* config/sparc/linux.mh: Ditto.
2002-01-08 22:09:50 +00:00
Michael Snyder c7cccb7613 2002-01-07 Michael Snyder <msnyder@redhat.com>
* solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
	instead of bfd_get_arch_size.  Don't bail out just because
	there's no exec_bfd.
2002-01-08 18:55:26 +00:00
Jason Merrill ea2119ec84 * gdb.c++/userdef.cc: Use <iostream> instead of <iostream.h>. 2002-01-08 16:00:16 +00:00
Pierre Muller c25b74acfa 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c: Add i386-tdep.h dependency.
2002-01-08 08:26:42 +00:00
Fred Fish 6820313638 Approved by mec@shout.net.
2002-01-07  Fred Fish  <fnf@redhat.com>
	* gdb.c++/overload.exp: Remove unconditional xfails for:
	print foo_instance1.overloadargs(1)
	print foo_instance1.overloadargs(1, 2)
	print foo_instance1.overloadargs(1, 2, 3)
	print foo_instance1.overloadargs(1, 2, 3, 4)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
	print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
	print foo_instance1.overload1arg()
	print foo_instance1.overload1arg((char)arg2)
	print foo_instance1.overload1arg((signed char)arg3)
	print foo_instance1.overload1arg((unsigned char)arg4)
	print foo_instance1.overload1arg((int)arg7)
	print foo_instance1.overload1arg((unsigned int)arg8)
	print foo_instance1.overload1arg((float)arg11)
	print foo_instance1.overload1arg((double)arg12)
2002-01-08 05:37:43 +00:00
Michael Snyder 34c0bd933d 2002-01-07 Michael Snyder <msnyder@redhat.com>
* cp-valprint.c (cp_print_value): FIXME comment, alloca size.
	* p-valprint.c (pascal_object_print_value): Ditto.
	* somread.c (som_symtab_read): Ditto.
	* symfile.c (simple_free_overlay_region_table): Ditto.
	* valops.c (value_assign): Ditto.
2002-01-08 02:09:31 +00:00
Michael Snyder d33fc4e447 2002-01-07 Michael Snyder <msnyder@redhat.com>
* infptrace.c (GDB_MAX_ALLOCA): New define.
	(child_xfer_memory): Use xmalloc/xfree instead of alloca if the
	size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
	can be overridden with whatever value is appropriate to the host).
	* infttrace.c (child_xfer_memory): Add FIXME warning about use of
	alloca to allocate potentially large buffer.
	* rs6000-nat.c (child_xfer_memory): Ditto.
	* symm-nat.c (child_xfer_memory): Ditto.
	* x86-64-linux-nat.c (child_xfer_memory): Ditto.
2002-01-08 02:04:12 +00:00
Michael Snyder 21c1c9207f 2002-01-07 Michael Snyder <msnyder@redhat.com>
* tracepoint.c (tracepoint_save_command): From Klee Deines --
	use tilde_expand and strerror for opening save-tracepoints file.
2002-01-08 01:52:12 +00:00
Michael Snyder 5bbd998e61 2002-01-07 Michael Snyder <msnyder@redhat.com>
* thread-db.c (thread_db_new_objfile): Indendation fix.
2002-01-08 01:34:12 +00:00
Michael Snyder 21b9b5b1ca 2002-01-07 Michael Snyder <msnyder@redhat.com>
* gdb.base/huge.exp: New test.  Print a very large target data object.
	(skip_huge_test): New test variable.  Define if you want to skip this
	test.  The test reads an 8 megabyte data object from the target, so it
	might be very time consuming on remote targets with a slow connection.
	* gdb.base/huge.c: New file.  Test case for above.
2002-01-08 01:00:10 +00:00
Michael Snyder 94cd915f48 2002-01-07 Michael Snyder <msnyder@redhat.com>
* infptrace.c (GDB_MAX_ALLOCA): New define.
	(child_xfer_memory): Use xmalloc/xfree instead of alloca if the
	size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
	can be overridden with whatever value is appropriate to the host).
	* infttrace.c (child_xfer_memory): Add FIXME warning about use of
	alloca to allocate potentially large buffer.
	* rs6000-nat.c (child_xfer_memory): Ditto.
	* symm-nat.c (child_xfer_memory): Ditto.
	* x86-64-linux-nat.c (child_xfer_memory): Ditto.
2002-01-08 00:59:31 +00:00
gdbadmin 435ad15963 *** empty log message *** 2002-01-08 00:00:06 +00:00
Fred Fish 725f922e71 Approved by med@shout.net:
2002-01-07  Fred Fish  <fnf@redhat.com>
	* gdb.c++/derivation.exp: Remove gcc xfails for g_instance.afoo,
	g_instance.bfoo, and g_instance.cfoo.
2002-01-07 21:23:35 +00:00
Jackie Smith Cashion 494e8a93ef 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
From Nick Clifton  <nickc@redhat.com>
	* d10v-tdep.c: Set STACK_START to 0x200bffe.
2002-01-07 20:43:46 +00:00
Michael Snyder d0e1d48ef4 2002-01-07 Michael Snyder <msnyder@redhat.com>
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
	Don't use exec_bfd if it's NULL.
2002-01-07 19:45:14 +00:00
Jeff Law f286b2c396 * gdb.base/break.c (multi_line_if_conditional): New function.
(multi_ilne_while_conditional): Likewise.
        * gdb.base/break.exp: Verify that a breakpoint on a multi-line
        IF or WHILE condition puts the breakpoint at the start of
        the condition.
2002-01-07 19:21:27 +00:00
Jeff Law 634d57ec50 * gdb.base/selftest.exp (backtrace through signal handler): Remove
hppa*-*-hpux* expected failure.
	* gdb.base/structs.exp (do_function_calls): Similarly.

	* gdb.c++/annota2.exp (watch triggered on a.x): Handle hardware
	watchpoints.
2002-01-07 19:20:10 +00:00
Eli Zaretskii 2c0069bbef * gdb.texinfo (Tracepoints): Clarify that tracepoints need support
in the stub.
2002-01-07 09:28:44 +00:00
gdbadmin dcf8a7ed82 *** empty log message *** 2002-01-07 00:00:02 +00:00
Mark Kettenis 290b2c7ad8 * valops.c (value_arg_coerce): Fix formatting. 2002-01-06 22:09:08 +00:00
Andrew Cagney aef21287e3 <string.h> -> "gdb_string.h" 2002-01-06 19:18:28 +00:00
Andrew Cagney 30efa6272a Doco which targets are not multi-arch. 2002-01-06 19:10:24 +00:00
Andrew Cagney 9b4ff27668 * MAINTAINERS: Mark a29k target as obsolete.
* Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
(remote-mm.o, remote-udi.o): Obsolete.  Remove references in
comments.
* NEWS: Note that a29k targets are obsolete.
* a29k-tdep.c: Mark as obsolete.
* configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
a29k-*-vxworks* targets as obsolete.
* remote-adapt.c: Obsolete.
* remote-eb.c: Obsolete.
* remote-mm.c: Obsolete.
* remote-udi.c: Obsolete.
* config/a29k/a29k-udi.mt: Obsolete.
* config/a29k/a29k.mt: Obsolete.
* config/a29k/tm-a29k.h: Obsolete.
* config/a29k/tm-vx29k.h: Obsolete.
* config/a29k/vx29k.mt: Obsolete.
2002-01-06 15:02:01 +00:00
Andrew Cagney 9fbfe2dc64 Fix PR gdb/66.
* gdb.base/structs.exp: Replace skip for a29k with skip for
gdb,cannot_call_functions.
* gdb.base/call-ar-st.exp: Remove references to a29k in comments.
* gdb.base/callfuncs.exp: Ditto.
* gdb.base/call-rt-st.exp: Ditto.
* gdb.base/call-strs.exp: Ditto.
* gdb.base/callfwmall.exp: Ditto.
* gdb.base/scope.exp: Obsolete xfail a29k.
* gdb.c++/misc.exp: Ditto.
* gdb.c++/cplusfuncs.exp: Ditto.
* gdb.base/ptype.exp: Ditto.
* gdb.base/printcmds.exp: Ditto.
* gdb.base/opaque.exp: Ditto.
* gdb.base/list.exp: Ditto.
* gdb.base/funcargs.exp: Ditto.
* gdb.base/default.exp: Ditto.
2002-01-06 14:42:39 +00:00
Andrew Cagney a9011d31b6 last? remaining BIG_ENDIAN switch 2002-01-06 04:50:56 +00:00
Andrew Cagney 79e10fabfc Move changelog to correct position. 2002-01-06 04:37:53 +00:00
gdbadmin 1d84ffd519 *** empty log message *** 2002-01-06 00:01:03 +00:00
Andrew Cagney 9299404eba Don't include <endian.h> 2002-01-05 22:06:38 +00:00
Jason Thorpe 7e89e3575d * acconfig.h (HAVE_PT_GETXMMREGS): New.
* config.in: Regenerate.
* configure.in: Update copyright years.
Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
* configure: Regenerate.
* i386bsd-nat.c: Update copyright years.
(fill_gregset): Use regcache_collect.
(fetch_inferior_registers): Only fetch integer registers
if requested to do so.  Add support for XMM registers
using PT_GETXMMREGS.
(store_inferior_registers): Only store integer registers
if requested to do so.  Add support for XMM registers
using PT_SETXMMREGS.
* i386nbsd-nat.c (fetch_inferior_registers): Remove.
(store_inferior_registers): Remove.
(fetch_core_registers): Use supply_gregset and i387_supply_fsave.
(fetch_elfcore_registers): New function.
(i386nbsd_elfcore_fns): New.
(_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
* config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
i386bsd-nat.o.
* config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
* config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
* config/i386/nbsdelf.mt (TDEPFILES): Likewise.
* config/i386/tm-nbsd.h: Update copyright years.
(HAVE_SSE_REGS): Define.
(IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
(SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
(SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
(SIGCONTEXT_PC_OFFSET): Remove.
(FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
2002-01-05 18:36:32 +00:00
Andrew Cagney a752853e6e Remove obsolete MacOS support. 2002-01-05 05:54:31 +00:00
Andrew Cagney d7449b42d3 s/BIG_ENDIAN/BFD_ENDIAN_BIG/ 2002-01-05 04:30:46 +00:00
Michael Snyder ca4976a694 2002-01-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/info-proc.exp: New file, test for "info proc" cmd.
2002-01-05 02:44:07 +00:00
Michael Snyder 8ddad156de 2002-01-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/maint.exp: Add tests for maint info sections options.
2002-01-05 02:40:47 +00:00
Daniel Jacobowitz 356374e821 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* thread-db.c (thread_db_new_objfile): Do not enable thread_db
        for core files.
2002-01-05 01:46:30 +00:00
gdbadmin b62818f6d8 *** empty log message *** 2002-01-05 00:00:04 +00:00
Jason Thorpe a2b8f8f88f * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o. 2002-01-04 23:49:04 +00:00
Andrew Cagney 12466af99c Move value_ptr typedef to gdbtk-wrapper from value.h. 2002-01-04 23:21:38 +00:00
Jason Thorpe 3549ab40a5 * i386nbsd-nat.c: Update copyright years.
Include i386-tdep.h.
2002-01-04 22:43:31 +00:00
Jason Thorpe 596bfd105b Write After Approval: Add myself. 2002-01-04 22:41:21 +00:00
Elena Zannoni fec8b34f93 Mention PR number fixed. 2002-01-04 19:55:08 +00:00
Elena Zannoni fedbd09164 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
* stabsread.c: Update copyright years.

	From Debashis Mahata <debashis.mahata@wipro.com>:
	(read_struct_fields): Deal with Sun C compiler erroneous stab
	output for structs and unions.
2002-01-04 19:43:09 +00:00
Daniel Jacobowitz eb43544b6f 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* p-valprint.c: Include "cp-abi.h" for baseclass_offset
        prototype.
2002-01-04 19:16:28 +00:00
Daniel Jacobowitz 1514d34ee0 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* cp-abi.c: Fix whitespace.
        (baseclass_offset): New wrapper function.
        * cp-abi.h (baseclass_offset): Add prototype.
        (struct cp_abi_ops): Add baseclass_offset pointer.

        * valops.c (vb_match): Move to...
        * gnu-v2-abi.c (vb_match): here.
        * valops.c (baseclass_offset): Move to...
        * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.

        * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.

        * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
        * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
        * hpacc-abi.c (init_hpacc_ops): Likewise.
2002-01-04 18:20:19 +00:00
Daniel Jacobowitz 7f8c928258 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* valops.c (find_overload_match): Accept obj as a
        reference parameter.  Update it before returning.
        * value.h (find_overload_match): Update prototype.
        * eval.c (evaluate_subexp_standard): Pass object to
        find_overload_match by reference.
2002-01-04 17:51:38 +00:00
Andrew Cagney f23631e444 s/value_ptr/struct value */ 2002-01-04 05:20:09 +00:00
gdbadmin c7b3d5aa45 *** empty log message *** 2002-01-04 00:00:03 +00:00
Michael Snyder 831e682efe 2001-12-28 Michael Snyder <msnyder@redhat.com>
Abstract the functionality of iterating over mapped memory
	regions into a general purpose iterator function.
	* procfs.c (iterate_over_mappings): New function, general purpose
	iterator for memory sections.
	(proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
	(solib_mappings_callback): New function, callback for above.
	(info_proc_mappings): Reimpliment using iterate_over_mappings.
	(info_mappings_callback): New function, callback for above.

	* procfs.c (proc_set_watchpoint): Add cast to suppress warning.
2002-01-03 20:50:25 +00:00
Andrew Cagney a1a5b71e88 Roll ChangeLog files. 2002-01-03 06:02:43 +00:00
gdbadmin 02e3d9701f *** empty log message *** 2002-01-03 00:00:34 +00:00
Eli Zaretskii 72c9928d4d (Free Software): Fix wording of the new section. 2002-01-02 06:15:47 +00:00
gdbadmin e17f0648ad *** empty log message *** 2002-01-02 00:00:34 +00:00
Mark Kettenis d2a7c97aaf * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
* i386-tdep.c: Include "elf-bfd.h".
(process_note_abi_tag_sections): New function.
(i386_gdbarch_init): Add code to recognize various OS/ABI
combinations.
2002-01-01 16:29:43 +00:00
Mark Kettenis c5ad026aef * maint.c (_initialize_maint_cmds): Add missing in
string-literal.
2002-01-01 15:17:40 +00:00
gdbadmin 6d01e7be20 *** empty log message *** 2002-01-01 00:00:03 +00:00
Eli Zaretskii 42584a72f9 Fix a typo in the last change. 2001-12-31 19:33:46 +00:00
Eli Zaretskii 2666264b6e Fix last change. 2001-12-31 19:17:30 +00:00
Eli Zaretskii 959acfd1b4 * gdb.texinfo (Free Software): New section ``Free Software Needs
Free Documentation''.
2001-12-31 19:06:39 +00:00
gdbadmin 8dd9c393f8 *** empty log message *** 2001-12-31 00:00:03 +00:00
Michael Snyder 902d0061c7 2001-12-30 Michael Snyder <msnyder@redhat.com>
* sparc-tdep.c (sparc-store-return-value): Whitespace fix-up.
2001-12-30 17:00:43 +00:00
Eli Zaretskii 2a6585f062 Fix the application of GFDL in the Copyright notice. 2001-12-30 06:25:16 +00:00
Michael Snyder 6600abedd6 2001-12-29 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo (maint info sections): Fix typo.
2001-12-30 03:52:20 +00:00
Elena Zannoni 1fcc0bb8b2 2001-12-29 Elena Zannoni <ezannoni@redhat.com>
* Makefile.in (rs6000-tdep.o): Add dependency on parser-defs.h.

	* rs6000-tdep.c: Include parser-defs.h.
	(rs6000_register_virtual_type): Rewrite, including handling of
	AltiVec regs type.
	(altivec_register_p): New function.
	(rs6000_do_altivec_registers): New function.
	(rs6000_altivec_registers_info): New function.
	(rs6000_do_registers_info): New function.
	(R16): Define.
	(PPC_ALTIVEC_REGS): Define.
	(registers_powerpc): Add AltiVec registers.
	(registers_7400): Define.
	(variants): Add 7400 machine.
	(rs6000_gdbarch_init): Set the numbers of AltiVec registers.
	Initialize gdbarch_do)_registers_info.
	(rs6000_info_power_command): New function.
	(info_power_cmdlist): New static variable.
	(_initialize_rs6000_tdep): Add new 'info powerpc altivec' command.

	* ppc-tdep.h (struct gdbarch_tdep): Add altivec regnum fields.
	(altivec_register_p): Export.
2001-12-30 00:14:50 +00:00
gdbadmin d474c9844f *** empty log message *** 2001-12-30 00:00:33 +00:00
Mark Kettenis 2c48bda39c * i386bsd-nat.c (reg_offset): Fix typo. 2001-12-29 20:15:47 +00:00
Mark Kettenis ec80a8ea8b * i386-tdep.c (i386_push_dummy_frame): Don't write back the
modified frame pointer until the old frame pointer has been saved.
2001-12-29 19:38:16 +00:00
Andrew Cagney 428721aaa3 * arch-utils.c (initialize_current_architecture): Test byte_order
against BFD_ENDIAN_UNKNOWN.
(gdbarch_info_init): Initialize byte_order to BFD_ENDIAN_UNKNOWN.
* gdbarch.sh: Update comments on default value of byte_order.
(verify_gdbarch, gdbarch_update_p): Test byte_order against
BFD_ENDIAN_UNKNOWN.
* gdbarch.h, gdbarch.c: Re-generate.
2001-12-29 19:25:58 +00:00
gdbadmin 815ecd3476 *** empty log message *** 2001-12-29 00:00:03 +00:00
Michael Snyder 388faa4837 2001-12-21 Michael Snyder <msnyder@redhat.com>
* procfs.c (info_proc_cmd): Add the 'mappings' sub-command that
	was dropped a few years ago, when procfs.c was rewritten.
	(info_proc_mappings): New function, implement 'info proc mappings'.
	(mappingflags): New function.
	(_initialize_procfs): Document new option to 'info proc' command.
2001-12-28 19:47:08 +00:00
gdbadmin a8c0de01fc *** empty log message *** 2001-12-28 00:00:03 +00:00
Michael Snyder c38333241f 2001-12-27 Michael Snyder <msnyder@redhat.com>
* i386-linux-nat.c: Include i386-tdep.h.
2001-12-27 19:52:31 +00:00
Michael Snyder fe95c7871a 2001-12-26 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo (maint info sections): Document.
2001-12-27 19:37:12 +00:00
Michael Snyder b01d807cd9 2001-12-27 Michael Snyder <msnyder@redhat.com>
* maint.c (match_substring): GNU coding standards fixes.
	(print_bfd_section_info): Ditto.
	(print_objfile_section_info): Ditto.
2001-12-27 19:33:05 +00:00
Michael Snyder f668071643 2001-12-26 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo (info proc): Comment out documentation for
        'info proc' sub-options that are currently not implemented.
2001-12-27 18:41:40 +00:00
Mark Kettenis 473e38f346 * maint.c (match_substring): Make parameters `string' and `substr'
const.  Make local variable `tok' const.
2001-12-27 15:37:35 +00:00
Mark Kettenis 96297dabb3 * config/i386/tm-i386.h (FP7_REGNUM, FIRST_FPU_CTRL_REGNUM,
FCTRL_REGNUM, FPC_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM,
FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM,
LAST_FPU_CTRL_REGNUM, XMM0_REGNUM, XMM7_REGNUM, MXCSR_REGNUM,
IS_FP_REGNUM, IS_SSE_REGNUM): Removed.
(FP0_REGNUM): Define conditionally depending on HAVE_I387_REGS.
(SIZEOF_FPU_CTRL_REGS): Hardcode value.
* i386-tdep.h (struct gdbarch_tdep): Change such that it contains
a single member `num_xmm_regs'.
(FPC_REGNUM): New macro.
(FIRST_FPU_REGNUM, LAST_FPU_REGNUM, FISRT_XMM_REGNUM,
LAST_XMM_REGNUM, MXCSR_REGNUM, FIRST_FPU_CTRL_REGNUM,
LAST_FPU_CTRL_REGNUM): Removed.
(FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FOP_REGNUM, XMM0_REGNUM,
MXCSR_REGNUM): Define unconditionally.  Change macros to match the
comment describing the register layout.
(FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM): New macros.
(FP_REGNUM_P, FPC_REGNUM_P, SSE_REGNUM_P): New macros.
(IS_FP_REGNUM, IS_FPU_CTRL_REGNUM, IS_SSE_REGNUM): Make obsolete,
unconditionally define in terms of FP_REGNUM_P, FPC_REGNUM_P and
SSE_REGNUM_P).
(FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM): Make
obsolete, unconditionally define in terms of FISEG_REGNUM,
FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM.
* i386-tdep.c (i386_gdbarch_init): Initialize `num_xmm_regs'
member of `struct gdbarch_tdep'.
* x86-64-tdep.c (i386_gdbarch_init): Change initialization of
`struct gdbarch_tdep'.
* i387-nat.c (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM):
Replace with FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM and
FOOFF_REGNUM.  Use FPC_REGNUM instead of FIRST_FPU_CTRL_REGNUM.
Use XMM0_REGNUM instead of LAST_FPU_CTRL_REGNUM.
2001-12-27 15:22:27 +00:00
gdbadmin fd6b65e518 *** empty log message *** 2001-12-27 00:00:03 +00:00
gdbadmin 9de947da56 *** empty log message *** 2001-12-26 00:00:32 +00:00
Andrew Cagney f976f6d464 * cli/cli-script.c (execute_control_command): Replace value_ptr
with a struct value pointer.
* ch-lang.c (evaluate_subexp_chill): Ditto.
* printcmd.c (printf_command): Ditto.
* tracepoint.c (set_traceframe_context): Ditto.
(encode_actions): Ditto.
* eval.c (evaluate_subexp_standard): Ditto.
2001-12-25 22:24:39 +00:00
Andrew Cagney 06b25f14b0 * gdbarch.sh: When an int variable, print value using %d instead
of %ld.
* gdbarch.c: Re-generate.
2001-12-25 22:19:40 +00:00
gdbadmin 916479f645 *** empty log message *** 2001-12-25 00:00:34 +00:00
Tom Rix dfea300e54 powerpc aix build failure. Add self to maintainers. 2001-12-24 20:07:02 +00:00
gdbadmin e5aeea4c13 *** empty log message *** 2001-12-24 00:00:04 +00:00
gdbadmin 109a2c755e *** empty log message *** 2001-12-23 00:00:33 +00:00
gdbadmin f398918085 *** empty log message *** 2001-12-22 00:00:04 +00:00
Tom Tromey 58d370e0e6 * configure, config.in: Rebuilt.
* configure.in: Check for realpath.
	* defs.h (gdb_realpath): Declare.
	* symtab.h (partial_symtab): Added fullname field.
	* source.c (openp): Use gdb_realpath.
	(forget_cached_source_info): Clear full name of each partial
	symtab.
	* utils.c (gdb_realpath): New function.
	* symtab.c (lookup_symtab): Removed.
	(lookup_symtab_1): Renamed to lookup_symtab.
	(lookup_symtab): Look for real path.
	(lookup_partial_symtab): Likewise.
2001-12-21 22:32:37 +00:00
Michael Snyder a532ca6282 2001-12-21 Michael Snyder <msnyder@redhat.com>
* maint.c (match_substring): New function.  Tokenizer for
        'maintenance info sections' command arguments.
        (match_bfd_flag): Use match_substring.
        (print_bfd_section_info): Use match_substring.
        (print_objfile_section_info): Use match_substring.
        (maintenance_info_sections): Use match_substring.
2001-12-21 17:30:02 +00:00
Jeff Law 1b074332f2 * gdb.base/default.exp: Remove bogus hppa*-hp-hpux* xfails. 2001-12-21 16:40:07 +00:00
Orjan Friberg dbbff68389 2001-12-21 Orjan Friberg <orjanf@axis.com>
* configure.tgt: Delete CRIS from multi-arch targets.

	* config/cris/tm-cris.h: New file.

	* config/cris/cris.mt (TDEPFILES): Add corelow.o solib.o solib-svr4.o.
	(TM_FILE): New macro.

	* cris-tdep.c (cris_examine): Correct check for srp register.
	(supply_gregset, fetch_core_registers,
	cris_linux_svr4_fetch_link_map_offsets, cris_fpless_backtrace):
	New functions.
	(_initialize_cris_tdep): Add core functions and new command.
	(cris_gdbarch_init): Define link map offsets.
2001-12-21 09:53:58 +00:00
Jeff Law afabe08cae * gdb.hp/gdb.defects/bs15503.exp: Only run this test if compiling
with HP's compiler.
        * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise.
        * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise.
        * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise.
        * gdb.hp/gdb.objdbg/objdbg04.exp: Likewise.

        * gdb.hp/gdb.defects/solib-d.exp: Update to handle building with
        either HP's compilers or GCC.
2001-12-21 00:30:38 +00:00