OSDN Git Service

pf3gnuchains/sourceware.git
13 years ago * netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
palves [Wed, 1 Sep 2010 22:51:34 +0000 (22:51 +0000)]
* netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
(netbsd_core_file_pid): ... this.

13 years ago * fhandler_netdrive.cc (fhandler_netdrive::readdir): Set d_type.
corinna [Wed, 1 Sep 2010 19:30:51 +0000 (19:30 +0000)]
* fhandler_netdrive.cc (fhandler_netdrive::readdir): Set d_type.
(fhandler_netdrive::seekdir): Fix test for readdir return value.
* fhandler_registry.cc (fhandler_registry::seekdir): Ditto.

13 years agoFix typo
nickc [Wed, 1 Sep 2010 17:05:57 +0000 (17:05 +0000)]
Fix typo

13 years ago * ld-scripts/section-match.exp: New file. Runs ths
nickc [Wed, 1 Sep 2010 17:05:15 +0000 (17:05 +0000)]
    * ld-scripts/section-match.exp: New file.  Runs ths
        section-match-1 test.
        * ld-scripts/section-match-1.d: New file.
        * ld-scripts/section-match-1.s: New file.
        * ld-scripts/section-match-1.t: New file.

13 years ago2010-09-01 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 1 Sep 2010 16:50:47 +0000 (16:50 +0000)]
2010-09-01  Tristan Gingold  <gingold@adacore.com>

* coffcode.h (coff_slurp_line_table): Add a cast.
(coff_slurp_reloc_table): Ditto.

13 years ago * include/cygwin/version.h: Bump DLL minor version number to 8.
corinna [Wed, 1 Sep 2010 16:16:47 +0000 (16:16 +0000)]
* include/cygwin/version.h: Bump DLL minor version number to 8.

13 years agoCompile memmem.o without -Werror.
gdbadmin [Wed, 1 Sep 2010 10:56:04 +0000 (10:56 +0000)]
Compile memmem.o without -Werror.

This reproduces the same approach as in GDB to allow us to build
specific files without -Werror.

gdb/gdbserver/ChangeLog:

        * Makefile.in (INTERNAL_CFLAGS_BASE): New variable. Extracted
        from INTERNAL_CFLAGS.
        (INTERNAL_WARN_CFLAGS): New variable.
        (INTERNAL_CFLAGS): Adjust, using INTERNAL_WARN_CFLAGS.

13 years agouse xsnprintf instead of snprintf.
gdbadmin [Wed, 1 Sep 2010 10:53:42 +0000 (10:53 +0000)]
use xsnprintf instead of snprintf.

snprintf is not available on LynxOS, so I changed the calls to snprintf
to calls to xsnprintf, which should be strictly equivalent.

gdb/gdbserver/ChangeLog:

        * utils.c (xsnprintf): Make non-static.
        * server.h: Add xsnprintf declaration.
        * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
        replace calls to snprintf by calls to xsnprintf throughout.

13 years agoinclude alloca.h if available.
gdbadmin [Wed, 1 Sep 2010 10:51:05 +0000 (10:51 +0000)]
include alloca.h if available.

On LynxOS, alloca is defined in allocal.h.  This fixes one warning that
occurs when building GDBserver for LynxOS.

gdb/gdbserver/ChangeLog:

        * configure.ac: Add configure check for alloca.
        * configure, config.in: Regenerate.
        * server.h: Include alloca.h if it exists.
        * gdbreplay.c: Include alloca.h if it exists.

