Commit Graph

19248 Commits

Author SHA1 Message Date
gdbadmin bd4c522848 *** empty log message *** 2005-12-08 00:00:02 +00:00
Daniel Jacobowitz 55b3918466 gdb/
* valops.c (value_struct_elt): Clarify error message.
gdb/testsuite/
2005-12-07  Christophe Lyon  <christophe.lyon@st.com>
	* gdb.cp/printmethod.cc (main): Call virt and nonvirt, to force
	code generation for these functions.
	* gdb.cp/printmethod.exp: Expect "&A::nonvirt()" instead of an
	error message.
2005-12-07 23:07:54 +00:00
Jim Blandy 12c7def667 gdb/ChangeLog:
2005-12-07  Jim Blandy  <jimb@redhat.com>

	* target.c (target_xfer_memory_partial): Doc fix.
2005-12-07 19:35:43 +00:00
Jim Blandy 3d269a592e 2005-12-07 Jim Blandy <jimb@redhat.com>
* ax-general.c (ax_reqs): Check stack heights for backward jumps,
	too.  Correctly check height at target.  Doc fixes.
2005-12-07 19:30:25 +00:00
gdbadmin 4209ee02d3 *** empty log message *** 2005-12-07 00:00:34 +00:00
Michael Snyder 6df3bc688d 2005-12-06 Michael Snyder <msnyder@redhat.com>
* cli/cli-decode.c (add_setshow_string_cmd): Indent.
	(add_setshow_integer_cmd): Indent.
