Commit Graph

20545 Commits

Author SHA1 Message Date
Daniel Jacobowitz 59f80f1088 * configure.ac: Add tests for TD_VERSION and TD_NOTLS.
* linux-thread-db.c (thread_db_err_str): Recognize TD_NOTALLOC,
	TD_VERSION, and TD_NOTLS.
	* configure, config.in: Regenerated.
2006-12-31 20:20:13 +00:00
Daniel Jacobowitz 2fa63963cd * gdb.base/annota1.exp: Allow .*printf in backtraces.
* gdb.base/annota3.exp: Likewise.
	* gdb.base/sigstep.exp (advancei): Fail if we hit the breakpoint
	again (instead of timing out).
	* gdb.gdb/selftest.exp (do_steps_and_nexts): Add an XFAIL for
	GCC bug 26475.
	* gdb.java/jmisc.exp: Adjust to work with method signatures including
	return types.  Add kfails for GDB bugs 2214 and 2215.  Move exit
	test from jmisc1.exp.
	* gdb.java/jmisc1.exp: Delete.
	* gdb.java/jprint.exp: Adjust to work with method signatures including
	return types.
	* gdb.objc/basicclass.exp: Update for gobjc 4.1 debug info.
	* gdb.threads/linux-dp.exp: Don't be confused by program output.
	* lib/java.exp (compile_java_from_source): Pass the correct type
	to target_compile.
2006-12-31 20:01:25 +00:00
Joel Brobecker 5eefc2b7e0 * gdb.arch/i386-prologue.c (stack_align_ecx): Renamed from stack_align.
(stack_align_edx): New function.
        (stack_align_eax): New function.
        (main): Add calls to stack_align_edx and stack_align_eax.
        * gdb.arch/i386-prologue.exp: Replace stack_align with stack_align_ecx.
        Add testing for the cases where the register used during a stack
        realignment is edx. Same for eax.
