Commit Graph

12888 Commits

Author SHA1 Message Date
H.J. Lu 2dc5e3a364 2000-03-10 H.J. Lu <hjl@gnu.org>
* Makefile.in (all-gcc): Run ld/ld-new if necessary.
2000-03-10 20:50:45 +00:00
Christopher Faylor 7fecc3e4d6 * sigproc.cc (wait_sig): Add addtional debugging output. 2000-03-10 18:04:20 +00:00
Alexandre Oliva 1cf0ee341f * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
with XSH5, not SVID.
2000-03-10 17:57:32 +00:00
Jeff Johnston e9c9497815 Thu Mar 9 17:20:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
* libc/include/string.h: Changed last argument back to ssize_t
        to make it compatible with XPG4 definition which is
        defined in <unistd.h>.  There is a conflict in the SVID 3
        and XPG4 definitions and newlib will settle with XPG4.
        * libc/string/swab.c: Ditto.
2000-03-09 22:25:01 +00:00
Christopher Faylor af1dc7ccea * environ.cc: Eliminate oldstack CYGWIN option.
* exceptions.cc (sfta): Eliminate obsolete function.
(sgmb): Eliminate obsolete function.
(class stack_info): Remove MS method for walking the stack.
(stack_info::init): Just initialize required fields.
(stack_info::brute_force): Rename to stack_info::walk.
(handle_exceptions): Pass derived frame pointer to sig_send.
(interrupt_setup): Clear saved frame pointer here.
(interrupt_on_return): thestack is no longer a pointer.
(call_handler): Accept a flag to indicate when a signal was sent from other
than the main thread.  Use saved frame pointer for determining where to place
signal handler call.
(sig_handle): Accept "nonmain" argument.  Pass it to call_handler.
* fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Change
debugging output slightly.
* (fhandler_tty_common::__release_output_mutex): Ditto.
(fhandler_tty_slave::read): Fix a comment, remove a goto.
* sigproc.cc (sig_send): Accept an optional frame pointer argument for use when
suspending the main process.  sigcomplete_main is an autoreset event now.  Save
frame pointer for non-main operation.
(wait_sig): Make sigcomplete_main an autoreset event.  Eliminate NOSIGQUEUE.
Pass rc to sig_handle to signify if this was a nonmain process.
* sigproc.h: Reflect change to sig_send argument.
* syscalls.cc (swab): Eliminate swab function since it is now available in
newlib.
* winsup.h (signal_dispatch): Change CONTEXT cx to DWORD ebp.
2000-03-09 21:04:05 +00:00
Jeff Johnston 3072163c0f Wed Mar 8 17:11:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
* libc/include/string.h: Changed last argument to size_t.
        * libc/string/swab.c: Changed last argument to size_t.
2000-03-08 22:16:06 +00:00
Alexandre Oliva f205ea7a03 * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
(CHEWOUT_FILES): Added unlinkr.def.
* libc/reent/Makefile.in: Rebuilt.
* libc/sys.tex: Include unlinkr.def.
* libc/reent/linkr.c (_unlink_r): Moved to...
* libc/reent/unlinkr.c: ... new file.
2000-03-08 04:01:49 +00:00
Alexandre Oliva 85dd2e5b73 * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
(CHEWOUT_FILES): Added swab.def.
* libc/string/Makefile.in: Rebuilt.
* libc/string/string.tex: Include swab.def.
* libc/include/string.h (swab): Declare.
* libc/string/swab.c: New file.
2000-03-08 03:46:01 +00:00
Alexandre Oliva c505305855 * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
(CHEWOUT_FILES): Added getw.def and putw.def.
* libc/stdio/Makefile.in: Rebuilt.
* libc/stdio/stdio.tex: Include getw.def and putw.def.
* libc/stdio/getw.c: New file.
* libc/stdio/putw.c: New file.
2000-03-08 03:42:25 +00:00
Christopher Faylor cba95ef1c8 * sigproc.cc (sig_send): Eliminate sync_sig_send synchronization since it
didn't seem to affect the "bash hangs" problem.
2000-03-07 18:32:40 +00:00
Christopher Faylor 5abc9b830b Throughout use strace class in place of individual functions and variables.
* cygwin.din: Eliminate _strace_wm.
* sigproc.cc (wait_sig): Temporarily add more debugging output.
* include/cygwin/version.h: Bump minor api to reflect export change.
2000-03-07 05:33:09 +00:00
Nick Clifton b5314dabec Remove extraneous CYGNUYS LOCAL markers. 2000-03-06 18:09:38 +00:00
Christopher Faylor 68997e887d * exceptions.cc (call_handler): Streamline to use only one call to
ResumeThread.
* sigproc.cc (sig_send): Use a muto around the ReleaseSemaphore.  Remove
priority setting since it didn't solve anything.
2000-03-05 06:34:55 +00:00
Andrew Cagney ed8e99bf37 * Makefile.in (taz): Set PACKAGE to TOOL when not defined.
(do-tar-bz2): Replace TOOL with PACKAGE.
(gdb.tar.bz2): Remove GDBTK from GDB package.
(gdb+dejagnu.tar.bz2, insight.tar.bz2, insight+dejagnu.tar.bz2,
dejagnu.tar.bz2): New packages.
2000-03-03 23:52:30 +00:00
Nick Clifton 92976eab7d Apply patch for 100679 2000-03-02 23:01:40 +00:00
H.J. Lu 0f04849fd0 2000-03-01 H.J. Lu <hjl@gnu.org>
* bfdlink.h (bfd_link_callbacks): Add a boolean arg to
	the undefined_symbol callback.
