Commit Graph

11464 Commits

Author SHA1 Message Date
Andrew Cagney d49d1e0a2f * frame.c (find_saved_register): Delete #ifdef
HAVE_REGISTER_WINDOWS code.
* config/sparc/tm-sparc.h: Update comments.
* config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
* gdbint.texinfo (Target Architecture Definition): Delete
definition of HAVE_REGISTER_WINDOWS.
2002-04-21 15:52:35 +00:00
Andrew Cagney 92e8c9ed1f * i960-tdep.c (i960_find_saved_register): New function.
(i960_get_saved_register): New function.
* config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
(i960_get_saved_register): Declare.
* config/i960/tm-i960.h, i960-tdep.c: Update copyright.
2002-04-21 15:19:06 +00:00
David S. Miller e192511835 2002-04-20 David S. Miller <davem@redhat.com>
* sparc-nat.c (store-inferior_registers): Fix ambiguous else.
2002-04-21 05:34:06 +00:00
Andrew Cagney 29673b2905 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
instead of NUM_PSEUDO_REGS.
2002-04-21 03:46:44 +00:00
David S. Miller 6c86dcd550 2002-04-20 David S. Miller <davem@redhat.com>
* config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
	GDB_MULTI_ARCH_PARTIAL
	* config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
	define, let tm-sp64.h do it.
2002-04-21 01:51:00 +00:00
gdbadmin 96bf2febf8 *** empty log message *** 2002-04-21 00:00:32 +00:00
Jason Thorpe aa40ec9031 * frame.c (find_saved_register): Avoid a NULL pointer
dereference and actually walk the frame list.
2002-04-20 23:54:28 +00:00
Andrew Cagney 0f79675b65 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
sorted in most most-recent-used order.  Document.
* gdbarch.h, gdbarch.c: Regenerate.
2002-04-20 17:41:18 +00:00
Daniel Jacobowitz c04a1aa88f 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
        (add_inferior): Call create_register_cache.
        (clear_inferiors): Call free_register_cache.
        (inferior_regcache_data, set_inferior_regcache_data): New functions.
        * gdbserver/regcache.c (struct inferior_regcache_data): New.
        (registers): Remove.
        (get_regcache): New function.
        (create_register_cache, free_register_cache): New functions.
        (set_register_cache): Don't initialize the register cache here.
        (registers_to_string, registers_from_string, register_data): Call
        get_regcache.
        * gdbserver/regcache.h: Add prototypes.
        * gdbserver/server.h: Likewise.
2002-04-20 17:22:48 +00:00
Daniel Jacobowitz 611cb4a542 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/mem-break.c: New file.
        * gdbserver/mem-break.h: New file.
        * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
        dependencies.
        * gdbserver/inferiors.c (struct inferior_info): Add target_data
        member.
        (clear_inferiors): Free target_data member if set.
        (inferior_target_data, set_inferior_target_data): New functions.
        * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
        (i386_stop_pc, i386_set_pc): New.  Add to the_low_target.
        * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
        (struct inferior_linux_data): New.
        (linux_create_inferior): Use set_inferior_target_data.
        (linux_attach): Likewise.  Call add_inferior.
        (linux_wait_for_one_inferior): New function.
        (linux_wait): Call it.
        (linux_write_memory): Add const.
        (initialize_low): Call set_breakpoint_data.
        * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
        handling members.
        * gdbserver/server.c (attach_inferior): Remove extra add_inferior
        call.
        * gdbserver/server.h: Include mem-break.h.  Update inferior.c
        prototypes.
        * gdbserver/target.c (read_inferior_memory)
        (write_inferior_memory): New functions.
        * gdbserver/target.h (read_inferior_memory)
        (write_inferior_memory): Change macros to prototypes.
        (struct target_ops): Update comments.  Add const to write_memory
        definition.
2002-04-20 17:04:09 +00:00
Andrew Cagney f91305dd5e Fix date. 2002-04-20 03:12:55 +00:00
Andrew Cagney bf75c8c166 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
instead of ->prev.
* z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
* s390-tdep.c (s390_frame_chain): Do not use ->prev.
* rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
instead of ->prev.
2002-04-20 03:09:28 +00:00
Elena Zannoni 73d322b1b9 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
Fix PR gdb/471.
	* gdbtypes.c (init_simd_type): Rewrite using new functions.
	(build_builtin_type_vec128): Ditto..
	(append_composite_type_field): Fix calculation of type length in
	union case.
