OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
13 years ago * configure.ac: Remove code setting special library locations for
jsm28 [Wed, 4 May 2011 21:45:47 +0000 (21:45 +0000)]
* configure.ac: Remove code setting special library locations for
hppa*64*-*-hpux11*.  Remove code setting compiler for
sparc-sun-solaris2*.
* configure: Regenerate.

13 years ago * linux-low.c (linux_join): Skip process lookup.
devans [Wed, 4 May 2011 20:20:12 +0000 (20:20 +0000)]
* linux-low.c (linux_join): Skip process lookup.
* spu-low.c (spu_join): Ditto.
* server.c (join_inferiors_callback): Delete.
(process_serial_event): For 'D' packet (detach) call join_inferior
directly.

13 years agogdb:
jsm28 [Wed, 4 May 2011 19:28:11 +0000 (19:28 +0000)]
gdb:
* configure.host (xscale*): Don't handle target.
* configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
handle targets.

gdb/gdbserver:
* README: Don't mention xscale*-*-linux*.
* configure.srv (xscale*-*-linux*): Don't handle target.

gdb/testsuite:
* gdb.base/a2-run.exp (strongarm-*-coff): Don't handle target.
* gdb.base/float.exp (xscale*-*-*, strongarm*-*-*): Don't handle
targets.
* gdb.base/long_long.exp (xscale*-*-*, strongarm*-*-*): Don't
handle targets.

sim:
* configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
handle targets.
* configure: Regenerate.

sim/testsuite:
* configure: Regenerate.
* sim/arm/allinsn.exp (xscale*-*-*): Don't handle target.
* sim/arm/misc.exp (thumb*-*-*, xscale*-*-*): Don't handle
targets.
* sim/arm/iwmmxt/iwmmxt.exp: Test for arm*-*-* instead of
xscale*-*-*.
* sim/arm/thumb/allthumb.exp (thumb*-*-*): Don't handle target.
* sim/arm/xscale/xscale.exp: Test for arm*-*-* instead of
xscale*-*-*.

13 years ago* dll_list::detach (dll_list::detach): Avoid doing anything with detach during
cgf [Wed, 4 May 2011 19:19:45 +0000 (19:19 +0000)]
* dll_list::detach (dll_list::detach): Avoid doing anything with detach during
a failing fork.

13 years ago* dll_init.cc (dll_global_dtors): Avoid calling destructors during failing
cgf [Wed, 4 May 2011 16:02:42 +0000 (16:02 +0000)]
* dll_init.cc (dll_global_dtors): Avoid calling destructors during failing
fork().

13 years agogdb/testsuite/
jkratoch [Wed, 4 May 2011 14:46:17 +0000 (14:46 +0000)]
gdb/testsuite/
* gdb.base/completion.exp (complete help info wat): Rename to ...
(complete 'help info wat'): ... here.
Remove all `-re ".*' and `-re "^.*' redundant regexes.
(complete 'p 'arg', complete (2) 'p 'arg'): Remove redundant backslash.

13 years ago2011-05-04 Pedro Alves <pedro@codesourcery.com>
palves [Wed, 4 May 2011 14:40:42 +0000 (14:40 +0000)]
2011-05-04  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/completion.exp: Use gdb_test_multiple instead of
gdb_test and explicit $gdb_prompt/timeout matches.

13 years ago * fhandler.h (class fhandler_base): Remove uninterruptible_io status
corinna [Wed, 4 May 2011 13:06:09 +0000 (13:06 +0000)]
* fhandler.h (class fhandler_base): Remove uninterruptible_io status
flag.
(fhandler_base::ready_for_read): Remove declaration.
(fhandler_socket::ready_for_read): Ditto.
(fhandler_pipe::ready_for_read): Ditto.
(fhandler_tty_master::is_slow): Remove.
* fhandler_console.cc (fhandler_console::open): Drop setting
uninterruptible_io.
* fhandler_serial.cc (fhandler_serial::open): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Ditto.
(fhandler_tty_master::init_console): Ditto.
* pipe.cc (fhandler_pipe::fhandler_pipe): Ditto.
(fhandler_pipe::open): Ditto.
(_pipe): Ditto.
* select.cc (fhandler_pipe::ready_for_read): Remove.
(fhandler_base::ready_for_read): Remove.
* syscalls.cc (readv): Drop unneeded wait variable.  Remove entire test
which might lead to calling ready_for_read.  Remove now unused label
out.

13 years ago * fhandler.h (class fhandler_mailslot): Move down in file and change
corinna [Wed, 4 May 2011 12:56:12 +0000 (12:56 +0000)]
* fhandler.h (class fhandler_mailslot): Move down in file and change
parent class to fhandler_base_overlapped.  Remove declaration of
method write.  Add declaraiotns for raw_read and raw_write.
* fhandler_mailslot.cc (fhandler_mailslot::fhandler_mailslot): Call
fhandler_base_overlapped constructor.
(fhandler_mailslot::fstat): Call fhandler_base_overlapped::fstat.
(fhandler_mailslot::open): Drop FILE_SYNCHRONOUS_IO_NONALERT flag from
call to NtOpenFile.
(fhandler_mailslot::raw_read): New method.
(fhandler_mailslot::raw_write): Ditto.  Take over length algorithm from
former write method.
(fhandler_mailslot::write): Remove.
(fhandler_mailslot::ioctl): Call fhandler_base_overlapped::ioctl.

