OSDN Git Service
amodra [Sat, 20 Oct 2001 00:00:06 +0000 (00:00 +0000)]
daily update
corinna [Fri, 19 Oct 2001 19:17:04 +0000 (19:17 +0000)]
* path.cc (getcwd): Allow len == 0 when buf == NULL.
hjl [Fri, 19 Oct 2001 16:29:12 +0000 (16:29 +0000)]
2001-10-19 H.J. Lu <hjl@gnu.org>
* elfcode.h (elf_object_p): Don't clear D_PAGED if the section
size is empty.
dj [Fri, 19 Oct 2001 14:25:50 +0000 (14:25 +0000)]
* pe-dll.c (autofilter_objectlist): Add gcrt0.o.
(auto-export): Fix indentation.
nickc [Fri, 19 Oct 2001 10:53:18 +0000 (10:53 +0000)]
Restore line_comment_chars after a SNAFU.
cgf [Fri, 19 Oct 2001 02:27:19 +0000 (02:27 +0000)]
* syscalls.cc (_read): Validate input pointer.
(_write): Ditto.
(system): Ditto.
hjl [Fri, 19 Oct 2001 02:11:03 +0000 (02:11 +0000)]
2001-10-18 H.J. Lu <hjl@gnu.org>
* elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
dj [Fri, 19 Oct 2001 00:00:55 +0000 (00:00 +0000)]
* pe-dll.c (autofilter_objectlist): Add startup objects
for profiling.
(auto-export): Constify char * p.
Extract file basename and use strcmp rather than ststr
for object lookup.
amodra [Fri, 19 Oct 2001 00:00:04 +0000 (00:00 +0000)]
daily update
cgd [Thu, 18 Oct 2001 23:44:17 +0000 (23:44 +0000)]
2001-10-18 Chris Demetriou <cgd@broadcom.com>
* ldmain.c (get_emulation): Improve comment about the handling
of -mipsN options.
cgd [Thu, 18 Oct 2001 22:41:35 +0000 (22:41 +0000)]
2001-10-18 Chris Demetriou <cgd@broadcom.com>
* mips.h (OPCODE_IS_MEMBER): Add a no-op term to the end
of the expression, to make source code merging easier.
nickc [Thu, 18 Oct 2001 21:06:01 +0000 (21:06 +0000)]
Remove semicolon from ARM comment chars list
hunt [Thu, 18 Oct 2001 17:57:48 +0000 (17:57 +0000)]
2001-10-18 Martin M. Hunt <hunt@redhat.com>
* library/srcpref.itb (SrcPref::contructor): Move array
initialization to _init_var.
(SrcPref::_init_var): New method to initialize _saved and
_new arrays.
(SrcPref::buildwin): Rename to _buildwin. Have widgets use
_new instead of [pref varname ...]. Set initial value of
tab size spinint.
(SrcPref::_apply): Set prefs with values from the _new array.
(SrcPref::_cancel): Reset disassembly flavor and don't call
_save because nothing is saved unless OK is selected.
(SrcPref::set_flavor): Rename to _set_flavor.
(SrcPref::_pick): Just set _new, not prefs.
* library/srcpref.ith: Add private variable _new and
private method cancel. Rename others with leading underscore.
hp [Thu, 18 Oct 2001 17:50:25 +0000 (17:50 +0000)]
Correct date of commit to last entry
hp [Thu, 18 Oct 2001 17:38:52 +0000 (17:38 +0000)]
* write.c (fixup_segment): Handle fixups for SEC_MERGE sections as
for undefined symbols.
nickc [Thu, 18 Oct 2001 12:20:46 +0000 (12:20 +0000)]
Add support for XScale's coprocessor access check register.
Fix formatting.
jakub [Thu, 18 Oct 2001 08:22:42 +0000 (08:22 +0000)]
* section.c (_bfd_strip_section_from_output): Don't count
SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
cagney [Thu, 18 Oct 2001 04:35:33 +0000 (04:35 +0000)]
* README: Mention problems with HP/UX.
meissner [Thu, 18 Oct 2001 02:24:30 +0000 (02:24 +0000)]
Add ddb-kseg0.ld and switch to kseg1 if sizing memory from kseg0
cgd [Thu, 18 Oct 2001 01:50:26 +0000 (01:50 +0000)]
2001-10-17 Chris Demetriou <cgd@broadcom.com>
* mips.h: Sort coprocessor instruction argument characters
in comment, add a few more words of description for "H".
cgd [Thu, 18 Oct 2001 01:42:16 +0000 (01:42 +0000)]
[gas/testsuite/ChangeLog]
2001-10-17 Chris Demetriou <cgd@broadcom.com>
* gas/mips/mips.exp (sb1-ext-ps): New test to test
SB-1 core's paired-single extensions to the MIPS64 ISA.
* gas/mips/sb1-ext-ps.d: New file.
* gas/mips/sb1-ext-ps.s: New file.
[include/opcode/ChangeLog]
2001-10-17 Chris Demetriou <cgd@broadcom.com>
* mips.h (INSN_SB1): New cpu-specific instruction bit.
(OPCODE_IS_MEMBER): Allow instructions matching INSN_SB1
if cpu is CPU_SB1.
[opcodes/ChangeLog]
2001-10-17 Chris Demetriou <cgd@broadcom.com>
* mips-dis.c (mips_isa_type): Make the ISA used to disassemble
SB-1 binaries include instructions specific to the SB-1.
* mips-opc.c (SB1): New definition.
(mips_builtin_opcodes): Add SB-1 extension opcodes "div.ps",
"recip.ps", "rsqrt.ps", and "sqrt.ps".
amodra [Thu, 18 Oct 2001 00:00:04 +0000 (00:00 +0000)]
daily update
dj [Wed, 17 Oct 2001 22:35:28 +0000 (22:35 +0000)]
merge from gcc
cagney [Wed, 17 Oct 2001 20:35:30 +0000 (20:35 +0000)]
Functions to convert to/from CORE_ADDR and a string. Use in Insight.
tromey [Wed, 17 Oct 2001 20:30:25 +0000 (20:30 +0000)]
* console.itb (Console::_build_win): Handle bindings which
are ";". Also, completely override underlying Text binding.
corinna [Wed, 17 Oct 2001 19:28:33 +0000 (19:28 +0000)]
Add __rtems__ as system defining fchdir().
cgd [Wed, 17 Oct 2001 19:16:14 +0000 (19:16 +0000)]
2001-10-17 Chris Demetriou <cgd@broadcom.com>
* doc/as.texinfo (MIPS ISA options): Added accidentally
omitted "-mips64" option to list of options.
brolley [Wed, 17 Oct 2001 19:01:36 +0000 (19:01 +0000)]
Fixed a typo.
corinna [Wed, 17 Oct 2001 18:52:05 +0000 (18:52 +0000)]
Patch from Frederic Devernay <Frederic.Devernay@sophia.inria.fr>:
* poll.cc (poll): Call cygwin_select() if any fd is valid.
corinna [Wed, 17 Oct 2001 18:16:39 +0000 (18:16 +0000)]
* libc/include/sys/unistd.h: Add prototype for fchdir() when
__CYGWIN__ is defined.
brolley [Wed, 17 Oct 2001 17:51:29 +0000 (17:51 +0000)]
2001-10-17 Dave Brolley <brolley@redhat.com>
* compSched.cxx (operator <<): Save state of enable_threshold and
yield_host_time_threshold.
(operator >>): Restore state of enable_threshold and
yield_host_time_threshold.
(class scheduler_component): New members: enable_threshold,
yield_host_time_threshold.
(scheduler_component::advance): Check enable_p against enable_threshold.
Check yield_host_time_p against yield_host_time_theshold.
(scheduler_component): Initialize enable_threshold, enable_p,
yield_host_time_p and yield_host_time_threshold.
(scheduler_component_ctor_1): Add attributes 'enable-threshold' and
'yield-host-time-threshold'.
* sid-sched.xml (enabled?): Update defscription.
(yield-host-time): Update defscription.
(enable-threshold): New attribute.
(yield-host-time-threshold): New attribute.
* sid-sched.txt: Regenerate.
brolley [Wed, 17 Oct 2001 17:50:13 +0000 (17:50 +0000)]
2001-10-16 Dave Brolley <brolley@redhat.com>
* gdb.h (target_schedulers_enabled): New vector member of class gdb.
(host_schedulers_host_time_yielded): Ditto.
* gdb.cxx (increment_attribute): New function.
(target_power): Maintain internal vectors to track whether we have
enabled the target scheduler and asked the host scheduler to yield host
time. Increment/decrement the appropriate attribute of each scheduler
instead of setting to 1 or 0.
(init_handler): Initialize internal vectors representing the state of
the host and target schedulers.
brolley [Wed, 17 Oct 2001 17:47:55 +0000 (17:47 +0000)]
2001-10-17 Dave Brolley <brolley@redhat.com>
* configrun-sid.in: Move check of $opt_persistent and $opt_verbose to
just before output.
Check for gdb components attached to processors other than the main
cpu. Adjust the enable-threshold of target-sched accordingly.
mrg [Wed, 17 Oct 2001 13:13:14 +0000 (13:13 +0000)]
[gas/ChangeLog]
* config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400,
-m7410, -m7450 and -m7455 options.
[gas/testsuite/ChangeLog]
* gas/ppc/altivec.s: New test for AltiVec.
* gas/ppc/altivec.d: New file.
* gas/ppc/ppc.exp: Test altivec.s
[include/opcode/ChangeLog]
* ppc.h (PPC_OPCODE_BOOKE64): Fix typo.
[opcodes/ChangeLog]
* ppc-opc.c (STRM): New AltiVec operand.
(XDSS): New AltiVec instruction form.
(mtvscr): Correct operand list.
(dst, dstt, dstst, dststt, dss, dssall): AltiVec instructions.
amodra [Wed, 17 Oct 2001 12:01:04 +0000 (12:01 +0000)]
* elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
Elf_Internal_Shdr.contents now that it's no longer a PTR.
* elf-m10300.c (mn10300_elf_relax_section): Likewise.
* elf32-h8300.c (elf32_h8_relax_section): Likewise.
* elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
* elf32-sh.c (sh_elf_relax_section): Likewise.
* elf64-alpha.c (elf64_alpha_relax_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
* elf.c (setup_group): Warning fixes.
* elflink.h (elf_link_sort_relocs): Likewise.
* pdp11.c (slurp_reloc_table): Likewise.
jsm [Wed, 17 Oct 2001 07:12:56 +0000 (07:12 +0000)]
* symtab.c (lookup_block_symbol): Break out of linear search
if we're past the range of possible matches.
Original patch submission, with links to history/background behind it,
here:
http://sources.redhat.com/ml/gdb-patches/2001-09/msg00120.html
amodra [Wed, 17 Oct 2001 06:03:35 +0000 (06:03 +0000)]
* config/tc-ppc.c (PPC_HA, PPC_HIGHERA, PPC_HIGHESTA): Simplify.
(ppc_size): Select PPC_OPCODE_64 if 64 bit.
(md_begin): Don't set ppc_size here.
(ppc_target_format): Test ppc_size as well as BFD_DEFAULT_TARGET_SIZE.
(md_shortopts): Constify.
(md_longopts): Likewise.
(md_longopts_size): Likewise.
(ppc_elf_suffix): Only allow 64-bit relocs when ppc_size specifies
64-bit opcodes.
(ppc_machine): Explain why this function is a nop.
amodra [Wed, 17 Oct 2001 05:51:10 +0000 (05:51 +0000)]
* bit_fix.h: Comment typo fix.
* config/tc-mips.c: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-arc.c (arc_code_symbol): Remove unnecessary test.
amodra [Wed, 17 Oct 2001 05:41:51 +0000 (05:41 +0000)]
* po/POTFILES.in: Regenerate.
amodra [Wed, 17 Oct 2001 05:38:40 +0000 (05:38 +0000)]
* configure.in (MIPS_STABS_ELF): AC_DEFINE in only one place so
that autoheader doesn't duplicate config.in entries.
(DEFAULT_ARCH): Ditto.
* configure: Regenerate.
* config.in: Regenerate.
jeffh [Wed, 17 Oct 2001 01:44:50 +0000 (01:44 +0000)]
2001-10-16 Jeff Holcomb <jeffh@redhat.com>
* internal.h (elf_internal_shdr): Make contents a unsigned char *.
jeffh [Wed, 17 Oct 2001 01:44:09 +0000 (01:44 +0000)]
2001-10-16 Jeff Holcomb <jeffh@redhat.com>
* elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
casts.
amodra [Wed, 17 Oct 2001 00:00:04 +0000 (00:00 +0000)]
daily update
corinna [Tue, 16 Oct 2001 20:17:21 +0000 (20:17 +0000)]
* fhandler_raw.cc (fhandler_dev_raw::open): Eliminate compatibility
code since no Win32 device names are used anymore.
* fhandler_tape.cc (fhandler_dev_tape::tape_set_blocksize): Allow
0 as blocksize to indicate variable blocksize.
* path.cc (win32_device_name): Generate NT internal device names
using upper/lower case names for readability.
Generate \DosDevices\<letter>: device name for mount table
compatibility devices.
corinna [Tue, 16 Oct 2001 17:32:42 +0000 (17:32 +0000)]
Forgot ChangeLog
cgf [Tue, 16 Oct 2001 16:58:28 +0000 (16:58 +0000)]
* fhandler.cc (fhandler_base::fork_fixup): Guard against compiler warning.
corinna [Tue, 16 Oct 2001 16:28:39 +0000 (16:28 +0000)]
* fhandler_tape.cc (fhandler_dev_tape::tape_status): Report
EOTWarningZoneSize in get->mt_eotwarningzonesize.
* include/cygwin/mtio.h: Define DEFTAPE.
(struct mtget): Add member `mt_eotwarningzonesize'. Add a comment.
* include/cygwin/version.h: Bump API minor version to 47.
fche [Tue, 16 Oct 2001 16:25:19 +0000 (16:25 +0000)]
2001-10-16 Frank Ch. Eigler <fche@redhat.com>
* *-guide/images/*.png: New files, replacing ...
* *-guide/images/*.jpg: Gone.
* cdk-guide/book-cdk.sgml: Switch over.
* sid-guide/book-sid.sgml: Ditto.
corinna [Tue, 16 Oct 2001 16:03:22 +0000 (16:03 +0000)]
* pathnames.sgml: Cleanup raw device text to be more coherent.
corinna [Tue, 16 Oct 2001 15:16:02 +0000 (15:16 +0000)]
* pathnames.sgml: Add description for new fixed device paths.
corinna [Tue, 16 Oct 2001 14:53:26 +0000 (14:53 +0000)]
* autoload.cc: Add load statement for `NtOpenFile'.
* fhandler.h (fhandler_dev_raw::get_unit): New method.
(fhandler_dev_tape::norewind): Eliminate.
(fhandler_dev_tape::is_rewind_device): New method.
* fhandler_raw.cc (fhandler_dev_raw::open): Open new
fixed device name devices using NT internal method.
Keep calling fhandler_base::open() for old mount table
device mapping compatibility devices.
(fhandler_dev_raw::fstat): Eliminate. Settings are done
by fhandler_base::fstat() already.
* fhandler_tape.cc: Remove `norewind' usage throughout.
* ntdll.h: Define FILE_SYNCHRONOUS_IO_NONALERT.
Define struct _IO_STATUS_BLOCK.
Declare NtOpenFile().
* path.cc (get_raw_device_number): Add new approach for
using fixed device names.
(win32_device_name): Ditto.
(get_device_number): Ditto. Require POSIX path to begin
with "/dev/".
(mount_info::conv_to_win32_path): Call win32_device_name()
instead of get_device_number() after evaluating mount points
to allow changing the win32 destination path again.
* security.cc (str2buf2uni): Remove `static' to be able to
call function from fhandler_dev_raw::open().
* wincap.cc: Set flag has_raw_devices appropriately.
* wincap.h: Add flag has_raw_devices.
cgf [Tue, 16 Oct 2001 14:43:35 +0000 (14:43 +0000)]
* cygheap.h (cygheap_fdget::cygheap_fdget): Remove debugging operation from
set_errno.
amodra [Tue, 16 Oct 2001 14:27:01 +0000 (14:27 +0000)]
* config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
cgf [Tue, 16 Oct 2001 14:04:25 +0000 (14:04 +0000)]
* mmap.cc (mmap): Assign 'fh' from cygheap_fdget. Use 'fh' everywhere.
cgf [Tue, 16 Oct 2001 13:49:38 +0000 (13:49 +0000)]
minor reformat.
cgf [Tue, 16 Oct 2001 12:47:31 +0000 (12:47 +0000)]
* filenames.h: Add cygwin to the list of dosish style path systems.
hjl [Tue, 16 Oct 2001 06:33:52 +0000 (06:33 +0000)]
2001-10-15 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
for relocations against discarded link-once section.
irox [Tue, 16 Oct 2001 05:58:44 +0000 (05:58 +0000)]
* win/tkWinButton.c (TkpComputeButtonGeometry):
Windows look and feel fix modified to leave
labels alone.
cgf [Tue, 16 Oct 2001 04:50:20 +0000 (04:50 +0000)]
* win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding load of
already loaded DLL.
(register_loaded_dll): Convert loaded DLL name to "posix" format or it will
confuse subsequent opening of the filename due to dos paths.
(dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
cgf [Tue, 16 Oct 2001 03:31:49 +0000 (03:31 +0000)]
* cygerrno.h (set_errno): Define more informative version of this function for
debugging.
(__set_errno): Declare when DEBUGGING.
* cygheap.h (cygheap_fdget::cygheap_fdget): Add a flag to control when errno is
set.
* debug.cc (__set_errno): New function.
* fcntl.cc (_fcntl): Fix so that correct fd is used for second argument to
dup2.
* syscalls.cc (_cygwin_istext_for_stdio): Don't set errno here when using
cygheap_fdget.
ezannoni [Tue, 16 Oct 2001 03:23:34 +0000 (03:23 +0000)]
2001-10-15 Elena Zannoni <ezannoni@redhat.com>
* symtab.c (lookup_block_symbol): Update comment.
dj [Tue, 16 Oct 2001 02:55:31 +0000 (02:55 +0000)]
merge from gcc
hp [Tue, 16 Oct 2001 02:39:43 +0000 (02:39 +0000)]
* gas/sh/err-le.s, gas/sh/err-be.s: New tests.
hp [Tue, 16 Oct 2001 02:36:19 +0000 (02:36 +0000)]
* config/tc-sh.c (shl): Remove.
(big): New function.
(little): Remove shl handling. Emit error for endian mismatch.
(md_show_usage): Add description of -big.
(md_parse_option): Handle OPTION_BIG. Remove shl handling.
(OPTION_BIG): Add.
(md_pseudo_table): Add .big.
(md_longopts): Add -big.
(md_begin): Don't set target_big_endian here.
* config/tc-sh.h (TARGET_BYTES_BIG_ENDIAN): Remove.
(LISTING_HEADER, COFF_MAGIC, TARGET_FORMAT): Use target_big_endian.
(shl): Remove.
* configure.in (endian): Default is big.
(sh-*-pe*): Little endian.
(cpu_type): Set sh for target sh*.
* configure: Regenerate.
cagney [Tue, 16 Oct 2001 01:58:07 +0000 (01:58 +0000)]
* value.h (value_as_address): Rename value_as_pointer.
* eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
values.c: Update.
cagney [Tue, 16 Oct 2001 01:19:09 +0000 (01:19 +0000)]
202001-10-15 Jim Ingham <jingham@inghji.apple.com>
* valarith.c (value_sub): Don't pass a raw type to
value_from_pointer, it has to go through check_typedef first.
amodra [Tue, 16 Oct 2001 00:00:05 +0000 (00:00 +0000)]
daily update
cgf [Mon, 15 Oct 2001 23:39:32 +0000 (23:39 +0000)]
* fhandler.cc (fhandler_base::fork_fixup): Don't protect handle.
* dlfcn.cc: Fix to confirm to coding standards. Reorganize includes throughout
to accomodate new cygheap.h usage.
* cygheap.h (cygheap_fdmanip): New class: simplifies locking and retrieval of
fds from cygheap->fdtab.
(cygheap_fdget): Ditto.
(cygheap_fdnew): Ditto.
* fcntl.cc (_fcntl): Use new method to lock fdtab and retrieve info.
* ioctl.cc (ioctl): Ditto.
* mmap.cc (mmap): Ditto.
* net.cc: Ditto, throughout.
* passwd.cc (getpass): Ditto.
* path.cc (fchdir): Ditto.
* pipe.cc (make_pipe): Ditto.
* sec_acl.cc (facl): Ditto.
* syscalls.cc: Ditto, throughout.
* termios.cc: Ditto, throughout.
amodra [Mon, 15 Oct 2001 23:28:20 +0000 (23:28 +0000)]
* emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
-z nocopyreloc and -z nocombreloc usage strings.
davidsb [Mon, 15 Oct 2001 22:32:46 +0000 (22:32 +0000)]
new known problem "hang or core-dump during make"
davidsb [Mon, 15 Oct 2001 21:51:36 +0000 (21:51 +0000)]
cvs+ssh problem on Win9x now FITNR.
cagney [Mon, 15 Oct 2001 21:38:43 +0000 (21:38 +0000)]
Provide a valid non-multi-arch default for INTEGER_TO_ADDRESS.
fche [Mon, 15 Oct 2001 21:01:42 +0000 (21:01 +0000)]
2001-10-15 Frank Ch. Eigler <fche@redhat.com>
* cdk-guide/Makefile (normalize): Rewrite.
(pdf, html): Add "-i" sgml flags for print/html entity marks.
* sid-guide/Makefile: Ditto.
* cdk-guide/book-cdk.sgml: Add date & rendering marks.
* sid-guide/book-sid.sgml: Ditto.
ths [Mon, 15 Oct 2001 19:48:03 +0000 (19:48 +0000)]
* config/tc-mips.c (md_apply_fix): Preliminary handling of NewABI
relocations.
cagney [Mon, 15 Oct 2001 18:18:29 +0000 (18:18 +0000)]
Add INTEGER_TO_ADDRESS to hadle nasty harvard architectures that do
funnies to integer to address conversions.
cgf [Mon, 15 Oct 2001 15:44:37 +0000 (15:44 +0000)]
* mkpasswd.cc (enum_users): Shorten "unused" passwd field.
amodra [Mon, 15 Oct 2001 12:58:47 +0000 (12:58 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Report some detail on
bfd_reloc_outofrange and similar errors.
amodra [Mon, 15 Oct 2001 09:45:43 +0000 (09:45 +0000)]
* elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
rather than ind->weakdef.
* elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
* elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
* elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
* elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
corinna [Mon, 15 Oct 2001 09:41:18 +0000 (09:41 +0000)]
* uname.cc (uname): Use `wProcessorLevel' unless OS sets it wrong.
Use `dwProcessorType' then instead.
* wincap.cc: Set flag has_valid_processorlevel appropriately.
* wincap.h: Add flag has_valid_processorlevel.
amodra [Mon, 15 Oct 2001 07:28:44 +0000 (07:28 +0000)]
* elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
counts for aliases instead of aborting.
* elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
* elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
to -1 for non-function symbols.
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
* elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
* elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
plt.offset instead of plt.refcount when setting to -1.
amodra [Mon, 15 Oct 2001 01:16:16 +0000 (01:16 +0000)]
daily update
hp [Mon, 15 Oct 2001 00:14:37 +0000 (00:14 +0000)]
* ld-sh/sub2l-1.d, ld-sh/shared-1.d, ld-sh/weak1.d: Only run on
sh*-*-elf.
kettenis [Sun, 14 Oct 2001 21:04:04 +0000 (21:04 +0000)]
* config/s390/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
kettenis [Sun, 14 Oct 2001 20:59:23 +0000 (20:59 +0000)]
* config/nm-linux.h (struct objfile): Remove forward declaration.
(linuxthreads_new_objfile): Remove prototype.
(linuxthreads_pid_to_str): Remove prototype.
(PREPARE_TO_PROCEED): Redefine in terms of
lin_lwp_prepare_to_proceed.
(struct target_waitstatus): Forward declaration.
(child_wait): New prototype.
(CHILD_WAIT): Define.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Moved here from arch-specific files.
* config/alpha/nm-linux.h, config/arm/nm-linux.h,
config/ia64/nm-linux.h, config/mips/nm-linux.h,
config/powerpc/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
* config/i386/nm-linux.h: Likewise.
(struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
* config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
Remove linux-thread.o. Add proc-service.o, thread-db.o and
lin-lwp.o.
(LOADLIBES): New variable.
kettenis [Sun, 14 Oct 2001 20:42:07 +0000 (20:42 +0000)]
* config/nm-linux.h (struct objfile): Remove forward declaration.
(linuxthreads_new_objfile): Remove prototype.
(linuxthreads_pid_to_str): Remove prototype.
(PREPARE_TO_PROCEED): Redefine in terms of
lin_lwp_prepare_to_proceed.
(struct target_waitstatus): Forward declaration.
(child_wait): New prototype.
(CHILD_WAIT): Define.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Moved here from arch-specific files.
* config/alpha/nm-linux.h, config/arm/nm-linux.h,
config/ia64/nm-linux.h, config/mips/nm-linux.h,
config/powerpc/nm-linux.h: Don't include <signal.h>.
(lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
GET_THREAD_SIGNAL): Remove.
* config/i386/nm-linux.h: Likewise.
(struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
* config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
Remove linux-thread.o. Add proc-service.o, thread-db.o and
lin-lwp.o.
(LOADLIBES): New variable.
kettenis [Sun, 14 Oct 2001 17:15:12 +0000 (17:15 +0000)]
* sparc-nat.c (fetch_core_registers): Remove redundant prototype.
hp [Sun, 14 Oct 2001 16:03:53 +0000 (16:03 +0000)]
* lib/ld-lib.exp (run_dump_test): Fix typo: asflags(), not asflags{}.
cgf [Sun, 14 Oct 2001 15:49:13 +0000 (15:49 +0000)]
* dtable.cc (dtable::build_fhandler_from_name): Use PC_FULL to determine path
name.
* fork.cc (fork_parent): Correct the "unable to allocate forker_finished event"
error message. It named the wrong event before.
hp [Sun, 14 Oct 2001 15:18:10 +0000 (15:18 +0000)]
* ld-sh/rd-sh.exp: New framework file.
* ld-sh/ld-r-1.d, ld-sh/ldr1.s, ld-sh/ldr2.s, ld-sh/shared-1.d,
ld-sh/weak1.s, ld-sh/weak1.d, ld-sh/sub2l.s, ld-sh/sub2l-1.d: New
test files.
kettenis [Sun, 14 Oct 2001 11:50:37 +0000 (11:50 +0000)]
* proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
kettenis [Sun, 14 Oct 2001 11:30:36 +0000 (11:30 +0000)]
Fix attaching to cloned processes. This fixes PR gdb/61.
* lin-lwp.c (struct lwp_info): Add new member `cloned'.
(is_cloned) Removed.
(lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
waitpid explicitly. Mark the LWP as cloned if waitpid fails and
retry with __WCLONE flag.
(lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
(detach_callback): Replace use of is_cloned with explicit check on
LWP id and process id.
(stop_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
[CHILD_WAIT] (child_wait): New function.
(lin_lwp_wait): Replace use of is_cloned with check if LWP is
marked as cloned. Mark newly detected LWPs as cloned if detected
by waitpid with __WCLONE flag.
(kill_wait_callback): Replace use of is_cloned with check if LWP
is marked as cloned.
* config/i386/nm-linux.h (struct target_waitstatus): Add forward
declaration.
(child_wait): Add prototype.
(CHILD_WAIT): Define.
cgf [Sun, 14 Oct 2001 04:14:23 +0000 (04:14 +0000)]
* autoload.cc (load_wsock32): Declare dummy function to force loading of
winsock.
* fhandler.cc (fhandler_base::set_inheritance): Make debugging output more
verbose.
* fhandler_socket.cc (fhandler_socket::fixup_after_fork): Force loading of
winsock32 if winsock2 not available.
* net.cc (set_socket_inheritance): Use DuplicateHandle in all cases to set
inheritance correctly.
(fdsock): Use winsock2_active macro to determine when to set socket
inheritance. Remove fdtab resource locking since this function should already
be protected.
(cygwin_accept): Simplify logic. Ensure that fdtab unlock is not called
inappropriately.
(cygwin_rcmd): Use fdtab locking.
(cygwin_rresvport): Ditto.
(cygwin_rexec): Ditto.
* select.cc (peek_socket): Set errno appropriately if winsock select fails.
* winsup.h: Declare check_pty_fds.
* syscalls.cc (check_pty_fds): Rename from check_ttys_fds. Also check pty
master.
(setsid): Use check_pty_fds.
* dtable.cc (dtable::dec_console_fds): Add check on pty fds.
mrg [Sun, 14 Oct 2001 01:19:08 +0000 (01:19 +0000)]
[gas/testsuite/ChangeLog]
* gas/ppc/booke.s (rfci, wrtee, wrteei, mfdcrx, mfdcr, mtdcrx,
mtdcr, msync, dcba, mbar): New BookE tests.
* gas/ppc/booke.d: Update for new BookE tests.
[opcodes/ChangeLog]
* ppc-opc.c (MO): New macro for MO field of mbar instruction.
(powerpc_opcodes): Add rfci, wrtee, wrteei, mfdcrx, mfdcr,
mtdcrx, mtdcr, msync, dcba and mbar as BookE instructions.
amodra [Sun, 14 Oct 2001 00:00:05 +0000 (00:00 +0000)]
daily update
cagney [Sat, 13 Oct 2001 22:13:35 +0000 (22:13 +0000)]
S/390 31 & 64 bit target and GNU/Linux native support.
Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
* s390-nat.c, s390-tdep.c: New file.
* config/s390/nm-linux.h, config/s390/s390.mh: New file.
* config/s390/s390.mt, config/s390/s390x.mt: New file.
* config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
* config/s390/xm-linux.h: New file.
* NEWS: Update.
* MAINTAINERS: Update.
cagney [Sat, 13 Oct 2001 19:40:30 +0000 (19:40 +0000)]
From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
* gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
CALL_DUMMY_BREAKPOINT_OFFSET_P.
* gdbarch.c: Regenerate.
cgf [Sat, 13 Oct 2001 17:23:35 +0000 (17:23 +0000)]
* fhandler_dsp.cc (fhandler_dsp::ioctl): Return 0 for successful
SNDCTL_DSP_GETBLKSIZE operation. Remove obsolete 'name' arg from fhandler_*
constructors throughout.
* winsup.h (winsock_active): New macro.
(winsock2_active): Ditto.
* autoload.cc (wsock_init): Use new macros to decide if winsock or winsock2 is
loaded.
(nonexist_wsock32): Dummy function to force winsock load.
(nonexist_ws2_32): Dummy function to force winsock2 load.
* fhandler.h (fhandler_socket::fstat): Declare new method. Currently unused.
* fhandler_socket.cc (fhandler_socket::fixup_before_fork_exec): Check that
winsock2 is active before trying WSADuplicateSocketA.
(fhandler_socket::fixup_after_fork): Add extra check for winsock2_active.
Otherwise use iffy procedures for Windows 95.
(fhandler_socket::fixup_after_exec): Add debugging.
(fhandler_socket::dup): Add debugging.
(fhandler_socket::fstat): New method.
(fhandler_socket::set_close_on_exec): Attempt to perform iffy stuff on Windows
95.
* errno.cc (_sys_nerr): Work around compiler strangeness.
* pinfo.cc (winpids::add): Add extra element at end of allocated array for
setting to NULL.
(winpids::enumNT): Ditto.
(winpids::init): Don't modify pidlist if it hasn't been allocated
(possibly due to malloc problem).
kettenis [Sat, 13 Oct 2001 15:04:01 +0000 (15:04 +0000)]
* thread-db.c: Fix a few formatting mistakes.
nickc [Sat, 13 Oct 2001 10:00:30 +0000 (10:00 +0000)]
support multiple options to the -w switch
nickc [Sat, 13 Oct 2001 09:50:01 +0000 (09:50 +0000)]
Replace CONST with const