2005-12-06 22:13:14 +00:00
Michael Snyder f010475de6 2005-12-06 Michael Snyder <msnyder@redhat.com>
* inf-ptrace.c: Fix typos in comments.
2005-12-06 22:05:51 +00:00
Frederic Riss 1f20321be5 * mi/mi-interp.c (mi_interpreter_resume): Route target error
through the MI.
2005-12-06 05:53:46 +00:00
gdbadmin 5016a164f8 *** empty log message *** 2005-12-06 00:00:33 +00:00
gdbadmin 2077a96429 *** empty log message *** 2005-12-05 00:00:33 +00:00
Mark Kettenis d78749b4b8 * amd64obsd-tdep.c: Include "regcache.h" and "bsd-uthread.h".
(amd64obsd_uthread_reg_offset): New variable.
(AMD64OBSD_UTHREAD_RSP_OFFSET): New define.
(amd64obsd_supply_uthread, amd64obsd_collect_uthread): New
functions.
(amd64obsd_init_abi): Set supply_uthread and collect_uthread.
* Makefile.in (amd64obsd-tdep.o): Update dependencies.
2005-12-04 20:19:25 +00:00
gdbadmin cd05c5d153 *** empty log message *** 2005-12-04 00:00:33 +00:00
Eli Zaretskii fad38dfad4 * gdb.texinfo (Connecting): Explain that `monitor' is a way to
extend GDB with commands for external monitor.
2005-12-03 12:44:31 +00:00
gdbadmin 9d4b91f99e *** empty log message *** 2005-12-03 00:00:32 +00:00
Andrew Stubbs 31e2b00f59 2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>
* breakpoint.c (BREAK_ARGS_HELP): New mecro.
	(_initialize_breakpoint): Enhance break, tbreak, hbreak and thbreak
	commands' help by adding more information and using BREAK_ARGS_HELP
	to duplicate the common parts.  Remove now-redundant cross-references.

testsuite/
	* gdb.base/help.exp (help b, help br, help bre, help brea)
	(help break): Update the expected message.
2005-12-02 14:58:18 +00:00
Andrew Stubbs 53e5f3cf29 2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>
* value.c (init_if_undefined_command): New function.
	(_initialize_values): Add command init-if-undefined.
	* NEWS (Changes since GDB 6.3): Rename to 'Changes in GDB 6.4'.
	(Changes since GDB 6.4): New section.
	Mention new command init-if-undefined.

doc/
	* gdb.texinfo (Convenience variables): Add init-if-undefined command.
2005-12-02 11:44:19 +00:00
Andrew Stubbs 0430b0d6a5 2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>
* symfile.c (symbol_file_clear): Test symfile_objfile is not NULL
	before dereferencing it.
	Gettextize the query.
2005-12-02 11:11:23 +00:00
Joel Brobecker ce37844efa GDB 6.4 released from GDB 6.4 branch. 2005-12-02 07:35:20 +00:00
gdbadmin 8b8c4ae551 *** empty log message *** 2005-12-02 00:00:32 +00:00
Nathan Sidwell 58b78171ca * ms1-tdep.c (ms1_register_name): Const qualify array.
(ms1_registers_info): Use gdb_byte.
	(ms1_push_dummy_call): Likewise.
	(ms1_gdbarch_init): Remove illformed nested prototype.
2005-12-01 13:19:58 +00:00
gdbadmin 0866ed8010 *** empty log message *** 2005-12-01 00:00:03 +00:00
gdbadmin d400ecdc0c *** empty log message *** 2005-11-30 00:00:06 +00:00
Frederic Riss ea7963f00b * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
DWARF2_FRAME_REG_CFA_OFFSET.
	* dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
	DWARF2_FRAME_REG_CFA_OFFSET.
2005-11-29 07:52:39 +00:00
gdbadmin 3c51939b03 *** empty log message *** 2005-11-29 00:00:33 +00:00
Mark Mitchell aba6488e0b * remote-sim.c (gdbsim_wait): Pass target signal numbers to
sim_resume.  Expect target signal numbers from sim_stop_reason.

	* wrapper.c (gdb/signals.h): Include it.
	(SIGTRAP): Don't define.
	(SIGBUS): Likewise.
	(sim_stop_reason): Use TARGET_SIGNAL_* instead of SIG*.

	* sim-reason.c (sim_stop_reason): Use
	sim_signal_to_target, not sim_signal_to_host.
	* sim-signal.c (sim_signal_to_host): Fix typo.
	(sim_signal_to_target): New function.

	* interp.c (gdb/signals.h): Include it.
	(sim_stop_reason): Use TARGET_SIGNAL_*.

	* interf.c: (gdb/signals.h): Include it.
	(sim_stop_reason): Use TARGET_SIGNAL_*.

	* sim_calls.c (gdb/signals.h): Include it.
	(sim_stop_reason): Use TARGET_SIGNAL_*.
	* psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
2005-11-28 18:33:03 +00:00
Christopher Faylor 8efc5725eb * win32-nat.c (env_sort): New function.
(win32_create_inferior): Rename env to in_env.  Sort environment before handing
it off to CreateProcess.
(win32_current_sos): Quiet a compiler warning.
2005-11-28 01:17:59 +00:00
gdbadmin dae0677673 *** empty log message *** 2005-11-28 00:00:33 +00:00
gdbadmin b97a439efa *** empty log message *** 2005-11-27 00:01:03 +00:00
Joel Brobecker 55f6ca0f15 * gdbint.texinfo (Start of New Year Procedure): New chapter. 2005-11-26 00:04:38 +00:00
gdbadmin 5c693b3aa1 *** empty log message *** 2005-11-26 00:00:02 +00:00
Andrew Stubbs a7266fef19 2005-11-16 Andrew Stubbs <andrew.stubbs@st.com>
* event-top.h (async_init_signals): Add SIGTERM handler.
	(handle_sigterm): New function.
	* event-top.h (handle_sigterm): New prototype.
2005-11-25 18:33:12 +00:00
Daniel Jacobowitz b5f558d405 Remove stray colon. 2005-11-25 18:12:42 +00:00
Andrew Stubbs 3386243e48 2005-11-25 Andrew Stubbs <andrew.stubbs@st.com>
* cli-decode.c (find_command_name_length): New function.
	(lookup_cmd_1): Replace loop reading command name with
	find_command_name_length().
	(lookup_cmd): Likewise.
	(lookup_cmd_composition): Likewise.
2005-11-25 11:45:49 +00:00
Frederic Riss 92ad9f6b57 * dwarf2-frame.c: (execute_cfa_program): Don't access past the
allocated dwarf2_frame_state.initial.regs.
2005-11-25 06:42:07 +00:00
Frederic Riss 58ad504107 * MAINTAINERS (Write After Approval): Add myself to the list. 2005-11-25 06:34:47 +00:00
gdbadmin 992e649a8b *** empty log message *** 2005-11-25 00:00:33 +00:00
gdbadmin b615bfbb2d *** empty log message *** 2005-11-24 00:00:02 +00:00
Andrew Stubbs 7db8399e73 2005-11-23 Andrew Stubbs <andrew.stubbs@st.com>
* sh-tdep.c (do_fv_register_info, do_dr_register_info): Delete function.
	(do_bank_register_info, do_bank_register_info): Likewise.
	(sh_print_pseudo_register, sh_do_fp_register): Likewise.
	(sh_do_register, sh_print_register, sh_print_registers_info): Likewise.
	(sh_gdbarch_init): Remove call to set_gdbarch_print_registers_info().
2005-11-23 16:30:36 +00:00
Jim Blandy c1947b85a5 2005-11-21 Jim Blandy <jimb@redhat.com>
* gdb.texinfo (Tracepoint Packets): Document restrictions on
	placement of 'R' actions in tracepoint action packets; document
	dependence of 'X' and 'M' actions on a preceding 'R' action for
	their registers.
2005-11-23 00:03:15 +00:00
gdbadmin 28b33698fa *** empty log message *** 2005-11-23 00:00:03 +00:00
Joel Brobecker ab83048167 * top.c (print_gdb_version): Update copyright year. 2005-11-22 19:24:03 +00:00
gdbadmin 73f749ce79 *** empty log message *** 2005-11-22 00:00:33 +00:00
Mark Kettenis b457b3dd73 * inf-ptrace.c (inf_ptrace_xfer_partial): Use PIOD_WRITE_I instead
of PIOD_WRITE_D.
2005-11-21 09:11:44 +00:00
Jim Blandy f50e79a459 gdb/ChangeLog:
2005-11-19  Jim Blandy  <jimb@redhat.com>

	* tracepoint.c (memrange_absolute): New enum constant.
	(struct memrange, memrange_cmp, add_memrange, collect_symbol,
	stringify_collection_list, encode_actions): Use it instead of '-1'
	to indicate an fixed-address memory range.
	(Suggested by Eli Zaretskii.)
2005-11-21 00:30:22 +00:00
gdbadmin 997299430c *** empty log message *** 2005-11-21 00:00:32 +00:00
Jim Blandy 9d29849ad8 gdb/doc/ChangeLog:
2005-11-19  Jim Blandy  <jimb@redhat.com>

	* gdb.texinfo (Tracepoint Packets): New node.
	(General Query Packets): Add entries for the tracepoint packets,
	referring to the "Tracepoint Packets" node.
	(Tracepoints): Add reference to "Tracepoint Packets".
2005-11-20 06:12:59 +00:00
gdbadmin 9fb4b40d62 *** empty log message *** 2005-11-20 00:00:02 +00:00
Jim Blandy d194871675 2005-11-19 Jim Blandy <jimb@redhat.com>
* tracepoint.c (stringify_collection_list): Indicate absolute
	memory ranges by using "-1" as the memory range's base register
	number, not "FFFFFFFF".
2005-11-19 18:57:28 +00:00
Randolph Chung 9c23835799 2005-11-19 Randolph Chung <tausq@debian.org>
* dwarf2loc.c (dwarf2_tracepoint_var_ref): Remove extra add for
	DW_OP_fbreg.  Handle DW_OP_breg0 through DW_OP_breg31.  Print
	DWARF opcode for unsupported case.
2005-11-19 13:43:35 +00:00
Randolph Chung 27b08a0cb4 2005-11-19 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Use
	HPPA_HPUX_SS_* constants.  Ensure "off" is large enough to hold
	64-bit offset.  Set proper signal context offset for 64-bit
	programs.  Set pc properly for signal frames.
2005-11-19 12:55:55 +00:00
Randolph Chung 765697c9ec 2005-11-19 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (hppa_hpux_sigtramp_unwind_sniffer): Rely on the
	unwind record to determine a signal frame, instead of hardcoding
	a function name.
2005-11-19 12:47:21 +00:00
Randolph Chung c4c79048fa 2005-11-19 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (skip_prologue_hard_way): Add one more insn pattern
	for "std rp,-0x10(sp)".
	(hppa_frame_cache): Likewise.
	(hppa_fallback_frame_cache): Likewise.
2005-11-19 12:39:50 +00:00
Randolph Chung 9ed5ba2423 2005-11-19 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa_frame_cache): Reformat code and enhance
	debugging.
2005-11-19 12:38:56 +00:00
Jim Blandy 6244699480 2005-11-18 Jim Blandy <jimb@redhat.com>
* tracepoint.c (collect_symbol): Doc fix.
2005-11-19 04:44:43 +00:00
Jim Blandy 0f570f537e 2005-11-18 Jim Blandy <jimb@redhat.com>
* tracepoint.c (struct memrange): Doc fix.
2005-11-19 01:23:26 +00:00
gdbadmin 7148bbdc24 *** empty log message *** 2005-11-19 00:00:34 +00:00
Kevin Buettner 9a6253be92 * gdb.texinfo (set remotebreak): Add anchor.
(X packet): Likewise.
	(Remote Protocol): Add new section `Interrupts' and new index
	entry `interrupts (remote protocol)'.
2005-11-18 22:17:09 +00:00
Jim Blandy 5f3bebba9f * gdb.texinfo (Packets): Move information out of 'q' and 'Q'
entries into the General Query Packets section.  Add a
cross-reference to that section.  Drop description of replies, as
these are covered in the descriptions of each packet.
(General Query Packets): Add introductory text.  Explain naming
conventions, and how the end of a name is recognized.
2005-11-18 19:20:56 +00:00
Andrew Stubbs 0be75e0273 2005-11-18 Andrew Stubbs <andrew.stubbs@st.com>
* mi/mi-main.c (mi_load_progress): Ensure the use of the correct mi
	uiout for the duration of the function.
2005-11-18 17:02:14 +00:00
Nick Roberts a2140d4d10 (gdb-source-file-list): Declare.
(gdbmi): Bind new functions.
(gdbmi-var-list-children-handler, gdbmi-var-list-children-regexp):
Handle string expressions properly.  Move "type" field into regexp.
(gdbmi-var-update-regexp, gdbmi-var-update-handler): Handle string
expressions properly.  Update speedbar.
(gdbmi-breakpoints-buffer, gdb-stack-buffer, gdb-locals-buffer)
(gdb-registers-buffer): Use def-gdb-auto-update-trigger instead of
def-gdb-auto-updated-buffer as handlers is defined explicitly.
(gdb-stack-list-locals-handler): Handle string expressions properly.
(gdb-data-list-register-values-handler)
(gdb-data-list-register-values-custom): Fontify buffer.
2005-11-18 06:37:38 +00:00
Nick Roberts 0d983938b1 *** empty log message *** 2005-11-18 06:37:11 +00:00
Nick Roberts 8da2ba18fd *** empty log message *** 2005-11-18 06:35:02 +00:00
gdbadmin 1928f86ce1 *** empty log message *** 2005-11-18 00:00:02 +00:00
Kevin Buettner 0564b6cfcd Fix ChangeLog typo from previous commit. 2005-11-17 19:12:26 +00:00
Kevin Buettner 9a7a1b3614 * gdb.texinfo (Remote Configuration): Fix typo in description of
"set remotebreak" command.
2005-11-17 19:08:38 +00:00
Daniel Jacobowitz 17d43da18d * version.in: Update to 6.4.50. 2005-11-17 04:05:35 +00:00
gdbadmin a0fef31c45 *** empty log message *** 2005-11-17 00:00:02 +00:00
Andrew Stubbs d91e990118 2005-11-16 Andrew Stubbs <andrew.stubbs@st.com>
* NEWS (6.4): Mention $argc.
2005-11-16 12:49:17 +00:00
Jim Blandy b8ff78cefa gdb/doc/ChangeLog:
2005-11-16  Jim Blandy  <jimb@redhat.com>

	* gdb.texinfo (Packets, Stop Reply Packets)
	(General Query Packets): Various formatting cleanups.
	- Use @samp for packet contents.
	- Drop summaries from packet @item lines; the same information appears
	  immediately below in the description.
	- Delete paragraph breaks after packet @item commands, so that the
	  description appears directly to the right of the packet prototype
	  in the printed manual, if it fits.
	- Place spaces in packet prototypes between @vars and non-@var
	  letters, and explain that they're just for formatting.
	- Use @dots{} instead of '...'.
	- Fix uses of @code where @var was needed.
	- Replace "deprecated" markers with English text spelling out the
	  packet's status and the preferred alternatives.
	- Remove "(reserved)" markers on 'A' and 'I' packets; it's unclear
	  what this ever meant.
	- Remove "(draft)" markers on 'i' packets; nobody has commented on
	  this for a long time.
	- Remove "(draft)" markers on 'z' and 'Z' packets; these have been
	  implemented several times, and have been in use for years.
2005-11-16 10:34:33 +00:00
Jim Blandy c43c547375 2005-11-15 Jim Blandy <jimb@redhat.com>
* gdb.texinfo (Packets): Add index entries for 'm' packet
	disclaimers.
2005-11-16 06:24:52 +00:00
gdbadmin 525852f863 *** empty log message *** 2005-11-16 00:00:02 +00:00
Jim Blandy fb031cdf9e * gdb.texinfo (Packets): Clarify lack of restrictions on behavior
of stub when processing an 'm' packet.
2005-11-15 19:58:30 +00:00
Jim Blandy 8ffe25303d * gdb.texinfo (Packets): Mention that packets beginning with
letters are reserved once, at the top, instead of actually listing
them all and saying "reserved".
2005-11-15 18:00:28 +00:00
Andrew Stubbs b33a619050 2005-11-15 Andrew Stubbs <andrew.stubbs@st.com>
* NEWS: Add --batch-silent, --return-child-result, and --eval-command
	options to the 6.4 section.
2005-11-15 12:38:45 +00:00
Andrew Stubbs c03c782ff0 2005-11-15 Andrew Stubbs <andrew.stubbs@st.com>
* cli/cli-script.c: Include gdb_assert.h.
	(locate_arg): Detect $argc.
	(insert_args): Substitute $argc.
	* Makefile.in (cli-script.o): Add dependency on gdb_assert.h.

doc/
	* gdb.texinfo (User-defined commands): Add $argc. Add missing 'end'.
	Change @var{$arg0 to @code{$arg0.
2005-11-15 12:03:08 +00:00
gdbadmin 331e31641e *** empty log message *** 2005-11-15 00:00:32 +00:00
Jim Wilson 22c6cabacd Fix gcc bug 24490, location list query failed due to out-of-range address.
PR 2024
* dwarf2loc.c (dwarf_expr_frame_base): Use get_frame_address_in_block
instead of get_frame_pc.
(loclist_read_variable): Likewise.
2005-11-14 22:25:16 +00:00
Andrew Stubbs bd73ccbdac 2005-11-14 Andrew Stubbs <andrew.stubbs@st.com>
* MAINTAINERS (Write After Approval): Add myself to the list.
2005-11-14 19:07:15 +00:00
Andrew Stubbs ad21ceb022 2005-11-14 Andrew Stubbs <andrew.stubbs@st.com>
* thread.c (_initialize_thread): Correct the 'thread apply' help
	message.
2005-11-14 17:03:25 +00:00
Wu Zhou ff2587ec78 * gdb.texinfo: Correct a merge error introduced by -r 1.286. 2005-11-14 03:27:22 +00:00
Wu Zhou 814e32d720 * gdb.texinfo (Fortran): Add some words about Fortran debugging. 2005-11-14 02:34:43 +00:00
gdbadmin eafa87ff3b *** empty log message *** 2005-11-14 00:00:03 +00:00
Daniel Jacobowitz 0cc7b39248 * elfread.c (elf_symtab_read): Remove if (1) and reindent. 2005-11-13 18:56:34 +00:00
Daniel Jacobowitz c75a2cc832 * arm-linux-tdep.c (eabi_linux_arm_le_breakpoint)
(eabi_linux_arm_be_breakpoint): New variables.
	(arm_linux_init_abi): Use them.
2005-11-13 18:04:14 +00:00
Daniel Jacobowitz 9d1fb17785 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
(arm_breakpoint_at): Recognize both breakpoints.
	(the_low_target): Use the correct breakpoint instruction.
2005-11-13 18:04:03 +00:00
gdbadmin f0b3881fd7 *** empty log message *** 2005-11-13 00:00:02 +00:00
Jim Blandy fa93a9d8fc 2005-11-12 Jim Blandy <jimb@redhat.com>
* gdb.texinfo (General Query Packets): Put packets in alphabetical
	order.  Remove extraneous 'z'.
2005-11-12 23:09:46 +00:00
gdbadmin d3166d3a2a *** empty log message *** 2005-11-12 00:00:33 +00:00
Michael Snyder 946db78215 2005-11-11 Michael Snyder <msnyder@redhat.com>
* inftarg.c (child_wait): Delete unused local variable.
2005-11-11 22:30:23 +00:00
Stephane Carrez ca9d4aead9 PR tui/1995
* tui/tui-command.c (tui_dispatch_ctrl_char): Handle CTRL-L even if the
	focus is on the command window.
2005-11-11 19:55:51 +00:00
Stephane Carrez fddb59b729 * tui/tui-win.c (tui_update_gdb_sizes): Use tui_term_width() and
tui_term_height() to restore the terminal size when leaving the
	TUI mode.
2005-11-11 18:07:09 +00:00
Stephane Carrez c3d0b56edf * gdb.asm/m68hc11.inc: Setup the data section.
* gdb.asm/asm-source.exp (m6811-*-*): Don't use the target board linker
	script for this test.
	(m6812-*-*): Likewise.
2005-11-11 11:18:53 +00:00
Stephane Carrez ff1e98b937 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Use gdb_byte
for buffers.
	(m68hc11_pseudo_register_read): Likewise.
	(m68hc11_return_value): Likewise.
	(m68hc11_frame_prev_register): Likewise.
	(m68hc11_frame_align): Remove as its seems no longer necessary.
	(m68hc11_gdbarch_init): Don't install frame_align handler.
	(m68hc11_scan_prologue): Fix crash that occurred when called from
	m68hc11_skip_prologue
2005-11-11 10:25:34 +00:00
gdbadmin c1446365bb *** empty log message *** 2005-11-11 00:00:32 +00:00
Mark Kettenis 043c9cdcc3 * MAINTAINERS: Mark m68k-elf, sparc-elf and vax-netbsd as no
longer broken.
2005-11-10 19:21:51 +00:00
gdbadmin 81aa3c3cd9 *** empty log message *** 2005-11-10 00:00:34 +00:00
Randolph Chung 36ae0ea97e 2005-11-09 Randolph Chung <tausq@debian.org>
* gdb.base/structs2.exp: Update xfail to only trigger for gcc-3.x.
2005-11-09 15:45:55 +00:00
Randolph Chung 11fae660b9 2005-11-09 Randolph Chung <tausq@debian.org>
* hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
	hppa_linux_{store,fetch}_inferior_registers instead of
	arm_linux_{store,fetch}_inferior_registers.
2005-11-09 07:22:40 +00:00
Kazuhiro Inaoka 492e5c6b71 2005-11-08 Kei Sakamoto <sakamoto.kei@renesas.com>
* remote-m32r-sdi.c: Update copyright years.
        (m32r_resume): Write DBT at word-aligned addresses.
        (m32r_wait): Use SDI_WRITE_MEMORY to remove DBT.
2005-11-09 07:09:05 +00:00
Wu Zhou 9d6f42e946 gdb.base/break.exp: Fix a comment typo. 2005-11-09 06:41:30 +00:00
gdbadmin d0967c0f3c *** empty log message *** 2005-11-09 00:00:04 +00:00
Kazuhiro Inaoka 16ac4ab5a8 2005-11-08 Kei Sakamoto <sakamoto.kei@renesas.com>
* m32r-linux-tdep.c (linux_sigtramp_code): Use 'gdb_byte' instead
	of 'unsigned char'.
	(m32r_linux_sigtramp_start): Likewise.
	(linux_rt_sigtramp_code): Likewise.
	(m32r_linux_rt_sigtramp_start): Likewise.
	(m32r_linux_sigtramp_frame_prev_register): Use 'gdb_byte *' instead
	of 'void *'.
	* m32r-tdep.c (m32r_memory_insert_breakpoint): Use 'gdb_byte'
	instead of 'char'.
	(m32r_memory_remove_breakpoint): Likewise.
	(m32r_breakpoint_from_pc): Likewise.
	(m32r_store_return_value): Likewise.
	(decode_prologue): Likewise.
	(m32r_push_dummy_call): Likewise.
	(m32r_return_value): Use 'gdb_byte *' instead of 'void *'.
	* remote-m32r-sdi.c (m32r_xfer_memory): Use 'gdb_byte' instead of
	'char'.
2005-11-08 05:54:22 +00:00
Kevin Buettner 2fda21a6e3 * ia64-tdep.c (floatformat_valid): Change type of `from' from
`const char *' to `const void *'.
2005-11-08 01:42:53 +00:00
Kevin Buettner e2b7c96630 Various gdb_byte related changes for FRV targets. 2005-11-08 01:01:34 +00:00
gdbadmin 8c50e5e45a *** empty log message *** 2005-11-08 00:00:33 +00:00
Paul Gilliam 3d8476bc1b 2005-10-24 Paul Gilliam <pgilliam@us.ibm.com
* ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Copy code from
	ppc_sysv_abi_return_value() to handle a vector return value.
