Commit Graph

18613 Commits

Author SHA1 Message Date
Mark Kettenis 4252dc94bd * i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
Change type to `static const gdb_byte'.
(i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start)
(i386_linux_sigcontext_addr): Use gdb_byte for buf.
* amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static
const gdb_byte'.
(amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use
gdb_byte for buf.
* amd64fbsd-tdep.c (amd64fbsd_supply_uthread)
(amd64fbsd_collect_uthread): Use gdb_byte for buf.
2005-05-08 22:07:27 +00:00
Mark Kettenis d46bfb5c37 * config/ia64/nm-aix.h: Remove file. 2005-05-08 19:50:39 +00:00
Mark Kettenis e447028cb4 Fix typo. 2005-05-08 18:01:31 +00:00
Mark Kettenis d8de1ef788 * amd64-tdep.c (amd64_return_value): Use `gdb_byte *' in casts.
(amd64_push_arguments): Use gdb_byte instead of bfd_byte.  Use
gdb_byte for buf.
(amd64_push_dummy_call): Use gdb_byte for buf.
(amd64_analyze_prologue): Use gdb_byte for proto, buf and op.
(amd64_frame_cache, amd64_sigtramp_frame_cache)
(amd64_unwind_dummy_id): Use gdb_byte for buf.
(amd64_supply_fxsave, amd64_collect_fxsave): Use `gdb_byte *' for
regs.
* amd64obsd-tdep.c (amd64obsd_supply_regset): Use `gdb_byte *' in
casts.
(amd64obsd_sigtramp_p): Use gdb_byte for sigreturn and `gdb_byte
*' for buf,
2005-05-08 18:00:07 +00:00
Mark Kettenis 63c0089f20 * i386-tdep.c (i386_breakpoint_from_pc): Change return type to
`const gdb_byte *'.  Use gdb_byte for break_insn.
(i386_follow_jump): Use gdb_byte for op.
(i386_analyze_struct_return): Use gdb_byte for proto1, proto2, buf
and op.
(i386_skip_probe): Use gdb_byte for buf and op.
(struct i386_insn): Use gdb_byte for insn and mask.
(i386_match_insn, i386_analyze_frame_setup)
(i386_analyze_register_saves): Use gdb_byte for op.
(i386_skip_prologue): Use gdb_byte for pic_pat and op;
(i386_unwind_pc, i386_frame_cache, i386_sigtramp_frame_cache)
(i386_unwind_dummy_id, i386_get_longjmp_target): Use gdb_byte for
buf.
(i386_extract_return_value, i386_store_return_value): Use
`bfd_byte *' instead of `void *' for valbuf argument.  Remove now
redundant cast.
(i386_pseudo_register_read, i386_pseudo_register_write): Use
gdb_byte for mmx_buf.
(i386_register_to_value, i386_value_to_register): Use `gdb_byte *'
instead of `char *' for buf.
(i386_supply_gregset, i386_collect_gregset): Use `gdb_byte *'
instead of `char *' for regs.
(i386_svr4_sigcontext_addr): Use gdb_byte for buf.
* i386obsd-tdep.c (i386obsd_sigtramp_p): Use gdb_byte for
sigreturn and `gdb_byte *' for buf.
(i386obsd_aout_supply_regset): Use `const gdb_byte *' in cast.
(i386obsd_supply_uthread, i386obsd_collect_uthread): Use gdb_byte
for buf.
* i386bsd-tdep.c (i386bsd_sigcontext_addr): Use gdb_byte for buf.
2005-05-08 16:27:34 +00:00
Mark Kettenis b57b6c2e22 * defs.h (gdb_byte): New typedef. Tweak comments. 2005-05-08 14:57:41 +00:00
Mark Kettenis 9cedd1a6ad * target.h (target_link): Remove prototype.
* target.c (target_link): Remove function.
* symfile.c: Remove comment about rombug.
2005-05-08 14:46:52 +00:00
Bob Rossi 6006a3a1ec Add the fullname_syntax testsuite variable. This allows GDB to make sure
that the MI fullname field is an absolute path, instead of just checking
for .* or /.*
2005-05-08 13:42:04 +00:00
gdbadmin c41aea10b5 *** empty log message *** 2005-05-08 00:00:34 +00:00
gdbadmin 61bd574fdd *** empty log message *** 2005-05-07 00:00:33 +00:00
gdbadmin 539a2ce3aa *** empty log message *** 2005-05-06 00:00:33 +00:00
gdbadmin f1d618edc6 *** empty log message *** 2005-05-05 00:00:05 +00:00
Daniel Jacobowitz c3b69c04b9 * gdb.threads/linux-dp.exp: Check for *-*-linux-gnu*. 2005-05-04 21:21:42 +00:00
Daniel Jacobowitz 8643e2ad06 * proc-service.c (ps_lgetregs): Search all_processes instead of
all_threads.
2005-05-04 19:10:32 +00:00
Daniel Jacobowitz fc620387c9 * server.c (start_inferior): Change return type to int.
(attach_inferior): Change sigptr to int *.
	(handle_v_cont, handle_v_requests): Change signal to int *.
	(main): Change signal to int.
2005-05-04 18:51:38 +00:00
Mark Kettenis f8736ddfb1 * config/i386/cygwin.mh (XM_FILE): Remove variable.
* config/i386/xm-cygwin.h: Remove file.
2005-05-04 16:29:54 +00:00
gdbadmin 6502566e6e *** empty log message *** 2005-05-04 00:00:04 +00:00
Paul Gilliam 3c95e6af3b 2004-05-02 Paul Gilliam <pgilliam@us.ibm.com>
* lib/gdb.exp (skip_altivec_tests): New function, based on
        check_vmx_hw_available from the GCC testsuite.
        * lib/gdb.arch/altivec-abi.exp: Use skip_altivec_tests.
        * lib/gdb.arch/altivec-regs.exp: Likewise.
2005-05-03 00:41:49 +00:00
gdbadmin a798f6e0c2 *** empty log message *** 2005-05-03 00:00:02 +00:00
Ben Elliston 8bbde30215 * infrun.c (handle_inferior_event): Update the comment about users
of stepped_after_stopped_by_watchpoint.
2005-05-02 23:56:36 +00:00
Jim Blandy 78df6c563d * gdb.base/auxv.exp: Call 'untested' and return -1 instead of
calling gdb_suppress_entire_file.
2005-05-02 20:57:30 +00:00
Mark Kettenis a561754a23 * gdb.texinfo (Files): Remove documentation for auto-solib-limit. 2005-05-02 20:42:27 +00:00
Eli Zaretskii 514c4d7110 * gdb.texinfo (SVR4 Process Information, The isatty call)
(The system call): Don't use foo(N) notation for man pages and
	functions.
	(Compilation, DJGPP Native): Improve wording.
2005-05-02 20:28:48 +00:00
Corinna Vinschen 079c8cd052 * MAINTAINERS: Remove hint that sh64 doesn't build.
* sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory.
	(sh64_do_fp_register): make raw_buffer unsigned.
	(sh64_do_register): Ditto.
2005-05-02 15:23:37 +00:00
Mark Kettenis 5ebc08b005 * bsd-uthread.c: Include "solib.h".
* Makefile.in (bsd-uthread.o): Update dependencies.
2005-05-02 12:05:11 +00:00
gdbadmin 3a4b8b94a0 *** empty log message *** 2005-05-02 00:00:03 +00:00
Daniel Jacobowitz 5dbe23a34e * gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
cached frames when changing gdbarch.
	* gdbarch.c: Regenerated.
2005-05-01 23:16:46 +00:00
Andrew Cagney 87d088f521 2005-05-01 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS: Note that cris, m68k, mn10300, sh64, sparc and vax
	do not build.