2000-03-01 19:38:01 +00:00
Christopher Faylor b528f63495 * sigproc.cc (sig_send): Temporarily set priority to highest while sending a
signal.
2000-02-29 05:47:17 +00:00
Mumit Khan adbc0b0aa7 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>
* include/largeint.h: Rename HAVE_INT64 macro to _HAVE_INT64 to avoid
	namespace pollution.
	* include/rpcndr.h: Likewise.
	* include/winnt.h: Likewise.
2000-02-29 03:16:14 +00:00
Mumit Khan 1756811b99 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>
Patches from Jan Nijtmans <j.nijtmans@chello.nl>:
	* include/wtypes.h (PBLOB, LPBLOB): Define.
	* include/winsock2.h: Much more complete version.
	(FD_SET, SOMAXCONN): Protect common macros defined by winsock.h.
2000-02-29 03:14:40 +00:00
Mumit Khan bb76eb243f 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>
Patches from Jan Nijtmans <j.nijtmans@chello.nl>:
	* include/winsock.h (FD_CLR): Add missing ')'.
	(timercmp): Fix macro to handle all 6 comparison operators.
	(AF_FIREFOX, AF_UNKNOWN1, AF_BAN, AF_ATM, AF_INET6): Define.
	(AF_MAX): Update.
	(PF_FIREFOX, PF_UNKNOWN1, PF_BAN, PF_ATM, PF_INET6): Define.
2000-02-29 03:13:40 +00:00
Mumit Khan 977ee8850d 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>
* include/largeint.h: Rename HAVE_INT64 macro to _HAVE_INT64 to avoid
	namespace pollution.
	* include/rpcndr.h: Likewise.
	* include/winnt.h: Likewise.
2000-02-29 03:11:06 +00:00
Mumit Khan 393aa11bce 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>
* include/shlobj.h (SHGetDataFromIDList{A,W}): Fix typo.
	(SHGetSpecialFolderPath{A,W}): Add prototypes.
2000-02-29 03:10:04 +00:00
Mumit Khan b37e557227 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>
* lib/ole32.def: Add missing exports.
2000-02-29 03:08:37 +00:00
Mumit Khan 6dc88be7da 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>
* include/winbase.h (TLS_MINIMUM_AVAILABLE): Move macro from here
	* include/winnt.h (TLS_MINIMUM_AVAILABLE): to here.
	(NT_TIB): Define.
	* include/tlhelp32.h: New file.
2000-02-29 03:07:07 +00:00
Christopher Faylor 9fbcd67ebc * include/rapi.h: New file.
* lib/rapi.def: New file.
2000-02-28 22:09:56 +00:00
Nick Clifton c8ceb1b10f Defone {MIPS|SH}_PE_MAGIC 2000-02-28 18:57:53 +00:00
Christopher Faylor 716254905c * pinfo.cc (set_myself): Add build date to strace output.
* sigproc.cc (proc_subproc): Only clear wait event when not attending to a
signal.
2000-02-28 16:25:34 +00:00
Christopher Faylor 297b7a63c8 Fix typo. 2000-02-28 06:23:10 +00:00
Christopher Faylor f61425ac33 Fix sysname. 2000-02-28 06:21:07 +00:00
Christopher Faylor 4698cc8ec8 * configure.in: Remove --enable-strace-hhmmss option.
* configure: Regenerate.
2000-02-28 05:10:23 +00:00
Christopher Faylor 78fed23c13 * strace.cc (handle_output_debug_string): Parse strace output to allow various
types of time output.
2000-02-28 05:08:05 +00:00
Christopher Faylor d542443ea4 * dcrt0.cc (set_os_type): Record OS name string.
(getprogname): Eliminate obsolete function.
(dll_crt0_1): Move initial strace initialization output to set_myself.
* exceptions.cc (interruptible): Add debugging output.
(interrupt_setup): New function.
(interrupt_now): Use interrupt_setup to set up common interrupt handler stuff.
(interrupt_on_return): Ditto.
(call_handler): Move signal_arrived arm and clear threads to region where
signalled thread is suspended or suffer races.
* pinfo.cc (set_myself): Output interesting information when strace is first
initialized.  Initialize progname here.
* sigproc.cc (sig_dispatch_pending): Modify to ensure that flush signal are
sent synchronously.
* strace.cc (strace_vsprintf): Move code into strace program.
* uname.cc (uname): Use 'osname' global to construct cygwin name + Windows type
+ version.
2000-02-28 05:05:33 +00:00
Ian Lance Taylor 1dc94f7370 2000-02-27 Andreas Jaeger <aj@suse.de>
* configure.in: Add entry for mips*-*-linux*, move catch all
	*-*-*linux* entry below this one.