2002-04-20 01:09:28 +00:00
gdbadmin 1d494665d3 *** empty log message *** 2002-04-20 00:00:06 +00:00
Eli Zaretskii 4be3147047 (Releasing GDB, Coding): Fix typos. 2002-04-19 19:33:57 +00:00
Eli Zaretskii ccd9a834f9 go32-nat.c (store_register): Cast &a_tss to `char *', to avoid compiler
warning.

config/djgpp/README: Update.
2002-04-19 19:28:54 +00:00
David S. Miller a1706bfd87 2002-04-17 David S. Miller <davem@redhat.com>
* gdb.asm/sparc64.inc: New file.
	* gdb.asm/asm-source.exp: Handle sparc64-*-*.
2002-04-19 17:21:48 +00:00
Elena Zannoni a73a20a2d5 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
* gdb.asm/asm-source.exp: Don't use a symlink, just copy the
	instruction file directly into the build tree.  Clean up at end of
	test.
2002-04-19 16:06:59 +00:00
Jason Thorpe a57f9e49f5 * alpha-tdep.c (setup_arbitrary_frame): Rename...
(alpha_setup_arbitrary_frame): ...to this.
* config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
for alpha_setup_arbitrary_frame.
2002-04-19 05:11:53 +00:00
gdbadmin 1378fa9350 *** empty log message *** 2002-04-19 00:00:04 +00:00
David S. Miller ba6783391f 2002-04-18 David S. Miller <davem@redhat.com>
* gdb.base/annota1.exp: Expect addresses as $hex + whitespace to
	handle 64-bit platforms correctly.
	* gdb.base/maint.exp: Likewise.
2002-04-18 22:17:01 +00:00
Kevin Buettner b03399da11 * gdb.base/shlib-call.exp (additional_flags): AIX doesn't need
``-fpic'' when compiling files comprising a shared library, but
	it does need additional linker flags in order to find shared
	libraries at run time.
2002-04-18 21:07:20 +00:00
Andrew Cagney f4f9705a2d * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
* gdbarch.h, gdbarch.c: Regenerate.

* defs.h (breakpoint_from_pc_fn): Delete type definition.
* target.h (memory_breakpoint_from_pc): Update declaration.
* config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.

* arch-utils.c (legacy_breakpoint_from_pc): Update return type.
* mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
* mem-break.c (memory_breakpoint_from_pc): Ditto.
* rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
* s390-tdep.c (s390_breakpoint_from_pc): Ditto
* xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
* mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
* mips-tdep.c (mips_breakpoint_from_pc): Ditto.
* m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
* ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
* d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
* arch-utils.c (legacy_breakpoint_from_pc): Ditto..

* mem-break.c (default_memory_insert_breakpoint): Make `bp' a
const pointer.
* monitor.c (monitor_insert_breakpoint): Ditto.
* rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.

* config/mcore/tm-mcore.h: Update copyright.
* mem-break.c: Ditto.
* xstormy16-tdep.c: Ditto.
2002-04-18 18:09:09 +00:00
Pierre Muller 29f319b84c 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
* p-exp.y: Add precedence rule for '^' token.
	This removes the shift/reduce conflicts.
	Remove the comment concerning these shift/reduce conflicts.
2002-04-18 15:22:19 +00:00
Elena Zannoni ebeac11a97 2002-04-17 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
	(registers_powerpc_nofp): New register set for processors
	without floating point unit.
2002-04-18 15:10:15 +00:00
Kevin Buettner e20049926b * gdb.base/cvexpr.c (use): New function.
(main): Invoke use() on all global variables to prevent
	some linkers from deleting these otherwise unused symbols.
2002-04-18 13:21:03 +00:00
David S. Miller 27c31547c0 2002-04-18 David S. Miller <davem@redhat.com>
* MAINTAINERS: Add myself to write-after-approval.
2002-04-18 08:32:16 +00:00
Michael Chastain d8937120db 2002-04-17 Michael Chastain <mec@shout.net>
From David S. Miller  <davem@redhat.com>

	* gdb.c++/ovldbreak.exp: Expect addresses as $hex + whitespace to
	handle 64-bit platforms correctly.