2005-11-07 20:37:58 +00:00
Andrew Stubbs f17517ea06 2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
* main.h (return_child_result, return_child_result_value): Declare.
	* infrun.c: Include main.h.
	(print_stop_reason): Remove declaration of return_child_result_value.
	* top.c: Include main.h.
	(quit_force): Remove declarations of return_child_result_value and
	return_child_result.
	* Makefile.in (top.o, infrun.o): Add main.h to dependencies.
2005-11-07 15:27:07 +00:00
Andrew Stubbs eef5702201 2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
* Makefile.in (tui-winsource.o): Add gdb_assert.h to dependencies.
2005-11-07 15:12:48 +00:00
Andrew Stubbs 8a5a3c8298 2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
* main.c (captured_main): Define struct cmdarg. Change type of cmdarg.
	Add new options --eval-command and alias -ex.
	Adjust --command to use the new struct cmdarg.
	Execute commands given with --eval-command.
	(print_gdb_help): Add new options --eval-command, -ex and mention -x.

docs/

	* gdb.texinfo (Choosing files): Add --eval-command.
2005-11-07 13:56:48 +00:00
Andrew Stubbs 3b49312243 2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
* main.c (main): Use INTERP_TUI instead of "tui".
	Set interpreter to INTERP_INSIGHT when '-w' given.
	* interps.h (INTERP_INSIGHT): New define.
	* tui/tui-interp.c (_initialize_tui_interp): Use INTERP_TUI instead
	of "tui".
