Commit Graph

19887 Commits

Author SHA1 Message Date
Daniel Jacobowitz 6e2c7fa123 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
* gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
	* gdbarch.sh: Correct comment.
2006-07-12 18:04:30 +00:00
Daniel Jacobowitz e0f2823e31 * MAINTAINERS: Add Alfred Szmidt for the Hurd. 2006-07-12 17:37:24 +00:00
gdbadmin 60cf968246 *** empty log message *** 2006-07-12 00:00:02 +00:00
Mark Kettenis 24c4176016 * alpha-tdep.h (ALPHA_INSN_SIZE): New define. 2006-07-11 20:44:53 +00:00
gdbadmin 3a8d5cabee *** empty log message *** 2006-07-11 00:00:02 +00:00
Mark Kettenis 8a112c90fe * alphaobsd-tdep.c: New file.
* alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
handler for GDB_OSABI_OPENBSD_ELF.
* Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
(alphaobsd-tdep.o): New target.
* config/alpha/obsd.mt: New file.
* configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
2006-07-10 19:40:27 +00:00
Richard Henderson 9823e921f2 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
* alpha-tdep.c (alpha_register_byte): Remove.
	(alpha_extract_struct_value_address): Remove.
	(alpha_return_value): New.
	(alpha_return_in_memory_always): New.
	(alpha_gdbarch_init): Set tdep->return_in_memory.  Don't call
	set_gdbarch_deprecated_register_byte.  Do call set_gdbarch_return_value
	instead of set_gdbarch_deprecated_use_struct_convention,
	set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
	or set_gdbarch_deprecated_extract_struct_value_address.
	* alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
	alphafbsd_use_struct_convention, remove gcc_p argument.
	(alphafbsd_init_abi): Set tdep->return_in_memory instead of
	set_gdbarch_deprecated_use_struct_convention.
