OSDN Git Service
dj [Fri, 3 Aug 2007 19:49:43 +0000 (19:49 +0000)]
merge from gcc
davek [Fri, 3 Aug 2007 19:41:48 +0000 (19:41 +0000)]
* Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjusting
dependency-filtering $(wordlist ...) call appropriately. Link ntdll.
(bloda.o): New rule to build bloda.o
* cygcheck.cc (dump_sysinfo): Call bloda function dump_dodgy_apps().
* bloda.cc: New file implements detection of applications from the
Big List Of Dodgy Apps.
wilson [Fri, 3 Aug 2007 18:54:22 +0000 (18:54 +0000)]
Fix resource dependency problems for xmpy.
drow [Fri, 3 Aug 2007 12:53:47 +0000 (12:53 +0000)]
* ld-srec/srec.exp: XFAIL for powerpc*-*-*.
amodra [Fri, 3 Aug 2007 00:00:04 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 3 Aug 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
msnyder [Thu, 2 Aug 2007 21:08:12 +0000 (21:08 +0000)]
2007-08-02 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c (create_set_type): Test should only be done within
the preceeding if block. Otherwise, variable is uninitialized.
msnyder [Thu, 2 Aug 2007 21:01:33 +0000 (21:01 +0000)]
2007-08-02 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c (check_typedef): Guard NULL.
ericb [Thu, 2 Aug 2007 20:23:06 +0000 (20:23 +0000)]
Implement fmemopen and open_memstream.
* libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
* libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
New file.
* libc/stdio/fopencookie.c (fcwriter): Minor optimization.
* libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
functions together.
(fmemopen, open_memstream): Declare new functions.
* libc/stdio/stdio.tex: Document them.
* libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
fmemopen and open_memstream.
* libc/stdio/Makefile.in: Regenerate.
hjl [Thu, 2 Aug 2007 16:01:54 +0000 (16:01 +0000)]
bfd/
2007-08-02 H.J. Lu <hongjiu.lu@intel.com>
* coffcode.h (ALIGN_SET): Removed.
(ELIFALIGN_SET): Likewise.
(coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES,
IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES,
IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES,
IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES.
include/coff/
2007-08-02 H.J. Lu <hongjiu.lu@intel.com>
* pe.h (IMAGE_SCN_ALIGN_POWER_BIT_POS): New.
(IMAGE_SCN_ALIGN_POWER_BIT_MASK): Likewise.
(IMAGE_SCN_ALIGN_POWER_NUM): Likewise.
(IMAGE_SCN_ALIGN_POWER_CONST): Likewise.
(IMAGE_SCN_ALIGN_128BYTES): Likewise.
(IMAGE_SCN_ALIGN_256BYTES): Likewise.
(IMAGE_SCN_ALIGN_512BYTES): Likewise.
(IMAGE_SCN_ALIGN_1024BYTES): Likewise.
(IMAGE_SCN_ALIGN_2048BYTES): Likewise.
(IMAGE_SCN_ALIGN_4096BYTES): Likewise.
(IMAGE_SCN_ALIGN_8192BYTES): Likewise.
(IMAGE_SCN_ALIGN_1BYTES): Redefined with
IMAGE_SCN_ALIGN_POWER_CONST.
(IMAGE_SCN_ALIGN_2BYTES): Likewise.
(IMAGE_SCN_ALIGN_4BYTES): Likewise.
(IMAGE_SCN_ALIGN_8BYTES): Likewise.
(IMAGE_SCN_ALIGN_16BYTES): Likewise.
(IMAGE_SCN_ALIGN_32BYTES): Likewise.
(IMAGE_SCN_ALIGN_64BYTES): Likewise.
corinna [Thu, 2 Aug 2007 15:13:54 +0000 (15:13 +0000)]
* fhandler_disk_file.cc (readdir_get_ino): Accommodate native symlinks.
* syscalls.cc (rename): Ditto.
corinna [Thu, 2 Aug 2007 14:38:21 +0000 (14:38 +0000)]
* smallprint.c: Remove.
cgf [Thu, 2 Aug 2007 14:34:46 +0000 (14:34 +0000)]
* lib/Makefile: Add missed file to accommodate below changes.
cgf [Thu, 2 Aug 2007 14:33:32 +0000 (14:33 +0000)]
Add missing checkin.
cgf [Thu, 2 Aug 2007 14:30:16 +0000 (14:30 +0000)]
* lib/cygwin_attach_dll.c: Fix compiler warning.
* lib/cygwin_crt0.c: Ditto.
cgf [Thu, 2 Aug 2007 14:23:22 +0000 (14:23 +0000)]
* Makefile.in: Add -lntdll to link line.
(CYGWIN_OBJS): Include strfuncs.o.
cgf [Thu, 2 Aug 2007 14:21:53 +0000 (14:21 +0000)]
* dcrt0.cc (codepage_type): Remove definition.
* strfuncs.cc: Move it here. New file with bits of miscfuncs.cc.
* miscfuncs.cc: Remove wide character stuff.
corinna [Thu, 2 Aug 2007 14:07:19 +0000 (14:07 +0000)]
* smallprint.c: New file.
* Makefile.in (OBJS): Add smallprint.o.
(CYGWIN_OBJS): Remove smallprint.o from Cygwin dir.
corinna [Thu, 2 Aug 2007 11:11:34 +0000 (11:11 +0000)]
* syscalls.cc (rename): Move and add text to comment about testing
oldpath and newpath referring to the same file. Test if oldpath
has more than one hardlink before opening oldpath (idea by Eric Blake).
Reorder test so that file id is tested before volume serial number.
corinna [Thu, 2 Aug 2007 10:33:28 +0000 (10:33 +0000)]
* path.h (struct fs_info): Drop root_len and name_hash members.
(fsinfo::length): Remove.
(path_conv::rootdir): Remove.
* syscalls.cc (try_to_bin): Use rootdir function instead of
path_conv::rootdir method.
corinna [Thu, 2 Aug 2007 10:22:28 +0000 (10:22 +0000)]
* fhandler_disk_file.cc (path_conv::ndisk_links): Fix typo in call to
NtClose.
corinna [Thu, 2 Aug 2007 07:22:45 +0000 (07:22 +0000)]
* include/winbase.h (ReOpenFile): Add prototype.
* lib/kernel32.def (ReOpenFile@16): Add export.
msnyder [Thu, 2 Aug 2007 00:40:02 +0000 (00:40 +0000)]
2007-08-01 Michael Snyder <msnyder@access-company.com>
* i386-dis.c (print_insn): Guard against NULL.
amodra [Thu, 2 Aug 2007 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Thu, 2 Aug 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
corinna [Wed, 1 Aug 2007 21:02:24 +0000 (21:02 +0000)]
* syscalls.cc (rename): Check if oldpath and newpath refer to the
same file. If so, return successfully and perform no other action,
as per SUSv3.
msnyder [Wed, 1 Aug 2007 20:34:36 +0000 (20:34 +0000)]
2007-08-01 Michael Snyder <msnyder@access-company.com>
* remote-utils.c (putpkt_binary): Memory leak, free buf2.
msnyder [Wed, 1 Aug 2007 20:26:30 +0000 (20:26 +0000)]
2007-08-01 Michael Snyder <msnyder@access-company.com>
* cli/cli-decode.c (lookup_cmd): Check for null earlier, to
avoid dereference in lookup_cmd_1.
msnyder [Wed, 1 Aug 2007 20:15:36 +0000 (20:15 +0000)]
2007-08-01 Michael Snyder <msnyder@access-company.com>
* tui/tui-data.c (tui_alloc_content): Move assign out of if,
clean up long lines.
(tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
(tui_alloc_win_info): Ditto.
(tui_add_content_elements): Ditto.
* tui/tui-file.c (tui_file_magic): Ditto.
msnyder [Wed, 1 Aug 2007 20:06:05 +0000 (20:06 +0000)]
2007-08-01 Michael Snyder <msnyder@access-company.com>
* vms-tir.c (new_section): Fix cut and paste error.
msnyder [Wed, 1 Aug 2007 19:58:40 +0000 (19:58 +0000)]
2007-08-01 Michael Snyder <msnyder@access-company.com>
* aoutx.h (aout_link_add_symbols): Return if count is zero.
msnyder [Wed, 1 Aug 2007 19:55:09 +0000 (19:55 +0000)]
2007-08-01 Michael Snyder <msnyder@access-company.com>
* elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
pointer must be non-null.
msnyder [Wed, 1 Aug 2007 19:43:08 +0000 (19:43 +0000)]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* cp-demangle.c (d_print_comp): Guard against null.
nemet [Wed, 1 Aug 2007 17:41:30 +0000 (17:41 +0000)]
* ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d,
ld-mips-elf/reloc-5.s, ld-mips-elf/reloc-5.d: New tests.
* ld-mips-elf/mips-elf.exp: Invoke them.
nickc [Wed, 1 Aug 2007 17:00:07 +0000 (17:00 +0000)]
ga.po: Updated Irish translation.
nickc [Wed, 1 Aug 2007 16:55:53 +0000 (16:55 +0000)]
* coffcode.h (coff_sort_func_alent): New function.
(coff_slurp_line_table): Sort line table if not already sorted.
hjl [Wed, 1 Aug 2007 15:27:55 +0000 (15:27 +0000)]
Correct ChangeLog entries.
hjl [Wed, 1 Aug 2007 15:19:35 +0000 (15:19 +0000)]
Add a newline.
corinna [Wed, 1 Aug 2007 14:46:09 +0000 (14:46 +0000)]
* ntdll.h (STATUS_ACCESS_DENIED): Define.
* syscalls.cc (check_dir_not_empty): New static function.
(unlink_nt): Move code checking for non-empty dir to check_dir_not_empty
and call check_dir_not_empty instead.
(rename): Add fault handler. Check oldpath and newpath for trailing
. and .. path components and return EINVAL if so. Check oldpath
for being on a vrtual file system. If renaming a dir fails with
STATUS_ACCESS_DENIED, check if the target dir is non-empty and return
ENOTEMPTY if so.
corinna [Wed, 1 Aug 2007 13:26:55 +0000 (13:26 +0000)]
* localtime.cc (tzsetwall): Don't set TZ.
corinna [Wed, 1 Aug 2007 12:55:24 +0000 (12:55 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Drop
usage of path_conv::volser().
(fhandler_base::fstat_by_name): Ditto.
* ntdll.h (STATUS_NO_MEDIA_IN_DEVICE): Define.
(STATUS_OBJECT_NAME_NOT_FOUND): Define.
(FILE_REMOVABLE_MEDIA, FILE_READ_ONLY_DEVICE, FILE_FLOPPY_DISKETTE)
(FILE_WRITE_ONCE_MEDIA, FILE_REMOTE_DEVICE, FILE_DEVICE_IS_MOUNTED)
(FILE_VIRTUAL_VOLUME, FILE_AUTOGENERATED_DEVICE_NAME)
FILE_DEVICE_SECURE_OPEN): Define Device Characteristics.
(struct _FILE_FS_DEVICE_INFORMATION): Define.
* path.cc (MAX_FS_INFO_CNT): Remove.
(fsinfo): Remove.
(fsinfo_cnt): Remove.
(fs_info::update): Rewrite using native NT functions. Drop fs_info
cashing since it's incorrect.
(path_conv::fillin): Use NtQueryInformationFile. Drop setting serial
number.
(path_conv::check): Accommodate new fs_info::update parameters.
(fillout_mntent): Ditto.
* path.h (fs_info): Drop serial, has_ea and drive_type status
flags.
(fs_info::update): Declare with new parameters.
(path_conf::drive_type): Remove.
(path_conf::fs_has_ea): Remove.
(path_conf::volser): Remove.
jakub [Wed, 1 Aug 2007 08:57:23 +0000 (08:57 +0000)]
* elf.c (_bfd_elf_map_sections_to_segments): Work around buggy
GCC 3.4.x warning.
corinna [Wed, 1 Aug 2007 08:36:38 +0000 (08:36 +0000)]
* fhandler.cc (check_posix_perms): Remove.
(fhandler_base::fpathconf): Return value of pc.has_acls () instead
of calling check_posix_perms.
corinna [Wed, 1 Aug 2007 07:52:35 +0000 (07:52 +0000)]
* syscalls.cc (rename): Use unchanged path_conv in condition.
amodra [Wed, 1 Aug 2007 07:50:16 +0000 (07:50 +0000)]
* aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown
r_type.
(swap_std_reloc_in): Likewise.
(aout_link_input_section_std): Likewise. Return with an error
on unexpected relocation type.
(aout_link_input_section_ext): Likewise.
amodra [Wed, 1 Aug 2007 07:43:36 +0000 (07:43 +0000)]
PR4694
* aoutx.h (final_link): Write a zero in first word of
stringtab if no symbols rather than corrupting last byte
of text/data.
corinna [Wed, 1 Aug 2007 07:39:20 +0000 (07:39 +0000)]
* smallprint.cc (__small_vsprintf): Add format specifier 'W' for
PWCHAR arguments. Move wide char handling after char handling.
gdbadmin [Wed, 1 Aug 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Wed, 1 Aug 2007 00:00:06 +0000 (00:00 +0000)]
daily update
msnyder [Tue, 31 Jul 2007 23:08:22 +0000 (23:08 +0000)]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
True and false paths are mutually exclusive.
msnyder [Tue, 31 Jul 2007 22:01:03 +0000 (22:01 +0000)]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* event-top.c (command_line_handler): Add pedantic return.
msnyder [Tue, 31 Jul 2007 21:56:00 +0000 (21:56 +0000)]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* f-valprint.c (info_common_command): Bail out to prevent null
pointer deref. Break up a long line.
msnyder [Tue, 31 Jul 2007 21:49:21 +0000 (21:49 +0000)]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* exec.c (xfer_memory): Remove redundant condition from 'if'.
msnyder [Tue, 31 Jul 2007 21:42:19 +0000 (21:42 +0000)]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* symfile.c (reread_separate_symbols): Free xmalloced memory.
msnyder [Tue, 31 Jul 2007 21:36:13 +0000 (21:36 +0000)]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* printcmd.c (build_address_symbolic): Remove dead code and dead
variable.
msnyder [Tue, 31 Jul 2007 21:35:37 +0000 (21:35 +0000)]
2007-07-31 Michael Snyder <msnyder@access-company.com>
* printcmd.c (build_address_symbolic): Remove dead code and dead
variable.
ericb [Tue, 31 Jul 2007 20:49:40 +0000 (20:49 +0000)]
More POSIX stream corner cases.
* libc/stdio/findfp.c (__sinit): Open stderr read/write.
* libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
requested.
* libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
corinna [Tue, 31 Jul 2007 20:48:11 +0000 (20:48 +0000)]
* ntdll.h (RtlFreeAnsiString): Declare.
* ntdll.h (RtlFreeOemString): Declare.
* ntdll.h (RtlUnicodeStringToAnsiString): Declare.
* ntdll.h (RtlUnicodeStringToOemString): Declare.
* smallprint.cc: Renamed from smallprint.c. Drop unnecessary
forward declarations.
(__small_vsprintf): Add format specifiers 'C' for WCHAR arguments
and 'S' for PUNICODE_STRING arguments.
drow [Tue, 31 Jul 2007 19:58:39 +0000 (19:58 +0000)]
* linespec.c (minsym_found): Advance to the next line if possible.
* gdb.base/prologue.c, gdb.base/prologue.exp: New.
* lib/gdb.exp (gdb_breakpoint): Handle "temporary".
ironhead [Tue, 31 Jul 2007 17:55:40 +0000 (17:55 +0000)]
2007-07-31 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/wtsapi32.h (WTS_CURRENT_SESSION, WTSDisconnectSession): Define.
corinna [Tue, 31 Jul 2007 15:19:59 +0000 (15:19 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Revert to checking
for binary in case of .exe files.
* ntdll.h (RtlPrefixUnicodeString): Declare.
* path.cc (path_conv::is_binary): New method.
* path.h (path_conv::is_binary): Declare.
* syscalls.cc (rename_append_suffix): New static helper function for
rename.
(rename): Rewrite. New suffix tests. Use native NT functions.
palves [Tue, 31 Jul 2007 13:58:19 +0000 (13:58 +0000)]
* win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
typedef.
(win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
(load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
CloseToolhelp32Snapshot.
(toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
CloseToolhelp32Snapshot.
palves [Tue, 31 Jul 2007 13:50:09 +0000 (13:50 +0000)]
* arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
* config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
solib-svr4.o, and add solib-target.o
jakub [Tue, 31 Jul 2007 08:15:44 +0000 (08:15 +0000)]
* elf.c (get_program_header_size): Adjacent loadable .note*
sections need just one PT_NOTE segment.
(_bfd_elf_map_sections_to_segments): Likewise.
msnyder [Tue, 31 Jul 2007 03:53:23 +0000 (03:53 +0000)]
2007-07-30 Michael Snyder <msnyder@access-company.com>
* coffgen.c (_bfd_coff_read_internal_relocs): Revert change of
2007-07-26. Buffer still in use, can't be freed.
gdbadmin [Tue, 31 Jul 2007 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 31 Jul 2007 00:00:06 +0000 (00:00 +0000)]
daily update
macro [Mon, 30 Jul 2007 12:24:21 +0000 (12:24 +0000)]
* gdb.base/dump.exp: Force the correct endianness for binary
formats not carrying this information.
corinna [Mon, 30 Jul 2007 10:58:16 +0000 (10:58 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::facl): If file can't be
opened for reading the ACLs, fall back to faking them.
* sec_acl.cc (acl_worker): Handle non-existing files.
* security.cc (get_file_attribute): Return ILLEGAL_UID/ILLEGAL_GID
as owner/group for non-readable ACLs on file systems supporting them.
corinna [Mon, 30 Jul 2007 10:05:26 +0000 (10:05 +0000)]
* syscalls.cc (stat_worker): Don't call build_fh_pc with invalid pc.
dannysmith [Mon, 30 Jul 2007 01:02:31 +0000 (01:02 +0000)]
2007-7-30 Martijn Wargers <martijnw22@users.sourceforge.net>
* include/wingdi.h (GetTextExtentExPointI): Add prototype.
* lib/gdi32.def (GetTextExtentExPointI@28): Add export.
amodra [Mon, 30 Jul 2007 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 30 Jul 2007 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
hjl [Sun, 29 Jul 2007 19:43:36 +0000 (19:43 +0000)]
gas/testsuite/
2007-07-29 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4834
* gas/i386/simd-intel.d: Updated.
* gas/i386/simd.d: Likewise.
* gas/i386/x86-64-simd-intel.d: Likewise.
* gas/i386/x86-64-simd.d: Likewise.
* gas/i386/simd.s: Add tests for SSE4 instructions.
* gas/i386/x86-64-simd.s: Likewise.
opcodes/
2007-07-29 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4834
* i386-dis.c (EXw): New.
(prefix_user_table): Updated to use EXw, EXd and EXq for SSE4
instructions when appropriated.
hjl [Sun, 29 Jul 2007 18:37:21 +0000 (18:37 +0000)]
The fix is for PR 4834, not PR 4835.
hjl [Sun, 29 Jul 2007 18:27:58 +0000 (18:27 +0000)]
gas/
2007-07-29 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (check_long_reg): Allow cvtss2si to convert
DWORD memory to Reg64 in Intel synax.
(check_qword_reg): Allow cvtsd2si to convert QWORD memory to
Reg32 in Intel syntax.
gas/testsuite/
2007-07-29 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/simd.s: Add tests for cvtss2si/cvtsd2si in Intel
mode.
* gas/i386/x86-64-simd.s: Likewise.
* gas/i386/simd-intel.d: Updated.
* gas/i386/simd.d: Likewise.
* gas/i386/x86-64-simd-intel.d: Likewise.
* gas/i386/x86-64-simd.d: Likewise.
cgf [Sun, 29 Jul 2007 17:24:54 +0000 (17:24 +0000)]
* fhandler.cc (fhandler_base::wait_overlapped): Handle read EOF better and
issue a SIGPIPE when we get ERROR_NO_DATA.
corinna [Sun, 29 Jul 2007 15:57:40 +0000 (15:57 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't allow
FileAttributes set to 0 when calling NtSetInformationFile since it has
a special meaning.
(fhandler_disk_file::facl): Ditto.
(fhandler_disk_file::link): Only set attributes after copying files.
Use SetFileAttributesW.
* syscalls.cc (unlink_nt): Only care for actual FILE_ATTRIBUTE_READONLY.
Don't allow FileAttributes set to 0 when calling NtSetInformationFile.
After marking for deletion, restore R/O attribute on files to
accommodate hardlinks.
amodra [Sun, 29 Jul 2007 12:33:37 +0000 (12:33 +0000)]
ld/
* ldlang.c (lang_insert_orphan): When searching through linker
script to place an orphan, don't stop on statements that appear
outside of SECTIONS.
* emultempl/elf32.em (output_rel_find): Prefer read-only alloc
sections over read/write alloc sections.
ld/testsuite/
* ld-elf/weak-dyn-1.rd: Adjust.
corinna [Sun, 29 Jul 2007 12:27:21 +0000 (12:27 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Use FILE_ANY_ACCESS.
(fhandler_base::utimes_fs): Fix white space.
(fhandler_disk_file::lock): Remove 9x blurb from comment.
(fhandler_disk_file::mkdir): Use NtCreateFile/NtClose instead of
CreateDirectoryA.
(fhandler_disk_file::rmdir): Accommodate changes to unlink_nt.
Simplify post-delete SMB-related tests. Use NtQueryAttributesFile
instead of GetFileAttributes.
* ntdll.h (STATUS_DIRECTORY_NOT_EMPTY): Define.
(NtQueryAttributesFile): Declare.
* syscalls.cc (unlink_nt): Return NTSTATUS. Drop setattrs parameter.
Never use FILE_DELETE_ON_CLOSE, always use
NtSetInformationFile(FileDispositionInformation) instead.
Check for R/O attributes and open file with FILE_WRITE_ATTRIBUTES
access if any of them are set. Remove R/O attributes before
marking for delete if necessary. Revert them afterwards if necessary.
(unlink): Accommodate changes to unlink_nt.
corinna [Sun, 29 Jul 2007 08:23:03 +0000 (08:23 +0000)]
* fhandler_disk_file.cc: Use get_handle throughout.
(fhandler_disk_file::fchmod): Always try to open file with required
access rights. Use NtSetInformationFile instead of SetFileAttributes.
(fhandler_disk_file::facl): Use NtSetInformationFile instead of
SetFileAttributes.
(fhandler_base::utimes_fs): Change lastaccess and lastwrite to
LARGE_INTEGER. Drop 9x directory case. Use NtSetInformationFile
instead of SetFileAttributes. Drop temporarily changing R/O attribute
since NtSetInformationFile(FileBasicInformation) also works on R/O
files.
* ntdll.h (STATUS_NOT_SUPPORTED): Define.
cgf [Sun, 29 Jul 2007 05:22:05 +0000 (05:22 +0000)]
* cygtls.h (_cygtls::inside_kernel): Move function declaration into _cygtls
class.
* exceptions.cc (_cygtls::inside_kernel): Move function definition into _cygtls
class.
* fhandler.cc (fhandler_base::wait_overlapped): Make return tri-state to detect
when there is a EINTR situation. Add a pointer to a length parameter. Move
GetOverlappedResult into this function.
(fhandler_base::read_overlapped): Accommodate above changes and loop if we
receive a restartable signal.
(fhandler_base::write_overlapped): Ditto.
* fhandler.h (fhandler_base::wait_overlapped): Reflect above changes.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
gdbadmin [Sun, 29 Jul 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sun, 29 Jul 2007 00:00:06 +0000 (00:00 +0000)]
daily update
hjl [Sat, 28 Jul 2007 23:34:13 +0000 (23:34 +0000)]
gas/testsuite/
2007-07-28 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4835
* gas/i386/simd-intel.d: Updated.
* gas/i386/simd.d: Likewise.
* gas/i386/x86-64-simd-intel.d: Likewise.
* gas/i386/x86-64-simd.d: Likewise.
* gas/i386/simd.s: Add new tests.
* gas/i386/x86-64-simd.s: Likewise.
opcodes/
2007-07-28 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4835
* i386-dis.c (Eq): New.
(EMC): Renamed to ...
(EMCq): This. Use q_mode instead of v_mode.
(prefix_user_table): Updated to use EXd, EXq, EMCq, Ed and Eq
when appropriated.
cgf [Sat, 28 Jul 2007 17:39:16 +0000 (17:39 +0000)]
* MAINTAINERS: Update my email address.
hjl [Sat, 28 Jul 2007 16:32:00 +0000 (16:32 +0000)]
gas/testsuite/
2007-07-28 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/x86-64-opcode.d: Updated.
* gas/i386/x86-64-simd-intel.d: Likewise.
* gas/i386/x86-64-simd.d: Likewise.
* gas/i386/x86-64-simd.s: Add movq.
opcodes/
2007-07-28 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (dis386_twobyte): Change "movd" to "movK".
(prefix_user_table): Likewise. Use EXq instead of EXx on
"movq".
corinna [Sat, 28 Jul 2007 16:08:45 +0000 (16:08 +0000)]
* ntdll.h (RtlEqualUnicodePathPrefix): Rename from RtlEqualPathPrefix.
(RtlEqualUnicodePathSuffix): Rename from RtlEqualPathSuffix.
* fhandler_disk_file.cc (fhandler_disk_file::link): Accommodate above
change.
corinna [Sat, 28 Jul 2007 16:00:35 +0000 (16:00 +0000)]
* ntdll.h (RtlInitCountedUnicodeString): Swap order of string and length
parameters to be the same as for RtlInitEmptyUnicodeString.
(RtlEqualPathPrefix): New inline function.
(RtlEqualPathSuffix): New inline function.
* fhandler_disk_file.cc: Accommodate parameter order change of
RtlInitEmptyUnicodeString throughout.
(fhandler_disk_file::link): Do path checking in unicode. Call
CopyFileW instead of CopyFileA.
msnyder [Sat, 28 Jul 2007 01:16:37 +0000 (01:16 +0000)]
2007-07-27 Michael Snyder <msnyder@access-company.com>
* tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
amodra [Sat, 28 Jul 2007 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sat, 28 Jul 2007 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
jakub [Fri, 27 Jul 2007 22:33:23 +0000 (22:33 +0000)]
* scripttempl/elf.sc: Add .note.gnu.build-id.
msnyder [Fri, 27 Jul 2007 22:04:23 +0000 (22:04 +0000)]
2007-07-27 Michael Snyder <msnyder@access-company.com>
* cofflink.c (coff_link_add_symbols): Return if count is zero.
msnyder [Fri, 27 Jul 2007 21:23:00 +0000 (21:23 +0000)]
2007-07-27 Michael Snyder <msnyder@access-company.com>
* coff-i386.c (coff_i386_rtype_to_howto): Off by one error.
msnyder [Fri, 27 Jul 2007 19:04:38 +0000 (19:04 +0000)]
2007-07-27 Michael Snyder <msnyder@access-company.com>
* aoutx.h (slurp_symbol_table): Return if count == 0.
msnyder [Fri, 27 Jul 2007 18:54:04 +0000 (18:54 +0000)]
2007-07-27 Michael Snyder <msnyder@access-company.com>
* coffgen.c (_bfd_coff_read_internal_relocs): Return if count is zero.
msnyder [Fri, 27 Jul 2007 18:50:17 +0000 (18:50 +0000)]
2007-07-27 Michael Snyder <msnyder@access-company.com>
* elf32-i386.c (elf_i386_check_relocs): Check for null pointer.
msnyder [Fri, 27 Jul 2007 18:44:40 +0000 (18:44 +0000)]
2007-07-27 Michael Snyder <michael.snyder@access-company.com>
* server.c (main): Check for inferior exit before main loop.
corinna [Fri, 27 Jul 2007 16:24:06 +0000 (16:24 +0000)]
* autoload.cc (CreateHardLinkA): Remove.
* fhandler_disk_file.cc (fhandler_disk_file::link): Drop GetBinaryType
test. Just check exe suffix instead. Tune creating new file name.
Implement creating hard link using native NT functions which works
on all platforms.
* ntdll.h (STATUS_INVALID_DEVICE_REQUEST): Define.
(struct _FILE_LINK_INFORMATION): Define.