2000-02-28 04:20:22 +00:00
Ian Lance Taylor b1b7a4f83a * ltconfig, ltmain.sh: Update to libtool 1.3.4. 2000-02-27 16:46:19 +00:00
Christopher Faylor 4b17897e98 Bump minor version number 2000-02-26 01:14:49 +00:00
Christopher Faylor 6b3e6cd100 Change fork/exec magic number. 2000-02-26 01:14:08 +00:00
Christopher Faylor 5d25dcfa3b Remove unneeded include. 2000-02-26 01:13:02 +00:00
Christopher Faylor 8656ee07ef * exceptions.cc (interruptible): Make a little more structured.
(call_handler): Allow signals to be sent even if signalled thread is stopped.
Change order of signal_arrived arming/waiting threads clearing to eliminate a
race.
(reset_signal_arrived): New helper function.
* malloc.cc (malloc_init): Use mutos so that signal handler can keep track of
who owns the lock.
(__malloc_lock): Ditto.
(__malloc_unlock): Ditto.
* sync.h (new_muto): Actually use a muto for the "buffer".
* Makefile.in: Fix a dependency.
2000-02-26 01:11:54 +00:00
DJ Delorie 52aaab48f4 * Makefile.in: fix "make check" support and cygrun. 2000-02-26 01:06:48 +00:00
Jeff Johnston dbaf37cf83 Fri Feb 25 14:50:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
* libc/stdio/flags.c (__sflags): Added check that mode[1]
        is non-null before looking at mode[2].
2000-02-25 19:52:27 +00:00
Alan Modra e53d3a5d95 Extend the i386 gas testsuite to do some tests for intel_syntax. Fix all
the errors exposed by this addition.  These were intel mode
"fi... word ptr", "fi... dword ptr", "jmp Imm seg, Imm offset", "out dx,al".
The failure with intel "out dx,al" was also present in att "out al,dx".
Extend testsuite to catch this case too.
2000-02-25 11:41:12 +00:00
Nick Clifton 7620791bd9 Rename 'flags' to 'signed_overflow_ok_p' 2000-02-24 23:57:23 +00:00
Andrew Haley 4d0ce66d1f 2000-02-24 Andrew Haley <aph@cygnus.com>
* cgen.h (CGEN_INSN_MACH_HAS_P): New macro.
        (CGEN_CPU_TABLE): flags: new field.
        Add prototypes for new functions.
2000-02-24 21:56:53 +00:00
Nick Clifton 29cb17f117 Add support for an OS of "wince" 2000-02-24 21:20:57 +00:00
Christopher Faylor ab1a69347d Eliminate RCS stuff. 2000-02-24 20:59:30 +00:00
Christopher Faylor 9edba13851 *** empty log message *** 2000-02-24 20:57:40 +00:00
Christopher Faylor faecc585c2 * syscalls.c (_read): Clear errno before doing any read operation. 2000-02-24 20:57:03 +00:00
Christopher Faylor d3bda1df95 * exceptions.cc (call_handler): Use new muto linked list to look for all
potential mutos owned by suspended thread.  Clear waiting threads while thread
is stopped.
(proc_subproc): Clarify debugging output.
* sync.h (class muto): Add 'next' field.
(new_muto): Keep linked list alive.
2000-02-24 19:54:01 +00:00
Nick Clifton 4bc3b73cfd Add support for WinCE targeted toolchains. 2000-02-24 19:49:18 +00:00
Christopher Faylor 7408c24343 Adhere to w32api copyright conventions. 2000-02-24 18:04:23 +00:00