OSDN Git Service

pf3gnuchains/sourceware.git
23 years agogas/
jakub [Fri, 20 Oct 2000 10:38:45 +0000 (10:38 +0000)]
gas/
* config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
instructions to loose any special insn->architecture mask.

* config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
(sparc_md_end, sparc_arch_types, sparc_arch,
sparc_elf_final_processing): Handle v8plusb and v9b architectures.
(sparc_ip): Handle siam mode operands. Support v9b ASRs (and
request v9b architecture if they are used).

bfd/
* elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
elf32_sparc_object_p, elf32_sparc_final_write_processing):
Support v8plusb.
* elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
sparc64_elf_object_p): Support v9b.
* archures.c: Declare v8plusb and v9b machines.
* bfd-in2.h: Ditto.
* cpu-sparc.c: Ditto.

include/opcode/
* sparc.h (enum sparc_opcode_arch_val): Add SPARC_OPCODE_ARCH_V9B.
Note that '3' is used for siam operand.

opcodes/
* sparc-dis.c (v9a_asr_reg_names): Add v9b ASRs.
(compute_arch_mask): Add v8plusb and v9b machines.
(print_insn_sparc): siam mode decoding, accept ASRs up to 25.
* opcodes/sparc-opc.c: Support for Cheetah instruction set.
(prefetch_table): Add #invalidate.

23 years agoAdd Fred Fish to the Blanket Write Privs list.
cagney [Fri, 20 Oct 2000 08:21:45 +0000 (08:21 +0000)]
Add Fred Fish to the Blanket Write Privs list.

23 years agoMakefile.in shuffle.
cgf [Fri, 20 Oct 2000 04:39:21 +0000 (04:39 +0000)]
Makefile.in shuffle.

23 years ago* external.cc (fillout_pinfo): Pass PID_NOREDIR flag to pinfo init to avoid
cgf [Fri, 20 Oct 2000 04:20:21 +0000 (04:20 +0000)]
* external.cc (fillout_pinfo): Pass PID_NOREDIR flag to pinfo init to avoid
finding execed processes twice.
* signal.cc (kill_pgrp): Ditto.
* spawn.cc (spawn_guts): Avoid passing first argument to CreateProcess when
running a windows shell so that CreateProcess will locate the shell.
Reorganize so that correct error is returned when CreateProcess fails.

23 years agoProtoization.
kevinb [Fri, 20 Oct 2000 00:44:49 +0000 (00:44 +0000)]
Protoization.

23 years agoFrom Daniel Berlin <dberlin@redhat.com> :
cgf [Fri, 20 Oct 2000 00:15:30 +0000 (00:15 +0000)]
From Daniel Berlin <dberlin@redhat.com> :
* symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize the symbol language to auto
instead of unknown, so it will try to demangle the symbol.
* symtab.h (OPNAME_PREFIX_P): Change operator prefix to correct value.
* symtab.c (gdb_mangle_name): Properly handle C++ operators.

23 years ago2000-10-19 Michael Snyder <msnyder@cleaver.cygnus.com>
msnyder [Thu, 19 Oct 2000 21:46:42 +0000 (21:46 +0000)]
2000-10-19  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * config/gdbserver.exp:  Rewritten from the ground up, to make it
        compatible with the current dejagnu tree, and to make it work with
        the new "gdbserver" in libremote.

23 years ago2000-10-19 Michael Snyder <msnyder@cleaver.cygnus.com>
msnyder [Thu, 19 Oct 2000 21:45:09 +0000 (21:45 +0000)]
2000-10-19  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * baseboards/linux-gdbserver.exp: New file.
        * baseboards/linux-libremote.exp: New file.

23 years ago * Makefile.in: increment VERSION. Change tar file name for dist and
earnie [Thu, 19 Oct 2000 20:56:50 +0000 (20:56 +0000)]
    * Makefile.in: increment VERSION.  Change tar file name for dist and
bindist targets to be more standard.
* config.guess: Update with the currently published file.
* config.sub: ditto.
* configure.in: Use value of build_alias instead of testing for
directory names to set BUILDENV.
* configure: ditto.
* lib/Makefile.in: Change the name of the targets install,
install-headers and install-libraries to xinstall, xinstall-headers
and xinstall-libraries for system target specified installation.
Recreate targets install, install-headers and install-libraries for
exec-prefix specified installation.  Ditto for the uninstall targets of
the same name.

23 years ago * Makefile.in: increment VERSION. Change tar file name for dist and
earnie [Thu, 19 Oct 2000 20:56:50 +0000 (20:56 +0000)]
    * Makefile.in: increment VERSION.  Change tar file name for dist and
bindist targets to be more standard.
* config.guess: Update with the currently published file.
* config.sub: ditto.
* configure.in: Use value of build_alias instead of testing for
directory names to set BUILDENV.
* configure: ditto.
* lib/Makefile.in: Change the name of the targets install,
install-headers and install-libraries to xinstall, xinstall-headers
and xinstall-libraries for system target specified installation.
Recreate targets install, install-headers and install-libraries for
exec-prefix specified installation.  Ditto for the uninstall targets of
the same name.

23 years ago2000-10-19 H.J. Lu (hjl@gnu.org)
hjl [Thu, 19 Oct 2000 19:52:28 +0000 (19:52 +0000)]
2000-10-19  H.J. Lu  (hjl@gnu.org)

