Commit Graph

19401 Commits

Author SHA1 Message Date
Fred Fish 62f3a2ba52 2006-02-17 Fred Fish <fnf@specifix.com>
* gdb.texinfo (Symbols): Update descriptions of 'whatis' and
	'ptype' commands to reflect the fact that the only significant
	difference between them is that ptype prints the complete type
	description instead of just the name.
2006-02-18 20:45:01 +00:00
Fred Fish f8261448b0 2006-02-16 Fred Fish <fnf@specifix.com>
* gdb.base/whatis.c: Define variables using typedefs char_addr,
	ushort_addr, and slong_addr, so the typedefs are not optimized
	away.
	* gdb.base/whatis.exp: Add tests using type name for struct type,
	union type, enum type, and typedef.
2006-02-18 20:01:17 +00:00
gdbadmin ad490fd119 *** empty log message *** 2006-02-18 00:00:02 +00:00
gdbadmin 86a7cd1632 *** empty log message *** 2006-02-17 00:00:02 +00:00
gdbadmin 4d36a59818 *** empty log message *** 2006-02-16 00:00:02 +00:00
Paul Brook 1c5bada068 2006-02-15 Paul Brook <paul@codesourcery.com>
* arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
	Load insn opcodes as unsigned values.
2006-02-15 17:36:11 +00:00
Daniel Jacobowitz 545587ee60 * linux-low.c (regsets_store_inferior_registers): Read the regset
from the target before filling it.
2006-02-15 14:36:32 +00:00
gdbadmin 21e282f58e *** empty log message *** 2006-02-15 00:00:32 +00:00
Alexandre Oliva 48426bc23f Update copyright notice 2006-02-14 19:05:40 +00:00
Alexandre Oliva 96c1eda247 * doublest.h (DOUBLEST): Use long double only if we can scan
it in.  Undefine HAVE_LONG_DOUBLE otherwise.
(DOUBLEST_FORMAT): New.
* c-exp.y (parse_number): Use it.
* jv-exp.y (parse_number): Likewise.
* objc-exp.y (parse_number): Likewise.
* p-exp.y (parse_number): Likewise.
* varobj.c (free_variable): Silence type-punning warnings.
* tui/tui-data.h (struct tui_list): Change type of list member.
* tui/tui-data.c: Remove no-longer-needed type casts.
(source_windows): Silence type-punning warnings.
* tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
2006-02-14 18:45:14 +00:00
Mark Kettenis 92dd43fa3b Fix PR breakpoints/2080.
* i386-tdep.c (struct i386_frame_cache): Add stack_align member.
(i386_analyze_stack_align): New function.
(i386_analyze_prologue): Use i386_analyze_stack_align.
(i386_frame_cache): Deal with stack realignment.
2006-02-14 15:41:59 +00:00
Nick Roberts 48fc115b2a Use more functions from gdb-ui.el.
(gdb-break-list-regexp): Match "what" field if present.
(gdb-stack-list-frames-regexp): Match "from" field if present.
(gdb-stack-list-frames-handler): Present output like "info
breakpoints" so regexps can be shared with gdb-ui
2006-02-14 09:20:07 +00:00
Nick Roberts 7314787aef *** empty log message *** 2006-02-14 09:18:31 +00:00
gdbadmin 2d7ff946c7 *** empty log message *** 2006-02-14 00:00:32 +00:00
Mark Kettenis 31d8bdd239 * gdb.arch/i386-prologue.exp: Add testcase for PR breakpoints/2080. 2006-02-13 22:33:26 +00:00
Jim Blandy 34e41e637a gdb/testsuite/ChangeLog:
2006-02-13  Jim Blandy  <jimb@redhat.com>

	* gdb.base/scope.exp (test_at_main): Remove logic to handle the
	case where it takes two "next" commands to skip past the init
	call.
2006-02-13 18:11:38 +00:00
Fred Fish ac6e4f3115 Reviewed and approved by Jim Blandy
2006-02-12  Fred Fish  <fnf@specifix.com>
	* gdb.base/scope.exp (test_at_main): Use gdb_test_multiple
	to handle cases where it takes two "next" commands to skip
	past the init call.
