OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
13 years ago2011-09-02 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 2 Sep 2011 21:03:04 +0000 (21:03 +0000)]
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (in_pid_list_p): New.
(linux_record_stopped_pid): Delete.
(lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
already attached to the LWP.  Return an indication if so.
(linux_nat_filter_event): Adjust.
* linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
returning an indication to ignore this thread.

13 years ago2011-09-02 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 2 Sep 2011 19:21:02 +0000 (19:21 +0000)]
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

gdb/testsuite/
* gdb.threads/gcore-thread.exp: Set the global core_supported to
0, before testing gcore.

13 years ago2011-09-02 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 2 Sep 2011 16:56:28 +0000 (16:56 +0000)]
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

* top.c: Include interps.h.
(execute_command): If the target can async, but the interpreter is
in sync mode, synchronously wait for the command to finish before
returning.
(execute_command_to_string): Force the interpreter to sync mode.
* infrun.c: Include interps.h.
(fetch_inferior_event): Don't restore the prompt yet if the
interpreter is in sync mode.
* interps.c (interpreter_async): New global.
* interps.h (interpreter_async): Declare.
* inf-loop.c: Include interps.h.
(inferior_event_handler): Don't print the language change or run
breakpoint commands yet if the interpreter in is sync mode.
* main.c (captured_command_loop): Flip the interpreter to async
mode.
* cli/cli-script.c: Include interps.h.
(execute_user_command, while_command, if_command): Force the
interpreter to sync mode.
* python/python.c: Include interps.h.
(python_command, execute_gdb_command): Force the interpreter to
sync mode.

13 years ago2011-09-02 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 2 Sep 2011 12:18:25 +0000 (12:18 +0000)]
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

gdb/
* value.c (show_convenience): Catch errors thrown while printing
each internal variable.
* infrun.c (validate_siginfo_access): New function.
(siginfo_value_read, siginfo_value_write): Call it.

13 years ago * net.cc (cygwin_getsockopt): Drop erroneous double conversion of error
corinna [Fri, 2 Sep 2011 09:52:07 +0000 (09:52 +0000)]
* net.cc (cygwin_getsockopt): Drop erroneous double conversion of error
code returned by SOL_SOCKET/SO_ERROR.  Fix error handling.

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

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

13 years ago * lc_msg.h: Regenerate.
corinna [Thu, 1 Sep 2011 19:19:28 +0000 (19:19 +0000)]
* lc_msg.h: Regenerate.

13 years ago2011-09-01 Christophe Lyon <christophe.lyon@st.com>
clyon [Thu, 1 Sep 2011 14:10:37 +0000 (14:10 +0000)]
2011-09-01  Christophe Lyon  <christophe.lyon@st.com>

        bfd/
* elf32-arm.c (elf32_arm_output_arch_local_syms): Skip excluded
sections.

        ld/testsuite/
* ld-arm/arm-elf.exp: Add new rodata-merge-map test.
* ld-arm/rodata-merge-map.ld: New file.
* ld-arm/rodata-merge-map.sym: Likewise.
* ld-arm/rodata-merge-map1.s Likewise.
* ld-arm/rodata-merge-map2.s: Likewise.
* ld-arm/rodata-merge-map3.s: Likewise.

13 years ago * dlfcn.cc (gfpod_helper): Helper function to search DLL using
corinna [Thu, 1 Sep 2011 08:17:05 +0000 (08:17 +0000)]
* dlfcn.cc (gfpod_helper): Helper function to search DLL using
a given DLL name.  Change default search path to allow /usr/bin.
(get_full_path_of_dll): Find DLLs even if the caller used a ".so"
suffix or a "lib" prefix for the DLL.

13 years agogdb/testsuite/
jkratoch [Thu, 1 Sep 2011 07:19:40 +0000 (07:19 +0000)]
gdb/testsuite/
* dw2-ifort-parameter-debug.S: Update copyright year.
* dw2-ifort-parameter.c: Update copyright year.
* dw2-ifort-parameter.exp: Update copyright year.

* dw2-ifort-parameter-debug.S: New file.
* dw2-ifort-parameter.c: New file.
* dw2-ifort-parameter.exp: New file.

13 years agogdb/
jkratoch [Thu, 1 Sep 2011 07:17:41 +0000 (07:17 +0000)]
gdb/
Revert:
2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
* dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
attribute.

