Commit Graph

17553 Commits

Author SHA1 Message Date
Andrew Cagney 1d93fe1a61 2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (read_signed_register): Use
	regcache_cooked_read_signed.
2004-10-30 15:55:36 +00:00
Mark Kettenis 303d2914db * mipsread.c: Cleanup coding style.
(mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
(mipscoff_symfile_finish): Remove prototypes.


* mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
(mips_mdebug_frame_cache, mips16_scan_prologue)
(mips32_scan_prologue, mips_stub_frame_cache)
(heuristic_proc_start, heuristic_proc_desc)
(mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
(mips_n32n64_return_value, mips_o32_push_dummy_call)
(mips_o32_return_value, mips_o64_push_dummy_call)
(mips_step_skips_delay, mips_skip_trampoline_code)
(mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
(mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
MIPS16_INSTLEN.  Use MIPS_A0_REGNUM instead of A0_REGNUM.
* mips-linux-tdep.c (mips_linux_o32_sigframe_init)
(mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
ZERO_REGNUM.
* mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
(mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
ZERO_REGNUM.
(mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
A0_REGNUM.
* mipsnbsd-nat.c: Include "mips-tdep.h".
(getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
* Makefile.in (mipsnbsd-nat.o): Update dependencies.
2004-10-30 15:01:31 +00:00
Mark Kettenis 4c7d22cba3 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
(mips_mdebug_frame_cache, mips16_scan_prologue)
(mips32_scan_prologue, mips_stub_frame_cache)
(heuristic_proc_start, heuristic_proc_desc)
(mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
(mips_n32n64_return_value, mips_o32_push_dummy_call)
(mips_o32_return_value, mips_o64_push_dummy_call)
(mips_step_skips_delay, mips_skip_trampoline_code)
(mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
(mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
MIPS16_INSTLEN.  Use MIPS_A0_REGNUM instead of A0_REGNUM.
* mips-linux-tdep.c (mips_linux_o32_sigframe_init)
(mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
ZERO_REGNUM.
* mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
(mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
ZERO_REGNUM.
(mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
A0_REGNUM.
* mipsnbsd-nat.c: Include "mips-tdep.h".
(getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
* Makefile.in (mipsnbsd-nat.o): Update dependencies.
2004-10-30 14:31:19 +00:00
Andrew Cagney 1c8831c5ad 2004-10-29 Andrew Cagney <cagney@gnu.org>
* stack.c (parse_frame_specification_1): New function based on
 	parse_frame_specification.  Add message and selected_frame_p
 	paramters.  Truely always return non-NULL.
 	(parse_frame_specification): Call parse_frame_specification_1.
 	(frame_info): Update.  Eliminate target_has_stack check.
 	(select_frame_command): Update.
2004-10-30 00:10:05 +00:00
gdbadmin 9a54dff734 *** empty log message *** 2004-10-30 00:00:02 +00:00
Joel Brobecker 88f9d34f0c * gdb.threads/bp_in_thread.c: New file, copied from
pthread_cond_wait.c.
        * gdb.threads/bp_in_thread.c: Use bp_in_thread.c as the source
        file, rather than reusing the .c file from another testcase.
2004-10-29 21:35:20 +00:00
Mark Kettenis 760caeb8c9 Really commit this file. 2004-10-29 20:49:14 +00:00
Andrew Cagney b04f3ab417 2004-10-29 Andrew Cagney <cagney@gnu.org>
* frame.h (get_selected_frame): Add message parameter.
	* frame.c (get_selected_frame): Add and use message parameter.
	* stack.c (current_frame_command, return_command, locals_info)
	(catch_info, args_info, up_silently_base, down_silently_base): Use
	get_selected_frame with an explicit message.
	* thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
	* remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
	* ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
	* infrun.c, inflow.c, infcmd.c, frame.c: Update.
	* findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
	* breakpoint.c: Update.
2004-10-29 20:23:17 +00:00
Andrew Cagney 00b25ff323 2004-10-27 Andrew Cagney <cagney@gnu.org>
* trad-frame.c (trad_frame_get_prev_register): Use
	frame_unwind_register instead of frame_register_unwind, do not
	recurse the register's location.
	* xstormy16-tdep.c (xstormy16_frame_prev_register):
	* sparc-tdep.c (sparc32_frame_prev_register): Ditto.
	* sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
	* sh-tdep.c (sh_frame_prev_register): Ditto.
	* m68k-tdep.c (m68k_frame_prev_register): Ditto.
	* i386-tdep.c (i386_frame_prev_register): Ditto.
	* dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
	* amd64-tdep.c (amd64_frame_prev_register): Ditto.
2004-10-29 14:00:58 +00:00
gdbadmin dd891d7edb *** empty log message *** 2004-10-29 00:00:32 +00:00
Mark Kettenis c18c06be5e * proc-events.c: Fix several coding-style issues. Consistently
use #ifdef instead of #if defined().
(proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
ARRAY_SIZE.
(_initialize_proc_events): New prototype.
2004-10-28 11:45:43 +00:00
Mark Kettenis 7a9525427b * proc-why.c: Fix several coding-style issues.
(proc_prettyfprint_why): Use ARRAY_SIZE.
2004-10-28 11:04:07 +00:00
gdbadmin 014457d27f *** empty log message *** 2004-10-28 00:00:02 +00:00
Jim Blandy fcad0fa40f * remote.c (fetch_register_using_p): Construct 'p' packet in a
manner independent of the host byte order.
2004-10-27 20:03:50 +00:00
Mark Kettenis c163184fa2 * mips-tdep.c (id_delayed): Remove prototype. 2004-10-27 19:50:24 +00:00
gdbadmin f9dd442b25 *** empty log message *** 2004-10-27 00:00:33 +00:00
Mark Kettenis 9c46b6f006 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
to enum with register numbers.
(enum mips_insn_size): New enum.
2004-10-26 19:40:39 +00:00
Andrew Cagney e7d6a6d283 2004-10-26 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
	* mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
	(mips_gdbarch_init): Update.
	(mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
2004-10-26 14:44:00 +00:00
Andrew Cagney c5115f39aa 2004-10-26 Andrew Cagney <cagney@gnu.org>
* config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
	* config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
	IN_SOLIB_RETURN_TRAMPOLINE.
	* mips-tdep.c (mips_dump_tdep): Do not print
	IN_SOLIB_RETURN_TRAMPOLINE.
	(mips_in_solib_return_trampoline): Rename mips_in_return_stub.
	(mips_gdbarch_init): Update.
2004-10-26 14:24:38 +00:00
Andrew Cagney 0d0266c631 2004-10-26 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (mips_software_single_step): Move to here ...
	* config/mips/tm-mips.h: ... from here.
	* config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
	(SOFTWARE_SINGLE_STEP): Delete.
	* mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
2004-10-26 14:13:24 +00:00
gdbadmin afa8f99d0b *** empty log message *** 2004-10-26 00:00:02 +00:00
Andrew Cagney 156a53caf0 2004-10-25 Andrew Cagney <cagney@gnu.org>
* NEWS: Add Changes since GDB 6.3 section.
2004-10-25 18:50:09 +00:00
gdbadmin 137ff98e57 *** empty log message *** 2004-10-25 00:00:04 +00:00
gdbadmin abf8796805 *** empty log message *** 2004-10-24 00:00:32 +00:00
Andreas Schwab f27cf670a8 * ada-lang.c (grow_vect): Return the new array instead of
expecting pointer to pointer to avoid violation of aliasing rules.
	* ada-lang.h (GROW_VECT): Adapt call to grow_vect.
2004-10-23 19:13:26 +00:00
Ulrich Weigand 121d8485df * s390-tdep.c (enum pv_boolean): Remove.
(pv_is_array_ref): Remove.
	(s390_on_stack): Remove.
	(S390_NUM_SPILL_SLOTS): Remove.
	(struct s390_prologue_data): Remove members 'spill' and 'back_chain',
	add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
	(s390_store): Track all stores of orginal incoming registers to the
	stack constant offsets relative to the CFA, instead of only tracking
	stores into specific spill slots.
	(s390_load): Likewise.
	(s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
	(s390_prologue_frame_unwind_cache): Likewise.  Only track registers
	defined as call-saved by the ABI.
	(s390_push_dummy_call): Use bottom of dummy call argument save area
	as return value, not the top.  Do not store to the called function's
	register save area.
	(s390_unwind_dummy_id): Adapt accordingly.
2004-10-23 16:31:23 +00:00
Andrew Cagney 0a6ddd0822 2004-10-23 Andrew Cagney <cagney@gnu.org>
* objfiles.h (struct objfile): Rename obj_private to
	deprecated_obj_private, sym_private to deprecated_sym_private, and
	sym_stab_info to deprecated_sym_stab_info.
	* gdb-stabs.h: Update.
	* elfread.c: Update.
	* dbxread.c: Update.
	* coffread.c: Update.
	* xcoffread.c: Update.
	* symfile.c: Update.
	* somread.c: Update.
	* nlmread.c: Update.
	* mdebugread.c: Update.
	* hpread.c: Update.
	* coffread.c: Update.
2004-10-23 16:18:09 +00:00
Eli Zaretskii 384ee23f42 * gdb.texinfo (Core File Generation): New section. 2004-10-23 15:05:29 +00:00
Eli Zaretskii f856860472 (Calling): Expand and elaborate text. Add "print". Add the
description of problems with weak aliases.
2004-10-23 14:34:54 +00:00
Eli Zaretskii f018e82f92 2004-10-23 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo (Starting): Fix whitespace; make "elaboration" stand
	out where it is first used, and add an index entry for the term.
2004-10-23 14:21:44 +00:00
Eli Zaretskii dcaf7c2c09 2004-10-23 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo(Files): Add a tip for decreasing memory used for
	symtabs from shared libraries.
2004-10-23 14:11:33 +00:00
Eli Zaretskii 60bf7e09b1 * gdb.texinfo (SVR4 Process Information): Document subcommands of
"info proc" that are already implemented.  Add index entries.
	(Working Directory): Add a cross-reference to "info proc" command.
2004-10-23 13:52:37 +00:00
Mark Kettenis abc0878268 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
* configure.host: Add mips64*-*-openbsd*.
* configure.tgt: Add mips64*-*-openbsd*.
* Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
mips64obsd-tdep.c.
(mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
* config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
2004-10-23 12:14:02 +00:00
gdbadmin 28d849a229 *** empty log message *** 2004-10-23 00:00:03 +00:00
Joel Brobecker fc062ac6da * symtab.c (symbol_search_name): Minor reformatting. 2004-10-22 20:58:56 +00:00
Michael Snyder 81c0587e03 2004-10-21 msnyder <msnyder@redhat.com>
* mn10300-tdep.c: Replace struct mn10300_unwind_cache with
	struct trad_frame_cache.  Don't seem to need any more.
	(mn10300_frame_unwind_cache): Use trad_frame_cache.
	Tentatively try using SP or A3 reg as frame base.
	(mn10300_frame_dummy_this_id): Rename to mn10300_frame_this_id.
	Call trad_frame_get_id.
	(mn10300_frame_prev_reg): Call trad_frame_get_reg.
	(mn10300_frame_base_address): Call trad_frame_get_this_base.
	(mn10300_frame_args_address, mn10300_frame_locals_address):
	Delete.  Substitute mn10300_frame_base_address.
	(mn10300_frame_unwind_init): Call dwarf2_frame_sniffer (even
	though it doesn't seem to work yet).
2004-10-22 00:34:42 +00:00
gdbadmin 079153e36a *** empty log message *** 2004-10-22 00:00:32 +00:00
Joel Brobecker 43360365b4 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
(ARCH_SET_FS): Likewise.
        (ARCH_GET_FS): Likewise.
        (ARCH_GET_GS): Likewise.
2004-10-21 04:10:48 +00:00
Joel Brobecker ca7d6a0cb5 * gdb.ada/null_record.exp: Check where we stopped after
sending the start command, instead of where the associated
        temporary breakpoint was inserted.
2004-10-21 03:55:08 +00:00
Joel Brobecker 5bccb4d1df * symtab.h: Fix typo in comment. 2004-10-21 00:52:30 +00:00
gdbadmin a40105afc8 *** empty log message *** 2004-10-21 00:00:06 +00:00
gdbadmin ca6b4a3bb9 *** empty log message *** 2004-10-20 00:00:02 +00:00
Mark Kettenis a738430dd6 * dwarf2read.c (struct comp_unit_head): Fix coding style.
(dwarf_decode_line_header): Likewise.
2004-10-19 20:28:56 +00:00
Michael Chastain f2cb65cafb 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
* NEWS: GDB works with GCC -feliminate-dwarf2-dups.
2004-10-19 19:43:50 +00:00
Andrew Cagney 09e55376ec 2004-10-19 Andrew Cagney <cagney@gnu.org>
GDB 6.3 branch created.
	* version.in: Bump to version 6.3.50_2004-10-19-cvs.
2004-10-19 18:18:40 +00:00
gdbadmin 10408d8807 *** empty log message *** 2004-10-19 00:00:02 +00:00
gdbadmin febd16c23a *** empty log message *** 2004-10-18 00:00:02 +00:00
gdbadmin 17a20941ba *** empty log message *** 2004-10-17 00:00:02 +00:00
Daniel Jacobowitz fd5008162e * linux-i386-low.c (ps_get_thread_area): New.
* linux-x86-64-low.c (ps_get_thread_area): New.
	* linux-low.c: Include <sys/syscall.h>.
	(linux_kill_one_process): Don't kill the first thread here.
	(linux_kill): Kill the first thread here.
	(kill_lwp): New function.
	(send_sigstop, linux_send_signal): Use it.
	* proc-service.c: Clean up #ifdefs.
	(fpregset_info): Delete.
	(ps_lgetregs): Update and enable implementation.
	(ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
	implementations.
	* remote-utils.c (struct sym_cache, symbol_cache): New.
	(input_interrupt): Print a clearer message.
	(async_io_enabled): New variable.
	(enable_async_io, disable_async_io): Use it.  Update comments.
	(look_up_one_symbol): Use the symbol cache.
	* thread-db.c (thread_db_look_up_symbols): New function.
	(thread_db_init): Update comments.  Call thread_db_look_up_symbols.
2004-10-16 17:42:00 +00:00
Daniel Jacobowitz f6de3c42a3 * configure.in: Test for -rdynamic.
* configure: Regenerated.
	* Makefile (INTERNAL_LDFLAGS): New.
	(gdbserver, gdbreplay): Use it.
2004-10-16 16:18:54 +00:00