Commit Graph

17328 Commits

Author SHA1 Message Date
Joel Brobecker 8511a04886 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
* config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2004-09-04 23:46:48 +00:00
Joel Brobecker 649dfe9fab * config/rs6000/xm-aix4.h: Remove this file.
* config/rs6000/aix4.mh (XM_FILE): Delete.
2004-09-04 23:41:01 +00:00
Joel Brobecker 6e50f88914 * config/rs6000/xm-rs6000.h: Remove this file.
* config/rs6000/rs6000.mh (XM_FILE): Remove.
2004-09-04 23:38:37 +00:00
Andrew Cagney fb60388340 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
	(_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
	only use.
2004-09-04 00:16:56 +00:00
gdbadmin 8361f4f1f4 *** empty log message *** 2004-09-04 00:00:34 +00:00
Andrew Cagney c9343fd1d0 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (temp_saved_regs): Delete.
	(set_reg_offset): Replace saved_regs parameter with this_cache.
	(heuristic_proc_desc, mips16_heuristic_proc_desc)
	(mips32_heuristic_proc_desc): Add this_cache parameter.
	(mips_insn32_frame_cache, mips_insn16_frame_cache)
	(after_prologue): Pass a NULL this_cache.
2004-09-03 23:47:23 +00:00
Andrew Cagney 9733cfe12b 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
	non-kernel trap prologues.
2004-09-03 23:00:18 +00:00
Andrew Cagney 0d5febcc7c 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (find_proc_desc): Delete function.
	(mips_mdebug_frame_cache): Inline call to find_proc_desc,
	simplify.
	(mips_insn16_frame_cache): Replace find_proc_desc with code from
	mips_insn32_frame_cache.
2004-09-03 22:41:27 +00:00
Andrew Cagney 283be8734b * mips-tdep.c (find_proc_desc): Inline call to find_proc_desc.
Simplify as NEXT_FRAME is NULL.
	(find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2004-09-03 22:31:23 +00:00
Andrew Cagney 177f84a36d 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (after_prologue): Replace proc_desc parameter with
	local variable.
	(mips_skip_prologue): Update.
2004-09-03 22:18:17 +00:00
Andrew Cagney 465f752091 2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
	"cur_frame" parameter.
	(after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2004-09-03 22:00:44 +00:00
Andrew Cagney e38b865864 2004-09-03 Andrew Cagney <cagney@gnu.org>
* config/vax/nm-obsd.h: Delete file.
	* config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
	* config/vax/nm-nbsd.h: Delete file.
	* config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
	* config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
	* config/sh/nm-nbsd.h: Delete file.
	* config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
	* config/rs6000/nm-rs6000ly.h: Delete file.
	* config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
	* config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
	* config/powerpc/nm-obsd.h: Delete file.
	* config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
	* config/powerpc/nm-nbsd.h: Delete file.
	* config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
	* config/pa/nm-obsd.h: Delete file.
	* config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
	* config/mips/nm-nbsd.h: Delete file.
	* config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
	* config/m88k/nm-obsd.h: Delete file.
	* config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
	* config/m68k/nm-nbsd.h: Delete file.
	* config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
	* config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
	* config/i386/nm-nbsd.h: Delete file.
	* config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
	* config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
	* config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
	* config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
	* config/i386/nm-i386lynx.h: Delete file.
	* config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
	* config/arm/nm-nbsd.h: Delete file.
	* config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
	* config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2004-09-03 19:08:23 +00:00
Andrew Cagney be1ed68037 2004-09-03 Andrew Cagney <cagney@gnu.org>
* config/i386/tm-fbsd.h: Delete file.
	* config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
	* config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2004-09-03 18:01:51 +00:00
Andrew Cagney 4b392b26e4 2004-09-03 Andrew Cagney <cagney@gnu.org>
* config/rs6000/tm-rs6000-aix4.h: Delete file.
	* config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
	* config/rs6000/aix4.mt (TM_FILE): Set to
	config/rs6000/tm-rs6000.h.
	* config/powerpc/tm-ppc-aix.h: Delete file.
	* config/powerpc/aix.mt (TM_FILE): Set to
	config/rs6000/tm-rs6000.h.
	* config/m68k/tm-linux.h: Delete file.
	* config/m68k/linux.mt (TM_FILE): Set to solib.h
	* config/i386/tm-linux64.h: Delete file.
	* config/i386/linux64.mt (TM_FILE): Set to solib.h.
	* config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2004-09-03 17:29:58 +00:00
Andrew Cagney f3219c75e5 Index: ChangeLog
2004-09-03  Andrew Cagney  <cagney@gnu.org>

	* config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
	* config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
	* config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
	* config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
	* config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
	* config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
	* config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
	* sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
	* sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.

Index: doc/ChangeLog
2004-09-03  Andrew Cagney  <cagney@gnu.org>

	* gdbint.texinfo (Native Debugging): Delete SVR4_SHARED_LIBS.
2004-09-03 17:13:48 +00:00
Andrew Cagney b8c4aecef5 2004-09-03 Andrew Cagney <cagney@gnu.org>
* configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
	gdb_host_cpu.
2004-09-03 16:59:30 +00:00
gdbadmin 64ba8c8274 *** empty log message *** 2004-09-03 00:00:01 +00:00
Joel Brobecker 8ac2e020a1 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
Minor reformatting. Some code factoring.
2004-09-02 22:57:49 +00:00
Andrew Cagney 63f22f0da5 2004-09-02 Andrew Cagney <cagney@gnu.org>
* config/vax/nbsd.mt (TM_FILE): Set to solib.h.
	* config/vax/tm-nbsd.h: Delete file.
	* config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
	* config/sparc/tm-vxworks.h: Delete file.
	* config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
	* config/sparc/tm-nbsd.h: Delete file.
	* config/sparc/linux64.mt (TM_FILE): Set to solib.h.
	* config/sparc/linux.mt (TM_FILE): Set to solib.h.
	* config/sparc/tm-linux.h: Delete file.
	* config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
	* config/s390/tm-linux.h: Delete file.
	* config/pa/obsd.mt (TM_FILE): Set to solib.h.
	* config/pa/tm-bsd.h: Delete file.
	* config/m68k/obsd.mt (TM_FILE): Set to solib.h.
	* config/m68k/tm-obsd.h: Delete file.
	* config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
	* config/m68k/tm-nbsd.h: Delete file.
	* config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
	* config/i386/tm-vxworks.h: Delete file.
	* config/i386/obsd64.mt (TM_FILE): Set to solib.h.
	* config/i386/obsd.mt (TM_FILE): Set to solib.h.
	* config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
	* config/i386/nbsd.mt (TM_FILE): Set to solib.h.
	* config/i386/tm-nbsd.h: Delete file.
	* config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
	* config/i386/tm-i386lynx.h: Delete file.
	* config/cris/cris.mt (TM_FILE): Set to solib.h.
	* config/cris/tm-cris.h: Delete file.
2004-09-02 22:37:41 +00:00
Andrew Cagney 0f475e278d 2004-09-02 Andrew Cagney <cagney@gnu.org>
* configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
	* configure: Re-generate.
	* config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
	* config/arm/tm-nbsd.h: Delete file.
2004-09-02 22:14:33 +00:00
Andrew Cagney 458ed0007a 2004-09-02 Andrew Cagney <cagney@gnu.org>
* config/powerpc/tm-ppcle-sim.h: Delete.
	* config/powerpc/tm-ppcle-eabi.h: Delete.
	* config/powerpc/tm-nbsd.h: Delete.
	* config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
	* config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
	tm-ppcle-eabi.h.
2004-09-02 20:57:22 +00:00
Andrew Cagney f14375f3d9 2004-09-02 Andrew Cagney <cagney@gnu.org>
* config/i386/nto.mh (NAT_FILE): Delete.
	* config/i386/nm-nto.h: Delete.
2004-09-02 19:52:40 +00:00
Andrew Cagney c34d127ce7 2004-09-02 Andrew Cagney <cagney@gnu.org>
* config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
	* config/m68k/tm-os68k.h: Ditto.
	* config/m68k/tm-monitor.h: Ditto.
	* config/m68k/tm-cisco.h: Ditto.
	* config/m68k/st2000.mt (TM_FILE): Delete.
	* config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
	* config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
	* config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
	* m68k-tdep.c (m68k_get_longjmp_target): Make static.
2004-09-02 19:16:36 +00:00
Andrew Cagney f7f0fe039a 2004-09-02 Andrew Cagney <cagney@gnu.org>
* config/m68k/tm-st2000.h: Delete.
	* config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
	* config/sparc/fbsd.mt (TM_FILE): Delete.
	* config/sparc/tm-fbsd.h: Delete.
2004-09-02 19:08:35 +00:00
Andrew Cagney a255853365 2004-09-02 Andrew Cagney <cagney@gnu.org>
* acconfig.h (GDB_MULTI_ARCH): Delete undef.
	* defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
	(GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2004-09-02 17:36:10 +00:00
Andrew Cagney b78960be27 2004-09-02 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
	GDB_TM_FILE and GDB_XM_FILE.
	* gdbarch.c: Re-generate.
	* configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
	quotes in macro definition.
	* configure.in: Re-generate.
2004-09-02 17:22:08 +00:00
Andrew Cagney 4d60522e88 2004-09-02 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
	validating architecture methods.
	* gdbarch.c: Re-generate.
2004-09-02 16:01:33 +00:00
Andrew Cagney 5010d38b08 2004-09-02 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
	and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
	GDB_MULTI_ARCH_PARTIAL.
	* gdbarch.h: Re-generate.
2004-09-02 14:30:44 +00:00
Andrew Cagney c185a355e6 2004-09-02 Andrew Cagney <cagney@gnu.org>
* config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
	* config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
	* config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
	* config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
	* config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
	* config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
	* config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
	* config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
	* config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
	* config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
	* config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
	* config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2004-09-02 14:17:44 +00:00
Manoj Iyer 228af206a6 change use to Use. 2004-09-02 14:14:49 +00:00
Michael Chastain 714e341b13 2004-09-02 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/sigstep.exp (advance): Use "-continue_timer" option
	of "exp_continue".
	(advancei): Likewise.
2004-09-02 09:47:38 +00:00
Andrew Cagney 14aaa6abcf 2004-09-01 Andrew Cagney <cagney@gnu.org>
* objfiles.h (struct entry_info): Delete fields main_func_lowpc
	and main_func_highpc.
	(INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
	* objfiles.c (init_entry_point_info, objfile_relocate): Update
	* nlmread.c (nlm_symfile_read): Update.
2004-09-02 03:05:46 +00:00
gdbadmin e6c1d7a2d2 *** empty log message *** 2004-09-02 00:00:02 +00:00
Jeff Johnston 1236e623c6 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/unload.exp: Fix so messages aren't duplicated.
2004-09-01 23:26:43 +00:00
Joel Brobecker 6328991e1b * configure.host: Use aix.mh for all powerpc-aix hosts.
* config/powerpc/aix432.mh: Delete, no longer necessary.
2004-09-01 20:46:41 +00:00
Joel Brobecker a343eb3cbf * mips-tdep.c (linked_proc_desc_table): Delete, not used.
(mips_insn32_frame_cache): Inline call to find_proc_desc.
        (find_proc_desc): Remove dead code.
2004-09-01 20:42:45 +00:00
Manoj Iyer 3bdcad15ba Use new gdb.exp feature to check for nodebug in the executable for testcases under gdb.gdb 2004-09-01 19:55:00 +00:00
Joel Brobecker 4fbbbd0782 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting. 2004-09-01 18:55:17 +00:00
Andrew Cagney c72b934c3a 2004-09-01 Andrew Cagney <cagney@gnu.org>
* gdb.threads/staticthreads.c, gdb.threads/staticthreads.exp: New
	files.
2004-09-01 18:02:45 +00:00
Jeff Johnston 84acb35a5a 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
* observer.sh: Add struct so_list declaration.
        * Makefile.in: Add dependencies on observer.h for solib.c and
        breakpoint.c.
        * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
        function.
        (_initialize_breakpoint): Register
        disable_breakpoints_in_unloaded_shlib as an observer of the
        "solib unloaded" observation event.
        (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
        call decode_line_1 so unfound breakpoint errors are silent.
        * solib.c (update_solib_list): When a solib is discovered to have
        been unloaded by the program, notify all observers of the
        "solib unloaded" observation event.
2004-09-01 18:00:29 +00:00
Jeff Johnston f3bb67042f 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
* observer.texi (solib_unloaded): New observer.
2004-09-01 17:59:37 +00:00
Jeff Johnston e4a74b90e7 Remove conflict marker. 2004-09-01 17:56:39 +00:00
Jeff Johnston edd9b715ac 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
* gdb.base/unload.exp: Fix expected warning message to match
        latest format.
2004-09-01 17:56:20 +00:00
Corinna Vinschen fb4ce06b35 * gdb.base/call-rt-st.exp: Fix typos. 2004-09-01 16:36:30 +00:00
Andrew Cagney c8cd9f6c4c 2004-08-31 Andrew Cagney <cagney@gnu.org>
* frame.c: Include "objfiles.h".
	(inside_main_func): New function.
	(get_prev_frame): Use new inside_main_func.
	* Makefile.in (frame.o): Update dependencies.
	* defs.h (inside_main_func): Delete declaration.
	* blockframe.c (inside_main_func): Delete function.
2004-09-01 14:13:33 +00:00
Jim Blandy 1168df017b * dwarf2read.c (is_vtable_name): New function, based on logic from
read_structure_type, but passing the correct length to strncmp,
and using 'sizeof' instead of 'strlen'.
(read_structure_type): Call it.
2004-09-01 04:19:22 +00:00
Joel Brobecker f14f9744c4 * config/powerpc/aix.mh: Add comment. 2004-09-01 00:02:15 +00:00
gdbadmin 4b8240e3e6 *** empty log message *** 2004-09-01 00:00:04 +00:00
Paul Gilliam 386d451882 * MAINTAINERS: Add self to Write-After-Approval. 2004-08-31 20:36:04 +00:00
Manoj Iyer ce78e7c3cf Added new testcases:
* gdb.threads/thread_check.exp: New testcase.
	* gdb.threads/thread_check.c: New testcase.
2004-08-31 20:01:13 +00:00
Andrew Cagney 2dedb159fe 2004-08-31 Andrew Cagney <cagney@gnu.org>
* gdb.base/sigstep.exp (breakpoint_to_handler_entry)
	(skip_to_handler_entry): New procedures.  Test stepping into a
	handler when the breakpoint is at the handler's entry point.
2004-08-31 14:43:18 +00:00
gdbadmin 0bfd9d7206 *** empty log message *** 2004-08-31 00:00:04 +00:00
Manoj Iyer 7d97d5e2b8 Added self to write-after-approval. 2004-08-30 20:05:41 +00:00
Andrew Cagney 68f5350246 2004-08-30 Andrew Cagney <cagney@gnu.org>
Fix PR breakpoints/1757.
	* infrun.c (struct execution_control_state): Replace
	remove_breakpoints_on_following_step with
	step_after_step_resume_breakpoint.
	(init_execution_control_state): Update.
	(handle_inferior_event): For signals, when stepping off a
	breakpoint, set step_after_step_resume_breakpoint.  When
	BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
	(keep_going): Delete code handling
	remove_breakpoints_on_following_step.

Index: testsuite/ChangeLog
2004-08-30  Andrew Cagney  <cagney@gnu.org>

	* gdb.base/sigstep.exp (breakpoint_over_handler): Remove kfail
	gdb/1757.
2004-08-30 16:59:45 +00:00
gdbadmin 80f57dfaa0 *** empty log message *** 2004-08-30 00:00:31 +00:00
David Lecomber 7ca2d3a371 2004-08-29 David Lecomber <david@streamline-computing.com>
Fix PR gdb/648
	* language.h (enum array_ordering): New enum.
	* language.h (struct language_defn): New la_array_ordering
	attribute.
	* language.c (unknown_language_defn, auto_language_defn)
	(local_language_defn): Ditto.
	* ada-lang.c (ada_language_defn): Ditto.
	* c-lang.c (c_language_defn, cplus_language_defn)
	(asm_language_defn, minimal_language_defn): Ditto.
	* f-lang.c (f_language_defn): Ditto.
	* jv-lang.c (java_language_defn): Ditto.
	* m2-lang.c (f_language_defn): Ditto.
	* objc-lang.c (objc_language_defn): Ditto.
	* p-lang.c (pascal_language_defn): Ditto.
	* scm-lang.c (scm_language_defn): Ditto.
	* eval.c (evaluate_subexp_standard): Assume Fortran arrays are
	oriented large to small in type structure.
	* dwarf2read.c (read_array_order): New function.
	(read_array_type): Use read_array_order to check row/column
	major ordering.
2004-08-29 10:12:24 +00:00
gdbadmin d61bbaef16 *** empty log message *** 2004-08-29 00:00:02 +00:00
Michael Chastain 3e3ffd2b74 2004-08-27 Michael Chastain <mec.gnu@mindspring.com>
With code from Manoj Iyer <manjo@austin.ibm.com>:
	* lib/gdb.exp (gdb_file_cmd): Return more information in the
	return value.  Add an arm for "no debugging symbols found".
	Change a stray "error" to "perror".
	(gdb_run_cmd): Adapt to new return value.
	* gdb.base/remote.exp: Adapt to new return value.
	* gdb.gdb/complaints.exp: Likewise.
	* gdb.gdb/observer.exp: Likewise.
	* gdb.gdb/selftest.exp: Likewise.
	* gdb.gdb/xfullpath.exp: Likewise.
2004-08-28 23:55:48 +00:00
gdbadmin 85acfe16d5 *** empty log message *** 2004-08-28 00:00:03 +00:00
Nathan J. Williams e354df0166 * target.c (target_resize_to_sections): Check
current_target.to_sections for an old value when updating.
2004-08-27 18:03:32 +00:00
Joel Brobecker 4b6f5fd267 * gdb.threads/bp_in_thread.exp: New testcase. 2004-08-27 14:28:15 +00:00
Joel Brobecker 9185ddce96 * procfs.c (dbx_link_bpt_addr): New static global variable.
(dbx_link_shadow_contents): New static global variable.
        (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
        (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
        if we just hit it.
        (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
        Reset dbx_link_bpt_addr as the address of __dbx_link() may change
        from run to run.
        (procfs_create_inferior): Remove syssgi syscall-exit notifications
        after the inferior has been forked.
        (remove_dbx_link_breakpoint): New function.
        (dbx_link_addr): New function.
        (insert_dbx_link_bpt_in_file): New function.
        (insert_dbx_link_bpt_in_region): New function.
        (insert_dbx_link_breakpoint): New function.
        (proc_trace_syscalls_1): New function, extracted from
        proc_trace_syscalls.
        (proc_trace_syscalls): Replace extract code by call to
        proc_trace_syscalls_1.
        * solib-irix.c (disable_break): Remove stop_pc assertion, as it
        is no longer valid.
2004-08-27 13:37:42 +00:00
Michael Chastain e5b2549632 2004-08-27 Michael Chastain <mec.gnu@mindspring.com>
Fix PR testsuite/1735.
	* gdb.threads/schedlock.c (thread_function): Add a cast
	to suppress a gcc warning.
	* gdb.threads/thread-specific.c (thread_function): Likewise.
2004-08-27 11:13:28 +00:00
gdbadmin faeb014da2 *** empty log message *** 2004-08-27 00:00:32 +00:00
Michael Chastain 934353d642 2004-08-26 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/unload.c: Include <stdlib.h>.
2004-08-26 19:26:11 +00:00
Michael Chastain f98a0aef1b Bleagh. I messed up the part about properly distinguishing
between "guy who wrote the patch" (Paul Gilliam) and
"guy who committed the patch" (me).
2004-08-26 18:18:01 +00:00
Michael Chastain 3a77aa2811 2004-08-26 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/call-sc.exp (test_scalar_returns): Make sure PC is
	synchronized after the "return".
2004-08-26 18:02:59 +00:00
Michael Chastain 5a2e8882db 2004-08-26 Michael Chastain <mec.gnu@mindspring.com>
* gdb.mi/basics.c: Include <stdio.h>.
	* gdb.mi/pthreads.c: Include <stdlib.h>.
	* gdb.mi/var-cmd.c: Include <stdlib.h>.
2004-08-26 15:13:17 +00:00
Michael Chastain a96404235b 2004-08-26 Michael Chastain <mec.gnu@mindspring.com>
* gdb.threads/schedlock.c: Add copyright notice.
2004-08-26 13:10:19 +00:00
gdbadmin 8ef085014d *** empty log message *** 2004-08-26 00:00:32 +00:00
Jim Blandy e6742ace8b * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix. 2004-08-25 15:41:54 +00:00
Andrew Cagney b04e311dda 2004-08-25 Andrew Cagney <cagney@gnu.org>
* gdb.base/sigstep.exp (breakpoint_to_handler, skip_to_handler)
	(skip_over_handler, breakpoint_over_hander): New test procedures.
	(advance, advancei): Add a proper prefix, do not use
	rerun_to_main.
	* gdb.base/sigstep.c (main): Change to use an infinite loop.
2004-08-25 15:26:19 +00:00
Andrew Cagney 629a41eeae 2004-08-25 Andrew Cagney <cagney@gnu.org>
* infrun.c (struct execution_control_state): Delete field
	"stepping_through_sigtramp".
	(init_execution_control_state): Do not set same.
	(context_switch): Do not pass same to save_infrun_state and
	load_infrun_state.
	* gdbthread.h (struct thread_info): Delete field
	stepping_through_sigtramp.
	(save_infrun_state, load_infrun_state): Delete parameter
	stepping_through_sigtramp.
	* thread.c (load_infrun_state, save_infrun_state): Update.
2004-08-25 15:18:05 +00:00
Andrew Cagney 8fb3e588da 2004-08-25 Andrew Cagney <cagney@gnu.org>
* infrun.c: Re-indent.  Move expression operators to the beginning
	of the line.  Remove long disabled #if 0 code.
2004-08-25 14:47:07 +00:00
Michael Chastain 7c27f15bf3 2004-08-24 Michael Chastain <mec.gnu@mindspring.com>
* gdb.mi/basics.c: Add copyright notice.
	* gdb.mi/var-cmd.c: Add copyright notice.
2004-08-25 00:54:53 +00:00
gdbadmin fd9a4f7bb0 *** empty log message *** 2004-08-25 00:00:02 +00:00
Andrew Cagney 49c547686f 2004-08-24 Andrew Cagney <cagney@gnu.org>
* doublest.h (floatformat_ieee_quad): Rename
	floatformat_ia64_quad.
	* doublest.c (floatformat_ieee_quad): Rename
	floatformat_ia64_quad.
	(_initialize_doublest): Update.
2004-08-24 22:49:27 +00:00
Jim Blandy 87808bd699 * dwarf2expr.h (struct dwarf_expr_context): New members
'num_pieces' and 'pieces', for returning the result of an
expression that uses DW_OP_piece.
(struct dwarf_expr_piece): New struct type.
* dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
pieces.
(free_dwarf_expr_context): Free pieces, if any.
(add_piece): New function.
(execute_stack_op): Implement DW_OP_piece.
* dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
expression is a list of pieces, print an error message.
(dwarf2_loc_desc_needs_frame): If the expression yields
pieces, and any piece is in a register, then we need a frame.
2004-08-24 21:01:49 +00:00
Andrew Cagney 8d2c00cb73 2004-08-24 Andrew Cagney <cagney@gnu.org>
* gdbint.texinfo (Target Architecture Definition): Add missing
	comma.
2004-08-24 19:58:24 +00:00
Jim Blandy 5ca2e3275d * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
the stack until we've decided what sort of result the evaluation
has produced.  Use separate variables, with more specific names.
2004-08-24 17:31:49 +00:00
gdbadmin e155246bc4 *** empty log message *** 2004-08-24 00:00:32 +00:00
Michael Chastain fffc87aef7 2004-08-23 Michael Chastain <mec.gnu@mindspring.com>
* lib/gdb.exp: Remove signed_keyword_not_used.
	* lib/compiler.c: Likewise.
	* lib/compiler.cc: Likewise.
2004-08-23 13:43:15 +00:00
Michael Chastain d782e0bfb0 2004-08-23 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/whatis.c: Remove conditional disabling of "signed".
	* gdb.base/whatis.exp: Remove signed_keyword_not_used.
2004-08-23 13:04:03 +00:00
Michael Chastain 96033e836e 2004-08-23 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/whatis.c: Add copyright notice.
2004-08-23 12:28:23 +00:00
Richard Earnshaw 2afeb6b854 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
(arm_nbsd_thumb_[lb]e_breakpoint): Define.
(arm_netbsd_init_abi_common): Register them.
2004-08-23 10:28:58 +00:00
gdbadmin fa5f0ccdd7 *** empty log message *** 2004-08-23 00:00:05 +00:00
Mark Kettenis fda820a6fa * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c. 2004-08-22 20:57:06 +00:00
Mark Kettenis 1c5bf4196b * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
safe_frame_unwind_memory instead of target_read_memory.
2004-08-22 20:34:55 +00:00
Mark Kettenis 8cbba7c881 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
Reorder includes.
(fetch_register, store_register): Remove prototypes.
(child_resume): Reorganize code and comments such that it is
grouped a bit more logically.
(attach): Explicitly compare errno against 0.
(detach): Likewise.  Use perror_with_name instead of
print_sys_errmsg.
* Makefile.in (infptrace.o): Update dependencies.
2004-08-22 19:03:41 +00:00
Mark Kettenis c5fa424560 * ia64-linux-nat.c: Update copyright year.
(fetch_debug_register, store_debug_register)
(ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
PTRACE_TYPE_ARG3.
* config/ia64/nm-linux.h: Update copyright year.
 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2004-08-22 16:32:35 +00:00
Mark Kettenis 387c058c87 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
from CORE_ADDR to struct frame_info *.  Use
safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
(amd64_linux_sigtramp_p): Adjust for changed signature of
and64_linux_sigtramp_start
2004-08-22 16:27:30 +00:00
Mark Kettenis 277215a6d4 * gdb_ptrace.h: GNU/Linux. 2004-08-22 15:41:47 +00:00
Mark Kettenis 25f6178efd * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
Remove defines.
2004-08-22 15:38:37 +00:00
Mark Kettenis 652fc1376f * infptrace.c: Include "gdb_assert.h".
(PTRACE_XFER_TYPE): Remove define.
(offsetof): Only define if U_REGS_OFFSET isn't defined.
(fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
Tweak comment.
(fetch_inferior_registers, store_inferior_registers): Remove
redundant culry braces.  Tweak comment.  s/regno/regnum.
* Makefile.in (infptrace.o): Update dependencies.
2004-08-22 15:35:02 +00:00
Mark Kettenis 5885ab493f * configure.in: Change test for return type of ptrace to default
to `long' instead of `int'.
* configure: Regenerate.
2004-08-22 14:18:02 +00:00
gdbadmin 651f22f717 *** empty log message *** 2004-08-22 00:00:06 +00:00
Mark Kettenis 6b95110c7d * config/alpha/alpha-linux.mh (LOADLIBES): New variable. 2004-08-21 12:44:05 +00:00
Mark Kettenis bcb3dc3d55 * configure.in: Check for ttrace function.
* configure, config.in: Regenerate.
2004-08-21 12:05:52 +00:00
Michael Chastain e7dc800a0c 2004-08-20 Michael Chastain <mec.gnu@mindspring.com>
* (Using the Testsuite): build != host is supported,
	but some test scripts do not support build != host.
2004-08-21 09:37:20 +00:00
Mark Kettenis 11003ae340 * gdb_ptrace.h: New file.
* infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
<sys/ptrace.h>.
(PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
(PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
(attach): Don't define PT_ATTACH.
(detach): Don't define PT_DETACH.
* Makefile.in (gdb_ptrace_h): New variable.
(infptrace.o): Update dependencies.
2004-08-21 08:56:38 +00:00