gdb/testsuite/
* dw2-ifort-parameter-debug.S: New file.
* dw2-ifort-parameter.c: New file.
* dw2-ifort-parameter.exp: New file.

13 years ago * server.c (step_thread): Remove definition.
jiez [Thu, 1 Sep 2011 03:14:10 +0000 (03:14 +0000)]
* server.c (step_thread): Remove definition.
(process_serial_event): Don't handle Hs.
* server.h (step_thread): Remove declaration.
* target.c (set_desired_inferior): Remove use of step_thread.

13 years agodaily update
amodra [Thu, 1 Sep 2011 00:00:04 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Thu, 1 Sep 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * flock.cc (inode_t::unlock_and_remove_if_unused): Rename from
corinna [Wed, 31 Aug 2011 16:35:17 +0000 (16:35 +0000)]
* flock.cc (inode_t::unlock_and_remove_if_unused): Rename from
unlock_and_remove.

13 years agodaily update
amodra [Wed, 31 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Wed, 31 Aug 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago gdb/
qiyao [Tue, 30 Aug 2011 02:48:03 +0000 (02:48 +0000)]
gdb/
* solib-dsbt.c (bfd_lookup_symbol): Removed.
(cmp_name): New.
(enable_break2): Update caller.
* solib-frv.c (bfd_lookup_symbol): Removed.
(cmp_name): New.
(enable_break2): Update caller.
* solib-pa64.c (bfd_lookup_symbol): Removed.
(cmp_name): New.
* solib-svr4.c (bfd_lookup_symbol): Removed.
(cmp_name_and_sec_flags): New.
(enable_break): Update caller.
* solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
(gdb_bfd_lookup_symbol_from_dyn_symtab): New.
(gdb_bfd_lookup_symbol): New.
* solib.h: Functions declarations.

13 years ago gdb/
qiyao [Tue, 30 Aug 2011 02:09:05 +0000 (02:09 +0000)]
gdb/
* Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
and solib-dsbt.o.

13 years ago*** empty log message ***
gdbadmin [Tue, 30 Aug 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

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

13 years ago * output.cc: (Output_fill_debug_info::do_minimum_hole_size): Add
ccoutant [Mon, 29 Aug 2011 18:22:30 +0000 (18:22 +0000)]
* output.cc: (Output_fill_debug_info::do_minimum_hole_size): Add
casts to match formatting specs.
(Output_fill_debug_line::do_minimum_hole_size): Likewise.

13 years agoPatch for sid/cgen setter error.
fche [Mon, 29 Aug 2011 17:31:16 +0000 (17:31 +0000)]
Patch for sid/cgen setter error.

http://sourceware.org/ml/cgen/2011-q3/msg00008.html

Author: John Wehle <john@cybersashi.com>

* sid.scm (/op-gen-set-trace1): Use rtl-c VOID instead of 'VOID.

13 years agogdb/
jkratoch [Mon, 29 Aug 2011 16:55:11 +0000 (16:55 +0000)]
gdb/
Fix TUI stepi on code without symbols.
* tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
current PC instead.

13 years ago * flock.cc (LOCK_OBJ_NAME_LEN): Change to accommodate extra lf_ver
corinna [Mon, 29 Aug 2011 13:50:19 +0000 (13:50 +0000)]
* flock.cc (LOCK_OBJ_NAME_LEN): Change to accommodate extra lf_ver
field.
(class lockf_t): Add lf_ver field.
(lockf_t::lockf_t): Initialize lf_ver to 0.
(class inode_t): Change i_wait to i_cnt.  Change comment to explain
change in usage.
(inode_t:use): Rename from wait.  Make private.
(inode_t::unuse): Rename from unwait.  Make private.
(inode_t::inuse): Rename from waiting.  Make private.
(inode_t::notused): New public method to set use count to 0.
(inode_t::unlock_and_remove): New method to unlock node and to delete
it if it's unused in current process.
(fhandler_base::del_my_locks): Drop global list lock.  Drop variable
no_locks_left.  Simpify unlocking and removing node by just calling
unlock_and_remove.
(fixup_lockf_after_exec): Call notused method for each node.
(inode_t::get): Call use method.  Lock node only if outside of list
lock.
(inode_t::get_all_locks_list): Accommodate additional lf_ver field
when creating lockf_t structure from object name.
(lockf_t::create_lock_obj_attr): Accommodate additional lf_ver field
when creating object name from lockf_t structure.  Handle
STATUS_OBJECT_NAME_COLLISION gracefully in F_POSIX case as well.
Change comment accordingly.  Increment lf_ver field rather than high
byte of lf_wid field.  Simplify comment.
(fhandler_disk_file::lock): Always call unlock_and_remove rather than
just UNLOCK on node.
(lf_setlock): Move ret definition where it's used.  Drop unneeded
tests for obj being not NULL.  Only check for deadlock condition if the
lock we're trying to establish is a POSIX lock.  Revamp object
collecting and wait code to cover all cases.  Don't return with EDEADLK
if blocking process can't be opened for synchronization in F_POSIX case,
rather just wait like in F_FLOCK case.  Change system_printf to
debug_printf in that case.  Only run WaitForMultipleObjects with high
priority.  Close obj and process handles prior to locking node.

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

13 years agogdb/
jkratoch [Sun, 28 Aug 2011 20:43:42 +0000 (20:43 +0000)]
gdb/
Code cleanup.
* mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
and the static keyword.
* mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
Make prefix an array.
* mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
* mi/mi-main.c (get_register): Remove stb initialization and the static
keyword.

13 years agogdb/
jkratoch [Sun, 28 Aug 2011 20:39:28 +0000 (20:39 +0000)]
gdb/
Code cleanup - make mi_opt const.
* mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
opts const.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
* mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
(mi_cmd_env_dir): Likewise.
* mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
(mi_cmd_target_file_put): Likewise.
* mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
* mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
* mi/mi-getopt.c (mi_getopt): Make opts and opt const.
(mi_valid_noargs): Make opts const.
* mi/mi-getopt.h (mi_getopt): Make opts and opt const.
* mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
(mi_cmd_data_read_memory): Likewise.
(mi_cmd_data_read_memory_bytes): Likewise.
(mi_cmd_data_write_memory): Likewise.

13 years agodaily update
amodra [Sun, 28 Aug 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Sun, 28 Aug 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agoDon't expose implementation detail for opaque DIRENT structures.
keithmarshall [Sat, 27 Aug 2011 20:16:46 +0000 (20:16 +0000)]
Don't expose implementation detail for opaque DIRENT structures.

13 years ago * fhandler.cc (fhandler_base::open): Fix typo in comment.
corinna [Sat, 27 Aug 2011 20:01:28 +0000 (20:01 +0000)]
* fhandler.cc (fhandler_base::open): Fix typo in comment.
(fhandler_base::close): Move call to del_my_locks from here...
* fhandler_disk_file.cc (fhandler_disk_file::open): ...to here.
* flock.cc (struct lockfattr_t): New type.
(lockf_t::close_lock_obj): New method, use throughout.
(lockf_t::create_lock_obj_attr): New method.
(lockf_t::create_lock_obj): Use create_lock_obj_attr method.  Handle
STATUS_OBJECT_NAME_COLLISION in F_FLOCK case gracefully.  Add lengthy
comments to explain why and how.
(lockf_t::open_lock_obj): Use create_lock_obj_attr method.
(lockf_t::del_lock_obj): Call NtSetEvent rather than SetEvent for
symmetry.
(fhandler_disk_file::lock): Define n only where it's used.  Call
need_fork_fixup only if call was successful.  Handle EINTR and
ECANCELED return values from lf_setlock.
(lf_setlock): Drop WAIT_UNLOCKED and WAIT_PROC_EXITED.  Don't wait
for event object handle count to become <= 1 in F_LOCK case.
Simplify WFMO return value handling.  Don't handle signal and cancel
events here; just return with appropriate error code instead.
(lf_getblock): Ignore locks for which the handle can't be opened.
Use IsEventSignalled.
* ntdll.h (STATUS_INVALID_INFO_CLASS): Undef if defined elsewhere to
make sure the definition is casted to NTSTATUS.
(STATUS_INVALID_HANDLE): Define and ditto.
(STATUS_OBJECT_NAME_COLLISION): Define.
(NtSetEvent): Declare.

13 years ago* solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
ratmice [Sat, 27 Aug 2011 10:28:30 +0000 (10:28 +0000)]
* solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
bcache_xmalloc,  replace bcache_xmalloc with call to
psymbol_bcache_init for psymbol_cache.
* symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.

13 years ago * layout.cc (Free_list::allocate): Provide guarantee of minimum
ccoutant [Sat, 27 Aug 2011 01:28:17 +0000 (01:28 +0000)]
* layout.cc (Free_list::allocate): Provide guarantee of minimum
remaining hole size when allocating.
(Layout::make_output_section): Set fill methods for debug sections.
* layout.h (Free_list::Free_list_node): Move from private to
public.
(Free_list::set_min_hole_size): New function.
(Free_list::begin, Free_list::end): New functions.
(Free_list::min_hole_): New data member.
* output.cc: Include dwarf.h.
(Output_fill_debug_info::do_minimum_hole_size): New function.
(Output_fill_debug_info::do_write): New function.
(Output_fill_debug_line::do_minimum_hole_size): New function.
(Output_fill_debug_line::do_write): New function.
(Output_section::Output_section): Initialize new data member.
(Output_section::set_final_data_size): Ensure patch space is larger
than minimum hole size.
(Output_section::do_write): Fill holes in debug sections.
* output.h (Output_fill): New class.
(Output_fill_debug_info): New class.
(Output_fill_debug_line): New class.
(Output_section::set_free_space_fill): New function.
(Output_section::free_space_fill_): New data member.
* testsuite/Makefile.am (incremental_test_3): Add
--incremental-patch option.
(incremental_test_4): Likewise.
(incremental_test_5): Likewise.
(incremental_test_6): Likewise.
(incremental_copy_test): Likewise.
(incremental_common_test_1): Likewise.
* testsuite/Makefile.in: Regenerate.

13 years agodaily update
amodra [Sat, 27 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

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

13 years agogdb/
jkratoch [Fri, 26 Aug 2011 21:47:21 +0000 (21:47 +0000)]
gdb/
* inf-loop.c (inferior_event_handler): Add exception_print in
INF_EXEC_COMPLETE.

13 years agogdb/
jkratoch [Fri, 26 Aug 2011 21:45:21 +0000 (21:45 +0000)]
gdb/
* breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
make_bpstat_clear_actions_cleanup and discard_cleanups for it.
* defs.h (make_bpstat_clear_actions_cleanup): New declaration.
* exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
* inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
* infrun.c (fetch_inferior_event): Call
make_bpstat_clear_actions_cleanup.
* top.c (execute_command): New variable cleanup_if_error, call
make_bpstat_clear_actions_cleanup and discard_cleanups for it.
* utils.c (do_bpstat_clear_actions_cleanup)
(make_bpstat_clear_actions_cleanup): New functions.

gdb/testsuite/
* gdb.base/commands.exp (error_clears_commands_left): New function.
(): Call it.

13 years agogdb/testsuite/
jkratoch [Fri, 26 Aug 2011 21:11:08 +0000 (21:11 +0000)]
gdb/testsuite/
* gdb.mi/mi-inheritance-syntax-error.cc (A): Make `a' public.
(C): Initialize `a'.
* gdb.mi/mi-inheritance-syntax-error.exp
(-data-evaluate-expression $path):  Expect `a' as 5.

13 years ago2011-08-26 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 26 Aug 2011 19:55:00 +0000 (19:55 +0000)]
2011-08-26  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
either the parent or the child forks.  Rename a couple locals.

13 years ago2011-08-26 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 26 Aug 2011 19:26:40 +0000 (19:26 +0000)]
2011-08-26  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
library call.  Avoid reading the `status' local if all waitpid
calls failed.

13 years ago2011-08-26 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 26 Aug 2011 18:58:02 +0000 (18:58 +0000)]
2011-08-26  Pedro Alves  <pedro@codesourcery.com>

gdb/
* common/linux-osdata.c (get_cores_used_by_process): Don't assume
opening /proc/PID/task always succeeds.

13 years ago * linespec.c (symtab_from_filename): Check for the end of string.
aristovski [Fri, 26 Aug 2011 17:58:57 +0000 (17:58 +0000)]
* linespec.c (symtab_from_filename): Check for the end of string.

13 years agoUpdated Spanish translations.
nickc [Fri, 26 Aug 2011 15:15:47 +0000 (15:15 +0000)]
Updated Spanish translations.

13 years ago2011-08-26 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 26 Aug 2011 13:37:27 +0000 (13:37 +0000)]
2011-08-26  Tristan Gingold  <gingold@adacore.com>

* config/tc-alpha.c (s_alpha_linkage): Simplify.  Add comments.

13 years ago2011-08-26 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 26 Aug 2011 13:16:36 +0000 (13:16 +0000)]
2011-08-26  Tristan Gingold  <gingold@adacore.com>

* config/tc-alpha.c (add_to_link_pool): Improve comment.
(s_alpha_fp_save): Fix indentation.

13 years ago * NEWS: Mention that --no-copy-dt-needed-entries is now the
nickc [Fri, 26 Aug 2011 12:48:08 +0000 (12:48 +0000)]
* NEWS: Mention that --no-copy-dt-needed-entries is now the
default.

13 years ago2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
marckhouzam [Fri, 26 Aug 2011 12:32:59 +0000 (12:32 +0000)]
2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>

PR mi/11912
* varobj.c (cplus_describe_child): Add the keyword
'class' to the output of the method when dealing
with a cast to a base class.

2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>

PR mi/11912
* gdb.mi/mi-inheritance-syntax-error.cc: New file.
* gdb.mi/mi-inheritance-syntax-error.exp: New file.
* gdb.mi/mi-var-cp.cc: Updated for new 'class'
keyword in output of -var-info-path-expression.

13 years agogdb/
jkratoch [Fri, 26 Aug 2011 09:28:25 +0000 (09:28 +0000)]
gdb/
No functionality change.
* breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
function comment a reference, new variables tp and bs, move here code
from throw_exception.
* breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
describe it in the comment.
* exceptions.c (throw_exception): Remove variable tp, move the code for
bpstat_clear_actions to bpstat_clear_actions.

13 years agogdb/testsuite/
jkratoch [Fri, 26 Aug 2011 09:20:43 +0000 (09:20 +0000)]
gdb/testsuite/
* gdb.trace/backtrace.exp: Use is_lp64_target to check 64bit target.
* gdb.trace/collection.exp: Likewise.
* gdb.trace/report.exp: Likewise.
* gdb.trace/unavailable.exp: Likewise.
* gdb.trace/while-dyn.exp: Likewise.

13 years ago * libc/time/mktm_r.c (_mktm_r): Fix previous fix.
corinna [Fri, 26 Aug 2011 07:23:41 +0000 (07:23 +0000)]
* libc/time/mktm_r.c (_mktm_r): Fix previous fix.

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

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

13 years ago* cygthread.cc (cygthread::simplestub): Notify that the thread has detached
cgf [Thu, 25 Aug 2011 19:37:38 +0000 (19:37 +0000)]
* cygthread.cc (cygthread::simplestub): Notify that the thread has detached
also in freerange thread case.

13 years ago2011-08-25 Andrew Oakley <andrew@ado.is-a-geek.net>
tromey [Thu, 25 Aug 2011 17:59:48 +0000 (17:59 +0000)]
2011-08-25  Andrew Oakley  <andrew@ado.is-a-geek.net>

* gdb.texinfo (Types In Python): Document 'bitpos' for enums.

13 years ago * fhandler.cc (fhandler_base::open): Never open files with
corinna [Thu, 25 Aug 2011 13:35:42 +0000 (13:35 +0000)]
* fhandler.cc (fhandler_base::open): Never open files with
FILE_OVERWITE/FILE_OVERWRITE_IF.  Set file size to 0 explicitely if
regular, existing file has been opened for writing with O_TRUNC flag
set.  Explain why.

13 years agodaily update
amodra [Thu, 25 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Thu, 25 Aug 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * thread.cc (pthread::pthread): Drop setting parent_tls. Call
corinna [Wed, 24 Aug 2011 15:18:16 +0000 (15:18 +0000)]
* thread.cc (pthread::pthread): Drop setting parent_tls.  Call
sigprocmask to copy parent thread signal mask into new parent_sigmask
member.
(pthread::thread_init_wrapper): Copy _my_tls.sigmask from new
parent_sigmask member.
* thread.h (class pthread): Drop parent_tls.  Add parent_sigmask.

13 years ago* thread.cc (pthread::exit): Create dummy tls structure to hold _main_tls
cgf [Wed, 24 Aug 2011 14:23:35 +0000 (14:23 +0000)]
* thread.cc (pthread::exit): Create dummy tls structure to hold _main_tls
contents if we've asked _main_tls to exit.

13 years ago * libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.
corinna [Wed, 24 Aug 2011 13:38:31 +0000 (13:38 +0000)]
* libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.

13 years agoStop threads when attaching to a PID that is the tgid.
luisgpm [Wed, 24 Aug 2011 12:17:39 +0000 (12:17 +0000)]
Stop threads when attaching to a PID that is the tgid.

13 years agoMove common linux procfs code to common/
luisgpm [Wed, 24 Aug 2011 12:07:20 +0000 (12:07 +0000)]
Move common linux procfs code to common/

13 years agoFix a change log format issue.
teawater [Wed, 24 Aug 2011 09:28:42 +0000 (09:28 +0000)]
Fix a change log format issue.

13 years ago2011-08-24 Hui Zhu <teawater@gmail.com>
teawater [Wed, 24 Aug 2011 09:24:08 +0000 (09:24 +0000)]
2011-08-24  Hui Zhu  <teawater@gmail.com>

* tracepoint.c (cond_string_is_same): New function.
(find_matching_tracepoint): Add condition check
by cond_string_is_same.

13 years ago*** empty log message ***
gdbadmin [Wed, 24 Aug 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Wed, 24 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Tue, 23 Aug 2011 22:59:34 +0000 (22:59 +0000)]
2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.20.

13 years ago2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Tue, 23 Aug 2011 22:27:35 +0000 (22:27 +0000)]
2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * tlsmthread.c: Update to reflect changes in tlssup.c.
        * tlssup.c: code clean-up.

13 years agogdb/
jkratoch [Tue, 23 Aug 2011 19:40:48 +0000 (19:40 +0000)]
gdb/
Fix build error in Darwin port.
* darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.

13 years ago * poll.cc (poll): Don't return prematurely if invalid fds have been
corinna [Tue, 23 Aug 2011 14:05:02 +0000 (14:05 +0000)]
* poll.cc (poll): Don't return prematurely if invalid fds have been
encountered.  Enforce timeout set to 0 in case of invalid fds.  Take
number of invalid fds into account when returning.

13 years ago * fhandler_socket.cc (fhandler_socket::send_internal): Fix setting
corinna [Tue, 23 Aug 2011 13:07:23 +0000 (13:07 +0000)]
* fhandler_socket.cc (fhandler_socket::send_internal): Fix setting
nosignal flag.  Convert ECONNABORTED on connection-oriented socket
to EPIPE, too.

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
corsepiu [Tue, 23 Aug 2011 12:03:55 +0000 (12:03 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index".
* libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
corsepiu [Tue, 23 Aug 2011 12:01:50 +0000 (12:01 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/misc/ffs.c, libc/string/bcmp.c, libc/string/bcopy.c,
libc/string/bzero.c, libc/string/index.c, libc/string/rindex.c,
libc/string/strcasecmp.c, libc/string/strncasecmp.c:
Let synopsis reference "#include <strings.h>".

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
corsepiu [Tue, 23 Aug 2011 11:59:55 +0000 (11:59 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/posix/regexec.c: Define "nope" only #ifndef NDEBUG.
* libc/stdio/vfscanf.c: Define "state" only #ifdef _MB_CAPABLE.
* libc/string/wcwidth.c: Include <wctypes.h> for "iswprint" and
"iswcntrl".

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
corsepiu [Tue, 23 Aug 2011 05:51:04 +0000 (05:51 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/sys/rtems/include/limits.h: Compute SSIZE_MAX based on
__SIZE_MAX__, __SIZEOF_SIZE_T__ and __CHAR_BIT__.

13 years ago*** empty log message ***
gdbadmin [Tue, 23 Aug 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Tue, 23 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago * picflag.m4: New file.
ro [Mon, 22 Aug 2011 17:51:24 +0000 (17:51 +0000)]
* picflag.m4: New file.

13 years agomerge from gcc
dj [Mon, 22 Aug 2011 17:16:25 +0000 (17:16 +0000)]
merge from gcc

13 years ago2011-08-22 Ralf Corsépius <ralf.corsepius@rtems.org>
corsepiu [Mon, 22 Aug 2011 16:49:33 +0000 (16:49 +0000)]
2011-08-22  Ralf Corsépius <ralf.corsepius@rtems.org>

* libc/string/index.c: Include <strings.h> for "index".
* libc/string/rindex.c: Include <strings.h> for "rindex".
* libc/string/strcasecmp.c: Include <strings.h> for "strcasecmp".
Don't include <string.h>.
* libc/string/strncasecmp.c: Include <strings.h> for "strncasecmp".
Don't include <string.h>.
* libc/string/bzero.c: Include <strings.h> for "bzero".
Don't include <string.h>
* libc/misc/ffs.c: Include <strings.h> for "ffs".
Don't include <_ansi.h>.

13 years ago * ld-powerpc/tocopt4a.s, * ld-powerpc/tocopt4b.s,
amodra [Mon, 22 Aug 2011 14:28:53 +0000 (14:28 +0000)]
* ld-powerpc/tocopt4a.s, * ld-powerpc/tocopt4b.s,
* ld-powerpc/tocopt4.d: New test.
* ld-powerpc/powerpc.exp: Run it.

13 years ago * ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
matz [Mon, 22 Aug 2011 12:35:09 +0000 (12:35 +0000)]
* ldmain.c (add_DT_NEEDED_for_dynamic): Default to FALSE.
* ld.texinfo (--copy-dt-needed-entries): Mention new default.

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

13 years ago*** empty log message ***
gdbadmin [Mon, 22 Aug 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago* Makefile.in: Check for header file existence when building dumper.exe too.
cgf [Sun, 21 Aug 2011 19:36:52 +0000 (19:36 +0000)]
* Makefile.in: Check for header file existence when building dumper.exe too.

13 years ago* dtable.cc (conv_start_chars): Remove unneeded section attribute.
cgf [Sun, 21 Aug 2011 18:45:06 +0000 (18:45 +0000)]
* dtable.cc (conv_start_chars): Remove unneeded section attribute.

13 years agogdb/
jkratoch [Sun, 21 Aug 2011 14:33:05 +0000 (14:33 +0000)]
gdb/
Code cleanup.
* breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
(command_line_is_silent): New function.
(bpstat_do_actions_1): No longer use commands_left, use
command_line_is_silent for commands.
(bpstat_alloc): Remove clearing of commands_left.
(bpstat_stop_status): Remove initialization of commands_left, use
command_line_is_silent.
* breakpoint.h (struct bpstats): Remove commands_left.

13 years ago* include/paths.h (_PATH_MAILDIR): Define.
yselkowitz [Sun, 21 Aug 2011 03:22:29 +0000 (03:22 +0000)]
* include/paths.h (_PATH_MAILDIR): Define.
(_PATH_SHELLS): Define.

13 years ago*** empty log message ***
gdbadmin [Sun, 21 Aug 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

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

13 years ago * fhandler_process.cc (format_process_maps): Define page protection
corinna [Sat, 20 Aug 2011 18:55:44 +0000 (18:55 +0000)]
* fhandler_process.cc (format_process_maps): Define page protection
shortcuts RO, X, and WC.  Use in creating access flag string.  Don't
set type flag to 's' for copy-on-write pages, as on Linux.

13 years ago2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>
corsepiu [Sat, 20 Aug 2011 05:34:21 +0000 (05:34 +0000)]
2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>

* libc/sys/rtems/crt0.c: Rework RTEMS_STUB macro.
Include <unistd.h>.
Remove C++-style comments.
Remove hppa, a29k.
Add clock_gettime, gettimeofday, sched_yield.

13 years ago2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Sat, 20 Aug 2011 05:00:11 +0000 (05:00 +0000)]
2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.19.

13 years ago2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Sat, 20 Aug 2011 04:12:22 +0000 (04:12 +0000)]
2011-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/float.h: Modify guard to accomodate CLang.

        Thanks to Ruben Van Boxem for the report.

13 years ago2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Sat, 20 Aug 2011 04:11:27 +0000 (04:11 +0000)]
2011-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * tlssup.c: Remove mingwm10.dll fallback.

13 years ago2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Sat, 20 Aug 2011 01:38:15 +0000 (01:38 +0000)]
2011-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/sys/types.h (ssize_t): Defined as int as opposed to long.

        Thanks to bvassche for the report.

13 years agodaily update
amodra [Sat, 20 Aug 2011 00:00:05 +0000 (00:00 +0000)]
daily update

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