2006-12-31 14:51:57 +00:00
Joel Brobecker ade5215683 * i386-tdep.c (i386_analyze_stack_align): Add handling of two
other possible code sequences that perform a stack realignment.
2006-12-31 14:50:37 +00:00
Mark Kettenis 6df5070e3f * sparc64-tdep.h (SPARC64_PSTATE_AG, SPARC64_PSTATE_IE)
(SPARC64_PSTATE_PRIV, SPARC64_PSTATE_AM, SPARC64_PSTATE_PEF)
(SPARC64_PSTATE_RED, SPARC64_PSTATE_TLE, SPARC64_PSTATE_CLE)
(SPARC64_PSTATE_PID0, SPARC64_PSTATE_PID1): New defines.
* sparc64nbsd-nat.c: Include "gdbcore.h".
(sparc64nbsd_supply_pcb): Get %pc from stack if necessary.  Supply
processor state register.
* sparc64obsd-tdep.c (sparc64obsd_trapframe_cache)
(sparc64obsd_trapframe_this_id)
(sparc64obsd_trapframe_prev_register)
(sparc64obsd_trapframe_sniffer): New functions.
(sparc64obsd_trapframe_unwind): New variable.
(sparc64obsd_init_abi): Append trapframe unwinder.
* Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2006-12-31 01:28:07 +00:00
gdbadmin f9225e75c0 *** empty log message *** 2006-12-31 00:00:33 +00:00
Daniel Jacobowitz 227c54da38 * lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGW
and generic PE targets.
2006-12-30 20:32:47 +00:00
Daniel Jacobowitz 17e245fee0 * infrun.c (handle_inferior_event): Don't call
ENSURE_VFORKING_PARENT_REMAINS_STOPPED.
	* target.h (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Delete.
	(RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Delete.
2006-12-30 15:56:00 +00:00
Daniel Jacobowitz 8264bb58d6 * remote-utils.c (remote_open): Check the type of specified
serial port devices before opening them.
	* server.c (main): Kill the inferior if an error occurs during
	the first remote_open.
2006-12-30 15:44:51 +00:00
gdbadmin 03fa9f0e99 *** empty log message *** 2006-12-30 00:00:03 +00:00
Mark Kettenis 2d45707707 * sparc-tdep.c (sparc_psr_type, sparc_fsr_type): New variables.
(sparc_init_types): New function.
(sparc32_register_type): Use appropriate flag types for %fsr and
%prs.
(_initialize_sparc_tdep): Call sparc_init_types.
2006-12-29 21:00:47 +00:00
Joel Brobecker cab8ac940a * gdb.ada/array_return.exp: Update copyright date list. 2006-12-29 11:49:44 +00:00
Mark Kettenis 0cb31fdf92 * memory-map.c (memory_map_end_element): Move variable
declarations to the begining of the block.
2006-12-29 09:46:35 +00:00
gdbadmin 994d1171c0 *** empty log message *** 2006-12-29 00:00:02 +00:00
Daniel Jacobowitz eeec829cf9 * ia64-tdep.c (get_kernel_table): Correct signedness in check
for a negative return value.
2006-12-28 23:48:51 +00:00
Jim Blandy 470340e188 Consolidate Gary Funck's two ChangeLog entries. 2006-12-28 19:55:23 +00:00
gdbadmin d2d2ef9a94 *** empty log message *** 2006-12-28 00:00:33 +00:00
Gary Funck b761958201 2006-12-27 Gary Funck <gary@intrepid.com>
* dwarf2read.c (dwarf_attr_name, dwarf_cfi_name)
	(dwarf_stack_op_name, dwarf_tag_name)
	(dwarf_type_encoding_name): Decode additional DWARF 2
	and DWARF 3 codes into their corresponding string names.
2006-12-27 22:38:57 +00:00
Gary Funck a82f4889cb * MAINTAINERS (Write After Approval): Add myself. 2006-12-27 21:29:33 +00:00
Joel Brobecker ba54f3188b * gdb.ada/array_return/pck.ads (Small_Float_Vector): New type.
(Create_Small_Float_Vector): New function.
        * gdb.ada/array_return/pck.adb (Create_Small_Float_Vector): Add
        function body.
        * gdb.ada/array_return/p.adb: Use new type and function from
        package Pck.
        * gdb.ada/array_return.exp: Add a test verifying that GDB is
        able to print the value returned by a function returning an
        array of float.
2006-12-27 06:12:36 +00:00
gdbadmin e223b5bf0e *** empty log message *** 2006-12-27 00:00:38 +00:00
Joel Brobecker 4bd8771477 * sparc64-tdep.c (sparc64_extract_return_value): Add handling
for array types.
        (sparc64_store_return_value): Likewise.
2006-12-26 05:03:11 +00:00
gdbadmin cbe5be5a1d *** empty log message *** 2006-12-26 00:00:02 +00:00
gdbadmin 53881e24b5 *** empty log message *** 2006-12-25 00:00:32 +00:00
gdbadmin 52080766cb *** empty log message *** 2006-12-24 00:00:33 +00:00
gdbadmin 9f99647568 *** empty log message *** 2006-12-23 00:00:02 +00:00
gdbadmin 49a5a0ff3f *** empty log message *** 2006-12-22 00:00:02 +00:00
gdbadmin 5f9aac7b01 *** empty log message *** 2006-12-21 00:00:33 +00:00
Joel Brobecker 6b7a35ddbf * gdb.arch/i386-prologue.exp: Remove calls to setup_kfail.
The associated tests should be PASSing.
2006-12-20 09:51:52 +00:00
gdbadmin a4b937ff72 *** empty log message *** 2006-12-20 00:00:03 +00:00
gdbadmin a1ca765be8 *** empty log message *** 2006-12-19 00:00:03 +00:00
Daniel Jacobowitz 69fbadd53d * breakpoint.c (watchpoint_check): Double-check the found frame. 2006-12-18 22:10:13 +00:00
gdbadmin e565971c4e *** empty log message *** 2006-12-18 00:00:02 +00:00
Mark Kettenis 84c5b489a8 Mark Kettenis <kettenis@gnu.org>
* i386nbsd-nat.c: Include "nbsd-nat.h".
(_initialize_i386nbsd_nat): Update target vector to use
nbsd_pid_to_exec_file.
* config/i386/nbsdelf.mh (NATDEPFILES): Add nbsd-nat.o.
* config/i386/nbsdaout.mh (NATDEPFILES): Add nbsd-nat.o.
* nbsd-nat.c: New file.
* nbsd-nat.h: New file.
* Makefile.in (ALLDEPFILES): Add nbsd-nat.c.
(nbsd_nat_h): New variable.
(nbsd-nat.o): New dependency.
2006-12-17 13:30:44 +00:00
gdbadmin 2970a4c485 *** empty log message *** 2006-12-17 00:00:05 +00:00
Daniel Jacobowitz d0e5500c95 * Makefile.in (ALLDEPFILES): Remove mipsv4-nat.c.
(mipsv4-nat.o): Delete.
	* mipsv4-nat.c: Delete.
2006-12-16 21:00:29 +00:00
Daniel Jacobowitz f3d770869c * dve3900-rom.c: Delete file.
* Makefile.in (dve3900-rom.o): Delete.
2006-12-16 19:18:37 +00:00
Daniel Jacobowitz 6213115e47 * vx-share/README: Delete file. 2006-12-16 18:40:56 +00:00
Mark Kettenis 5d0fc17b31 * i386obsd-nat.c: Include "gdbcore.h", "regcache.h", "target.h",
<machine/frame.h>, <machine/pcb.h>, "i386bsd-nat.h" and
"bsd-kvm.h".
(i386obsd_supply_pcb): New function.
(_initialize_i386obsd_nat): Construct and add target
vector. Enable libkvm interface.
* Makefile.in (i386obsd-nat.o): Update dependencies.
* config/i386/obsd.mh (NATDEPFILES): Remove i386nbsd-nat.c
2006-12-16 10:45:52 +00:00
Mark Kettenis 37e28b926c * sparcobsd-tdep.c: Fix typo. 2006-12-16 00:06:55 +00:00
gdbadmin 0e1cb3a29b *** empty log message *** 2006-12-16 00:00:33 +00:00
Mark Kettenis bd37273160 Add OpenBSD/sh native support.
* NEWS (New native configurations): Mention OpenBSD/sh.
* configure.host: Add sh*-*-openbsd*.
* shnbsd-nat.c: Include "inf-ptrace.h".
(shnbsd_fetch_inferior_registers): Rename from
fetch_inferior_registers.  Make static.
(shnbsd_store_inferior_registers): Rename from
store_inferior_registers.  Make static.
(_initialize_shnbsd_nat): New function.
* Makefile.in (shnbsd-nat.o): Update dependencies.
* config/sh/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove.
(NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
inf-ptrace.o.
2006-12-15 23:57:35 +00:00
Mark Kettenis 54fe917236 Add OpenBSD/sh support.
* NEWS (New targets): Mention OpenBSD/sh.
* configure.tgt: Add sh*-*-openbsd*.
* shnbsd-tdep.c (_initialize_shnbsd_tdep): Register handler for
GDB_OSABI_OPENBSD_ELF.
* config/sh/obsd.mt: New file.
2006-12-15 23:45:04 +00:00
Mark Kettenis 1e17aef808 * ppcnbsd-tdep.c: Fix typo in comment. 2006-12-15 23:22:37 +00:00
Mark Kettenis 9c7deb13f0 * remote-fileio.c (remote_fileio_mode_to_target): Use
S_ISREG/S_ISDIR/S_ISCHR macros instead of S_IFREG/S_IFDIR/S_IFCHR.
2006-12-15 23:17:56 +00:00
Daniel Jacobowitz 0767c96d9d * breakpoint.c (insert_bp_location): Add newline to note. 2006-12-15 15:22:22 +00:00
Alan Modra f6cf9273b3 bfd/
* opncls.c (bfd_openr_iovec): Add "stat" parameter.
	(struct opncls): Add "stat" field.
	(opncls_bstat): Call vec->stat.
	* bfd-in2.h: Regenerate.
	* elf32-spu.c (spu_elf_open_builtin_lib): Adjust.
gdb/
	* spu-linux-nat.c (spu_bfd_iovec_stat): New function.
	(spu_bfd_open): Adjust bfd_openr_iovec call.
2006-12-15 04:13:37 +00:00
gdbadmin 263c8770d6 *** empty log message *** 2006-12-15 00:00:04 +00:00
gdbadmin 15f6818fba *** empty log message *** 2006-12-14 00:00:02 +00:00
Jim Blandy 6f7c8fc2c5 * value.c (value_copy): Copy the full 'location' contents, instead
of assuming that copying ADDRESS will bring over everything in the
	union.
2006-12-13 22:36:48 +00:00
Ulrich Weigand f2d43c2c03 2006-12-13 Markus Deuling <deuling@de.ibm.com>
* spu-tdep.c (spu_init_vector_type): New function.
	(spu_builtin_type_vec128.): New static variable.
	(spu_register_type): Return spu_builtin_type_vec128 as default.
	(_initialize_spu_tdep): Call spu_init_vector_type.
2006-12-13 14:17:53 +00:00
gdbadmin 51b58d2ec7 *** empty log message *** 2006-12-13 00:00:03 +00:00
gdbadmin 12a5b6f9ee *** empty log message *** 2006-12-12 00:00:36 +00:00
gdbadmin 0c59c0d1d9 *** empty log message *** 2006-12-11 00:00:02 +00:00
gdbadmin 267d825c71 *** empty log message *** 2006-12-10 00:00:04 +00:00
Corinna Vinschen 002c07a9ff * win32-nat.c (env_sort): Remove.
(win32_create_inferior): Remove code which creates a Windows
	environment.  Use Cygwin function call instead.  Propagate
	current environment to inferior process.
2006-12-09 09:12:59 +00:00
gdbadmin d75c852234 *** empty log message *** 2006-12-09 00:00:02 +00:00
Nick Roberts 0d2bd018fd (varobj_update): Ensure frame is restored when
variable object is out of scope.
2006-12-08 22:06:04 +00:00
Nick Roberts 3dca6e6038 *** empty log message *** 2006-12-08 22:05:36 +00:00
Eli Zaretskii 520b03f9e4 *** empty log message *** 2006-12-08 17:30:44 +00:00
Eli Zaretskii 81e0e9408d Clarify the meaning of an ``obvious fix'' in the docs. 2006-12-08 17:28:31 +00:00
Vladimir Prus 038224f618 2006-12-08 Vladimir Prus <vladimir@codesourcery.com>
Test for base in references.
        * gdb.mi/mi-var-cp.cc: Add test code.
        * gdb.mi/mi-var-cp.exp: Test for bases in references.
        * gdb.mi/mi-watch.exp: Adjust to mi_runto changes.
        * gdb.mi/mi2-watch.exp: Likewise.
        * lib/mi-support.exp (mi_runto): Use temporary breakpoint.
        (mi_list_varobj_children): New function.
2006-12-08 14:29:02 +00:00
Vladimir Prus a1b5960f51 2006-12-08 Vladimir Prus <vladimir@codesourcery.com>
* gdb.texinfo (GDB/MI Variable Objects): Wrap historical
        note in @ignore, to be removed later if nobody complains.
2006-12-08 12:58:36 +00:00
Vladimir Prus b26ed50ddf 2006-12-08 Vladimir Prus <vladimir@codesourcery.com>
* varobj.c (varobj_create): Don't call release_value.
        (varobj_set_value): Likewise.
        (install_new_value): Call coerce_ref and release_value
        on the value. Add asserts.
2006-12-08 12:44:11 +00:00
Nick Roberts db9a518b07 (mi_cmd_var_update): Fix memory leak. 2006-12-08 04:09:53 +00:00
Nick Roberts ba17f7aa4d *** empty log message *** 2006-12-08 04:09:30 +00:00
gdbadmin 1273d223e8 *** empty log message *** 2006-12-08 00:00:02 +00:00
gdbadmin 8c9343347a *** empty log message *** 2006-12-07 00:00:37 +00:00
Jim Blandy 2372d65a14 2006-12-06 Jim Blandy <jimb@codesourcery.com>
* gdbtypes.c: Revert 2006-12-05 change, and explain why.
2006-12-06 20:15:19 +00:00
Andrew Stubbs fa3fd85b06 2006-12-06 Andrew Stubbs <andrew.stubbs@st.com>
* event-top.c (command_handler): On EOF, print 'quit' and run quit
	command via execute_command such that hooks and trace work.
	* utils.c (defaulted_query): On EOF, print default answer and newline.
2006-12-06 16:49:57 +00:00
Vladimir Prus 4ae4f4fb15 2006-12-06 Vladimir Prus <vladimir@codesourcery.com>
* varobj.c (cplus_value_of_child): When accessing
        base suboject, don't specially process references.
2006-12-06 09:01:50 +00:00
Adam Nemet b3d379e410 * MAINTAINERS (Write After Approval): Add myself. 2006-12-06 06:51:50 +00:00
Jim Blandy 8f2e9323f0 * gdbtypes.c (built_gdbtypes): Don't set builtin_type_void here.
(_initialize_gdbtypes): Do it here, and don't swap it when the
	architecture changes.
2006-12-06 00:57:04 +00:00
gdbadmin f8f183f633 *** empty log message *** 2006-12-06 00:00:33 +00:00
Daniel Jacobowitz 4ad08d87e8 * cp-valprint.c, p-valprint.c: Revert last change. 2006-12-05 23:57:53 +00:00
Daniel Jacobowitz c9bb8148c1 * NEWS: Mention MIPS remote autodetection, mips64 gdbserver,
"set mem inaccessible-by-default", and "set breakpoint auto-hw".
2006-12-05 21:23:20 +00:00
Daniel Jacobowitz a5e13d24f0 2006-12-05 Markus Deuling <deuling@de.ibm.com>
* README: Update supported targets.
2006-12-05 21:18:38 +00:00
H.J. Lu 9fb92a5a5b 2006-12-05 H.J. Lu <hongjiu.lu@intel.com>
* cp-valprint.c (cp_print_value_fields): Initialize tmp_obstack.
	(cp_print_value): Likewise.
	* p-valprint.c (pascal_object_print_value_fields): Likewise.
	(pascal_object_print_value): Likewise.
2006-12-05 20:53:28 +00:00
Daniel Jacobowitz ecde4882ba 2006-12-05 Adam Nemet <anemet@caviumnetworks.com>
* target.c (debug_to_remove_watchpoint): Call
	to_remove_watchpoint.  Print target_remove_watchpoint.
2006-12-05 20:38:13 +00:00
gdbadmin e611e605d1 *** empty log message *** 2006-12-05 00:00:35 +00:00
Nick Roberts 22d8a47037 (GDB/MI Variable Objects): Describe -c option
of -var-delete.
2006-12-04 03:53:19 +00:00
Nick Roberts 9f470e6e42 *** empty log message *** 2006-12-04 03:51:39 +00:00
gdbadmin 617db910fd *** empty log message *** 2006-12-04 00:00:04 +00:00
gdbadmin aaea7f010c *** empty log message *** 2006-12-03 00:00:33 +00:00
gdbadmin 1336e2716c *** empty log message *** 2006-12-02 00:00:03 +00:00
Daniel Jacobowitz 0823249716 gdb/
* elfread.c (elf_symtab_read): Treat weak functions as global.
gdb/testsuite/
	* gdb.base/solib-weak.c, gdb.base/solib-weak.exp, gdb.base/weaklib1.c,
	gdb.base/weaklib2.c: New files.
2006-12-01 18:14:30 +00:00
Jim Blandy 4155b94b2c 2006-11-30 Jim Blandy <jimb@codesourcery.com>
* ada-lang.c (value_subscript_packed): Don't bother to set the
	lvalue type of the returned value here;
	ada_value_primitive_packed_val takes care of that.
2006-12-01 00:32:29 +00:00
gdbadmin 2711582ca6 *** empty log message *** 2006-12-01 00:00:34 +00:00
gdbadmin 85411edae8 *** empty log message *** 2006-11-30 00:00:34 +00:00
Nick Roberts f82465f0bb (mi_cmd_var_list_children): Remove unused
variable.
2006-11-29 22:53:07 +00:00
Nick Roberts cd9c4388f1 *** empty log message *** 2006-11-29 22:52:37 +00:00
Nathan Sidwell ac6c2fba05 * gdb.threads/linux-dp.exp: Adjust regexps used to scan thread
info.  Adjust test names.
2006-11-29 16:16:46 +00:00
Vladimir Prus a217f3f543 2006-07-29 Vladimir Prus <vladimir@codesourcery.com>
* mi/mi-cmd-var.c (print_varobj): New function.
	(mi_cmd_var_create): Use the above.
	(mi_cmd_var_list_children): Likewise.
2006-11-29 15:40:59 +00:00
Vladimir Prus 64d756327a 2006-07-29 Vladimir Prus <vladimir@codesourcery.com>
* MAINTAINERS (Write After Approval): Add myself.
2006-11-29 13:52:54 +00:00
Andrew Stubbs f1d10cfb32 2006-11-29 Andrew Stubbs <andrew.stubbs@st.com>
* solib.c (solib_open): Treat bare file names as relative paths.
2006-11-29 12:27:01 +00:00
Nathan Sidwell d394c9935d * gdb.base/break.c (main): Move position of malloc.
* gdb.base/break.exp: Revert mistaken checkin.
2006-11-29 08:02:07 +00:00
Vladimir Prus ae09783548 2006-11-29 Vladimir Prus <vladimir@codesourcery.com>
* varobj.c (varobj_set_value): Don't compare the old
        and the new value here.  Don't assign new value here.
        Instead, call install_new_value.
2006-11-29 06:41:13 +00:00
gdbadmin ba3d1a1c2d *** empty log message *** 2006-11-29 00:00:33 +00:00
Daniel Jacobowitz 186947f7ca gdb/gdbserver/
* Makefile.in (clean): Remove reg-mips64.c.
	(reg-mips64.c, reg-mips64.o): New rules.
	* configure.srv: Handle mips64.  Include regset support for mips.
	* linux-mips-low.c (union mips_register): New.
	(mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
	(mips_breakpoint, mips_breakpoint_at): Use int.
	(mips_collect_register, mips_supply_register)
	(mips_collect_register_32bit, mips_supply_register_32bit)
	(mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
	(mips_store_fpregset, target_regsets): New.
	* thread-db.c (thread_db_get_tls_address): Use uintptr_t.
gdb/
	* regformats/reg-mips64.dat: New file.
2006-11-28 22:21:23 +00:00
Daniel Jacobowitz 29709017e8 * Makefile.in (mips-tdep.o, target-descriptions.o): Update.
* target-descriptions.c (struct property): New.
	(struct target_desc): Add properties member.
	(tdesc_property, set_tdesc_property): New.
	* target-descriptions.h (tdesc_property, set_tdesc_property):
	Declare.
	* mips-tdep.c (PROPERTY_GP32, PROPERTY_GP64): New constants.
	(struct gdbarch_tdep): Add register_size_valid_p and register_size.
	(mips_isa_regsize): Use them.
	(mips_register_g_packet_guesses): New.
	(mips_gdbarch_init): Call it.  If a target description is supplied,
	check for internal properties.  Check for register size mismatches.
	* remote.c (send_g_packet, process_g_packet): New functions, split
	out from fetch_registers_using_g.
	(fetch_registers_using_g): Use them.
	(struct remote_g_packet_guess, remote_g_packet_guess_s)
	(struct remote_g_packet_data, remote_g_packet_data_handle)
	(remote_g_packet_data_init, register_remote_g_packet_guess)
	(remote_read_description): New.
	(init_remote_ops, init_remote_async_ops): Set to_read_description.
	(_initialize_remote): Register remote_g_packet_data_handle.
	* remote.h (register_remote_g_packet_guess): Declare.
2006-11-28 22:14:31 +00:00
Daniel Jacobowitz 424163ea15 * Makefile.in (SFILES): Add new and missed files.
(target_descriptions_h): New.
	(COMMON_OBS): Add target-descriptions.o.
	(arch-utils.o, infcmd.o, remote.o, target.o): Update.
	(target-descriptions.o): New.
	* arch-utils.c (gdbarch_info_fill): Check for a target
	description.
	* target-descriptions.c, target-descriptions.h: New files.
	* gdbarch.sh: Add target_desc to info.  Declare it in gdbarch.h.
	Correct typos.
	(gdbarch_list_lookup_by_info): Check target_desc.
	* gdbarch.c, gdbarch.h: Regenerated.
	* target.c (update_current_target): Mention to_read_description.
	(target_pre_inferior): Call target_clear_description.
	(target_read_description): New.
	* target.h (struct target_ops): Add to_read_description.
	(target_read_description): New prototype.
	* infcmd.c (post_create_inferior): Call target_find_description.
	* remote.c (remote_open_1): Likewise.
	(extended_remote_create_inferior): Add a comment.
	(extended_remote_async_create_inferior): Likewise.
2006-11-28 22:10:26 +00:00
Nick Roberts 979894f2c2 Include <signal.h>. 2006-11-28 21:44:50 +00:00
Nick Roberts fe07246165 *** empty log message *** 2006-11-28 21:44:26 +00:00
Ulrich Weigand 982e9687bf * config/tm-linux.h: Delete file.
* config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Set to tm-alpha.h.
	* config/alpha/tm-alphalinux.h: Delete file.
	* config/arm/linux.mt (DEPRECATED_TM_FILE): Set to tm-arm.h
	* config/arm/tm-linux.h: Delete file.
	* config/i386/tm-linux.h: Do not include "config/tm-linux.h".
	* config/ia64/tm-linux.h: Do not include "config/tm-linux.h".
	* config/m32r/linux.mt (DEPRECATED_TM_FILE): Remove.
	* config/mips/tm-linux.h:  Do not include "config/tm-linux.h".
	* config/pa/linux.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
	* config/pa/tm-linux.h: Delete file.
	* config/powerpc/tm-linux.h: Do not include "config/tm-linux.h".
	* config/s390/linux.mt (DEPRECATED_TM_FILE): Remove.
	* config/sh/linux.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
	* config/sh/tm-linux.h: Delete file.
	* alpha-linux-tdep.c: Include "symtab.h".
	(alpha_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
	* i386-linux-tdep.c: Include "symtab.h".
	(i386_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
	* ia64-linux-tdep.c: Include "symtab.h".
	(ia64_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
	* m32r-linux-tdep.c: Include "symtab.h".
	(m32r_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
	* mips-linux-tdep.c: Include "symtab.h".
	(mips_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
	* sh-linux-tdep.c: Include "symtab.h".
	(sh_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
	* s390-tdep.c (s390_gdbarch_init): Call
	set_gdbarch_skip_trampoline_code.
	* s390-nat.c: Do not include "tm.h".
	* Makefile.in (alpha-linux-tdep.o): Add dependency on $(symtab_h).
	(i386-linux-tdep.o): Likewise.
	(ia64-linux-tdep.o): Likewise.
	(m32r-linux-tdep.o): Likewise.
	(mips-linux-tdep.o): Likewise.
	(sh-linux-tdep.o): Likewise.
	(s390-nat.o): Remove dependency on $(tm_h).
2006-11-28 21:41:03 +00:00
Ulrich Weigand 0b75775590 * config/nm-linux.h: Do not include <signal.h>.
(REALTIME_LO, REALTIME_HI): Do not define.
	* signals/signals.c (REALTIME_HI): Fix off-by-one bug.
2006-11-28 19:45:07 +00:00
Vladimir Prus 51b57b6b26 2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
* mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup
        handlers. Free expression.
2006-11-28 19:40:27 +00:00
Ulrich Weigand 238ae9afbe * config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define.
* config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Likewise.

	* config/rs6000/tm-rs6000ly.h (REALTIME_LO, REALTIME_HI): Move to ...
	* config/nm-lynx.h (REALTIME_LO, REALTIME_HI): ... here.

	* config/i386/nto.mh (NAT_FILE): Define.
	* config/i386/nto.mt (DEPRECATED_TM_FILE): Remove.
	* config/i386/tm-nto.h: Delete file.
	* config/tm-nto.h: Delete file.
	* config/nm-nto.h: New file.

	* Makefile.in (nto-tdep.o): Add dependency on $(objfiles_h).
	* nto-tdep.c: Include "objfiles.h" and <string.h>.

	* coff-solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "".
	* xcoffread.c (read_xcoff_symtab): Initialize fcn_stab_saved.
	* config/rs6000/rs6000lynx.mt (TDEPFILES): Add xcoffread.o.
2006-11-28 19:07:51 +00:00
Nathan Sidwell 8ec659a07e * gdb.base/break.c (main): Move position of malloc. 2006-11-28 17:52:06 +00:00
Daniel Jacobowitz 3e9a2e5245 * dwarf2-frame.c (decode_frame_entry_1): Skip unknown augmentations
without skipping the CIE.
2006-11-28 17:28:29 +00:00
Vladimir Prus acd65feb7e 2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
Fetch varobj values from memory in a single place,
        and only fetch the values that are really needed.
        * varobj.c (struct varobj): Clarify comment.
        (my_value_equal): Remove.
        (install_new_value): New function.
        (type_of_child): Remove.
        (varobj_create): Use install_new_value.
        (varobj_set_value): Use value_contents_equal, not
        my_value_equal.
        (varobj_update): Use install_new_value.
        (create_child): Likewise. Inline type_of_child here.
        (value_of_child): Don't fetch the value.
        (c_value_of_root): Likewise.
        (c_value_of_variable): Likewise.
        (type_changeable): Improve comments.
2006-11-28 17:23:10 +00:00
Daniel Jacobowitz 74ca34cea9 * remote.c (struct remote_arch_state): Doc fix.
(compare_pnums): New function.
	(init_remote_state): Only allocate packet_reg structures for raw
	registers.  Define the g/G packet format separately from creating
	packet_reg.  Don't use DEPRECATED_REGISTER_BYTE.
	(packet_reg_from_regnum, packet_reg_from_pnum): Only iterate over
	raw registers.
	(register_bytes_found): Delete.
	(fetch_register_using_p): Take a struct packet_reg.  Handle disabled
	'p' packet here.  Use packet_ok.
	(fetch_registers_using_g): New function, split out of
	remote_fetch_registers.  Check the 'g' packet more strictly.  Save
	its actual size and contents.  Eliminate BUF.  Only iterate over
	raw registers.
	(remote_fetch_registers): Use the new functions for 'p' and 'g'.
	Mark unavailable registers.
	(store_register_using_P): Likewise to fetch_register_using_p.
	(store_registers_using_G): New function, split out of
	remote_store_registers.  Only iterate over raw registers.  Don't
	use register_bytes_found.
	(remote_store_registers): Likewise to remote_fetch_registers.
2006-11-28 17:08:49 +00:00
Daniel Jacobowitz fbcebcb1ce 2006-11-28 Pedro Alves <pedro_alves@portugalmail.pt>
* coffread.c (cs_to_bfd_section): New function.
	(cs_to_section): Use cs_to_bfd_section.
	(record_minimal_symbol): Take the coff_symbol* parameter instead
	of the symbol's name as a char*.
	Add 'int section' parameter. Call prim_record_minimal_symbol_and_info
	instead of prim_record_minimal_symbol_and_info.
	Change return type to struct minimal_symbol *.
	(coff_symtab_read): Adapt to new record_minimal_symbol's signature.
	Make all minimal symbol creations go through record_minimal_symbol.
2006-11-28 16:53:54 +00:00
Daniel Jacobowitz e86e87f77f * symtab.c (find_pc_sect_line): Do not return a line before
the start of a symtab.
2006-11-28 16:23:32 +00:00
Nathan Sidwell f556d5e59d * gdb.base/break.c (main): Call malloc. 2006-11-28 16:04:00 +00:00
Nathan Sidwell fcfcc2b53d * gdb.threads/linux-dp.exp: Read thread table before and after
creating each philosopher and verify it.
2006-11-28 15:16:48 +00:00
gdbadmin 6314c43296 *** empty log message *** 2006-11-28 00:00:33 +00:00
Nathan Sidwell 697bc68de8 * gdb.base/ending-run.exp: Flatten expect script stepping out of
main to remove duplication.  Add start function of the form
	'_*start[1-9]*'. Add RVDS start function.
2006-11-27 15:09:54 +00:00
gdbadmin 14077f2331 *** empty log message *** 2006-11-27 00:00:32 +00:00
gdbadmin 8f4879226a *** empty log message *** 2006-11-26 00:00:32 +00:00
gdbadmin b30697a136 *** empty log message *** 2006-11-25 00:00:02 +00:00
Ulrich Weigand 9c309e77dc * NEWS: SPU target is already supported in GDB 6.6. 2006-11-24 20:19:37 +00:00
Ulrich Weigand 5ea03926ac * Makefile.in (mips-linux-tdep.o) Add $(solib_h) dependency.
(nto-procfs.o): Likewise.
	* mips-linux-tdep.c: Include "solib.h".
	* nto-procfs.c: Likewise.
	* config/nm-linux.h: Do not include "solib.h".
	* config/nm-nbsd.h: Likewise.
	* config/tm-linux.h: Likewise.
	* config/alpha/nm-osf.h: Likewise.
	* config/frv/tm-frv.h: Likewise.
	* config/i386/nm-fbsh.h: Likewise.
	* config/i386/nm-i386gnu.h: Likewise.
	* config/i386/nm-i386sco5.h: Likewise.
	* config/i386/nm-i386sol2.h: Likewise.
	* config/i386/nm-i386v4.h: Likewise.
	* config/i386/nm-i386v42mp.h: Likewise.
	* config/i386/tm-i386sol2.h: Likewise.
	* config/i386/tm-nto.h: Likewise.
	* config/mips/nm-irix5.h: Likewise.
	* config/mips/tm-nbsd.h: Likewise.
	* config/pa/tm-hppah.h: Likewise.
	* config/powerpc/tm-ppc-eabi.h: Likewise.
	* config/rs6000/tm-rs6000.h: Likewise.
	* config/sh/tm-nbsd.h: Likewise.
	* config/sparc/nm-sol2.h: Likewise.
	* config/sparc/tm-sol2.h: Likewise.
	* config/arm/nbsdaout.mh: Remove NAT_FILE.
	* config/i386/nbsdaout.mh: Likewise.
	* config/i386/nbsdelf.mh: Likewise.
	* config/i386/obsdaout.mh: Likewise.
	* config/m68k/nbsdaout.mh: Likewise.
	* config/m68k/obsd.mh: Likewise.
	* config/sparc/nbsdaout.mh: Likewise.
	* config/cris/cris.mt: Remove DEPRECATED_TM_FILE.
	* config/i386/linux64.mt: Likewise.
	* config/m68k/linux.mt: Likewise.
	* config/m68k/nbsd.mt: Likewise.
	* config/sparc/linux.mt: Likewise.
	* config/sparc/linux64.mt: Likewise.
	* config/vax/nbsd.mt: Likewise.
2006-11-24 18:23:34 +00:00
gdbadmin 4c11e4dee2 *** empty log message *** 2006-11-24 00:00:32 +00:00
gdbadmin 6bdcbd8f81 *** empty log message *** 2006-11-23 00:00:36 +00:00
Ulrich Weigand d1320b0b09 * NEWS: New port to Cell Broadband Engine SPU.
* MAINTAINERS: Add myself as spu maintainer.
2006-11-22 19:41:17 +00:00
Daniel Jacobowitz 29d73ae48c gdb/
* Makefile.in (arm-tdep.o): Update dependencies.
	* arm-tdep.c (thumb_skip_prologue): Remove.
	(thumb_analyze_prologue): New function.
	(arm_skip_prologue): Use thumb_analyze_prologue.
	(thumb_scan_prologue): Ditto.
gdb/testsuite/
	* gdb.arch/thumb-prologue.c, gdb.arch/thumb-prologue.exp: New files.
2006-11-22 18:51:58 +00:00
Ulrich Weigand a13e2c95aa ChangeLog:
* configure.tgt: Enable gdbserver for SPU target.
	* configure.ac: Build gdbserver when gdb_native is yes.
	* configure: Regenerate.
	* regformats/reg-spu.dat: New file.

gdbserver/ChangeLog:

	* configure.srv: Add target "spu*-*-*".
	* Makefile.in (clean): Remove reg-spu.c.
	(reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
	* spu-low.c: New file.
2006-11-22 17:34:15 +00:00
Daniel Jacobowitz 59a59f840d * osabi.c (gdbarch_lookup_osabi): Do not return
GDB_OSABI_UNINITIALIZED.
2006-11-22 17:32:07 +00:00
Ulrich Weigand c1d88655bb * gdb.asm/asm-source.exp: Add "spu*-*-*" target.
* gdb.asm/spu.inc: New file.
	* gdb.base/term.exp: Disable if [target_info exists noargs].
	* gdb.gdb/complaints.exp: Disable if ![isnative].
	* gdb.gdb/selftest.exp: Likewise.
	* gdb.gdb/observer.exp: Likewise.
	* gdb.gdb/xfullpath.exp: Likewise.
	* gdb.base/attach.exp: Disable on SPU target.
	* gdb.cp/bs145503.exp: Likewise.
	* gdb.cp/exception.exp: Likewise.
	* gdb.cp/userdef.exp: Likewise.
2006-11-22 17:19:52 +00:00
Daniel Jacobowitz 32a13b1aec * gdb.stabs/weird.exp (print_weird_var): Don't send extra \n. 2006-11-22 15:24:07 +00:00
Ulrich Weigand 771b4502d5 * config/powerpc/spu-linux.mh: New file.
* config/spu/spu.mt: New file.
	* configure.ac: Provide gdb_native configuration variable.
	* configure: Regenerate.
	* configure.host: Support powerpc64 to spu 'pseudo-native' mode.
	* configure.tgt: Add "spu" target_cpu and "spu*-*-*" target.
	* Makefile.in (spu_tdep_h): New variable.
	(ALLDEPFILES): Add spu-linux-nat.c and spu-tdep.c
	(spu-linux-nat.o, spu-tdep.o): Add dependencies.
	* spu-linux-nat.c: New file.
	* spu-tdep.c: New file.
	* spu-tdep.h: New file.
2006-11-22 13:49:53 +00:00
Ulrich Weigand 0b2b0195d1 * findvar.c (address_from_register): New function.
* value.h (address_from_register): Add prototype.
	* dwarf2loc.c (dwarf_expr_read_reg): Use address_from_register.
2006-11-22 13:44:45 +00:00
Vladimir Prus 765dc01564 2006-11-22 Vladimir Prus <vladimir@codesourcery.com>
* breakpoint.c: Include "memattr.h".
        (automatic_hardware_breakpoints): New.
        (show_automatic_hardware_breakpoints): New.
        (insert_bp_location): Automatically use
        hardware breakpoints.
        (_initialize_breakpoint): Register the "auto-hw"
        variable.
        * Makefile.in (breakpoint.o): Update dependencies.
2006-11-22 10:43:34 +00:00
gdbadmin 3593430428 *** empty log message *** 2006-11-22 00:00:32 +00:00
Vladimir Prus 4b5752d02f gdb/
* memattr.h (enum mem_access_mode): New value
        MEM_NONE.
        * memattr.c (unknown_mem_attrib): New.
        (inaccessible_by_default): New.
        (show_inaccessible_by_default): New.
        (lookup_mem_region): Check inaccessible_by_default.
        (dummy_cmd): New.
        (mem_set_cmdlist, mem_show_cmdlist): New.
        (_initialize_mem): Register new "set" and "show"
        commands.
        * target.c (memory_xfer_partial): If memory type
        is MEM_NONE, return an error.
        Clip to region size when calling to_xfer_partial.
        If upper limit of memory range is 0, don't clip
        anything.

        gdb/doc/
        * gdb.texinfo (Memory Access Checking): New.
2006-11-21 16:50:16 +00:00
Joel Brobecker caac47b8c3 * README: Remove obsolete information. 2006-11-21 05:12:44 +00:00
gdbadmin 76ea7ebf75 *** empty log message *** 2006-11-21 00:00:33 +00:00
Andrew Cagney 155bd5d1c1 Index: ChangeLog
2006-11-20  Andrew Cagney  <cagney@redhat.com>

	* linux-nat.h: Refer to GNU/Linux or Linux kernel.
	* linux-nat.c (lin_lwp_attach_lwp, linux_nat_thread_alive): Ditto.
	* infcmd.c (attach_command): Ditto.
	* hppa-linux-tdep.c (hppa_linux_regset): Ditto.
	* mn10300-linux-tdep.c: Ditto.  Update copyright year.
	* frv-linux-tdep.c: Ditto.  Update copyright year.
2006-11-20 21:47:06 +00:00
Joel Brobecker 6dd0964508 * NEWS: Add a new section for changes since GDB 6.6. Rename
the section "Changes since GDB 6.5" into "Changes in GDB 6.6".
        Move a couple of items into the new section as they did not
        make it to 6.6.
2006-11-20 00:16:05 +00:00
gdbadmin baa7655eda *** empty log message *** 2006-11-20 00:00:32 +00:00
Joel Brobecker ab44b8ebc8 GDB 6.6 branch created (branch timestamp: 2006-11-15 12:00)
* version.in: Bump version to 6.6.50.20061119-cvs.
2006-11-19 23:30:13 +00:00
gdbadmin ed4768753a *** empty log message *** 2006-11-19 00:00:02 +00:00
Daniel Jacobowitz 08f08ce684 * prologue-value.c (clear_entries): Fix memory leak. 2006-11-18 23:57:08 +00:00
Daniel Jacobowitz aef9c3b3f5 2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
* parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before
	dereferencing it.
2006-11-18 23:54:32 +00:00
gdbadmin 8329e30aa8 *** empty log message *** 2006-11-18 00:00:03 +00:00
Daniel Jacobowitz 63f0680332 * utils.c (string_to_core_addr): Use error instead of
internal_error.
	* mi/mi-main.c (mi_execute_command): Check for a NULL message.
2006-11-17 19:30:41 +00:00
Daniel Jacobowitz e554a4b262 * NEWS: Mention QPassSignals. 2006-11-17 17:48:41 +00:00
gdbadmin 6e953d69fb *** empty log message *** 2006-11-17 00:00:03 +00:00
Daniel Jacobowitz cb7283db10 * configure.ac: Correct td_thr_tls_get_addr test.
* configure: Regenerated.
2006-11-16 22:04:09 +00:00
Maxim Grigoriev 7a11f07a31 Changelog update for my previous check-in. 2006-11-16 19:58:57 +00:00
Maxim Grigoriev 9cd8460227 2006-11-16 Maxim Grigoriev <maxim2405@gmail.com>
* MAINTAINERS (Responsible Maintainers): Add myself for Xtensa.
   (Write After Approval): Add myself.
2006-11-16 19:45:45 +00:00
Daniel Jacobowitz 89be209149 gdb/
* remote.c (PACKET_QPassSignals): New.
	(last_pass_packet, remote_pass_signals): New.
	(remote_protocol_features): Add QPassSignals.
	(remote_query_supported): Correct an infinite loop.
	(remote_open_1): Reset last_pass_packet.
	(remote_resume): Call remote_pass_signals.
	(_initialize_remote): Register "set remote pass-signals".
gdb/doc/
	* gdb.texinfo (Remote configuration): Mention
	"pass-signals-packet".
	(General Query Packets): Document QPassSignals.  Fix
	a typo.
gdb/gdbserver/
	* linux-low.c (linux_wait_for_event): Reformat.  Use the
	pass_signals array.
	* remote-utils.c (decode_address_to_semicolon): New.
	* server.c (pass_signals, handle_general_set): New.
	(handle_query): Mention QPassSignals for qSupported.
	(main): Call handle_general_set.
	* server.h (pass_signals, decode_address_to_semicolon): New.
2006-11-16 15:08:25 +00:00
gdbadmin 7495b3afc0 *** empty log message *** 2006-11-16 00:00:36 +00:00
gdbadmin 5f69414afa *** empty log message *** 2006-11-15 00:00:33 +00:00
Daniel Jacobowitz ca3bf3bdbe 2006-11-14 Maxim Grigoriev <maxim@tensilica.com>
* NEWS: New port to Xtensa.
	* Makefile.in: Add dependencies for Xtensa files.
	* configure.tgt (xtensa*, xtensa*-*-elf*): New.
	* configure.host (xtensa*-*-elf*): New.
	* config/xtensa/xtensa.mt: New file.
	* xtensa-config.c: New file.
	* xtensa-tdep.h: New file.
	* xtensa-tdep.c: New file.

2006-11-14  Maxim Grigoriev  <maxim@tensilica.com>

	* gdb.texinfo (Contributors): Add contributors of Xtensa port.
2006-11-14 21:53:59 +00:00
Daniel Jacobowitz 427c3a89d3 gdb/
* remote.c (set_remote_cmd): Call help_list.
	(show_remote_cmd): Skip legacy aliases.  Handle non-show_cmd
	entries.  Add missed cleanup.
	* cli/cli-setshow.c (cmd_show_list): Handle non-show_cmd entries.
gdb/doc/
	* gdb.texinfo (Remote configuration): Rewrite documentation for
	packet configuration commands.
	(OS Information): Adjust reference to qXfer:auxv:read.
	(General Query Packets): Remove references to read-aux-vector-packet
	and set remote get-thread-local-storage-address.
2006-11-14 21:40:19 +00:00
gdbadmin 981be051b4 *** empty log message *** 2006-11-14 00:00:03 +00:00
Daniel Jacobowitz 1bc1fa8c87 Fix last entry. 2006-11-13 19:05:50 +00:00
Paul Gilliam 60f140f9b6 Fixed up some indentation introduced by my last pactch. 2006-11-13 18:50:11 +00:00
Paul Gilliam 4019046acc Fix sigtramp cache code so that PPC register are read only if there is H/W. 2006-11-13 17:37:36 +00:00
gdbadmin 83fb162ab0 *** empty log message *** 2006-11-13 00:00:03 +00:00
Ben Harris 59ea4f7003 * arm-tdep.c (arm_unwind_pc): Use arm_addr_bits_remove. 2006-11-12 11:06:31 +00:00
gdbadmin 7e38eb0a58 *** empty log message *** 2006-11-12 00:00:04 +00:00
gdbadmin c903bd719c *** empty log message *** 2006-11-11 00:00:32 +00:00
Daniel Jacobowitz e48af409a9 * frame.c (frame_register_unwind_location): New function.
(get_prev_frame_1): Check for UNWIND_NO_SAVED_PC.
	(frame_stop_reason_string): Handle UNWIND_NO_SAVED_PC.
	* frame.h (enum unwind_stop_reason): Add UNWIND_NO_SAVED_PC.
2006-11-10 20:11:35 +00:00
Daniel Jacobowitz 7a10774786 gdb/
* arch-utils.c (target_byte_order_user): Renamed from
	target_byte_order.
	(target_byte_order_auto, selected_byte_order): Removed.
	(show_endian): Check target_byte_order_user.
	(set_endian): Always update the architecture.  Set
	target_byte_order_user after success.
	(target_architecture_auto): Removed.
	(target_architecture_user): New.
	(selected_architecture_name, show_architecture): Check it.
	(set_architecture): Set target_architecture_user after success.
	(gdbarch_from_bfd): Check the argument.
	(default_byte_order): New.
	(initialize_current_architecture): Set the global default
	architecture and endianness.
	(gdbarch_info_fill): Remove GDBARCH argument.  Do not check the
	previous architecture.  Use exec_bfd, global selected architecture
	and endianness, and global defaults.
	* arch-utils.h (selected_byte_order): Remove prototype.
	(gdbarch_info_fill): Update.
	* exec.c (exec_file_attach): Update the architecture after removing
	the current file.
	* gdbarch.sh: Update comments.
	(find_arch_by_info): Remove OLD_GDBARCH argument.  Update call to
	gdbarch_info_fill.
	(gdbarch_find_by_info): Update call to find_arch_by_info.
	* gdbarch.h, gdbarch.c: Regenerated.
	* remote-sim.c (gdbsim_open): Use TARGET_BYTE_ORDER.
gdb/doc/
	* gdbint.texinfo (Target Architecture Definition): Add new
	Initializing a New Architecture section.
2006-11-10 19:20:37 +00:00
Vladimir Prus d8295fe954 2006-11-10 Vladimir Prus <vladimir@codesourcery.com>
* gdb.base/completion.exp: Fix completion tests for
        'info' and 'info '.
        * gdb.base/help.exp (help_test_raw, test_class_help)
        (test_prefix_command_help): Move...
        * lib/gdb.exp: Here.
        * gdb.base/main.exp: Adjust.
        * gdb.cp/maint.exp: Adjust.
        * gdb.trace/tracecmd.exp: Use test_help_class.
2006-11-10 16:58:53 +00:00
Jim Blandy 9ef8fd3cb0 Fix garbled ChangeLog entry. 2006-11-10 01:12:24 +00:00
gdbadmin 142018cf03 *** empty log message *** 2006-11-10 00:00:33 +00:00
Vladimir Prus 8c394015eb 2006-11-09 Vladimir Prus <vladimir@codesourcery.com>
* gdb.stabs/weird.exp (print_weird_var): Use
        gdb_test_multiple instead of gdb_expect.
2006-11-09 19:31:14 +00:00
Vladimir Prus 027fc1bcc3 Move changelog entry to the right place 2006-11-09 19:26:45 +00:00
Vladimir Prus a38cd18094 2006-11-09 Vladimir Prus <vladimir@codesourcery.com>
* gdb.base/help.exp (help_test_raw): New.
        (test_class_help): New.
        (test_prefix_command_help): New.
        Adjust testcases.
2006-11-09 19:22:11 +00:00
Joel Brobecker b5bf31df5b * sparc-tdep.c (sparc_fetch_instruction): Read instruction
using read_memory_nobpt.
2006-11-09 16:36:58 +00:00
Frederic Riss 6760920914 2006-11-09 Christophe Lyon <christophe.lyon@st.com>
* gdb.base/constvars.c (main): Write to crass and crips, so that
	they are allocated by the compiler.
2006-11-09 09:20:17 +00:00
gdbadmin 4eaf9bc93a *** empty log message *** 2006-11-09 00:00:33 +00:00
gdbadmin 499f04a3c1 *** empty log message *** 2006-11-08 00:00:35 +00:00
gdbadmin 2f23e1502e *** empty log message *** 2006-11-07 00:00:33 +00:00
Jim Blandy e5192dd81c 2006-11-06 Jim Blandy <jimb@codesourcery.com>
* (dwarf_expr_read_reg): Use frame_register_read, not frame_register.
	* dwarf2loc.c (dwarf_expr_read_reg): Use frame_register_read
	instead of frame_register.  Doc fix.
2006-11-06 23:20:12 +00:00
Daniel Jacobowitz 000ef4f0ec * server.c (handle_query): Correct error handling for read_auxv. 2006-11-06 21:50:32 +00:00
gdbadmin f09801072e *** empty log message *** 2006-11-06 00:00:04 +00:00
gdbadmin 8a3b477701 *** empty log message *** 2006-11-05 00:00:02 +00:00
Vladimir Prus 8b9e3a1523 2006-11-04 Vladimir Prus <vladimir@codesourcery.com>
* serial.c (serial_open): Strip leading spaces from program
       name when opening pipe.
2006-11-04 08:37:24 +00:00
gdbadmin f4f5eb403f *** empty log message *** 2006-11-04 00:00:32 +00:00
Jim Blandy 4bc9efe119 2006-11-03 Jim Blandy <jimb@codesourcery.com>
* dwarf2loc.c (dwarf_expr_read_reg): Use frame_unwind_register
        instead of frame_register.  Doc fix.
2006-11-03 22:09:28 +00:00
gdbadmin 5c38167b2c *** empty log message *** 2006-11-03 00:00:33 +00:00
Daniel Jacobowitz 31ffec4870 * dwarf2read.c (struct dwarf2_per_cu_data): Update comment.
(load_full_comp_unit): Take OBJFILE argument and use it.
	(dwarf2_build_psymtabs_hard): Skip partial units.
	(process_queue): Pass OBJFILE to load_full_comp_unit.  Check
	type_hash for read in CUs.  Test psymtab for NULL.
2006-11-02 21:34:07 +00:00
Daniel Jacobowitz 625b50039a * arm-tdep.c (arm_gdbarch_init): Handle EF_ARM_EABI_VER5. 2006-11-02 21:32:22 +00:00
gdbadmin 325a4b61ce *** empty log message *** 2006-11-02 00:00:02 +00:00
gdbadmin fe2dce6741 *** empty log message *** 2006-11-01 00:00:33 +00:00
Eli Zaretskii 1c56eb0e62 * stabs.texinfo (Macro define and undefine): New node describing
stabs for #define and #undef.
2006-10-31 22:38:27 +00:00
Vladimir Prus 6e381ba0b0 Improve "help all". 2006-10-31 11:45:41 +00:00
gdbadmin ee9e139d63 *** empty log message *** 2006-10-31 00:00:03 +00:00
gdbadmin 173dd3ae58 *** empty log message *** 2006-10-30 00:00:03 +00:00
gdbadmin c9b8f8fd74 *** empty log message *** 2006-10-29 00:00:34 +00:00
gdbadmin 691e0f4f61 *** empty log message *** 2006-10-28 00:00:03 +00:00
Andreas Schwab f73adfeb8b * gdbcmd.h (detachlist): Declare.
* infcmd.c (_initialize_infcmd): Define "detach" as prefix
	command.
	* linux-fork.c (_initialize_linux_fork): Rename
	"detach-checkpoint" to "detach checkpoint" and "detach-fork" to
	"detach fork".
	* cli/cli-cmds.c (detachlist): Define.
	(init_cmd_lists): Initialize it.
	* cli/cli-cmds.h (detachlist): Declare.

doc/:
	* gdb.texinfo (Processes): Rename "detach-fork" to "detach fork".

testsuite/:
	* gdb.base/multi-forks.exp: Use "detach fork" instead of
	"detach-fork".
2006-10-27 22:23:21 +00:00
gdbadmin 7ebede5616 *** empty log message *** 2006-10-27 00:00:34 +00:00
gdbadmin 87d98ef318 *** empty log message *** 2006-10-26 00:00:02 +00:00
Jim Blandy 7080f20f88 gdb/ChangeLog:
2006-10-25  Jim Blandy  <jimb@codesourcery.com>

	* p-valprint.c (pascal_object_print_value): Add 'static' keyword
	to function definition, to match declaration earlier in file.
2006-10-25 21:26:41 +00:00
gdbadmin 08451320d3 *** empty log message *** 2006-10-25 00:00:03 +00:00
Nick Roberts d149de7bca *** empty log message *** 2006-10-24 20:23:56 +00:00
gdbadmin 2941e768e4 *** empty log message *** 2006-10-24 00:00:10 +00:00
gdbadmin 75ee0d67f2 *** empty log message *** 2006-10-23 00:00:34 +00:00
gdbadmin 08b4ae39e5 *** empty log message *** 2006-10-22 00:00:07 +00:00
Paul Brook 3732ba62b9 2006-10-21 Paul Brook <paul@codesourcery.com>
* remote.c (remote_fetch_registers): Fix error message.
2006-10-21 17:59:08 +00:00
Eli Zaretskii e5ac9b532c gdb.texinfo (Source Annotations): Fix index entries by adding
"annotation" to them, to discriminate from index entries that point
	to the more general topic descriptions.
2006-10-21 13:06:04 +00:00
Eli Zaretskii 0ced0c34ad (Breakpoints): Fix a typo. 2006-10-21 12:54:18 +00:00
Eli Zaretskii fd60e0dfdf * gdb.texinfo (Breakpoints, Set Watchpoints): Elaborate and
clarify on the possible meanings of ``expression'' watched by
	watchpoints.  Add indexing.
2006-10-21 12:50:16 +00:00
Eli Zaretskii 286ba84deb (Backtrace): Fix a typo. 2006-10-21 12:20:59 +00:00
gdbadmin 46a30e6b86 *** empty log message *** 2006-10-21 00:00:03 +00:00
Daniel Jacobowitz 804e0f53e7 * gcore.c (MAX_COPY_BYTES): Define.
(gcore_copy_callback): Use it to limit allocation.
2006-10-20 22:06:28 +00:00
Ulrich Weigand f86172a554 * linux-thread-db.c (check_for_thread_db): Don't attempt to use
thread_db for remote targets.
	* remote.c (remote_new_objfile): Always call predecessor on
	new_objfile event chain.
2006-10-20 01:08:14 +00:00
Ulrich Weigand b7149293aa 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
* configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
        and srv_linux_thread_db to yes.
        * linux-s390-low.c (s390_fill_gregset): New function.
        (target_regsets): Define data structure.
2006-10-20 00:34:35 +00:00
gdbadmin 9128c20543 *** empty log message *** 2006-10-20 00:00:32 +00:00
Joel Brobecker 6612ad7f9f * solib.c (libpthread_solib_p): New function.
(solib_add): Always read the symbols from the libpthread library.
2006-10-19 19:58:23 +00:00
Andrew Stubbs d674a25c2b 2006-10-19 Andrew Stubbs <andrew.stubbs@st.com>
* breakpoint.c (describe_other_breakpoints): Add thread parameter.
	Annotate display with thread number where appropriate.
	(create_breakpoints): Add thread parameter to call to
	describe_other_breakpoints.
2006-10-19 15:58:25 +00:00
Andreas Schwab 76101e23e5 Typos. 2006-10-19 09:23:10 +00:00
gdbadmin 0532541186 *** empty log message *** 2006-10-19 00:00:06 +00:00
Daniel Jacobowitz 981c7f5a30 * utils.c (query): Use defaulted_query.
(defaulted_query): Handle having no default answer.  Print out
	messages even if we have no terminal.  Prevent memory corruption.
2006-10-18 22:16:52 +00:00
Daniel Jacobowitz 55feb68948 * frame.c (struct frame_info): Add stop_reason.
(get_prev_frame_1): Set stop_reason.  Don't call error for
	stop reasons.
	(get_frame_unwind_stop_reason, frame_stop_reason_string): New.
	* frame.h (enum unwind_stop_reason): New.
	(get_frame_unwind_stop_reason, frame_stop_reason_string): New
	prototypes.
	* stack.c (frame_info): Print the stop reason.
	(backtrace_command_1): Print the stop reason for errors.
2006-10-18 19:52:05 +00:00
Daniel Jacobowitz 8621d6a944 * inferior.h (start_remote): Update prototype.
* infrun.c (start_remote): Take FROM_TTY.  Call
	post_create_inferior.
	* monitor.c (monitor_open): Update call to start_remote.
	* remote-sds.c (sds_start_remote, sds_open): Likewise.
	* remote.c (remote_start_remote): Likewise.
	(remote_start_remote_dummy): Removed.
	(remote_open): Update call to remote_start_remote.  Do not call
	post_create_inferior here.
2006-10-18 16:56:13 +00:00
Daniel Jacobowitz 2f83a18e2a * lib/gdbserver-support.exp (gdb_target_cmd): Anchor the ends
of patterns.
2006-10-18 16:49:05 +00:00
Daniel Jacobowitz 3443977099 * solib-svr4.c (debug_loader_offset_p, debug_loader_offset)
(debug_loader_name, svr4_default_sos): New.
	(svr4_current_sos): Call svr4_default_sos.
	(enable_break): Add a comment about AT_BASE.  Set the new
	variables and retry solib_add.
	(svr4_clear_solib): Clear the new variables.
2006-10-18 15:34:39 +00:00
Daniel Jacobowitz 7d3d3ece84 * NEWS: Mention support for TLS without debugging information. 2006-10-18 15:29:18 +00:00
gdbadmin 3aafe03c09 *** empty log message *** 2006-10-18 00:00:04 +00:00
Daniel Jacobowitz 52bb452f80 gdb/
* gdbint.texinfo (Target Vector Definition): Move most
	content into Existing Targets.  Add a menu.
	(Existing Targets): New section, moved from Target Vector
	Definition.  Use @subsection.
	(Managing Execution State): New section.
gdb/doc/
	* remote-sim.c (gdbsim_kill): Call target_mourn_inferior.
	(gdbsim_load): Don't bother to adjust inferior_ptid here.
	(gdbsim_create_inferior): Mark the simulator as running.
	(gdbsim_open): Don't bother fetching registers.  Mark
	the target as not running.
	(gdbsim_xfer): When the program is not running, pass memory
	requests down.
	(gdbsim_mourn_inferior): Mark the target as not running.
	* target.c (target_mark_running, target_mark_exited): New.
	* target.h (target_has_execution): Update the comment.
	(target_mark_running, target_mark_exited): New prototypes.
2006-10-17 21:55:24 +00:00
Joel Brobecker b40ce68a77 * breakpoint.c (free_valchain): Minor reformatting. 2006-10-17 21:53:26 +00:00
Bob Wilson 58955e583a * gdb.texinfo (ST2000): Use Ctrl- instead of C-. 2006-10-17 21:08:17 +00:00
Daniel Jacobowitz 79d4c408c4 * solib-svr4.c (LM_ADDR_CHECK): Suggest shared library mismatch. 2006-10-17 20:52:32 +00:00
Daniel Jacobowitz 94277a3898 gdb/
* Makefile.in (symtab.o): Update.
	* symtab.h (matching_bfd_section): New prototype.
	* symtab.c (matching_bfd_section): New.
	(find_pc_sect_psymbol, find_pc_sect_symtab): Use it.
	* minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
	* printcmd.c (sym_info): Ignore separate debug objfiles.
gdb/testsuite/
	* gdb.base/sepdebug.exp: Remove debug format test.
	* lib/gdb.exp (gdb_gnu_strip_debug): Perform debug format test.
	Handle no-symtab.
	* gdb.base/sepsymtab.c, gdb.base/sepsymtab.exp: New.
2006-10-17 20:17:45 +00:00
Daniel Jacobowitz dae5f5cf4b * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
* configure.ac: Use it.  Define HAVE_TD_THR_TLS_GET_ADDR.
	* config.in, configure: Regenerated.
	* inferiors.c (gdb_id_to_thread): New function.
	(gdb_id_to_thread_id): Use it.
	* linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
	* linux-low.h (struct process_info): Add th member.
	(thread_db_get_tls_address): New prototype.
	* remote-utils.c (decode_address): Make non-static.
	* server.c (handle_query): Handle qGetTLSAddr.
	* server.h (gdb_id_to_thread, decode_address): New prototypes.
	* target.h (struct target_ops): Add get_tls_address.
	* thread-db.c (maybe_attach_thread): Save the thread handle.
	(thread_db_get_tls_address): New.
2006-10-17 16:02:27 +00:00
Daniel Jacobowitz 5bd2f6e2a6 * gdb.threads/manythreads.c (thread_function, main): Don't cast
int to pointer or pointer to int.
	* gdb.threads/manythreads.exp: Don't expect the string "LWP".
2006-10-17 15:52:53 +00:00
Daniel Jacobowitz 32a5b2f1dd * remote.c (remote_pid_to_str): Capitalize "Thread". 2006-10-17 15:43:51 +00:00
gdbadmin aac509a07f *** empty log message *** 2006-10-17 00:00:32 +00:00
Daniel Jacobowitz 9b7194bcb4 PR remote/2158
* remote.c (remote_write_bytes): Throttle packet alignment
	for small packets.
2006-10-16 03:08:37 +00:00
gdbadmin c88c804ea4 *** empty log message *** 2006-10-16 00:00:02 +00:00
Eli Zaretskii 45ac17341e * gdb.texinfo (Signals, Set Breaks, Set Watchpoints): Document optional
arguments to `info signals'  `handle', `info breakpoints', and
	`info watchpoints'.
2006-10-15 21:36:00 +00:00
Eli Zaretskii c8aa23ab92 * gdb.texinfo (Sample Session, Invocation, Quitting GDB)
(Command Syntax, Signals, Backtrace, Connecting)
	(Remote configuration, Renesas Boards, Console I/O): Fix last
	change: use Ctrl- instead of C-, except wrt Emacs.
	(File-I/O Examples): Put Ctrl-c in @kbd.
	(Cygwin Native, File-I/O Overview, The Ctrl-C message)
	(Console I/O): Use @samp with Ctrl-.
2006-10-15 21:19:49 +00:00
Nick Roberts 1111f4aa91 (thread_db_wait): Don't bother continuing if the wait result indicates the
program terminated with a signal (from gdb-6.3-ia64-sigill-20051115.patch, a
patch for Fedora Core 5).
2006-10-15 19:38:45 +00:00
Nick Roberts b255021abc *** empty log message *** 2006-10-15 19:37:49 +00:00
gdbadmin 706bae0be6 *** empty log message *** 2006-10-15 00:00:32 +00:00
Eli Zaretskii e7109c7e3b * gdb.texinfo (Backtrace): Fix last change. 2006-10-14 18:34:03 +00:00
Nick Roberts dd74f6ae66 (Backtrace): Order correctly and add other cases. 2006-10-14 00:21:13 +00:00
Nick Roberts de3aea7bdd *** empty log message *** 2006-10-14 00:20:02 +00:00
gdbadmin 0cd39e2e24 *** empty log message *** 2006-10-14 00:00:09 +00:00
Joel Brobecker 3e4d11fe10 Add in one of the previous entries the fact that the change was to
fix PR symtab/2018.
2006-10-13 02:40:47 +00:00
gdbadmin 81a724a85f *** empty log message *** 2006-10-13 00:00:33 +00:00
Daniel Jacobowitz 8c008720eb * gdb.base/annota1.exp, gdb.base/maint.exp: Use string_to_regexp. 2006-10-12 19:03:22 +00:00
gdbadmin 78af1e2086 *** empty log message *** 2006-10-12 00:00:34 +00:00
Daniel Jacobowitz 366da635ba * dwarf2read.c (dwarf_decode_lines): Call record_line upon
encountering a different subfile.
2006-10-11 15:39:35 +00:00