2005-11-07 13:40:08 +00:00
Andrew Stubbs cc4349edfd 2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
* main.c (main): Use INTERP_TUI instead of "tui".
	Set interpreter to INTERP_INSIGHT when '-w' given.
	* interps.h (INTERP_INSIGHT): New define.
	* tui/tui-interp.c (_initialize_tui_interp): Use INTERP_TUI instead
	of "tui".
2005-11-07 12:46:38 +00:00
gdbadmin 4c85b6aa27 *** empty log message *** 2005-11-07 00:00:33 +00:00
gdbadmin a7a697d6c4 *** empty log message *** 2005-11-06 00:00:04 +00:00
gdbadmin 6f18b2ad5b *** empty log message *** 2005-11-05 00:00:33 +00:00
Andrew Stubbs 4b0ad76243 2005-11-04 Andrew Stubbs <andrew.stubbs@st.com>
* infrun.c (print_stop_reason): Set return_child_result_value on exit.
	* main.c (return_child_result): New variable.
	(return_child_result_value): Likewise.
	(captured_main): Add option --return-child-result.
	Replace call to target_detach and exit (in batch mode) with quit_force.
	(print_gdb_help): Add option --return-child-result.
	* top.c (quit_force): Return child result if appropriate.

docs/
	* gdb.texinfo (Choosing modes): Add --return-child-result.
