OSDN Git Service
gdbadmin [Tue, 5 Jul 2005 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 5 Jul 2005 00:00:06 +0000 (00:00 +0000)]
daily update
hjl [Mon, 4 Jul 2005 17:51:36 +0000 (17:51 +0000)]
2005-07-04 H.J. Lu <hongjiu.lu@intel.com>
* tic30-dis.c (cnvt_tmsfloat_ieee): Use HUGE_VALF if defined.
pbrook [Mon, 4 Jul 2005 14:58:52 +0000 (14:58 +0000)]
2005-07-04 Zack Weinberg <zack@codesourcery.com>
* lib/gas-defs.exp (run_dump_tests): New proc.
(run_dump_test): Add support for new options: target, not-target,
skip, not-skip, error-output. Document stderr. Tidy a
little.
(slurp_options): If a line doesn't match the option regexp, but
does begin with #, ignore it; don't stop parsing options.
* gas/arm/arm.exp: Remove most code. Use run_dump_tests.
* gas/arm/archv6t2-bad.d, gas/arm/armv1.d, gas/arm/iwmmxt-bad.d
* gas/arm/r15-bad.d, gas/arm/req.d, gas/arm/t16-bad.d
* gas/arm/undefined.d, gas/arm/undefined_coff.d, gas/arm/vfp-bad.d:
New files.
* gas/arm/bignum1.d, gas/arm/mapping.d, gas/arm/pic.d:
Only run on ELF targets.
* gas/arm/tls.d, gas/arm/unwind.d: Only run on ELF targets.
Skip on VxWorks.
* gas/arm/tls_vxworks.d, gas/arm/unwind_vxworks.d: New files.
* gas/arm/thumb.d, gas/arm/thumb32.d: Don't run on aout or pe.
* gas/arm/le-fpconst.d: Only run on *-*-pe.
* gas/arm/inst.d: Skip on WinCE.
* gas/arm/wince_inst.d: Skip unless WinCE.
* gas/arm/el_segundo.d: Mark up for actual use; adjust
expectations.
* gas/arm/el_segundo.s: Remove irrelevant junk. Add padding
for a.out's sake.
pbrook [Mon, 4 Jul 2005 14:57:45 +0000 (14:57 +0000)]
2005-07-04 Zack Weinberg <zack@codesourcery.com>
* lib/gas-defs.exp (run_dump_tests): New proc.
(run_dump_test): Add support for new options: target, not-target,
skip, not-skip, error-output. Document stderr. Tidy a
little.
(slurp_options): If a line doesn't match the option regexp, but
does begin with #, ignore it; don't stop parsing options.
* gas/arm/arm.exp: Remove most code. Use run_dump_tests.
* gas/arm/archv6t2-bad.d, gas/arm/armv1.d, gas/arm/iwmmxt-bad.d
* gas/arm/r15-bad.d, gas/arm/req.d, gas/arm/t16-bad.d
* gas/arm/undefined.d, gas/arm/undefined_coff.d, gas/arm/vfp-bad.d:
New files.
* gas/arm/bignum1.d, gas/arm/mapping.d, gas/arm/pic.d:
Only run on ELF targets.
* gas/arm/tls.d, gas/arm/unwind.d: Only run on ELF targets.
Skip on VxWorks.
* gas/arm/tls_vxworks.d, gas/arm/unwind_vxworks.d: New files.
* gas/arm/thumb.d, gas/arm/thumb32.d: Don't run on aout or pe.
* gas/arm/le-fpconst.d: Only run on *-*-pe.
* gas/arm/inst.d: Skip on WinCE.
* gas/arm/wince_inst.d: Skip unless WinCE.
* gas/arm/el_segundo.d: Mark up for actual use; adjust
expectations.
* gas/arm/el_segundo.s: Remove irrelevant junk. Add padding
for a.out's sake.
pbrook [Mon, 4 Jul 2005 14:55:52 +0000 (14:55 +0000)]
2005-07-04 Zack Weinberg <zack@codesourcery.com>
* lib/gas-defs.exp (run_dump_tests): New proc.
(run_dump_test): Add support for new options: target, not-target,
skip, not-skip, error-output. Document stderr. Tidy a
little.
(slurp_options): If a line doesn't match the option regexp, but
does begin with #, ignore it; don't stop parsing options.
* gas/arm/arm.exp: Remove most code. Use run_dump_tests.
* gas/arm/archv6t2-bad.d, gas/arm/armv1.d, gas/arm/iwmmxt-bad.d
* gas/arm/r15-bad.d, gas/arm/req.d, gas/arm/t16-bad.d
* gas/arm/undefined.d, gas/arm/undefined_coff.d, gas/arm/vfp-bad.d:
New files.
* gas/arm/bignum1.d, gas/arm/mapping.d, gas/arm/pic.d:
Only run on ELF targets.
* gas/arm/tls.d, gas/arm/unwind.d: Only run on ELF targets.
Skip on VxWorks.
* gas/arm/tls_vxworks.d, gas/arm/unwind_vxworks.d: New files.
* gas/arm/thumb.d, gas/arm/thumb32.d: Don't run on aout or pe.
* gas/arm/le-fpconst.d: Only run on *-*-pe.
* gas/arm/inst.d: Skip on WinCE.
* gas/arm/wince_inst.d: Skip unless WinCE.
* gas/arm/el_segundo.d: Mark up for actual use; adjust
expectations.
* gas/arm/el_segundo.s: Remove irrelevant junk. Add padding
for a.out's sake.
nickc [Mon, 4 Jul 2005 14:36:02 +0000 (14:36 +0000)]
Fix typo
nickc [Mon, 4 Jul 2005 14:27:06 +0000 (14:27 +0000)]
Fix compile time warning messages about signed/unsigned conflicts reported
by GCC 4.0
nickc [Mon, 4 Jul 2005 13:54:34 +0000 (13:54 +0000)]
m32r-linux-ld support for position independent executables
kettenis [Mon, 4 Jul 2005 13:38:49 +0000 (13:38 +0000)]
* i386nbsd-nat.c (i386nbsd_supply_pcb): Cast to 'gdb_byte *' in
read_memory call.
* bsd-uthread.c (bsd_uthread_wait): Use gdb_byte for byte buffer.
kettenis [Mon, 4 Jul 2005 13:29:04 +0000 (13:29 +0000)]
* bsd-kvm.c (bsd_kvm_open): Properly cast sentinel in concat call.
* coffread.c (patch_type, process_coff_symbol): Likewise.
* corelow.c (core_open): Likewise.
* dwarf2read.c (dwarf_decode_lines, dwarf2_start_subfile):
* language.c (set_lang_str, set_type_str, set_range_str)
(set_case_str): Likewise.
* source.c (add_path, openp): Likewise.
* stabsread.c: Likewise.
* top.c (init_history): Likewise.
* utils.c (xfullpath): Likewise.
* value.c (lookup_internalvar): Likewise.
* cli/cli-cmds.c (cd_command): Likewise.
* cli/cli-dump.c (add_dump_command): Likewise.
amodra [Mon, 4 Jul 2005 10:30:07 +0000 (10:30 +0000)]
PR 1042
* elf.c (assign_file_positions_for_segments): Remove excluded
sections from the segment map.
kettenis [Mon, 4 Jul 2005 10:17:33 +0000 (10:17 +0000)]
* i387-tdep.c (print_i387_value, print_i387_ext, i387_tag): Change
type of first argument to `const gdb_byte *'.
(i387_print_float_info, i387_register_to_value)
(i387_value_to_register, i387_supply_fsave, i387_collect_fsave)
(i387_supply_fxsave, i387_collect_fxsave): Use gdb_byte for byte
buffers.
corinna [Mon, 4 Jul 2005 08:44:02 +0000 (08:44 +0000)]
* cygheap.h (struct init_cygheap): Delete cygwin_regname member.
* external.cc (cygwin_internal): Use cygpsid::get_id for
CW_GET_UID_FROM_SID and CW_GET_GID_FROM_SID.
Turn CW_SET_CYGWIN_REGISTRY_NAME and CW_GET_CYGWIN_REGISTRY_NAME
into noops.
amodra [Mon, 4 Jul 2005 04:04:15 +0000 (04:04 +0000)]
* emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
amodra [Mon, 4 Jul 2005 01:53:36 +0000 (01:53 +0000)]
PR 1004
bfd/
* elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete
special_sections.
(_bfd_elf_get_special_section): Declare.
(bfd_elf_special_section): Update prototype.
* elf.c (special_sections): Remove unused outer entries.
(get_special_section): Delete.
(_bfd_elf_get_special_section): New function.
(_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update
special_sections indexing.
(_bfd_elf_new_section_hook): Call backend get_sec_type_attr.
* elf32-arm.c (symbian_special_sections_d): Delete.
(symbian_special_sections_g, symbian_special_sections_h): Delete.
(symbian_special_sections_i, symbian_special_sections_f): Delete.
(symbian_special_sections_p): Delete.
(elf32_arm_symbian_special_sections): Merge above to here.
(elf32_arm_symbian_get_sec_type_attr): New function.
(elf_backend_special_sections): Don't define.
(elf_backend_get_sec_type_attr): Define.
* elf32-m32r.c: Similarly to elf32-arm.c.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-sh64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elf32-ppc.c: Likewise.
(bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable.
* elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare.
(_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete.
(elf_backend_get_sec_type_attr): Define.
* elfxx-target.h (elf_backend_get_sec_type_attr): Define.
(elf_backend_special_sections): Don't define.
(elfNN_bed): Update.
binutils/
* objcopy.c (copy_object): Use bfd_make_section_with_flags.
(write_debugging_info): Likewise.
(setup_section): Use bfd_make_section_anyway_with_flags.
gas/
* config/obj-elf.c (obj_elf_change_section): Use backend
get_sec_type_attr.
gdbadmin [Mon, 4 Jul 2005 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Mon, 4 Jul 2005 00:00:04 +0000 (00:00 +0000)]
daily update
bje [Sun, 3 Jul 2005 20:46:46 +0000 (20:46 +0000)]
* Makefile.in (RUNTEST): Set to runtest.
bje [Sun, 3 Jul 2005 20:43:40 +0000 (20:43 +0000)]
* src-release (do-proto-toplev): Remove dejagnu bits.
(DEJAGNU_SUPPORT_DIRS): Remove.
(dejagnu.tar.bz2, dejagnu.tar): Likewise.
(GDBD_SUPPORT_DIRS): Likewise.
(gdb+dejagnu.tar.bz2, gdb+dejagnu.tar): Likewise.
(INSIGHTD_SUPPORT_DIRS): Likewise.
(insight+dejagnu.tar.bz2, insight+dejagnu.tar): Likewise.
dj [Sun, 3 Jul 2005 19:16:16 +0000 (19:16 +0000)]
merge from gcc
drow [Sun, 3 Jul 2005 17:30:22 +0000 (17:30 +0000)]
From Richard Henderson.
* amd64-tdep.c (amd64_sse_type): New.
(amd64_register_info): Use it for xmm registers. Constify.
(amd64_register_type): Initialize amd64_sse_type as needed.
sje [Sun, 3 Jul 2005 16:05:03 +0000 (16:05 +0000)]
* configure.ac: Add arguments to AC_DEFINE calls.
* acconfig.h: Remove file.
* acinclude.m4 (AC_GNU_SOURCE): Remove definition.
* configure: Regenerate.
* config.in: Regenerate.
kettenis [Sun, 3 Jul 2005 08:22:47 +0000 (08:22 +0000)]
From Martin Simmons:
* configure.in: Check for getpwnam instead of getpwname.
* configure: Regenerate.
cgf [Sun, 3 Jul 2005 04:05:00 +0000 (04:05 +0000)]
* thread.cc (pthread_mutex::init): Remove unneeded efault/mutex check.
cgf [Sun, 3 Jul 2005 03:44:56 +0000 (03:44 +0000)]
add missing ChangeLog entries
cgf [Sun, 3 Jul 2005 03:25:17 +0000 (03:25 +0000)]
* thread.h (verifyable_object_state verifyable_object_isvalid): Delete function
declaration that should have been static.
* thread.cc (verifyable_object_state verifyable_object_isvalid): Make inline
static.
(pthread*::is_good_object): Move to directly after verifyable_object_state
verifyable_object_isvalid and make inline.
cgf [Sun, 3 Jul 2005 02:40:26 +0000 (02:40 +0000)]
Replace valid memory checks with new myfault class "exception handling", almost
everywhere. Leave some thread.cc stuff alone for now.
* cygtls.h: Kludge some definitions to avoid including a problematic windows
header.
(_cygtls::_myfault): New entry.
(_cygtls::_myfault_errno): Ditto.
(_cygtls::fault_guarded): New function.
(_cygtls::setup_fault): Ditto.
(_cygtls::return_from_fault): Ditto.
(_cygtls::clear_fault): Ditto.
(myfault): New class.
* exceptions.cc (handle_exceptions): Handle case of guarded fault in system
routine.
* gendef: Add another entry point for setjmp that the compiler doesn't know
about and won't complain about.
* gentls_offsets: Just include windows.h rather than kludging a HANDLE def.
* miscfuncs.cc (check_null_str): Delete.
(check_null_empty_str): Ditto.
(check_null_empty_str_errno): Ditto.
(check_null_str_errno): Ditto.
(__check_null_invalid_struct): Ditto.
(__check_null_invalid_struct_errno): Ditto.
(__check_invalid_read_ptr): Ditto.
(__check_invalid_read_ptr_errno): Ditto.
(dummytest): New function.
(check_iovec_for_read): Delete.
(chec_iovec): Rename from check_iovec_for_write. Take a read/write parameter.
* tlsoffsets.h: Regenerate.
* winsup.h: Remove check_* declarations.
(check_iovec_for_read): Delete declaration. Turn into a define instead.
(check_iovec_for_write): Ditto.
(check_iovec): New declaration.
* thread.h: Use ifdef guard name consistent with other header files.
cgf [Sun, 3 Jul 2005 02:28:14 +0000 (02:28 +0000)]
should have been checked in on 2005-06-29
cgf [Sun, 3 Jul 2005 02:03:57 +0000 (02:03 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 19.
amodra [Sun, 3 Jul 2005 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 3 Jul 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
nathanw [Sat, 2 Jul 2005 15:39:47 +0000 (15:39 +0000)]
* gdb.texinfo (Packets): Change description of 'D' packet to note
that GDB does wait for a response.
amodra [Sat, 2 Jul 2005 00:00:07 +0000 (00:00 +0000)]
daily update
gdbadmin [Sat, 2 Jul 2005 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
kettenis [Fri, 1 Jul 2005 19:29:41 +0000 (19:29 +0000)]
* mips-tdep.c (mips_insn16_frame_prev_register)
(mips_insn32_frame_prev_register, mips_stub_frame_prev_register):
Change type of last argument to `gdb_byte *'.
sje [Fri, 1 Jul 2005 17:18:06 +0000 (17:18 +0000)]
* configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
* configure: Regenerate.
* config.in: Regenerate.
* server.h (NEED_DECLARATION_STRERROR):
Replace with !HAVE_DECL_STRERROR.
sje [Fri, 1 Jul 2005 17:13:07 +0000 (17:13 +0000)]
* MAINTAINERS (Write After Approval): Add myself.
sje [Fri, 1 Jul 2005 15:19:45 +0000 (15:19 +0000)]
* configure.in (AM_BINUTILS_WARNINGS): Add.
(BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
* configure: Regenerate.
* config.in: Regenerate.
* objdump.c (NEED_DECLARATION_*): Replace with !HAVE_DECL_*.
* bucomm.h: (NEED_DECLARATION_*): Ditto.
kettenis [Fri, 1 Jul 2005 15:10:22 +0000 (15:10 +0000)]
* solib-svr4.c: Include "solib.h".
* Makefile.in (solib-svr4.o): Update dependencies.
nickc [Fri, 1 Jul 2005 11:16:27 +0000 (11:16 +0000)]
Update function declarations to ISO C90 formatting
jbeulich [Fri, 1 Jul 2005 06:51:35 +0000 (06:51 +0000)]
gas/
2005-07-01 Jan Beulich <jbeulich@novell.com>
* config/tc-ia64.c (line_separator_chars): Add '{' and '}'.
(output_spill_psprel, output_spill_psprel_p): Combine.
(output_spill_sprel, output_spill_sprel_p): Combine.
(output_spill_reg, output_spill_regp_p): Combine.
(process_one_record): Handle psp_psprel.
(parse_predicate_and_operand): New.
(convert_expr_to_ab_reg): Two new parameters. Return void. Always
initialize output values. Emit diagnostic case here.
(convert_expr_to_xy_reg): Likewise. Don't allow r0, f0, and f1.
(add_unwind_entry): New second parameter. Allow first parameter to
be NULL. Parse optional tag, emit warning about further support for
it otherwise being missing. Check end-of-line when requested.
(dot_fframe): Clear operand when wrong. Allow tag.
(dot_vframe): Likewise.
(dot_vframesp): Likewise. Rename parameter, issue warning when psp
relative.
(dot_vframepsp): Remove.
(dot_altrp): Clear operand when wrong. Allow tag.
(dot_save): Likewise. Let default case also go through
add_unwind_entry.
(dot_savemem): Likewise.
(dot_restore): Don't return when wrong operand. Allow tag.
(dot_spillreg, dot_spillreg_p): Combine. Simplify by using
parse_predicate_and_operand and the new arguments to
convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
when wrong operand. Allow tag.
(dot_restorereg, dot_restorereg_p): Likewise.
(dot_spillmem, dot_spillmem_p): Likewise.
(dot_saveg): Clear operand when wrong. Perform tighter operand
checks. Allow tag.
(dot_savef): Likewise.
(dot_saveb): Likewise.
(dot_savegf): Likewise.
(dot_spill): Remove end-of-line check. Combine. Simplify by using
parse_predicate_and_operand and the new arguments to
convert_expr_to_ab_reg and convert_expr_to_xy_reg. Don't return
when wrong operand. Allow tag.
(popcount): New.
(dot_label_state): Don't return when wrong operand.
(dot_copy_state): Likewise.
(dot_unwabi): Likewise. Check if in prologue.
(dot_body): Don't call demand_empty_rest_of_line.
(dot_prologue): Type of mask and grsave is unsigned. Perform tighter
operand checks.
(md_pseudo_table): Also use dot_restorereg for .restorereg.p. Also
use dot_spillreg for .spillreg.p. Also use dot_spillmem for
.spillpsp.p and .spillsp.p. Also use dot_vframesp for .vframepsp.
(parse_operand): New second parameter. Don't deal with '}' here
anymore. Don't advance past end-of-line.
(parse_operands): Pass second argument to parse_operand.
(ia64_start_line): Prevent out-of-bounds access through
input_line_pointer. Deal with '}' here.
(ia64_unrecognized_line): Don't deal with '}' here.
(dot_alias): Use ignore_rest_of_line not its deprecated alias
discard_rest_of_line.
gas/testsuite/
2005-07-01 Jan Beulich <jbeulich@novell.com>
* gas/ia64/group-2.s: Use register as second operand of .prologue.
* gas/ia64/unwind-err.s: Add check for .vframesp.
* gas/ia64/unwind-err.l: Adjust.
* gas/ia64/strange.[sd]: New.
* gas/ia64/unwind-bad.[sl]: New.
* gas/ia64/unwind-ok.[sd]: New.
* gas/ia64/ia64.exp: Run new tests.
amodra [Fri, 1 Jul 2005 04:46:05 +0000 (04:46 +0000)]
* elf64-alpha.c (elf64_alpha_create_got_section): Always create
a new .got section.
(elf64_alpha_create_dynamic_sections): Always make new sections
by using bfd_make_section_anyway_with_flags. Check that .got not
already created.
(elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj
instead.
amodra [Fri, 1 Jul 2005 01:54:57 +0000 (01:54 +0000)]
* scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
amodra [Fri, 1 Jul 2005 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 1 Jul 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
dj [Thu, 30 Jun 2005 23:03:36 +0000 (23:03 +0000)]
merge from gcc
dj [Thu, 30 Jun 2005 23:02:49 +0000 (23:02 +0000)]
merge from gcc
aldyh [Thu, 30 Jun 2005 21:03:10 +0000 (21:03 +0000)]
* component/interrupt/components.h (bus_size): Fix constructor to
be legitimate C++.
fche [Thu, 30 Jun 2005 20:27:23 +0000 (20:27 +0000)]
2005-06-30 Frank Ch. Eigler <fche@elastic.org>
* cgen-cpu.h (GETMEM?F, SETMEM?F): Use pointer-cast-based
integer/float reinterpration instead of reinterpret_cast<>.
zack [Thu, 30 Jun 2005 18:35:17 +0000 (18:35 +0000)]
Correct ChangeLog entry
zack [Thu, 30 Jun 2005 18:33:15 +0000 (18:33 +0000)]
gas:
* config/tc-arm.c (T_OPCODE_BRANCH, encode_arm_addr_mode_2)
(encode_arm_addr_mode_3, encode_arm_cp_address, do_blx, do_t_blx)
(do_t_branch, insns [b, bl]): Don't encode pipeline offset.
(s_arm_elf_cons): Disallow use of (plt) suffix.
(do_adrl): Adjust X_add_number unconditionally.
(md_pcrel_from): Rename md_pcrel_from_section, add second segT
argument. Handle all adjustment for pipeline offset here.
(md_apply_fix): No need to undo work of md_pcrel_from. No
need to extract pre-encoded pipeline adjustments from various
branch instructions. Generally, assume instructions are already
all-bits-zero in the field being fixed up. Remove all OBJ_ELF
special cases. Handle BFD_RELOC_ARM_PLT32 like
BFD_RELOC_ARM_PCREL_BRANCH.
(tc_gen_reloc): Remove OBJ_ELF special case.
* config/tc-arm.c: Define MD_PCREL_FROM_SECTION.
gas/testsuite:
* gas/arm/arm.exp: Don't special case ldconst, arm7t, or copro
for *-wince-*.
* gas/arm/wince_arm7t.d, gas/arm/wince_copro.d
* gas/arm/wince_ldconst.d: Delete.
corinna [Thu, 30 Jun 2005 17:00:08 +0000 (17:00 +0000)]
* fhandler.cc (fhandler_base::readv): Use malloc/free instead of alloca.
(fhandler_base::writev): Ditto.
brolley [Thu, 30 Jun 2005 16:00:02 +0000 (16:00 +0000)]
2005-06-30 Dave Brolley <brolley@redhat.com>
* cpu/memory/Makefile.am (libmemory_la_SOURCES): Remove duplicate
sid-bochs-memory.cc
* cpu/memory/Makefile.in: Regenerate.
amodra [Thu, 30 Jun 2005 08:11:05 +0000 (08:11 +0000)]
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
_SDA_BASE_ and _SDA2_BASE_ symbols.
* elflink.c (_bfd_elf_provide_symbol): Correct comment. Define
sym if not def_regular.
(_bfd_elf_provide_section_bound_symbols): Similarly.
jimb [Thu, 30 Jun 2005 03:24:18 +0000 (03:24 +0000)]
Add support for the Linux NPTL (New POSIX Thread Library) thread
implementation.
* arch.h, lwp-pool.c, lwp-pool.h, stock-breakpoints.c:
* stock-breakpoints.h: New files.
* gdbserv-thread-db.h (continue_lwp, singlestep_lwp, attach_lwp)
(stop_lwp): Move these ...
* lwp-ctrl.h: ... to here (new file).
* server.h (struct child_process): Include a pointer to the
architecture object, a breakpoint table, and a pointer to the
"focus thread".
* linux-target.c: Create architecture objects for the i386 and
FRV, and describe breakpoints for those architectures.
#include "arch.h".
[STOCK_BREAKPOINTS]: #include "stock-breakpoints.h".
(allocate_empty_arch): New function.
[X86_LINUX_TARGET] (stock_table_to_x86, x86_table_to_stock)
(stock_bp_to_x86, x86_bp_to_stock, x86_make_bp_table, x86_set_bp)
(x86_delete_bp, x86_bp_hit_p, x86_make_arch): New functions.
(MAKE_ARCH): #define to call x86_make_arch.
[X86_LINUX_TARGET] (stock_table_to_frv, frv_table_to_stock)
(stock_bp_to_frv, frv_bp_to_stock, frv_make_bp_table, frv_set_bp)
(frv_delete_bp, frv_bp_hit_p, frv_make_arch): New functions.
(MAKE_ARCH): #define to call frv_make_arch.
(linux_attach): If MAKE_ARCH is #defined, create an architecture
object for this process. And if we have an architecture object,
make a breakpoint table.
* thread-db.c: #include <assert.h>, "arch.h", "lwp-ctrl.h", and
"lwp-pool.h".
(struct gdbserv_thread): Remove state-tracking flags 'attached',
'stopped', 'waited', and 'stepping'; all that state is handled
inside lwp-pool.c now.
(add_thread_to_list): Zero the entire newly allocated thread
structure.
(thread_list_lookup_by_lid): Prefer threads whose ti_lid values
are different from that of the main process.
(thread_db_state_str, thread_db_type_str): Don't include
formatting spaces here.
(thread_db_event_str): New function.
(thread_debug_name): New function.
(get_thread_signals): Return a value indicating success or failure.
(ignore_thread_signal): New function.
(using_thread_db_events, create_notification, death_notification)
(get_event_notification, set_event_breakpoint)
(insert_thread_db_event_breakpoints)
(delete_thread_db_event_breakpoints, request_thread_db_events)
(hit_thread_db_event_breakpoint, handle_thread_db_event): New
variables and functions, for using libthread_db's event interface.
(thread_db_open): Gather error-handling code next to the operation
that might fail. Decide here whether to use the signal-based
debugging interface, or the event-based debugging interface.
(stop_thread, stop_all_threads, struct event_list, pending_events)
(pending_events_listsize, pending_events_top, add_pending_event)
(select_pending_event, send_pending_signals, wait_all_threads):
Deleted; we now use lwp-pool.c for all this.
(attach_thread, continue_thread, continue_all_threads)
(singlestep_thread, thread_db_singlestep_program)
(thread_db_continue_thread, thread_db_singlestep_thread): Use the
lwp-pool.c functions, instead of calling the lwp manipulation
functions directly and managing state here. Keep track of the
focus thread.
(find_new_threads_callback): Always call attach_thread. If we're
using libthread_db events, enable event reporting for the new
thread.
(update_thread_list): Take the current child process as an
argument; if the current focus thread disappears, clear the
process's focus_thread pointer.
(thread_db_thread_next): Pass the current child process to
update_thread_list.
(thread_db_thread_info): Reformat thread descriptions. Mark
threads whose pid is equal to the process ID.
(thread_db_check_child_state): Use the lwp-pool functions, instead
of calling waitpid and the old stop-all-threads functions. If we
have a focus thread, only check for a status on that thread.
Check for libthread_db events. Use ignore_thread_signal, instead
of writing it out.
(thread_db_break_program): New function.
(thread_db_attach): Register it as the target's 'break_program'
method. Always preload the symbol list with the names we'll need
for the signal-based interface, even if we have td_symbol_list.
Use lwp_pool_new_stopped to register the initial thread. Clear
the focus thread.
* ptrace-target.c: #define _GNU_SOURCE and #include <sys/types.h>
and <linux/unistd.h>, to get declarations for the functions we
need.
#include "lwp-ctrl.h".
(continue_lwp, singlestep_lwp, attach_lwp): Remove
unnecessary 'extern' keywords. Move pre-function comments to
lwp-ctrl.h. Take an ordinary 'pid_t', not an 'lwpid_t', since
we're calling ptrace / tkill, and that's what they expect; rename
arguments accordingly. Preserve value of errno across calls to
fprintf when reporting errors.
(kill_lwp): All the above, and use tkill system call if available.
* configure.in: Whenever we include thread-db.o in TARGET_MODULES,
also include lwp-pool.o.
On i386 and FRV Linux, use the stock-breakpoints module.
* config.in: Add template for STOCK_BREAKPOINTS.
* Makefile.am (EXTRA_rda_SOURCES): Include stock-breakpoints.c.
* Makefile.in, aclocal.m4, configure: Regenerated.
cgf [Thu, 30 Jun 2005 02:52:09 +0000 (02:52 +0000)]
* cygerrno.h: Make multi-inclusion safe.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Deal with EINTR.
* dcrt0.cc (dll_crt0_0): Accommodate init_console_handler argument change.
* winsup.h: Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
* exceptions.cc (init_console_handler): Ditto. Ignore console events if we're
not attached to a terminal.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
* wincap.cc: Implement has_null_console_handler_routine throughout.
* wincap.h: Ditto.
cgf [Thu, 30 Jun 2005 02:51:31 +0000 (02:51 +0000)]
revert erroneous checkin
bje [Thu, 30 Jun 2005 00:53:59 +0000 (00:53 +0000)]
* Makefile.am (check-DEJAGNU): Don't search for expect.
* Makefile.in: Regenerate.
amodra [Thu, 30 Jun 2005 00:00:07 +0000 (00:00 +0000)]
daily update
gdbadmin [Thu, 30 Jun 2005 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
cgf [Wed, 29 Jun 2005 23:05:40 +0000 (23:05 +0000)]
* autoload.cc (LoadDLLprime): Use a more descriptive name for autoload text
sections.
* cygwin.sc: Ditto.
bje [Wed, 29 Jun 2005 21:22:12 +0000 (21:22 +0000)]
* config.bfd: Mark as obsolete:
m68*-apollo-*
m68*-apple-aux*
m68*-bull-sysv*
bje [Wed, 29 Jun 2005 20:29:57 +0000 (20:29 +0000)]
* Makefile.am (EXPECT): Set to expect.
(RUNTEST): Likewise, set to runtest.
* Makefile.in: Regenerate.
bje [Wed, 29 Jun 2005 19:12:30 +0000 (19:12 +0000)]
* setup.com (mpw): Remove unused directive.
schwab [Wed, 29 Jun 2005 15:01:48 +0000 (15:01 +0000)]
* gdb.base/sigrepeat.c: Include <stdlib.h> and add return type for
main to avoid warnings.
* gdb.base/sigrepeat.exp: Fix reference to undefined variable.
amodra [Wed, 29 Jun 2005 14:05:11 +0000 (14:05 +0000)]
* elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
.eh_frame specially..
(bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
Don't recheck sections we have already marked.
(elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
* section.c (struct bfd_section): Add gc_mark_from_eh.
(STD_SECTION): Adjust.
* ecoff.c (bfd_debug_section): Adjust.
* bfd-in2.h: Regenerate.
amodra [Wed, 29 Jun 2005 13:56:04 +0000 (13:56 +0000)]
* elflink.c (elf_gc_sweep): Do not refcount on sections that have
not been processed by check_relocs.
pbrook [Wed, 29 Jun 2005 13:16:38 +0000 (13:16 +0000)]
2005-06-29 Paul Brook <paul@codesourcery.com>
* bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
* bfd-in2.h: Regenerate.
* elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
relative.
* elflink.c (bfd_elf_set_symbol): Add section argument.
(_bfd_elf_provide_symbol): Ditto.
(_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
bje [Wed, 29 Jun 2005 02:05:07 +0000 (02:05 +0000)]
Remove dejagnu/ entry.
bje [Wed, 29 Jun 2005 01:58:36 +0000 (01:58 +0000)]
Remove old version of DejaGnu.
gdbadmin [Wed, 29 Jun 2005 00:00:37 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Wed, 29 Jun 2005 00:00:08 +0000 (00:00 +0000)]
daily update
kettenis [Tue, 28 Jun 2005 20:48:09 +0000 (20:48 +0000)]
* eval.c (evaluate_struct_tuple): Use strcmp instead of
DEPRECATED_STREQ.
jjohnstn [Tue, 28 Jun 2005 17:03:17 +0000 (17:03 +0000)]
2005-06-28 Dave Korn <dave.korn@artimi.com>
* libm/common/s_lrint.c (lrint): Fix signed-vs-unsigned comparison
and miscalculation caused by fp representation of zero.
* libm/common/sf_lrint.c (lrintf): Likewise.
bje [Tue, 28 Jun 2005 05:02:28 +0000 (05:02 +0000)]
Remove this old version of Expect.
msnyder [Tue, 28 Jun 2005 00:17:50 +0000 (00:17 +0000)]
2005-06-27 Michael Snyder <msnyder@redhat.com>
* config/mn10300/linux.mt: New file.
* configure.tgt: Add rule for am33 / mn10300-linux.
* mn10300-tdep.c, mn10300-tdep.h: Bump copyright year.
msnyder [Tue, 28 Jun 2005 00:17:41 +0000 (00:17 +0000)]
2005-06-27 Michael Snyder <msnyder@redhat.com>
* config/mn10300/linux.mt: New file.
* configure.tgt: Add rule for am33 / mn10300-linux.
* mn10300-tdep.c, mn10300-tdep.h: Bump copyright year.
gdbadmin [Tue, 28 Jun 2005 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 28 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update
danglin [Mon, 27 Jun 2005 23:43:42 +0000 (23:43 +0000)]
* bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
Use bh_root, and hh.
(struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache.
(struct elf32_hppa_dyn_reloc_entry): Use hdh_next.
(struct elf32_hppa_link_hash_table): Use etab and bstab.
(stub_hash_newfunc): Use hh.
(hppa_link_hash_newfunc): Use hsh_cache.
(elf32_hppa_link_hash_table_create): Use etab, and bstab.
(elf32_hppa_link_hash_table_free): Use bstab.
(hppa_stub_name): Use eh.
(hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache.
(hppa_add_stub): Use bstab.
(hppa_type_of_stub): Use eh.
(hppa_build_one_stub): Use hh and bh_root.
(elf32_hppa_copy_indirect_symbol): Use hdh_next.
(elf32_hppa_check_relocs): Use eh, etab, and hdh_next.
(elf32_hppa_gc_sweep_hook): Use hdh_next.
(elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab.
(allocate_plt_static): Use etab.
(allocate_dynrelocs): Use etab, and hdh_next.
(readonly_dynrelocs): Use hdh_next.
(elf32_hppa_size_dynamic_sections): Use etab, and hdh_next.
(get_local_syms): Use eh, bstab, and hh.
(elf32_hppa_size_stubs): Use eh, bstab, and hh.
(elf32_hppa_set_gp): Use etab.
(elf32_hppa_build_stubs): Use bstab.
(final_link_relocate): Use eh, bh_root.
(elf32_hppa_relocate_section): Use elf, etab.
(elf32_hppa_finish_dynamic_sections): Use etab.
hjl [Mon, 27 Jun 2005 21:08:09 +0000 (21:08 +0000)]
2005-06-27 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
the extra `;'.
corinna [Mon, 27 Jun 2005 14:18:10 +0000 (14:18 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::facl): Add missing break.
woodzltc [Mon, 27 Jun 2005 08:38:13 +0000 (08:38 +0000)]
* gdbtypes.c (get_discrete_bounds): Fix a comment typo.
gdbadmin [Mon, 27 Jun 2005 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Mon, 27 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update
amodra [Sun, 26 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 26 Jun 2005 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
kettenis [Sat, 25 Jun 2005 12:48:55 +0000 (12:48 +0000)]
* sol-thread.c (sol_thread_xfer_memory): Change type of second
argument to `gdb_byte *'.
(sol_thread_xfer_partial): Change type of readbuf and writebuf
arguments to `gdb_byte *'.
kettenis [Sat, 25 Jun 2005 11:58:30 +0000 (11:58 +0000)]
* mips-tdep.c (mips_xfer_register, mips_o32_return_value)
(mips_integer_to_address): Use gdb_byte instead of bfd_byte.
kettenis [Sat, 25 Jun 2005 11:54:29 +0000 (11:54 +0000)]
* ppcobsd-nat.c: Include "gdbcore.h", <sys/signal.h>,
<machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
(ppcobsd_supply_pcb): New function.
(_initialize_ppcobsd_nat): Enable libkvm interface.
* Makefile.in (ppcobsd-nat.o): Update dependencies.
* config/powerpc/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
(LOADLIBES): New variable.
gdbadmin [Sat, 25 Jun 2005 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 25 Jun 2005 00:00:06 +0000 (00:00 +0000)]
daily update
kettenis [Fri, 24 Jun 2005 21:15:37 +0000 (21:15 +0000)]
* config/powerpc/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
(LOADLIBES): New variable.
kettenis [Fri, 24 Jun 2005 21:11:37 +0000 (21:11 +0000)]
* ppcobsd-nat.c: Include "gdbcore.h", <sys/signal.h>,
<machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
(ppcobsd_supply_pcb): New function.
(_initialize_ppcobsd_nat): Enable libkvm interface.
* Makefile.in (ppcobsd-nat.o): Update dependencies.
brolley [Fri, 24 Jun 2005 18:52:10 +0000 (18:52 +0000)]
*** empty log message ***
brolley [Fri, 24 Jun 2005 18:50:58 +0000 (18:50 +0000)]
2005-06-24 Dave Brolley <brolley@redhat.com>
* pregen-configs.in: Add support for Ms1.
* ms1-gloss.conf: New file.
* ms1-gdb.conf: Likewise.
brolley [Fri, 24 Jun 2005 18:47:04 +0000 (18:47 +0000)]
2005-06-24 Dave Brolley <brolley@redhat.com>
* config.sub: Add ms1 support.
* info.tcl.in: Likewise.
* sidtargets.m4: Likewise.
brolley [Fri, 24 Jun 2005 18:44:11 +0000 (18:44 +0000)]
2005-06-24 Dave Brolley <brolley@redhat.com>
* tconfig.in: Add ms1 support.
brolley [Fri, 24 Jun 2005 18:42:19 +0000 (18:42 +0000)]
2005-06-24 Dave Brolley <brolley@redhat.com>
* configrun-sid.in: Add ms1 support.
* Makefile.am: Likewise.