2005-05-01 23:07:33 +00:00
Eli Zaretskii 2eecc4abe2 (SVR4 Process Information, The isatty call, The system call): Don't use the
foo(N) notation for man pages and functions.
2005-05-01 21:27:44 +00:00
Andrew Cagney 5a168c78ef 2005-05-01 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (deprecated_extract_return_value)
	(breakpoint_from_pc, deprecated_store_return_value)
	(memory_insert_breakpoint, memory_remove_breakpoint): Change type
	of buffer to a bfd_byte pointer.
	* gdbarch.h, gdbarch.c: Re-generate.
	* mem-break.c (memory_insert_breakpoint)
	(memory_remove_breakpoint, default_memory_insert_breakpoint)
	(default_memory_remove_breakpoint): Update.
	* target.h (memory_insert_breakpoint)
	(memory_remove_breakpoint, default_memory_insert_breakpoint)
	(default_memory_remove_breakpoint): Update declarations.
	(struct target_ops): Update to_insert_breakpoint and
	to_remove_breakpoint.
	* target.c (debug_to_remove_breakpoint)
	(debug_to_insert_breakpoint): Update.
	* remote-m32r-sdi.c (m32r_remove_breakpoint)
	(m32r_insert_breakpoint): Update.
	* m32r-tdep.c (m32r_memory_insert_breakpoint)
	(m32r_memory_remove_breakpoint): Update.
	* remote-e7000.c (e7000_insert_breakpoint)
	(e7000_remove_breakpoint): Update.
	* remote-rdi.c (arm_rdi_insert_breakpoint)
	(arm_rdi_remove_breakpoint): Update.
	* remote-sim.c (gdbsim_insert_breakpoint)
	(gdbsim_remove_breakpoint): Update.
	* exec.c (ignore): Update.
	* rs6000-tdep.c (rs6000_extract_return_value): Update.
	* ia64-tdep.c (ia64_memory_insert_breakpoint)
	(ia64_memory_remove_breakpoint): Update.
	* remote-rdp.c (remote_rdp_insert_breakpoint)
	(remote_rdp_remove_breakpoint): Update.