* ld-elfvsb/elfvsb.exp (visibility_run): Set expected failures
for Linux/PPC.
* ld-shared/shared.exp: Likewise.

23 years ago(readelf -S test, readelf -s test): Expect mips*-*-* to fail.
nickc [Thu, 19 Oct 2000 18:04:55 +0000 (18:04 +0000)]
(readelf -S test, readelf -s test): Expect mips*-*-* to fail.

23 years ago* dcrt0.cc (sigthread::init): Correct overzealous ifdef.
cgf [Thu, 19 Oct 2000 17:57:28 +0000 (17:57 +0000)]
* dcrt0.cc (sigthread::init): Correct overzealous ifdef.
* exceptions.cc (call_handler): Avoid calling sigthread acquire lock.
* sigproc.h (sigthread): Comment out lock for now.
* sync.cc (muto::acquire): Add a minor optimization.

23 years ago* cleanup
fche [Thu, 19 Oct 2000 10:52:52 +0000 (10:52 +0000)]
* cleanup

2000-10-19  Frank Ch. Eigler  <fche@redhat.com>

On advice from Chris G. Demetriou <cgd@sibyte.com>:
* sim-main.h (GPR_CLEAR): Remove unused alternative macro.

23 years ago * itcl/generic/itcl_objects.c (Itcl_CreateObject):
mdejong [Thu, 19 Oct 2000 04:31:53 +0000 (04:31 +0000)]
    * itcl/generic/itcl_objects.c (Itcl_CreateObject):
        Add code to check for an object that deletes itself
        inside its own constructor. We need to avoid adding
        this object to the global object list.

23 years agoEnsure section sizes are multiples of 16, so that targets like MIPS
amodra [Thu, 19 Oct 2000 03:19:51 +0000 (03:19 +0000)]
Ensure section sizes are multiples of 16, so that targets like MIPS
that pad out sections won't fail these tests.

23 years ago* Makefile.in: add miscfuncs.cc
dj [Thu, 19 Oct 2000 03:12:44 +0000 (03:12 +0000)]
* Makefile.in: add miscfuncs.cc
* miscfuncs.cc: new, miscellaneous functions
* winsup.h: define table-driven tolower/toupper
* environ.cc: use them
* fhandler_console.cc: ditto
* fhandler_termios: ditto
* path.cc: ditto
(strncasematch, strcasematch, strcasestr): move to miscfuncs.cc

23 years ago* ssp.c: new
dj [Thu, 19 Oct 2000 02:13:52 +0000 (02:13 +0000)]
* ssp.c: new
* ssp.txt: new
* Makefile.in: build ssp.exe

23 years ago* sigproc.h (sigthread): Eliminate locking for now since per thread signalling
cgf [Thu, 19 Oct 2000 00:53:25 +0000 (00:53 +0000)]
* sigproc.h (sigthread): Eliminate locking for now since per thread signalling
is not available.
* dcrt0.cc (sigthread::init): Ditto.
(dll_crt0_1): Move set_process_privileges call (temporarily?) to pinfo_init.
(pinfo_init): Only call set_process_privileges when allow_ntsec.

23 years ago* dcrt0.cc (dll_crt0_1): init cygcwd before forkee branch
dj [Thu, 19 Oct 2000 00:45:39 +0000 (00:45 +0000)]
* dcrt0.cc (dll_crt0_1): init cygcwd before forkee branch

* environ.cc (conv_start_chars): Cache a table of "first
characters" for environment variables needing conversion.
(getwinenv): Use it.
(environ_init): Create it, also check first chars for TERM and
CYGWIN.

* path.cc: Use lookup table for case insensitive comparisons.

23 years ago* ps.cc (main): Add some extra space to Windows pid output for Windows 95.
cgf [Wed, 18 Oct 2000 22:58:34 +0000 (22:58 +0000)]
* ps.cc (main): Add some extra space to Windows pid output for Windows 95.

23 years ago2000-10-18 H.J. Lu <hjl@gnu.org>
hjl [Wed, 18 Oct 2000 19:46:27 +0000 (19:46 +0000)]
2000-10-18  H.J. Lu <hjl@gnu.org>

* gas/i386/intel.d: Fix the support for 64bit BFD in the last
change.

23 years agoFix the previous misapplied patch.
nickc [Wed, 18 Oct 2000 19:26:57 +0000 (19:26 +0000)]
Fix the previous misapplied patch.

23 years agoRELAX_RELOC_*: New definitions for both BFD_ASSEMBLER and !BFD_ASSEMBLER.
nickc [Wed, 18 Oct 2000 17:42:27 +0000 (17:42 +0000)]
RELAX_RELOC_*: New definitions for both BFD_ASSEMBLER and !BFD_ASSEMBLER.

23 years agoUpdate entry "Why are compiled executables so huge?!?", add bit about 'gcc -s'.
davidsb [Wed, 18 Oct 2000 15:32:50 +0000 (15:32 +0000)]
Update entry "Why are compiled executables so huge?!?", add bit about 'gcc -s'.