2002-04-18 03:24:20 +00:00
gdbadmin 826ede653b *** empty log message *** 2002-04-18 00:00:34 +00:00
Andrew Cagney 953836b25a * rs6000-tdep.c (frame_initial_stack_address): Use
frame_register_read to read the alloca_reg.
2002-04-17 23:28:38 +00:00
Andrew Cagney 8b0d4340d7 * frame.c (find_saved_register): Find saved registers in the next
not prev frame.
Fix PR gdb/365.
2002-04-17 21:55:12 +00:00
Andrew Cagney d886453249 * gdbarch.sh (LANG): Set to ``c''. 2002-04-17 18:47:54 +00:00
gdbadmin 6338913390 *** empty log message *** 2002-04-17 00:00:36 +00:00
gdbadmin 0c485e66f5 *** empty log message *** 2002-04-16 00:00:34 +00:00
Andrew Cagney 36cc83a397 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems. 2002-04-15 21:31:49 +00:00
Don Howard 5ca0cb286a 2002-04-15 Don Howard <dhoward@redhat.com>
From Eli Zaretskii <eliz@is.elta.co.il>
	* gdb.texinfo (show max-user-call-depth): Correct formatting.
	Provide a better explaination of this feature.
2002-04-15 17:23:54 +00:00
Andrew Cagney 2c7ef07446 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
Update copyright.
2002-04-15 05:23:01 +00:00
Andrew Cagney 628703c64b tipo 2002-04-15 04:52:39 +00:00
Andrew Cagney 2f4150cc14 * hpread.c (hpread_getlntt): Add declaration.
Also fix PR gdb/391.
2002-04-15 04:52:08 +00:00
Andrew Cagney 56157b4ad6 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
* aclocal.m4, configure: Re-generate.
Fix PR gdb/391.
2002-04-15 04:28:41 +00:00
Elena Zannoni 6d1e3329f6 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
* mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
        instead of tm_print_insn.
2002-04-15 02:24:40 +00:00
Elena Zannoni cb06fa073c 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
* ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
2002-04-15 01:09:55 +00:00
gdbadmin 580af05d1c *** empty log message *** 2002-04-15 00:00:32 +00:00
Andrew Cagney f208ba17b9 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
* blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
(get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
* gdbint.texinfo (Target Architecture Definition): Remove
FRAME_CHAIN_COMBINE.
2002-04-14 13:38:07 +00:00
gdbadmin 56a584a128 *** empty log message *** 2002-04-14 00:00:02 +00:00
Michael Chastain d5ba91def6 2002-04-12 Michael Chastain <mec@shout.net>
* gdbint.texinfo (Obsolete Conditionals): Remove reference to
	REG_STACK_SEGMENT.
2002-04-13 15:56:42 +00:00
Michael Snyder ffd61a589b 2002-04-12 Michael Snyder <msnyder@redhat.com>
From Jim Blandy  <jimb@redhat.com>
        * gdb.base/foo.c (foox): Remove section attribute; the linker
	script can handle this instead.
	* gdb.base/bar.c (barx): Same.
	* gdb.base/baz.c (bazx): Same.
	* gdb.base/grbx.c (grbxx): Same.

        * gdb.base/overlays.exp: New test: check that GDB's manual overlay
	manager doesn't automatically unmap overlays unnecessarily.
2002-04-13 00:21:40 +00:00
Michael Snyder 694f61fb27 2002-04-12 Michael Snyder <msnyder@redhat.com>
* Remote.c: Spelling fix.
2002-04-13 00:12:30 +00:00
gdbadmin 4249b23ce6 *** empty log message *** 2002-04-13 00:01:04 +00:00
Michael Snyder 20fe79c82c 2002-04-12 Michael Snyder <msnyder@redhat.com>
* gcore.c (default_derive_heap_segment): Use bfd_section_name.
	If no symbol found for "sbrk", try "_sbrk".
	(make_output_phdrs): Use bfd_section_name.
	(gcore_copy_callback): Use bfd_section_name.
2002-04-12 23:09:48 +00:00