summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * cygcheck.cc (dump_sysinfo): Evaluate and print state ofCorinna Vinschen2009-01-292-0/+18
| | | | obcaseinsensitive kernel flag.
* fix typo in previous entryDoug Evans2009-01-291-1/+1
|
* * opcode/i386.h: Add multiple inclusion protection.Doug Evans2009-01-292-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (EAX_REG_NUM,ECX_REG_NUM,EDX_REGNUM,EBX_REG_NUM,ESI_REG_NUM) (EDI_REG_NUM): New macros. (MODRM_MOD_FIELD,MODRM_REG_FIELD,MODRM_RM_FIELD): New macros. (SIB_SCALE_FIELD,SIB_INDEX_FIELD,SIB_BASE_FIELD): New macros. (REG_PREFIX_P): New macro. * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare. (amd64_displaced_step_fixup): Declare. * amd64-tdep.c: #include opcode/i386.h, dis-asm.h. (amd64_arch_regmap): Move out of amd64_analyze_stack_align and make static global. (amd64_arch_regmap_len): New static global. (amd64_arch_reg_to_regnum): New function. (struct amd64_insn): New struct. (struct displaced_step_closure): New struct. (onebyte_has_modrm,twobyte_has_modrm): New static globals. (rex_prefix_p,skip_prefixes) (amd64_insn_length_fprintf,amd64_insn_length_init_dis) (amd64_insn_length,amd64_get_unused_input_int_reg) (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy) (amd64_displaced_step_copy_insn) (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p) (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p) (amd64_displaced_step_fixup): New functions. * amd64-linux-tdep.c: #include arch-utils.h. (amd64_linux_init_abi): Install displaced stepping support. * gdb.arch/amd64-disp-step.S: New file. * gdb.arch/amd64-disp-step.exp: New file. * gdb.arch/i386-disp-step.S: New file. * gdb.arch/i386-disp-step.exp: New file.
* 2009-01-28 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-01-282-2/+12
| | | | | | * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for inf and nan processing to not proceed if we have already collected zeroes.
* * fhandler.cc (fhandler_base::wait_overlapped): Set bytes to -1 on EINTR orChristopher Faylor2009-01-273-4/+15
| | | | | | | | real error. (fhandler_base::write_overlapped): Assume that bytes_written will contain proper error value. * pipe.cc (fhandler_pipe::fhandler_pipe): Set uninterruptible_io since signals are handled by pipe functions now.
* * configure.host (m32c-*-*): Add long long I/O support by default.DJ Delorie2009-01-272-0/+9
|
* * shared.cc (shared_name): New function for WCHAR names.Corinna Vinschen2009-01-264-16/+34
| | | | | | | | (open_shared): Take name parameter as WCHAR. Accommodate throughout. * shared_info.h ((CURR_SHARED_MAGIC): Redefine. (shared_name): Add declaration for function taking a WCHAR name. (open_shared): Change declaration according to above change. * pinfo.cc (pinfo::init) : Accommodate above change.
* * grp.cc (getgrgid_r): Simplify code by using stpcpy.Corinna Vinschen2009-01-263-52/+35
| | | | | | (getgrnam_r): Ditto. * passwd.cc (getpwuid_r32): Simplify code by using stpcpy. (getpwnam_r): Ditto.
* * uinfo.cc (pwdgrp::load): Open file with FILE_OPEN_FOR_BACKUP_INTENTCorinna Vinschen2009-01-262-1/+8
| | | | flag.
* * mount.cc (mount_info::from_fstab): Open fstab file withCorinna Vinschen2009-01-242-1/+8
| | | | FILE_OPEN_FOR_BACKUP_INTENT flag.
* * pathnames.sgml: Add requirement for world-readability of specialCorinna Vinschen2009-01-242-0/+11
| | | | /etc files.
* * pathnames.sgml: Add section about accessing /etc files.Corinna Vinschen2009-01-242-2/+44
|
* * smallprint.cc (__small_vsprintf): Use already available buffer tmpCorinna Vinschen2009-01-232-8/+10
| | | | in wfillin case.
* * select.cc (peek_serial): Add hack to allow proper operation with com0comChristopher Faylor2009-01-222-0/+9
| | | | driver.
* 2009-01-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-01-222-0/+35
| | | | * COPYING.NEWLIB: Add ARM license.
* 2009-01-21 Richard Earnshaw <rearnsha@arm.com>Jeff Johnston2009-01-227-4/+864
| | | | | | | | * libc/machine/arm/arm_asm.h: New file. * libc/machine/arm/strlen.c: New file. * libc/machine/arm/strcpy.c: New file. * libc/machine/arm/strcmp.c: New file. * libc/machine/arm/Makefile.am: Add new string routines.
* ChangeLog:Corinna Vinschen2009-01-2124-2353/+2563
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Remove --enable-server option. Allways add the cygserver directory to $SUBDIRS. * configure: Regenerate. cygwin/ChangeLog: Remove USE_SERVER define. Accommodate throughout. * configure.in: Remove --enable-server option. * configure: Regenerate. * environ.cc: Remove CYGWIN=server setting. cygserver/ChangeLog: * client.cc (allow_server): Remove variable. (client_request_get_version::client_request_get_version): Drop checking allow_server. utils/ChangeLog: * passwd.c: Remove CYGWIN=server requirement from usage text. doc/ChangeLog: * cygserver.sgml: Remove the "How to use the Cygserver services" section. * cygwinenv.sgml: Move "(no)server" to the removed options section. * faq-programming.xml: Remove CYGWIN=server requirement for running the Cygwin testsuite. * ntsec.sgml: Ditto for using `passwd -R'.
* * fhandler_procnet.cc: Reorganize global procnet content data into aCorinna Vinschen2009-01-205-39/+43
| | | | | | | | new struct virt_tab_t. Accommodate throughout. * fhandler.h: Fix copyright dates. * fhandler_process.cc: Ditto. * fhandler_registry.cc: Ditto.
* * devices.h (FH_PROCESSFD): New device type.Corinna Vinschen2009-01-2010-324/+445
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dtable.cc (build_fh_pc): Add case for FH_PROCESSFD. * fhandler.h (class fhandler_virtual): Drop bufalloc member. * fhandler_virtual.h: New header. * fhandler_proc.cc: Remove types proc_type_t and proc_tab_t in favor of types virt_type_t and virt_tab_t from fhandler_virtual.h. Change prototypes of format_XXX functions accordingly. (proc_tab): Drop size member info. (fhandler_proc::fill_filebuf): Don't allocate filebuf here. Allocate it in the format_XXX functions. * fhandler_process.cc: Reorganize global process content data into a new struct virt_tab_t. Accommodate throughout. (format_process_winexename): New function. (format_process_winpid): New function. (format_process_exename): New function. (format_process_root): New function. (format_process_cwd): New function. (format_process_cmdline): New function. (format_process_ppid): New function. (format_process_uid): New function. (format_process_pgid): New function. (format_process_sid): New function. (format_process_gid): New function. (format_process_ctty): New function. (format_process_fd): New function. * fhandler_procnet.cc (fhandler_procnet::fill_filebuf): Don't use bufalloc. * fhandler_registry.cc (fhandler_registry::fill_filebuf): Define bufalloc locally. * fhandler_virtual.cc (fhandler_virtual::fhandler_virtual): Drop initialization of bufalloc. (fhandler_virtual::dup): Drop copying bufalloc.
* * thread.h (struct pthread_rwlock::RWLOCK_READER): Add counter n.Corinna Vinschen2009-01-203-4/+26
| | | | | | | | * thread.cc (pthread_rwlock::rdlock): If a thread already owns a read lock, just count the number of locks for it, per SUSv4. (pthread_rwlock::tryrdlock): Ditto. (pthread_rwlock::unlock): If a thread has more than one concurrent read locks, just count down.
* * autoload.cc (WSAIoctl): Reintroduce.Corinna Vinschen2009-01-207-65/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (WSASendMsg): Define. * fhandler.h (class fhandler_socket): Change definition of recv_internal and send_internal to take WSAMSG pointer as parameter. * fhandler_socket.cc (WSAID_WSARECVMSG): Define. (LPFN_WSARECVMSG): Define. (WSASendMsg): Declare. (get_ext_funcptr): New function to fetch address of WSARecvMsg. (fhandler_socket::recv_internal): Take just a LPWSAMSG parameter. Change code accordingly. If control information is requested, fetch address of WSARecvMsg and use that instead of WSARecvFrom. (fhandler_socket::recvfrom): Change return type to ssize_t as declared in fhandler.h. Accommodate changes to recv_internal. (fhandler_socket::recvmsg): Ditto. Make sure that control information is only requested if system, address family, and socket type support it. (fhandler_socket::send_internal): Take just a LPWSAMSG parameter and the flags. Change code accordingly. If control information is provided, use WSASendMsg instead of WSASendTo. (fhandler_socket::sendto): Drop useless comment. Accommodate changes to send_internal. (fhandler_socket::sendmsg): Ditto. Make sure that control information is only provided if system, address family, and socket type support it. * wincap.h (wincaps::has_recvmsg): New element. (wincaps::has_sendmsg): New element * wincap.cc: Implement above elements throughout. * include/cygwin/socket.h (CMSG_ALIGN): Phrase in terms of alignment of type struct cmsghdr.
* 2009-01-19 Neal H. Walfield <neal@gnu.org>Jeff Johnston2009-01-193-20/+28
| | | | | | | | * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C) [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL. * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX, __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l, not ll.
* * include/winbase.h (enum _DEP_SYSTEM_POLICY_TYPE): Fix version guard.Corinna Vinschen2009-01-192-1/+5
|
* Remove conflict marker.Andreas Schwab2009-01-191-46/+45
|
* * mmap.cc (mmap64): Fix condition checking if anonymous mapping beyondCorinna Vinschen2009-01-172-1/+8
| | | | EOF is required.
* 2009-01-11 Henry Nestler <henry@bigfoot.de>Chris Sutcliffe2009-01-172-4/+10
| | | | | * lib/ddk/ntoskrnl.def: Enable ZwQueryEaFile, ZwSetEaFile, NtQueryEaFile, NtSetEaFile.
* * Makefile.in: Fix copyright date.Corinna Vinschen2009-01-173-19/+28
| | | | | | | | * cygcheck.cc (scan_registry): Take additional parameter and add code to avoid recursion in Wow6432Node subkey. Rename variable cygnus to cygwin. Scan for "Cygwin" instead of for "cygnus" substring. (dump_sysinfo): Drop unused calls to scan_registry. Drop scanning HKEY_CURRENT_CONFIG.
* * fhandler_proc.cc: Reorganize global proc content data into a newCorinna Vinschen2009-01-173-139/+104
| | | | | | | | | | struct proc_tab_t. Accommodate throughout. (format_proc_version): New function. (format_proc_loadavg): New function. (format_proc_self): New function. * resource.cc (getrlimit): Return correct rlim_max value for RLIMIT_NOFILE.
* * Fix copyright dates.Corinna Vinschen2009-01-167-6/+11
|
* * cygcheck.cc (dump_sysinfo): Raise size of osname. Add Windows 7Corinna Vinschen2009-01-162-32/+60
| | | | | and Windows 2008 R2 as recognized OSes. Update products array to the latest documented list.
* formattingAlan Modra2009-01-161-1/+1
|
* * Makefile.def (configure-opcodes): Depend on configure-libiberty.Alan Modra2009-01-163-1/+30
| | | | | * Makefile.def (all-opcodes): Depend on all-libiberty. * Makefile.in: Regenerate.
* 2009-01-15 Andrew Stubbs <ams@codesourcery.com>Andrew Stubbs2009-01-152-15/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Julian Brown <julian@codesourcery.com> bfd/ * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known ARM attributes in ABI 2.07. * elf32-arm.c (get_secondary_compatible_arch): New function. (set_secondary_compatible_arch): New function. (tag_cpu_arch_combine): New function. (elf32_arm_copy_one_eabi_other_attribute): Delete function. (elf32_arm_copy_eabi_other_attribute_list): Delete function. (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to make it fit with order_01243. Add support for Tag_also_compatible_with, Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use, Tag_MPextension_use, Tag_nodefaults and Tag_conformance. Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name, Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension, Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed, Tag_VFP_arch and Tag_ABI_FP_16bit_format. Rework the way unknown attributes are handled. Defer errors until all attributes have been processed. gas/ * config/tc-arm.c (cpu_arch): Change ARM_ARCH_V6M to 11. include/elf/ * arm.h (TAG_CPU_ARCH_V6_M, TAG_CPU_ARCH_V6S_M): New defines. (MAX_TAG_CPU_ARCH, TAG_CPU_ARCH_V4T_PLUS_V6_M): New defines. (Tag_NEON_arch): Rename to Tag_Advanced_SIMD_arch to match ARM ABI version 2.07. (Tag_undefined39, Tag_nodefaults): New enum values. (Tag_also_compatible_with, Tag_T2EE_use): Likewise. (Tag_conformance, Tag_Virtualization_use): Likewise. (Tag_undefined69, Tag_MPextension_use): Likewise.
* * configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.Nick Clifton2009-01-153-0/+13
| | | | * configure: Regenerate.
* * include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO,Nick Clifton2009-01-152-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EF_IA_64_ARCHVER_1): New macros. Minor reformatting. * bfd/Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo (BFD32_BACKENDS_CFILES): Add new file vmsutil.c (vmsutil.lo): Add dependency rule * bfd/Makefile.in: Regenerate * bfd/config.bfd (ia64*-*-*vms*): Add case. * bfd/configure.in (bfd_elf64_ia64_vms_vec): Add case. * bfd/configure: Regenerate * bfd/vmsutil.[ch]: New files * bfd/elf-bfd.h (struct bfd_elf_special_section): Change type of attr to bfd_vma. * bfd/elfxx-ia64.c (elfNN_vms_post_process_headers, elfNN_vms_section_processing, elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr, elfNN_vms_object_p): New functions * bfd/targets.c (bfd_elf64_ia64_vms_vec): New target. * gas/configure.tgt(ia64-*-*vms*): New target. * gas/dwarf2dbg.h (dwarf2_loc_mark_labels): Make extern. * gas/tc.h (md_number_to_chars): Declare iff undefined. * gas/config/obj-elf.c (obj_elf_change_section): Change type of arg attr to bfd_vma. (obj_elf_parse_section_letters): Return a bfd_vma. Change type of variables attr, md_attr to bfd_vma. (obj_elf_section_word): Likewise. (obj_elf_section): Change type of variable attr to bfd_vma * gas/config/obj-elf.h (obj_elf_change_section): Change type of arg attr to bfd_vma * gas/config/tc-ia64.c (bfdver.h,time.h): Include. (ia64_elf_section_letter): Now returns a bfd_vma. Handle VMS specific attributes. (ia64_elf_section_flags): Arg attr now a bfd_vma. (ia64_init): Don't turn on dependency checking for VMS. (ia64_target_format): Check for VMS flag bit. (do_alias): Hande decc$ functions. (get_vms_time): New function. (ia64_vms_note): New function. * gas/config/tc-ia64.h (ia64_elf_section_letter): Now returns a bfd_vma. (ia64_elf_section_flags): Arg attr now a bfd_vma. (tc_init_after_args): Define for VMS. * gas/config/tc-alpha.c (alpha_elf_section_letter): Return a bfd_vma. (alpha_elf_section_flags): Change type of arg attr to bfd_vma. * gas/config/tc-alpha.h: Likewise. * gas/config/tc-i386.c (x86_64_section_letter): Return a bfd_vma. (x86_64_section_word): Return a bfd_vma. * gas/config/tc-i386.h: Likewise. * gas/config/tc-ip2k.c (ip2k_elf_section_flags): Change type of arg attr to bfd_vma. * gas/config/tc-ip2k.h: Likewise. * gas/config/tc-mep.c (mep_elf_section_letter): Return a bfd_vma. (mep_elf_section_flags): Change type of arg attr to bfd_vma. * gas/config/tc-mep.h: Likewise. * gas/config/tc-ppc.c (ppc_section_letter): Return a bfd_vma. (ppc_section_word): Return a bfd_vma. (ppc_section_flags): Change type of arg attr to bfd_vma. * gas/config/tc-ppc.h: Likewise. * gas/config/te-vms.h (DWARF2_DIR_SHOULD_END_WITH_SEPARATOR, DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME): New file with new macros * gas/dwarf2dbg.c (get_filenum, out_file_list): Default and call new macros.
* * plugin-api.h (LDPS_BAD_HANDLE): New constant.Cary Coutant2009-01-152-1/+28
| | | | | | | (ld_plugin_get_input_file): New typedef. (ld_plugin_release_input_file): New typedef. (LDPT_GET_INPUT_FILE, LDPT_RELEASE_INPUT_FILE): New constants. (struct ld_plugin_tv): Add two new fields.
* Update the copyright notice of some of the files I missedJoel Brobecker2009-01-1412-12/+14
| | | | in the previous copyright update.
* * libc/getopt.c (parse_long_options): Use fix from NetBSD's getoptCorinna Vinschen2009-01-132-9/+24
| | | | to avoid false ambiguities.
* 2009-01-12 Nathan Froyd <froydnj@codesourcery.com>Jeff Johnston2009-01-122-2/+4
| | | | * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
* 2009-01-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-01-122-4/+5
| | | | | * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of each fp. Let the function being called lock the fp, if necessary.
* * syscalls.cc (enum bin_status): New type.Corinna Vinschen2009-01-122-41/+123
| | | | | | | | | | | (try_to_bin): Return bin_status. Rename win32_path to pc. Rename h to fh. Rename fh to tmp_fh. Add code to set delete dispostion and more code to replace file moved to bin by another, temporary file. Add comments to explain why. (unlink_nt): Replace move_to_bin with bin_stat. Only set bin_stat to move_to_bin for non-remote files. As a last resort, call try_to_bin if setting delete-on-close failed. Only re-set R/O DOS attribute and only close handle if it's still valid.
* * errno.cc (errmap): Set errno to ENOENT instead of ENOSHARE throughout.Corinna Vinschen2009-01-113-7/+15
| | | | | | | * path.cc (path_conv::check): Set to and check for ENOENT instead of ENOSHARE. * path.cc (symlink_info::check): Fix Samba 3.2.x comment.
* 2009-01-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-01-102-3/+6
| | | | * include/_mingw.h: Increment version to 3.15.2.
* gas/Peter Bergner2009-01-092-3/+10
| | | | | | | | | | | | | | * config/tc-ppc.c (ppc_setup_opcodes): Remove PPC_OPCODE_NOPOWER4 test. Test the new "deprecated" opcode field. include/opcode/ * ppc.h (struct powerpc_opcode): New field "deprecated". (PPC_OPCODE_NOPOWER4): Delete. opcodes/ * ppc-opc.c (PPCNONE): Define. (NOPOWER4): Delete. (powerpc_opcodes): Initialize the new "deprecated" field.
* * mount.cc (mount_info::from_fstab_line): Always convert driveCorinna Vinschen2009-01-093-24/+34
| | | | | | | | | letter in native path to uppercase. * path.cc (normalize_win32_path): Ditto. (path_prefix_p): Revert previous patch. * path.cc (symlink_info::check): Check for STATUS_INVALID_PARAMETER return code to circumvent weird behaviour of Samba 3.2.x shares.
* * include/sys/cygwin.h (CW_SETERRNO): Define.Christopher Faylor2009-01-097-7/+39
| | | | | | | | | * external.cc (CW_SETERRNO): Implement. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 192 to reflect the above change. * path.cc (path_prefix_p): Treat X: as equivalent to x:. * mkglobals_h: Remove unneeded #define. * spawn.cc (spawn_guts): Avoid overly wordy initialization to zero.
* * ldd.cc: New file. First stab at implementing ldd-like functionality forChristopher Faylor2009-01-093-1/+275
| | | | | | Cygwin. * Makefile.in (CYGWIN_BINS): Add ldd. (ldd.exe): Use -lpsapi.
* * libc/fts.c (fts_build): Use DT_DIR case on Cygwin.Corinna Vinschen2009-01-082-3/+10
| | | | | (fts_ufslinks): Fix using wrong structure member in Cygwin-specific code.
* Typo fixes.Ben Elliston2009-01-081-3/+3
|
* * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.Kazu Hirata2009-01-082-2/+6
|