2005-11-04 11:49:12 +00:00
Elena Zannoni f6235d4cfa 2005-11-03 Wu Zhou <woodzltc@cn.ibm.com>
Checked in by Elena Zannoni  <ezannoni@redhat.com>

       * dwarf2read.c (read_structure_type): Add IBM XL C++
       specific code to set TYPE_VPTR_FIELDNO and TYPE_VPTR_BASETYPE
       of a virtual class if a field named "__vfp" is found.
2005-11-04 02:50:30 +00:00
Elena Zannoni e2126a1475 2005-11-03 Jim Blandy <jimb@redhat.com>
Checked in by Elena Zannoni  <ezannoni@redhat.com>

       * gdb.dwarf2/mac-fileno.exp, gdb.dwarf2/mac-fileno.S: New tests.
2005-11-04 02:48:51 +00:00
Elena Zannoni 6a83a1e604 2005-11-03 Jim Blandy <jimb@redhat.com>
Checked in by Elena Zannoni  <ezannoni@redhat.com>

       * dwarf2read.c (file_full_name): Cope with file numbers that are
       out of range for the given line header.
2005-11-04 02:46:45 +00:00
Elena Zannoni 6255354386 2005-11-03 Daniel Jacobowitz <dan@codesourcery.com>
Checked in by Elena Zannoni  <ezannoni@redhat.com>

       * elfread.c (elf_symtab_read): Add number_of_symbols and
       symbol_table as arguments.  Do not load the symbol table
       here.
       (elf_symfile_read): Load the static and dynamic symbol tables
       here, before calling elf_symtab_read.  Also load any synthetic
       symbols and process those.
