Commit Graph

18782 Commits

Author SHA1 Message Date
gdbadmin 8655b342bf *** empty log message *** 2005-07-29 00:00:38 +00:00
gdbadmin bec15d1f6a *** empty log message *** 2005-07-28 00:00:39 +00:00
Nick Roberts d8d83e9b52 * gdb.mi/var-cmd.c: Give long_array in _struct_decl 12 elements.
(do_children_tests): Assign values to the extra elements.

* gdb.mi/mi-var-child.exp: Adapt tests for extra elements and use
them for tests for "-var-update --no-values" and
"-var-update --all-values".
Add test for "-var-list-children --simple-values".

* gdb.mi/basics.c (callee4): Add integer array D[3]...

* gdb.mi/mi-stack.exp (test_stack_locals_listing): ...to test
"-stack-list-locals --simple-values"  Improve doc strings and
comments.
2005-07-27 02:21:16 +00:00
Nick Roberts 4e660f0729 *** empty log message *** 2005-07-27 02:18:24 +00:00
gdbadmin 80531647e1 *** empty log message *** 2005-07-27 00:00:07 +00:00
Mark Kettenis 3ed8524757 * i386obsd-tdep.c (i386obsd_sigreturn_offset): New variable.
(i386obsd_sigtramp_p): Deal with an arbitrary number of possible
offsets.
(i386obsd_aout_supply_regset): Avoid bogus cast.
2005-07-26 20:02:55 +00:00
gdbadmin 947815aa1e *** empty log message *** 2005-07-26 00:00:03 +00:00
Mark Kettenis 735f54b499 * inf-ptrace.c [PT_GET_PROCESS_STATE] (inf_ptrace_follow_fork):
New function.
(inf_ptrace_him, inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Set
PTRACE_FORK event flag.
(inf_ptrace_wait) [PT_GET_PROCESS_STATE]: Handle PTRACE_FORK
event.
(inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set to_follow_fork.
2005-07-25 21:11:02 +00:00
Mark Kettenis 4b8a1a2882 * gdb_ptrace.h (PT_TRACE_ME): Define to zero if not already
defined.
* inf-ptrace.c: Tweak comments.
(inf_ptrace_me): Use PT_TRACE_ME instead of hardcoded zero.
(inf_ptrace_mourn_inferior): Call waitpid.
(inf_ptrace_attach): Use pid_t, Remove unnecessary cast.
(inf_ptrace_detach): Use pid_t.  Use ptid_get_pid instead of
PIDGET.
(inf_ptrace_kill): Rename from inf_ptrace_kill_inferior.  Use
pid_t.  Use ptid_get_pid instead of PIDGET.
(inf_ptrace_kill): Call waitpid instead of wait.
(inf_ptrace_resume): Use pid_t.  Use ptid_get_pid instead of
PIDGET.
(inf_ptrace_wait): Use waitpid instead wait.  Use pid_t.  Don't
call target_has_exited or target_thread_alive.  Properly ignore
terminated detached child processes.
(inf_ptrace_has_exited): Remove function.
(inf_ptrace_xfer_partial): Use pid_t.  Use ptid_get_pid instead of
PIDGET.  Use gdb_byte instead of `unsigned char'.
(inf_ptrace_thread_alive): Use ptid_get_pid instead of PIDGET.
(inf_ptrace_pid_to_str): Remove function.
(inf_ptrace_target): Use inf_ptrace_kill instead of
inf_ptrace_kill_inferior.  Use normal_pid_to_str instead of
inf_ptrace_pid_to_str.  Don't set to_has_exited.
(inf_ptrace_fetch_register, inf_ptrace_store_register): Reformat
long lines.
2005-07-25 20:42:29 +00:00
Mark Kettenis c7c14b96ad * inf-ptrace.c: Reorder functions.
(inf_ptrace_open, inf_ptrace_reported_exec_events_per_call)
(inf_ptrace_can_run, inf_ptrace_post_attach): Removed.
(inf_ptrace_target): Don't set to_open,
to_reported_exec_events_per_call, to_can_run, to_post_attach,
to_stratum, to_has_all_memory, to_has_memory, to_has_stack,
to_has_registers, to_has_execution, to_magic.  Reorder remaining
initializations.
2005-07-25 20:19:37 +00:00
Mark Mitchell 7ef34f2cde * configure.ac: On MinGW, do not require a termcap library, and
use win32-termcap.c.
	* configure: Regenerated.
	* win32-termcap.c: New file.
2005-07-25 15:08:41 +00:00
gdbadmin 47f7a80ea0 *** empty log message *** 2005-07-25 00:00:02 +00:00
Mark Mitchell 056d764617 * ser-tcp.c (close): Define as a function-like macro on MinGW. 2005-07-24 23:02:41 +00:00
gdbadmin 565b98c91a *** empty log message *** 2005-07-24 00:00:04 +00:00
gdbadmin 8988f097ff *** empty log message *** 2005-07-23 00:00:04 +00:00
gdbadmin 7e6ac9b631 *** empty log message *** 2005-07-22 00:00:08 +00:00
Eric Christopher e04e8f8ae6 2005-07-21 Eric Christopher <echristo@apple.com>
* MAINTAINERS (Misc): Update affiliation.
2005-07-21 22:30:16 +00:00
Mark Kettenis 5d426ff1d3 * inf-ttrace.c (inf_ttrace_wait): Properly report TTEVT_EXEC
events as TARGET_WAITKIND_EXECD.
(inf_ttrace_detach): Reorder local variables.
2005-07-21 10:36:19 +00:00
gdbadmin 6f6b6d441e *** empty log message *** 2005-07-21 00:00:33 +00:00
Mark Kettenis b2a4db28c2 * inf-ttrace.c (inf_ttrace_vfork_ppid): New variable.
(inf_ttrace_follow_fork): New function.
(inf_ttrace_him, inf_ttrace_attach): Ask for TTEVT_FORK and
TTEVT_VFORK events.  Replace TTEO_NOSTRCHLD option with
TTEO_PROC_INHERIT.
(inf_ttrace_create_inferior, inf_ttrace_attach): Add checks for
inf_ttrace_vfork_ppid.
(inf_ttrace_kill_inferior, inf_ttrace_detach): Detach from waiting
parent if appropriate.
(inf_ttrace_wait): Handle TTEVT_FORK and TTEVT_VFORK.
(inf_ttrace_target): Set to_follow_fork.
2005-07-20 13:25:28 +00:00
Wu Zhou 6c76e4a1c9 * remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf. 2005-07-20 02:56:43 +00:00
gdbadmin c17d7d346c *** empty log message *** 2005-07-20 00:00:12 +00:00
gdbadmin 3b839719c2 *** empty log message *** 2005-07-19 00:00:33 +00:00
Mark Kettenis 5fff8fc01d * target.c (normal_pid_to_str): Use xsnprintf instead of snprintf.
* bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
* inf-ttrace.c (inf_ttrace_pid_to_str): Likewise.
2005-07-18 21:00:50 +00:00
Mark Kettenis a7aad9aa6a * hppa-tdep.h (hppa_frame_prev_register_helper): Change types of
last argument to `gdb_byte *'.
* hppa-tdep.c (hppa32_convert_from_func_ptr_addr): Rewrite.
(hppa_frame_prev_register_helper): Change types of last argument
to `gdb_byte *'.
* hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_prev_register):
Change types of last argument to `gdb_byte *'.
2005-07-18 20:34:09 +00:00
Mark Kettenis 598b7a6f2b * gdb.base/sigaltstack.exp (finish_test): KFAIL gdb/1736 on
*-*-openbsd*.
* gdb.base/sigstep.exp (advancei): KFAIL gdb/1736 on *-*-openbsd*.
2005-07-18 19:23:54 +00:00
Mark Kettenis 613e813508 Jason Molenda <jmolenda@apple.com>
* i386-tdep.c (i386_match_insn): Match complete instruction
pattern.
2005-07-18 19:18:41 +00:00
Mark Kettenis 9edde48e00 * i386-tdep.c (i386_reg_struct_return_p): Handle structures with a
single 'long double' member correctly.
(i386_return_value): Tweak comment.
2005-07-18 12:40:13 +00:00
Mark Kettenis 6bdae935ab * gdb.base/sigaltstack.c (main): Use stack_t instead of `struct
sigaltsatck'.
2005-07-18 08:12:03 +00:00
gdbadmin 4c33ea4760 *** empty log message *** 2005-07-18 00:00:03 +00:00
gdbadmin 3522fe58ee *** empty log message *** 2005-07-17 00:00:34 +00:00
gdbadmin 90dbb4cbab *** empty log message *** 2005-07-16 00:00:33 +00:00
Nick Roberts 44236a56a4 Update for changes in Emacs 22.0.50. Bring more
features over from gdb-ui.el.  Use "-var-update --all-values" for
faster re-display of watch expressions.
2005-07-15 22:35:49 +00:00
Nick Roberts 05747abbf7 *** empty log message *** 2005-07-15 22:35:11 +00:00
Mark Kettenis 37191c9c2e Marcel Moolenaar <marcel@xcllnt.net>
* sparc64fbsd-nat.c: Include "regcache.h", <sys/types.h>,
<machine/pcb.h> and "bsd-kvm.h".
(sparc64fbsd_kvm_supply_pcb): New function.
(_initialize_sparc64fbsd_nat): Enable libkvm interface.
* config/sparc/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
(LOADLIBES): New variable.
* Makefile.in (sparc64fbsd-nat.o): Update dependencies.
2005-07-15 20:10:19 +00:00
Nick Roberts 265eeb58f3 (GDB/MI Variable Objects): Describe print-values
option for -var-list-children and -var-update.
(GDB/MI Stack Manipulation): Simplify description of
print-values option for -stack-list-locals.
(GDB/MI Command Description Format): Clarify.
(Mode Options): Spelling of superseded.
2005-07-15 05:58:17 +00:00
Nick Roberts cf58170dae *** empty log message *** 2005-07-15 05:55:02 +00:00
Daniel Jacobowitz 1ecb4ee030 2005-07-15 Nick Roberts <nickrob@snap.net.nz>
Daniel Jacobowitz  <dan@codesourcery.com>

	* mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values): New
	declarations.
	* mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Use string
	constants instead of literals for MI command options.
	* mi/mi-cmd-var.c (mi_no_values, mi_simple_values, mi_all_values):
	New variables.
	(mi_parse_values_option, mi_print_value_p): New functions.
	(mi_cmd_var_list_children): Use mi_parse_values_option and
	mi_print_value_p.
	(mi_cmd_var_update): Support a PRINT_VALUES option.  Update calls
	to varobj_update_one.
	(varobj_update_one): Take a print_values argument.  Call
	mi_print_value_p.
	* varobj.c (varobj_get_gdb_type): New function.
	* varobj.h (varobj_get_gdb_type): New prototype.
2005-07-15 04:12:19 +00:00
gdbadmin 34f65b4158 *** empty log message *** 2005-07-15 00:00:03 +00:00
Bob Rossi 1323e929ae +2005-07-14 Bob Rossi <bob@brasko.net>
+
+       * gdb.base/default.exp (tty): Changed output of command.
+       * gdb.base/help.exp (help tty): Ditto.
2005-07-14 14:49:23 +00:00
gdbadmin efa268783b *** empty log message *** 2005-07-14 00:00:33 +00:00
Daniel Jacobowitz fb318ff729 * ppc-linux-tdep.c (ppc_linux_init_abi): Set 64-bit link map offsets. 2005-07-13 16:29:04 +00:00
Daniel Jacobowitz e9d25b9800 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
is not available.  Define HAVE_PTRACE_GETREGS if it is.
	* config.in, configure: Regenerated.
	* configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
	* linux-i386-low.c, linux-m68k-low.c: Update to use
	HAVE_PTRACE_GETREGS.
	* linux-low.c (regsets_fetch_inferior_registers)
	(regsets_store_inferior_registers): Only return 0 if we processed
	GENERAL_REGS.
	* linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
	* linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
2005-07-13 15:21:02 +00:00
Daniel Jacobowitz a06660f799 * inferiors.c (struct thread_info): Add gdb_id.
(add_thread): Add gdb_id argument.
	(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
	* linux-low.c (linux_create_inferior, linux_attach_lwp): Update
	calls to add_thread.
	* remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
	* server.c (handle_query): Use thread_to_gdb_id.
	(handle_v_cont, main): Use gdb_id_to_thread_id.
	* server.h (add_thread): Update prototype.
	(thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
	prototypes.
2005-07-13 15:02:49 +00:00
Daniel Jacobowitz 5a1f5858d4 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
left-padded registers.
	* linux-low.h (struct linux_target_ops): Add left_pad_xfer.
	* linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
2005-07-13 14:48:58 +00:00
gdbadmin d98524628d *** empty log message *** 2005-07-13 00:00:03 +00:00
Mark Kettenis b1a9c08259 * gdb.arch/i386-sse.exp: Compile with -msse when using GCC. 2005-07-12 15:20:00 +00:00
Bob Rossi 38f1196a3d 2005-07-12 Bob Rossi <bob@brasko.net>
* gdb.texinfo (GDB/MI Miscellaneous Commands): Fix -inferior-tty-show
       corresponding GDB command comment.
2005-07-12 14:48:56 +00:00
Mark Kettenis 4dc4436dd9 Fix email. 2005-07-12 13:08:00 +00:00
Mark Kettenis 852483bc79 * dwarf2expr.h: Tweak comment.
(struct dwarf_expr_context): Use `gdb_byte *' in read_mem and
get_frame_base function pointers.
(read_uleb128, read_sleb128): Change return type and types of
first two arguments to `gdb_byte *'.
(dwarf2_read_address): Change types of first two arguments to
`gdb_byte *'.
* dwarf2expr.c: Tweak comment.
(dwarf_expr_eval): Change type of second argument to `gdb_byte *'.
(read_uleb128, read_sleb128): Change return type and types of
first two arguments to `gdb_byte *'.
(dwarf2_read_address): Change types of first two arguments to
`gdb_byte *'.
(execute_stack_op): Change types of last two arguments to
`gdb_byte *'.  Use `gdb_byte *' for byte buffers.
* dwarf2loc.h: Tweak comment.
(struct dwarf2_locexpr_baton, struct dwarf2_loclist_baton): Use
`gdb_byte *' for byte buffers.
* dwarf2loc.c (find_location_expression): Change return type to
`gdb_byte *'.  Use `gdb_byte *' for byte buffers.  Change length
to `unsigned int'.
(dwarf_expr_read_reg): Use `gdb_byte *' for byte buffer.  Remove
bogus cast.
(dwarf_expr_read_mem): Change type of second argument to
`gdb_byte *'.
(dwarf_expr_frame_base): Change type of second argument to
`gdb_byte **'.
(dwarf2_evaluate_loc_desc): Change type of third argument to
`gdb_byte *'.
(needs_frame_read_mem): Change type of second argument to
`gdb_byte *'.
(needs_frame_frame_base): Change type of second argument
`gdb_byte **'.  Use gdb_byte for lit0.
(dwarf2_tracepoint_var_ref): Change type of fourth argument to
`gdb_byte *'.  Use `gdb_byte *' for byte buffer.
(loclist_read_variable, loclist_tracepoint_var_ref): Use `gdb_byte
*' for byte buffer.
* dwarf2-frame.c (struct dwarf2_cie, struct dwarf2_fde)
(struct dwarf2_frame_state): Use gdb_byte instead of `unsigned
char'.
(read_reg): Use `gdb_byte *' for byte buffers.  Remove redundant
cast.
(read_mem): Change second argument to `gdb_byte *'.
(no_get_frame_base): Change second argument to `gdb_byte **'.
(execute_stack_op): Change first argument to `gdb_byte *'.
(execute_cfa_program): Change first two arguments to `gdb_byte *'.
Use gdb_byte instead of `unsigned int'.  Use temprorary variable
to store result of read_uleb128.
(struct comp_unit): Use `gdb_byte *' for byte buffers.
(read_1_byte, read_4_bytes, read_8_bytes): Change last argument to
`gdb_byte *'.
(read_unsigned_leb128, read_signed_leb128): Change second argument
to `gdb_byte *'.  Use gdb_byte instead of `unsigned char'.
(read_initial_length): Change second argument to `gdb_byte *'.
Remove redundant casts.
(read_encoded_value): Use gdb_byte instead of `unsigned char'.
Remove bogus casts.
(decode_frame_entry_1): Change return type and second argument to
`gdb_byte *'.  Use `gdb_byte *' for byte buffers.  Use gdb_byte
instead of `unsigned char'.
(decode_frame_entry): Change return type and second argument to
`gdb_byte *'.  Use `gdb_byte *' for byte buffers.
(dwarf2_build_frame_info): Use `gdb_byte *' for byte buffers.
2005-07-12 13:06:54 +00:00