13 years ago * fhandler.h (fhandler_dev_tape::_lock): Add bool parameter.
corinna [Wed, 4 May 2011 12:22:57 +0000 (12:22 +0000)]
* fhandler.h (fhandler_dev_tape::_lock): Add bool parameter.
* fhandler_tape.cc (lock): Call _lock with false argument.
(_lock): Take bool cancelable parameter.  Handle O_NONBLOCK.
Make cancelable if cancelabe parameter is true.
(fhandler_dev_tape::raw_read): Call _lock with true argument.
(fhandler_dev_tape::raw_write): Ditto.

13 years ago * fhandler_dsp.cc (fhandler_dev_dsp::Audio): Add fh member.
corinna [Wed, 4 May 2011 11:41:21 +0000 (11:41 +0000)]
* fhandler_dsp.cc (fhandler_dev_dsp::Audio): Add fh member.
(fhandler_dev_dsp::Audio_out::Audio_out): Take pointer to encapsulating
fhandler_dev_dsp as parameter.
(fhandler_dev_dsp::Audio_in::Audio_in): Ditto.
(fhandler_dev_dsp::Audio::Audio): Take pointer to encapsulating
fhandler_dev_dsp as parameter and store in fh.
(fhandler_dev_dsp::Audio_out::write): Change return type to int and
return number of bytes written.  Return -1 if waitforspace returns false
and no bytes have been written so far.
(fhandler_dev_dsp::Audio_out::waitforspace): Change return type to bool.
Handle O_NONBLOCK.  Make waiting loop interruptible and cancelable.
Return false in any of these cases, otherwise true.
(fhandler_dev_dsp::Audio_in::read): Set returned nBytes to -1 if
waitfordata returns false and nothing has been read so far.
(fhandler_dev_dsp::Audio_in::waitfordata): Change return type to bool.
Handle O_NONBLOCK.  Make waiting loop interruptible and cancelable.
Return false in any of these cases, otherwise true.
(fhandler_dev_dsp::write): Call Audio_out constructor with this as
parameter.
(fhandler_dev_dsp::read): Call Audio_in constructor with this as
parameter.

13 years ago* libc/include/signal.h (psignal): Declare.
yselkowitz [Wed, 4 May 2011 11:26:20 +0000 (11:26 +0000)]
* libc/include/signal.h (psignal): Declare.
* libc/sys/linux/psignal.c: Move from here...
* libc/signal/psignal.c: ... to here. Document.
* libc/sys/linux/Makefile.am (GENERAL_SOURCES): Move psignal.c from here...
* libc/signal/Makefile.am (LIB_SOURCES): ... to here.
(CHEWOUT_FILES): Add psignal.def.
* libc/sys/linux/Makefile.in: Regenerate.
* libc/signal/Makefile.in: Ditto.
* libc/signal/signal.tex: Add references to psignal.

13 years agoinclude/coff
gingold [Wed, 4 May 2011 11:05:13 +0000 (11:05 +0000)]
include/coff
2011-05-04  Tristan Gingold  <gingold@adacore.com>

* rs6000.h (union external_auxent): Add x_ftype field.
* rs6k64.h: (struct external_auxent): Remap x_file field.

bfd/
2011-04-28  Tristan Gingold  <gingold@adacore.com>

* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file.
(bfd_xcoff_swap_aux_out): Ditto.
* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto.
(bfd_xcoff64_swap_aux_out): Ditto.

13 years ago * configure.ac: Separate libgloss_dir settings from general case
jsm28 [Wed, 4 May 2011 09:51:31 +0000 (09:51 +0000)]
* configure.ac: Separate libgloss_dir settings from general case
over targets.
* configure: Regenerate.

13 years ago * libc/locale/lmessages.h (__messages_load_locale): Declare. Remove
corinna [Wed, 4 May 2011 08:54:32 +0000 (08:54 +0000)]
* libc/locale/lmessages.h (__messages_load_locale): Declare.  Remove
accidental declaration of __numeric_load_locale.
* libc/locale/locale.c: Include timelocal.h to get declaration of
__time_load_locale.
(__set_locale_from_locale_alias): Fix return type.
(__locale_msgcharset): Avoid compiler warnings.
(_localeconv_r): Ditto.

13 years ago Cygwin-specific patch from Andy Koppe:
corinna [Wed, 4 May 2011 08:45:15 +0000 (08:45 +0000)]
Cygwin-specific patch from Andy Koppe:
* libc/locale/locale.c (current_categories): On Cygwin, set LC_CTYPE
to C.UTF-8 to match initial __wctomb and __mbtowc settings.
(lc_ctype_charset): On Cygwin, initialize to "UTF-8".
(loadlocale): Remove unused Cygwin-specifc code.

