OSDN Git Service
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.
drow [Fri, 27 Jul 2007 15:45:06 +0000 (15:45 +0000)]
* gdb.threads/staticthreads.exp: Match .*sem_post.
drow [Fri, 27 Jul 2007 15:15:02 +0000 (15:15 +0000)]
* gdb.base/readline.exp (operate_and_get_next): Match the final
prompt.
nathan [Fri, 27 Jul 2007 14:24:26 +0000 (14:24 +0000)]
* ppc-opc (PPC7450): New.
(powerpc_opcodes): Use it in dcba.
hjl [Fri, 27 Jul 2007 13:26:43 +0000 (13:26 +0000)]
2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
* config.bfd (x86_64-*-mingw*): Don't include x86_64coff_vec.
corinna [Fri, 27 Jul 2007 13:19:40 +0000 (13:19 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Use
NtQueryInformationFile instead of GetFileSize, NtFsControlFile instead
of DeviceIoControl.
corinna [Fri, 27 Jul 2007 10:10:56 +0000 (10:10 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_name): Use
RtlSplitUnicodePath.
(fhandler_disk_file::fstat): Rename oret to opened. Open file using NT
functions right here. Try to open parent dir instead of root directory
to avoid call to rootdir. Use NtFsControlFile.
* ntdll.h (RtlSplitUnicodePath): Define.
corinna [Fri, 27 Jul 2007 09:00:12 +0000 (09:00 +0000)]
* fhandler_disk_file.cc (is_volume_mountpoint): New static inline
function.
(path_conv::ndisk_links): Call is_volume_mountpoint.
(fhandler_disk_file::readdir_helper): Ditto.
corinna [Fri, 27 Jul 2007 08:38:00 +0000 (08:38 +0000)]
* fhandler.h (enum query_state): Drop redundant query_stat_control.
* fhandler.cc (fhandler_base::open): Ditto. Add READ_CONTROL to
access and FILE_OPEN_FOR_BACKUP_INTENT to create_options when opening
for writing. Always set security attributes to avoid calling
has_acls.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Don't try to
open file twice.
msnyder [Fri, 27 Jul 2007 01:15:27 +0000 (01:15 +0000)]
2007-07-26 Michael Snyder <msnyder@access-company.com>
* coff-i386.c (coff_i386_rtype_to_howto): Guard against null.
msnyder [Fri, 27 Jul 2007 01:04:29 +0000 (01:04 +0000)]
2007-07-26 Michael Snyder <msnyder@svkmacdonelllnx>
* linker.c (bfd_section_already_linked_table_insert): Change
return type from void to boolean. Return FALSE on failure.
(_bfd_generic_section_already_linked): Test return value of
bfd_section_already_linked_table_insert, call fatal on error.
* elflink.c (_bfd_elf_section_already_linked): Test return value
of bfd_section_already_linked_table_insert, call fatal on error.
* libbfd-in.h (bfd_section_already_linked_table_insert): Update
return type to bfd_boolean.
* libbfd.h: Regenerate.
nemet [Fri, 27 Jul 2007 00:49:05 +0000 (00:49 +0000)]
* archive.c (do_slurp_bsd_armap, do_slurp_coff_armap,
bfd_slurp_armap): Improve function comment.
nemet [Fri, 27 Jul 2007 00:48:30 +0000 (00:48 +0000)]
* readelf.c (process_archive): Also skip Irix6-style archive symbol
tables.
amodra [Fri, 27 Jul 2007 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Fri, 27 Jul 2007 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
msnyder [Thu, 26 Jul 2007 21:58:44 +0000 (21:58 +0000)]
Fix bollixed check-in
msnyder [Thu, 26 Jul 2007 21:53:35 +0000 (21:53 +0000)]
2007-07-26 Michael Snyder <msnyder@access-company.com>
* linker.c (already_linked_newfunc): Check for NULL return from
bfd_hash_allocate.
msnyder [Thu, 26 Jul 2007 19:06:12 +0000 (19:06 +0000)]
2007-07-26 Michael Snyder <msnyder@access-company.com>
* coffgen.c (fixup_symbol_value): Guard against null;
bfd_is_com_section will dereference the section pointer.
msnyder [Thu, 26 Jul 2007 18:53:51 +0000 (18:53 +0000)]
2007-07-26 Michael Snyder <msnyder@access-company.com>
* syms.c (bfd_decode_symclass): Guard against NULL, since
bfd_is_com_section dereferences the pointer.
msnyder [Thu, 26 Jul 2007 18:45:13 +0000 (18:45 +0000)]
2007-07-26 Michael Snyder <msnyder@access-company.com>
* srec.c (srec_scan): Check for EOF (critical because return value
will be used as array index).
msnyder [Thu, 26 Jul 2007 18:43:24 +0000 (18:43 +0000)]
2007-07-26 Michael Snyder <msnyder@access-company.com>
* coffgen.c (_bfd_coff_read_internal_relocs): If internal_relocs
are not to be cached, free the temporary buffer.
msnyder [Thu, 26 Jul 2007 18:30:28 +0000 (18:30 +0000)]
2007-07-26 Michael Snyder <msnyder@access-company.com>
* aoutx.h (slurp_reloc_table): Return TRUE if reloc_size == zero
or count == zero.
msnyder [Thu, 26 Jul 2007 18:18:07 +0000 (18:18 +0000)]
2007-07-26 Michael Snyder <msnyder@access-company.com>
* tekhex.c (first_phase): Check return value for null.
msnyder [Thu, 26 Jul 2007 18:15:45 +0000 (18:15 +0000)]
2007-07-26 Michael Snyder <msnyder@access-company.com>
* elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless
pointer increment.
corinna [Thu, 26 Jul 2007 17:30:54 +0000 (17:30 +0000)]
* dir.cc (readdir_worker): Drop dir parameter from call to
readdir_get_ino.
* fhandler.h (fhandler_disk_file::readdir_helper): Switch file name
parameter to PUNICODE_STRING.
* fhandler_disk_file.cc: Drop including ntdef.h.
(class __DIR_mounts): Store mount points in UNICODE. Additionally
store cygdrive prefix in unicode here. Change methods accordingly.
(__DIR_mounts::eval_ino): Call new stat_worker instead of lstat64.
(__DIR_mounts::~__DIR_mounts): New destructor to free UNICODE buffers.
(path_conv::ndisk_links): Rewrite using native NT functions.
(fhandler_base::fstat_by_handle): Use NAME_MAX instead of CYG_MAX_PATH.
Always set pfvi->VolumeSerialNumber to non-0. Remove last resort
code.
(fhandler_base::fstat_by_name): Rewrite using native NT functions.
(fhandler_base::fstat_fs): Always call fstat_by_name if fstat_by_handle
fails.
(fhandler_base::fstat_helper): Rely on dwVolumeSerialNumber.
(fhandler_disk_file::facl): Call fstat_by_name if fstat_by_handle fails.
(DIR_BUF_SIZE): Define using NAME_MAX instead of CYG_MAX_PATH.
(__DIR_cache): Remove __name.
(d_dirname): Remove.
(fhandler_disk_file::opendir): Drop pathname length check.
Remove outdated comment. Use get_name method instead of accessing
pc.normalized_path directly.
(readdir_get_ino): Drop unused dir parameter. Accomodate throughout.
Allocate fname dynamically. Call new stat_worker instead of lstat64.
Call NtOpenFile instead of CreateFile. Call NtClose instead of
CloseHandle.
(fhandler_disk_file::readdir_helper): Use native NT functions.
Check for volume mount points and use correct inode number.
(fhandler_disk_file::readdir): Simplify slightly.
Use get_name instead of pc.normalized_path.
(fhandler_disk_file::rewinddir): Use RtlInitUnicodeString.
(fhandler_cygdrive::fstat): Ignore floppy drives. Set st_nlink
correctly.
(fhandler_cygdrive::readdir): Ignore floppy drives.
* fhandler_netdrive.cc (fhandler_netdrive::readdir): Accommodate
change to readdir_get_ino.
* fhandler_proc.cc (PROC_DIR_COUNT): Define.
(fhandler_proc::fstat): Evaluate correct link count for /proc.
* ntdll.h (struct _FILE_DIRECTORY_INFORMATION): Define.
(NtFsControlFile): Declare.
(RtlAppendUnicodeToString): Declare.
(RtlAppendUnicodeStringToString): Declare.
(RtlCompareUnicodeString): Declare.
(RtlCopyUnicodeString): Declare.
(RtlCreateUnicodeStringFromAsciiz): Declare.
(RtlEqualUnicodeString): Declare.
(RtlFreeUnicodeString): Declare.
(RtlInitEmptyUnicodeString): Declare.
(RtlSecondsSince1970ToTime): Declare.
(RtlInitEmptyUnicodeString): Define as inline function.
(RtlInitCountedUnicodeString): Define as inline function.
* path.cc (path_conv::check): New method with PUNICODE_STRING as path,
preliminary implementation.
(mount_info::get_mounts_here): Change to create UNICODE_STRINGs.
Also copy cygpath prefix into UNICODE_STRING.
(is_floppy): Drop 9x consideration.
* path.h: Drop including ntdef.h.
(path_conv::check): Add declaration.
(path_conv::path_conv): Add constructor for UNICODE_STRING paths.
* shared_info.h (mount_info::get_mounts_here): Change declaration.
* syscalls.cc: Drop forward declaration of stat_worker.
(stat_worke): Take path_conv as parameter. Drop nofollow flag.
(stat64): Create matching path_conv and call stat_worker with it.
(lstat64): Ditto.
* winsup.h: Include ntdef.h.
(stat_worker): Declare.
(readdir_get_ino): Change declaration.
amodra [Thu, 26 Jul 2007 13:45:58 +0000 (13:45 +0000)]
* elflink.c (_bfd_elf_fix_symbol_flags): Remove unnecessary
check on dynobj. Remove bed shadow.
macro [Thu, 26 Jul 2007 13:05:34 +0000 (13:05 +0000)]
* Make-rules (html): Add goal.
amodra [Thu, 26 Jul 2007 12:34:43 +0000 (12:34 +0000)]
* srec.c (srec_get_section_contents): Return immediately on
count zero. Check that offset and count are within section.
* libbfd.c (_bfd_generic_get_section_contents): Check that
offset + count does not overflow.
amodra [Thu, 26 Jul 2007 11:13:59 +0000 (11:13 +0000)]
* srec.c (srec_canonicalize_symtab): Don't alloc when symcount
is zero. Correct return value on error.
* mmo.c (mmo_canonicalize_symtab): Likewise.
* binary.c (binary_canonicalize_symtab) Correct return on error.
ths [Thu, 26 Jul 2007 11:05:23 +0000 (11:05 +0000)]
* bfd.c (_bfd_set_gp_value): Use abort instead of BFD_FAIL.
macro [Thu, 26 Jul 2007 10:37:41 +0000 (10:37 +0000)]
* MAINTAINERS (Write After Approval): Add myself.
macro [Thu, 26 Jul 2007 10:33:58 +0000 (10:33 +0000)]
gdb/:
* Makefile.in (MAKEHTMLFLAGS): Also search the current directory
for include files.
gdb/doc/:
* Makefile.in (MAKEHTMLFLAGS): Also search the current directory
for include files.
amodra [Thu, 26 Jul 2007 09:37:12 +0000 (09:37 +0000)]
* reloc.c (bfd_generic_get_relocated_section_contents): Avoid
bfd_canonicalize_reloc call when bfd_get_reloc_upper_bound
says there are no relocs.
nickc [Thu, 26 Jul 2007 08:31:02 +0000 (08:31 +0000)]
Speed up bfd_dwarf2_find_line.
* dwarf2.c (struct dwarf2_debug): Add new fields to support function and variable info hash tables. Add last_comp_unit, info_hash_count, funcinfo_hash_table, varinfo_hash_table, hash_units_head.
(struct comp_unit): Add prev_unit, cached.
(struct info_list_node, struct info_hash_entry, struct info_hash_table): New.
(info_hash_table_newfunc, create_info_hash_table, insert_info_hash_table, lookup_info_hash_table): New functions implementing function and variable info hash tables.
(scan_unit_for_symbols): Add checks to make sure hash tables are consistent with compilation units.
(comp_unit_maybe_decode_line_info): New function.
(comp_unit_find_line): Use comp_unit_maybe_decode_line_info.
(reverse_funcinfo_list, reverse_varinfo_list, comp_unit_hash_info, info_hash_lookup_funcinfo, info_hash_lookup_varinfo, stash_maybe_update_info_hash_table, stash_verify_info_hash_table, stash_maybe_enable_info_hash_tables, stash_find_line_fast): New functions. Make use of info hash tables to speed up bfd_dwarf2_find_line.
(find_line): Use hash table for faster lookup if it is turned on.
Also add code to maintain bi-directional link in comp units.
msnyder [Thu, 26 Jul 2007 02:01:48 +0000 (02:01 +0000)]
2007-07-25 Michael Snyder <msnyder@access-company.com>
* coffgen.c (_bfd_coff_get_external_symbols): Nothing to be done
if size == 0; return and avoid possible null pointer issues.
amodra [Thu, 26 Jul 2007 00:00:07 +0000 (00:00 +0000)]
daily update
gdbadmin [Thu, 26 Jul 2007 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
drow [Wed, 25 Jul 2007 21:30:59 +0000 (21:30 +0000)]
* ld-cdtest/cdtest-foo.cc (strncpy): Fix parameter name.
bwilson [Wed, 25 Jul 2007 17:33:27 +0000 (17:33 +0000)]
* config/tc-xtensa.c (xtensa_extui_opcode): New.
(xg_expand_assembly_insn): Check for invalid extui operands.
(md_begin): Initialize xtensa_extui_opcode.
corinna [Wed, 25 Jul 2007 16:11:03 +0000 (16:11 +0000)]
* autoload.cc (CreateToolhelp32Snapshot): Remove.
corinna [Wed, 25 Jul 2007 16:07:41 +0000 (16:07 +0000)]
* autoload.cc (Process32First): Remove.
(Process32Next): Remove.
macro [Wed, 25 Jul 2007 15:25:12 +0000 (15:25 +0000)]
* Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
nickc [Wed, 25 Jul 2007 14:56:22 +0000 (14:56 +0000)]
PR 4824
* ld.texinfo (Options): Extend the description of the -O command line option.
pbrook [Wed, 25 Jul 2007 14:39:48 +0000 (14:39 +0000)]
2007-06-29 Paul Brook <paul@codesourcery.com>
* ld-arm/arm-elf.exp (armelftests): Add callweak.
* ld-arm/callweak.d: New test.
* ld-arm/callweak.s: New test.
dannysmith [Wed, 25 Jul 2007 10:21:53 +0000 (10:21 +0000)]
* include/wtypes.h (LPDECIMAL): Define.
(DECIMAL_NEG, DECIMAL_SETZERO): Move definitions.
corinna [Wed, 25 Jul 2007 10:04:56 +0000 (10:04 +0000)]
* autoload.cc (NetWkstaUserGetInfo): Remove.
(CharToOemBuffA): Remove.
(KillTimer): Remove.
(OemToCharBuffA): Remove.
(SetTimer): Remove.
bje [Wed, 25 Jul 2007 06:36:27 +0000 (06:36 +0000)]
* Makefile.in (CFILES): Remove ternary.c.
(REQUIRED_OFILES): Remove ./ternary.o.
(INSTALLED_HEADERS): Remove ternary.h.
(ternary.o): Remove.
* ternary.c: Remove.