2006-02-13 10:41:26 +00:00
Wu Zhou 8b9a88ea4a * gdbint.texinfo (Watchpoints): Delete
TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
2006-02-13 08:34:11 +00:00
gdbadmin 3ec1b94153 *** empty log message *** 2006-02-13 00:00:32 +00:00
gdbadmin 3b24bd49b5 *** empty log message *** 2006-02-12 00:00:33 +00:00
gdbadmin dd87191792 *** empty log message *** 2006-02-11 00:00:05 +00:00
Daniel Jacobowitz 0ea3f30e21 * NEWS: Mention native Windows support.
* Makefile.in (gdb_select_h, ser_tcp_h): New.
	(ALLDEPFILES): Add ser-mingw.c.
	(event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
	(ser-tcp.o, ser-unix.o): Update.
	(ser-mingw.o): New rule.
	* configure: Regenerated.
	* configure.ac: Add ser-mingw.o for mingw32.
	* ser-mingw.c: New file.
	* event-loop.c: Include "gdb_select.h".
	(gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
	* ser-base.c: Include "gdb_select.h".
	(ser_base_wait_for): Use gdb_select.
	* serial.c (serial_for_fd): New function.
	(serial_fdopen): Try "terminal" before "hardwire".  Initialize
	the allocated struct serial.
	(serial_wait_handle): New function.
	* serial.h (serial_for_fd, serial_wait_handle): New prototypes.
	(struct serial_ops) [USE_WIN32API]: Add wait_handle.
	* gdb_select.h: New file.
	* ser-tcp.c: Include "ser-tcp.h".  Remove unused "ser-unix.h" include.
	(net_close, net_read_prim, net_write_prim): Make global.
	(net_open): Likewise.  Pass an exception set to select.  Whitespace fix.
	Document why we can not use gdb_select.
	(_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
	* ser-tcp.h: New file.
	* inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
	(handle_sigio): Use gdb_select.
	(initialize_stdin_serial): New function.
	* terminal.h (initialize_stdin_serial): New prototype.
	* top.c (gdb_init): Call initialize_stdin_serial.
	* mingw-hdep.c (gdb_select): New function, moved from gdb_select in
	event-loop.c.  Add exception condition support.  Use serial_for_fd
	and serial_wait_handle.  Fix timeout handling.
	* posix-hdep.c: Include "gdb_select.h".
	(gdb_select): New function.
	* remote-st.c (connect_command): Use gdb_select.
	* ser-unix.c: Include "gdb_select.h".
	(hardwire_send_break, wait_for): Use gdb_select.
2006-02-10 22:01:43 +00:00
Daniel Jacobowitz 121ce6e53d * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
(ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
	* configure.ac: Add gdb_host_obs to CONFIG_OBS.  Set gdb_host_obs
	to posix-hdep.o by default.
	* configure: Regenerated.
	* configure.host: Document gdb_host_obs.  Add an entry for
	i[34567]86-*-mingw32*.
	* mingw-hdep.c, posix-hdep.c: New files.
	* utils.c (safe_strerror): Remove, moved to posix-hdep.o.
2006-02-10 21:53:51 +00:00
Joel Brobecker 1f82754b11 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
* osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
        * rs6000-tdep.h: New file.
        * rs6000-tdep.c: Include "rs6000-tdep.h".
        (rs6000_gdbarch_init): Remove enabling of software single step.
        Will be done in the AIX-specific initialization routine.
        * rs6000-aix-tdep.c: New file.
        * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
        * Makefile.in (rs6000_tdep_h): New variable.
        (rs6000-tdep.o): Update dependencies.
        (rs6000-aix-tdep.o): New rule.
2006-02-10 20:56:15 +00:00
Joel Brobecker 577b704726 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
instead of add_setshow_zinteger_cmd to defined the aix-thread
        boolean setting.
2006-02-10 19:47:45 +00:00
Nick Roberts b6637a13d5 Update to reflect changes in Emacs 22.0.50. 2006-02-10 06:18:09 +00:00
Nick Roberts ff800d76d3 *** empty log message *** 2006-02-10 06:17:12 +00:00
Nick Roberts 948d510224 (GDB/MI Breakpoint Table Commands): Add fullname and
times fields where needed.  Fix typos.  Update general form given
for output of -break-insert.
(GDB/MI): Abbreviate some unnecessarily long fullnames.
2006-02-10 03:54:33 +00:00
Nick Roberts 7e8dc85523 *** empty log message *** 2006-02-10 03:50:44 +00:00
gdbadmin f2098f1341 *** empty log message *** 2006-02-10 00:00:02 +00:00
Daniel Jacobowitz 5afb4e9982 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
30 bits.  Add load_all_dies flag.
	(load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
	Load DW_TAG_member by default.  Remove internal_error call.
	(find_partial_die): Reload the compilation unit if we can not find
	a DIE in the cache.  Call internal_error here if we still can not
	find the DIE.
2006-02-09 18:18:41 +00:00
Nick Roberts 0f699bbe04 (print_one_breakpoint): Add break to case
bp_catch_vfork in switch statement.
2006-02-09 11:24:46 +00:00
Nick Roberts a832795c68 *** empty log message *** 2006-02-09 11:23:30 +00:00
Nick Roberts c530cf0b1e *** empty log message *** 2006-02-09 11:21:33 +00:00
gdbadmin 650e3e5b57 *** empty log message *** 2006-02-09 00:00:02 +00:00
Daniel Jacobowitz 9db87ebd04 * server.c (attach_inferior): Return SIGTRAP for a successful
attach.
2006-02-08 20:26:44 +00:00
Wu Zhou c9dd6fef1f * config/i386/nm-i386sol2.h: Update copyright year.
* config/mips/nm-irix5.h: Ditto.
        * config/sparc/nm-sol2.h: Ditto.
        * s390-nat.c: Ditto.
        * ppc-linux-nat.c: Ditto.
2006-02-08 07:00:06 +00:00
Wu Zhou 2a3cdf79c3 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
* config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
	(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
	* config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
	(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
	* config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
	(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
	* inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
	(inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
	(inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
	add to_region_ok_for_hw_watchpoint.
	* s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
	(s390_region_ok_for_hw_watchpoint): New.
	(_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
	and add to_region_ok_for_hw_watchpoint.
	* target.c (default_region_size_ok_for_hw_watchpoint,
	debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
	(update_current_target): Delete to_region_size_ok_for_hw_watchpoint
	inheritance and default_region_size_ok_for_hw_watchpoint.
	(default_region_ok_for_hw_watchpoint): If len is less than or equal
	the length of void pointer, return ok.
	(default_region_size_ok_for_hw_watchpoint): Delete.
	(debug_to_region_size_ok_for_hw_watchpoint): Delete.
	(setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
	* target.h (struct target_ops): Delete
	to_region_size_ok_for_hw_watchpoint.
	(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2006-02-08 06:43:00 +00:00
Wu Zhou e0d24f8d6e * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
PTRACE_GETSIGINFO): Define.
	(last_stopped_data_address): New.
	(ppc_linux_check_watch_resources): New function.
	(ppc_linux_region_ok_for_hw_watchpoint): New function.
	(ppc_linux_insert_watchpoint): New function.
	(ppc_linux_remove_watchpoint): New function.
	(ppc_linux_stopped_data_address): New function.
	(ppc_linux_stopped_by_watchpoint): New function.
	(_initialize_ppc_linux_nat): Set the above hardware watchpoint
	related target vectors.
	* rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
	to have nonsteppable watchpoint.
	* target.c (default_region_ok_for_hw_watchpoint,
	debug_to_region_ok_for_hw_watchpoint): New prototypes.
	(update_current_target): Inherit to_region_ok_for_hw_watchpoint
	and set default to_region_ok_for_hw_watchpoint.
	(default_region_ok_for_hw_watchpoint): New function.
	(debug_to_region_ok_for_hw_watchpoint): New function.
	(setup_target_debug): Set to_region_ok_for_hw_watchpoint of
	debug_target.
	* target.h (struct target_ops): Add a new target vector
	to_region_ok_for_hw_watchpoint.
	(TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
	defined anyplace else.
2006-02-08 05:41:06 +00:00
gdbadmin 0d2a638963 *** empty log message *** 2006-02-08 00:00:05 +00:00
Joel Brobecker 927890d004 * symfile.c (add_symbol_file_command): Abort if the user forgot
to provide the address when the file has been loaded.
2006-02-07 19:40:31 +00:00
Joel Brobecker 2db2d57137 * gdb.ada/array_return.exp: Mark the last test as expected to fail
on hppa32 targets.
2006-02-07 19:37:46 +00:00
Daniel Jacobowitz f4d408c653 * MAINTAINERS: Update file based on maintainers survey. Add
a note to Past Maintainers.  Move unresponsive or inactive
	maintainers to Authorized Committers or Past Maintainers as
	appropriate.  Correct Jim Kingdon's email address.  Remove
	vacant areas of responsibility.
2006-02-07 15:42:54 +00:00
gdbadmin f31cddcbd4 *** empty log message *** 2006-02-07 00:00:33 +00:00
Daniel Jacobowitz c91d38aa70 * gdbint.texinfo (Symbol Handling): Add a section
on memory management.
2006-02-06 22:14:31 +00:00
Daniel Jacobowitz 38fcd64c3a From Vladimir Prus <ghost@cs.msu.su>:
gdb/
	* breakpoint.c (print_one_breakpoint): For MI-like UI, output
	fullname field.
gdb/doc/
	* gdb.texinfo (Breakpoint table commands): Document the fullname
	field in -break-list output.
gdb/testsuite/
	* gdb.mi/mi-break.exp, gdb.mi/mi2-break.exp: Test for the fullname
	field.
2006-02-06 21:55:06 +00:00
gdbadmin 42b8923620 *** empty log message *** 2006-02-06 00:00:03 +00:00
gdbadmin 7a40282ac7 *** empty log message *** 2006-02-05 00:00:32 +00:00
gdbadmin 921969afd5 *** empty log message *** 2006-02-04 00:00:33 +00:00
Daniel Jacobowitz 7b871fabb1 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
* exceptions.c (exception_none, exceptions_state_mc_init)
	(throw_vfatal): Use GDB_NO_ERROR.
2006-02-03 21:50:25 +00:00