From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16438 invoked by alias); 21 Oct 2008 17:13:43 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 16374 invoked by uid 9782); 21 Oct 2008 17:13:37 -0000 Date: Tue, 21 Oct 2008 17:13:00 -0000 Message-ID: <20081021171337.16358.qmail@sourceware.org> From: sergio@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: *** empty log message *** X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 053ff58c07e3175036cf59295a3dcb83d4be682f X-Git-Newrev: 8b9b646f4ed3b444f5fad0f084cebfaea1a5c3e8 X-SW-Source: 2008-q4/txt/msg00026.txt.bz2 List-Id: The branch, master has been updated via 8b9b646f4ed3b444f5fad0f084cebfaea1a5c3e8 (commit) via ef2d1ee753080788df101364354d6f2baefa8f5e (commit) via 0ddabd6420b471cf7b17416469a49cc21e816c2c (commit) via 5e2a610487fb3eec5a0aa47424f5c7c62d106cf5 (commit) via ebff2be5e2ee3d2f519a6a1d0768dd0587e6d779 (commit) via b3cb5fa5c9ba9dbd60fa215bd2722291b14b0cc3 (commit) via 360a96f0ba250507685b6071e381db2ea30911d9 (commit) via 0c8fe6fe21053d10218069d74878ad6b44d14f24 (commit) via 8db616099e1906ac1720767ba6eb11d0b41bf5a1 (commit) via ca0616539ea5426406321475dc189c8bbf45bf6f (commit) via 678dfad740edc652c02cb11873b0fa55bc216369 (commit) via 32ca89cbc74598147bac032d714d7a492b9e762d (commit) via 62e853ca1e37e1dc4a4ab4445a0c63d0ea0b9306 (commit) via 651e2826e79e20f32a48c8a1a5e8f51d6245e479 (commit) via e2382638467a1882037a4e9b30f9ca3760ab51e6 (commit) via ab34e1a794893d2471aacb2be97a430ecc5813fc (commit) via 25943b9001982fae0a791c3b9b3fd5932b22e7f8 (commit) via bff4dfb5f46528a9b726e1ba7c0348488d5725a5 (commit) via 5e2c945de3599778c50154248a29be63c3a94c47 (commit) via 6662c745bd9d845962cb088b86f7af4499ff6683 (commit) via cc550d60b30016fbdccae7394fb3e454d97ee5ba (commit) via 9e94eacd1cf15938738d813fa9d30cb2116e617c (commit) via bc4f86eb653115f0e350cc645d8517f4b4b34293 (commit) via c6981457f70526a888226d4aa9becfb50584e304 (commit) via f911b26577ca1778da26495ff2d2c758f8ac6d08 (commit) via 6cbf78fa0c01cfc7a2b02dac6f4df1a53fb7724f (commit) via 77872774acc22e73ffc16fb61b01b89a67ed62ff (commit) via 56ff5dc672f056361df569d505ebe78dcbbb1c12 (commit) via 4b16a77af5043822bb3d45007b0200410b468011 (commit) via 2cf413dfb9b7cc9b8a81d9d9ea6462e0e68e2a0c (commit) via ae83c643a81a427e918fc616329c872d47b51801 (commit) via e495c0749b942577136902e7f66a6ad7a60e65d5 (commit) via 8737f0feccd8b305788c2693d5a27027661eb9bc (commit) via fe5abb25ff0fd57122347d4d1474f959e7f1df7e (commit) via 4eedc82590aa6c3769e081474c7040cec50ec430 (commit) via 65ecd27b82b4a70b17050f593cf056fa7f8da7d2 (commit) from 053ff58c07e3175036cf59295a3dcb83d4be682f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 8b9b646f4ed3b444f5fad0f084cebfaea1a5c3e8 Author: gdbadmin Date: Tue Oct 21 00:00:33 2008 +0000 *** empty log message *** commit ef2d1ee753080788df101364354d6f2baefa8f5e Author: Alan Modra Date: Tue Oct 21 00:00:04 2008 +0000 daily update commit 0ddabd6420b471cf7b17416469a49cc21e816c2c Author: Alan Modra Date: Mon Oct 20 23:03:31 2008 +0000 * obstack.h (obstack_finish ): Cast result to void *. commit 5e2a610487fb3eec5a0aa47424f5c7c62d106cf5 Author: Joel Brobecker Date: Mon Oct 20 16:18:59 2008 +0000 * NEWS: Add entry mentioning thread-support on Tru64 commit ebff2be5e2ee3d2f519a6a1d0768dd0587e6d779 Author: Joel Brobecker Date: Mon Oct 20 15:48:15 2008 +0000 * dec-thread.c: New file. * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o. (NAT_CLIBS): Define. commit b3cb5fa5c9ba9dbd60fa215bd2722291b14b0cc3 Author: Alan Modra Date: Mon Oct 20 11:05:47 2008 +0000 * elf64-ppc.c (ppc64_elf_process_dot_syms): Renamed from ppc64_elf_check_directives. * elf32-sh-symbian.c (sh_symbian_process_directives): Combine.. (sh_symbian_check_directives): ..this (bfd_elf32_sh_symbian_process_directives) ..and this function. commit 360a96f0ba250507685b6071e381db2ea30911d9 Author: Alan Modra Date: Mon Oct 20 10:57:33 2008 +0000 * elflink.c (bfd_elf_final_link): Move code reading relocs to.. * elf32-spu.c (spu_elf_count_relocs): ..here. Adjust params. * elf-bfd.h (struct elf_backend_data): Update elf_backend_count_relocs params. commit 0c8fe6fe21053d10218069d74878ad6b44d14f24 Author: Alan Modra Date: Mon Oct 20 10:50:37 2008 +0000 * elflink.c (bfd_elf_final_link): Use d_ptr rather than d_val where Elf_Internal_Dyn holds an address. commit 8db616099e1906ac1720767ba6eb11d0b41bf5a1 Author: Hui Zhu Date: Mon Oct 20 02:56:38 2008 +0000 2008-10-19 Hui Zhu * infrun.c (handle_inferior_event): Set "stop_pc" when TARGET_WAITKIND_NO_HISTORY. commit ca0616539ea5426406321475dc189c8bbf45bf6f Author: gdbadmin Date: Mon Oct 20 00:00:34 2008 +0000 *** empty log message *** commit 678dfad740edc652c02cb11873b0fa55bc216369 Author: Alan Modra Date: Mon Oct 20 00:00:05 2008 +0000 daily update commit 32ca89cbc74598147bac032d714d7a492b9e762d Author: Pedro Alves Date: Sun Oct 19 20:24:58 2008 +0000 * python/python-value.c (value_object_methods) (value_object_as_number, value_object_as_mapping): Move to bottom of file. (valpy_dealloc, valpy_new, valpy_length, valpy_getitem) (valpy_setitem, valpy_str, valpy_add, valpy_subtract) (valpy_multiply, valpy_divide, valpy_remainder, valpy_power) (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero) (valpy_richcompare, valpy_dereference): Don't forward-declare. (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'. commit 62e853ca1e37e1dc4a4ab4445a0c63d0ea0b9306 Author: Pedro Alves Date: Sun Oct 19 19:59:31 2008 +0000 * configure.ac: Output gdb.python/Makefile. * configure: Regenerate. * gdb.python/Makefile.in: New. commit 651e2826e79e20f32a48c8a1a5e8f51d6245e479 Author: gdbadmin Date: Sun Oct 19 00:00:04 2008 +0000 *** empty log message *** commit e2382638467a1882037a4e9b30f9ca3760ab51e6 Author: Alan Modra Date: Sun Oct 19 00:00:04 2008 +0000 daily update commit ab34e1a794893d2471aacb2be97a430ecc5813fc Author: Pedro Alves Date: Sat Oct 18 03:24:33 2008 +0000 * infrun.c (adjust_pc_after_break): Do nothing if executing in reverse. commit 25943b9001982fae0a791c3b9b3fd5932b22e7f8 Author: Michael Snyder Date: Sat Oct 18 01:12:49 2008 +0000 Line break commit bff4dfb5f46528a9b726e1ba7c0348488d5725a5 Author: Alan Modra Date: Sat Oct 18 00:00:04 2008 +0000 daily update commit 5e2c945de3599778c50154248a29be63c3a94c47 Author: gdbadmin Date: Sat Oct 18 00:00:02 2008 +0000 *** empty log message *** commit 6662c745bd9d845962cb088b86f7af4499ff6683 Author: Pedro Alves Date: Fri Oct 17 23:39:32 2008 +0000 * infcmd.c (GO_USAGE): Delete. (go_command): Adjust. commit cc550d60b30016fbdccae7394fb3e454d97ee5ba Author: Michael Snyder Date: Fri Oct 17 19:44:17 2008 +0000 2008-10-17 Michael Snyder * gdb.texinfo: Add documentation for reverse execution. commit 9e94eacd1cf15938738d813fa9d30cb2116e617c Author: Michael Snyder Date: Fri Oct 17 19:43:46 2008 +0000 2008-10-17 Michael Snyder Target interface for reverse debugging. * target.h (enum target_waitkind): Add new wait event, TARGET_WAITKIND_NO_HISTORY. (struct target_ops): New method to_can_execute_reverse. (target_can_execute_reverse): New macro. * target.c (update_current_target): Inherit to_can_execute_reverse. Remote interface for reverse debugging. * remote.c (remote_can_execute_reverse): New target method. (remote_resume): Check for reverse exec direction, and send appropriate command to target. (remote_wait_as): Check target response for NO_HISTORY status. Also check for empty reply (target doesn't understand "bs" or "bc). (remote_vcont_resume): Jump out if attempting reverse execution. Event handling interface for reverse debugging. * infrun.c (execution_direction): New state variable. (enum inferior_stop_reason): Add NO_HISTORY reason. (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY. Handle stepping over a function call in reverse. Handle stepping thru a line range in reverse. Handle setting a step-resume breakpoint in reverse. Handle stepping into a function in reverse. Handle stepping between line ranges in reverse. (print_stop_reason): Print reason for NO_HISTORY. (step_into_function): Rename to handle_step_into_function. (handle_step_into_function_backward): New function. (set_exec_direction_func, show_exec_direction_func): New funcs. (proceed): No need to singlestep over a breakpoint when resuming in reverse. * inferior.h (enum exec_direction_kind): New enum. (execution_direction): Export new execution state variable. * breakpoint.c (make_breakpoint_silent): New function. * breakpoint.h (make_breakpoint_silent): Export. * infcmd.c (finish_command): Check for reverse exec direction. (finish_backward): New function, handle finish cmd in reverse. User interface for reverse execution. * Makefile.in (reverse.c): New file. * reverse.c: New file. User interface for reverse execution. commit bc4f86eb653115f0e350cc645d8517f4b4b34293 Author: Pedro Alves Date: Fri Oct 17 01:08:08 2008 +0000 * remote.c (record_currthread): Add inferior before child threads. (remote_threads_info): Check for exited threads. Mention notification order. commit c6981457f70526a888226d4aa9becfb50584e304 Author: gdbadmin Date: Fri Oct 17 00:00:34 2008 +0000 *** empty log message *** commit f911b26577ca1778da26495ff2d2c758f8ac6d08 Author: Alan Modra Date: Fri Oct 17 00:00:04 2008 +0000 daily update commit 6cbf78fa0c01cfc7a2b02dac6f4df1a53fb7724f Author: Thiago Jung Bauermann Date: Thu Oct 16 17:59:36 2008 +0000 Mention Eli in the changelog entry for Python values. commit 77872774acc22e73ffc16fb61b01b89a67ed62ff Author: Joel Brobecker Date: Thu Oct 16 16:25:36 2008 +0000 * gdb.base/foll-fork.exp: Adjust the expected output to match the new description for fork/vfork catchpoints in the "info breakpoints" output. commit 56ff5dc672f056361df569d505ebe78dcbbb1c12 Author: Joel Brobecker Date: Thu Oct 16 16:25:04 2008 +0000 * breakpoint.h (enum bptype): New enum bp_catchpoint. Delete bp_catch_fork and bp_catch_vfork. (struct breakpoint_ops): Add new methods "insert", "remove" and "breakpoint_hit". * breakpoint.c (create_fork_vfork_event_catchpoint) (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove. (insert_catchpoint): Remove handling of bp_catch_fork and bp_catch_vfork catchpoints, and handle them as bp_catchpoint catchpoints instead. (insert_bp_location, update_breakpoints_after_exec) (remove_breakpoint, bpstat_check_location, bpstat_what) (allocate_bp_location): Likewise. (print_it_typical, print_one_breakpoint_location, mention): Remove handling of bp_catch_fork and bp_catch_vfork breakpoints. (ep_is_catchpoint, user_settable_breakpoint) (breakpoint_address_is_meaningful, adjust_breakpoint_address) (breakpoint_re_set_one, disable_command, enable_command): Remove use of bp_catch_fork and bp_catch_vfork. Add handling of bp_catchpoint breakpoints. (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork) (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork): New functions. (catch_fork_breakpoint_ops): New static constant. (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork) (print_it_catch_vfork, print_one_catch_vfork) (print_mention_catch_vfork): New functions. (catch_vfork_breakpoint_ops): New static constant. (create_catchpoint, create_fork_vfork_event_catchpoint): New functions. (catch_fork_command_1): Use create_fork_vfork_event_catchpoint to create the fork and vfork catchpoints. (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields. * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops fields. (catch_exception_unhandled_breakpoint_ops): Likewise. (catch_assert_breakpoint_ops): Likewise. commit 4b16a77af5043822bb3d45007b0200410b468011 Author: Thiago Jung Bauermann Date: Thu Oct 16 15:08:28 2008 +0000 2008-10-16 Paul Pluzhnikov * Makefile.in: Add gdb.python to ALL_SUBDIRS. commit 2cf413dfb9b7cc9b8a81d9d9ea6462e0e68e2a0c Author: Thiago Jung Bauermann Date: Thu Oct 16 14:46:20 2008 +0000 Add gdb/python/python-value.c, which I forgot to do in my previous commit. commit ae83c643a81a427e918fc616329c872d47b51801 Author: Pedro Alves Date: Thu Oct 16 14:39:54 2008 +0000 * remote.c (set_general_process): New. (remote_check_symbols): Use it. commit e495c0749b942577136902e7f66a6ad7a60e65d5 Author: Pedro Alves Date: Thu Oct 16 14:03:15 2008 +0000 * remote.c (push_remote_target): Delete. * target.h (push_remote_target): Delete declaration. commit 8737f0feccd8b305788c2693d5a27027661eb9bc Author: Thiago Jung Bauermann Date: Thu Oct 16 03:53:58 2008 +0000 2008-10-16 Thiago Jung Bauermann Tom Tromey gdb/ * Makefile.in (SUBDIR_PYTHON_OBS): Add python-value.o. (SUBDIR_PYTHON_SRCS): Add python-value.c. (python-value.o): New target. * configure.ac (CONFIG_OBS): Add python-value.o. (CONFIG_SRCS): Add python/python-value.c * configure: Regenerate. * python-internal.h (value_object_type): Add external declaration. (gdbpy_get_value_from_history, value_to_value_object, convert_value_from_python, gdbpy_initialize_values): Add function prototype. * python/python-value.c: New file. * python/python.c (GdbMethods): Add gdbpy_get_value_from_history. (_initialize_python): Call gdbpy_initialize_values. * python/python.h (values_in_python): Add external declaration. * value.c (value_prepend_to_list, value_remove_from_list): New functions. (preserve_values): Iterate over values_in_python list as well. * value.h (value_prepend_to_list, value_remove_from_list): Add function prototypes. gdb/doc/ * gdb.texinfo. (Values From Inferior): New subsubsection. gdb/testsuite/ * gdb.python/python-value.c: New file. * gdb.python/python-value.exp: New file. commit fe5abb25ff0fd57122347d4d1474f959e7f1df7e Author: DJ Delorie Date: Thu Oct 16 02:47:08 2008 +0000 merge from gcc commit 4eedc82590aa6c3769e081474c7040cec50ec430 Author: Alan Modra Date: Thu Oct 16 00:00:04 2008 +0000 daily update commit 65ecd27b82b4a70b17050f593cf056fa7f8da7d2 Author: gdbadmin Date: Thu Oct 16 00:00:03 2008 +0000 *** empty log message *** ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 27 +- bfd/elf-bfd.h | 2 +- bfd/elf32-sh-symbian.c | 13 +- bfd/elf32-spu.c | 23 +- bfd/elf64-ppc.c | 6 +- bfd/elflink.c | 30 +- bfd/version.h | 2 +- gdb/ChangeLog | 135 ++++ gdb/Makefile.in | 15 +- gdb/NEWS | 2 + gdb/ada-lang.c | 9 + gdb/breakpoint.c | 369 +++++++---- gdb/breakpoint.h | 20 +- gdb/config/alpha/alpha-osf3.mh | 3 +- gdb/configure | 6 +- gdb/configure.ac | 6 +- gdb/dec-thread.c | 683 ++++++++++++++++++++ gdb/doc/ChangeLog | 9 + gdb/doc/gdb.texinfo | 206 ++++++ gdb/infcmd.c | 142 ++++- gdb/inferior.h | 10 + gdb/infrun.c | 244 +++++++- gdb/python/python-internal.h | 13 +- gdb/python/python-value.c | 672 +++++++++++++++++++ gdb/python/python.c | 4 + gdb/python/python.h | 2 + gdb/remote.c | 102 +++- gdb/reverse.c | 144 ++++ gdb/target.c | 1 + gdb/target.h | 17 +- gdb/testsuite/ChangeLog | 21 + gdb/testsuite/Makefile.in | 2 +- gdb/testsuite/configure | 41 +- gdb/testsuite/configure.ac | 1 + gdb/testsuite/gdb.base/foll-fork.exp | 24 +- gdb/testsuite/gdb.python/Makefile.in | 14 + .../gdb.python/python-value.c} | 38 +- gdb/testsuite/gdb.python/python-value.exp | 250 +++++++ gdb/value.c | 35 +- gdb/value.h | 10 +- gdb/version.in | 2 +- include/ChangeLog | 4 + include/obstack.h | 4 +- libiberty/ChangeLog | 7 + libiberty/Makefile.in | 8 +- 45 files changed, 3054 insertions(+), 324 deletions(-) create mode 100644 gdb/dec-thread.c create mode 100644 gdb/python/python-value.c create mode 100644 gdb/reverse.c create mode 100644 gdb/testsuite/gdb.python/Makefile.in copy gdb/{python/python.h => testsuite/gdb.python/python-value.c} (67%) create mode 100644 gdb/testsuite/gdb.python/python-value.exp First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f0080bb..a9e5923 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,23 @@ +2008-10-20 Alan Modra + + * elf64-ppc.c (ppc64_elf_process_dot_syms): Renamed from + ppc64_elf_check_directives. + * elf32-sh-symbian.c (sh_symbian_process_directives): Combine.. + (sh_symbian_check_directives): ..this + (bfd_elf32_sh_symbian_process_directives) ..and this function. + +2008-10-20 Alan Modra + + * elflink.c (bfd_elf_final_link): Move code reading relocs to.. + * elf32-spu.c (spu_elf_count_relocs): ..here. Adjust params. + * elf-bfd.h (struct elf_backend_data): Update elf_backend_count_relocs + params. + +2008-10-20 Alan Modra + + * elflink.c (bfd_elf_final_link): Use d_ptr rather than d_val + where Elf_Internal_Dyn holds an address. + 2008-10-10 Nathan Froyd * elf32-ppc.c (ppc_elf_merge_obj_attributes): Merge @@ -5,7 +25,8 @@ 2008-10-09 Kai Tietz - * cofflink.c (_bfd_coff_generic_relocate_section): Dump bfd_vma sized addresses instead of long sized. + * cofflink.c (_bfd_coff_generic_relocate_section): Dump bfd_vma + sized addresses instead of long sized. 2008-10-09 Alan Modra @@ -186,7 +207,7 @@ BFD_MACH_O_x86_EXCEPTION_STATE. (bfd_mach_o_load_command_type): Add BFD_MACH_O_LC_SEGMENT_64, BFD_MACH_O_LC_ROUTINES_64, - BFD_MACH_O_LC_UUID. + BFD_MACH_O_LC_UUID. (BFD_MACH_O_CPU_IS64BIT): Added. (bfd_mach_o_cpu_type): Add BFD_MACH_O_CPU_TYPE_POWERPC_64, BFD_MACH_O_CPU_TYPE_X86_64. @@ -218,7 +239,7 @@ (bfd_mach_o_scan_start_address): Ditto. (bfd_mach_o_scan): Ditto. (bfd_mach_o_lookup_section): Ditto. - + 2008-08-27 John David Anglin * elf-hppa.h (elf_hppa_reloc_final_type): Handle R_PARISC_GPREL64, diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 993458e..9615a4a 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1012,7 +1012,7 @@ struct elf_backend_data /* Count relocations. Not called for relocatable links or if all relocs are being preserved in the output. */ unsigned int (*elf_backend_count_relocs) - (asection *, Elf_Internal_Rela *); + (struct bfd_link_info *, asection *); /* This function, if defined, is called when an NT_PRSTATUS note is found in a core file. */ diff --git a/bfd/elf32-sh-symbian.c b/bfd/elf32-sh-symbian.c index cec0d03..25e3af9 100644 --- a/bfd/elf32-sh-symbian.c +++ b/bfd/elf32-sh-symbian.c @@ -392,10 +392,9 @@ sh_symbian_process_embedded_commands (struct bfd_link_info *info, bfd * abfd, /* Scan a bfd for a .directive section, and if found process it. Returns TRUE upon success, FALSE otherwise. */ -bfd_boolean bfd_elf32_sh_symbian_process_directives (struct bfd_link_info *info, bfd * abfd); -bfd_boolean -bfd_elf32_sh_symbian_process_directives (struct bfd_link_info *info, bfd * abfd) +static bfd_boolean +sh_symbian_process_directives (bfd *abfd, struct bfd_link_info *info) { bfd_boolean result = FALSE; bfd_byte * contents; @@ -617,18 +616,12 @@ sh_symbian_relocate_section (bfd * output_bfd, contents, relocs, local_syms, local_sections); } -static bfd_boolean -sh_symbian_check_directives (bfd *abfd, struct bfd_link_info *info) -{ - return bfd_elf32_sh_symbian_process_directives (info, abfd); -} - #define TARGET_LITTLE_SYM bfd_elf32_shl_symbian_vec #define TARGET_LITTLE_NAME "elf32-shl-symbian" #undef elf_backend_relocate_section #define elf_backend_relocate_section sh_symbian_relocate_section #undef elf_backend_check_directives -#define elf_backend_check_directives sh_symbian_check_directives +#define elf_backend_check_directives sh_symbian_process_directives #include "elf32-target.h" diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 00681b2..708ab24 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -3895,16 +3895,27 @@ spu_elf_final_link (bfd *output_bfd, struct bfd_link_info *info) that need to be emitted. */ static unsigned int -spu_elf_count_relocs (asection *sec, Elf_Internal_Rela *relocs) +spu_elf_count_relocs (struct bfd_link_info *info, asection *sec) { + Elf_Internal_Rela *relocs; unsigned int count = 0; - Elf_Internal_Rela *relend = relocs + sec->reloc_count; - for (; relocs < relend; relocs++) + relocs = _bfd_elf_link_read_relocs (sec->owner, sec, NULL, NULL, + info->keep_memory); + if (relocs != NULL) { - int r_type = ELF32_R_TYPE (relocs->r_info); - if (r_type == R_SPU_PPU32 || r_type == R_SPU_PPU64) - ++count; + Elf_Internal_Rela *rel; + Elf_Internal_Rela *relend = relocs + sec->reloc_count; + + for (rel = relocs; rel < relend; rel++) + { + int r_type = ELF32_R_TYPE (rel->r_info); + if (r_type == R_SPU_PPU32 || r_type == R_SPU_PPU64) + ++count; + } + + if (elf_section_data (sec)->relocs != relocs) + free (relocs); } return count; diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 523d137..9138371 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -92,7 +92,7 @@ static bfd_vma opd_entry_value #define elf_backend_create_dynamic_sections ppc64_elf_create_dynamic_sections #define elf_backend_copy_indirect_symbol ppc64_elf_copy_indirect_symbol #define elf_backend_add_symbol_hook ppc64_elf_add_symbol_hook -#define elf_backend_check_directives ppc64_elf_check_directives +#define elf_backend_check_directives ppc64_elf_process_dot_syms #define elf_backend_as_needed_cleanup ppc64_elf_as_needed_cleanup #define elf_backend_archive_symbol_lookup ppc64_elf_archive_symbol_lookup #define elf_backend_check_relocs ppc64_elf_check_relocs @@ -3620,7 +3620,7 @@ struct ppc_link_hash_table /* Set on error. */ unsigned int stub_error:1; - /* Temp used by ppc64_elf_check_directives. */ + /* Temp used by ppc64_elf_process_dot_syms. */ unsigned int twiddled_syms:1; /* Incremented every time we size stubs. */ @@ -4438,7 +4438,7 @@ add_symbol_adjust (struct ppc_link_hash_entry *eh, struct bfd_link_info *info) /* Process list of dot-symbols we made in link_hash_newfunc. */ static bfd_boolean -ppc64_elf_check_directives (bfd *ibfd, struct bfd_link_info *info) +ppc64_elf_process_dot_syms (bfd *ibfd, struct bfd_link_info *info) { struct ppc_link_hash_table *htab; struct ppc_link_hash_entry **p, *eh; diff --git a/bfd/elflink.c b/bfd/elflink.c index d2dc17d..f2015ee 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -10095,22 +10095,7 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info) if (info->relocatable || info->emitrelocations) reloc_count = sec->reloc_count; else if (bed->elf_backend_count_relocs) - { - Elf_Internal_Rela * relocs; - - relocs = _bfd_elf_link_read_relocs (sec->owner, sec, - NULL, NULL, - info->keep_memory); - - if (relocs != NULL) - { - reloc_count - = (*bed->elf_backend_count_relocs) (sec, relocs); - - if (elf_section_data (sec)->relocs != relocs) - free (relocs); - } - } + reloc_count = (*bed->elf_backend_count_relocs) (info, sec); if (sec->rawsize > max_contents_size) max_contents_size = sec->rawsize; @@ -10756,16 +10741,16 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info) && (h->root.type == bfd_link_hash_defined || h->root.type == bfd_link_hash_defweak)) { - dyn.d_un.d_val = h->root.u.def.value; + dyn.d_un.d_ptr = h->root.u.def.value; o = h->root.u.def.section; if (o->output_section != NULL) - dyn.d_un.d_val += (o->output_section->vma + dyn.d_un.d_ptr += (o->output_section->vma + o->output_offset); else { /* The symbol is imported from another shared library and does not apply to this one. */ - dyn.d_un.d_val = 0; + dyn.d_un.d_ptr = 0; } break; } @@ -10844,6 +10829,7 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info) else type = SHT_RELA; dyn.d_un.d_val = 0; + dyn.d_un.d_ptr = 0; for (i = 1; i < elf_numsections (abfd); i++) { Elf_Internal_Shdr *hdr; @@ -10856,9 +10842,9 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info) dyn.d_un.d_val += hdr->sh_size; else { - if (dyn.d_un.d_val == 0 - || hdr->sh_addr < dyn.d_un.d_val) - dyn.d_un.d_val = hdr->sh_addr; + if (dyn.d_un.d_ptr == 0 + || hdr->sh_addr < dyn.d_un.d_ptr) + dyn.d_un.d_ptr = hdr->sh_addr; } } } diff --git a/bfd/version.h b/bfd/version.h index 12e33dc..c6c5769 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20081015 +#define BFD_VERSION_DATE 20081021 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 965dd0b..3c11048 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,138 @@ +2008-10-20 Joel Brobecker + + * NEWS: Add entry mentioning thread-support on Tru64 + +2008-10-19 Joel Brobecker + + * dec-thread.c: New file. + * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o. + (NAT_CLIBS): Define. + +2008-10-19 Hui Zhu + + * infrun.c (handle_inferior_event): Set "stop_pc" when + TARGET_WAITKIND_NO_HISTORY. + +2008-10-19 Pedro Alves + + * python/python-value.c (value_object_methods) + (value_object_as_number, value_object_as_mapping): Move to bottom + of file. + (valpy_dealloc, valpy_new, valpy_length, valpy_getitem) + (valpy_setitem, valpy_str, valpy_add, valpy_subtract) + (valpy_multiply, valpy_divide, valpy_remainder, valpy_power) + (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero) + (valpy_richcompare, valpy_dereference): Don't forward-declare. + (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'. + +2008-10-18 Pedro Alves + + * infrun.c (adjust_pc_after_break): Do nothing if executing in + reverse. + +2008-10-17 Pedro Alves + + * infcmd.c (GO_USAGE): Delete. + (go_command): Adjust. + +2008-10-17 Michael Snyder + Target interface for reverse debugging. + * target.h (enum target_waitkind): + Add new wait event, TARGET_WAITKIND_NO_HISTORY. + (struct target_ops): New method to_can_execute_reverse. + (target_can_execute_reverse): New macro. + * target.c (update_current_target): Inherit to_can_execute_reverse. + + Remote interface for reverse debugging. + * remote.c (remote_can_execute_reverse): New target method. + (remote_resume): Check for reverse exec direction, and send + appropriate command to target. + (remote_wait_as): Check target response for NO_HISTORY status. + Also check for empty reply (target doesn't understand "bs" or "bc). + (remote_vcont_resume): Jump out if attempting reverse execution. + + Event handling interface for reverse debugging. + * infrun.c (execution_direction): New state variable. + (enum inferior_stop_reason): Add NO_HISTORY reason. + (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY. + Handle stepping over a function call in reverse. + Handle stepping thru a line range in reverse. + Handle setting a step-resume breakpoint in reverse. + Handle stepping into a function in reverse. + Handle stepping between line ranges in reverse. + (print_stop_reason): Print reason for NO_HISTORY. + (step_into_function): Rename to handle_step_into_function. + (handle_step_into_function_backward): New function. + (set_exec_direction_func, show_exec_direction_func): New funcs. + (proceed): No need to singlestep over a breakpoint + when resuming in reverse. + + * inferior.h (enum exec_direction_kind): New enum. + (execution_direction): Export new execution state variable. + + * breakpoint.c (make_breakpoint_silent): New function. + * breakpoint.h (make_breakpoint_silent): Export. + * infcmd.c (finish_command): Check for reverse exec direction. + (finish_backward): New function, handle finish cmd in reverse. + + User interface for reverse execution. + * Makefile.in (reverse.c): New file. + * reverse.c: New file. User interface for reverse execution. + +2008-10-17 Pedro Alves + + * remote.c (record_currthread): Add inferior before child threads. + (remote_threads_info): Check for exited threads. Mention + notification order. + +2008-10-16 Joel Brobecker + + * breakpoint.h (enum bptype): New enum bp_catchpoint. + Delete bp_catch_fork and bp_catch_vfork. + (struct breakpoint_ops): Add new methods "insert", "remove" + and "breakpoint_hit". + * breakpoint.c (create_fork_vfork_event_catchpoint) + (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove. + (insert_catchpoint): Remove handling of bp_catch_fork and + bp_catch_vfork catchpoints, and handle them as bp_catchpoint + catchpoints instead. + (insert_bp_location, update_breakpoints_after_exec) + (remove_breakpoint, bpstat_check_location, bpstat_what) + (allocate_bp_location): Likewise. + (print_it_typical, print_one_breakpoint_location, mention): Remove + handling of bp_catch_fork and bp_catch_vfork breakpoints. + (ep_is_catchpoint, user_settable_breakpoint) + (breakpoint_address_is_meaningful, adjust_breakpoint_address) + (breakpoint_re_set_one, disable_command, enable_command): + Remove use of bp_catch_fork and bp_catch_vfork. Add handling of + bp_catchpoint breakpoints. + (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork) + (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork): + New functions. + (catch_fork_breakpoint_ops): New static constant. + (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork) + (print_it_catch_vfork, print_one_catch_vfork) + (print_mention_catch_vfork): New functions. + (catch_vfork_breakpoint_ops): New static constant. + (create_catchpoint, create_fork_vfork_event_catchpoint): New functions. + (catch_fork_command_1): Use create_fork_vfork_event_catchpoint + to create the fork and vfork catchpoints. + (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields. + * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops + fields. + (catch_exception_unhandled_breakpoint_ops): Likewise. + (catch_assert_breakpoint_ops): Likewise. + +2008-10-16 Pedro Alves + + * remote.c (set_general_process): New. + (remote_check_symbols): Use it. + +2008-10-16 Pedro Alves + + * remote.c (push_remote_target): Delete. + * target.h (push_remote_target): Delete declaration. + 2008-10-15 Pedro Alves * remote.c (remote_close): Unregister remote_desc from the event diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 5b6c93d..fe569c3 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -271,10 +271,12 @@ SUBDIR_TUI_CFLAGS= \ # SUBDIR_PYTHON_OBS = \ python.o \ - python-utils.o + python-utils.o \ + python-value.o SUBDIR_PYTHON_SRCS = \ python/python.c \ - python/python-utils.c + python/python-utils.c \ + python/python-value.c SUBDIR_PYTHON_DEPS = SUBDIR_PYTHON_LDFLAGS= SUBDIR_PYTHON_CFLAGS= @@ -639,7 +641,7 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c \ objfiles.c osabi.c observer.c \ p-exp.y p-lang.c p-typeprint.c p-valprint.c parse.c printcmd.c \ prologue-value.c \ - regcache.c reggroups.c remote.c remote-fileio.c \ + regcache.c reggroups.c remote.c remote-fileio.c reverse.c \ scm-exp.c scm-lang.c scm-valprint.c \ sentinel-frame.c \ serial.c ser-base.c ser-unix.c \ @@ -778,7 +780,8 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \ findcmd.o \ std-regs.o \ signals.o \ - exec.o bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o \ + exec.o reverse.o \ + bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o \ dbxread.o coffread.o coff-pe-read.o \ dwarf2read.o mipsread.o stabsread.o corefile.o \ dwarf2expr.o dwarf2loc.o dwarf2-frame.o \ @@ -1836,6 +1839,10 @@ python-utils.o: $(srcdir)/python/python-utils.c $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-utils.c $(POSTCOMPILE) +python-value.o: $(srcdir)/python/python-value.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-value.c + $(POSTCOMPILE) + # # Dependency tracking. Most of this is conditional on GNU Make being # found by configure; if GNU Make is not found, we fall back to a diff --git a/gdb/NEWS b/gdb/NEWS index 46aa144..7c68728 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -57,6 +57,8 @@ with the --compress-debug-sections=zlib flag. * 64-bit core files are now supported on AIX. +* Thread switching is now supported on Tru64. + * Watchpoints can now be set on unreadable memory locations, e.g. addresses which will be allocated using malloc later in program execution. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 1575fdd..2e29770 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -10152,6 +10152,9 @@ print_mention_catch_exception (struct breakpoint *b) static struct breakpoint_ops catch_exception_breakpoint_ops = { + NULL, /* insert */ + NULL, /* remove */ + NULL, /* breakpoint_hit */ print_it_catch_exception, print_one_catch_exception, print_mention_catch_exception @@ -10178,6 +10181,9 @@ print_mention_catch_exception_unhandled (struct breakpoint *b) } static struct breakpoint_ops catch_exception_unhandled_breakpoint_ops = { + NULL, /* insert */ + NULL, /* remove */ + NULL, /* breakpoint_hit */ print_it_catch_exception_unhandled, print_one_catch_exception_unhandled, print_mention_catch_exception_unhandled @@ -10204,6 +10210,9 @@ print_mention_catch_assert (struct breakpoint *b) } static struct breakpoint_ops catch_assert_breakpoint_ops = { + NULL, /* insert */ + NULL, /* remove */ + NULL, /* breakpoint_hit */ print_it_catch_assert, print_one_catch_assert, print_mention_catch_assert diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 7f535df..180f6c9 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -159,10 +159,6 @@ static void awatch_command (char *, int); static void do_enable_breakpoint (struct breakpoint *, enum bpdisp); hooks/post-receive -- Repository for Project Archer.