23 years agoMinor update to "How can I find out which dlls are needed by an executable?",
davidsb [Wed, 18 Oct 2000 15:16:45 +0000 (15:16 +0000)]
Minor update to "How can I find out which dlls are needed by an executable?",
indicate that cygcheck works recursively.

23 years agoUpdate entry "How do anti-virus programs like Cygwin?",
davidsb [Wed, 18 Oct 2000 14:36:07 +0000 (14:36 +0000)]
Update entry "How do anti-virus programs like Cygwin?",
adding bit about performance hit and exempting C:\cygwin\bin from scanning.

23 years agoUpdate entry "Why can't I run bash as a shell under NT Emacs?",
davidsb [Wed, 18 Oct 2000 14:15:09 +0000 (14:15 +0000)]
Update entry "Why can't I run bash as a shell under NT Emacs?",
remove old disclaimer.

23 years agoUpdate entry "Shell scripts aren't running properly from my makefiles?",
davidsb [Wed, 18 Oct 2000 13:43:56 +0000 (13:43 +0000)]
Update entry "Shell scripts aren't running properly from my makefiles?",
remove old disclaimer.

23 years agoRelevant bits subsumed in what.texinfo, separate mirrors list discarded.
davidsb [Wed, 18 Oct 2000 13:12:14 +0000 (13:12 +0000)]
Relevant bits subsumed in what.texinfo, separate mirrors list discarded.

23 years ago * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
hp [Wed, 18 Oct 2000 13:10:12 +0000 (13:10 +0000)]
* scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
for consecutive sections.

23 years agoUpdate "Is it free software?" entry re. 1.0 CD. All in past tense,
davidsb [Wed, 18 Oct 2000 13:04:27 +0000 (13:04 +0000)]
Update "Is it free software?" entry re. 1.0 CD.  All in past tense,
no longer shipping, refer to cygwin-cd.html for latest news.

23 years agoMinor, mention mirror sites in "Where can I get it?".
davidsb [Wed, 18 Oct 2000 12:48:31 +0000 (12:48 +0000)]
Minor, mention mirror sites in "Where can I get it?".

23 years agoAdd new section "Where can I get it?" to what.texinfo.
davidsb [Wed, 18 Oct 2000 12:34:41 +0000 (12:34 +0000)]
Add new section "Where can I get it?" to what.texinfo.
Omit sites.texinfo altogether (mirror list not useful).

23 years agoDelete entry "Ancient history of the project", replace with link to history.html.
davidsb [Wed, 18 Oct 2000 11:52:15 +0000 (11:52 +0000)]
Delete entry "Ancient history of the project", replace with link to history.html.

23 years ago* ps.cc (main): Add some extra space to pid output for Windows 95.
cgf [Wed, 18 Oct 2000 04:55:01 +0000 (04:55 +0000)]
* ps.cc (main): Add some extra space to pid output for Windows 95.

23 years ago* exceptions.cc (call_handler): Make signal pending if sigsave.sig is still
cgf [Wed, 18 Oct 2000 04:53:37 +0000 (04:53 +0000)]
* exceptions.cc (call_handler): Make signal pending if sigsave.sig is still
active.
* syscalls.cc (_read): Don't clear errno.
* sigproc.cc (wait_sig): Don't scan the waiting process list after a SIGCHLD if
there are no zombies to reap.
* winsup.h: Use __builtin_strcmp.
* environ.cc (posify): Don't initialize len unless it is required
(from DJ Delorie <dj@redhat.com>).

23 years agoProtoization.
kevinb [Wed, 18 Oct 2000 03:29:25 +0000 (03:29 +0000)]
Protoization.

23 years ago2000-10-17 Kazu Hirata <kazu@hxi.com>
kazu [Tue, 17 Oct 2000 20:21:45 +0000 (20:21 +0000)]
2000-10-17  Kazu Hirata  <kazu@hxi.com>

* debug.c: Fix formatting.
* depend.c: Likewise.
* dwarf2dbg.c: Likewise.
* dwarf2dbg.h: Likewise.
* ecoff.c: Likewise.
* expr.c: Likewise.
* expr.h: Likewise.
* flonum-konst.c: Likewise.
* frags.h: Likewise.

23 years agoAdded new option --target-help.
cchavva [Tue, 17 Oct 2000 20:10:20 +0000 (20:10 +0000)]
Added new option --target-help.

23 years agoAdded new option --target-help.
cchavva [Tue, 17 Oct 2000 20:08:37 +0000 (20:08 +0000)]
Added new option --target-help.

23 years ago2000-10-16 Michael Snyder <msnyder@cleaver.cygnus.com>
msnyder [Tue, 17 Oct 2000 20:00:21 +0000 (20:00 +0000)]
2000-10-16  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * lib/gdb.exp (gdb_skip_float_test): New proc.  Skip test if
        no floating point support.
        (gdb_skip_stdio_test): New proc.  Skip test if no stdio support.
        * gdb.base/call-ar-st.exp: Use above procs to skip tests.
        * gdb.base/call-rt-st.exp: Ditto.
        * gdb.base/call-strs.exp: Ditto.
        * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support.
        * gdb.base/varargs.exp: Skip entire test if no printf support.
        * gdb.base/ending-run.exp (Step to return): Skip if no printf supt.
        * gdb.base/shlib-call.exp: Skip several tests if no printf support.