13 years ago*** empty log message ***
gdbadmin [Wed, 1 Sep 2010 09:00:34 +0000 (09:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Wed, 1 Sep 2010 09:00:05 +0000 (09:00 +0000)]
daily update

13 years agoFix "pushw imm16" for x86-64 disassembler.
hjl [Wed, 1 Sep 2010 06:56:56 +0000 (06:56 +0000)]
Fix "pushw imm16" for x86-64 disassembler.

gas/testsuite/

2010-08-31  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/11960
* gas/i386/opcode-intel.d: Updated.
* gas/i386/x86-64-opcode.d: Likewise.

* gas/i386/x86-64-opcode.s: Add a "pushw imm16" test.

opcodes/

2010-08-31  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/11960
* i386-dis.c (sIv): New.
(dis386): Replace Iq with sIv on "pushT".
(reg_table): Replace T with {T|} on callT, JcallT, jmpT and JjmpT.
(x86_64_table): Replace {T|}/{P|} with P.
(putop): Add 'w' to 'T'/'P' if needed for Intel syntax.
(OP_sI): Update v_mode.  Remove w_mode.

13 years agoCreate and use a specialized bcache type for psymbols
swagiaal [Wed, 1 Sep 2010 05:10:42 +0000 (05:10 +0000)]
Create and use a specialized bcache type for psymbols

2010-08-31  Sami Wagiaalla  <swagiaal@redhat.com>

* symfile.c (reread_symbols): Use psymbol_bcache_free, and
psymbol_bcache_init.
* psymtab.h (psymbol_bcache_init): New function prototype.
(psymbol_bcache_free): New function prototype.
(psymbol_bcache_get_bcache): New function prototype.
* psymtab.c (psymbol_bcache_init): New function.
(psymbol_bcache_free): New function.
(psymbol_bcache_full): New function.
(psymbol_bcache_get_bcache): New function.
(add_psymbol_to_bcache): use psymbol_bcache_full.
* objfiles.h (psymbol_cache): Change type of psymbol_cache to
psymbol_bcache.
* symmisc.c (print_symbol_bcache_statistics): Updated.
(print_objfile_statistics): Updated.
* objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
psymbol_cache.
(free_objfile): Use psymbol_bcache_free.

13 years ago PR c++/11961:
tromey [Wed, 1 Sep 2010 05:03:20 +0000 (05:03 +0000)]
PR c++/11961:
* dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
Don't set TYPE_NAME on the type.

13 years ago2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
msnyder [Wed, 1 Sep 2010 04:31:00 +0000 (04:31 +0000)]
2010-08-31  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>

* infrun.c (set_exec_direction_func): Error out if target does not
support reverse execution.

13 years ago * gdb.dwarf2/dw4-sig-types.exp: Use .x for executable name.
devans [Wed, 1 Sep 2010 03:40:09 +0000 (03:40 +0000)]
* gdb.dwarf2/dw4-sig-types.exp: Use .x for executable name.

13 years agogdb/
jkratoch [Wed, 1 Sep 2010 03:11:48 +0000 (03:11 +0000)]
gdb/
Make linux_get_siginfo_type `type *' unique.
* linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
(init_linux_gdbarch_data, get_linux_gdbarch_data): New.
(linux_get_siginfo_type): New variable linux_gdbarch_data.  Initialize
it.  Use linux_gdbarch_data->siginfo_type as a persistent storage.
(_initialize_linux_tdep): New.

13 years agogdb/
jkratoch [Wed, 1 Sep 2010 03:08:42 +0000 (03:08 +0000)]
gdb/
Code cleanup.
* defs.h (find_memory_region_ftype): New typedef.
(exec_set_find_memory_regions): Use it.
* exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
* fbsd-nat.c (fbsd_find_memory_regions): Likewise.
* gcore.c (objfile_find_memory_regions): Likewise.
* gnu-nat.c (gnu_find_memory_regions): Likewise.
* linux-nat.c (linux_nat_find_memory_regions): Likewise.
* procfs.c (iterate_over_mappings_cb_ftype): Remove.
(iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
find_memory_region_ftype.
(insert_dbx_link_bpt_in_region): Likewise.
(iterate_over_mappings): Likewise.  Drop the comment part about the
function prototype.
(find_memory_regions_callback): Use find_memory_region_ftype.
(proc_find_memory_regions): Likewise.
(info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
find_memory_region_ftype.
* target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
* target.h (struct target_ops) <to_find_memory_regions>: Likewise.

13 years agoEnable custom bcache hash function.
swagiaal [Wed, 1 Sep 2010 02:26:06 +0000 (02:26 +0000)]
Enable custom bcache hash function.

2010-08-25  Sami Wagiaalla  <swagiaal@redhat.com>

* psymtab.c (add_psymbol_to_bcache): Remove 'static' from
'static partial_symbol psymbol'.
(psymbol_hash): New function.
(psymbol_compare): New function.
* bcache.c (hash_continue): New.
(hash): Use hash_continue.
* bcache.c: Add hash_function and compare_function
pointers to bcache struct.
(bcache_full): Use bcache->hash_function, and
bcache->compare_function.
(bcache_compare): New function.
(bcache_xmalloc): Take hash_function and
compare_function arguments and initialize the
bcach's pointers.
Updated comment.
* objfiles.c (allocate_objfile): Updated.
* symfile.c (reread_symbols): Updated.
* python/py-type.c (typy_richcompare): Updated.

13 years ago * ldlex.l (WILDCHAR): Add the caret and exclamation point
nickc [Wed, 1 Sep 2010 01:08:22 +0000 (01:08 +0000)]
    * ldlex.l (WILDCHAR): Add the caret and exclamation point
        characters, so that they can be used inside regexps.

13 years agoRemove an extra "@item".
hjl [Tue, 31 Aug 2010 23:45:41 +0000 (23:45 +0000)]
Remove an extra "@item".

2010-08-31  H.J. Lu  <hongjiu.lu@intel.com>

* gdb.texinfo (i386 Features): Remove an extra "@item".

13 years ago2010-08-31 Kai Tietz <kai.tietz@onevision.com>
ktietz [Tue, 31 Aug 2010 23:45:34 +0000 (23:45 +0000)]
2010-08-31  Kai Tietz  <kai.tietz@onevision.com>

        * config/obj-coff-seh.c (obj_coff_seh_save): Correct comparison.
        (obj_coff_seh_stackalloc): Likewise.

13 years ago * path.cc (normalize_posix_path): Preserve //./ and //?/ prefixes.
corinna [Tue, 31 Aug 2010 22:48:03 +0000 (22:48 +0000)]
* path.cc (normalize_posix_path): Preserve //./ and //?/ prefixes.
(path_conv::check): Allow access to root directory of native NT disk
devices.

13 years ago * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
nickc [Tue, 31 Aug 2010 19:26:10 +0000 (19:26 +0000)]
    * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
        a region's attributes.

13 years ago * include/cygwin/version.h: Bump DLL minor version number to 7.
corinna [Tue, 31 Aug 2010 16:47:51 +0000 (16:47 +0000)]
* include/cygwin/version.h: Bump DLL minor version number to 7.

13 years ago * config/obj-elf.c (obj_elf_init_stab_section): Fix assertion.
amodra [Tue, 31 Aug 2010 14:34:45 +0000 (14:34 +0000)]
* config/obj-elf.c (obj_elf_init_stab_section): Fix assertion.

13 years ago * scripttempl/mmo.sc: Move assignment to "Main" inside .text
amodra [Tue, 31 Aug 2010 14:11:27 +0000 (14:11 +0000)]
* scripttempl/mmo.sc: Move assignment to "Main" inside .text
output section statement.

13 years ago*** empty log message ***
gdbadmin [Tue, 31 Aug 2010 09:00:34 +0000 (09:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Tue, 31 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update

13 years ago* dcrt0.cc (dll_crt0_0): Move sigproc_init later, after cygheap initialization
cgf [Tue, 31 Aug 2010 08:23:28 +0000 (08:23 +0000)]
* dcrt0.cc (dll_crt0_0): Move sigproc_init later, after cygheap initialization
since it relies on the cygheap existing (even if it shouldn't matter do to dll
initialization serialization).

13 years ago * config/obj-coff-seh.c: Rewrite the entire file.
rth [Tue, 31 Aug 2010 06:51:28 +0000 (06:51 +0000)]
* config/obj-coff-seh.c: Rewrite the entire file.
(symtab, symptr, reltab, relcount, relsize): Remove.
(seh_ctx_root, seh_ctx): Remove.
(xdata_seg, xdata_subseg, pdata_seg): New.
(switch_xdata, switch_pdata): New.
(verify_context, verify_context_and_target, skip_whitespace_and_comma):
New parsing functions.  Rewrite all parsing functions to use them.
(obj_coff_seh_32): Fix != arm thinko.
(obj_coff_seh_handler): For x64, don't accept handler pointer here,
only flags.
(obj_coff_seh_handlerdata): New.
(do_seh_endproc): Split out of ...
(obj_coff_seh_endproc): ... here.
(obj_coff_seh_proc): Use it, if needed.
(seh_x64_make_prologue_element): Use XRESIZEVEC, symbol_temp_new_now.
(seh_x64_read_reg): Remove mm_regs alternative.  Tidy integer reg
alternatives.  Don't slurp commas.
(seh_read_offset): Remove.
(obj_coff_seh_pushframe): Split out from obj_coff_seh_push.
(obj_coff_seh_scope): Remove.
(obj_coff_seh_save): Decide UWOP_SAVE_* vs _FAR immediately.
(obj_coff_seh_stackalloc): Decide _SMALL vs _LARGE immediately.
(out_one, out_two, out_four): New.
(seh_x64_write_prologue_data, seh_x64_size_prologue_data,
seh_x64_write_function_xdata, write_function_xdata): Rewrite
from seh_x64_write_xdata, seh_needed_unwind_info, seh_store_elm_data,
seh_getelm_data_size, seh_getsize_of_unwind_entry,
seh_make_unwind_entry, seh_getsize_unwind_data, and
seh_create_unwind_data.
(seh_arm_write_function_pdata): Rewrite from seh_arm_create_pdata.
(write_function_pdata): Rewrite from make_function_entry_pdata.
(seh_write_text_eh_data, make_function_entry_pdata,
seh_arm_create_pdata, seh_arm_write_pdata, seh_reloc, save_relocs,
seh_symbol_init, seh_symbol, quick_section, seh_emit_rva,
seh_emit_long, seh_make_globl, seh_make_section2, seh_make_section,
seh_make_xlbl_name, make_seh_text_label, seh_fill_pcsyms,
seh_needed_unwind_info, seh_store_elm_data, seh_getelm_data_size,
seh_getsize_of_unwind_entry, seh_make_unwind_entry,
seh_getsize_unwind_data, seh_create_unwind_data,
seh_make_function_entry_xdata, seh_x64_makescope_elem): Remove.
* config/obj-coff-seh.h (SEH_CMDS): Remove seh_savemm, seh_scope.
Add seh_handlerdata.  Adjust function/what arguments for
seh_savereg, seh_pushframe, seh_stackalloc.
(struct seh_prologue_element): Adjust members to closer match
the elements of the UNWIND_CODE structure.
(struct seh_scope_elem): Remove.
(struct seh_context): Replace char* members with symbolS or
expressionS as appropriate.  Sort members by ARM/x64 applicability.
Remove obsolete stuff wrt direct symbol and reloc manipulation.

13 years agogdb
tromey [Tue, 31 Aug 2010 05:28:27 +0000 (05:28 +0000)]
gdb
2010-08-30  Andre Poenitz  <andre.poenitz@nokia.com>
    Tom Tromey  <tromey@redhat.com>

PR python/11792:
* python/py-value.c (valpy_get_dynamic_type): New function.
(value_object_getset): Add "dynamic_type".
(valpy_get_type): Fail on error.
gdb/doc
PR python/11792:
* gdb.texinfo (Values From Inferior): Document dynamic_type.
gdb/testsuite
PR python/11792:
* gdb.python/py-value.exp (test_subscript_regression): Add
dynamic_type test.

13 years ago * gdb.cp/cpexprs.exp (test_breakpoint): Continue to test_function
drow [Tue, 31 Aug 2010 02:38:10 +0000 (02:38 +0000)]
* gdb.cp/cpexprs.exp (test_breakpoint): Continue to test_function
instead of running to main.  Do not test the main function.
* gdb/testsuite/gdb.cp/cpexprs.cc (main): Rename to test_function.
Add new main.

13 years ago * rtl-c.scm (s-float-predop): New function.
devans [Tue, 31 Aug 2010 01:51:27 +0000 (01:51 +0000)]
* rtl-c.scm (s-float-predop): New function.
(nan, qnan, snan): Call it.

13 years ago2010-08-30 Yao Qi <yao@codesourcery.com>
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.

13 years ago * posix.sgml (std-notes): Fix typos and incorrectnesses.
corinna [Mon, 30 Aug 2010 23:16:00 +0000 (23:16 +0000)]
* posix.sgml (std-notes): Fix typos and incorrectnesses.

13 years agoremove file committed by mistake
froydnj [Mon, 30 Aug 2010 23:07:01 +0000 (23:07 +0000)]
remove file committed by mistake

13 years ago * new-features.sgml (ov-new1.7.7): Document change to binmode/textmode
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.

13 years ago * autoload.cc (MsgWaitForMultipleObjectsEx): Define.
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.

13 years agogdb/
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.

13 years ago * cisco-core.c (cisco_core_file_pid): Define.
amodra [Mon, 30 Aug 2010 18:35:25 +0000 (18:35 +0000)]
* cisco-core.c (cisco_core_file_pid): Define.

13 years ago PR binutils/11953
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.

13 years agoadd missing file
cgf [Mon, 30 Aug 2010 11:09:30 +0000 (11:09 +0000)]
add missing file

13 years ago* winlean.h: New 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.

13 years ago*** empty log message ***
gdbadmin [Mon, 30 Aug 2010 09:00:34 +0000 (09:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Mon, 30 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update

13 years agodaily update
amodra [Sun, 29 Aug 2010 09:00:06 +0000 (09:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sun, 29 Aug 2010 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***

13 years ago * linux-low.c (__SIGRTMIN): Define if not already defined.
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.

13 years ago * linux-low.c (linux_stabilize_threads): Wrap debug output in a
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.

13 years ago * ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to
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.

13 years ago * new-features.sgml (ov-new1.7.7): Document change to avoid DLL
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.

13 years ago * loadlib.h: New header implementing safe LoadLibrary calls.
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.

13 years ago * autoload.cc (LoadDLLprime): Change dllname storage to string16.
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.

13 years agogdb/
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.

13 years ago2010-08-27 Doug Kwan <dougkwan@google.com>
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.

13 years ago * elflink.c (_bfd_elf_dynamic_symbol_p): Rename param. Make
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.

13 years agodaily update
amodra [Sat, 28 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sat, 28 Aug 2010 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***

13 years ago2010-08-26 Chris Sutcliffe <ir0nh34d@users.sf.net>
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.

13 years ago * dwarf2read.c (dw2_require_line_header): Read from .debug_types
devans [Sat, 28 Aug 2010 08:09:58 +0000 (08:09 +0000)]
* dwarf2read.c (dw2_require_line_header): Read from .debug_types
as appropriate.

13 years ago2010-08-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
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.

13 years ago * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
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.

13 years ago * new-features.sgml (ov-new1.7.7): Change to describe partial
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.

13 years ago * incremental.h (class Incremental_input_entry): Add virtual
ian [Sat, 28 Aug 2010 03:00:58 +0000 (03:00 +0000)]
* incremental.h (class Incremental_input_entry): Add virtual
destructor.

13 years ago * external.cc (sync_wincwd): Remove.
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.

13 years ago * testsuite/start_lib_test_3.c: Mark t3 as used.
ian [Sat, 28 Aug 2010 02:57:50 +0000 (02:57 +0000)]
* testsuite/start_lib_test_3.c: Mark t3 as used.

13 years ago * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
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.

13 years ago * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
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.

13 years agoopcodes/
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.

13 years agoFix whitespace, tabs/spaces.
palves [Fri, 27 Aug 2010 21:02:17 +0000 (21:02 +0000)]
Fix whitespace, tabs/spaces.

13 years ago * syscalls.c (_isatty): Fix return value.
corinna [Fri, 27 Aug 2010 20:55:35 +0000 (20:55 +0000)]
* syscalls.c (_isatty): Fix return value.

13 years ago * configure.ac (build_warnings): Add -Wno-char-subscripts.
palves [Fri, 27 Aug 2010 19:20:07 +0000 (19:20 +0000)]
* configure.ac (build_warnings): Add -Wno-char-subscripts.
* configure: Regenerate.

13 years ago * fhandler_proc.cc (format_proc_partitions): Improve comment.
corinna [Fri, 27 Aug 2010 18:08:32 +0000 (18:08 +0000)]
* fhandler_proc.cc (format_proc_partitions): Improve comment.

13 years ago * options.cc (version_script): Fix small typo in previous
nickc [Fri, 27 Aug 2010 17:50:05 +0000 (17:50 +0000)]
    * options.cc (version_script): Fix small typo in previous
        whitespace tidyup.

13 years ago * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
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.

13 years agodaily update
amodra [Fri, 27 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Fri, 27 Aug 2010 09:00:02 +0000 (09:00 +0000)]
*** empty log message ***

13 years ago * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
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.

13 years ago * linux-low.c (linux_prepare_to_access_memory): New.
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.

13 years ago * NEWS: Mention libthread_db debugging with core files.
palves [Fri, 27 Aug 2010 04:47:22 +0000 (04:47 +0000)]
* NEWS: Mention libthread_db debugging with core files.

13 years ago * Makefile.in (WARN_CFLAGS): Get it from configure.
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.

13 years ago * Makefile.in (WARN_CFLAGS): Get it from configure.
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.

13 years ago * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
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.

13 years ago * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
palves [Fri, 27 Aug 2010 01:47:05 +0000 (01:47 +0000)]
* mem-break.c [HAVE_MALLOC_H]: Include malloc.h.

13 years ago * gdbreplay.c (remote_error): New.
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.

13 years ago * gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect in
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.

13 years ago * cygpath.cc (get_device_name): Prefer the \\.\X: DOS device for
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.

13 years ago * fhandler_proc.cc (format_proc_partitions): Simplify code and enable
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.

13 years ago * elf32-arm.c (elf32_arm_final_link): Process stub sections
nathan [Thu, 26 Aug 2010 19:32:25 +0000 (19:32 +0000)]
* elf32-arm.c (elf32_arm_final_link): Process stub sections
exactly once.

13 years ago2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
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.

13 years ago2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
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.

13 years ago2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
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.

13 years ago2010-08-25 Ali Sabil <asabil@users.sourceforge.net>
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.

13 years ago2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
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.

13 years ago2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
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.

13 years agodaily update
amodra [Thu, 26 Aug 2010 09:00:05 +0000 (09:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Thu, 26 Aug 2010 09:00:03 +0000 (09:00 +0000)]
*** empty log message ***

13 years agoAdd missing thank you notes.
ironhead [Thu, 26 Aug 2010 08:47:17 +0000 (08:47 +0000)]
Add missing thank you notes.

13 years ago2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
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.