2005-11-04 02:44:25 +00:00
Elena Zannoni 23572ecadc 2005-11-03 Andrew Cagney <cagney@gnu.org>
Checked in by Elena Zannoni  <ezannoni@redhat.com>

       * dwarf2loc.c (dwarf2_evaluate_loc_desc): Handle DW_OP_piece
       reads.
2005-11-04 02:42:34 +00:00
gdbadmin 9b1771bc2b *** empty log message *** 2005-11-04 00:00:03 +00:00
Daniel Jacobowitz 76f50ad1ce * linux-nat.c (linux_nat_resume): Add more debugging messages. Do
not short-circuit resuming all threads if the signal will be ignored
	in linux_nat_wait.
2005-11-03 19:31:38 +00:00
gdbadmin a83b3ee0ec *** empty log message *** 2005-11-03 00:00:03 +00:00
Daniel Jacobowitz 011a70c2ea * configure.srv (x86_64-*-linux*): Turn on thread_db support.
* linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
	(x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
	(the_low_target): Update.
2005-11-02 19:54:44 +00:00
Andrew Stubbs 18cf8b5b37 2005-11-02 Andrew Stubbs <andrew.stubbs@st.com>
* monitor.c (monitor_xfer_memory): Change char to gdb_byte.
	(monitor_insert_breakpoint): Likewise.
	(monitor_remove_breakpoint): Likewise.
	* remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
	* sh-tdep.c (sh_return_value_nofpu): Change void to gdb_byte.
	(sh_return_value_fpu): Likewise.
	(sh_pseudo_register_read): Likewise.
	(sh_pseudo_register_write): Likewise.
	(sh_frame_prev_register): Likewise.
	* sh64-tdep.c (sh64_extract_return_value): Change char to gdb_byte.
	(sh64_return_value): Change void to gdb_byte.
	(sh64_pseudo_register_read): Likewise.
	(sh64_pseudo_register_write): Likewise.
	(sh64_frame_prev_register): Likewise.
2005-11-02 15:22:24 +00:00
Corinna Vinschen e0ac7199c4 * gdb.arch/gdb1558.c: Include stdio.h. 2005-11-02 11:03:02 +00:00
Joel Brobecker 7cd012f3da * event-top.c (gdb_setup_readline): Add missing type in extern
declaration.
2005-11-02 05:57:25 +00:00
gdbadmin e3267a15d7 *** empty log message *** 2005-11-02 00:00:03 +00:00
Paul Gilliam f5aecab85d * rs6000-tdep.c (rs6000_gdbarch_init): On GNU/Linux, assume that
bfd_mach_ppc64 has altivec unit, just like bfd_mach_ppc.
2005-11-01 19:32:36 +00:00
Andrew Stubbs 362c05fe98 2005-11-01 Andrew Stubbs <andrew.stubbs@st.com>
* tui/tui-data.h (tui_line_or_address): Encapsulate the union in a
	struct with a tag.
	(tui_source_element, tui_source_info): Update.
	* tui/tui-disasm.c, tui/tui-source.c: Update to use the tagged union.
	* tui/tui-source.h, tui/tui-stack.c, tui/tui-win.c: Likewise.
	* tui/tui-winsource.c, tui/tui-data.c, tui/tui-layout.c: Likewise.
	* tui/tui-winsource.h: Likewise.
2005-11-01 17:40:25 +00:00
Christopher Faylor 3929abe911 * win32-nat.c (CYGWIN_SIGNAL_STRING): Delete.
(_CYGWIN_SIGNAL_STRING): Define if not already defined in cygwin.h.
(win32_add_thread): Use XZALLOC rather than xmalloc/memset.
(register_loaded_dll): Ditto.
(handle_load_dll): Call solib_add here.
(handle_unload_dll): Ditto.
(info_dll_command): Delete.
(handle_output_debug_string): Use official _CYGWIN_SIGNAL_STRING.
(win32_current_sos): Duplicate table to pass off to caller rather than deleting
our version.
(set_win32_aliases): New function.
(_initialize_win32_nat): Remove local handling of "info shared".  Set
deprecated_init_ui_hook to allow late setting of "info dll" alias.
2005-11-01 14:07:00 +00:00
Andrew Stubbs 1a088d065a 2005-11-01 Andrew Stubbs <andrew.stubbs@st.com>
* event-top.c (gdb_setup_readline): Don't set gdb_stdout when
	--batch-silent option was given.
	* main.c (batch_silent): New variable.
	(captured_main): Add new option --batch-silent.
	(print_gdb_help): Likewise.

doc/
	* gdb.texinfo (Choosing modes): Add --batch-silent.
2005-11-01 11:09:18 +00:00
Mark Kettenis e85e5c83db * NEWS: Mention VAX floating point support. 2005-11-01 07:30:47 +00:00
Christopher Faylor 3cb8e7f69c * win32-nat.c (get_relocated_section_addrs): Reinstate.
(solib_symbols_add): New function.
(lm_info): Remove end_addr field.
(register_loaded_dll): Don't try to find end_addr since gdb will do this
automatically now.  Make so_original_name == so_name for now.  Eliminate strcpy
by using so_name directly.  Read in symbols if new paramater "readsyms" is
true.
(handle_load_dll): Pass auto_solib_add to register_loaded_dll to control when
symbols should be read.
(win32_free_so): Don't free objfile here.
(win32_create_inferior_hook): New function.
(handle_unload_dll): Remove left-over cruft.
(win32_special_symbol_handling): New (dummy) function.
(map_single_dll_code_section): Reinstate.
(dll_code_sections_add): Reinstate.
(core_section_load_dll_symbols): Reinstate.  Don't issue an error on duplicate
attempts to read same dll.  Make sure that UNIX-like name is used to register
DLL.
(win32_current_sos): Handle core files.  Reset private list before passing
start of list pointer to gdb.
(init_win32_ops): Fill out (currently unused) solib_create_inferior_hook.  Fill
out special_symbol_handling.
* config/i386/tm-cygwin.h: Remove most special solib stuff.
2005-11-01 05:08:29 +00:00
Christopher Faylor 1b6d3ab111 * win32-nat.c: Remove comment intended only for debugging. 2005-11-01 00:40:09 +00:00
gdbadmin 4c516d9aa3 *** empty log message *** 2005-11-01 00:00:33 +00:00
Mark Kettenis 0a3e99f6bc * doublest.c (floatformat_normalize_byteorder): Handle
floatformat_vax.
(convert_doublest_to_floatformat): Use
floatformat_normalize_byteorder to swap bytes if necessary.
* vax-tdep.c: Include floatformat.h.
(vax_gdbarch_init): Set float_format, double_format,
long_double_format and long_double_bit.
* Makefile.in (vax-tdep.o): Update dependencies.
2005-10-31 23:35:52 +00:00
Christopher Faylor 3ee6f62373 Change child_ to win32_ throughout.
* win32-nat.c (win32_ops): New variable.
(win32_so_ops): Ditto.
(psapi_get_dll_name): Make function static.
(struct so_stuff): Delete.
(struct lm_info): New struct.
(solib_start, solib_end): Redefine as struct so_list.
(safe_symbol_file_add_stub): Use so_list rather than so_stuff.
(register_loaded_dll): Ditto.  Special-case ntdll.dll.  Fill in lm_info field
of so_list with information previously stored in so_stuff.
(get_image_name): Make function static.
(max_dll_name_len): Make variable static.
(win32_free_so): New function.
(win32_current_sos): Ditto.
(win32_relocate_section_addresses): Ditto.
(handle_unload_dll): Use so_list rather than so_stuff.  Call free_so to delete
shared library.
(solib_address): Delete function.
(child_solib_loaded_library_pathname): Ditto.
(win32_clear_solib): Rename from child_clear_solibs.  Use so_list rather than
so_stuff.  Just clear win32-specific stuff.
(get_relocated_section_addrs): Delete.
(solib_symbols_add): Ditto.
(info_dll_command): Make static.  Use lm_info field from so_list to retrieve
load address.
(fake_create_process): Make function static.
(win32_xfer_memory): Ditto.
(win32_kill_inferior): Ditto.
(win32_resume): Ditto.
(cygwin_pid_to_str): Ditto.
(do_initial_win32_stuff): Use win32_ops rather than deprecated_child_ops.
(child_detach): Ditto.
(win32_mourn_inferior): Ditto.
(_initialize_win32_nat): Ditto.
(init_win32_ops): Ditto.  Fill out win32_so_ops and set current_target_so_ops
to win32_so_ops.
(core_dll_symbols_add): Delete.
(map_single_dll_code_section): Ditto.
(dll_code_sections_add): Ditto.
(core_section_load_dll_symbols): Ditto.
(child_solib_add): Ditto.
2005-10-31 22:50:58 +00:00
Mark Kettenis 31d3fb18aa * gdb.asm/asm-source.exp: Use -e instead of --entry. 2005-10-31 20:33:22 +00:00
Andrew Stubbs bbe6b987a5 2005-10-31 Andrew Stubbs <andrew.stubbs@st.com>
* tui/tui-command.c (tui_dispatch_ctrl_char): Test output of
	getenv() before using it.
2005-10-31 19:11:35 +00:00
Mark Kettenis e52b687cc5 * gdb.base/bfp-test.exp: Properly anchor gdb_multiple_test usage. 2005-10-31 16:00:46 +00:00
gdbadmin 49958b7d4f *** empty log message *** 2005-10-31 00:00:33 +00:00
gdbadmin 5f522e1e04 *** empty log message *** 2005-10-30 00:00:35 +00:00
Mark Kettenis d275c05160 * hppa-tdep.h (HPPA_INSN_SIZE): New define.
* hppa-hpux-tdep.c (hppa_hpux_search_pattern)
(hppa64_hpux_search_dummy_call_sequence): Rewrite to avoid
assumption on sizeof(unsigned).
2005-10-29 21:31:45 +00:00
Mark Kettenis 7c35e3f307 * inf-ttrace.c (inf_ttrace_wait): Comment out TARGET_WAITKIND_EXEC
code; return TARGET_WAITKIND_STOPPED instead.
2005-10-29 21:22:39 +00:00
gdbadmin 3b86368e68 *** empty log message *** 2005-10-29 00:00:04 +00:00
Mark Kettenis a0c758791c * ppc-tdep.h (PPC_INSN_SIZE): Define. 2005-10-28 18:23:32 +00:00
Mark Kettenis 346e281c43 * inf-ttrace.c (inf_ttrace_mourn_inferior): Remove redundant cast.
(inf_ttrace_kill): Renamed from inf_ttrace_kill_inferior.
(inf_ttrace_target): Resort assignments.
2005-10-28 18:20:35 +00:00
Eli Zaretskii 656d5e120f * gdb.texinfo (GDB/MI Variable Objects): Fix @pxref usage under
"The -var-update Command".
2005-10-28 17:20:03 +00:00
Nick Roberts f0afd306b6 Sync with Emacs 22.0.50. 2005-10-28 03:26:19 +00:00