13 years ago2011-05-04 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 4 May 2011 08:31:03 +0000 (08:31 +0000)]
2011-05-04  Tristan Gingold  <gingold@adacore.com>

* emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Add
LDEMUL_ADD_OPTIONS and LDEMUL_HANDLE_OPTION.
* emultempl/vms.em (OPTION_IDENTIFICATION): New macro.
(gld${EMULATION_NAME}_add_options): New function.
(gld${EMULATION_NAME}_list_options): Ditto.
(gld${EMULATION_NAME}_handle_option): Ditto.
(LDEMUL_ADD_OPTIONS, LDEMUL_HANDLE_OPTION)
(LDEMUL_LIST_OPTIONS): Define.

13 years ago2011-05-04 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 4 May 2011 06:53:38 +0000 (06:53 +0000)]
2011-05-04  Tristan Gingold  <gingold@adacore.com>

* rs6000.h (struct external_exceptab): New struct.
(EXCEPTSZ): New macro.
* rs6k64.h: (struct external_exceptab): New struct.
(EXCEPTSZ): New macro.

13 years ago2011-05-04 Yao Qi <yao@codesourcery.com>
qiyao [Wed, 4 May 2011 06:40:27 +0000 (06:40 +0000)]
2011-05-04  Yao Qi  <yao@codesourcery.com>

* gdb.arch/arm-disp-step.S: Fix usage of macros __thumb__
and __thumb2__.

13 years ago2011-05-04 Yao Qi <yao@codesourcery.com>
qiyao [Wed, 4 May 2011 06:28:41 +0000 (06:28 +0000)]
2011-05-04  Yao Qi  <yao@codesourcery.com>

* gdb_wait.h: remove WAITTYPE and WCOREDUMP.

13 years ago* thread.h (pthread::static_cancel_self): Mark as noreturn.
cgf [Wed, 4 May 2011 06:16:58 +0000 (06:16 +0000)]
* thread.h (pthread::static_cancel_self): Mark as noreturn.
(pthread::cancel_self): Ditto.
* thread.cc (pthread::cancel_self): Explicitly use pthread::exit to avoid a
"function returns" error.

13 years ago* pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential cleanup of
cgf [Wed, 4 May 2011 06:00:53 +0000 (06:00 +0000)]
* pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential cleanup of
uninitialized garbage.  (Suggested by Ryan Johnson)

13 years ago PR ld/12727
amodra [Wed, 4 May 2011 00:31:38 +0000 (00:31 +0000)]
PR ld/12727
* elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
was_undefined on dot-symbols.

13 years ago*** empty log message ***
gdbadmin [Wed, 4 May 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Wed, 4 May 2011 00:00:08 +0000 (00:00 +0000)]
daily update

13 years agoFix races in gdb.base/pr10179.exp.
mpolacek [Tue, 3 May 2011 18:01:59 +0000 (18:01 +0000)]
Fix races in gdb.base/pr10179.exp.

13 years agoRevert "elfread.c (elf_symtab_read): Stop memory leak"
brobecke [Tue, 3 May 2011 16:22:34 +0000 (16:22 +0000)]
Revert "elfread.c (elf_symtab_read): Stop memory leak"

It turns out that this change is not correct, and it causes a crash
on sparc-solaris while trying to load ld.so.  This is because the
memory is actually still referenced after elf_symtab_read completes.

gdb/ChangeLog:

        * elfread.c (elf_symtab_read): Revert the previous change
        that tried to stop a memory leak.

13 years ago * select.cc (cygwin_select): Make degenerate case cancelable.
corinna [Tue, 3 May 2011 15:58:51 +0000 (15:58 +0000)]
* select.cc (cygwin_select): Make degenerate case cancelable.
(select_stuff::destroy): New inline method to delete memory taken
by select_stuff.
(select_stuff::~select_stuff): Call destroy.
(select_stuff::wait): Add case to allow canceling select.
* select.h (select_stuff::destroy): Declare.
* thread.cc: Mark poll, pselect and poll as cancelable.

13 years agoFix uses of litteral `GDB' in `In Memoriam' appendix.
brobecke [Tue, 3 May 2011 15:18:10 +0000 (15:18 +0000)]
Fix uses of litteral `GDB' in `In Memoriam' appendix.

@value{GDBN} should be used in place of GDB, so this patch fixes it.

gdb/doc/ChangeLog:

        * gdb.texinfo (In Memoriam): Replace litteral uses of `GDB' with
        `@value{GDBN}'.

13 years agonew `In Memoriam' appendix in GDB Manual
brobecke [Tue, 3 May 2011 15:09:00 +0000 (15:09 +0000)]
new `In Memoriam' appendix in GDB Manual