2006-07-10 15:28:02 +00:00
gdbadmin 86f110ebce *** empty log message *** 2006-07-10 00:00:04 +00:00
Mark Kettenis b0ca857365 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
prototype.
* alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
a.out-style core file format here.  Make global.
(alphanbsd_regset_from_core_section): Remove.
(alphanbsd_sigtramp_offset): Make static.
(alphanbsd_aout_init_abi): Remove.
(alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
a.out style core files.
(_initialize_alphanbsd_tdep): Do not register a handler for
GDB_OSABI_NETBSD_AOUT.
2006-07-09 22:01:59 +00:00
Mark Kettenis 3b03cc4361 Fix typo. 2006-07-09 16:12:30 +00:00
Mark Kettenis 3beabdb233 * alphabsd-tdep.h: Tweak comments.
(SIZOEF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
* alphanbsd-tdep.c: Reorder includes.  Include "regset.h".
(ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
(alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
(alphanbsd_aout_supply_gregset): New functions.
(alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
New variables.
(alphanbsd_regset_from_core_section)
(alphanbsd_aout_regset_from_core_section): New functions.
(fetch_core_registers, fetch_elfcore_registers): Remove functions.
(alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
(alphanbsd_init_abi): Set regset_from_core_section.
(alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
functions.
(_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
Use alphanbsd_aout_init_abi whre appropriate.  Don't call
deprecated_add_core_fns.
* Makefile.in (alphanbsd-tdep.o): Update dependencies.
2006-07-09 16:12:11 +00:00
Mark Kettenis 8fe7c54bf1 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
(alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
2006-07-09 09:24:39 +00:00
Mark Kettenis 789f3b5fdc * alphanbsd-tdep.c (alphanbsd_init_abi): Use
svr4_lp64_fetch_link_map_offsets instead of
nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2006-07-09 09:21:19 +00:00
gdbadmin 76da99c545 *** empty log message *** 2006-07-09 00:00:32 +00:00
Mark Kettenis 071d802b19 Wrap long line. 2006-07-08 21:43:00 +00:00
gdbadmin 2ce22c7895 *** empty log message *** 2006-07-08 00:00:33 +00:00
Mark Kettenis 1dff4b6426 * gdb.arch/alpha-step.exp (test_stepi): Do not include trailing
spaces/tabs in regular expressions since they might not be there.
2006-07-07 23:10:42 +00:00
Andrew Stubbs 40d2e0e326 2006-07-07 Andrew Stubbs <andrew.stubbs@st.com>
* gdb.base/ifelse.exp: New file.
2006-07-07 12:53:47 +00:00
gdbadmin 006be5553c *** empty log message *** 2006-07-07 00:00:33 +00:00
Andrew Stubbs 09153d5527 2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
* parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
	write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
	write_exp_elt_intern): Zero initialize tmp.
2006-07-06 14:00:48 +00:00
gdbadmin a67c4fa97c *** empty log message *** 2006-07-06 00:00:03 +00:00
Daniel Jacobowitz 2ec3381a43 gdb/
* remote.c (remote_xfer_partial): Remove KOD support.
	* target.h (enum target_object): Remove TARGET_OBJECT_KOD.
	* MAINTAINERS: Move Kernel Object Display entry to past maintainers.
	* Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o): Remove KOD
	support.
	* mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
	* NEWS: Mention KOD.
	* kod.h, kod.c, kod-cisco.c: Delete files.
gdb/doc/
	* doc/gdb.texinfo (KOD): Remove node.
	(GDB/MI Kod Commands): Remove commented out node.
2006-07-05 19:03:47 +00:00
gdbadmin 9fad7183e1 *** empty log message *** 2006-07-05 00:00:02 +00:00
Daniel Jacobowitz 7fca722e51 * remote.c (init_remote_state): Use xrealloc instead of xmalloc. 2006-07-04 13:31:31 +00:00
Nathan Sidwell f6c957d29d * gdb.base/huge.c: Allow CRASH_GDB to be set from command
line.
	* gdb.base/huge.exp: Loop over compilation to find a size that
	is acceptable.
	* gdb.base/remote.exp: Correct expected strings.
	* gdb.dwarf2/mac-fileno.S: Avoid # comments.
2006-07-04 09:40:28 +00:00
gdbadmin f8f148971e *** empty log message *** 2006-07-04 00:00:03 +00:00
Nathan J. Williams 4a35b02aee 2006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
* bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
        write_files is set.
2006-07-03 17:26:16 +00:00
gdbadmin c1ddd7c83b *** empty log message *** 2006-07-03 00:00:03 +00:00
gdbadmin e43ee86898 *** empty log message *** 2006-07-02 00:00:32 +00:00
Eli Zaretskii 594fe32349 * gdb.texinfo (GDB/MI Output Syntax, GDB/MI Simple Examples)
(GDB/MI Breakpoint Commands, GDB/MI Program Context)
	(GDB/MI Thread Commands, GDB/MI Program Execution)
	(GDB/MI Stack Manipulation, GDB/MI Variable Objects)
	(GDB/MI Data Manipulation, GDB/MI Symbol Query)
	(GDB/MI File Commands, GDB/MI Target Manipulation)
	(GDB/MI Miscellaneous Commands): Change (@value{GDBP})->(gdb),
	since the MI prompt is hard-wired into the code.
2006-07-01 12:34:30 +00:00
gdbadmin b6450095c2 *** empty log message *** 2006-07-01 00:00:03 +00:00
Nick Roberts a2c0224177 (GDB/MI Compatibility with CLI): Qualify more carefully.
(GDB/MI Simple Examples): Use @subheading for "A Bad Command".
(GDB/MI Data Manipulation): Remove description of unimplemented
display related commands as variable objects perform this function
and are superior: -display-delete, -display-disable,
-display-enable, -display-insert and -display-list.  Move
-environment-cd, -environment-directory, -environment-path
and -environment-pwd to "Program Context".
(GDB/MI Program Control): Rename to "Program Execution".  Move
-exec-arguments -exec-abort to...
(GDB/MI Program Context): ...here.  New node split from "Data
 Manipulation".
2006-06-30 21:43:22 +00:00
Nick Roberts 7e3fb70c62 *** empty log message *** 2006-06-30 21:42:03 +00:00
gdbadmin 745818a50b *** empty log message *** 2006-06-30 00:00:02 +00:00
gdbadmin 12321cc6f6 *** empty log message *** 2006-06-29 00:00:35 +00:00
gdbadmin 74dd8f955a *** empty log message *** 2006-06-28 00:00:33 +00:00
gdbadmin a2c9f04d67 *** empty log message *** 2006-06-27 00:00:37 +00:00
gdbadmin 399c95b04f *** empty log message *** 2006-06-26 00:00:03 +00:00
gdbadmin 5d51e5060a *** empty log message *** 2006-06-25 00:00:02 +00:00
Eli Zaretskii a6f0780aa7 defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'. 2006-06-24 13:48:53 +00:00
gdbadmin 269c8543af *** empty log message *** 2006-06-24 00:00:33 +00:00
Daniel Jacobowitz e4c161579c * arm-tdep.c (arm_register_type): Use unsigned types for registers.
Add special types for sp and pc.
	* Makefile.in (arm-tdep.o): Update.
2006-06-23 13:01:05 +00:00
gdbadmin 8c2afc38d8 *** empty log message *** 2006-06-23 00:00:32 +00:00
Daniel Jacobowitz bd4a4c8015 Typo fix. 2006-06-22 20:31:12 +00:00
Daniel Jacobowitz b9c5a23d0d * gdb.base/store.exp: Don't use gdb_suppress_entire_file. 2006-06-22 19:57:02 +00:00
Daniel Jacobowitz 9af2e58deb * gdb.base/gdb1555.exp: Use gdb_compile_shlib. Skip if not
native.
2006-06-22 19:53:46 +00:00
Daniel Jacobowitz 30930ca5c5 * gdb.stabs/exclfwd.exp: Skip the test if configure did not
enable stabs testing.
2006-06-22 19:50:57 +00:00
Daniel Jacobowitz aa32fa1d64 * auxv.exp: Intercept undefined command messages before
gdb_test_multiple does.
2006-06-22 19:32:41 +00:00
Daniel Jacobowitz 321fef153f Add changelog entry for unintended earlier commit:
* Makefile.in (host_alias): Remove.
	(target_alias): Use @target_noncanonical@.
	(site.exp): Don't set host_alias.
	* aclocal.m4: Remove contents.  Include acx.m4.
	* configure: Regenerated.
	* configure.ac: Use ACX_NONCANONICAL_TARGET.
2006-06-22 19:17:49 +00:00
Daniel Jacobowitz 90750ee799 Revert accidental commit. 2006-06-22 19:17:09 +00:00
Daniel Jacobowitz 01f9e8fab8 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
(putpkt_binary): Renamed from putpkt and adjusted for binary
	data.
	(putpkt): New wrapper for putpkt_binary.
	(readchar): Don't mask off the high bit.
	(decode_X_packet): New function.
	* server.c (main): Call putpkt_binary if a handler sets the packet
	length.  Save the length of the incoming packet.  Handle 'X'.
	* server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
2006-06-22 15:20:47 +00:00
Daniel Jacobowitz a31ea83d26 * remote.c (remote_escape_output): New function.
(remote_write_bytes): Use remote_escape_output.
2006-06-22 14:06:37 +00:00
gdbadmin 47c7e8efbb *** empty log message *** 2006-06-22 00:01:07 +00:00
Daniel Jacobowitz be2a5f717b gdb/
* NEWS: Mention qSupported.
	* remote.c (struct remote_state): Add explicit_packet_size.
	(get_remote_packet_size): Check explicit_packet_size.
	(get_memory_packet_size): Likewise.
	(PACKET_qSupported): New enum value.
	(struct protocol_feature, remote_supported_packet)
	(remote_packet_size, remote_protocol_features)
	(remote_query_supported): New.
	(remote_open_1): Reset explicit_packet_size.  Call
	remote_query_supported.
	(_initialize_remote): Register qSupported.
gdb/doc/
	* gdb.texinfo (Remote configuration): Document set / show
	remote supported-packets.
	(General Query Packets): Document qSupported packet.
gdb/gdbserver/
	* server.c (handle_query): Handle qSupported.
2006-06-21 13:57:21 +00:00
Andrew Stubbs 42b575e545 2006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
* cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
2006-06-21 10:49:16 +00:00
Joel Brobecker 9ae0398634 * GDB 6.5 released from GDB 6.5 branch. 2006-06-21 07:23:04 +00:00
gdbadmin 03b6d2cfd0 *** empty log message *** 2006-06-21 00:00:34 +00:00
gdbadmin dbd9748a98 *** empty log message *** 2006-06-20 00:00:32 +00:00
Michael Snyder 8b07f6d84b 2006-06-19 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
	decide how many registers it takes to pass a floating point
	argument, what matters is the size of a floating point register
	(not the size of a general purpose register).
	(mips_o32_push_dummy_call): Ditto.
2006-06-19 18:50:09 +00:00
Kazuhiro Inaoka ec5a4d7599 2006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* configure.tgt: Add gdbserver support for m32r-linux.
2006-06-19 01:23:26 +00:00
gdbadmin 3db766e999 *** empty log message *** 2006-06-19 00:00:33 +00:00
Mark Kettenis 8d3239d55a * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment. 2006-06-18 05:53:51 +00:00
gdbadmin e3a095253c *** empty log message *** 2006-06-18 00:00:03 +00:00
gdbadmin b284a6567e *** empty log message *** 2006-06-17 00:00:33 +00:00
Daniel Jacobowitz 14e60db5bc * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
based on insert_step_resume_breakpoint_at_frame.
	(handle_inferior_event): Update comments.  Use
	insert_step_resume_breakpoint_at_caller.
	(insert_step_resume_breakpoint_at_frame): Revise comments.
2006-06-16 01:12:58 +00:00
gdbadmin 9026e627ad *** empty log message *** 2006-06-16 00:00:03 +00:00
gdbadmin af8fafa3bf *** empty log message *** 2006-06-15 00:00:04 +00:00
Julian Brown 81a17f794b * dwarf2read.c (read_unspecified_type): New function.
(read_type_die): Handle DW_TAG_unspecified_type.
	(Committed by Julian Brown.)
2006-06-14 15:06:35 +00:00
gdbadmin fb897e0507 *** empty log message *** 2006-06-14 00:00:02 +00:00
Daniel Jacobowitz 6490cafe41 * symfile.c (load_command): Check for a changed executable before
"load".
2006-06-13 20:54:42 +00:00
Fred Fish 22e47e37c4 Approved by Daniel Jacobowitz.
2006-06-13  Fred Fish  <fnf@specifix.com>
	* mips-tdep.c (mips_find_long_section): New function.
	(mips_gdbarch_init): Use it to set long and pointer sizes.
2006-06-13 18:17:20 +00:00
Nathan Sidwell e63b55d15b * lib/gdb.exp (gdb_load_cmd): New. 2006-06-13 13:20:25 +00:00
Nathan Sidwell 5600ea19e0 gdb/
* remote-file.io.c (remote_fileio_func_system): Treat zero length
	string as NULL.  Adjust for NULL pointer argument.
	* doc/gdb.texinfo (system): Document behaviour with zero length
	string.

	gdb/testsuite/
	* gdb.base/fileio.c: Add system(NULL) test.
	* gdb.base/fileio.exp: Check it.
2006-06-13 08:55:22 +00:00
Nathan Sidwell e1c2defab5 * gdb.base/break.c: Add 10a breakpoint at }
* gdb.base/break.exp: Add test for breakpoint at }
	* gdb.cp/anon-union.cc: Add code at end of function.
	* gdb.cp/anon-union.exp: Adjust end of function breakpoint.
	* gdb.mi/var-cmd.c: Add code at end of function.
	* gdb.mi/mi-var-display.exp: Adjust end of next.
	* gdb.mi/mi2-var-display.exp: Likewise.
	* gdb.base/fileio.c: Add stop function and insert calls at
	stopping places.
	* gdb.base/fileio.exp: Breakpoint stop function and remove
	explicit line number references.
2006-06-13 08:46:17 +00:00
gdbadmin 8155f0a095 *** empty log message *** 2006-06-13 00:00:34 +00:00
Daniel Jacobowitz bb572ddd39 * remote.c (set_remote_protocol_packet_cmd)
(show_remote_protocol_packet_cmd): New prototypes.
	(remote_set_cmdlist, remote_show_cmdlist): Move higher.
	(struct packet_config): Make name and title const.
	(add_packet_config_cmd): Remove unnecessary arguments.
	(_initialize_remote): Update calls.
2006-06-12 19:16:19 +00:00
gdbadmin 13dce8ef13 *** empty log message *** 2006-06-12 00:00:32 +00:00
gdbadmin dbed2504e9 *** empty log message *** 2006-06-11 00:00:35 +00:00
Sandra Loosemore fc320d3707 Copy edit File-I/O section of manual 2006-06-10 18:45:26 +00:00
Daniel Jacobowitz 98739726e2 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
before calling FD_ISSET.  Correct check for exceptfds which
	previously tested writefds.
2006-06-10 18:24:32 +00:00
gdbadmin 859a96b293 *** empty log message *** 2006-06-10 00:00:04 +00:00
Nick Roberts ef21caaf00 (GDB/MI): Remove duplicate acknowledgements.
(GDB/MI Simple Examples): Move node up one level.  Use real examples.
(GDB/MI Compatibility with CLI): Update.
(GDB/MI Result Records): Add "connected" and "exit" result classes.
(GDB/MI Stream Records): Clarify target output.
(GDB/MI Command Description Format): Modify example description.
(GDB/MI Breakpoint Table Commands): Rename to...
(GDB/MI Breakpoint Commands): ...this
(GDB/MI Breakpoint Commands): Add optional thread field.
(GDB/MI Program Control): Add an introduction.  Move "Program
termination" examples into exec-run description.
(GDB/MI File Commands): Mention similar CLI commands.
(GDB/MI Miscellaneous Commands): Move to end.  Mention "show version"
is similar to "-gdb-version".
2006-06-09 22:37:47 +00:00
Nick Roberts 158fdf5c1f *** empty log message *** 2006-06-09 22:35:49 +00:00
Eli Zaretskii ddb50cd7c2 (Symbols): Fix "(gdb)"=>"(@value{GDBP})". 2006-06-09 18:52:30 +00:00
Nathan Sidwell 9938344b49 missing commit
* remote-fileio.h (remote_fileio_reset): Prototype.
2006-06-09 06:09:50 +00:00
Daniel Jacobowitz 4a9d57ab54 Typo fix. 2006-06-09 02:33:28 +00:00
Julian Brown 2b949cb6bb * gdb/dwarf2read.c (partial_read_comp_unit_head): Accept version 3. 2006-06-09 00:44:28 +00:00
Julian Brown 5b031165ba * MAINTAINERS (Write After Approval): Add myself. 2006-06-09 00:40:50 +00:00
gdbadmin 81f188e139 *** empty log message *** 2006-06-09 00:00:33 +00:00
Michael Snyder b2d6f210e9 2006-06-08 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
2006-06-08 19:22:46 +00:00
Daniel Jacobowitz 719abd5321 Typo fix. 2006-06-08 19:13:35 +00:00
Nathan Sidwell 6dd0fba671 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
(m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
	conversion. Use M68K_NUM_REGS for number of regs.
2006-06-08 19:11:45 +00:00
Nathan Sidwell ad9a8f3f00 * remote-fileio.c (remote_fileio_reset): New.
* remote-fileio.h (remote_fileio_reset): Prototype.
	* remote.c (extended_remote_restart, remote_open_1): Call it.
2006-06-08 19:08:22 +00:00
Nathan Sidwell 1dd41f16d1 * gdb/remote.c (remote_open_1): Do preopen tasks before
irreversably destroying state.
2006-06-08 19:04:08 +00:00
Daniel Jacobowitz ea9c271d4e * (struct remote_state): New type, only containing
buf and buf_size.
	(remote_state): New variable.
	(get_remote_state): New function.
	(struct remote_arch_state): Renamed from struct remote_state.
	Removed buf and buf_size.
	(get_remote_arch_state): Renamed from get_remote_state.  All
	necessary callers updated to call this function.
	(init_remote_state): Initialize the architecture-specific state.
	Update the target-specific state if necessary.
	(get_remote_packet_size): New function.  All previous references
	changed to use this accessor function.
	(packet_reg_from_regnum, packet_reg_from_pnum): Take a
	remote_arch_state instead of a remote_state.  All callers changed.
	(_initialize_remote): Initialize the packet buffer here.
2006-06-08 18:32:12 +00:00
gdbadmin bf81fac3c9 *** empty log message *** 2006-06-08 00:00:34 +00:00
gdbadmin ecbc8539b0 *** empty log message *** 2006-06-07 00:00:32 +00:00
Nathan Sidwell 5cffb35013 * gdb/remote.c (remote_insert_watchpoint): Return -1, rather than
fatal error if packet is disabled.
	(remote_remove_watchpoint, remote_insert_hw_breakpoint,
	remote_remove_hw_breakpoint): Likewise.
2006-06-06 10:03:06 +00:00
gdbadmin c91cfc5a15 *** empty log message *** 2006-06-06 00:00:03 +00:00
gdbadmin 11567b557b *** empty log message *** 2006-06-05 00:00:32 +00:00