23 years ago* sigproc.cc (proc_subproc): Remove unneeded test for correct process in
cgf [Tue, 17 Oct 2000 18:55:58 +0000 (18:55 +0000)]
* sigproc.cc (proc_subproc): Remove unneeded test for correct process in
PROC_ADDCHILD.  Return 0 when terminated child has just been reparented.
(wait_subproc): Only send SIGCHLD when proc_subproc returns != 0.
* strace.cc (strace::vsprntf): Only strip .exe extension from program name.

23 years ago* fhandler_clipboard.cc: new file
dj [Tue, 17 Oct 2000 01:46:26 +0000 (01:46 +0000)]
* fhandler_clipboard.cc: new file
* Makefile.in: include fhandler_clipboard.o in DLL_OFILES list.
* fhandler.h: add FH_CLIPBOARD to the devices enum.
(fhandler_dev_clipboard): new
* path.cc (windows_device_names): add "\\dev\\clipboard"
(get_device_number): check for "clipboard"
* dcrt0.cc: declare a few more functions from winuser.h
* dtable.cc (dtable::build_fhandler): check for FH_CLIPBOARD in
switch().

23 years ago* debug.cc (add_handle): Issue warning on attempts to add the same handle more
cgf [Tue, 17 Oct 2000 01:42:04 +0000 (01:42 +0000)]
* debug.cc (add_handle): Issue warning on attempts to add the same handle more
than once.
* fhandler_tty.cc (fhandler_tty_slave::open): Protect some handles.
(fhandler_tty_common::close): Use proper name when closing handles.
(fhandler_pty_master::close): Don't close to_slave or from_slave since they've
already been closed earlier in the function.
* sigproc.cc (proc_subproc): Don't protect vchild->hProcess.  Expect that the
caller will do this, instead.
* tty.cc (tty_list::terminate): Use proper name when closing handles.
(tty::make_pipes): Protect some handles.

23 years ago* Makefile.in: Remove some obsolete stuff.
cgf [Mon, 16 Oct 2000 23:55:55 +0000 (23:55 +0000)]
* Makefile.in: Remove some obsolete stuff.
* dcrt0.cc (dll_crt0_1): Call signal_fixup_after_exec where appropriate.  Set
myself->uid from parent version.  Just use ThreadItem Init method.  Close or
store hexec_proc as appropriate.
(_dll_crt0): Store user_data->forkee here so that proper tests can be made
subsequently.
(do_exit): Remove hExeced stuff.
* environ.cc (environ_init): Accept environ count as well as environ pointer.
* environ.h: Reflect above change.
* pinfo.cc (pinfo_init): Ditto.  Accept environ count.
(fixup_in_spawned_child): Remove.
* spawn.cc (spawn_guts): Move signal code to dll_crt0_1.  Don't suspend execing
process since it is no longer necessary.  Store envc.
* exceptions.cc (signal_fixup_after_exec): New function.
(call_handler): Remove hExeced test.
* child_info.h (cygheap_exec_info): Store envc as well as envp.
(child_info_spawn): Store hexec_proc so that it can be closed in child.
* path.cc (normalize_posix_path): Avoid intermediate use of temporary cwd buf.
(normalize_win32_path): Ditto.
(cwdstuff::get_initial): Always set lock.
* sigproc.h: Remove hExeced.
* strace.cc (strace::vsprntf): Modify to accomodate for lack of hExeced.
* thread.cc (MTinterface::Init): Merge Init1 and ClearReent into this method.
(MTinterface::Init1): Eliminate.
(MTinterface::ClearReent): Eliminate.
* thread.h: Reflect above changes.
* include/sys/strace.h (strace): Make microseconds() public.  Make various
functions 'regparm', throughout.
* pinfo.h (_pinfo): Inline simple signal manipulation functions.  Requires
inclusion of thread.h which was removed from .cc files, where appropriate.
throughout.
* pinfo.cc: Eliminate signal manipulation functions.
(_pinfo::exit): Calculate total rusage for exiting process here.
* cygheap.cc (size2bucket): Eliminate.
(init_buckets): Ditto.
(_cmalloc): Calculate size and bits in a loop rather than going through a
function call.
(_crealloc): Use stored array index to calculate allocated size.
* spawn.cc (spawn_guts): Use _pinfo exit method to exit, calculating cpu usage.

23 years ago * cygcheck.cc (main): Fix argument counting.
corinna [Mon, 16 Oct 2000 23:12:58 +0000 (23:12 +0000)]
    * cygcheck.cc (main): Fix argument counting.

23 years ago * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
geoffk [Mon, 16 Oct 2000 20:49:52 +0000 (20:49 +0000)]
* elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
of a GOT reloc.