2005-05-01 19:58:55 +00:00
Mark Kettenis e908eab4d8 * somsolib.c, somsolib.h: Remove files.
* Makefile.in (somsolib_h): Remove.
(somsolib.o): Remove dependency.
2005-05-01 16:04:24 +00:00
Mark Kettenis 68b9939aec * fbsd-nat.c: Include <sys/sysctl.h>.
(fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
available.  Plug memory leak.  Fixes PR gdb/1922.
2005-05-01 10:06:12 +00:00
gdbadmin 5308fd89d5 *** empty log message *** 2005-05-01 00:00:33 +00:00
Daniel Jacobowitz 1690f9cfba * gdb.threads/staticthreads.exp: Override signal to check for hppa.
Slightly relax "sem_post" name checking.
2005-04-30 19:56:47 +00:00
Mark Kettenis 66aba65dca * solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB)
(TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK)
(TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS)
(TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
* solib.c (solib_data): New variable.
(solib_init, solib_ops): New functions.
(solib_open, solib_map_sections, free_so, update_solib_list)
(solib_add, clear_solib, solib_create_inferior_hook)
(in_solib_dynsym_resolve_code): Call architecture-dependent code
using solib_ops.
(_initialize_solib): Register SOLIB_DATA.
2005-04-30 12:59:57 +00:00
gdbadmin 9ea0d69021 *** empty log message *** 2005-04-30 00:00:06 +00:00
Kevin Buettner 35e08e031b Fix bugs related to inferior function calls on FRV using the FDPIC ABI. 2005-04-29 21:48:28 +00:00
Paul Gilliam 5ea106f753 2005-04-29 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/unload.exp: Use new shared library infrastructure.
2005-04-29 21:08:24 +00:00
Paul Gilliam bf7234cff8 2005-04-29 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/so-impl-ld.exp: Use new shared library
        infrastructure.
2005-04-29 20:45:32 +00:00
Corinna Vinschen 547b869acd * gdb.asm/asm-source.exp: Add h8300 to supported targets.
* gdb.asm/h8300.inc: New file.
2005-04-29 14:22:28 +00:00
Corinna Vinschen 862ba188ef * MAINTAINERS: Revert h8300 state to un-deleted.
* Makefile.in: Re-add h8300-tdep.o dependencies.
	* h8300-tdep.c: Slightly rearrange type definitions and functions.
	(struct frame_extra_info): Remove.
	(struct h8300_frame_cache): Replace locals with differently defined
	uses_fp member.
	(h8300_unwind_pc): Simplify.
	(h8300_unwind_sp): New function.
	(h8300_unwind_dummy_id): Simplify.
	(h8300_init_frame_cache): New function.
	(h8300_is_argument_spill): Use reworked defines for opcode scanning.
	(h8300_skip_prologue): Rewrite.
	(h8300_alloc_frame_cache): Remove.
	(h8300_analyze_frame_setup): Remove.
	(h8300_analyze_register_saves): Remove.
	(h8300_analyze_prologue): Rewrite.
	(h8300_frame_cache): Use h8300_init_frame_cache instead of
	h8300_alloc_frame_cache.  Use BINWORD instead of constant 4 to
	accomodate 16 bit mode.  Fix saved_sp and register offset evaluation.
	(h8300_frame_this_id): Correctly calculate this_id using saved stack
	pointer instead of base.
	(h8300_frame_prev_register): Drop needless braces.
	(h8300_frame_base_address): New function.
	(h8300_frame_base): New frame_base.
	(h8300_push_dummy_call): Return correct CFA value.
	(h8300h_extract_return_value): Fix 8 byte value handling.
	(h8300_use_struct_convention): New function.
	(h8300h_use_struct_convention): New function.
	(h8300h_store_return_value): Fix 8 byte value handling.
	(h8300_return_value): New function.
	(h8300h_return_value): New function.
	(h8300_extract_struct_value_address): Remove deprecated functionality.
	(h8300_push_dummy_code): Remove.
	(h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
	set_gdbarch_store_return_value calls by set_gdbarch_return_value.
	Remove calls to set_gdbarch_deprecated_fp_regnum,
	set_gdbarch_deprecated_extract_struct_value_address,
	set_gdbarch_deprecated_use_struct_convention and
	set_gdbarch_push_dummy_code.
	Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
	Slightly rearrange code.
2005-04-29 14:21:22 +00:00
Jim Blandy 3a913e29df * parse.c (namecopy): Change allocation conventions.
(namecopy_size): New variable.
(copy_name): Allocate namecopy using xrealloc, instead of assuming
it has adequate space allocated to it.
(parse_exp_1): Don't try to allocate space for namecopy here.
2005-04-29 00:04:06 +00:00
gdbadmin d42d3e2349 *** empty log message *** 2005-04-29 00:00:05 +00:00
Paul Gilliam f07e55f031 2005-04-19 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/shlib-call.exp: Change to use new shared library
        infrastructure.
2005-04-28 23:21:22 +00:00
Paul Gilliam 3cbba3d1cd 2005-04-28 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/pending.exp: Change to use new shared library
	 infrastructure.
2005-04-28 23:04:28 +00:00
Paul Gilliam ed6df20042 2005-04-28 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/nodebug.exp: Allow for compiling by IBM's xlc compiler
        and use test_compiler_info instead of gcc_compiled.
2005-04-28 22:31:33 +00:00
Eli Zaretskii a955ca7173 * cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
set, use symtab_to_fullname, instead of trying to do its job.  Use
	xstrprintf instead of malloc and sprintf.
2005-04-28 20:32:42 +00:00
Kevin Buettner 46845f5e98 * remote.c (init_remote_state): Eliminate use of
deprecated_register_bytes().
2005-04-28 18:15:16 +00:00
Andrew Cagney 8929e59d3f 2005-04-28 Andrew Cagney <cagney@gnu.org>
* valops.c (check_field): Make buffer a bfd_byte.
	* value.c (unpack_long, unpack_double, unpack_pointer)
	(unpack_field_as_long, modify_field): Ditto.
	* value.h: Update declarations.
2005-04-28 16:15:19 +00:00
Paul Brook cade9e545b 2005-04-28 Paul Brook <paul@codesourcery.com>
* exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
2005-04-28 14:07:54 +00:00
gdbadmin 135cba24d5 *** empty log message *** 2005-04-28 00:00:33 +00:00
Paul Gilliam 8c8f4ebeff 2005-04-27 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.base/annota1.exp : Deal with messages caused by breakpoints in
        shared objects being adjusted and update copyright.
2005-04-27 21:45:16 +00:00
Mark Kettenis ab576d8501 * solib-svr4.c (_initialize_svr4_solib)
[SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
svr4_legacy_fetch_link_map_offsets.
2005-04-27 20:51:52 +00:00
Mark Kettenis ccf00f2179 * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
(sh_gdbarch_init): Remove redundant prototype.
* sh-linux-tdep.c: New file.
* config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
Remove prototype.
(SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
* config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
solib-legacy.o.
* Makefile.in (sh-linux-tdep.o): New.
2005-04-27 20:48:25 +00:00
Daniel Jacobowitz 607fbc543c * ChangeLog: Correct some 2003-01-13 dates.
* gdb.base/sigbpt.exp, gdb.base/signull.exp, gdb.cp/bs15503.exp,
	gdb.cp/exception.exp, gdb.cp/userdef.cc, gdb.cp/userdef.exp,
	gdb.mi/mi-console.exp, gdb.mi/mi2-console.exp,
	gdb.trace/collection.exp, gdb.trace/passc-dyn.exp,
	gdb.trace/tfind.exp: Update copyright years.
2005-04-27 16:35:15 +00:00
Mark Kettenis 4b188b9f37 * solib-svr4.c: Update copyright year. Include "gdb_assert.h".
(SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
defined.
(legacy_fetch_link_map_offsets): Remove prototype.
(fetch_link_map_offsets_gdbarch_data): Remove.
(LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
(first_link_map_member, open_symbol_file_object, svr4_current_sos)
(svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
instead of SVR4_FETCH_LINK_MAP_OFFSETS.
(solib_svr4_data): New variable.
(struct solib_svr4_ops): New.
(solib_svr4_init): New fynction.
(legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
Remove functions.
(svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
using the new `struct solib_svr4_ops'.
(_initialize_svr4_solib): Replace registration of per-architecture
data.  Add temporary hack to set
svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
is set.
* Makefile.in (solib-svr4.o): Update dependencies.
2005-04-27 14:30:15 +00:00
Eli Zaretskii 18999be528 * gdb.texinfo (Backtrace): Describe backtraces with arguments that
were optimized away.
2005-04-27 13:02:15 +00:00
gdbadmin ebf40edefd *** empty log message *** 2005-04-27 00:00:03 +00:00
Mark Kettenis 4fabe3d5f0 * configure.tgt (*-*-freebsd*): Set gdb_osabi to
GDB_OSABI_FREEBSD_ELF.  Partial fix for PR gdb/1922.
2005-04-26 21:47:21 +00:00
Andrew Cagney 109c3e397e 2005-04-26 Andrew Cagney <cagney@gnu.org>
* remote.c (remote_open_1): Move "ex"'s declaration to where it is
	used.
	(remote_get_thread_local_address): Use throw_error, include a
	printed string.
	* linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
	* dwarf2loc.c (dwarf_expr_tls_address): Ditto.
	* cli/cli-script.c (script_from_file): Mark up throw_error message.
	* linespec.c (symtab_from_filename, decode_variable): Ditto.
2005-04-26 14:57:22 +00:00
Andrew Cagney 71fff37b08 2005-04-26 Andrew Cagney <cagney@gnu.org>
Rename 'struct exception' to 'struct gdb_exception'.
	* wrapper.c: Update.
	* varobj.c: Update.
	* tui/tui-interp.c: Update.
	* remote.c: Update.
	* mi/mi-main.c: Update.
	* mi/mi-interp.c: Update.
	* linux-thread-db.c: Update.
	* interps.h: Update.
	* interps.c: Update.
	* exceptions.h: Update.
	* exceptions.c: Update.
	* dwarf2loc.c: Update.
	* cli/cli-interp.c: Update.
	* cli/cli-script.c: Update.
	* breakpoint.c: Update.
2005-04-26 05:03:41 +00:00
gdbadmin 306ab1664b *** empty log message *** 2005-04-26 00:00:04 +00:00
Mark Mitchell 3aa6b2ca26 * event-loop.c (gdb_select): Program defensively. 2005-04-25 23:51:33 +00:00
Mark Mitchell 011825f07d * event-loop.c (gdb_assert.h): Include.
(<windows.h>): Include under Windows.
	(<io.h>): Likeiwse.
	(gdb_select): New function.
	(gdb_wait_for_event): Use it.
	* Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
2005-04-25 21:45:56 +00:00
gdbadmin fc41e3d163 *** empty log message *** 2005-04-25 00:00:05 +00:00
gdbadmin ac9c441462 *** empty log message *** 2005-04-24 00:00:33 +00:00
Mark Kettenis 0369e1963e * sparc64-tdep.c: Include "dwarf2-frame.h".
(sparc64_dwarf2_frame_init_reg): New function.
* Makefile.in (sparc64-tdep.o): Update dependencies.
2005-04-23 20:20:16 +00:00
Mark Kettenis 02a71ae806 * sparc64-tdep.c: Include "dwarf2-frame.h".
(sparc64_dwarf2_frame_init_reg): New function.
* Makefile.in (sparc64-tdep.o): Update dependencies.
2005-04-23 15:40:54 +00:00
gdbadmin 3a305d25c6 *** empty log message *** 2005-04-23 00:00:06 +00:00
David S. Miller 2033872674 2005-04-22 David S. Miller <davem@davemloft.net>
* sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
	sparc64_init_abi().
2005-04-22 23:08:06 +00:00
Mark Kettenis a07ff70c94 * ser-base.c: Include "ser-base.h" instead of "ser-unix.h". 2005-04-22 21:23:28 +00:00
Mark Mitchell 248697b2a7 * ser-base.c (<sys/time.h>): Include. 2005-04-22 20:32:01 +00:00
Mark Kettenis a86c5ab248 * ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value. 2005-04-22 20:29:14 +00:00
Mark Kettenis 1c04af1399 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
(LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
(LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
instructions.
* sparc64-linux-tdep.c: Reorder includes.  Tweak a few comments.
(LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc64_linux_rt_sigframe): Hardcode instructions.
* Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
2005-04-22 19:59:07 +00:00
Mark Kettenis 70f1dc74c3 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
(LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
(LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
instructions.
* sparc64-linux-tdep.c: Reorder includes.  Tweak a few comments.
(LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc64_linux_rt_sigframe): Hardcode instructions.
* Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
dependencies.
2005-04-22 19:52:21 +00:00
Mark Kettenis a33e488c68 * sparc-linux-tdep.c: Update copyright year.
(sparc32_linux_init_abi): Set skip_trampoline_code and
solib_svr4_fetch_link_map_offsets.  Set TDEP->plt_entry_size.
Don't set software_single_step and don't call
sparc32_sol2_init_abi.
* sparc64-linux-tdep.c: Update copyright year.
(sparc64_linux_init_abi): Set skip_trampoline_code and
solib_svr4_fetch_link_map_offsets.  Set TDEP->plt_entry_size.
Don't set software_single_step and don't call
sparc64_sol2_init_abi.
2005-04-22 19:06:23 +00:00
Eli Zaretskii 0abb7bc72f * gdb.texinfo (Remote configuration): Document "set/show
get-thread-local-storage-address".  Add cross-reference to the
	description of the qGetTLSAddr packet.
	(General Query Packets): Mention "set remote
	get-thread-local-storage-address" and add a reference to its
	description.
2005-04-22 13:09:30 +00:00
Eli Zaretskii 24ec834bce * remote-st.c (_initialize_remote_st2000): Remove the extraneous
"<command>" string from the call to add_com.
	* remote-sim.c (_initialize_remote_sim): Ditto.
	* remote-utils.c (_initialize_sr_support): Ditto.
	* remote-mips.c (_initialize_remote_mips): Ditto.
2005-04-22 12:49:27 +00:00
gdbadmin e8a59f69c0 *** empty log message *** 2005-04-22 00:00:33 +00:00
David S. Miller 81f726abf0 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): New function.
(sparc32_linux_sigframe, sparc32_linux_rt_sigframe): New tramp_frames.
	(sparc_linux_sigtramp_start, sparc32_linux_sigtramp_start,
	sparc32_linux_rt_sigtramp_start, sparc32_linux_sigtramp_p,
	sparc32_linux_sigtramp_frame_cache,
	sparc32_linux_sigtramp_frame_this_id,
	sparc32_linux_sigtramp_frame_prev_register,
	sparc32_linux_sigtramp_frame_unwind,
	sparc32_linux_sigtramp_frame_sniffer): Delete.
	(sparc32_linux_init_abi): Register new tramp unwinders.  Kill
	register of old sigtramp sniffer.
	* sparc64-linux-tdep.c (sparc64_linux_sigframe_init): New
	function.
	(sparc64_linux_rt_sigframe): New tramp frame.
	(sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
	sparc64_linux_sigtramp_frame_cache,
	sparc64_linux_sigtramp_frame_this_id,
	sparc64_linux_sigtramp_frame_prev_register,
	sparc64_linux_sigtramp_frame_unwind,
	sparc64_linux_sigtramp_frame_sniffer): Delete.
	(sparc64_linux_init_abi): Register new tramp unwinders.  Kill
	register of old sigtramp sniffer.
	Makefile.in (sparc64-linux-tdep.o): Update dependencies.
	(sparc-linux-tdep.o): Likewise.
2005-04-21 22:04:04 +00:00
Mark Kettenis 401e7faf6a * ser-base.c: Include "gdb_string.h".
* Makefile.in (ser-base.o): Update dependencies.
2005-04-21 21:23:25 +00:00
David S. Miller 78a0fd579c * sparc-linux-tdep.c (sparc32_linux_sigtramp_p): Fix
signal return stub symbol names, __restore and __restore_rt are
	the i386 symbol names not the sparc ones.
	(sparc32_linux_sigtramp_frame_cache): Document bits/sigcontext.h
	as where the offsets were obtained from.
	* sparc64-linux-tdep.c (LINUX64_RT_SIGTRAMP_INSN0,
	LINUX64_RT_SIGTRAMP_INSN1): New defines.
	(sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
	sparc64_linux_sigtramp_frame_cache,
	sparc64_linux_sigtramp_frame_this_id,
	sparc64_linux_sigtramp_frame_prev_register,
	sparc64_linux_sigtramp_frame_sniffer): New functions.
	(sparc64_linux_sigtramp_frame_unwind): New frame unwinder.
	(sparc64_linux_init_abi): Register sigtramp frame sniffer.
	* Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2005-04-21 19:38:20 +00:00
Mark Mitchell b450502905 * configure.ac: On MinGW, define USE_WIN32API and link with
-lws2_32.
	* ser-tcp.c (<winsock2.h>): Include, for Windows.
	(ETIMEDOUT): Define, for Windows.
	(ioctl): Likewise.
	(closesocket): Define, for POSIX.
	(net_open): Adjust for differences in socket functions between
	Windows and UNIX.
	(net_close): Likweise.
	(net_read_prim): New function.
	(net_write_prim): Likewise.
	(_initialize_ser_tcp): Initialize winsock.  Fill in read_prim and
	write_prim.
	* ser-unix.h (ser_unix_readcchar): Remove.
	(ser_unix_read_prim): Declare.
	(ser_unix_write_prim): Likewise.
	* ser-unix.c (generic_readchar): Move to ser-base.c.
	(ser_unix_wait_for): Likewise.
	(do_unix_readchar): Likewise.
	(ser_unix_readchar): Likewise.
	(_initialize_ser_hardwire): Initialize read_prim and write_prim.
	(ser_unix_read_prim): New function.
	(ser_unix_write_prim): Likewise.
	* ser-base.h (generic_readchar): Declare.
	(ser_base_readchar): Likewise.
	* ser-base.c (<winsock2.h>): Include, for windows.
	(fd_event): Use the read primitive specified by the serial
	interface.
	(ser_base_wait_for): Moved from ser-unix.c
	(do_ser_base_read_char): Likewise.
	(generic_readchar): Likewise.
	(ser_base_readchar): Likewise.
	(ser_base_write): Use the write primitive specified by the serial
	interface.
	* ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
	ser_unix_readchar.  Initialize read_prim and write_prim.
	* serial.c (struct serial_ops): Add read_prim and write_prim.
	* configure: Regenerate.
2005-04-21 05:34:33 +00:00
gdbadmin a3880ba4e6 *** empty log message *** 2005-04-21 00:00:04 +00:00
gdbadmin 052060fc5a *** empty log message *** 2005-04-20 00:00:05 +00:00
Ben Elliston 8470e92791 * c-lang.c (c_create_fundamental_type): Comment fix. 2005-04-19 05:58:24 +00:00
gdbadmin dd315410f6 *** empty log message *** 2005-04-19 00:00:02 +00:00
Michael Snyder ad35589a2b dos2unix 2005-04-18 23:37:51 +00:00
Michael Snyder 9cacebf50f 2005-04-18 Michael Snyder <msnyder@redhat.com>
* mn10300-tdep.c: Assimilate code from mn10300-prologue.c.
	* mn10300-prologue.c: Remove.
	* mn10300-tdep.h: Add enums from mn10300-prologue.c.
	Remove prototypes.
	* config/mn10300/mn10300.mt: Remove mn10300-prologue module.
2005-04-18 23:15:00 +00:00
Michael Snyder 0cc748c077 2005-04-18 Michael Snyder <msnyder@redhat.com>
* config/mn10300/mn10300.mt: Add mn10300-prologue module.
2005-04-18 19:38:17 +00:00
Michael Snyder 7166c4a9e8 2005-04-18 Michael Snyder <msnyder@redhat.com>
* ia64-tdep.c (ia64_get_dyn_info_list): Fix indent.
2005-04-18 19:34:19 +00:00
Nick Roberts 0f061b69fb (Backtrace): Describe 'bt full'. 2005-04-18 13:30:11 +00:00
Nick Roberts 6f61acb103 *** empty log message *** 2005-04-18 13:28:22 +00:00
gdbadmin 9630858955 *** empty log message *** 2005-04-18 00:00:02 +00:00
Mark Kettenis 235c4ffdf2 * config/nm-bsd.h: Remove file. 2005-04-17 22:22:47 +00:00
Mark Kettenis 57cd0b542e * hppabsd-nat.c: Update copyright year. Include "target.h" and
"inf-ptrace.h".
(hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
made static.
(hppabsd_store_registers): Renamed from store_inferior_registers;
made static.
(_initialize_hppabsd_nat): New function and prototype.
* config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o.  Add inf-ptrace.o.
(NAT_FILE): Remove.
* Makefile.in (hppabsd-nat.o): Update dependencies.
2005-04-17 22:20:20 +00:00
Mark Kettenis f17882ade0 * pa64solib.c, pa64solib.h: Remove files.
* Makefile.in (pa64solib_h): Remove variable
(pa64solib.o): Remove dependency.
2005-04-17 10:24:15 +00:00
gdbadmin 1d91d51d72 *** empty log message *** 2005-04-17 00:00:02 +00:00
Mark Kettenis 65d034bc60 * ppcobsd-nat.c: Update copyright year. Include "inf-ptrace.h".
(ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
made static.
(ppcobsd_store_registers): Renamed from store_inferior_registers;
made static.
(_initialize_ppcobsd_nat): Construct and add target vector.
* config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o.  Add inf-ptrace.o.
(NAT_FILE): Remove.
* Makefile.in (ppcobsd-nat.o): Update dependencies.
2005-04-16 22:12:09 +00:00
Mark Kettenis 5a49dfd0ac * ppcobsd-tdep.c: Include "floatformat.h".
(ppcobsd_init_abi): Set long_double_bit and long_double_format.
* Makefile.in (ppcobsd-tdep.o): Update dependencies.
2005-04-16 21:37:02 +00:00
Mark Kettenis 5d6210f043 * ppcobsd-tdep.c: Fix typo in comment.
(_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
bfd_arch_rs6000 too.
2005-04-16 21:08:21 +00:00
Nick Roberts 6b5e8c0119 (Mode Options): Fix typo.
(GDB/MI): Describe how to invoke GDB/MI.
2005-04-16 20:56:20 +00:00
Nick Roberts 9d59903aa5 *** empty log message *** 2005-04-16 20:54:31 +00:00
Eli Zaretskii c45da7e67c (Debugging Output): Document "set/show debug
solib-frv".  Fix "set/show debugvarobj".
	(Set Breaks): Add index entry for "hardware breakpoints".
	(Renesas ICE): Document "e7000", "ftplogin", "ftpload", "drain",
	and "set/show usehardbreakpoints".
	(MIPS Embedded): Document "se/show syn-garbage-limit", "set/show
	monitor-prompt", "set/show monitor-warnings", "pmon".
	(ARM): Document "rdilogfile", "rdilogenable", "set/show
	rdiromatzero", "set/show rdiheartbeat".
	(PowerPC): Document SDS-specific commands "set/show sdstimeout",
	"sds".
	(Embedded Processors): Document the "sim" command.
	(Remote): Document the "remote" command.
	(DJGPP Native): Document the "info serial" command.
	(Threads): Document "maint info sol-threads".
	(Files): Document "nosharedlibrary", "add-symbol-file-from-memory".
	(Set Breaks): Improve indexing.
	(Command Syntax): Add a reference to dont-repeat.
	(Define): Document "dont-repeat".
	(TUI Commands): Document "tabset".
	(WinCE): New subsection.  Document "set/show remotedirectory",
	"set/show remoteupload", "set/show remoteaddhost".
2005-04-16 14:27:50 +00:00
Eli Zaretskii ba04e06340 (M32R/D): Document "sdireset", "sdistatus", "debug_chaos",
"use_debug_dma",
	"use_mon_code", "use_ib_break", "use_dbt_break".
	(Debugging Output): Improve wording.
	(Set Breaks): Add index entry for "hardware breakpoints".
	(Renesas ICE): Document "e7000", "ftplogin", "ftpload", "drain",
	and "set/show usehardbreakpoints".
	(MIPS Embedded): Document "se/show syn-garbage-limit", "set/show
	monitor-prompt", "set/show monitor-warnings", "pmon".
2005-04-16 12:03:31 +00:00
Eli Zaretskii a5adf40fde Fix typos. 2005-04-16 09:14:28 +00:00
Eli Zaretskii 721c265195 * gdb.texinfo (OS Information): Renamed from Auxiliary Vector; all
references changed.  Add descriptgion of "info udot".
	(Files): Document "set/show stop-on-solib-events".
	(M32R/D): Document "set/show download-path", "set/show
	board-address", "set/show server-address", "upload", "tload".
	(Maintenance Commands): Improve indexing.
	(Target Commands): Document "set/show hash", "set/show debug
	monitor".
	(SVR4 Process Information): Document "info pidlist" and "info
	meminfo".  Document "set/show procfs-tarce" and "set/show
	procfs-file".  Document "proc-trace-*" and "proc-untrace-*".
	(Symbols, The Print Command with Objective-C): Improve indexing.
	(Objective-C): Add references to "info classes" and "info
	selectors".
	(Debugging Output): Improve wording.
2005-04-16 08:44:34 +00:00
gdbadmin 02e2292ab3 *** empty log message *** 2005-04-16 00:00:33 +00:00
Kevin Buettner 52c2ee5695 Delete unused variables. 2005-04-15 21:16:09 +00:00
Kevin Buettner 571dd61707 * remote.c (remote_get_thread_local_address): Throw a more
meaningful exception when remote target doesn't have support
	for the qGetTLSAddr packet.
2005-04-15 20:55:56 +00:00
Kevin Buettner 3869131802 Add remote TLS support. 2005-04-15 19:58:59 +00:00
Kevin Buettner 3ed07be458 * remote.c (add_packet_config_cmd): Delete unused variables. 2005-04-15 17:44:53 +00:00
Kevin Buettner c9365369a6 Eliminate calls to deprecated_show_value_hack(). This also eliminates the
printing of redundant information.
2005-04-15 17:13:23 +00:00
Eli Zaretskii a64548eaba (MIPS): Improve documentation of heuristic-fence-post. Document
"set/show mips abi", "set/show mips saved-gpreg-size", "set/show
	mips stack-arg-size", "set/show mips mask-address", "set/show mips
	remote-mips64-transfers-32bit-regs", "set/show debug mips".
	(ARM): Document ARM-specific commands.
	(AVR): New section.  Document "info io_registers".
	(CRIS): New section.  Document "set/show cris-version" and
	"set/show cris-dwarf2-cfi".
	(HPPA): New section.  Document "set/show debug hppa" and "maint
	print unwind".
	(Netrino): New subsection.  Document "set/show debug nto-debug".
	(Super-H): New section.  Document the "regs" command.
2005-04-15 16:43:54 +00:00
Eli Zaretskii e2f4edfd00 * gdb.texinfo (ARM): Document ARM-specific commands. 2005-04-15 12:37:57 +00:00
Eli Zaretskii da316a69fe *gdb.texinfo (Debugging Output): Document "set/show debug lin-lwp". 2005-04-15 12:09:49 +00:00
Eli Zaretskii 14d6dd6880 * gdb.texinfo (Hurd Native): New subsection, documents
Hurd-specific commands.
2005-04-15 11:53:52 +00:00
Corinna Vinschen c30dc7000d * MAINTAINERS: Change sh64-elf state to non-broken.
* Makefile.in: Fix dependencies for sh64-tdep.o.
	* configure.tgt: Add sh64-*-elf case.
	* sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
	* sh64-tdep.c: Rework to replace all deprecated mechanisms with
	modern methods.
	* config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
	* config/sh/sh64.mt: Resurrect.
2005-04-15 08:01:15 +00:00
Kazuhiro Inaoka 86fc41d1fe 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
* regformats/reg-m32r.dat: New file.
2005-04-15 00:28:03 +00:00
Kazuhiro Inaoka 7cfbc4a0f8 2005-04-15 Ke Sakamoto <sakamoto.kei@renesas.com>
* Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
	* configure.srv: Add m32r*-*-linux*.
	* linux-m32r-low.c: New file.
2005-04-15 00:24:51 +00:00
gdbadmin d58bcb2543 *** empty log message *** 2005-04-15 00:00:32 +00:00
Daniel Jacobowitz 57bf0e56f8 * lib/gdb.exp (gdb_compile): Handle shlib=.
(gdb_compile_shlib): New function.
2005-04-14 19:06:19 +00:00
Daniel Jacobowitz 28e97307c8 * arm-tdep.c (fp_model_strings): Add terminating NULL.
(arm_abi_strings, arm_abi_global, arm_abi_string): New
	variables.
	(arm_extract_return_value, arm_store_return_value): Don't use
	arm_get_fp_model.
	(arm_get_fp_model, arm_set_fp): Delete.
	(arm_update_current_architecture): New function.
	(set_fp_model_sfunc): Call arm_update_current_architecture.
	(show_fp_model): Update output messages.
	(arm_set_abi, arm_show_abi): New functions.
	(arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
	(arm_gdbarch_init): Infer the object's ABI separately from its
	OSABI.  Search for a matching architecture.  Honor the global
	ABI and FPU settings.  Set floating point format based on the
	architecture.
	(arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
	Delete.
	(_initialize_arm_tdep): Don't call gdbarch_register_osabi.
	Create "arm set abi" command.
	* arm-tdep.h (arm_get_fp_model): Delete prototype.
	(enum arm_abi_kind): New type.
	(struct gdbarch_tdep): Add arm_abi field.
	* arm-linux-tdep.c (arm_linux_init_abi): Only override
	tdep->fp_model if it is ARM_FLOAT_AUTO.
	* armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
	(arm_netbsd_elf_init_abi): Likewise.
	* defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
	* osabi.c (gdb_osabi_name): Likewise.
2005-04-14 18:40:26 +00:00
gdbadmin 44f7c3414d *** empty log message *** 2005-04-14 00:00:03 +00:00
gdbadmin 18d89c4cd1 *** empty log message *** 2005-04-13 00:00:35 +00:00
Paul Gilliam 9b59379032 2005-04-12 Paul Gilliam <pgilliam@us.ibm.com>
* lib/gdb.exp (test_compiler_info): Give argument a default value.
2005-04-12 20:14:35 +00:00
gdbadmin c3af963cda *** empty log message *** 2005-04-12 00:00:33 +00:00
Daniel Jacobowitz 9494c6a5dc gdb/
* config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
gdb/testsuite/
	* Makefile.in (ALL_SUBDIRS): Replace gdb.gdbserver with
	gdb.server.
	* configure.ac: Likewise.
	* configure: Regenerated.
	* gdb.gdbserver/Makefile.in: Moved to...
	* gdb.server/Makefile.in: ... here.
	* gdb.gdbserver/server.c: Moved to...
	* gdb.server/server.c: ... here.
	* gdb.gdbserver/server-run.exp: Moved to...
	* gdb.server/server-run.exp: ... here.
2005-04-11 14:13:14 +00:00
gdbadmin 218755fe84 *** empty log message *** 2005-04-11 00:00:32 +00:00
Eli Zaretskii 21655b0344 Update copyright years. 2005-04-10 21:20:27 +00:00
Mark Kettenis bdbcb8b4b7 * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
floating-point registers.
(ppc_collect_fpregset): Likewise.  Fix collection of registers.
2005-04-10 21:14:37 +00:00
gdbadmin d6119f0755 *** empty log message *** 2005-04-10 00:00:02 +00:00
Eli Zaretskii 9c16f35ad5 * gdb.texinfo (Print Settings): Document "set/show print
pascal_static-members", "set print repeats", "show print
	null-stop".  Improve indexing.  Fix documentation of "set print
	union".
	(Pascal): New section.
	(Supported languages): Rename from "Support"; all references
	updated.  Add a menu item for Pascal.
	(Numbers): Document "set radix.
	(Screen Size): Document "set/show pagination".
	(MIPS Embedded): Remove "set processor" documentation.
	(Remote configuration): Document "set/show X/P/Z-packet",
	"set/show read-aux-vector-packet", "set/show remote
	symbol-lookup-packet", "set/show remote verbose-resume-packet",
	"set/show remoteaddresssize", "set/show remotebaud", "set/show
	remotedebug", "set/show remotebreak", "set/show remotedevice",
	"set/show remotelogfile".
	(Auxiliary Vector): Add reference to the description of the
	read-aux-vector-packet setting.
	(Set Watchpoints): Add a cross-reference to "set remote
	hardware-breakpoint-limit".
	(General Query Packets): Add indexing of requests and
	cross-references to related commands in "Remote configuration".
	(File-I/O Overview, The system call): Fix wording and typos.
	(Thread Stops): Add index entries.
	(Continuing and Stepping): Document "show step-mode".
	(i386): New node.  Document "set/show struct-convention".
	(Files): Document "show trust-readonly-sections".
	(Calling): Document "set/show unwindonsignal".
	(Messages/Warnings): Add index entries.
	(Maintenance Commands): Document "set/show watchdog".
	(Annotations Overview): Document "show annotate".
	(Set Watchpoints): Add index entries.
	(Symbols): Fix doc of case-sensitive.
	(ABI): Document "show coerce-float-to-double".
	(Convenience Vars, Help): Improve indexing.
	(Machine Code): Document "show disassembly-flavor".
	(Debugging C plus plus): Document "show overload-resolution".
	(Value History, Signaling): Add index entries.

	* gdb.texinfo (Show): Move @kindex entries to their proper places.
	(Processes): Fix wording.
	(History, List, Logging output, Define, Symbols, Print Settings):
	Improve indexing.
2005-04-09 15:37:20 +00:00
Mark Kettenis 18b2ae85c4 * ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
and "tramp-frame.h".
(ppcobsd_sigtramp_cache_init): New function.
(ppcobsd_sigtramp): New variable.
(ppcobsd_init_abi): Prepend signal trampoline unwinder.
* Makefile.in (ppcobsd-tdep.o): Update dependencies.
2005-04-09 11:39:38 +00:00
Andrew Cagney f0885a038a Dropping mi. 2005-04-09 02:36:06 +00:00
Andrew Cagney 06e819e3ca 2005-04-08 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
	Nasser have decided to step back from GDB/MI.
2005-04-09 00:29:37 +00:00
gdbadmin ae70735a18 *** empty log message *** 2005-04-09 00:00:07 +00:00
Daniel Jacobowitz 6f8eac0e51 gdb/testsuite/
* Makefile.in (ALL_SUBDIRS): Add gdb.gdbserver.
	* configure.ac: Create gdb.gdbserver/Makefile.
	* configure: Regenerated.
	* lib/gdbserver-support.exp: New file, derived from
	config/gdbserver.exp.
	* config/gdbserver.exp: Use gdbserver-support.exp.
	* gdb.gdbserver/Makefile.in: New file.
	* gdb.gdbserver/server.c: New file.
	* gdb.gdbserver/server-run.exp: New file.
gdb/
	* config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
2005-04-08 12:57:00 +00:00
Daniel Jacobowitz 0228dfb97d * dwarf2-frame.c (struct dwarf2_frame_cache): New field
undefined_retaddr.
	(dwarf2_frame_cache): Initialize undefined_retaddr.
	(dwarf2_frame_this_id): Return an invalid frame ID if
	undefined_retaddr.
2005-04-08 12:10:21 +00:00
gdbadmin 5b43a50348 *** empty log message *** 2005-04-08 00:00:02 +00:00
gdbadmin 7a46909329 *** empty log message *** 2005-04-07 00:00:33 +00:00
Paul Gilliam 6e87504dd4 test_compiler_info: Return compiler_info if no arguments are given. 2005-04-06 21:38:48 +00:00
Jim Blandy 21b4b2f28c Move construction of IA-32 vector types to i386-tdep.c.
* gdbtypes.c (build_builtin_type_vec64i,
build_builtin_type_vec128i): Delete functions.
(builtin_type_vec64i, builtin_type_vec128i): Delete variables.
(build_gdbtypes): Don't initialize them.
(_initialize_gdbtypes): Don't register GDBARCH swap entries for
them.
* gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
declarations.
(builtin_type_v2_float, builtin_type_v2_int32,
builtin_type_v4_int16, builtin_type_v8_int8,
builtin_type_v2_double, builtin_type_v4_float,
builtin_type_v2_int64, builtin_type_v4_int32,
builtin_type_v8_int16, builtin_type_v16_int8): Add extern
declarations.
* i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
(i386_build_mmx_type, i386_build_sse_type): New functions.
(i386_register_type): Call them, rather than referring to
builtin_type_vec64i and builtin_type_vec128i.
2005-04-06 17:01:25 +00:00
gdbadmin 28854a1ee3 *** empty log message *** 2005-04-06 00:00:37 +00:00
gdbadmin 87a89b235f *** empty log message *** 2005-04-05 00:00:33 +00:00
gdbadmin c79ce99e72 *** empty log message *** 2005-04-04 00:00:02 +00:00
gdbadmin fbca329c4d *** empty log message *** 2005-04-03 00:00:04 +00:00
Daniel Jacobowitz 37c4d19728 * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
big-endian correction code to not offset 32-bit registers.
	Locate floating point registers correctly.
2005-04-02 22:59:34 +00:00
Eli Zaretskii a8f24a3552 (Targets): Document "set/show architecture". Remove
redundant index entry for "target" command.
	(Backtrace): Add index entries.
	(Symbols, Fortran): Document the "set case-sensitive" command.
	(DJGPP Native): Document "set com1base", "set com1irq", etc.
	(Print Settings): Add index entry for "set demangle-style".
	(Target Commands): Document "set download-write-size".
	(Debugging Output): Document "set exec-done-display".
2005-04-02 22:24:18 +00:00
Andreas Schwab 02dfa7debf Fix typo. 2005-04-02 21:11:20 +00:00
Mark Kettenis 7509373f99 * main.c: Update copyright year.
(captured_main): Avois using strcpy and strcat.
2005-04-02 20:25:22 +00:00
Eli Zaretskii 09d4efe17b (Files): Fix the name and documentation of
add-shared-symbol-files.  Document its alias assf.  Update the
	list of OSs where GDB supports shared libraries.  Fix markup.
	(Continuing and Stepping): Add reference to @var{location} in the
	text.
	(Dump/Restore Files): Fix reference to @{filename}.
	(Help): Fix wording.
	(Attach): Ditto.
	(Set Watchpoints): Ditto.
	(Backtrace): Remove redundant index entries.  Improve index
	entries.
	(Delete Breaks): Fix wording.
	(Memory): Document the compare-sections command.
	(Memory Region Attributes): Improve wording.
	(Disabling): Improve wording.
	(Fortran): New subsection.  Document the "info common" command.
	(Help): Document aliases "info copying" and "info warranty".
	(Caching Remote Data): New section.  Document the "set/show
	remotecache" and "info dcache" commands.
	(Show): Fix wording of the documentation of the "set
	extension-language" command.
	(Signals): Add index entry for "info handle".
	(Memory Region Attributes): Fix punctuation.
	(Symbols): Change the arg name to "location" and refer to it in
	the text.  Fix wording of "info types" doc.
	(Threads): Fix usage of @enumerate @item's.
	(Listing Tracepoints): Add index entry for "info tp".
	(Set Watchpoints): Add xref to "info break" description.
	(Macros): Add an index entry for "macro exp1".  Document the
	"macro list" command.
	(Maintenance Commands): Document "flushregs", "maint agent",
	"maint check-symtabs", "maint cplus", "maint demangle", "maint
	deprecate", "maint undeprecate", "maint dump-me", "maint packet",
	"maint print architecture", "maint print objfiles", "maint print
	statistics", "maint print type", "maint show-debug-regs", "maint
	space", "maint time", and "maint translate-address".
	(Connecting): Document the "monitor" command.
	(Annotations Overview): Describe the "set annotate" command.
2005-04-02 17:48:36 +00:00
Eli Zaretskii 82f2d80296 (Set Watchpoints): Document can-use-hw-watchpoints.
Rearrange index entries and improve wording about support for
hardware watchpoints.
2005-04-02 08:32:31 +00:00
Michael Snyder 0c98cc2b81 2005-04-01 Michael Snyder <msnyder@redhat.com>
* dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
	computing this_id if there are no dummy frames on the stack.
2005-04-02 00:45:52 +00:00
Michael Snyder 1fb1ca2782 2005-04-01 Michael Snyder <msnyder@redhat.com>
* mn10300-tdep.c (mn10300_frame_unwind_cache): Use
	find_partial_func instead of unwind_pc to identify frame.
	(mn10300_push_dummy_call): Handle struct args, struct_return.
2005-04-02 00:40:51 +00:00
Michael Snyder 9b3c083c83 2005-04-01 Michael Snyder <msnyder@redhat.com>
* mn10300-prologue.c (set_movm_offsets): Don't test variable
	before setting it.
	* mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
	instead of skip_prologue_using_sal.
2005-04-02 00:08:14 +00:00
gdbadmin ab53d7c756 *** empty log message *** 2005-04-02 00:00:39 +00:00
Paul Gilliam d1779be45e * gdb.arch/altivec-abi.exp: Check for compiler and set
use altivec' flag accordingly.
        * gdb.arch/altivec-regs.exp: Likewise.
2005-04-01 18:43:22 +00:00
gdbadmin abb7c803b5 *** empty log message *** 2005-04-01 00:00:03 +00:00
Kevin Buettner 186993b458 Add TLS load module support for FRV. 2005-03-31 20:39:14 +00:00
Kevin Buettner b275693032 * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
* gdbarch.c, gdbarch.h: Regenerate.
	* dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
	address and pass this address, instead of the objfile address, to
	target_get_thread_local_address().
	* linux-thread-db.c (thread_db_get_thread_local_address): Change
	second parameter from type ``struct objfile *'' to CORE_ADDR.  Do
	not call svr4_fetch_objfile_link_map() to fetch the load module
	address.
	* target.h (struct target_ops): Change second parameter of
	``to_get_thread_local_address'' from ``struct objfile *'' to
	``CORE_ADDR''.
	* alpha-linux-tdep.c (solib-svr4.h): Include.
	(alpha_linux_init_abi): Register TLS load module fetcher.
	* amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
	* hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
	* i386-linux-tdep.c (i386_linux_init_abi): Likewise.
	* ia64-linux-tdep.c (solib-svr4.h): Include.
	(ia64_linux_init_abi): Register TLS load module fetcher.
	* m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
	* m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
	* mips-linux-tdep.c (mips_linux_init_abi): Likewise.
	* s390-tdep.c (s390_gdbarch_init): Likewise.
	* sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
	* sparc64-linux-tdep.c (solib-svr4.h): Include.
	(sparc64_linux_init_abi): Register TLS load module fetcher.
	* Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
	(sparc-linux-tdep.o): Update dependencies.
2005-03-31 19:58:26 +00:00
gdbadmin 7e847698dc *** empty log message *** 2005-03-31 00:00:03 +00:00
gdbadmin 9ac9941eec *** empty log message *** 2005-03-30 00:00:33 +00:00
Daniel Jacobowitz 8875030493 * c-valprint.c (c_value_print): Fix up some formatting. Use
check_typedef.
testsuite/
	* gdb.base/ptr-typedef.exp, gdb.base/ptr-typedef.c: New files.
2005-03-29 20:37:19 +00:00
Daniel Jacobowitz 15b6c49f14 Missed part of earlier commit. 2005-03-29 20:34:57 +00:00
Daniel Jacobowitz adb8a87cfd * arm-linux-nat.c (store_register, store_regs): Handle
ARM_PS_REGNUM.
2005-03-29 16:58:23 +00:00
Daniel Jacobowitz 498b1f8763 * arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
(arm_linux_thumb_le_breakpoint): New.  Update comments.
	(arm_linux_init_abi): Set Thumb breakpoints also.
2005-03-29 16:57:30 +00:00
Daniel Jacobowitz 842e1f1ec4 * Makefile.in (arm-tdep.o): Update dependencies.
* arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
	(arm_gdbarch_init): Register dwarf2_frame_sniffer.
2005-03-29 16:56:40 +00:00
gdbadmin e78c98404f *** empty log message *** 2005-03-29 00:00:32 +00:00
Joel Brobecker 6d1eba4cf3 * irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
register value to be incorrectly written in the regcache.
        (fill_fpregset): Fix bug that caused the FSR register value
        to be incorrectly read from the regcache.
2005-03-28 22:31:55 +00:00
Daniel Jacobowitz fce5e38603 * remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
arm_pc_is_thumb_dummy.
2005-03-28 19:51:10 +00:00
Mark Kettenis 8391b9b130 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
StackGhost.
2005-03-28 15:29:37 +00:00
Mark Kettenis f700a3641b * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
Handle StackGhost in 64-bit code.
* sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
2005-03-28 13:42:49 +00:00
gdbadmin 6770045840 *** empty log message *** 2005-03-28 00:00:04 +00:00
Christopher Faylor 8da8e0b3f3 * win32-nat.c (handle_exception): Treat win32 routines which check for valid
addresses as "special" and don't stop when a SEGV is detected.
(get_child_debug_event): Properly flag exception as unhandled.
2005-03-27 05:21:12 +00:00
Andreas Schwab f3fb768d95 * gdb.base/bigcore.c (main): Add missing mode argument in open
call.
2005-03-27 00:18:55 +00:00
gdbadmin a507073b25 *** empty log message *** 2005-03-27 00:00:04 +00:00
Daniel Jacobowitz 5e5100cb9c * cp-support.c (cp_class_name_from_physname): Rewrite.
(unqualified_name_from_comp): New function, broken out from
	method_name_from_physname.  Correct handling for typed names
	and templates.
	(method_name_from_physname): Use unqualified_name_from_comp.
	(cp_func_name, remove_params): Move earlier in the file.  Add
	better comments.  Use the component tree to parse the name.
	(_initialize_cp_support): Remove stray whitespace.
2005-03-26 21:56:46 +00:00
Mark Kettenis dc6a2ca431 * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ. 2005-03-26 16:50:45 +00:00
Mark Kettenis 59bb1042a1 * inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code.
Callapse HAVE_TERMIO and HAVE_SGTTY.
2005-03-26 16:32:57 +00:00
Mark Kettenis a77f4086a1 * dwarf2-frame.c (execute_cfa_program): Implement
DW_CFA_GNU_window_save.
2005-03-26 15:20:42 +00:00
gdbadmin 9d2f1968d4 *** empty log message *** 2005-03-26 00:00:36 +00:00
Mark Kettenis bac6b01281 * config/sparc/nbsd64.mh (NAT_FILE): Remove. 2005-03-25 22:28:53 +00:00
Mark Kettenis 4d6c7108d5 * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o. 2005-03-25 22:25:31 +00:00
Daniel Jacobowitz 4bf7064ce9 * arm-tdep.c (target_is_thumb, caller_is_thumb)
(arm_pc_is_thumb_dummy): Remove.
	(arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
2005-03-25 21:28:05 +00:00
Anthony Green 170cd118a9 Fix memset thinkos. 2005-03-25 20:40:02 +00:00
Daniel Jacobowitz 7e813ac51f * lib/mi-support.exp (mi_gdb_load): Use /tmp for gdbserver
downloads.
	* config/gdbserver.exp (gdb_load): Likewise.
2005-03-25 20:38:55 +00:00
Mark Mitchell dd5da072a1 * ser-base.c (ser_unix_write): Rename to ...
(ser_base_write): ... this.
	(ser_unix_nop_flush_output): Rename to ...
	(ser_base_flush_output): ... this.
	(ser_unix_flush_input): Rename to ...
	(ser_base_flush_input): ... this.
	(ser_unix_nop_send_break): Rename to ...
	(ser_base_send_break): ... this.
	(ser_unix_nop_drain_output): Rename to ...
	(ser_base_drain_output): ... this.
	(ser_unix_nop_raw): Rename to ...
	(ser_base_raw): ... this.
	(ser_unix_nop_get_tty_state): Rename to ...
	(ser_base_set_tty_state): ... this.
	(ser_unix_nop_noflush_set_tty_state): Rename to ...
	(ser_base_noflush_set_tty_state): ... this.
	(ser_unix_nop_print_tty_state): Rename to ...
	(ser_base_print_tty_state): ... this.
	(ser_unix_nop_setbaudrate): Rename to ...
	(ser_base_setbaudrate): ... this.
	(ser_unix_nop_setstopbits): Rename to ...
	(ser_base_setstopbits): ... this.
	(ser_unix_async): Rename to ...
	(ser_base_async): ... this.
	* ser-base.h (ser_unix_write): Rename to ...
	(ser_base_write): ... this.
	(ser_unix_nop_flush_output): Rename to ...
	(ser_base_flush_output): ... this.
	(ser_unix_flush_input): Rename to ...
	(ser_base_flush_input): ... this.
	(ser_unix_nop_send_break): Rename to ...
	(ser_base_send_break): ... this.
	(ser_unix_nop_drain_output): Rename to ...
	(ser_base_drain_output): ... this.
	(ser_unix_nop_raw): Rename to ...
	(ser_base_raw): ... this.
	(ser_unix_nop_get_tty_state): Rename to ...
	(ser_base_set_tty_state): ... this.
	(ser_unix_nop_noflush_set_tty_state): Rename to ...
	(ser_base_noflush_set_tty_state): ... this.
	(ser_unix_nop_print_tty_state): Rename to ...
	(ser_base_print_tty_state): ... this.
	(ser_unix_nop_setbaudrate): Rename to ...
	(ser_base_setbaudrate): ... this.
	(ser_unix_nop_setstopbits): Rename to ...
	(ser_base_setstopbits): ... this.
	(ser_unix_async): Rename to ...
	(ser_base_async): ... this.
	* ser-pipe.c (_initialize_ser_pipe): Update accordingly.
	* ser-tcp.c (_initialize_ser_tcp): Likewise.
	* ser-unix.c (hardwire_flush_input): Likewise.
	(_initializer_ser_hardwire): Likewise.
2005-03-25 20:06:36 +00:00
Mark Mitchell 3eb25fda5d * Makefile.in (SFILES): Add ser-base.c.
(ser_base_h): New variable.
	(ser-base.o): New target.
	(ser-pipe.o): Depend on $(ser_base_h).
	(ser-tcp.o): Likewise.
	(ser-unix.o): Likewise.  Do not depend on $(event_loop_h).
	* configure.ac (SER_HARDWIRE): Include ser-base.o where
	appropriate.
	* ser-base.c: New file.
	(push_event): Move from ser-unix.c.
	(fd_event): Likewise.
	(reschedule): Likewise.
	(ser_unix_write): Likewise.
	(ser_unix_nop_flush_output): Likewise.
	(ser_unix_flush_input): Likewise.
	(ser_unix_nop_send_break): Likewise.
	(ser_unix_nop_drain_output): Likewise.
	(ser_unix_nop_raw): Likewise.
	(ser_unix_nop_get_tty_state): Likewise.
	(ser_unix_nop_set_tty_state): Likewise.
	(ser_unix_nop_noflush_set_tty_state): Likewise.
	(ser_unix_nop_print_tty_state): Likewise.
	(ser_unix_nop_setbaudrate): Likewise.
	(ser_unix_nop_setstopbits): Likewise.
	(ser_unix_async): Likewise.
	* ser-base.h: New file.
	* ser-pipe.c (ser-base.h): Include it.
	* ser-tcp.c (ser-base.h): Likewise.
	* ser-unix.h (ser_unix_nop_flush_output): Remove.
	(ser_unix_flush_input): Likewise.
	(ser_unix_nop_send_break): Likewise.
	(ser_unix_nop_raw): Likewise.
	(ser_unix_nop_get_tty_state): Likewise.
	(ser_unix_nop_set_tty_state): Likewise.
	(ser_unix_nop_print_tty_state): Likewise.
	(ser_unix_nop_noflush_set_tty_state): Likewise.
	(ser_unix_nop_setbaudrate): Likewise.
	(ser_unix_nop_setstopbits): Likewise.
	(ser_unix_nop_drain_output): Likewise.
	(ser_unix_wait_for): Likewise.
	(ser_unix_write): Likewise.
	(ser_unix_async): Likewise.
	* ser-unix.c (event-loop.h): Do not include it.
	(push_event): Move to ser-base.c.
	(fd_event): Likewise.
	(reschedule): Likewise.
	(ser_unix_write): Likewise.
	(ser_unix_nop_flush_output): Likewise.
	(ser_unix_flush_input): Likewise.
	(ser_unix_nop_send_break): Likewise.
	(ser_unix_nop_drain_output): Likewise.
	(ser_unix_nop_raw): Likewise.
	(ser_unix_nop_get_tty_state): Likewise.
	(ser_unix_nop_set_tty_state): Likewise.
	(ser_unix_nop_noflush_set_tty_state): Likewise.
	(ser_unix_nop_print_tty_state): Likewise.
	(ser_unix_nop_setbaudrate): Likewise.
	(ser_unix_nop_setstopbits): Likewise.
	(ser_unix_async): Likewise.
	(ser_unix_wait_for): Make it static.
	* configure: Regenerated.
2005-03-25 19:47:23 +00:00
Mark Kettenis 8d5a9abc72 * dwarf2-frame.h: Update copyrigh year.
(enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
* dwarf2-frame.c: Update copyright year.
(struct dwarf2_frame_cache): Add member `retaddr_reg'.
(dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
(dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
2005-03-25 16:51:40 +00:00
gdbadmin 4db8334481 *** empty log message *** 2005-03-25 00:00:08 +00:00
gdbadmin c0726462f0 *** empty log message *** 2005-03-24 00:01:07 +00:00
Martin Hunt b3041f52a5 2005-03-23 Martin Hunt <hunt@redhat.com>
* configure.ac: Remove -fwritable-strings from CFLAGS.
        * configure: Regenerate.
2005-03-23 19:17:42 +00:00
gdbadmin c410d862c1 *** empty log message *** 2005-03-23 00:00:03 +00:00
gdbadmin 53107cc4a4 *** empty log message *** 2005-03-22 00:01:39 +00:00
Michael Snyder 6a069e5719 2005-03-21 Michael Snyder <msnyder@redhat.com>
* mn10300-prologue.c (fix_frame_pointer): Delete.
	(set_movm_offsets) Don't return just because movm_args is
	zero -- still need to save pc and sp in saved_regs.
	(mn10300_analyze_prologue): Don't return prematurely without
	calling set_movm_offsets (for pc and sp at minimum).
2005-03-21 23:23:32 +00:00
Mark Mitchell d3ea68091c * configure.ac (stat.st_blksize): Check for it.
(getuid): Likewise.
	(getgid): Likewise.
	* configure: Regenerated.
	* config.in: Likewise.
	* remote-fileio.c (remote_fileio_to_fio_stat): Check
	HAVE_STRUCT_STAT_ST_BLKSIZE.
2005-03-21 21:23:35 +00:00
Christopher Faylor d460b7f5da * win32-nat.c (do_initial_child_stuff): Don't clear the thread list here.
(do_initial_child_stuff): Move clearing of thread list to a place before a
thread ould be created.
(child_attach): Ditto.
2005-03-21 19:54:15 +00:00
Michael Snyder 342ee437fb 2005-03-21 Michael Snyder <msnyder@redhat.com>
* mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
	instead of pc addr for frame_id.  Otherwise "until" won't work.
2005-03-21 19:31:46 +00:00
Kevin Buettner 4f0d78e096 * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
comment.
2005-03-21 18:09:47 +00:00