OSDN Git Service
qiyao [Tue, 31 Aug 2010 00:26:28 +0000 (00:26 +0000)]
2010-08-30 Yao Qi <yao@codesourcery.com>
* arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
(arm_linux_syscall_next_pc): New.
(arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
(arm_linux_init_abi): Initialize syscall_next_pc.
* arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
(arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
* arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
Declare arm_frame_is_thumb.
corinna [Mon, 30 Aug 2010 23:16:00 +0000 (23:16 +0000)]
* posix.sgml (std-notes): Fix typos and incorrectnesses.
froydnj [Mon, 30 Aug 2010 23:07:01 +0000 (23:07 +0000)]
remove file committed by mistake
corinna [Mon, 30 Aug 2010 22:19:39 +0000 (22:19 +0000)]
* new-features.sgml (ov-new1.7.7): Document change to binmode/textmode
link libs.
* textbinary.sgml (textbin-devel): Ditto.
corinna [Mon, 30 Aug 2010 19:39:43 +0000 (19:39 +0000)]
* autoload.cc (MsgWaitForMultipleObjectsEx): Define.
(MsgWaitForMultipleObjects): Remove.
* select.cc (select_stuff::wait): Use MsgWaitForMultipleObjectsEx with
QS_ALLPOSTMESSAGE and, if possible, MWMO_INPUTAVAILABLE flags. Explain
why. Fix a potential crash due to a NULL pointer in WAIT_FAILED case.
(peek_windows): Use filter pattern on NT4. Explain why.
* wincap.h (wincaps::has_mwmo_inputavailable): New element.
* wincap.cc: Implement above element throughout.
jkratoch [Mon, 30 Aug 2010 18:49:11 +0000 (18:49 +0000)]
gdb/
Code cleanup.
* breakpoint.c (bpstat_alloc): Remove unused prototype.
(bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
code.
(bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
calls of bpstat_alloc. Remove explicit bs chain termination.
amodra [Mon, 30 Aug 2010 18:35:25 +0000 (18:35 +0000)]
* cisco-core.c (cisco_core_file_pid): Define.
amodra [Mon, 30 Aug 2010 15:01:19 +0000 (15:01 +0000)]
PR binutils/11953
* elf.c (copy_elf_program_header): Calculate map->header_size
from lowest_section, not first_section. Validate program
header p_paddr against section lma. Find lowest_section in
second loop over headers.
cgf [Mon, 30 Aug 2010 11:09:30 +0000 (11:09 +0000)]
add missing file
cgf [Mon, 30 Aug 2010 10:57:35 +0000 (10:57 +0000)]
* winlean.h: New file.
* automode.c: Use "winlean.h".
* binmode.c: Ditto.
* gmon.c: Ditto.
* textmode.c: Ditto.
* textreadmode.c: Ditto.
* winsup.h: Ditto.
* lib/cygwin_attach_dll.c: Ditto.
* lib/dll_main.cc: Ditto.
* profile.c: Ditto.
* crt0.c: Ditto. Cleanup ancient cruft. Add dummy calls to cygwin_premain*.
* include/sys/cygwin.h: Remove old stuff. Move premain declarations nearer to
other cygwin-specific function declarations.
* globals.cc: Add comment.
gdbadmin [Mon, 30 Aug 2010 09:00:34 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Mon, 30 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update
amodra [Sun, 29 Aug 2010 09:00:06 +0000 (09:00 +0000)]
daily update
gdbadmin [Sun, 29 Aug 2010 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***
palves [Sat, 28 Aug 2010 23:51:29 +0000 (23:51 +0000)]
* linux-low.c (__SIGRTMIN): Define if not already defined.
(linux_create_inferior): Check for __ANDROID__ rather than
__SIGRTMIN.
(enqueue_one_deferred_signal): Don't requeue non-RT signals that
are already deferred.
(linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
(linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
stopped and already has a pending signal to report.
(proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
a pending signal to report or is moving out of a jump pad.
(linux_init_signals): Check for __ANDROID__ rather than
__SIGRTMIN.
palves [Sat, 28 Aug 2010 23:03:27 +0000 (23:03 +0000)]
* linux-low.c (linux_stabilize_threads): Wrap debug output in a
debug_threads check. Avoid a linear search when not doing debug
output.
corinna [Sat, 28 Aug 2010 21:12:53 +0000 (21:12 +0000)]
* ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to
LOAD_WITH_ALTERED_SEARCH_PATH.
corinna [Sat, 28 Aug 2010 20:36:43 +0000 (20:36 +0000)]
* new-features.sgml (ov-new1.7.7): Document change to avoid DLL
hijacking.
corinna [Sat, 28 Aug 2010 20:22:37 +0000 (20:22 +0000)]
* loadlib.h: New header implementing safe LoadLibrary calls.
Include throughout files using LoadLibrary function.
* cygcheck.cc (dump_sysinfo): Retrieve kernel32.dll handle via
GetModuleHandle, rather than using LoadLibrary.
* cygpath.cc (get_long_name): Ditto.
(do_sysfolders): Append .dll suffix in LoadLibrary call.
* ldh.cc (WinMain): Use LoadLibraryExW with DONT_RESOLVE_DLL_REFERENCES
to avoid loading malicious library code.
* locale.cc (print_locale_with_codeset): Change way to retrieve
kernel32.dll path.
corinna [Sat, 28 Aug 2010 17:51:20 +0000 (17:51 +0000)]
* autoload.cc (LoadDLLprime): Change dllname storage to string16.
(struct dll_info): Convert name to WCHAR.
(std_dll_init): Load DLLs with full path to windows system directory.
Add hint to Microsoft security advisory.
* dcrt0.cc (init_windows_system_directory): New function.
(dll_crt0_0): Call init_windows_system_directory first.
* exceptions.cc (windows_system_directory): Move to globals.cc.
(windows_system_directory_length): Ditto.
(events_init): Drop code fetching windows_system_directory.
* globals.cc (windows_system_directory): New global variable.
(windows_system_directory_length): Ditto.
* net.cc (load_ipv6_funcs): Use windows_system_directory rather than
GetSystemDirectoryW.
* netdb.cc (open_system_file): Ditto. Simplify debug output.
jkratoch [Sat, 28 Aug 2010 17:38:24 +0000 (17:38 +0000)]
gdb/
Code cleanup.
* linux-nat.c (pull_pid_from_list): Rename status to statusp.
(my_waitpid): Likewise.
dougkwan [Sat, 28 Aug 2010 17:05:03 +0000 (17:05 +0000)]
2010-08-27 Doug Kwan <dougkwan@google.com>
* gold/resolve.cc (Symbol_table::should_override): Let a weak
reference override an existing dynamic weak reference.
* testsuite/Makefile.am: Add new test dyn_weak_ref.
* testsuite/Makefile.in: Regenerate.
* testsuite/dyn_weak_ref.sh: New file.
* testsuite/dyn_weak_ref_1.c: Ditto.
* testsuite/dyn_weak_ref_2.c: Ditto.
amodra [Sat, 28 Aug 2010 13:04:15 +0000 (13:04 +0000)]
* elflink.c (_bfd_elf_dynamic_symbol_p): Rename param. Make
common syms local.
(_bfd_elf_symbol_refs_local_p): Expand comment.
(elf_link_output_extsym): Fix style nit.
amodra [Sat, 28 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update
gdbadmin [Sat, 28 Aug 2010 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***
ironhead [Sat, 28 Aug 2010 08:36:30 +0000 (08:36 +0000)]
2010-08-26 Chris Sutcliffe <ir0nh34d@users.sf.net>
* include/w32api.h: Increment version to 3.15.
* Makefile.in: Ditto.
devans [Sat, 28 Aug 2010 08:09:58 +0000 (08:09 +0000)]
* dwarf2read.c (dw2_require_line_header): Read from .debug_types
as appropriate.
ironhead [Sat, 28 Aug 2010 06:11:29 +0000 (06:11 +0000)]
2010-08-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* Makefile.in: Update naming convention and compression format (lzma),
leaving existing naming convention and compression format as is for Cygwin.
tromey [Sat, 28 Aug 2010 06:03:39 +0000 (06:03 +0000)]
* dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
TYPE_FIELD_IGNORE_BITS.
corinna [Sat, 28 Aug 2010 03:56:27 +0000 (03:56 +0000)]
* new-features.sgml (ov-new1.7.7): Change to describe partial
reversion to pre-1.7.6 behaviour.
(ov-new1.7.6): Deprecate description of CWD handling.
* pathnames.sgml (pathnames-win32-api): Rewrite to reflect new CWD
behaviour.
ian [Sat, 28 Aug 2010 03:00:58 +0000 (03:00 +0000)]
* incremental.h (class Incremental_input_entry): Add virtual
destructor.
corinna [Sat, 28 Aug 2010 02:58:43 +0000 (02:58 +0000)]
* external.cc (sync_wincwd): Remove.
(cygwin_internal): Drop CW_SYNC_WINCWD case.
* globals.cc (ro_u_pipedir): New R/O unicode string.
* ntdll.h (RtlSetCurrentDirectory_U): Declare.
* path.cc (cwdstuff::set): Improve comments. Drop setting Win32 CWD to
\\?\PIPE\ on init. Keep Win32 CWD in sync, if possible. Set to
\\?\PIPE\ otherwise.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Revert to 230.
* include/sys/cygwin.h (cygwin_getinfo_types): Remove CW_SYNC_WINCWD.
ian [Sat, 28 Aug 2010 02:57:50 +0000 (02:57 +0000)]
* testsuite/start_lib_test_3.c: Mark t3 as used.
devans [Sat, 28 Aug 2010 01:36:58 +0000 (01:36 +0000)]
* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
the order they're defined in. munmap .debug_types buffer.
palves [Sat, 28 Aug 2010 01:02:48 +0000 (01:02 +0000)]
* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
(struct gdb_event) <fd>: Change type to gdb_fildes_t.
(struct file_handler) <fd>: Change type to gdb_fildes_t.
(process_event): Change local fd's type to gdb_fildes_t.
(create_file_handler): Adjust prototype.
(delete_file_handler): Adjust prototype.
(handle_file_event): Adjust prototype. Use pfildes.
(create_file_event): Adjsut prototype.
* remote-utils.c (remote_desc, listen_desc): Change type to
gdb_fildes_t.
* server.h: New gdb_fildes_t typedef.
[USE_WIN32API]: Include winsock2.h.
(delete_file_handler, add_file_handler): Adjust prototypes.
(pfildes): Declare.
* utils.c (pfildes): New.
froydnj [Fri, 27 Aug 2010 22:59:55 +0000 (22:59 +0000)]
opcodes/
* ppc-opc.c (powerpc_opcodes) [lswx,lswi,stswx,stswi]: Deprecate
on E500 and E500MC.
palves [Fri, 27 Aug 2010 21:02:17 +0000 (21:02 +0000)]
Fix whitespace, tabs/spaces.
corinna [Fri, 27 Aug 2010 20:55:35 +0000 (20:55 +0000)]
* syscalls.c (_isatty): Fix return value.
palves [Fri, 27 Aug 2010 19:20:07 +0000 (19:20 +0000)]
* configure.ac (build_warnings): Add -Wno-char-subscripts.
* configure: Regenerate.
corinna [Fri, 27 Aug 2010 18:08:32 +0000 (18:08 +0000)]
* fhandler_proc.cc (format_proc_partitions): Improve comment.
nickc [Fri, 27 Aug 2010 17:50:05 +0000 (17:50 +0000)]
* options.cc (version_script): Fix small typo in previous
whitespace tidyup.
palves [Fri, 27 Aug 2010 09:16:48 +0000 (09:16 +0000)]
* linux-low.c (linux_unprepare_to_access_memory): Rename to ...
(linux_done_accessing_memory): ... this.
(linux_target_ops): Adjust.
* linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
* nto-low.c (nto_target_ops): Adjust comment.
* server.c (gdb_read_memory, gdb_write_memory): Adjust.
* spu-low.c (spu_target_ops): Adjust comment.
* target.h (target_ops): Rename unprepare_to_access_memory field
to done_accessing_memory.
(unprepare_to_access_memory): Rename to ...
(done_accessing_memory): ... this.
amodra [Fri, 27 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update
gdbadmin [Fri, 27 Aug 2010 09:00:02 +0000 (09:00 +0000)]
*** empty log message ***
devans [Fri, 27 Aug 2010 08:36:53 +0000 (08:36 +0000)]
* dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
(dw2_forget_cached_source_info): Rename local cu to per_cu.
(dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
(dw2_print_stats, dw2_expand_all_symtabs): Ditto.
(dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
(dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
(dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
(dwarf2_free_objfile, write_one_signatured_type): Ditto.
(write_psymtabs_to_index): Ditto.
palves [Fri, 27 Aug 2010 08:17:21 +0000 (08:17 +0000)]
* linux-low.c (linux_prepare_to_access_memory): New.
(linux_unprepare_to_access_memory): New.
(linux_target_ops): Install them.
* server.c (read_memory): Rename to ...
(gdb_read_memory): ... this. Use
prepare_to_access_memory/prepare_to_access_memory.
(write_memory): Rename to ...
(gdb_write_memory): ... this. Use
prepare_to_access_memory/prepare_to_access_memory.
(handle_search_memory_1): Adjust.
(process_serial_event): Adjust.
* target.h (struct target_ops): New fields
prepare_to_access_memory and unprepare_to_access_memory.
(prepare_to_access_memory, unprepare_to_access_memory): New.
* linux-x86-low.c (x86_insert_point, x86_remove_point): Use
prepare_to_access_memory/prepare_to_access_memory.
* nto-low.c (nto_target_ops): Adjust.
* spu-low.c (spu_target_ops): Adjust.
* win32-low.c (win32_target_ops): Adjust.
palves [Fri, 27 Aug 2010 04:47:22 +0000 (04:47 +0000)]
* NEWS: Mention libthread_db debugging with core files.
palves [Fri, 27 Aug 2010 03:36:28 +0000 (03:36 +0000)]
* Makefile.in (WARN_CFLAGS): Get it from configure.
(WERROR_CFLAGS): New.
(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
* configure.ac: Introduce --enable-werror, which adds -Werror to
the compiler command line. Enabled by default. Disable with
--disable-werror. Add -Wdeclaration-after-statement
Wpointer-arith and -Wformat-nonliteral to warning flags.
* configure: Regenerate.
palves [Fri, 27 Aug 2010 03:03:02 +0000 (03:03 +0000)]
* Makefile.in (WARN_CFLAGS): Get it from configure.
(WERROR_CFLAGS): New.
(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
* configure.ac: Introduce --enable-werror, which adds -Werror to
the compiler command line. Enabled by default. Disable with
--disable-werror. Add -Wdeclaration-after-statement
Wpointer-arith and -Wformat-nonliteral to warning flags.
* configure: Regenerate.
devans [Fri, 27 Aug 2010 01:47:54 +0000 (01:47 +0000)]
* dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
forward decl. Pass pst->dirname to dwarf_decode_lines.
(psymtab_include_file_name): New function.
(dwarf_decode_lines): Call it. Update comments.
palves [Fri, 27 Aug 2010 01:47:05 +0000 (01:47 +0000)]
* mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
palves [Fri, 27 Aug 2010 01:24:41 +0000 (01:24 +0000)]
* gdbreplay.c (remote_error): New.
(gdbchar): New.
(expect): Use gdbchar. Check for error reading from GDB.
Clarify sync error output.
(play): Check for errors writing to GDB.
* linux-low.c (sigchld_handler): Really ignore `write' errors.
* remote-utils.c (getpkt): Check for errors writing to the remote
descriptor.
palves [Thu, 26 Aug 2010 23:53:44 +0000 (23:53 +0000)]
* gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect in
one test.
corinna [Thu, 26 Aug 2010 21:06:27 +0000 (21:06 +0000)]
* cygpath.cc (get_device_name): Prefer the \\.\X: DOS device for
harddisks, if available.
corinna [Thu, 26 Aug 2010 19:59:12 +0000 (19:59 +0000)]
* fhandler_proc.cc (format_proc_partitions): Simplify code and enable
partition layout printing for non-privileged users.
nathan [Thu, 26 Aug 2010 19:32:25 +0000 (19:32 +0000)]
* elf32-arm.c (elf32_arm_final_link): Process stub sections
exactly once.
ironhead [Thu, 26 Aug 2010 12:06:09 +0000 (12:06 +0000)]
2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/oleacc.h (STATE_SYSTEM_HASPOPUP, STATE_SYSTEM_NORMAL,
STATE_SYSTEM_PROTECTED): Define.
Thank you to Marcus von Appen for reporting the issue.
ironhead [Thu, 26 Aug 2010 11:51:36 +0000 (11:51 +0000)]
2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winuser.h (CF_DIBV5): Define.
(CF_MAX): Adjust accordingly.
Thank you to Lenard Lindstrom for reporting the issue.
ironhead [Thu, 26 Aug 2010 11:42:30 +0000 (11:42 +0000)]
2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/sspi.h (QuerySecurityContextToken): Define.
* lib/secur32.def: Regenerate using gendef on a Win7 machine.
Thank you to Magnus Hagander for reporting the issue.
ironhead [Thu, 26 Aug 2010 11:13:11 +0000 (11:13 +0000)]
2010-08-25 Ali Sabil <asabil@users.sourceforge.net>
* include/ocidl.h: Define COBJMACROS for IPropertyBag and IPropertyBag2.
ironhead [Thu, 26 Aug 2010 11:05:58 +0000 (11:05 +0000)]
2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/shlwapi (ASSOCDATA): Update definition.
Thank you to Frederic Deschamps for reporting the issue.
ironhead [Thu, 26 Aug 2010 10:57:45 +0000 (10:57 +0000)]
2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winbase.h (COPY_FILE_OPEN_SOURCE_FOR_WRITE,
COPY_FILE_ALLOW_DECRYPTED_DESTINATION, COPY_FILE_COPY_SYMLINK,
COPY_FILE_NO_BUFFERING): Define.
Thank you to Roland Schwingel for reporting the issue.
amodra [Thu, 26 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update
gdbadmin [Thu, 26 Aug 2010 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***
ironhead [Thu, 26 Aug 2010 08:47:17 +0000 (08:47 +0000)]
Add missing thank you notes.
ironhead [Thu, 26 Aug 2010 08:39:29 +0000 (08:39 +0000)]
2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winuser.h (HHOOK): Move definition from here...
* include/windef.h: ...to here, as per MSDN.
ironhead [Thu, 26 Aug 2010 08:33:13 +0000 (08:33 +0000)]
2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winbase.h (GetEnvironmentStrings, GetEnvironmentStringsA): Per
MSDN, change return type to LPCH.
(GetEnvironmentStringsW): Per MSDN, change return type to LPWCH.
hjl [Thu, 26 Aug 2010 05:35:58 +0000 (05:35 +0000)]
Don't set unique_global for non-ELF hash link table.
2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11939
* elflink.c (elf_link_add_object_symbols): Don't set
unique_global for non-ELF hash link table.
palves [Thu, 26 Aug 2010 03:20:04 +0000 (03:20 +0000)]
* dwarf2read.c (inherit_abstract_dies): Handle origin die's
compilation unit being different from target die's.
hjl [Thu, 26 Aug 2010 01:57:31 +0000 (01:57 +0000)]
Check audit entry only on ELF input.
2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11946
* emultempl/elf32.em (_before_allocation): Check audit entry
only on ELF input.
palves [Thu, 26 Aug 2010 01:49:04 +0000 (01:49 +0000)]
* linux-low.c (linux_wait_1): Move non-debugging code out of
`debug_threads' control.
palves [Thu, 26 Aug 2010 01:27:05 +0000 (01:27 +0000)]
* linux-low.c (linux_wait_1): Don't set last_status here.
* server.c (push_event, queue_stop_reply_callback): Assert we're
not pushing a TARGET_WAITKIND_IGNORE event.
(start_inferior, start_inferior, attach_inferior, handle_v_cont)
(myresume, handle_target_event): Set the thread's last_resume_kind
and last_status from the target returned status.
hjl [Thu, 26 Aug 2010 01:03:54 +0000 (01:03 +0000)]
Move gas/ld NEWS from binutils to gas/ld.
hjl [Wed, 25 Aug 2010 23:53:37 +0000 (23:53 +0000)]
Add target_id to elf_backend_data.
2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11944
* elf-bfd.h (elf_backend_data): Add target_id.
(bfd_elf_make_generic_object): Renamed to ...
(bfd_elf_make_object): This.
* elf.c (bfd_elf_make_generic_object): Removed.
(bfd_elf_make_object): New.
(bfd_elf_mkcorefile): Really treat it as an object file.
* elf-m10300.c (ELF_TARGET_ID): New.
* elf32-arm.c (ELF_TARGET_ID): Likewise.
* elf32-bfin.c (ELF_TARGET_ID): Likewise.
* elf32-cris.c (ELF_TARGET_ID): Likewise.
* elf32-frv.c (ELF_TARGET_ID): Likewise.
* elf32-i386.c (ELF_TARGET_ID): Likewise.
* elf32-lm32.c (ELF_TARGET_ID): Likewise.
* elf32-m32r.c (ELF_TARGET_ID): Likewise.
* elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
* elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
* elf32-m68k.c (ELF_TARGET_ID): Likewise.
* elf32-microblaze.c (ELF_TARGET_ID): Likewise.
* elf32-ppc.c (ELF_TARGET_ID): Likewise.
* elf32-s390.c (ELF_TARGET_ID): Likewise.
* elf32-sh.c (ELF_TARGET_ID): Likewise.
* elf32-sparc.c (ELF_TARGET_ID): Likewise.
* elf32-spu.c (ELF_TARGET_ID): Likewise.
* elf32-tic6x.c (ELF_TARGET_ID): Likewise.
* elf32-xtensa.c (ELF_TARGET_ID): Likewise.
* elf64-alpha.c (ELF_TARGET_ID): Likewise.
* elf64-hppa.c (ELF_TARGET_ID): Likewise.
* elf64-ppc.c (ELF_TARGET_ID): Likewise.
* elf64-s390.c (ELF_TARGET_ID): Likewise.
* elf64-x86-64.c (ELF_TARGET_ID): Likewise.
* elfxx-ia64.c (ELF_TARGET_ID): Likewise.
* elf32-hppa.c (elf32_hppa_mkobject): Removed.
(bfd_elf32_mkobject): Likewise.
(ELF_TARGET_ID): New.
* elf32-mips.c (ELF_TARGET_ID): New.
(bfd_elf32_mkobject): Removed.
* elf64-mips.c (ELF_TARGET_ID): New.
(bfd_elf64_mkobject): Removed.
* elfn32-mips.c (ELF_TARGET_ID): New.
(bfd_elf32_mkobject): Removed.
* elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
* elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
* elfxx-target.h (bfd_elfNN_mkobject): Default to
bfd_elf_make_object.
(ELF_TARGET_ID): New. Default to GENERIC_ELF_DATA.
(elfNN_bed): Initialize target_id.
palves [Wed, 25 Aug 2010 23:40:21 +0000 (23:40 +0000)]
PR threads/10729
* linux-x86-low.c (update_debug_registers_callback): New.
(i386_dr_low_set_addr): Use it.
(i386_dr_low_get_addr): New.
(i386_dr_low_set_control): Use update_debug_registers_callback.
(i386_dr_low_get_control): New.
(i386_dr_low_get_status): Adjust.
* linux-low.c (linux_stop_lwp): New.
* linux-low.h (linux_stop_lwp): Declare.
* i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
argument instead of a i386_debug_reg_state.
(I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
a i386_debug_reg_state.
(i386_insert_aligned_watchpoint): Adjust.
(i386_remove_aligned_watchpoint): Adjust.
(i386_low_stopped_data_address): Read the debug registers from the
inferior instead of from the mirrors.
* i386-low.h (struct i386_debug_reg_state): Extend comment.
(i386_dr_low_get_addr): Declare.
(i386_dr_low_get_control): Declare.
(i386_dr_low_get_status): Change prototype.
* win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
(i386_dr_low_get_addr): New.
(i386_dr_low_get_control): New.
(i386_dr_low_get_status): Adjust prototype. Return
dr_status_mirror.
(i386_initial_stuff): Clear dr_status_mirror and
dr_control_mirror.
(i386_get_thread_context): Adjust.
(i386_set_thread_context): Adjust.
(i386_thread_added): Adjust.
jules [Wed, 25 Aug 2010 21:37:27 +0000 (21:37 +0000)]
bfd/
* elf32-arm.c (arm_stub_required_alignment): New.
(arm_build_one_stub): Use above to partition stubs.
(make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
arm_stub_a8_veneer_b_cond.
ld/testsuite/
* ld-arm/arm-elf.exp (armelftests): Add cortex-a8-fix-blx-bcond.s.
* ld-arm/cortex-a8-fix-blx-bcond.s: New.
* ld-arm/cortex-a8-fix-blx-bcond.d: New.
amodra [Wed, 25 Aug 2010 21:03:30 +0000 (21:03 +0000)]
* configure.tgt (m68k-*-aout): Change to bfd_gas=yes.
amodra [Wed, 25 Aug 2010 20:51:06 +0000 (20:51 +0000)]
* config/tc-d10v.c (do_assemble): Correctly detect overflow of
"name" buffer.
* config/tc-m68hc11.c (md_assemble): Likewise.
* config/tc-microblaze.c (md_assemble): Likewise. Correct cast
of is_end_of_line index.
corinna [Wed, 25 Aug 2010 19:44:46 +0000 (19:44 +0000)]
* libc/posix/opendir.c (opendir): Fix potential memory leak.
corinna [Wed, 25 Aug 2010 18:20:09 +0000 (18:20 +0000)]
* mount.cc (fs_info::update): Fix comments.
corinna [Wed, 25 Aug 2010 17:51:40 +0000 (17:51 +0000)]
* syscalls.cc (rename): Open file with FILE_READ_ATTRIBUTES.
nickc [Wed, 25 Aug 2010 17:36:54 +0000 (17:36 +0000)]
* archive.cc: Formatting fixes: Remove whitespace between
typename and following asterisk. Remove whitespace between
function name and opening parenthesis.
* archive.h: Likewise.
* arm.cc: Likewise.
* attributes.cc: Likewise.
* attributes.h: Likewise.
* common.cc: Likewise.
* copy-relocs.cc: Likewise.
* dirsearch.h: Likewise.
* dynobj.cc: Likewise.
* ehframe.cc: Likewise.
* ehframe.h: Likewise.
* expression.cc: Likewise.
* fileread.cc: Likewise.
* fileread.h: Likewise.
* gc.h: Likewise.
* gold-threads.cc: Likewise.
* gold.cc: Likewise.
* i386.cc: Likewise.
* icf.h: Likewise.
* incremental-dump.cc: Likewise.
* incremental.cc: Likewise.
* layout.cc: Likewise.
* layout.h: Likewise.
* main.cc: Likewise.
* merge.cc: Likewise.
* merge.h: Likewise.
* object.cc: Likewise.
* object.h: Likewise.
* options.cc: Likewise.
* options.h: Likewise.
* output.cc: Likewise.
* output.h: Likewise.
* plugin.cc: Likewise.
* plugin.h: Likewise.
* powerpc.cc: Likewise.
* reloc.cc: Likewise.
* script-c.h: Likewise.
* script-sections.cc: Likewise.
* script.cc: Likewise.
* stringpool.cc: Likewise.
* symtab.cc: Likewise.
* symtab.h: Likewise.
* target.cc: Likewise.
* timer.cc: Likewise.
* timer.h: Likewise.
* version.cc: Likewise.
* x86_64.cc: Likewise.
amodra [Wed, 25 Aug 2010 17:26:37 +0000 (17:26 +0000)]
* NEWS: Mention ampersand in macro change.
amodra [Wed, 25 Aug 2010 16:02:40 +0000 (16:02 +0000)]
* aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
* aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
* aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
* coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
* elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
* reloc.c (bfd_default_reloc_type_lookup): Likewise.
* riscix.c (riscix_reloc_type_lookup): Likewise.
amodra [Wed, 25 Aug 2010 15:49:54 +0000 (15:49 +0000)]
* elf.c (_bfd_elf_map_sections_to_segments): Don't load program
headers if any loaded section wraps the address space. Simplify
~(m-1) to -m. Use lma rather than vma when determining whether
note sections are adjacent.
jiez [Wed, 25 Aug 2010 14:59:12 +0000 (14:59 +0000)]
* config/tc-arm.c (encode_arm_addr_mode_2): Fix comment.
jiez [Wed, 25 Aug 2010 14:25:05 +0000 (14:25 +0000)]
* config/tc-arm.c (encode_arm_addr_mode_2): Fix
BAD_PC_ADDRESSING condition.
testsuite/
* gas/arm/ldst-pc.d: New test.
* gas/arm/ldst-pc.s: New test.
* gas/arm/sp-pc-validations-bad.s: `str r0,[pc,#4]' is valid.
* gas/arm/sp-pc-validations-bad.l: Adjust accordingly.
ironhead [Wed, 25 Aug 2010 10:59:51 +0000 (10:59 +0000)]
2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/prsht.h (SNDMDG, POSTMSG): Fix typo.
* include/windowsx.h (SNDMSG): Ditto.
devans [Wed, 25 Aug 2010 09:09:11 +0000 (09:09 +0000)]
PR symtab/11942
* dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
debug_types_type_hash.
(dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
All uses updated.
(lookup_die_type): Renamed from tag_type_to_tag. First look in
appropriate type_hash table. All callers updated.
(allocate_signatured_type_table): Renamed from
allocate_signatured_type_hash_table. All callers updated.
(create_signatured_type_table_from_index): Renamed from
create_signatured_type_hash_from_index. All callers updated.
(read_die_type): Add comment. Move actual reading to ...
(read_die_type_1): ... here. New function.
(follow_die_ref_or_sig): Tweak comment.
(set_die_type): Rewrite to use appropriate choice of
debug_info_type_hash or debug_types_type_hash.
(get_die_type_at_offset): New function.
(get_die_type): Call it.
testsuite/
PR symtab/11942
* gdb.dwarf2/dw4-sig-types.cc: New file.
* gdb.dwarf2/dw4-sig-types.h: New file.
* gdb.dwarf2/dw4-sig-types-b.cc: New file.
* gdb.dwarf2/dw4-sig-types.exp: New file.
gdbadmin [Wed, 25 Aug 2010 09:00:34 +0000 (09:00 +0000)]
*** empty log message ***
amodra [Wed, 25 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update
ironhead [Wed, 25 Aug 2010 08:09:52 +0000 (08:09 +0000)]
2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/prsht.h (SNDMSG, POSTMSG): Define macros and use throughout.
Thank you to Ozkan Sezer for reporting the issue.
ironhead [Wed, 25 Aug 2010 08:03:57 +0000 (08:03 +0000)]
2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/windowsx.h (SNDMSG): Define macro and use throughout.
Thank you to Chris Oldwood for reporting the issue.
ironhead [Wed, 25 Aug 2010 07:41:35 +0000 (07:41 +0000)]
2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/oleacc.h (AccessibleObjectFromEvent): Correct definition.
Thank you to Rick Walsh for reporting the issue.
ironhead [Wed, 25 Aug 2010 07:35:39 +0000 (07:35 +0000)]
2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winbase.h (MoveFileWithProcessA, MoveFileWithProgressW): Define.
ironhead [Wed, 25 Aug 2010 07:25:43 +0000 (07:25 +0000)]
2010-08-24 Vinky <rabbit_vinky@users.sourceforge.net>
* include/winbase.h (OVERLAPPED): Correct definition.
ironhead [Wed, 25 Aug 2010 07:20:33 +0000 (07:20 +0000)]
2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winnt.h (IMAGE_NT_HEADERS32, IMAGE_NT_HEADERS64): Correct
definition.
Thank you to Pasi Ruokola for reporting the issue.
ironhead [Wed, 25 Aug 2010 07:10:28 +0000 (07:10 +0000)]
2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/exdisp.h (get_RegisterAsBrowser): Fix typo.
Thank you to cheznonnon for reporting the issue.
ironhead [Wed, 25 Aug 2010 07:05:38 +0000 (07:05 +0000)]
2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* lib/ws2_32.def: Regenerate using gendef on a Win7 machine.
ironhead [Wed, 25 Aug 2010 06:26:51 +0000 (06:26 +0000)]
2010-08-24 Ozkan Sezer <sezero@users.sourceforge.net>
* winnt.h: Fix several SUBLANG ID errors (ref:
http://msdn.microsoft.com/en-us/library/
dd318693(VS.85).aspx).
(SUBLANG_UI_CUSTOM_DEFAULT): 0x05, not 0x03.
(SUBLANG_HAUSA_NIGERIA): Bad ID name, correct one is ...
(SUBLANG_HAUSA_NIGERIA_LATIN): ... this.
(SUBLANG_INUKTITUT_CANADA_LATIN): 0x02, not 0x01.
(SUBLANG_IRISH_IRELAND): 0x02, not 0x01.
(SUBLANG_LAO_LAO_PDR): Bad ID name, correct one is ...
(SUBLANG_LAO_LAO): ... this.
(SUBLANG_LOWER_SORBIAN_GERMANY): 0x02, not 0x01.
(SUBLANG_SAMI_SKOLT_FINLAND): 0x08, not 0x03.
(SUBLANG_SAMI_INARI_FINLAND): 0x09, not 0x03.
(SUBLANG_SYRIAC_SYRIA): define as SUBLANG_SYRIAC (what MSDN mentions).
(SUBLANG_TIGRIGNA_ERITREA): 0x02, not 0x01.
(SUBLANG_BENGALI_INDIA): 0x01, not 0x00.
(SUBLANG_BENGALI_BANGLADESH): 0x02, not 0x01.
(SUBLANG_PUNJABI_INDIA): 0x01, not 0x00.
(SUBLANG_PUNJABI_PAKISTAN): not defined in MSDN.
(SUBLANG_ROMANIAN_ROMANIA): 0x01, not 0x00.
(SUBLANG_ROMANIAN_MOLDOVA): not defined in MSDN.