23 years ago * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
geoffk [Mon, 16 Oct 2000 19:52:26 +0000 (19:52 +0000)]
* elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
(SYMBOL_CALLS_LOCAL): New macro.
(ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
(ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
(ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
(ppc_elf_relocate_section): Use flag variable to determine
whether the relocation refers to a local symbol.
Test whether a PLTREL24 reloc will produce a reloc by looking
to see whether a PLT entry was made.

23 years ago * config/tc-sh.c (JREG): Remove.
hp [Mon, 16 Oct 2000 19:44:38 +0000 (19:44 +0000)]
* config/tc-sh.c (JREG): Remove.
(md_convert_frag): Remove #if 0:d code using JREG.

23 years agoAdd tests of return values from bfd function calls
nickc [Mon, 16 Oct 2000 19:08:45 +0000 (19:08 +0000)]
Add tests of return values from bfd function calls

23 years agoChange mask for OC to 0xFE00
nickc [Mon, 16 Oct 2000 18:18:46 +0000 (18:18 +0000)]
Change mask for OC to 0xFE00

23 years ago * sparc-tdep.c (sparc_fix_call_dummy): Improve comments.
schauer [Mon, 16 Oct 2000 17:19:47 +0000 (17:19 +0000)]
* sparc-tdep.c (sparc_fix_call_dummy):  Improve comments.
Adjust call_dummy_breakpoint_offset, so that `finish' after a stop
in a call dummy works.
(sparc_gdbarch_init):  Fix setting of pc_in_call_dummy, it depends
on SPARC32/64_CALL_DUMMY_ON_STACK, not DO_CALL_DUMMY_ON_STACK.

23 years agoSpelling changes from Dmitry Sivachenko <dima@Chg.RU>.
eliz [Mon, 16 Oct 2000 07:34:02 +0000 (07:34 +0000)]
Spelling changes from Dmitry Sivachenko <dima@Chg.RU>.

23 years agoProtoization.
kevinb [Mon, 16 Oct 2000 06:42:28 +0000 (06:42 +0000)]
Protoization.

23 years agogas:
dnovillo [Sun, 15 Oct 2000 06:17:35 +0000 (06:17 +0000)]
gas:

2000-10-15  Diego Novillo  <dnovillo@cygnus.com>

* config/tc-i386.c (i386_operand_modifier): Only match
modifiers SHORT and FLAT if they are followed by a space.
(parse_register): When `allow_naked_reg' is set, do not confuse
identifiers that start with a register name with a register.

gas/testsuite:

2000-10-15  Diego Novillo  <dnovillo@cygnus.com>

* intel.s, intel.d: Add new tests for naked registers using intel
syntax.

23 years ago* ps.cc (main): Accomodate new PID_ constant.
cgf [Sun, 15 Oct 2000 03:43:48 +0000 (03:43 +0000)]
* ps.cc (main): Accomodate new PID_ constant.

23 years ago* exceptions.cc (set_console_handler): Don't allocate
cgf [Sun, 15 Oct 2000 01:37:06 +0000 (01:37 +0000)]
* exceptions.cc (set_console_handler): Don't allocate
console_handler_thread_waiter.  It is obsolete.
(ctrl_c_handler): Don't use console_handler_thread_waiter.
* path.cc (hash_path_name): Fix handling of relative names.  Make case
insensitive.
* path.h (suffix_info): Use initializers.
* pinfo.h (_pinfo): Avoid initializers for null case.
* resource.cc (fill_rusage): Zero rest of rusage structure.
* security.cc (set_process_privileges): Don't reopen parent process.  Just use
hMainProc.
* signal.cc (signal): Track when a signal handler has been used.
(sigaction): Ditto.
* sigproc.cc (pchildren): Use default initializer.
(zombies): Ditto.
(sigproc_terminate): Avoid closing handles that will be closed on exit anyway.
(wait_sig): Send signal to "parent" on EXECing, not FORKing.
(wait_subproc): Send SIGCHLD here rather than in proc_wait to avoid potential
muto conflicts.
* sigproc.h (sigthread): Don't initialize to zero.  It's the default.
* spawn.cc (spawn_guts): Fill in resources from exec parent prior to
termination.
* sync.h (muto): Don't initialize to zero.
* syscalls.cc (close_all_files): Use one lock around entire loop and call
fhandler close/release stuff directly.
(_read): Don't use ready_for_read if there are not signal handlers active.
* dcrt0.cc (dll_crt0_1): Fix display of "title".
(do_exit): Use pinfo exit method to exit.
(__api_fatal): Ditto.
* exceptions.cc (signal_exit): Ditto.
* fork.cc (fork_child): Remove debugging stuff.  Use pinfo_fixup_after fork in
place of exec_fixup_after_fork.
* pinfo.cc (pinfo_fixup_after_fork): New method.
(pinfo_fixup_in_spawned_child): Ditto.
(_pinfo::exit): New method.
(_pinfo::init): Remove recursion.  Detect pathological case where pinfo
structure already exists for new pid.
* pinfo.h (_pinfo): Reorganize slightly.  Add new method and new function
declarations.
* sigproc.cc (proc_exists): Previous simplification was a little to simple.
Try harder to detect if a process exists.
(proc_terminate): Use PID_EXITED setting to determine if process is still
around.
(WFSO): Remove debugging statement.
(WFMO): Ditto.
* spawn.cc (exec_fixup_after_fork): Eliminate.
(spawn_guts): Always set old_title to NULL.  Is it really needed?  Move
hexec_proc to pinfo.cc.  Call pinfo_fixup_in_spawned_child to eliminate handle
link after a spawn.
* include/sys/cygwin.h: Remove PID_NOT_IN_USE.  Add PID_EXITED.

23 years ago * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
geoffk [Sat, 14 Oct 2000 23:30:12 +0000 (23:30 +0000)]
* elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
entries that could serve as a definition for a weak symbol.

23 years agoForgot to commit ChangeLog
corinna [Sat, 14 Oct 2000 08:56:17 +0000 (08:56 +0000)]
Forgot to commit ChangeLog

23 years ago * cygwin.din: Add symbol hstrerror.
corinna [Sat, 14 Oct 2000 08:55:44 +0000 (08:55 +0000)]
    * cygwin.din: Add symbol hstrerror.
        * net.cc: Change meaning of member `s' of struct host_errmap.
        (set_host_errno): Fix error in loop condition.
        (hstrerror): Ditto.
        (herror): Add appropriate functionality.
        * include/netdb.h: Add declaration of hstrerror.
        * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 29.

23 years ago* cygheap.cc (cygheap_fixup_in_child): Don't page round cygheap copied from
cgf [Sat, 14 Oct 2000 05:52:38 +0000 (05:52 +0000)]
* cygheap.cc (cygheap_fixup_in_child): Don't page round cygheap copied from
parent.
* dcrt0.cc (do_exit): Don't cleanup pinfo on exit.  That happens automatically
now.
* exceptions.cc (signal_exit): Ditto.
* fork.cc (fork_parent): Use stack_here value passed in from fork().
(fork): Figure out top of stack here and pass it to fork_parent.
* pinfo.cc (_pinfo::record_death): Eliminate.
* pinfo.h (_pinfo): Ditto.
* sigproc.cc (proc_exists): Simplify.
(proc_terminate): Ditto.
(remove_zombie): Don't cleanup pinfo stuff.
(wait_sig): Send subproc_ready signal whether execed or spawned.
* spawn.cc (spawn_guts): Always create subproc_ready event.  Use it for both
exec and spawn.
(_spawnve): Send proper mode to spawn_guts when mode != _P_OVERLAY.

23 years ago2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
ulfc [Sat, 14 Oct 2000 04:05:23 +0000 (04:05 +0000)]
2000-10-13  Ulf Carlsson  <ulfc@engr.sgi.com>

From  Ralf Baechle  <ralf@gnu.org>

* elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
local_p.  Add symbol value only for non-R_MIPS_REL32 relocations
against local symbols.
(_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.

23 years agoAdd comment.
cgf [Sat, 14 Oct 2000 01:03:01 +0000 (01:03 +0000)]
Add comment.

23 years ago2000-10-13 Fernando Nasser <fnasser@cygnus.com>
fnasser [Fri, 13 Oct 2000 21:41:21 +0000 (21:41 +0000)]
2000-10-13  Fernando Nasser  <fnasser@cygnus.com>

* remote.c (putpkt_binary): Call read_frame, not getpkt. Log message.
(read_frame): Do not call error() on communication error when
reading checksum, but return failure instead and log message.

23 years ago2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
fnasser [Fri, 13 Oct 2000 20:50:44 +0000 (20:50 +0000)]
2000-10-13  Fernando Nasser  <fnasser@totem.to.cygnus.com>

* gdbtk.c (target_is_native): The "multi-thread" target is native.

23 years ago2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
fnasser [Fri, 13 Oct 2000 20:42:54 +0000 (20:42 +0000)]
2000-10-13  Fernando Nasser  <fnasser@totem.to.cygnus.com>

* varobj.c (type_changeable): Arrays are not changeable.
Trying to check for updates was causing an error if the array lived
in a register as gdb value_equal() cannot handle that case yet.

23 years agoOops - fix mistake in previous delta where unused variable 'nsyms' was
nickc [Fri, 13 Oct 2000 20:41:07 +0000 (20:41 +0000)]
Oops - fix mistake in previous delta where unused variable 'nsyms' was
deleted, but along with its (necessary) call to bfd_canonicalize_symtab.

23 years ago2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
fnasser [Fri, 13 Oct 2000 20:31:38 +0000 (20:31 +0000)]
2000-10-13  Fernando Nasser  <fnasser@totem.to.cygnus.com>

* varobj.c (varobj_update): Prevent uninitialized error code to be
returned on type_changed.  Also, prevent value_equal() to be called
for the types we do not want to test for updates.

23 years agoAdd #ifdef DLL_SUPPORT around use of pe_dll_search_prefix.
nickc [Fri, 13 Oct 2000 20:16:02 +0000 (20:16 +0000)]
Add #ifdef DLL_SUPPORT around use of pe_dll_search_prefix.

23 years ago* cleanup
fche [Fri, 13 Oct 2000 11:21:56 +0000 (11:21 +0000)]
* cleanup

2000-10-13  matthew green  <mrg@cygnus.com>

* utils-cgen.scm (get-ifetch): Move from here ...
* sim.scm (get-ifetch): ... to here.

23 years ago* dtable.cc (dtable::fixup_after_fork): Revert thinko below.
cgf [Fri, 13 Oct 2000 03:13:58 +0000 (03:13 +0000)]
* dtable.cc (dtable::fixup_after_fork): Revert thinko below.
* pinfo.cc (set_myself): Show pid in initial strace line.

23 years ago2000-10-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
fnasser [Thu, 12 Oct 2000 22:56:31 +0000 (22:56 +0000)]
2000-10-11  Fernando Nasser  <fnasser@totem.to.cygnus.com>

        From Grant Edwards <grante@visi.com>
        This keeps the GUI alive while running an RDI target and lets the
        STOP button be used to stop the target.
        * remote-rdi.c (arm_rdi_stop): New function.  Implements target_stop.
        (init_rdi_ops): Set to_stop target vector entry to the above.
        * rdi-share/ardi.c (stop_request): New variable.  Tells when a stop
        has been requested.
        (angel_RDI_stop_request): New function. Registers that a stop has
        been requested.
        (angel_RDI_ExecuteOrStep): Add call to ui_loop_hook() in loop that
        waits while target is executing.  Initialize and reset stop_request.
        * rdi-share/ardi.h: Add declaration of angel_RDI_stop_request().

23 years ago* child_info: Bump child_info "version".
cgf [Thu, 12 Oct 2000 22:15:46 +0000 (22:15 +0000)]
* child_info: Bump child_info "version".
(child_info): Move some fields from child_info_spawn to here.
* cygheap.cc: Make cygheap pointers NOCOPY.
* dcrt0.cc (dll_crt0_1): Copy cygwin heap here regardless of whether we've been
forked or execed.
* dtable.cc (dtable::fixup_after_fork): Just release close-on-exec fds.
* exceptions.cc (stackdump): Respond to C warning.
* fork.cc: Reorganize to minimize stack copying.
(fork_child): New function.
(fork_parent): Ditto.
(sync_with_child): Don't suspend the forkee.
(sync_with_parent): Ditto.  Make into a function.
* heap.cc (heap_init): Add some debugging output.
* path.cc (path_conv::check): Add an assertion.
(has_suffix): Ditto.
* security.cc (get_pw_sid): Defend against NULL.
* sigproc.cc (proc_subproc): Fix debugging output.
(wait_sig): Ditto.
* strace.cc: Make statics NO_COPY throughout.
(strace::vsprntf): Defend against NULL.

23 years agoProtoization.
kevinb [Thu, 12 Oct 2000 21:39:21 +0000 (21:39 +0000)]
Protoization.

23 years ago2000-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
ezannoni [Thu, 12 Oct 2000 19:34:27 +0000 (19:34 +0000)]
2000-10-12  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

From Daniel Berlin <dberlin@redhat.com> :

* symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize the symbol
  language to auto instead of unknown, so it will try to demangle
  the symbol.
* symtab.h (OPNAME_PREFIX_P): Change operator prefix to correct value.
* symtab.c (gdb_mangle_name): Properly handle C++ operators.

23 years ago* emultempl/pe.em (pe_dll_search_prefix): New variable,
dj [Thu, 12 Oct 2000 19:18:20 +0000 (19:18 +0000)]
* emultempl/pe.em (pe_dll_search_prefix): New variable,
(longopts): New --dll-search-prefix option.
(gld_${EMULATION_NAME}_list_options): Document.
(gld_${EMULATION_NAME}_parse_args): Handle.
(gld_${EMULATION_NAME}_open_dynamic_archive): When linking
dynamically, search for a dll named '<prefix><basename>.dll'
in preference to 'lib<basename>.dll' if --dll-search-prefix
is specified.

23 years ago* Make comma after string after icon/control optional.
dj [Thu, 12 Oct 2000 17:47:35 +0000 (17:47 +0000)]
* Make comma after string after icon/control optional.

23 years ago2000-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
ezannoni [Thu, 12 Oct 2000 16:53:06 +0000 (16:53 +0000)]
2000-10-12  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

From Daniel Berlin <dberlin@redhat.com> :

* symtab.c (lookup_symbol_aux): New function. Renamed from
  lookup_symbol. Move code to do demangling/case sensitivity to
  lookup_symbol().
   (lookup_symbol): Now wrapper for lookup_symbol_aux, so we can
  perform case sensitivity/demangling without leaking memory.  Move
  code to do demangling/case sensitivity from old_lookup_symbol to
  here.
(lookup_partial_symbol): Use SYMBOL_SOURCE_NAME instead of
  SYMBOL_NAME.
(lookup_block_symbol): Use SYMBOL_SOURCE_NAME instead of
  SYMBOL_NAME. Don't do linear search in case of C++.

   * symfile.c (compare_symbols): Use SYMBOL_SOURCE_NAME instead of
  SYMBOL_NAME.
   (compare_psymbols): Same here.

23 years ago* strace.cc (proc_child): Handle exceptions correctly.
cgf [Thu, 12 Oct 2000 06:22:30 +0000 (06:22 +0000)]
* strace.cc (proc_child): Handle exceptions correctly.

23 years ago* errno.cc (seterrno_from_win_error): Fix debugging output.
cgf [Thu, 12 Oct 2000 04:38:29 +0000 (04:38 +0000)]
* errno.cc (seterrno_from_win_error): Fix debugging output.
* fhandler.cc (fhandler_base::fstat): Move to inline method in fhandler.h.
(fhandler_base::set_io_handle): Ditto.
* fhandler.h (fhandler_base): Make some methods inline.
* fhandler_console.cc (fhandler_console::write_normal): Make buffer larger.
* sigproc.h (sigframe::sigframe): Actually use set ebp parameter correctly.
* spawn.cc (spawn_guts): Set dwProcessId when exec'ing.  Just exit immediately
after reparenting.
* syscalls.cc: Sprinkle sigframe stuff throughout.
* wait.cc (wait4): Set signal frame here.
* dcrt0.cc (__api_fatal): Don't rely on small_printf to display errors.  Always
display problems to the console, if possible.

23 years agoAnother try at correcting relocations against discarded
amodra [Thu, 12 Oct 2000 03:44:50 +0000 (03:44 +0000)]
Another try at correcting relocations against discarded
link-once section symbols.

23 years agomerge from gcc repository
dj [Thu, 12 Oct 2000 02:16:48 +0000 (02:16 +0000)]
merge from gcc repository

23 years agomerge from gcc repository
dj [Thu, 12 Oct 2000 02:15:49 +0000 (02:15 +0000)]
merge from gcc repository

23 years agoInclude alloca-conf.h
amodra [Thu, 12 Oct 2000 01:28:06 +0000 (01:28 +0000)]
Include alloca-conf.h

23 years ago2000-10-11 Fernando Nasser <fnasser@cygnus.com>
fnasser [Wed, 11 Oct 2000 22:37:30 +0000 (22:37 +0000)]
2000-10-11  Fernando Nasser  <fnasser@cygnus.com>

* srctextwin.itb (build_popups): Fix typos that caused duplicate
"Jump to Here" menu entries in the breakpoint-set right-click pop-up
menu.

23 years ago2000-10-12 Kazu Hirata <kazu@hxi.com>
kazu [Wed, 11 Oct 2000 20:24:32 +0000 (20:24 +0000)]
2000-10-12  Kazu Hirata  <kazu@hxi.com>

* app.c: Fix formatting.
* as.c: Likewise.
* as.h: Likewise.
* bit_fix.h: Likewise.
* cgen.c: Likewise.
* cgen.h: Likewise.
* cond.c: Likewise.

23 years agoRevert 2000-10-07 link-once section symbol changes.
amodra [Wed, 11 Oct 2000 07:05:01 +0000 (07:05 +0000)]
Revert 2000-10-07 link-once section symbol changes.

23 years ago2000-10-10 Kazu Hirata <kazu@hxi.com>
kazu [Wed, 11 Oct 2000 00:16:07 +0000 (00:16 +0000)]
2000-10-10  Kazu Hirata  <kazu@hxi.com>

* deffile.h: Fix formatting.
* lexsup.c: Likewise.
* mri.c: Likewise.

23 years agoFix my last change to actually compile.
amodra [Tue, 10 Oct 2000 23:38:27 +0000 (23:38 +0000)]
Fix my last change to actually compile.

23 years ago* path.cc (cwdstuff::get): Set EINVAL when length is zero.
cgf [Tue, 10 Oct 2000 19:24:32 +0000 (19:24 +0000)]
* path.cc (cwdstuff::get): Set EINVAL when length is zero.

23 years ago(ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
amodra [Tue, 10 Oct 2000 15:50:35 +0000 (15:50 +0000)]
(ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.

23 years ago* section.c (bfd_make_section_anyway): Release newsect ptr when
amodra [Tue, 10 Oct 2000 15:23:38 +0000 (15:23 +0000)]
* section.c (bfd_make_section_anyway): Release newsect ptr when
newsect->symbol fails to alloc.  Use bfd_release instead of free.

23 years agoProtoization.
kevinb [Tue, 10 Oct 2000 05:17:25 +0000 (05:17 +0000)]
Protoization.

23 years ago* pe-dll.c (make_one): Do not generate code thunk for DATA
dj [Tue, 10 Oct 2000 03:28:01 +0000 (03:28 +0000)]
* pe-dll.c (make_one): Do not generate code thunk for DATA
exports.
(process_def_file): deduce DATA flag for auto-export sumbols.

23 years ago* libc/include/sys/unistd.h: Add getdtablesize and setdtablesize declarations
cgf [Tue, 10 Oct 2000 00:28:48 +0000 (00:28 +0000)]
* libc/include/sys/unistd.h: Add getdtablesize and setdtablesize declarations
for __CYGWIN__.

23 years ago * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
rth [Mon, 9 Oct 2000 23:16:29 +0000 (23:16 +0000)]
    * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
        (elf64_ia64_unwind_entry_compare): New.
        (elf64_ia64_final_link): Sort the .IA_64.unwind section.

23 years ago * config/i386/i386sol2.mh: Add XM_CLIBS definition to resolve
schauer [Mon, 9 Oct 2000 19:40:37 +0000 (19:40 +0000)]
* config/i386/i386sol2.mh:  Add XM_CLIBS definition to resolve
reference to gethostbyname.

23 years ago * config/i386/i386sol2.mh: Add XM_CLIBS definition to resolve
schauer [Mon, 9 Oct 2000 19:39:34 +0000 (19:39 +0000)]
* config/i386/i386sol2.mh:  Add XM_CLIBS definition to resolve
reference to gethostbyname.

23 years ago* path.cc (mount_info::cygdrive_posix_path): Handle e:foo construction
cgf [Mon, 9 Oct 2000 18:10:52 +0000 (18:10 +0000)]
* path.cc (mount_info::cygdrive_posix_path): Handle e:foo construction
correctly.