This change removes the dedication of the manual to Fred Fish.
It also creates a new `In Memoriam' appendix, where Fred Fish
and Michael Snyder are mentioned.

gdb/doc/ChangeLog:

        * gdb.texinfo (titlepage): Remove dedication.
        (In Memoriam): New appendix.

13 years ago PR ld/12726
amodra [Tue, 3 May 2011 14:56:14 +0000 (14:56 +0000)]
PR ld/12726
* ldexp.h (lang_phase_type): Add lang_assigning_phase_enum.
* ldexp.c (exp_fold_tree_1): Correct assign to dot comment.  Don't
assign to dot when lang_assigning_phase_enum.
* ldlang.h (lang_do_assignments): Update prototype.
* ldlang.c (lang_do_assignments): Add phase parameter.  Update all
callers.
* pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
lang_do_assignments calls.

13 years ago2011-05-03 Paul Brook <paul@codesourcery.com>
pbrook [Tue, 3 May 2011 11:17:18 +0000 (11:17 +0000)]
2011-05-03  Paul Brook  <paul@codesourcery.com>

bfd/
* elf32-tic6x.c (elf32_tic6x_howto_table,
elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook,
elf32_tic6x_relocate_section, elf32_tic6x_check_relocs):
Add R_C6000_EHTYPE.

gas/
* config/tc-tic6x.c (s_ehtype): New function.
(md_pseudo_table): Add "ehtype".
(tic6x_fix_adjustable, md_apply_fix): BFD_RELOC_C6000_EHTYPE.
* doc/c-tic6x.texi: Document .ehtype directive.

ld/testsuite/
* ld-tic6x/ehtype-reloc-1-rel.d: New test.
* ld-tic6x/ehtype-reloc-1.d: New test.
* ld-tic6x/ehtype-reloc-1.s: New test.

13 years ago * locale.cc (print_locale_with_codeset): Align printing of locale names
corinna [Tue, 3 May 2011 10:34:25 +0000 (10:34 +0000)]
* locale.cc (print_locale_with_codeset): Align printing of locale names
to POSIX.

13 years ago * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Make
corinna [Tue, 3 May 2011 10:11:17 +0000 (10:11 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Make
cancelable.  Remove test for main thread, always add signal_arrived
to waited objects.

13 years ago2011-05-03 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 3 May 2011 09:21:05 +0000 (09:21 +0000)]
2011-05-03  Tristan Gingold  <gingold@adacore.com>

* rs6000.h (struct external_ldsym): Use E_SYMNMLEN instead of
SYMNMLEN.

13 years ago * nto-tdep.c (nto_target): Replace deprecated call to
muller [Tue, 3 May 2011 08:46:04 +0000 (08:46 +0000)]
* nto-tdep.c (nto_target): Replace deprecated call to
cygwin_conv_to_posix_path functions by cygwin_conv_path calls.

13 years ago * dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
jakub [Tue, 3 May 2011 08:43:14 +0000 (08:43 +0000)]
* dwarf.c (decode_location_expression): Handle DW_OP_GNU_const_type,
DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
and DW_OP_GNU_reinterpret.

13 years ago * MAINTAINERS: Add myself as DWARF2 maintainer.
jakub [Tue, 3 May 2011 08:33:41 +0000 (08:33 +0000)]
* MAINTAINERS: Add myself as DWARF2 maintainer.

13 years ago * fhandler_tty.cc (fhandler_tty_slave::read): Set WFMO timeout to 0 for
corinna [Tue, 3 May 2011 07:58:12 +0000 (07:58 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::read): Set WFMO timeout to 0 for
nonblocking case.  Drop useless waiter variable.  Rewrite wait for
input_available_event to use a switch statement.  Handle timeout and
failure more gracefully.  Make restartable and cancelable.  Rewrite
wait for input_mutex to use WFMO and a switch statement.  Handle
timeout and failure more gracefully.  Make restartable and cancelable.

13 years agogdb/
jkratoch [Tue, 3 May 2011 07:29:14 +0000 (07:29 +0000)]
gdb/
Fix false GCC warning.
* breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.

13 years ago * breakpoint.c (update_watchpoint): Move code to change
bauermann [Tue, 3 May 2011 05:02:48 +0000 (05:02 +0000)]
* breakpoint.c (update_watchpoint): Move code to change
the enable state of breakpoint from here ...
(do_enable_breakpoint): ... to here.

13 years ago* new-features.sgml (ov-new1.7.10): Document new pthread APIs.
yselkowitz [Tue, 3 May 2011 04:09:52 +0000 (04:09 +0000)]
* new-features.sgml (ov-new1.7.10): Document new pthread APIs.

13 years ago* signal.cc (_pinfo::kill): Avoid referencing 'pid' after ESRCH.
cgf [Tue, 3 May 2011 02:03:03 +0000 (02:03 +0000)]
* signal.cc (_pinfo::kill): Avoid referencing 'pid' after ESRCH.

13 years ago* cygwin.din (pthread_attr_getstack): Export.
yselkowitz [Tue, 3 May 2011 01:13:36 +0000 (01:13 +0000)]
* cygwin.din (pthread_attr_getstack): Export.
(pthread_attr_getstackaddr): Export.
(pthread_getattr_np): Export.
* ntdll.h (enum _THREAD_INFORMATION_CLASS): Add ThreadBasicInformation.
(struct _THREAD_BASIC_INFORMATION): Define.
(NtQueryInformationThread): Declare.
* posix.sgml (std-susv4): Add pthread_attr_getstack.
(std-gnu): Add pthread_getattr_np.
(std-deprec): Add pthread_attr_getstackaddr.
(std-notimpl): Remove pthread_attr_[gs]etstackaddr, as they were
removed from SUSv4.
* thread.cc (pthread_attr::pthread_attr): Initialize stackaddr.
(pthread_attr_getstack): New function.
(pthread_attr_getstackaddr): New function.
(pthread_attr_setstacksize): Return EINVAL if passed size less than
PTHREAD_STACK_MIN, as required by POSIX.
(pthread_getattr_np): New function.
* thread.h (class pthread_attr): Add stackaddr member.
* include/pthread.h (pthread_attr_getstack): Declare.
(pthread_attr_getstackaddr): Declare unconditionally.
(pthread_attr_setstack): Declare inside false conditional for reference.
(pthread_getattr_np): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years agodaily update
amodra [Tue, 3 May 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Tue, 3 May 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agofix typo
cgf [Mon, 2 May 2011 23:11:18 +0000 (23:11 +0000)]
fix typo

13 years ago* Makefile.in: Allow CFLAGS to be overridden from the environment.
cgf [Mon, 2 May 2011 19:14:38 +0000 (19:14 +0000)]
* Makefile.in: Allow CFLAGS to be overridden from the environment.

13 years ago * thread.cc (cancelable_wait): Remove test for main thread.
corinna [Mon, 2 May 2011 18:48:10 +0000 (18:48 +0000)]
* thread.cc (cancelable_wait): Remove test for main thread.
* fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.

13 years ago * fhndler_tty.cc (andler_pty_master::process_slave_output): Make
corinna [Mon, 2 May 2011 18:41:09 +0000 (18:41 +0000)]
* fhndler_tty.cc (andler_pty_master::process_slave_output): Make
interruptible and cancelable.  Fix nonblocking case.

13 years ago2011-05-02 Pedro Alves <pedro@codesourcery.com>
palves [Mon, 2 May 2011 17:52:28 +0000 (17:52 +0000)]
2011-05-02  Pedro Alves  <pedro@codesourcery.com>

PR testsuite/12649
Fix races.

* gdb.base/completion.exp: Remove all sleep calls.  Remove
unnecessary regexs.  Don't explicitly expect anything after the
prompt.  Eat the prompt if necessary.

13 years ago * fhandler_console.cc (fhandler_console::read): Make restartable and
corinna [Mon, 2 May 2011 17:38:15 +0000 (17:38 +0000)]
* fhandler_console.cc (fhandler_console::read): Make restartable and
cancelable.

13 years ago* gdb.opt/inline-cmds.exp: Adjust checks with "finish" command to
emachado [Mon, 2 May 2011 17:07:10 +0000 (17:07 +0000)]
* gdb.opt/inline-cmds.exp: Adjust checks with "finish" command to
accept to show the caller line again as well as the line after.

13 years ago* strace.cc (strace::vprntf): Avoid closing unopened handle.
cgf [Mon, 2 May 2011 17:05:10 +0000 (17:05 +0000)]
* strace.cc (strace::vprntf): Avoid closing unopened handle.

13 years ago* sysconf.cc (sca): Set _SC_SPIN_LOCKS to _POSIX_SPIN_LOCKS.
yselkowitz [Mon, 2 May 2011 16:11:04 +0000 (16:11 +0000)]
* sysconf.cc (sca): Set _SC_SPIN_LOCKS to _POSIX_SPIN_LOCKS.

13 years ago* libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
yselkowitz [Mon, 2 May 2011 16:05:06 +0000 (16:05 +0000)]
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
* libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t
typedef.

13 years agoEliminate trailing whitespace in some files.
cgf [Mon, 2 May 2011 15:28:33 +0000 (15:28 +0000)]
Eliminate trailing whitespace in some files.

* dll_init.cc (dll_list::alloc): Reset 'p' in forked process.
* select.cc (select_stuff::wait): Move cleanup() closer to WFMO to minimize
unavoidable (?) race.

13 years agoAdd testcases for "ar -d" and "ar -m".
hjl [Mon, 2 May 2011 12:47:47 +0000 (12:47 +0000)]
Add testcases for "ar -d" and "ar -m".

2011-05-02  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/12720
* binutils-all/ar.exp (delete_an_element): New.
(move_an_element): Likewise.
Run delete_an_element and move_an_element.

13 years ago Throughout remove NT4 from documentation.
corinna [Mon, 2 May 2011 11:56:36 +0000 (11:56 +0000)]
Throughout remove NT4 from documentation.

* new-features.sgml (ov-new1.7.10): Document change in passwd command.

13 years ago * fhandler_serial.cc (fhandler_serial::raw_read): Add restartability
corinna [Mon, 2 May 2011 10:20:35 +0000 (10:20 +0000)]
* fhandler_serial.cc (fhandler_serial::raw_read): Add restartability
after a signal.  Add cancelability.
(fhandler_serial::raw_write): Wait for write to succeed if O_NONBLOCK
is not set.  Add signal handling and cancelability.

13 years ago PR binutils/12720
amodra [Mon, 2 May 2011 06:04:10 +0000 (06:04 +0000)]
PR binutils/12720
Revert the following change
Michael Snyder  <msnyder@vmware.com>
* ar.c (move_members): Plug memory leak.
(delete_members): Plug memory leak.

13 years agoProperly TABify ChangeLog; take 2
ppluzhnikov [Mon, 2 May 2011 00:21:28 +0000 (00:21 +0000)]
Properly TABify ChangeLog; take 2

13 years agoProperly TABify ChangeLog
ppluzhnikov [Mon, 2 May 2011 00:18:41 +0000 (00:18 +0000)]
Properly TABify ChangeLog

13 years ago*** empty log message ***
gdbadmin [Mon, 2 May 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Mon, 2 May 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago * fhandler_windows.cc (fhandler_windows::read): Use
corinna [Sun, 1 May 2011 17:42:41 +0000 (17:42 +0000)]
* fhandler_windows.cc (fhandler_windows::read): Use
pthread::get_cancel_event to fetch thread's cancel event.
* flock.cc (lf_setlock): Ditto.
* posix_ipc.cc (ipc_cond_timedwait): Ditto.
* thread.cc (pthread::get_cancel_event): New static method.
* thread.h (pthread::get_cancel_event): Declare.

13 years ago * libc/minires-os-if.c (get_dns_info): Remove unnecessary test for
corinna [Sun, 1 May 2011 14:56:46 +0000 (14:56 +0000)]
* libc/minires-os-if.c (get_dns_info): Remove unnecessary test for
existence of DnsQuery_A.

13 years agoAdd missing ChangeLog entry:
corinna [Sun, 1 May 2011 14:36:17 +0000 (14:36 +0000)]
Add missing ChangeLog entry:

* fhandler.h (fhandler_windows::is_slow): Remove.

13 years ago Throughout, use user32 UNICODE functions rather than ANSI functions.
corinna [Sun, 1 May 2011 14:35:11 +0000 (14:35 +0000)]
Throughout, use user32 UNICODE functions rather than ANSI functions.
* autoload.cc: Convert all definitions for ANSI user32 functions to
definitions for the corresponding UNICODE function.
(SendMessageA): Remove.
(SendNotifyMessageW): Define.
* fhandler_windows.cc (fhandler_windows::write): Use SendNotifyMessageW
call rather than SendMessage to make function always return immediately.
(fhandler_windows::read): Make function interruptible and a cancellation
point.  Handle O_NONBLOCK.
* select.cc (peek_serial): Don't wait for signal_arrived here.
* window.cc (wininfo::winthread): Call CreateWindowExW directly rather
than CreateWindow wrapper.

13 years agoAdd testcases for PR ld/12718.
hjl [Sun, 1 May 2011 13:38:22 +0000 (13:38 +0000)]
Add testcases for PR ld/12718.

2011-05-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12718
* ld-i386/i386.exp: Run pr12718.
* ld-x86-64/x86-64.exp: Likewise.

* ld-i386/pr12718.d: New.
* ld-i386/pr12718.s: Likewise.
* ld-x86-64/pr12718.d: Likewise.
* ld-x86-64/pr12718.s: Likewise.

13 years ago PR ld/12718
amodra [Sun, 1 May 2011 12:04:06 +0000 (12:04 +0000)]
PR ld/12718
* elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before
creating ifunc sections.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.

13 years ago * net.cc (fdsock): Drop setting uninterruptible_io to true.
corinna [Sun, 1 May 2011 08:14:38 +0000 (08:14 +0000)]
* net.cc (fdsock): Drop setting uninterruptible_io to true.

13 years ago * fhandler.h (fhandler_socket::is_slow): Remove.
corinna [Sun, 1 May 2011 08:01:53 +0000 (08:01 +0000)]
* fhandler.h (fhandler_socket::is_slow): Remove.

13 years agodaily update
amodra [Sun, 1 May 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sun, 1 May 2011 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

13 years agoCorrect parameter names for elf_x86_64_merge_symbol.
hjl [Sat, 30 Apr 2011 17:56:34 +0000 (17:56 +0000)]
Correct parameter names for elf_x86_64_merge_symbol.

2011-04-30  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter
names.

13 years ago * fcntl.cc (fcntl64): Call pthread_testcancel.
corinna [Sat, 30 Apr 2011 16:34:43 +0000 (16:34 +0000)]
* fcntl.cc (fcntl64): Call pthread_testcancel.
* fhandler_socket.cc (fhandler_socket::connect): Ditto.
(fhandler_socket::accept4): Ditto.
(fhandler_socket::recvfrom): Ditto.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
* flock.cc (lf_setlock): Allow to cancel thread running blocking
file lock.  Try to make code more readable.
(lockf): Call pthread_testcancel.
* mmap.cc (msync): Ditto.
* posix_ipc.cc (ipc_cond_timedwait): Call pthread::static_cancel_self
rather than pthread_testcancel.
* select.cc (cygwin_select): Call pthread_testcancel.
* syscalls.cc (pread): Ditto.
(pwrite): Ditto.
(readv): Ditto.
(writev): Ditto.
(open): Ditto.
(close): Ditto.
(fsync): Ditto.
* termios.cc (tcdrain): Ditto.
* thread.cc: Align list of cancellation points with above changes.
Mark not-implemented functions, too.
(cancelable_wait): Don't set unused object indices to WAIT_FAILED
since that could result in wrong behaviour.  Set them to the invalid
value WAIT_TIMEOUT + 1 instead.

13 years agoUpdate binutils-all/x86-64/compressed-1a.d.
hjl [Sat, 30 Apr 2011 13:17:19 +0000 (13:17 +0000)]
Update binutils-all/x86-64/compressed-1a.d.

2011-04-30  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/x86-64/compressed-1a.d: Adjust for change in output
format.

13 years ago * dwarf2.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
jakub [Sat, 30 Apr 2011 11:01:35 +0000 (11:01 +0000)]
* dwarf2.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret): New.

13 years ago * thread.h (class pthread): Add bool member canceled.
corinna [Sat, 30 Apr 2011 10:20:24 +0000 (10:20 +0000)]
* thread.h (class pthread): Add bool member canceled.
* thread.cc (pthread::pthread): Initialize canceled to false.
(pthread::cancel): Set canceled before setting cancel_event.
(pthread::testcancel): Check for canceled.  Only wait for cancel_event
if canceled is true.  Explain why.
(pthread::_fixup_after_fork): Set canceled to false.

13 years ago*** empty log message ***
gdbadmin [Sat, 30 Apr 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sat, 30 Apr 2011 00:00:10 +0000 (00:00 +0000)]
daily update

13 years ago2011-04-26 Andrew Gontarek <andrewg@cray.com>
tromey [Fri, 29 Apr 2011 19:23:36 +0000 (19:23 +0000)]
2011-04-26  Andrew Gontarek  <andrewg@cray.com>

       * valprint.c (val_print_array_elements): Fixed poor performance
       of printing very large arrays with repeat_count_threshold set
       to unlimited.  New comment.

13 years ago * errno.cc (errmap): Sort. Map ERROR_EXE_MACHINE_TYPE_MISMATCH to
corinna [Fri, 29 Apr 2011 18:54:21 +0000 (18:54 +0000)]
* errno.cc (errmap): Sort.  Map ERROR_EXE_MACHINE_TYPE_MISMATCH to
ENOEXEC.

13 years ago * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
tromey [Fri, 29 Apr 2011 18:44:11 +0000 (18:44 +0000)]
* mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
(mi_parse): Likewise.
* breakpoint.c (break_range_command): Use sizeof char*, not
char**.
(create_breakpoint): Likewise.
(parse_breakpoint_sals): Likewise.

13 years ago * thread.cc: Update comment listing cancellation points per POSIX.
corinna [Fri, 29 Apr 2011 18:29:26 +0000 (18:29 +0000)]
* thread.cc: Update comment listing cancellation points per POSIX.

13 years ago * linux-nat.c (linux_child_remove_fork_catchpoint)
palves [Fri, 29 Apr 2011 15:54:10 +0000 (15:54 +0000)]
* linux-nat.c (linux_child_remove_fork_catchpoint)
(linux_child_remove_vfork_catchpoint)
(linux_child_remove_exec_catchpoint): New functions.
(linux_target_install_ops): Install them.

13 years ago2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 29 Apr 2011 12:45:44 +0000 (12:45 +0000)]
2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>

PR mi/12531

* varobj.c (install_default_visualizer): Do not install a
visualizer if the varobj is CPLUS_FAKE_CHILD.
(construct_visualizer): Likewise.

2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>

PR mi/12531

* gdb.python/py-mi.exp: Add CPLUS_FAKE_CHILD tests and a C++
compile target.
* gdb.python/py-prettyprint.exp: Add C++ object for
CPLUS_FAKE_CHILD test.

13 years ago * advapi32.cc: Add comment.
corinna [Fri, 29 Apr 2011 10:38:11 +0000 (10:38 +0000)]
* advapi32.cc: Add comment.
(EqualSid): Remove.
(CopySid): Remove.
(AddAccessAllowedAce): Remove.
(AddAccessDeniedAce): Remove.
(MakeSelfRelativeSD): Remove.
* flock.cc: Replace above functions throughout with their ntdll.dll
equivalent.
* sec_acl.cc: Ditto.
* sec_auth.cc: Ditto.
* sec_helper.cc: Ditto.
* security.cc: Ditto.
* security.h: Ditto.
(RtlEqualSid): Declare.  Explain why.
(RtlCopySid): Ditto.

13 years ago * advapi32.cc (AccessCheck): Remove.
corinna [Fri, 29 Apr 2011 09:48:24 +0000 (09:48 +0000)]
* advapi32.cc (AccessCheck): Remove.
(PrivilegeCheck): Remove.
(OpenThreadToken): Remove.
* fhandler_tty.cc: Replace above functions throughout with their
ntdll.dll equivalent.
* security.cc: Ditto.

13 years ago * ntdll.h (IsEventSignalled): New inline function.
corinna [Fri, 29 Apr 2011 08:27:09 +0000 (08:27 +0000)]
* ntdll.h (IsEventSignalled): New inline function.
* cygthread.cc (cygthread::terminate_thread): Use IsEventSignalled in
place of WaitForSingleObject on event with 0 timeout.
* fhandler.cc (fhandler_base_overlapped::has_ongoing_io): Ditto.
* fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.
(fhandler_fifo::wait): Ditto.
* fhandler_termios.cc (fhandler_termios::bg_check): Ditto.
* select.cc (verify_tty_slave): Ditto.
* thread.cc (pthread::testcancel): Ditto.

13 years ago * advapi32.cc (GetTokenInformation): Remove.
corinna [Fri, 29 Apr 2011 07:34:02 +0000 (07:34 +0000)]
* advapi32.cc (GetTokenInformation): Remove.
(SetTokenInformation): Remove.
* grp.cc: Replace above functions throughout with their ntdll.dll
equivalent.
* sec_auth.cc: Ditto.
* syscalls.cc: Ditto.
* uinfo.cc: Ditto.

13 years ago * posix_ipc.cc (ipc_cond_timedwait): Only wait for pthread's
corinna [Fri, 29 Apr 2011 07:22:04 +0000 (07:22 +0000)]
* posix_ipc.cc (ipc_cond_timedwait): Only wait for pthread's
cancel_event if thread's cancelability isn't disabled.

13 years ago * binutils-all/i386/compressed-1a.d: Adjust for change in output
hp [Fri, 29 Apr 2011 01:45:51 +0000 (01:45 +0000)]
* binutils-all/i386/compressed-1a.d: Adjust for change in output
format.

13 years ago * gas/elf/dwarf2-1.d, gas/elf/dwarf2-2.d: Adjust for change in
hp [Fri, 29 Apr 2011 01:45:05 +0000 (01:45 +0000)]
* gas/elf/dwarf2-1.d, gas/elf/dwarf2-2.d: Adjust for change in
output format.
* gas/i386/dw2-compress-1.d: Ditto.

13 years agodaily update
amodra [Fri, 29 Apr 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Fri, 29 Apr 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * bfdio.c (memory_bstat): Pass correct size to memset.
tromey [Thu, 28 Apr 2011 20:36:49 +0000 (20:36 +0000)]
* bfdio.c (memory_bstat): Pass correct size to memset.

13 years agogdb/
jkratoch [Thu, 28 Apr 2011 17:37:02 +0000 (17:37 +0000)]
gdb/
* symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
case insensitive comparison.

13 years ago * NEWS: Add note about --dwarf-depth, --dwarf-start, and
tromey [Thu, 28 Apr 2011 17:23:14 +0000 (17:23 +0000)]
* NEWS: Add note about --dwarf-depth, --dwarf-start, and
dwarf-mode.el.
* objdump.c (suppress_bfd_header): New global.
(usage): Update.
(OPTION_DWARF_DEPTH, OPTION_DWARF_START): New constants.
(options): Add dwarf-depth and dwarf-start entries.
(dump_bfd): Use suppress_bfd_header.
(main): Handle OPTION_DWARF_START, OPTION_DWARF_DEPTH.
* doc/binutils.texi (objcopy): Document --dwarf-depth and
--dwarf-start.
(readelf): Likewise.
* dwarf-mode.el: New file.
* dwarf.c (dwarf_cutoff_level, dwarf_start_die): New globals.
(read_and_display_attr_value): Also check debug_info_p.
(process_debug_info): Handle dwarf_start_die and
dwarf_cutoff_level.
* dwarf.h (dwarf_cutoff_level, dwarf_start_die): Declare.
* readelf.c (usage): Update.
(OPTION_DWARF_DEPTH): New macro.
(OPTION_DWARF_START): Likewise.
(options): Add dwarf-depth and dwarf-start entries.
(parse_args): Handle OPTION_DWARF_START and OPTION_DWARF_DEPTH.
testsuite
* binutils-all/objdump.W: Correct output.