summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * dcrt0.cc (wow64_respawn): New static variable.Corinna Vinschen2011-12-123-59/+101
| | | | | | | | | | | | (wow64_started_from_native64): New function to check if a WOW64 process got started from a native 64 bit process. (respawn_wow64_process): New function to respawn process. (dll_crt0_0): When started from a native parent, check if parent is a 64 bit process. If so, return early. (_dll_crt0): Respawn WOW64 process here if required. * init.cc (respawn_wow64_process): Remove. (dll_entry): Rename wow64_test_stack_marker to test_stack_marker. Drop WOW64 test here.
* * pipe.cc (fhandler_pipe::create): Use debug_printf to print debugging infoChristopher Faylor2011-12-122-6/+51
| | | | | | | | | since this isn't a "syscall". (pipe_worker): New function created from _pipe(). (_pipe): Use pipe_worker to create a pipe. Use standard syscall strace reporting on exit. (pipe): Ditto. (pipe2): Ditto.
* * select.cc (select_stuff::wait): Very minor formatting fix.Christopher Faylor2011-12-114-23/+22
| | | | | | | | (peek_windows): Report on HWND handle used in queries. * select.h: Update copyright. * sigproc.h (cygwait): Eliminate multi-argument variety since more general implementation may cause odd problems in select. Also force to always be inline.
* Correct defective configure checkinKeith Marshall2011-12-101-229/+2
|
* fix another typo in ChangeLogChristopher Faylor2011-12-101-1/+1
|
* * sigproc.h (cygwait): Delete duplicate va_start and add matching va_end.Christopher Faylor2011-12-102-1/+8
|
* Add ChangeLog entry for previous change and revert erroneously checked inChristopher Faylor2011-12-103-85/+63
| | | | changes to dcrt0.cc and init.cc
* Clarify entryChristopher Faylor2011-12-104-62/+88
|
* Build system clean-up (phase 1)Keith Marshall2011-12-106-2399/+2662
|
* * exceptions.cc (ctrl_c_handler): YA in a series or reversions. Put backChristopher Faylor2011-12-103-10/+16
| | | | | | | _my_tls.remove along with a comment. (sigpacket::process): Remove code which now causes a gdb deadlock. * sigproc.cc (_cygtls::signal_exit): Signal debugger with signal number earlier.
* * dllfixdbg: Work around annoying gdb warning about missing .gnu_debuglink.Christopher Faylor2011-12-092-1/+6
|
* Rename cygWFMO to cygwait throughout and use the magic of polymorphism to "waitChristopher Faylor2011-12-0910-32/+89
| | | | | | | | | | | | | | | | | | | | | | | | for stuff". * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use simplified arg form of cygwait. * fhandler_console.cc (fhandler_console::read): Ditto. * fhandler_audio.cc (fhandler_dev_dsp::Audio_out::waitforspac): Ditto. (fhandler_dev_dsp::Audio_in::waitfordata): Ditto. * fhandler_fifo.cc (fhandler_fifo::wait): Ditto. * fhandler_serial.cc (fhandler_serial::raw_read): Ditto. (fhandler_serial::raw_write): Ditto. * select.cc (cygwin_select): Ditto. * sigproc.h (cygwait): Rename from cygWFMO. Define two argument and single argument forms of this function. * fhandler_tty.cc (fhandler_pty_slave::open): Use method to query if tty is open. (fhandler_pty_slave::read): Send SIGHUP when master is detected as closed. (fhandler_pty_common::close): Close input_available_event in callers since master may need to signal it first. (fhandler_pty_master::close): Lie and set input_available_event when closing, then close input_available_event. (fhandler_pty_slave::close): Close input_available_event explicitly here. * tty.h (tty::is_master_closed): Declare new method.
* Revert erroneous checkinChristopher Faylor2011-12-091-3/+0
|
* * sigproc.cc (signal_exit): Revert reversion of 2011-12-04 change since,Christopher Faylor2011-12-093-2/+26
| | | | otherwise, you see hangs when the signal pipe is closed.
* * select.cc (cygwin_select): Fifth time is the charm.Christopher Faylor2011-12-092-3/+10
|
* bfd:Andrew Pinski2011-12-082-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * archures.c (bfd_mach_mips_octeon2): New macro * bfd-in2.h: Regenerate. * cpu-mips.c (I_mipsocteon2): New enum value. (arch_info_struct): Add bfd_mach_mips_octeon2. * elfxx-mips.c (_bfd_elf_mips_mach): Support E_MIPS_MACH_OCTEON2. (mips_set_isa_flags): Add bfd_mach_mips_octeon2. (mips_mach_extensions): Add bfd_mach_mips_octeon2. gas: 2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * tc-mips.c (CPU_IS_OCTEON): Add Octeon2. (mips_cpu_info_table): Add Octeon2. * doc/c-mips.texi: Document octeon2 as an acceptable value for -march=. gas/testsuite: 2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * gas/mips/mips.exp: Add Octeon2 for an architecture. Run octeon2 test. * gas/mips/octeon2.d: New file. * gas/mips/octeon2.s: New file. include/opcode: 2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEON2. (INSN_OCTEON2): New macro. (CPU_OCTEON2): New macro. (OPCODE_IS_MEMBER): Add Octeon2. opcodes: 2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * mips-dis.c (mips_arch_choices): Add Octeon2. For "octeon+", just include OcteonP for the insn. * mips-opc.c (IOCT): Include Octeon2. (IOCTP): Include Octeon2. (IOCT2): New macro. (mips_builtin_opcodes): Add "laa", "laad", "lac", "lacd", "lad", "ladd", "lai", "laid", "las", "lasd", "law", "lawd". Move "lbux", "ldx", "lhx", "lwx", and "lwux" up to where the standard loads are, and add IOCT2 to them. Add "lbx" and "lhux". Add "qmac.00", "qmac.01", "qmac.02", "qmac.03", "qmacs.00", "qmacs.01", "qmacs.01", "qmacs.02" and "qmacs.03". Add "zcb" and "zcbt".
* * select.cc (cygwin_select): Make sure that 0 is returned when sel.wait timesChristopher Faylor2011-12-082-2/+7
| | | | out.
* * include/sys/wait.h: Add in all c++ functions.Christopher Faylor2011-12-082-2/+6
|
* * select.cc (select_stuff::wait): Temporarily disallow APCS.Christopher Faylor2011-12-082-2/+6
|
* * include/sys/wait.h: Ensure that C++ functions are only used when using C++.Christopher Faylor2011-12-082-0/+7
|
* * select.cc (cygwin_select): Make sure that poll is called when appropriate.Christopher Faylor2011-12-082-25/+22
|
* * dll_init.cc (dll_dllcrt0): Don't try to initialize dll data if we'reChristopher Faylor2011-12-085-13/+18
| | | | | | | | | | dynamically loaded since fork() doesn't work in that scenario anyway. (dll_dllcrt0_1): Don't accommodate dynamically loaded dlls. * exceptions.cc (ctrl_c_handler): Don't lock the process; there's too much risk of deadlock. * sigproc.cc (_cygtls::remove_wq): Don't try to remove anything from the waitq if there is obviously nothing there. * strace.cc (strace::activate): Allow stracing dynamically loaded cygwin1.dll.
* * fhandler_termios.cc (tty_min::kill_pgrp): Don't send __SIGSETPGRP sinceChristopher Faylor2011-12-082-2/+7
| | | | presumably we are already initialized.
* * select.cc (cygwin_select): Add common introducer and leaver debug output.Christopher Faylor2011-12-072-9/+23
| | | | (select_stuff::poll): Remove unneeded debugging.
* * exceptions.cc (ctrl_c_handler): Remove _my_tls.remove since it can causeChristopher Faylor2011-12-072-2/+5
| | | | deadlocks during exec and will eventually be handled anyway.
* * spawn.cc (child_info_spawn::worker): Add CREATE_BREAKAWAY_FROM_JOBCorinna Vinschen2011-12-072-1/+16
| | | | to all spawned processes. Explain why.
* * fhandler_fifo.cc (fhandler_fifo::wait): Fix stupid typo and actually wait forChristopher Faylor2011-12-072-1/+6
| | | | the handle.
* include/elf/ChangeLog:Ulrich Weigand2011-12-062-0/+9
| | | | | | | | | | | | | | | | * common.h (NT_S390_LAST_BREAK): Define. (NT_S390_SYSTEM_CALL): Likewise. bfd/ChangeLog: * elf-bfd.h (elfcore_write_s390_last_break): Add prototype. (elfcore_write_s390_system_call): Likewise. * elf.c (elfcore_write_s390_last_break): New function. (elfcore_write_s390_system_call): Likewise. (elfcore_write_register_note): Call them. (elfcore_grok_s390_last_break): New function. (elfcore_grok_s390_system_call): Likewise. (elfcore_grok_note): Call them.
* * libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.Corinna Vinschen2011-12-063-2/+7
| | | | * libc/iconv/Makefile.in: Regenerate.
* * sigproc.cc (close_my_readsig): New function.Christopher Faylor2011-12-052-11/+17
| | | | | | (_cygtls::signal_exit): Close my_readsig via close_my_readsig(), avoiding communication with the signal pipe. (wait_sig): Close my_readsig via close_my_readsig().
* * mmap.cc (mlock): Replace LOCK_VM_IN_WSL with correct MAP_PROCESS.Corinna Vinschen2011-12-053-87/+108
| | | | | | | | (munlock): Ditto. * ntdll.h: Rearrange to have all preprocessor definitions at the start of the file. Add comments to each definition block. (MAP_PROCESS): Rename from LOCK_VM_IN_WSL. (MAP_SYSTEM): Rename from LOCK_VM_IN_RAM.
* correct name of functionChristopher Faylor2011-12-041-1/+1
|
* * sigproc.cc (cygWFMO): Don't assume that cancellable event is alwaysChristopher Faylor2011-12-047-31/+26
| | | | | | | | | | | | available. * fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::waitforspace): Use cygWFMO instead of WaitForMultipleObjects. (fhandler_dev_dsp::Audio_in::waitfordata): Ditto. * fhandler_fifo.cc (fhandler_fifo::wait): Ditto. * fhandler_serial.cc (fhandler_serial::raw_read): Ditto. (fhandler_serial::raw_write): Ditto. * fhandler_tty.cc (fhandler_pty_slave::read): Ditto. * select.cc (cygwin_select): Ditto for degenerate case.
* * sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.Christopher Faylor2011-12-042-15/+19
|
* * exceptions.cc (exception::handle): Drop abbreviation for "exception" since IChristopher Faylor2011-12-048-31/+82
| | | | | | | | | | | | | | | | | | | | | never remember what it stands for. (sig_handle_tty_stop): Remove obsolete call to sig_handle_tty_stop. (_cygtls::call_signal_handler): Rework to grab signal information from _main_tls if none is set for _my_tls. Try harder to keep thread locked. (reset_signal_arrived): Delete. * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use new cygWFMO call to wait for an event + standard cygwin stuff. Modify debug output to acccomodate new function. * fhandler_console.cc (fhandler_console::read): Replace WaitForMultipleObjects with cygWFMO. * fhandler_socket.cc (get_inet_addr): Add comment. * gendef (_sigdelayed): Remove call to reset_signal_arrived. * sigproc.cc (_cygtls::signal_exit): Don't close my_readsig here unless we're in the signal thread. (create_signal_arrived): Create signal_arrived as auto-reset so that only one thread is woken when a signal arrives. * sigproc.h (cygWFMO): New function. (reset_signal_arrived): Delete declaration.
* * mmap.cc (mlock): Add standard syscall return value debugging output.Christopher Faylor2011-12-034-87/+92
| | | | | | | | | | | | (munlock): Ditto. (posix_madvise): Ditto. * signal.cc: Remove obsolete sigcatchers stuff throughout. (sigaction_worker): Add function name parameter and use it to show standard syscall return value debugging output. Also add fault protection. (sigaction): Accommodate extra argument to sigaction_worker. (siginterrupt): Ditto. * syscalls.cc (read): Remove obsolete sigcatchers stuff. (readv): Ditto.
* fix incorrectly named file in old ChangeLog entryChristopher Faylor2011-12-031-1/+1
|
* * mmap.cc (mlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE. DropCorinna Vinschen2011-12-032-16/+9
| | | | | | outdated comment. Call NtLockVirtualMemory with LOCK_VM_IN_WSL flag. (munlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE. Call NtUnlockVirtualMemory with LOCK_VM_IN_WSL flag.
* Throughout, remove extra space after function name from debugging output.Christopher Faylor2011-12-0342-188/+224
| | | | | | | | | | | | | | | Throughout, change syscalls to report on return values using new %R format option. * smallprint.cc (__small_vsprintf): Add parsing for %R to report on return values and possible errno from syscalls. * errno.cc (errmap): Add PRIVILEGE_NOT_HELD. * fhandler_tty.cc (fhandler_pty_master::setup): When creating a thread use shorter name to reduce debuggging output. * select.cc (start_thread_pipe): Ditto. (start_thread_serial): Ditto. (start_thread_socket): Ditto. (start_thread_mailslot): Ditto. * sigproc.cc (talktome): Ditto.
* * fhandler.cc (fhandler_base::open): Fix comment a bit more.Corinna Vinschen2011-12-032-1/+5
|
* sim: export cb_get_string for people to useMichael Frysinger2011-12-032-0/+7
| | | | | | | | The common sim code provides a useful "get_string" function which reads a C string out of the target's memory space. So rename and export it for other people to use. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* * fhandler.cc (fhandler_base::open): Fix typos in comment.Corinna Vinschen2011-12-032-3/+7
|
* * Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.Corinna Vinschen2011-12-023-156/+78
| | | | | | | | | | | | | | | | * cygpath.cc: Throughout, use cygwin_conv_path WIN_W rather than WIN_A conversion. (get_long_path_name_w32impl): Remove. (get_long_name): Drop pre-Windows 2000 accommodations. Just call GetLongPathNameW here directly. (get_special_folder): Convert first parameter to WCHAR buffer pointer. Drop conversion of result from WCHAR * to char *. (do_sysfolders): Accommodate change to get_special_folder and only convert result to char * last. Drop pre-Windows 2000 accommodations and just call GetProfilesDirectoryW directly. Replace call to GetWindowsDirectoryW with call to GetSystemWindowsDirectoryW. Just call GetShortPathNameW directly. (do_pathconv): Simplify buffer handling.
* * path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.Corinna Vinschen2011-12-023-32/+87
| | | | | | | | | Allow all types of CCP conversions. Accommodate throughout. (cygwin_conv_path): Use current ANSI or OEM codepage for WIN_A conversions, depending on current file API codepage setting. (cygwin_conv_path_list): Allow all CCP conversion types. * include/sys/cygwin.h (CCP_CONVTYPE_MASK): Add to cygwin_conv_path_t enum for convenience.
* * mkgroup.c: Drop support for NT4 domains.Corinna Vinschen2011-12-014-156/+54
| | | | | | | | | | | * mkpasswd.c: Ditto. (psx_dir): Remove. (current_user): Drop support for -m option. Use $HOME as is since it's a POSIX path anyway. (enum_users): Drop support for -m option. (usage): Mention -m option as ignored. (main): Drop support for -m option. Mark ignored options as deprecated. * utils.sgml (mkpasswd): Remove description of -m option.
* 2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>Chris Sutcliffe2011-12-012-22/+27
| | | | | | * include/io.h (_wfindfirst, _wfindnext, _wfindfirst32, _wfindnext32, _wfindfirsti64, _wfindnexti64, _wfindfirst32i64, _wfindfirst64i32, _wfindnext32i64, _wfindnext64i32, _wfindnext64): Update to use intptr_t.
* 2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>Chris Sutcliffe2011-12-012-0/+11
| | | | | * include/stdio.h (getc, putc, getchar, putchar, fopen64, ftello64): Add function definitions to fix warnings when building GCC.
* 2011-11-30 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>Chris Sutcliffe2011-11-302-1/+12
| | | | | | * tlssup.c (__dyn_tls_init): Reapply patch from 3105314. Thank you to Earnie for creating the patch file.
* opcode/Andrew Pinski2011-11-292-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-11-29 Andrew Pinski <apinski@cavium.com> * mips-dis.c (mips_arch_choices): Add Octeon+. * mips-opc.c (IOCT): Include Octeon+. (IOCTP): New macro. (mips_builtin_opcodes): Add "saa" and "saad". bfd/ 2011-11-29 Andrew Pinski <apinski@cavium.com> * archures.c (bfd_mach_mips_octeonp): New macro. * bfd-in2.h: Regenerate. * bfd/cpu-mips.c (I_mipsocteonp): New enum value. (arch_info_struct): Add bfd_mach_mips_octeonp. * elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp. (mips_mach_extensions): Add bfd_mach_mips_octeonp. include/opcodes/ 2011-11-29 Andrew Pinski <apinski@cavium.com> * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEONP. (INSN_OCTEONP): New macro. (CPU_OCTEONP): New macro. (OPCODE_IS_MEMBER): Add Octeon+. (M_SAA_AB, M_SAAD_AB, M_SAA_OB, M_SAAD_OB): New enum values. gas/ 2011-11-29 Andrew Pinski <apinski@cavium.com> * config/tc-mips.c (CPU_IS_OCTEON): New macro function. (CPU_HAS_SEQ): Change to use CPU_IS_OCTEON. (NO_ISA_COP): Likewise. (macro) <ld_st>: Add support when off0 is true. Add support for M_SAA_AB, M_SAA_OB, M_SAAD_OB and M_SAAD_AB. (mips_cpu_info_table): Add octeon+. * doc/c-mips.texi: Document octeon+ as an acceptable value for -march=. gas/testsuite/ 2011-11-29 Andrew Pinski <apinski@cavium.com> * gas/mips/mips.exp: Add octeon+ for an architecture. Run octeon-saa-saad test. (run_dump_test_arch): For Octeon architectures, also try octeon@. * gas/mips/octeon-pref.d: Remove -march=octeon from command line. * gas/mips/octeon.d: Likewise. * gas/mips/octeon-saa-saad.d: New file. * gas/mips/octeon-saa-saad.s: New file
* * sigproc.cc (get_proc_lock): Remove extra NULL check. Return false onChristopher Faylor2011-11-292-9/+9
| | | | failure.