public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-30 7:22 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-12-30 7:22 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via dd2092437258c4ea93d4626f094446eed31b2fa0 (commit)
via ccc006fa2e3f99f18fc981675e2124a64634c65b (commit)
via cfdd0f22e02ed3349a6ba484100156ca9436fa75 (commit)
via c2b861d978cd5d2d41ead897dc8669d2e8bdb5a5 (commit)
via 1833bef9a3daf82ccda876eb55e62de9f47ad72a (commit)
via 3bd4170d41c20a915e702c91a013bcd8b6c343ac (commit)
via 7bf2eec6bf4875d8839bae92fb4f5a46a2476112 (commit)
via 135e6c0c93c6b85a3c853bb88312a78461748934 (commit)
via f3f560efa72dbf7d998ac2d3339d9f932499a966 (commit)
via f49218632086d26e821608f592cfd2756a5a856a (commit)
via 237fdcbd30b5d8d69b6fb8bd2e4333541843f8f0 (commit)
via 4b88473c312f66c7fba0c1a5d862cd5f95b732c2 (commit)
via 9d758ee0ddc2d3cc10691b1979e8c2a25554b51d (commit)
via 3ac5473c86b28350a3471edf76200e9b941fe001 (commit)
via 8f41f9254af45f73b179428340772ab4cb041f27 (commit)
via 594f1abf68931a3926d32aeab0e8121457614957 (commit)
via 142b87ff1070383a6b305aacfb45f5fe5f6a856f (commit)
via 249d172966a109f18942d85b3d3bf38852863406 (commit)
via dd1d3f685b51c2996a9f81d89158cc06ed50ec0e (commit)
via dd0cd188954843a3405c4f6becb47b6276afac07 (commit)
via 4d4d40dc46626e349e4c8ccac3794e526f8d4612 (commit)
via 696c2599d17f385ce997ce9711c1a4be7c2c0584 (commit)
via 2421f8328fd57072c31072a5a376f1e934c8c1f5 (commit)
via ef12035dafeda230288f20e47c1a1c7d65c9651f (commit)
via 0fdc9737f7cf1d6da69cdd731ea78aa5402f1b5a (commit)
via 62076b60432e25f9f414ca734e116f883c3d146f (commit)
via be6ba34d61fb7d31ffaefca57296afb3f2fbe7b6 (commit)
via fff4f6bf192a13ae7a51975ef671ce3bcc05bdad (commit)
via 9b11df95a832b163b7bd3eda3bee78a6ba59e9ca (commit)
via 39253445ced57a004bfd93762902a4e60871fc87 (commit)
via f6e3e4d589b46291c571a819fd1eb3631b8a4274 (commit)
via f103bb118c9f8cce464b778388c3bd1d9d0615ca (commit)
via 13f344dfff7f596d52e65481e2db4e1d915ff917 (commit)
via 473fe3e0dc4c364de5c62715239d5b55304cd589 (commit)
via 9e7c4050db8d5fa0a86a11b71d181483f25f33d8 (commit)
via 0e05886d0828e0f086cb0f8248301d8701ab432c (commit)
via 91b729d4c616a548dd6a97c986fdeaa5b7e097c3 (commit)
via 898fbdcb470ec74c0d852363612414bc04ec009c (commit)
via dcb148e9b1642e3114f6c6014743a21d2058b87e (commit)
via 7e5c6c4bacd72235e90629b621fb739c3d28b82c (commit)
via b46f28bf4451f7e1f316d9fac2dc3f788c788ab7 (commit)
via 0614dc0b4188bd6397cf03ddb32f0ac53d765ebd (commit)
via 377dab5a129f7ededed443e441bf2c9aecaccfc6 (commit)
via 300821622f68beff676fdb6149e6d46c4fecf109 (commit)
via 2a903ae8229ef39bf1309274f00375739dc2481f (commit)
via 0121fd42cd1c571be146bc38d522a886234a8b2a (commit)
via af9feb7dcf3c00d6b4f2fefdf238ed3cded6218e (commit)
via 1bd4cc0b9742f0ce70f926815d431b22ced95d02 (commit)
via a816124ca363aaa209351e6fea5618bdc5ef5ce0 (commit)
from 2ce488949646b137d041e724458bd0f8ea1ebcf5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit dd2092437258c4ea93d4626f094446eed31b2fa0
Merge: 2ce4889 ccc006f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Dec 30 08:22:01 2010 +0100
Merge remote branch 'gdb/master'
commit ccc006fa2e3f99f18fc981675e2124a64634c65b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Dec 30 00:00:32 2010 +0000
*** empty log message ***
commit cfdd0f22e02ed3349a6ba484100156ca9436fa75
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Dec 29 23:00:05 2010 +0000
daily update
commit c2b861d978cd5d2d41ead897dc8669d2e8bdb5a5
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Dec 29 21:44:25 2010 +0000
2010-12-29 Michael Snyder <msnyder@vmware.com>
* bcache.c: Comment clean-up.
* block.c: Ditto.
* blockframe.c: Ditto.
* breakpoint.c: Ditto.
* bsd-kvm.c: Ditto.
* buildsym.c: Ditto.
commit 1833bef9a3daf82ccda876eb55e62de9f47ad72a
Author: Dave Anglin <dave.anglin@nrc.ca>
Date: Wed Dec 29 16:57:41 2010 +0000
Move ChangeLog entry.
commit 3bd4170d41c20a915e702c91a013bcd8b6c343ac
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Dec 29 16:15:40 2010 +0000
gdbserver: bfin: new port
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 7bf2eec6bf4875d8839bae92fb4f5a46a2476112
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Dec 29 16:11:44 2010 +0000
gdb: bfin: new port
Initial support for Blackfin processors. This supports the standard ABI.
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 135e6c0c93c6b85a3c853bb88312a78461748934
Author: Hui Zhu <teawater@gmail.com>
Date: Wed Dec 29 12:47:17 2010 +0000
2010-12-29 Hui Zhu <teawater@gmail.com>
* ax-gdb.c (gen_expr): Change error message.
commit f3f560efa72dbf7d998ac2d3339d9f932499a966
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Dec 29 10:18:48 2010 +0000
revert previous gdb.c commit (it was not a minor comment update)
gdb/ChangeLog:
* gdb.c: Revert the previous change, which was probably committed
by accident.
commit f49218632086d26e821608f592cfd2756a5a856a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Dec 29 08:15:24 2010 +0000
Fix typo in ada-lang.c comment.
gdb/ChangeLog:
* ada-lang.c: Fix typo in comment.
commit 237fdcbd30b5d8d69b6fb8bd2e4333541843f8f0
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Dec 29 08:02:58 2010 +0000
[Ada] print null array pointer as `0x0' rather than `(null)'
Trying to print a variable defined as an access to an unconstrained
array:
type String_Access is access String;
S1 : String_Access;
If that variable is null, then GDB prints its value in an odd way:
(gdb) print S1
$1 = (string_bug.string_access) (null)
^^^^^^
This patch changes the debugger behavior to print the pointer using
the same output we'd use for any null pointer:
(gdb) print S1
$1 = (string_bug.string_access) 0x0
It also adds an assert, helping us verify an assumption.
gdb/ChangeLog:
* ada-valprint.c (ada_val_print_1): Print null array pointers as
`0x0' rather than `(null)'. Add assertion.
gdb/testsuite/ChangeLog:
* gdb.ada/arrayptr/foo.adb: Add new local variable Null_String.
* gdb.ada/arrayptr.exp: Add test printing that new variable.
commit 4b88473c312f66c7fba0c1a5d862cd5f95b732c2
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Dec 29 08:01:28 2010 +0000
[Ada] do not print arrays as array pointers
This patch enhances the debugger to distinguish between fat pointers
that represent either: array types, or array access types. In the latter
case, the object/type is encoded as a typedef type pointing to the fat
pointer.
The first part of the change is to adjust ada_check_typedef to avoid
stripping the typedef layer when it points to a fat pointer. The rest
of the patch is adjustments required in various places to deal with
the fact that the type is uses might now be a typedef.
gdb/ChangeLog:
* ada-lang.h (ada_coerce_to_simple_array): Add declaration.
* ada-lang.c (ada_typedef_target_type): New function.
(desc_base_type): Add handling of fat pointer typedefs.
(ada_coerce_to_simple_array): Make non-static.
(decode_packed_array_bitsize): Add handling of fat pointer typedefs.
Add assertion.
(ada_template_to_fixed_record_type_1, ada_to_fixed_type)
(ada_check_typedef): Add handling of fat pointer typedefs.
(ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
* ada-typeprint.c (ada_print_type): Add handling of fat pointer
typedefs.
* ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
array accesses to simple arrays rather than simple array pointers.
(ada_value_print): In the case of array descriptors, do not print
the value type description unless it is an array access.
gdb/testsuite/ChangeLog:
* gdb.ada/lang_switch.exp: Correct expected parameter value.
gdb/doc/ChangeLog:
* gdb.texinfo (Ada Glitches): Remove paragraph describing the
occasional case where the debugger prints an array address
instead of the array itself.
commit 9d758ee0ddc2d3cc10691b1979e8c2a25554b51d
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Dec 29 02:52:23 2010 +0000
Add documentation for TARGET_OBJECT_OSDATA
gdb/ChangeLog:
* target.h (enum target_object): Expand the documentation of
TARGET_OBJECT_OSDATA a bit.
commit 3ac5473c86b28350a3471edf76200e9b941fe001
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Dec 29 02:51:40 2010 +0000
sim: HW_NALLOC: new alloc helper
We have malloc (uninitialized buffer), zalloc (zeroed buffer), and
nzalloc (zeroed array). But we don't have a way to allocate an
uninitialized array. Add a HW_NALLOC to fill this gap.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 8f41f9254af45f73b179428340772ab4cb041f27
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Dec 29 02:50:35 2010 +0000
sim: HW_NZALLOC: fix arg handling
The HW_NZALLOC macro has all caps args for some reason (unlike the other
alloc helpers), and ends up not using the "ME" argument since its copy
and paste source uses "me". Make all the args lowercase to match the
style of all the other args and make it use the correct "me".
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 594f1abf68931a3926d32aeab0e8121457614957
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Dec 29 02:11:03 2010 +0000
2010-12-28 Michael Snyder <msnyder@vmware.com>
* command.h: Comment clean-up.
* cli/cli-cmds.c: Ditto.
* cli/cli-cmds.h: Ditto.
* cli/cli-decode.c: Ditto.
* cli/cli-decode.h: Ditto.
* cli/cli-dump.c: Ditto.
* cli/cli-interp.c: Ditto.
* cli/cli-logging.c: Ditto.
* cli/cli-script.c: Ditto.
* cli/cli-setshow.c: Ditto.
* cli/cli-setshow.h: Ditto.
commit 142b87ff1070383a6b305aacfb45f5fe5f6a856f
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Dec 29 00:58:11 2010 +0000
2010-12-28 Michael Snyder <msnyder@vmware.com>
* event-loop.c: Comment clean-up.
* event-loop.h: Ditto.
* event-top.c: Ditto.
* gdb.c: Ditto.
* gdb.h: Ditto.
* main.c: Ditto.
* top.c: Ditto.
* top.h: Ditto.
commit 249d172966a109f18942d85b3d3bf38852863406
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Dec 29 00:00:03 2010 +0000
*** empty log message ***
commit dd1d3f685b51c2996a9f81d89158cc06ed50ec0e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Dec 28 23:00:05 2010 +0000
daily update
commit dd0cd188954843a3405c4f6becb47b6276afac07
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Dec 28 17:59:57 2010 +0000
* ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
collect a user register.
commit 4d4d40dc46626e349e4c8ccac3794e526f8d4612
Author: Hui Zhu <teawater@gmail.com>
Date: Tue Dec 28 16:00:07 2010 +0000
2010-12-28 Hui Zhu <teawater@gmail.com>
* gdbarch.sh (ax_pseudo_register_collect,
ax_pseudo_register_push_stack): new callbacks.
(agent_expr): Forward declare.
* gdbarch.h, gdbarch.c: Regenerate.
* ax-gdb.c (gen_expr): Remove pseudo-register check code.
* ax-general.c (user-regs.h): New include.
(ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
(ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
* mips-tdep.c (ax.h): New include.
(mips_ax_pseudo_register_collect,
mips_ax_pseudo_register_push_stack): New functions.
(mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
mips_ax_pseudo_register_push_stack.
commit 696c2599d17f385ce997ce9711c1a4be7c2c0584
Author: qiyao <qiyao>
Date: Tue Dec 28 13:26:45 2010 +0000
2010-12-28 Yao Qi <yao@codesourcery.com>
* arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
commit 2421f8328fd57072c31072a5a376f1e934c8c1f5
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Dec 28 11:40:26 2010 +0000
remove target_acknowledge_created_inferior
This target_ops routine appears to be unused in practice, so this patch
removes it.
gdb/ChangeLog:
* inf-child.c (inf_child_acknowledge_created_inferior): Delete.
(inf_child_target): Do not set t->to_acknowledge_created_inferior.
* inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
target_acknowledge_created_inferior.
* inf-ttrace.c (inf_ttrace_him): Likewise.
* target.h (struct target_ops): Delete to_acknowledge_created_inferior
field.
(target_acknowledge_created_inferior): Delete.
* target.c (update_current_target): Remove setting of
to_acknowledge_created_inferior field. Do default value for that
field either.
(debug_to_acknowledge_created_inferior): Delete.
(setup_target_debug): Remove setting of
current_target.to_acknowledge_created_inferior.
commit ef12035dafeda230288f20e47c1a1c7d65c9651f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Dec 28 00:00:33 2010 +0000
*** empty log message ***
commit 0fdc9737f7cf1d6da69cdd731ea78aa5402f1b5a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Dec 27 23:00:05 2010 +0000
daily update
commit 62076b60432e25f9f414ca734e116f883c3d146f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Dec 27 19:37:03 2010 +0000
gdb/
* breakpoint.c (breakpoint_restore_shadows): When looking for the
location with the lowest address that overlaps the memory range we
want to restore shadows for, account for multiple locations at the
same address.
commit be6ba34d61fb7d31ffaefca57296afb3f2fbe7b6
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Mon Dec 27 13:49:44 2010 +0000
Code cleanup - renaming.
* breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
`**bp_location' helper variables, b_tmp for `*breakpoint' helper
variables.
commit fff4f6bf192a13ae7a51975ef671ce3bcc05bdad
Author: Hui Zhu <teawater@gmail.com>
Date: Mon Dec 27 08:17:31 2010 +0000
2010-12-27 Kevin Buettner <kevinb@redhat.com>
Hui Zhu <teawater@gmail.com>
* mips-tedp.c (mips_register_name): Add comments.
commit 9b11df95a832b163b7bd3eda3bee78a6ba59e9ca
Author: Dave Anglin <dave.anglin@nrc.ca>
Date: Mon Dec 27 02:05:13 2010 +0000
PR gas/11395
* config/tc-hppa.c (pa_ip): Set doubleword carry/borrow bit when a
doubleword completer or doubleword condition is found in an add/sub
instruction. Reject match for 'A'/'S' only if there is no condition
and d bit is not set.
* gas/hppa/basic/add2.s: Add test for a simple doubleword carry
instruction.
* gas/hppa/basic/sub2.s: Add tests for simple word and doubleword
borrow instructions.
* gas/hppa/basic/basic.exp: Update regexps for above.
* opcode/hppa.h: Clear "d" bit in "add" and "sub" patterns.
commit 39253445ced57a004bfd93762902a4e60871fc87
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Dec 27 00:00:33 2010 +0000
*** empty log message ***
commit f6e3e4d589b46291c571a819fd1eb3631b8a4274
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Dec 26 23:00:06 2010 +0000
daily update
commit f103bb118c9f8cce464b778388c3bd1d9d0615ca
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Dec 26 00:00:02 2010 +0000
*** empty log message ***
commit 13f344dfff7f596d52e65481e2db4e1d915ff917
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Dec 25 23:00:17 2010 +0000
daily update
commit 473fe3e0dc4c364de5c62715239d5b55304cd589
Author: Andreas Schwab <schwab@suse.de>
Date: Sat Dec 25 19:22:39 2010 +0000
* gdb.threads/tls.exp: Fix typo.
commit 9e7c4050db8d5fa0a86a11b71d181483f25f33d8
Author: Andreas Schwab <schwab@suse.de>
Date: Sat Dec 25 17:54:00 2010 +0000
* gdb.threads/thread-specific.exp (get_thread_list): Update.
* gdb.threads/execl.exp: Update.
commit 0e05886d0828e0f086cb0f8248301d8701ab432c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Dec 25 00:00:33 2010 +0000
*** empty log message ***
commit 91b729d4c616a548dd6a97c986fdeaa5b7e097c3
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Dec 24 23:00:05 2010 +0000
daily update
commit 898fbdcb470ec74c0d852363612414bc04ec009c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Dec 24 10:40:18 2010 +0000
* compress.c (decompress_contents): Style.
(bfd_get_full_section_contents): Do not decompress directly into
caller buffer or directly return cached section contents.
Check malloc return for compressed_buffer.
commit dcb148e9b1642e3114f6c6014743a21d2058b87e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Dec 24 00:00:33 2010 +0000
*** empty log message ***
commit 7e5c6c4bacd72235e90629b621fb739c3d28b82c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Dec 23 23:00:05 2010 +0000
daily update
commit b46f28bf4451f7e1f316d9fac2dc3f788c788ab7
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Dec 23 21:15:25 2010 +0000
sim: start a gitignore
commit 0614dc0b4188bd6397cf03ddb32f0ac53d765ebd
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Dec 23 21:13:24 2010 +0000
gdbserver: start a gitignore
commit 377dab5a129f7ededed443e441bf2c9aecaccfc6
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Dec 23 20:29:17 2010 +0000
gdb/doc/
* gdb.texinfo (Packets) <read registers packet>: Document support
for registers that were not collected.
commit 300821622f68beff676fdb6149e6d46c4fecf109
Author: qiyao <qiyao>
Date: Thu Dec 23 15:10:24 2010 +0000
2010-12-23 Yao Qi <yao@codesourcery.com>
* gdb.arch/arm-disp-step.exp: New.
* gdb.arch/arm-disp-step.S: New.
commit 2a903ae8229ef39bf1309274f00375739dc2481f
Author: qiyao <qiyao>
Date: Thu Dec 23 14:38:33 2010 +0000
2010-12-23 Yao Qi <yao@codesourcery.com>
* arm-tdep.c (thumb_analyze_prologue): Move some code ...
(EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
(EXTRACT_MOVW_MOVT_IMM_A): New macro.
(arm_analyze_load_stack_chk_guard): New.
(arm_skip_stack_protector): New.
(arm_skip_prologue): Adjust post_prologue_pc by
arm_skip_stack_protector.
commit 0121fd42cd1c571be146bc38d522a886234a8b2a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Dec 23 04:30:38 2010 +0000
Add missing _() marker in error message.
gdb/ChangeLog:
* mi/mi-main.c (mi_cmd_remove_inferior): Use _() marker for error
message. Change spelling of "can not" into "cannot".
commit af9feb7dcf3c00d6b4f2fefdf238ed3cded6218e
Author: qiyao <qiyao>
Date: Thu Dec 23 03:20:08 2010 +0000
2010-12-23 Yao Qi <yao@codesourcery.com>
* arm-tdep.c (arm_gdbarch_init): Remove invoke to
set_gdbarch_deprecated_fp_regnum.
commit 1bd4cc0b9742f0ce70f926815d431b22ced95d02
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Dec 23 00:00:33 2010 +0000
*** empty log message ***
commit a816124ca363aaa209351e6fea5618bdc5ef5ce0
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Dec 22 23:00:06 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 7 +
bfd/compress.c | 127 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 170 +++
gdb/Makefile.in | 4 +-
gdb/NEWS | 6 +
gdb/ada-lang.c | 79 ++-
gdb/ada-lang.h | 2 +
gdb/ada-typeprint.c | 1 +
gdb/ada-valprint.c | 20 +-
gdb/arm-tdep.c | 217 +++-
gdb/ax-gdb.c | 8 +-
gdb/ax-general.c | 77 +-
gdb/bcache.c | 28 +-
gdb/bfin-linux-tdep.c | 175 +++
gdb/bfin-tdep.c | 862 +++++++++++++
gdb/bfin-tdep.h | 102 ++
gdb/block.c | 2 +-
gdb/blockframe.c | 25 +-
gdb/breakpoint.c | 1716 +++++++++++++------------
gdb/bsd-kvm.c | 2 +-
gdb/buildsym.c | 108 +-
gdb/cli/cli-cmds.c | 122 +-
gdb/cli/cli-cmds.h | 20 +-
gdb/cli/cli-decode.c | 182 ++--
gdb/cli/cli-decode.h | 39 +-
gdb/cli/cli-dump.c | 32 +-
gdb/cli/cli-interp.c | 22 +-
gdb/cli/cli-logging.c | 20 +-
gdb/cli/cli-script.c | 113 +-
gdb/cli/cli-setshow.c | 20 +-
gdb/cli/cli-setshow.h | 8 +-
gdb/command.h | 8 +-
gdb/configure.tgt | 10 +
gdb/doc/ChangeLog | 11 +
gdb/doc/gdb.texinfo | 22 +-
gdb/event-loop.c | 328 +++---
gdb/event-loop.h | 34 +-
gdb/event-top.c | 297 +++---
gdb/gdb.h | 18 +-
gdb/gdbarch.c | 66 +
gdb/gdbarch.h | 20 +
gdb/gdbarch.sh | 10 +
gdb/gdbserver/.gitignore | 4 +
gdb/gdbserver/ChangeLog | 15 +
gdb/gdbserver/Makefile.in | 10 +-
gdb/gdbserver/README | 2 +
gdb/gdbserver/configure.srv | 5 +
gdb/gdbserver/linux-bfin-low.c | 107 ++
gdb/gdbserver/linux-low.c | 4 +
gdb/inf-child.c | 8 -
gdb/inf-ptrace.c | 7 -
gdb/inf-ttrace.c | 7 -
gdb/main.c | 92 +-
gdb/mi/mi-main.c | 2 +-
gdb/mips-tdep.c | 59 +-
gdb/regformats/reg-bfin.dat | 56 +
gdb/syscalls/bfin-linux.xml | 326 +++++
gdb/target.c | 14 -
gdb/target.h | 10 +-
gdb/testsuite/ChangeLog | 21 +
gdb/testsuite/gdb.ada/arrayptr.exp | 1 +
gdb/testsuite/gdb.ada/arrayptr/foo.adb | 2 +
gdb/testsuite/gdb.ada/lang_switch.exp | 2 +-
gdb/testsuite/gdb.arch/arm-disp-step.S | 120 ++
gdb/testsuite/gdb.arch/arm-disp-step.exp | 172 +++
gdb/testsuite/gdb.threads/execl.exp | 4 +-
gdb/testsuite/gdb.threads/thread-specific.exp | 7 +-
gdb/testsuite/gdb.threads/tls.exp | 2 +-
gdb/top.c | 157 ++--
gdb/top.h | 10 +-
gdb/version.in | 2 +-
include/opcode/ChangeLog | 5 +
include/opcode/hppa.h | 10 +-
sim/.gitignore | 7 +
sim/ChangeLog | 4 +
sim/common/ChangeLog | 8 +
sim/common/hw-alloc.h | 3 +-
78 files changed, 4597 insertions(+), 1810 deletions(-)
create mode 100644 gdb/bfin-linux-tdep.c
create mode 100644 gdb/bfin-tdep.c
create mode 100644 gdb/bfin-tdep.h
create mode 100644 gdb/gdbserver/.gitignore
create mode 100644 gdb/gdbserver/linux-bfin-low.c
create mode 100644 gdb/regformats/reg-bfin.dat
create mode 100644 gdb/syscalls/bfin-linux.xml
create mode 100644 gdb/testsuite/gdb.arch/arm-disp-step.S
create mode 100644 gdb/testsuite/gdb.arch/arm-disp-step.exp
create mode 100644 sim/.gitignore
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7b8ca30..bf39613 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-24 Alan Modra <amodra@gmail.com>
+
+ * compress.c (decompress_contents): Style.
+ (bfd_get_full_section_contents): Do not decompress directly into
+ caller buffer or directly return cached section contents.
+ Check malloc return for compressed_buffer.
+
2010-12-21 Kai Tietz <kai.tietz@onevision.com>
* peXXigen.c (_bfd_XXi_final_link_postscript): Use
diff --git a/bfd/compress.c b/bfd/compress.c
index bdaa3c4..a526ea9 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -59,7 +59,7 @@ decompress_contents (bfd_byte *compressed_buffer,
rc = inflateReset (&strm);
}
rc = inflateEnd (&strm);
- return rc != Z_OK || strm.avail_out != 0 ? FALSE: TRUE;
+ return rc == Z_OK && strm.avail_out == 0;
}
#endif
@@ -157,8 +157,8 @@ bfd_get_full_section_contents (bfd *abfd, sec_ptr sec, bfd_byte **ptr)
{
bfd_size_type sz = sec->rawsize ? sec->rawsize : sec->size;
bfd_byte *p = *ptr;
- bfd_boolean need_free, ret;
#ifdef HAVE_ZLIB_H
+ bfd_boolean ret;
bfd_size_type compressed_size;
bfd_size_type uncompressed_size;
bfd_size_type rawsize;
@@ -177,88 +177,77 @@ bfd_get_full_section_contents (bfd *abfd, sec_ptr sec, bfd_byte **ptr)
p = (bfd_byte *) bfd_malloc (sz);
if (p == NULL)
return FALSE;
- need_free = TRUE;
- *ptr = p;
}
- else
- need_free = FALSE;
- ret = bfd_get_section_contents (abfd, sec, p, 0, sz);
- if (!ret && need_free)
- free (p);
- return ret;
-
- case COMPRESS_SECTION_DONE:
- if (p)
- memcpy (p, sec->contents, sz);
- else
- *ptr = sec->contents;
+ if (!bfd_get_section_contents (abfd, sec, p, 0, sz))
+ {
+ if (*ptr != p)
+ free (p);
+ return FALSE;
+ }
+ *ptr = p;
return TRUE;
case DECOMPRESS_SECTION_SIZED:
- break;
-
- default:
- abort ();
- }
-
#ifndef HAVE_ZLIB_H
- bfd_set_error (bfd_error_invalid_operation);
- return FALSE;
+ bfd_set_error (bfd_error_invalid_operation);
+ return FALSE;
#else
- /* Read in the full compressed section contents. */
- uncompressed_size = sec->size;
- compressed_size = sec->compressed_size;
- compressed_buffer = (bfd_byte *) bfd_malloc (compressed_size);
- rawsize = sec->rawsize;
- /* Clear rawsize, set size to compressed size and set compress_status
- to COMPRESS_SECTION_NONE. If the compressed size is bigger than
- the uncompressed size, bfd_get_section_contents will fail. */
- sec->rawsize = 0;
- sec->size = compressed_size;
- sec->compress_status = COMPRESS_SECTION_NONE;
- ret = bfd_get_section_contents (abfd, sec, compressed_buffer,
- 0, compressed_size);
- /* Restore rawsize and size. */
- sec->rawsize = rawsize;
- sec->size = uncompressed_size;
- if (!ret)
- {
-fail_compressed:
+ /* Read in the full compressed section contents. */
+ uncompressed_size = sec->size;
+ compressed_size = sec->compressed_size;
+ compressed_buffer = (bfd_byte *) bfd_malloc (compressed_size);
+ if (compressed_buffer == NULL)
+ return FALSE;
+ rawsize = sec->rawsize;
+ /* Clear rawsize, set size to compressed size and set compress_status
+ to COMPRESS_SECTION_NONE. If the compressed size is bigger than
+ the uncompressed size, bfd_get_section_contents will fail. */
+ sec->rawsize = 0;
+ sec->size = compressed_size;
+ sec->compress_status = COMPRESS_SECTION_NONE;
+ ret = bfd_get_section_contents (abfd, sec, compressed_buffer,
+ 0, compressed_size);
+ /* Restore rawsize and size. */
+ sec->rawsize = rawsize;
+ sec->size = uncompressed_size;
sec->compress_status = DECOMPRESS_SECTION_SIZED;
- free (compressed_buffer);
- return ret;
- }
+ if (!ret)
+ goto fail_compressed;
- /* Decompress to caller buffer directly if it is provided. */
- if (p)
- uncompressed_buffer = p;
- else
- {
uncompressed_buffer = (bfd_byte *) bfd_malloc (uncompressed_size);
if (uncompressed_buffer == NULL)
goto fail_compressed;
- }
- if (!decompress_contents (compressed_buffer, compressed_size,
- uncompressed_buffer, uncompressed_size))
- {
- sec->compress_status = DECOMPRESS_SECTION_SIZED;
- free (compressed_buffer);
- if (p == NULL)
- free (uncompressed_buffer);
- bfd_set_error (bfd_error_bad_value);
- return FALSE;
- }
+ if (!decompress_contents (compressed_buffer, compressed_size,
+ uncompressed_buffer, uncompressed_size))
+ {
+ bfd_set_error (bfd_error_bad_value);
+ free (uncompressed_buffer);
+ fail_compressed:
+ free (compressed_buffer);
+ return FALSE;
+ }
- free (compressed_buffer);
- if (p == NULL)
- *ptr = uncompressed_buffer;
+ free (compressed_buffer);
+ sec->contents = uncompressed_buffer;
+ sec->compress_status = COMPRESS_SECTION_DONE;
+ /* Fall thru */
+#endif
- sec->contents = uncompressed_buffer;
- sec->compress_status = COMPRESS_SECTION_DONE;
+ case COMPRESS_SECTION_DONE:
+ if (p == NULL)
+ {
+ p = (bfd_byte *) bfd_malloc (sz);
+ if (p == NULL)
+ return FALSE;
+ *ptr = p;
+ }
+ memcpy (p, sec->contents, sz);
+ return TRUE;
- return TRUE;
-#endif
+ default:
+ abort ();
+ }
}
/*
diff --git a/bfd/version.h b/bfd/version.h
index 68216b4..91b8036 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101222
+#define BFD_VERSION_DATE 20101230
#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 bf9f525..f7baa88 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,173 @@
+2010-12-29 Michael Snyder <msnyder@vmware.com>
+
+ * bcache.c: Comment clean-up.
+ * block.c: Ditto.
+ * blockframe.c: Ditto.
+ * breakpoint.c: Ditto.
+ * bsd-kvm.c: Ditto.
+ * buildsym.c: Ditto.
+
+2010-12-29 Jie Zhang <jie.zhang@analog.com>
+
+ * configure.tgt (bfin-*-*): Set build_gdbserver to yes.
+ * NEWS: Mention new Blackfin support.
+ * regformats/reg-bfin.dat: New file.
+
+2010-12-29 Jie Zhang <jie.zhang@analog.com>
+ Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (ALLDEPFILES): Add bfin-linux-tdep.c and bfin-tdep.c.
+ (HFILES_NO_SRCDIR): Add bfin-tdep.h.
+ (ALL_TARGET_OBS): Add bfin-linux-tdep.o and bfin-tdep.o.
+ * NEWS: Mention new Blackfin port.
+ * bfin-tdep.c, bfin-tdep.h, bfin-linux-tdep.c,
+ syscalls/bfin-linux.xml: New files.
+ * configure.tgt (bfin-*-*): Handle bfin targets.
+
+2010-12-29 Hui Zhu <teawater@gmail.com>
+
+ * ax-gdb.c (gen_expr): Change error message.
+
+2010-12-29 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.c: Revert the previous change, which was probably committed
+ by accident.
+
+2010-12-29 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c: Fix typo in comment.
+
+2010-12-29 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-valprint.c (ada_val_print_1): Print null array pointers as
+ `0x0' rather than `(null)'. Add assertion.
+
+2010-12-29 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
+ * ada-lang.c (ada_typedef_target_type): New function.
+ (desc_base_type): Add handling of fat pointer typedefs.
+ (ada_coerce_to_simple_array): Make non-static.
+ (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
+ Add assertion.
+ (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
+ (ada_check_typedef): Add handling of fat pointer typedefs.
+ (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
+ * ada-typeprint.c (ada_print_type): Add handling of fat pointer
+ typedefs.
+ * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
+ array accesses to simple arrays rather than simple array pointers.
+ (ada_value_print): In the case of array descriptors, do not print
+ the value type description unless it is an array access.
+
+2010-12-29 Joel Brobecker <brobecker@adacore.com>
+
+ * target.h (enum target_object): Expand the documentation of
+ TARGET_OBJECT_OSDATA a bit.
+
+2010-12-28 Michael Snyder <msnyder@vmware.com>
+
+ * command.h: Comment clean-up.
+ * cli/cli-cmds.c: Ditto.
+ * cli/cli-cmds.h: Ditto.
+ * cli/cli-decode.c: Ditto.
+ * cli/cli-decode.h: Ditto.
+ * cli/cli-dump.c: Ditto.
+ * cli/cli-interp.c: Ditto.
+ * cli/cli-logging.c: Ditto.
+ * cli/cli-script.c: Ditto.
+ * cli/cli-setshow.c: Ditto.
+ * cli/cli-setshow.h: Ditto.
+
+2010-12-28 Michael Snyder <msnyder@vmware.com>
+
+ * event-loop.c: Comment clean-up.
+ * event-loop.h: Ditto.
+ * event-top.c: Ditto.
+ * gdb.c: Ditto.
+ * gdb.h: Ditto.
+ * main.c: Ditto.
+ * top.c: Ditto.
+ * top.h: Ditto.
+
+2010-12-28 Pedro Alves <pedro@codesourcery.com>
+
+ * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
+ collect a user register.
+
+2010-12-28 Hui Zhu <teawater@gmail.com>
+
+ * gdbarch.sh (ax_pseudo_register_collect,
+ ax_pseudo_register_push_stack): new callbacks.
+ (agent_expr): Forward declare.
+ * gdbarch.h, gdbarch.c: Regenerate.
+ * ax-gdb.c (gen_expr): Remove pseudo-register check code.
+ * ax-general.c (user-regs.h): New include.
+ (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
+ (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
+ * mips-tdep.c (ax.h): New include.
+ (mips_ax_pseudo_register_collect,
+ mips_ax_pseudo_register_push_stack): New functions.
+ (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
+ mips_ax_pseudo_register_push_stack.
+
+2010-12-28 Yao Qi <yao@codesourcery.com>
+
+ * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
+
+2010-12-28 Joel Brobecker <brobecker@adacore.com>
+
+ * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
+ (inf_child_target): Do not set t->to_acknowledge_created_inferior.
+ * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
+ target_acknowledge_created_inferior.
+ * inf-ttrace.c (inf_ttrace_him): Likewise.
+ * target.h (struct target_ops): Delete to_acknowledge_created_inferior
+ field.
+ (target_acknowledge_created_inferior): Delete.
+ * target.c (update_current_target): Remove setting of
+ to_acknowledge_created_inferior field. Do default value for that
+ field either.
+ (debug_to_acknowledge_created_inferior): Delete.
+ (setup_target_debug): Remove setting of
+ current_target.to_acknowledge_created_inferior.
+
+2010-12-27 Pedro Alves <pedro@codesourcery.com>
+
+ gdb/
+ * breakpoint.c (breakpoint_restore_shadows): When looking for the
+ location with the lowest address that overlaps the memory range we
+ want to restore shadows for, account for multiple locations at the
+ same address.
+
+2010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup - renaming.
+ * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
+ `**bp_location' helper variables, b_tmp for `*breakpoint' helper
+ variables.
+
+2010-12-27 Kevin Buettner <kevinb@redhat.com>
+ Hui Zhu <teawater@gmail.com>
+
+ * mips-tedp.c (mips_register_name): Add comments.
+
+2010-12-23 Yao Qi <yao@codesourcery.com>
+
+ * arm-tdep.c (thumb_analyze_prologue): Move some code ...
+ (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
+ (EXTRACT_MOVW_MOVT_IMM_A): New macro.
+ (arm_analyze_load_stack_chk_guard): New.
+ (arm_skip_stack_protector): New.
+ (arm_skip_prologue): Adjust post_prologue_pc by
+ arm_skip_stack_protector.
+
+
+2010-12-23 Yao Qi <yao@codesourcery.com>
+
+ * arm-tdep.c (arm_gdbarch_init): Remove invoke to
+ set_gdbarch_deprecated_fp_regnum.
+
2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
* inferior.c (remove_inferior_command): Don't remove an active inferior.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index ff10039..e0f6636 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -508,6 +508,7 @@ ALL_TARGET_OBS = \
armnbsd-tdep.o armobsd-tdep.o \
arm-tdep.o arm-wince-tdep.o \
avr-tdep.o \
+ bfin-linux-tdep.o bfin-tdep.o \
cris-tdep.o \
dicos-tdep.o \
frv-linux-tdep.o frv-tdep.o \
@@ -782,7 +783,7 @@ annotate.h sim-regno.h dictionary.h dfp.h main.h frame-unwind.h \
remote-fileio.h i386-linux-tdep.h vax-tdep.h objc-lang.h \
sentinel-frame.h bcache.h symfile.h windows-tdep.h linux-tdep.h \
gdb_usleep.h jit.h xml-syscall.h ada-operator.inc microblaze-tdep.h \
-psymtab.h psympriv.h progspace.h
+psymtab.h psympriv.h progspace.h bfin-tdep.h
# Header files that already have srcdir in them, or which are in objdir.
@@ -1420,6 +1421,7 @@ ALLDEPFILES = \
arm-linux-nat.c arm-linux-tdep.c arm-symbian-tdep.c arm-tdep.c \
armnbsd-nat.c armbsd-tdep.c armnbsd-tdep.c armobsd-tdep.c \
avr-tdep.c \
+ bfin-linux-tdep.c bfin-tdep.c \
bsd-uthread.c bsd-kvm.c \
core-regset.c corelow.c \
dcache.c dicos-tdep.c darwin-nat.c \
diff --git a/gdb/NEWS b/gdb/NEWS
index 91f1835..7c2b494 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -111,6 +111,12 @@
** GDBserver is now supported on PowerPC LynxOS (versions 4.x and 5.x),
and i686 LynxOS (version 5.x).
+ ** GDBserver is now supported on Blackfin Linux.
+
+* New targets:
+
+Analog Devices, Inc. Blackfin Processor bfin-*
+
* Ada task switching is now supported on sparc-elf targets when
debugging a program using the Ravenscar Profile. For more information,
see the "Tasking Support when using the Ravenscar Profile" section
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 7ea01c7..3efff2e 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -228,8 +228,6 @@ static int ada_resolve_function (struct ada_symbol_info *, int,
struct value **, int, const char *,
struct type *);
-static struct value *ada_coerce_to_simple_array (struct value *);
-
static int ada_is_direct_array_type (struct type *);
static void ada_language_arch_info (struct gdbarch *,
@@ -366,6 +364,41 @@ ada_inferior_exit (struct inferior *inf)
/* Utilities */
+/* If TYPE is a TYPE_CODE_TYPEDEF type, return the target type after
+ all typedef layers have been peeled. Otherwise, return TYPE.
+
+ Normally, we really expect a typedef type to only have 1 typedef layer.
+ In other words, we really expect the target type of a typedef type to be
+ a non-typedef type. This is particularly true for Ada units, because
+ the language does not have a typedef vs not-typedef distinction.
+ In that respect, the Ada compiler has been trying to eliminate as many
+ typedef definitions in the debugging information, since they generally
+ do not bring any extra information (we still use typedef under certain
+ circumstances related mostly to the GNAT encoding).
+
+ Unfortunately, we have seen situations where the debugging information
+ generated by the compiler leads to such multiple typedef layers. For
+ instance, consider the following example with stabs:
+
+ .stabs "pck__float_array___XUP:Tt(0,46)=s16P_ARRAY:(0,47)=[...]"[...]
+ .stabs "pck__float_array___XUP:t(0,36)=(0,46)",128,0,6,0
+
+ This is an error in the debugging information which causes type
+ pck__float_array___XUP to be defined twice, and the second time,
+ it is defined as a typedef of a typedef.
+
+ This is on the fringe of legality as far as debugging information is
+ concerned, and certainly unexpected. But it is easy to handle these
+ situations correctly, so we can afford to be lenient in this case. */
+
+static struct type *
+ada_typedef_target_type (struct type *type)
+{
+ while (TYPE_CODE (type) == TYPE_CODE_TYPEDEF)
+ type = TYPE_TARGET_TYPE (type);
+ return type;
+}
+
/* Given DECODED_NAME a string holding a symbol name in its
decoded form (ie using the Ada dotted notation), returns
its unqualified name. */
@@ -1354,6 +1387,9 @@ desc_base_type (struct type *type)
if (type == NULL)
return NULL;
type = ada_check_typedef (type);
+ if (TYPE_CODE (type) == TYPE_CODE_TYPEDEF)
+ type = ada_typedef_target_type (type);
+
if (type != NULL
&& (TYPE_CODE (type) == TYPE_CODE_PTR
|| TYPE_CODE (type) == TYPE_CODE_REF))
@@ -1819,7 +1855,7 @@ ada_coerce_to_simple_array_ptr (struct value *arr)
Otherwise, returns a standard GDB array describing ARR (which may
be ARR itself if it already is in the proper form). */
-static struct value *
+struct value *
ada_coerce_to_simple_array (struct value *arr)
{
if (ada_is_array_descriptor_type (value_type (arr)))
@@ -1893,10 +1929,17 @@ ada_is_unconstrained_packed_array_type (struct type *type)
static long
decode_packed_array_bitsize (struct type *type)
{
- char *raw_name = ada_type_name (ada_check_typedef (type));
+ char *raw_name;
char *tail;
long bits;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-02-01 19:25 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2011-02-01 19:25 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via e4941aa858b64bb0d3d1687c3cb7530ac497645d (commit)
via 1c0683b0c9850ec358e3620edabc7a1b8d716437 (commit)
via 8b3af95e3ed31b3dcf54ca1d3aa5ab12b009acf1 (commit)
via 257fa63a119a5c76c1272096d9b347dac736a047 (commit)
via ae257167dce6e586b1bc133113c5fc0b0bb16a79 (commit)
via febdcd0ab5e6683c579db6b6a4d879e12f4f8f68 (commit)
via 42b79dd04365f5314d612cbbd024eef4998ed33b (commit)
via f6aba9259080ebccea08c6e1a45256b307721117 (commit)
via fca35f4056319f80cf589fab42d1a0f1703f477d (commit)
via 739571cc3151651f49f7171cfd98275d983bfaaa (commit)
via d146488d02d0e3c294bfa31dc5f90b4af182e37d (commit)
via 5a97c75134f8872ba2ea7f402d4574eb9ef99a63 (commit)
via f08414ea2993e4207ec4d3bdc81c1b524699fe8a (commit)
via b6a3bbda5068fc589f3b8abf9863cd35ee928d56 (commit)
via e9808f1c14f294a35c8176bab61e1c013de0236c (commit)
via 6755a5598165f19919e8ce081132d68de27e53a2 (commit)
via b9353643361cce6871a3bffe4cde4ba58eb49769 (commit)
via 7d2efa9dd1a77102f6af882636d88986ec115aa7 (commit)
via 373852c3f7c9bf8ca8b5d41cf5d2618229f40179 (commit)
via 16d03c1b227e42f5870d8d2e74a4580b368868ac (commit)
via cb33aaacb36247a46ae53153af684435df63b55f (commit)
via 0c251f1b445cb0c3047f0dde658c376b25cf3d96 (commit)
via 66978410554d7ae79de83fd5d9a3c4c710fb60db (commit)
via 8a49b5a7e8b2f5425cf1181731dc0b2ca0ef639c (commit)
via 02d806bdfd57dd87d74523f779a326ce3ecb63d6 (commit)
via cef1209d593d9175096b985e4621beaa36915651 (commit)
from c69ed139ec1eec85094a8ec40a6c17c86e8abe9b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit e4941aa858b64bb0d3d1687c3cb7530ac497645d
Merge: c69ed13 1c0683b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Feb 1 20:25:15 2011 +0100
Merge remote branch 'gdb/master'
commit 1c0683b0c9850ec358e3620edabc7a1b8d716437
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Feb 1 18:56:34 2011 +0000
gdb/
Fix debug printing of TYPE_INSTANCE.
* expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
(dump_subexp_body_standard) <TYPE_INSTANCE>: New.
commit 8b3af95e3ed31b3dcf54ca1d3aa5ab12b009acf1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Feb 1 18:53:58 2011 +0000
gdb/
Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
* ada-operator.inc: Rename the file to ...
* ada-operator.def: ... here, wrap all the entries by macro OP.
* expprint.c (op_name_standard): Remove all the entries. Include
"std-operator.def" instead.
* expression.h (enum exp_opcode): Include "std-operator.def" and
"ada-operator.def". Move all the entries ...
* std-operator.def: ... here, wrap all the entries by macro OP.
commit 257fa63a119a5c76c1272096d9b347dac736a047
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Feb 1 13:14:39 2011 +0000
Updated Danish translation.
commit ae257167dce6e586b1bc133113c5fc0b0bb16a79
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Feb 1 00:00:03 2011 +0000
*** empty log message ***
commit febdcd0ab5e6683c579db6b6a4d879e12f4f8f68
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 31 23:00:05 2011 +0000
daily update
commit 42b79dd04365f5314d612cbbd024eef4998ed33b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 31 22:38:24 2011 +0000
* elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
for toc pointer on any section having makes_toc_func_call set.
(check_pasted_section): Ensure pasted .init/.fini fragments use
the same toc if any has makes_toc_func_call set.
commit f6aba9259080ebccea08c6e1a45256b307721117
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date: Mon Jan 31 21:44:51 2011 +0000
2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.base/jit.exp: New file.
* gdb.base/jit-main.c: New file.
* gdb.base/jit-solib.c: New file.
commit fca35f4056319f80cf589fab42d1a0f1703f477d
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date: Mon Jan 31 21:43:12 2011 +0000
2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
* breakpoint.h (remove_jit_event_breakpoints): New prototype.
* breakpoint.c (remove_jit_event_breakpoints): New function.
* jit.c (jit_descriptor_addr): Delete.
(registering_code): Delete.
(clear_int): Delete.
(jit_inferior_data): New variable.
(struct jit_inferior_data): New type.
(get_jit_inferior_data): New function.
(jit_inferior_data_cleanup): New function.
(jit_read_descriptor): Adjust.
(jit_register_code): Adjust.
(jit_breakpoint_re_set_internal): New function; move code here ...
(jit_inferior_init): ... from here.
(jit_breakpoint_re_set): Adjust.
(jit_reset_inferior_data_and_breakpoints): New function.
(jit_inferior_created_observer): Adjust.
(jit_inferior_exit_hook): Adjust.
(jit_executable_changed_observer): New function.
(jit_event_handler): Adjust.
(_initialize_jit): Adjust.
commit 739571cc3151651f49f7171cfd98275d983bfaaa
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date: Mon Jan 31 21:37:00 2011 +0000
2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
* breakpoint.h (remove_jit_event_breakpoints): New prototype.
* breakpoint.c (remove_jit_event_breakpoints): New function.
* jit.c (jit_descriptor_addr): Delete.
(registering_code): Delete.
(clear_int): Delete.
(jit_inferior_data): New variable.
(struct jit_inferior_data): New type.
(get_jit_inferior_data): New function.
(jit_inferior_data_cleanup): New function.
(jit_read_descriptor): Adjust.
(jit_register_code): Adjust.
(jit_breakpoint_re_set_internal): New function; move code here ...
(jit_inferior_init): ... from here.
(jit_breakpoint_re_set): Adjust.
(jit_reset_inferior_data_and_breakpoints): New function.
(jit_inferior_created_observer): Adjust.
(jit_inferior_exit_hook): Adjust.
(jit_executable_changed_observer): New function.
(jit_event_handler): Adjust.
(_initialize_jit): Adjust.
commit d146488d02d0e3c294bfa31dc5f90b4af182e37d
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon Jan 31 20:21:00 2011 +0000
2011-01-31 Michael Snyder <msnyder@vmware.com>
* m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
line.
commit 5a97c75134f8872ba2ea7f402d4574eb9ef99a63
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Mon Jan 31 19:05:22 2011 +0000
* gdb.opencl/convs_casts.exp: Use tbreak instead of break to
proceed to initial kernel entry point.
* gdb.opencl/datatypes.exp: Likewise.
* gdb.opencl/operators.exp: Likewise.
* gdb.opencl/vec_comps.exp: Likewise.
commit f08414ea2993e4207ec4d3bdc81c1b524699fe8a
Author: swagiaal <swagiaal>
Date: Mon Jan 31 18:29:01 2011 +0000
Added new namespace tests.
2011-01-31 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/nsnested.cc: New.
* gdb.cp/nsnested.exp: New.
* gdb.cp/nsnoimports.exp: New.
* gdb.cp/nsnoimports.cc: New.
commit b6a3bbda5068fc589f3b8abf9863cd35ee928d56
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jan 31 16:52:31 2011 +0000
PR python/12216:
* python/python.c (execute_gdb_command): Call
prevent_dont_repeat.
* top.c (suppress_dont_repeat): New global.
(dont_repeat): Use it.
(prevent_dont_repeat): New function.
* command.h (prevent_dont_repeat): Declare.
commit e9808f1c14f294a35c8176bab61e1c013de0236c
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jan 31 15:16:57 2011 +0000
* infcmd.c (finish_backward): Use breakpoint_set_silent.
* python/py-breakpoint.c (bppy_set_silent): Use
breakpoint_set_silent.
(bppy_set_thread): Use breakpoint_set_thread.
(bppy_set_task): Use breakpoint_set_task.
* breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
(breakpoint_set_task): Declare.
(make_breakpoint_silent): Remove.
* breakpoint.c (breakpoint_set_silent): New function.
(breakpoint_set_thread): Likewise.
(breakpoint_set_task): Likewise.
(make_breakpoint_silent): Remove.
commit 6755a5598165f19919e8ce081132d68de27e53a2
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jan 31 15:07:48 2011 +0000
* breakpoint.h (user_breakpoint_p): Declare.
* breakpoint.c (user_breakpoint_p): New function.
(breakpoint_1): Use it.
(save_breakpoints): Likewise.
commit b9353643361cce6871a3bffe4cde4ba58eb49769
Author: Alexandre Oliva <aoliva@redhat.com>
Date: Mon Jan 31 05:26:01 2011 +0000
PR libgcj/44341
* configure.ac: Discard --with-* flags for host when configuring
target libraries for cross build.
* configure: Rebuilt.
commit 7d2efa9dd1a77102f6af882636d88986ec115aa7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Jan 31 04:42:08 2011 +0000
allow building GDB with Python support on MinGW
This makes several adjustements to the configure python-config.py
scripts to deal with the differences between a Unix install of Python
and a Windows install of Python (as downloaded from the Python website).
Differences:
- The Python executable is directly in the python prefix directory
as opposed to inside the bin/ subdirectory.
- The name of the python library is does not have a dot in the version
number: On Unix, we have libpython2.7, while on Windows, it's
libpython27. So the regexp extracting the python version from
the Python lib filename had to be adjusted slightly.
Also, the tests checking the name of the libpython had to be
adjusted to allow for that.
- There are no link options following the -lpython<version> switch
on Windows, but the regexp extracting the python version was
using it as a delimiter. It had to be removed.
- python-config.py does not work on Windows, mostly because
some sysconfig variables are missing. They are not necessary
so the script was adapted to skip them if not defined.
- The paths returned by python-config.py follow the Windows filename
convention in terms of the directory separator, and this is causing
trouble when the build environment is cygwin (while the compiler
and Python are MinGW). We could have fixed that in the configure
script, but it felt simpler to do so in python-config.py
gdb/ChangeLog:
* configure.ac: Add handling of Python distribution on Windows.
* python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
sysconfig variables are not defined, then do not use them.
On Windows, if LIBPL is not defined, then use prefix + '/libs'
instead. On Windows, return all paths using forward-slashes
rather than backslashes.
commit 373852c3f7c9bf8ca8b5d41cf5d2618229f40179
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Jan 31 04:41:21 2011 +0000
do not use python<version> subdir when including Python .h file
This is preparation work for being able to build GDB with Python
support on MinGW.
So far, the "python<version>" subdirectory needs to be specified
when including a Python header file. In order to do that, we have
some special configury that tweaks the include path returned by
python-config.py such that the use of the subdirectory in the include
is necessary. This was done in order to protect ourselves from
possible filename conflicts, since some of the filenames chosen by
Python were a little generic.
The problem is that this cannot work with a standard Python install
on MinGW systems. On such systems, the .h files are located in
<python_prefix>/include. So, in preparation for allowing us to build
GDB on MinGW with Python support enabled, this patch changes the
requirement to provide the "python<version>" subdirectory in the
include directive.
The positive consequence is that we no longer need to have a set
of #include directives for each version of Python, since the include
directive is now the same for all versions of Python. However, the
downside is that we are losing the level of protection we were trying
to achieve by forcing the subdirectory in the include directive.
In order to reduce a bit the consequences of a possible conflict,
this patch also changes the location where the -I/path/to/python
switch goes, to be last in the list (suggested by Doug Evans).
One last change is the fact that we are now including Python.h
and all other Python include headers using angle brackets rather
than double-quotes. This fixes a problem on case-insensitive
systems where #include "Python.h" causes our gdb/python/python.h
header to be included instead of Python's <Python.h> header.
gdb/ChangeLog:
* configure.ac: Remove fallback behavior for building
against Python. Remove tweaking of Python include path.
Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
(AC_TRY_LIBPYTHON): Adjust program used in linking test.
If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
Always restore CPPFLAGS and LIBS after linking test.
* configure: Regenerated.
* Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
(INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
* python/python-internal.h: Adjust includes of Python .h files.
commit 16d03c1b227e42f5870d8d2e74a4580b368868ac
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Jan 31 03:12:05 2011 +0000
Add missing i18n markup in tracepoint.c:traceframe_walk_blocks
gdb/ChangeLog:
* tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
in error message.
commit cb33aaacb36247a46ae53153af684435df63b55f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Jan 31 03:11:35 2011 +0000
fix typo during interactive_mode check in gdb_has_a_terminal
Discovered by Pierre Muller.
gdb/ChangeLog:
* inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
value test.
gdb/testsuite/ChangeLog:
* gdb.base/interact.exp: Add extra tests that verify that
the value of the interactive-mode setting does not change
after the script is sourced.
commit 0c251f1b445cb0c3047f0dde658c376b25cf3d96
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 31 00:00:02 2011 +0000
*** empty log message ***
commit 66978410554d7ae79de83fd5d9a3c4c710fb60db
Author: qiyao <qiyao>
Date: Sun Jan 30 23:16:28 2011 +0000
2011-01-31 Yao Qi <yao@codesourcery.com>
* arm-linux-nat.c: Update calls to regcache_register_status
instead of regcache_valid_p.
* aix-thread.c: Likewise.
* i386gnu-nat.c: Likewise.
commit 8a49b5a7e8b2f5425cf1181731dc0b2ca0ef639c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jan 30 23:00:07 2011 +0000
daily update
commit 02d806bdfd57dd87d74523f779a326ce3ecb63d6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 30 00:00:03 2011 +0000
*** empty log message ***
commit cef1209d593d9175096b985e4621beaa36915651
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jan 29 23:00:05 2011 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +
bfd/ChangeLog | 7 +
bfd/elf64-ppc.c | 33 +++-
bfd/version.h | 2 +-
configure | 44 ++++-
configure.ac | 44 ++++-
gdb/ChangeLog | 118 +++++++++++
gdb/Makefile.in | 13 +-
gdb/ada-operator.def | 99 +++++++++
gdb/ada-operator.inc | 102 ---------
gdb/aix-thread.c | 63 ++++---
gdb/arm-linux-nat.c | 22 ++-
gdb/breakpoint.c | 79 ++++++--
gdb/breakpoint.h | 13 +-
gdb/command.h | 2 +
gdb/configure | 90 +++++----
gdb/configure.ac | 53 +++---
gdb/expprint.c | 219 +++++---------------
gdb/expression.h | 333 +-----------------------------
gdb/i386gnu-nat.c | 4 +-
gdb/infcmd.c | 2 +-
gdb/inflow.c | 2 +-
gdb/jit.c | 199 +++++++++++-------
gdb/m32r-tdep.c | 2 +-
gdb/python/py-breakpoint.c | 6 +-
gdb/python/python-config.py | 34 +++-
gdb/python/python-internal.h | 18 +--
gdb/python/python.c | 1 +
gdb/std-operator.def | 327 +++++++++++++++++++++++++++++
gdb/testsuite/ChangeLog | 27 +++
gdb/testsuite/gdb.base/interact.exp | 21 ++-
gdb/testsuite/gdb.base/jit-main.c | 203 ++++++++++++++++++
gdb/testsuite/gdb.base/jit-solib.c | 22 ++
gdb/testsuite/gdb.base/jit.exp | 102 +++++++++
gdb/testsuite/gdb.cp/nsnested.cc | 36 ++++
gdb/testsuite/gdb.cp/nsnested.exp | 42 ++++
gdb/testsuite/gdb.cp/nsnoimports.cc | 37 ++++
gdb/testsuite/gdb.cp/nsnoimports.exp | 61 ++++++
gdb/testsuite/gdb.opencl/convs_casts.exp | 4 +-
gdb/testsuite/gdb.opencl/datatypes.exp | 4 +-
gdb/testsuite/gdb.opencl/operators.exp | 4 +-
gdb/testsuite/gdb.opencl/vec_comps.exp | 4 +-
gdb/top.c | 20 ++-
gdb/tracepoint.c | 2 +-
gdb/version.in | 2 +-
opcodes/ChangeLog | 4 +
opcodes/po/da.po | 41 ++--
47 files changed, 1711 insertions(+), 863 deletions(-)
create mode 100644 gdb/ada-operator.def
delete mode 100644 gdb/ada-operator.inc
create mode 100644 gdb/std-operator.def
create mode 100644 gdb/testsuite/gdb.base/jit-main.c
create mode 100644 gdb/testsuite/gdb.base/jit-solib.c
create mode 100644 gdb/testsuite/gdb.base/jit.exp
create mode 100644 gdb/testsuite/gdb.cp/nsnested.cc
create mode 100644 gdb/testsuite/gdb.cp/nsnested.exp
create mode 100644 gdb/testsuite/gdb.cp/nsnoimports.cc
create mode 100644 gdb/testsuite/gdb.cp/nsnoimports.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 30aa6ba..7711c87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-31 Alexandre Oliva <aoliva@redhat.com>
+
+ PR libgcj/44341
+ * configure.ac: Discard --with-* flags for host when configuring
+ target libraries for cross build.
+ * configure: Rebuilt.
+
2011-01-21 Andreas Schwab <schwab@redhat.com>
Sync from GCC:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c643fb7..35d534f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2011-02-01 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
+ for toc pointer on any section having makes_toc_func_call set.
+ (check_pasted_section): Ensure pasted .init/.fini fragments use
+ the same toc if any has makes_toc_func_call set.
+
2011-01-28 Joseph Myers <joseph@codesourcery.com>
* elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 5c35dc1..d020928 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -10580,14 +10580,28 @@ ppc64_elf_next_input_section (struct bfd_link_info *info, asection *isec)
if (elf_gp (isec->owner) != 0)
htab->toc_curr = elf_gp (isec->owner);
}
- else if (!isec->call_check_done
- && toc_adjusting_stub_needed (info, isec) < 0)
- return FALSE;
+ else
+ {
+ if (!isec->call_check_done
+ && toc_adjusting_stub_needed (info, isec) < 0)
+ return FALSE;
+ /* If we make a local call from this section, ie. a branch
+ without a following nop, then we have no place to put a
+ toc restoring insn. We must use the same toc group as
+ the callee.
+ Testing makes_toc_func_call actually tests for *any*
+ calls to functions that need a good toc pointer. A more
+ precise test would be better, as this one will set
+ incorrect values for pasted .init/.fini fragments.
+ (Fixed later in check_pasted_section.) */
+ if (isec->makes_toc_func_call
+ && elf_gp (isec->owner) != 0)
+ htab->toc_curr = elf_gp (isec->owner);
+ }
}
/* Functions that don't use the TOC can belong in any TOC group.
- Use the last TOC base. This happens to make _init and _fini
- pasting work, because the fragments generally don't use the TOC. */
+ Use the last TOC base. */
htab->stub_group[isec->id].toc_off = htab->toc_curr;
return TRUE;
}
@@ -10614,6 +10628,15 @@ check_pasted_section (struct bfd_link_info *info, const char *name)
else if (toc_off != htab->stub_group[i->id].toc_off)
return FALSE;
}
+
+ if (toc_off == 0)
+ for (i = o->map_head.s; i != NULL; i = i->map_head.s)
+ if (i->makes_toc_func_call)
+ {
+ toc_off = htab->stub_group[i->id].toc_off;
+ break;
+ }
+
/* Make sure the whole pasted function uses the same toc offset. */
if (toc_off != 0)
for (i = o->map_head.s; i != NULL; i = i->map_head.s)
diff --git a/bfd/version.h b/bfd/version.h
index cfc6b61..319147f 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20110129
+#define BFD_VERSION_DATE 20110201
#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/configure b/configure
index bc408db..518fe6a 100755
--- a/configure
+++ b/configure
@@ -7311,6 +7311,7 @@ serialization_dependencies=serdep.tmp
# Also strip program-prefix, program-suffix, and program-transform-name,
# so that we can pass down a consistent program-transform-name.
baseargs=
+tbaseargs=
keep_next=no
skip_next=no
eval "set -- $ac_configure_args"
@@ -7326,6 +7327,7 @@ do
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
baseargs="$baseargs '$ac_arg'"
+ tbaseargs="$tbaseargs '$ac_arg'"
keep_next=no
continue
fi
@@ -7347,11 +7349,45 @@ do
;;
esac
+ skip_targ=no
+ case $ac_arg in
+
+ --with-* | --without-*)
+ libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
+
+ case $libopt in
+ *[-_]include)
+ lib=`echo "$libopt" | sed 's,[-_]include$,,'`
+ ;;
+ *[-_]lib)
+ lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
+ ;;
+ *)
+ lib=$libopt
+ ;;
+ esac
+
+
+ case $lib in
+ mpc | mpfr | gmp | ppl | cloog)
+ # If we're processing --with-$lib, --with-$lib-include or
+ # --with-$lib-lib, for one of the libs above, and target is
+ # different from host, don't pass the current argument to any
+ # target library's configure.
+ if test x$is_cross_compiler = xyes; then
+ skip_targ=yes
+ fi
+ ;;
+ esac
+ ;;
+ esac
+
case "$ac_arg" in
--cache-file=/dev/null | \
-cache-file=/dev/null )
# Handled here to avoid the test to skip args below.
baseargs="$baseargs '$ac_arg'"
+ tbaseargs="$tbaseargs '$ac_arg'"
# Assert: $separate_arg should always be no.
keep_next=$separate_arg
;;
@@ -7382,6 +7418,9 @@ do
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
baseargs="$baseargs '$ac_arg'"
+ if test X"$skip_targ" = Xno; then
+ tbaseargs="$tbaseargs '$ac_arg'"
+ fi
keep_next=$separate_arg
;;
*)
@@ -7408,10 +7447,13 @@ EOF_SED
gcc_transform_name=`cat conftestsed.out`
rm -f conftestsed.out
baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
+tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
if test "$silent" = yes; then
baseargs="$baseargs --silent"
+ tbaseargs="$tbaseargs --silent"
fi
baseargs="$baseargs --disable-option-checking"
+tbaseargs="$tbaseargs --disable-option-checking"
# Record and document user additions to sub configure arguments.
@@ -7437,7 +7479,7 @@ esac
# This seems to be due to autoconf 2.5x stupidity.
host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
-target_configargs="$target_configargs ${baseargs}"
+target_configargs="$target_configargs ${tbaseargs}"
# Passing a --with-cross-host argument lets the target libraries know
# whether they are being built with a cross-compiler or being built
diff --git a/configure.ac b/configure.ac
index 1227054..d266389 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2849,6 +2849,7 @@ AC_SUBST_FILE(serialization_dependencies)
# Also strip program-prefix, program-suffix, and program-transform-name,
# so that we can pass down a consistent program-transform-name.
baseargs=
+tbaseargs=
keep_next=no
skip_next=no
eval "set -- $ac_configure_args"
@@ -2864,6 +2865,7 @@ do
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
baseargs="$baseargs '$ac_arg'"
+ tbaseargs="$tbaseargs '$ac_arg'"
keep_next=no
continue
fi
@@ -2885,11 +2887,45 @@ do
;;
esac
+ skip_targ=no
+ case $ac_arg in
+changequote(,)
+ --with-* | --without-*)
+ libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
+
+ case $libopt in
+ *[-_]include)
+ lib=`echo "$libopt" | sed 's,[-_]include$,,'`
+ ;;
+ *[-_]lib)
+ lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
+ ;;
+ *)
+ lib=$libopt
+ ;;
+ esac
+changequote([,])
+
+ case $lib in
+ mpc | mpfr | gmp | ppl | cloog)
+ # If we're processing --with-$lib, --with-$lib-include or
+ # --with-$lib-lib, for one of the libs above, and target is
+ # different from host, don't pass the current argument to any
+ # target library's configure.
+ if test x$is_cross_compiler = xyes; then
+ skip_targ=yes
+ fi
+ ;;
+ esac
+ ;;
+ esac
+
case "$ac_arg" in
--cache-file=/dev/null | \
-cache-file=/dev/null )
# Handled here to avoid the test to skip args below.
baseargs="$baseargs '$ac_arg'"
+ tbaseargs="$tbaseargs '$ac_arg'"
# Assert: $separate_arg should always be no.
keep_next=$separate_arg
;;
@@ -2920,6 +2956,9 @@ do
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
baseargs="$baseargs '$ac_arg'"
+ if test X"$skip_targ" = Xno; then
+ tbaseargs="$tbaseargs '$ac_arg'"
+ fi
keep_next=$separate_arg
;;
*)
@@ -2946,10 +2985,13 @@ EOF_SED
gcc_transform_name=`cat conftestsed.out`
rm -f conftestsed.out
baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
+tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
if test "$silent" = yes; then
baseargs="$baseargs --silent"
+ tbaseargs="$tbaseargs --silent"
fi
baseargs="$baseargs --disable-option-checking"
+tbaseargs="$tbaseargs --disable-option-checking"
# Record and document user additions to sub configure arguments.
AC_ARG_VAR([build_configargs],
@@ -2978,7 +3020,7 @@ esac
# This seems to be due to autoconf 2.5x stupidity.
host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
-target_configargs="$target_configargs ${baseargs}"
+target_configargs="$target_configargs ${tbaseargs}"
# Passing a --with-cross-host argument lets the target libraries know
# whether they are being built with a cross-compiler or being built
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a164d82..84013cb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,121 @@
+2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix debug printing of TYPE_INSTANCE.
+ * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
+ (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
+
+2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
+ OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
+ OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
+ * ada-operator.inc: Rename the file to ...
+ * ada-operator.def: ... here, wrap all the entries by macro OP.
+ * expprint.c (op_name_standard): Remove all the entries. Include
+ "std-operator.def" instead.
+ * expression.h (enum exp_opcode): Include "std-operator.def" and
+ "ada-operator.def". Move all the entries ...
+ * std-operator.def: ... here, wrap all the entries by macro OP.
+
+2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * breakpoint.h (remove_jit_event_breakpoints): New prototype.
+ * breakpoint.c (remove_jit_event_breakpoints): New function.
+ * jit.c (jit_descriptor_addr): Delete.
+ (registering_code): Delete.
+ (clear_int): Delete.
+ (jit_inferior_data): New variable.
+ (struct jit_inferior_data): New type.
+ (get_jit_inferior_data): New function.
+ (jit_inferior_data_cleanup): New function.
+ (jit_read_descriptor): Adjust.
+ (jit_register_code): Adjust.
+ (jit_breakpoint_re_set_internal): New function; move code here ...
+ (jit_inferior_init): ... from here.
+ (jit_breakpoint_re_set): Adjust.
+ (jit_reset_inferior_data_and_breakpoints): New function.
+ (jit_inferior_created_observer): Adjust.
+ (jit_inferior_exit_hook): Adjust.
+ (jit_executable_changed_observer): New function.
+ (jit_event_handler): Adjust.
+ (_initialize_jit): Adjust.
+
+2011-01-31 Michael Snyder <msnyder@vmware.com>
+
+ * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
+ line.
+
+2011-01-31 Tom Tromey <tromey@redhat.com>
+
+ PR python/12216:
+ * python/python.c (execute_gdb_command): Call
+ prevent_dont_repeat.
+ * top.c (suppress_dont_repeat): New global.
+ (dont_repeat): Use it.
+ (prevent_dont_repeat): New function.
+ * command.h (prevent_dont_repeat): Declare.
+
+2011-01-31 Tom Tromey <tromey@redhat.com>
+
+ * infcmd.c (finish_backward): Use breakpoint_set_silent.
+ * python/py-breakpoint.c (bppy_set_silent): Use
+ breakpoint_set_silent.
+ (bppy_set_thread): Use breakpoint_set_thread.
+ (bppy_set_task): Use breakpoint_set_task.
+ * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
+ (breakpoint_set_task): Declare.
+ (make_breakpoint_silent): Remove.
+ * breakpoint.c (breakpoint_set_silent): New function.
+ (breakpoint_set_thread): Likewise.
+ (breakpoint_set_task): Likewise.
+ (make_breakpoint_silent): Remove.
+
+2011-01-31 Tom Tromey <tromey@redhat.com>
+
+ * breakpoint.h (user_breakpoint_p): Declare.
+ * breakpoint.c (user_breakpoint_p): New function.
+ (breakpoint_1): Use it.
+ (save_breakpoints): Likewise.
+
+2011-01-31 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.ac: Add handling of Python distribution on Windows.
+ * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
+ sysconfig variables are not defined, then do not use them.
+ On Windows, if LIBPL is not defined, then use prefix + '/libs'
+ instead. On Windows, return all paths using forward-slashes
+ rather than backslashes.
+
+2011-01-31 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.ac: Remove fallback behavior for building
+ against Python. Remove tweaking of Python include path.
+ Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
+ (AC_TRY_LIBPYTHON): Adjust program used in linking test.
+ If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
+ Always restore CPPFLAGS and LIBS after linking test.
+ * configure: Regenerated.
+ * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
+ (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
+ * python/python-internal.h: Adjust includes of Python .h files.
+
+2011-01-31 Joel Brobecker <brobecker@adacore.com>
+
+ * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
+ in error message.
+
+2011-01-31 Joel Brobecker <brobecker@adacore.com>
+
+ * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
+ value test.
+
+2011-01-31 Yao Qi <yao@codesourcery.com>
+
+ * arm-linux-nat.c: Update calls to regcache_register_status
+ instead of regcache_valid_p.
+ * aix-thread.c: Likewise.
+ * i386gnu-nat.c: Likewise.
+
2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix crash.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 36cc734..4882bd4 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -408,8 +408,13 @@ PROFILE_CFLAGS = @PROFILE_CFLAGS@
# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
CFLAGS = @CFLAGS@
-# Set by configure, for e.g. expat.
-INTERNAL_CPPFLAGS = @CPPFLAGS@
+# Set by configure, for e.g. expat. Python installations are such that
+# C headers are included using their basename (for example, we #include
+# <Python.h> rather than, say, <python/Python.h>). Since the file names
+# are sometimes a little generic, we think that the risk of collision
+# with other header files is high. If that happens, we try to mitigate
+# a bit the consequences by putting the Python includes last in the list.
+INTERNAL_CPPFLAGS = @CPPFLAGS@ @PYTHON_CPPFLAGS@
# Need to pass this to testsuite for "make check". Probably should be
# consistent with top-level Makefile.in and gdb/testsuite/Makefile.in
@@ -444,10 +449,10 @@ INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_
# If you have the Cygnus libraries installed,
# you can use 'CLIBS=$(INSTALLED_LIBS)' 'CDEPS='
INSTALLED_LIBS=-lbfd -lreadline -lopcodes -liberty -ldecnumber \
- $(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
+ $(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ @PYTHON_LIBS@ \
-lintl -liberty $(LIBGNU)
CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \
- $(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
+ $(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ @PYTHON_LIBS@ \
$(LIBEXPAT) \
$(LIBIBERTY) $(WIN32LIBS) $(LIBGNU)
CDEPS = $(XM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \
diff --git a/gdb/ada-operator.def b/gdb/ada-operator.def
new file mode 100644
index 0000000..c3dc8e1
--- /dev/null
+++ b/gdb/ada-operator.def
@@ -0,0 +1,99 @@
+/* Ada language operator definitions for GDB, the GNU debugger.
+
+ Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+ 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* X IN A'RANGE(N). N is an immediate operand, surrounded by
+ BINOP_IN_BOUNDS before and after. A is an array, X an index
+ value. Evaluates to true iff X is within range of the Nth
+ dimension (1-based) of A. (A multi-dimensional array
+ type is represented as array of array of ...) */
+OP (BINOP_IN_BOUNDS)
+
+/* X IN L .. U. True iff L <= X <= U. */
+OP (TERNOP_IN_RANGE)
+
+/* Ada attributes ('Foo). */
+OP (OP_ATR_FIRST)
+OP (OP_ATR_LAST)
+OP (OP_ATR_LENGTH)
+OP (OP_ATR_IMAGE)
+OP (OP_ATR_MAX)
+OP (OP_ATR_MIN)
+OP (OP_ATR_MODULUS)
+OP (OP_ATR_POS)
+OP (OP_ATR_SIZE)
+OP (OP_ATR_TAG)
+OP (OP_ATR_VAL)
+
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-29 16:44 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2011-01-29 16:44 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via c69ed139ec1eec85094a8ec40a6c17c86e8abe9b (commit)
via 45e20c083dd51b6c2be3dfaa3563faf8d1686338 (commit)
via b2b6edb30a20dc33473a84a756fffb0b577eee9e (commit)
via 09c4808efa5b1afd220d577524ddad1483f85e03 (commit)
via 98e6e176de721ed19b7583b2c312dff94808d261 (commit)
via b4dcc5dda364c7759cb3a6ec8abbe9ab8f691c7e (commit)
via 9a4b75ebfdfb930c477b89e53df31ba4bf9a6054 (commit)
via 11d7271d2ab3f498297741d8b17b1d64629c7675 (commit)
via 7a7b9ec1affc904a48d557920b6c81a31cb73f5e (commit)
via 4f44044e5d621d70c5e82fc909b5fd59ffef8928 (commit)
via 9bb94168b34dc266a9e8b253b5f19164a2f5d75c (commit)
via 1ab50ed04640393c7a8bb8cf9e7ec85f1624da13 (commit)
via 8304f3d125c4f81a2738493322dceeaab885bda8 (commit)
via 5da312374e85ee40d05b5e2e819f73eab0004fb4 (commit)
via 1e5bbf3b1790d01311bd3f4d214264f5ee6898f3 (commit)
via 79237642eef6597134ac80981786cce1e22a53ba (commit)
via 5445cfa30be6c748eed315a3d4f8ccf9837dbeda (commit)
via c907ddf5a0bb23b61d49433d34f9a4ae13984bcb (commit)
via 6036748e86813b227838f980f7f43f3d896ac301 (commit)
via 1580ae79702222958e97a7c656b6c55b42356d5b (commit)
via 1bfe58a48a4796dc90557daa15980ad432fa202c (commit)
via c2ed5aba0c82a5e578071c4c8db2167b56c0647d (commit)
via c90ad9012c856f50d8fa34f3aa733933bde15b63 (commit)
via 7c29bb2e4cedfa8fcd791dc4b30011eb089b828c (commit)
via d17b6ddf92ac5c99ff72803ef69d485a2e1987be (commit)
via 4ea65719af9ba2c32d6b2a3d9914a0921da26130 (commit)
via e4a1a8c226fdb4dd0333417cd8e3f01f208aa28f (commit)
via c74c83004c5caecce726d76cdad661b7c2815d3c (commit)
via 9dcf513c5352404803bb7ed31a083693d94f9847 (commit)
via 03faa7d4e4e68bd1ae62cb40930019f8947f6f3d (commit)
via a5ef5cee8f062d0e83f8763214de964556dd6968 (commit)
via 9a764ccdbb08dbff53e357579266bd094cb924d9 (commit)
from 916481a3b2b859c4fabd3ffc5005bee15a611d6d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit c69ed139ec1eec85094a8ec40a6c17c86e8abe9b
Merge: 916481a 45e20c0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Jan 29 17:43:51 2011 +0100
Merge remote branch 'gdb/master'
commit 45e20c083dd51b6c2be3dfaa3563faf8d1686338
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Jan 29 10:30:19 2011 +0000
gdb/
Fix crash.
* valops.c (compare_parameters): Verify TYPE_NFIELDS before
touching TYPE_FIELD_ARTIFICIAL.
gdb/testsuite/
* gdb.cp/noparam.exp: New file.
* gdb.cp/noparam.cc: New file.
commit b2b6edb30a20dc33473a84a756fffb0b577eee9e
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Sat Jan 29 00:12:48 2011 +0000
* elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
field.
commit 09c4808efa5b1afd220d577524ddad1483f85e03
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 29 00:00:03 2011 +0000
*** empty log message ***
commit 98e6e176de721ed19b7583b2c312dff94808d261
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 28 23:00:04 2011 +0000
daily update
commit b4dcc5dda364c7759cb3a6ec8abbe9ab8f691c7e
Author: Richard Earnshaw <richard.earnshaw@arm.com>
Date: Fri Jan 28 16:32:26 2011 +0000
* MAINTAINERS: Move myself from Responsible Maintainers to Authorized
Committers.
commit 9a4b75ebfdfb930c477b89e53df31ba4bf9a6054
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Jan 28 16:18:53 2011 +0000
gdb/
* tracepoint.c (tfile_xfer_partial): If there's no traceframe
selected, don't try iterating over the traceframe's blocks.
(tfile_has_stack): If there's no traceframe selected, then there's
no stack.
(tfile_has_registers): If there's no traceframe selected, then
there's no registers.
gdb/testsuite/
* gdb.trace/tfile.exp: Test that with no traceframe selected,
there's no stack or registers.
commit 11d7271d2ab3f498297741d8b17b1d64629c7675
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Jan 28 16:00:15 2011 +0000
gdb/
* target.c (memory_xfer_partial): No need to restore shadows if we
haven't read anything.
commit 7a7b9ec1affc904a48d557920b6c81a31cb73f5e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Jan 28 15:42:00 2011 +0000
gdb/
* mips-tdep.c (mips_print_register): Use get_frame_register_value
and val_print_scalar_formatted.
commit 4f44044e5d621d70c5e82fc909b5fd59ffef8928
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Jan 28 13:36:31 2011 +0000
gdb/gdbserver/
* regcache.c (init_register_cache): Initialize
regcache->register_status.
(free_register_cache): Release regcache->register_status.
(regcache_cpy): Copy register_status.
(registers_to_string): Print 'x's for unavailable registers.
(supply_register): Mark the register's status valid or
unavailable, depending on whether a buffer was passed in or not.
(supply_register_zeroed): New.
(supply_regblock): Mark the registers' status valid or
unavailable, depending on whether a buffer was passed in or not.
* regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
(struct regcache): New `register_status' field.
(supply_register_zeroed): Declare.
* i387-fp.c (i387_xsave_to_cache): Zero out registers using
supply_register_zeroed, rather than passing a NULL buffer to
supply_register.
* tracepoint.c (fetch_traceframe_registers): Update comment.
commit 9bb94168b34dc266a9e8b253b5f19164a2f5d75c
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Jan 28 12:58:00 2011 +0000
2011-01-28 Pedro Alves <pedro@codesourcery.com>
* i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
buffer explicit.
commit 1ab50ed04640393c7a8bb8cf9e7ec85f1624da13
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 28 00:00:33 2011 +0000
*** empty log message ***
commit 8304f3d125c4f81a2738493322dceeaab885bda8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jan 27 23:00:05 2011 +0000
daily update
commit 5da312374e85ee40d05b5e2e819f73eab0004fb4
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Jan 27 21:39:23 2011 +0000
gdb/
* tracepoint.c (tfile_read): New.
(tfile_open): Use it.
(tfile_get_traceframe_address): Use it.
(tfile_trace_find): Use it.
(walk_blocks_callback_func): New typedef.
(match_blocktype): New function.
(traceframe_walk_blocks): New function.
(traceframe_find_block_type): New function.
(tfile_fetch_registers, tfile_xfer_partial)
(tfile_get_trace_state_variable_value): Use
traceframe_find_block_type and tfile_read.
commit 1e5bbf3b1790d01311bd3f4d214264f5ee6898f3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 27 00:00:05 2011 +0000
*** empty log message ***
commit 79237642eef6597134ac80981786cce1e22a53ba
Author: Kevin Buettner <kevinb@redhat.com>
Date: Wed Jan 26 23:13:20 2011 +0000
* remote-mips.c: Add internationalization mark ups. Remove
trailing \n from already marked up strings.
commit 5445cfa30be6c748eed315a3d4f8ccf9837dbeda
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jan 26 23:00:06 2011 +0000
daily update
commit c907ddf5a0bb23b61d49433d34f9a4ae13984bcb
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 26 20:58:48 2011 +0000
gdb
* python/py-prettyprint.c (print_string_repr): Clear
'addressprint' option when calling val_print_string.
(print_children): Handle Val_pretty_default. Clear 'addressprint'
option when calling val_print_string.
gdb/testsuite
* gdb.python/py-prettyprint.exp (run_lang_tests): Ensure no blank
space before string output. Add test for "set print pretty off"
case.
commit 6036748e86813b227838f980f7f43f3d896ac301
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 26 20:53:43 2011 +0000
* python/python.c (gdbpy_solib_name): Use gdb_py_longest and
GDB_PY_LL_ARG.
* python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
macros.
(gdb_py_longest, gdb_py_ulongest): New typedefs.
(gdb_py_long_from_longest, gdb_py_long_from_ulongest)
(gdb_py_long_as_ulongest): New defines.
(gdb_py_object_from_longest, gdb_py_object_from_ulongest)
(gdb_py_int_as_long): Declare.
* python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
GDB_PY_LL_ARG, gdb_py_object_from_longest.
(valpy_long): Add comment.
* python/py-utils.c (get_addr_from_python): Use
gdb_py_long_as_ulongest. Handle overflow properly.
(gdb_py_object_from_longest): New function.
(gdb_py_object_from_ulongest): Likewise.
(gdb_py_int_as_long): Likewise.
* python/py-type.c (typy_array): Use gdb_py_int_as_long.
* python/py-symtab.c (salpy_get_pc): Use
gdb_py_long_from_ulongest.
(salpy_get_line): Use PyInt_FromLong.
* python/py-param.c (set_parameter_value): Use
gdb_py_int_as_long.
* python/py-lazy-string.c (stpy_get_address): Use
gdb_py_long_from_ulongest.
* python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
* python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
* python/py-breakpoint.c (bppy_set_thread): Use
gdb_py_int_as_long.
(bppy_set_task): Likewise.
(bppy_set_ignore_count): Likewise.
(bppy_set_hit_count): Likewise.
* python/py-block.c (blpy_get_start): Use
gdb_py_object_from_ulongest.
(blpy_get_end): Likewise.
(gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
commit 1580ae79702222958e97a7c656b6c55b42356d5b
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Wed Jan 26 01:55:18 2011 +0000
2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
PR/symtab 11766:
* gdb/objfiles.h (struct objfile) <addr_low>: New field.
* gdb/solib.c (solib_read_symbols): Check for addr_low in
equality test for objfile, initialize addr_low if needed.
commit 1bfe58a48a4796dc90557daa15980ad432fa202c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 26 00:00:02 2011 +0000
*** empty log message ***
commit c2ed5aba0c82a5e578071c4c8db2167b56c0647d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jan 25 23:00:05 2011 +0000
daily update
commit c90ad9012c856f50d8fa34f3aa733933bde15b63
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 18:18:12 2011 +0000
* tui/tui-regs.c (tui_register_format): Remove dead code.
commit 7c29bb2e4cedfa8fcd791dc4b30011eb089b828c
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 17:58:58 2011 +0000
* printcmd.c (print_formatted): Use val_print_scalar_formatted
instead of print_scalar_formatted.
(print_scalar_formatted): Don't handle 's' format strings here,
and add an assertion that we never see such format here.
* valprint.h (val_print_scalar_formatted): Declare.
* valprint.c (val_print_scalar_formatted): New.
* c-valprint.c (c_val_print): Use val_print_scalar_formatted
instead of print_scalar_formatted.
* jv-valprint.c (java_val_print): Ditto.
* p-valprint.c (pascal_val_print): Ditto.
* ada-valprint.c (ada_val_print_1): Ditto.
* f-valprint.c (f_val_print): Ditto.
* infcmd.c (registers_info): Ditto.
* m2-valprint.c (m2_val_print): Ditto.
commit d17b6ddf92ac5c99ff72803ef69d485a2e1987be
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 17:43:28 2011 +0000
* m2-valprint.c (print_unbounded_array): Pass
value_contents_for_printing rather than value_contents, to
m2_print_array_contents. Also pass in the value.
commit 4ea65719af9ba2c32d6b2a3d9914a0921da26130
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jan 25 17:25:10 2011 +0000
gdb/
* dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
(save_gdb_index_command): Switch to .gdb_index version 4.
commit e4a1a8c226fdb4dd0333417cd8e3f01f208aa28f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 17:00:23 2011 +0000
* mi/mi-main.c (get_register): Use get_frame_register_value rather
than frame_register, and always pass a valid value to val_print.
commit c74c83004c5caecce726d76cdad661b7c2815d3c
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 16:26:11 2011 +0000
Centralize printing "<optimized out>".
gdb/
* valprint.h (val_print_optimized_out): Declare.
* cp-valprint.c (cp_print_value_fields): Use
val_print_optimized_out.
* jv-valprint.c (java_print_value_fields): Ditto.
* p-valprint.c (pascal_object_print_value_fields): Ditto.
* printcmd.c (print_formatted): Ditto.
* valprint.c (valprint_check_validity): Ditto.
(value_check_printable): Ditto.
(val_print_optimized_out): New.
gdb/doc/
* gdb.texinfo: s/value optimized out/optimized out/g
gdb/testsuite/
* gdb.base/frame-args.exp: Adjust.
* gdb.dwarf2/dw2-noloc.exp: Adjust.
* gdb.dwarf2/dw2-inline-param.exp: Adjust.
* gdb.dwarf2/pieces.exp: Adjust.
* gdb.opt/clobbered-registers-O2.exp: Adjust.
* gdb.opt/inline-locals.exp: Adjust.
* gdb.threads/fork-child-threads.exp: Adjust.
commit 9dcf513c5352404803bb7ed31a083693d94f9847
Author: kwerner <kwerner>
Date: Tue Jan 25 16:10:26 2011 +0000
gdb/testsuite/ChangeLog
2011-01-25 Ken Werner <ken.werner@de.ibm.com>
* gdb.opencl/convs_casts.cl: Move program scope variables into the
OpenCL kernel function. Add a comment as marker. Add address space
qualifiers for the remaining program scope variables.
* gdb.opencl/datatypes.cl: Likewise.
* gdb.opencl/operators.cl: Likewise.
* gdb.opencl/vec_comps.cl: Likewise.
* gdb.opencl/convs_casts.exp: Replace gdb_test_multiple by gdb_test.
Add breakpoint at the marker comment.
* gdb.opencl/datatypes.exp: Likewise.
* gdb.opencl/operators.exp: Likewise.
* gdb.opencl/vec_comps.exp: Likewise.
commit 03faa7d4e4e68bd1ae62cb40930019f8947f6f3d
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 15:47:57 2011 +0000
gdb/
* infcmd.c (default_print_registers_info): Allocate values so to
never pass a NULL value to val_print.
commit a5ef5cee8f062d0e83f8763214de964556dd6968
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 15:18:34 2011 +0000
* cp-valprint.c (cp_print_value): Treat the 'skip' local as
boolean. Make sure to always pass a value that matches the
contents buffer to callees. Preserve `address' for following
iterations.
* value.c (value_contents_for_printing_const): New.
(value_address): Constify value argument.
* value.h (value_contents_for_printing_const): Declare.
(value_address): Constify value argument.
commit 9a764ccdbb08dbff53e357579266bd094cb924d9
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 12:47:24 2011 +0000
* regcache.c (struct regcache_descr): Rename
sizeof_raw_register_valid_p field to sizeof_raw_register_status,
and sizeof_cooked_register_valid_p to
sizeof_cooked_register_status.
(init_regcache_descr): Adjust.
(struct regcache): Rename register_valid_p field to
register_status.
(regcache_xmalloc_1, regcache_xfree, regcache_save)
(do_cooked_read): Adjust.
(regcache_valid_p): Rename to ...
(regcache_register_status): ... this. Adjust.
(regcache_invalidate): Adjust.
(regcache_raw_read, regcache_cooked_read, regcache_raw_write):
Adjust.
(regcache_raw_supply): Adjust. If buf i NULL, mark the register
as unavailable, not valid.
(regcache_dump): Adjust.
* regcache.h (enum register_status): New.
(regcache_register_status): Declare.
(regcache_invalidate): Delete declaration.
* corelow.c (get_core_registers): Adjust.
* tracepoint.c (tfile_fetch_registers): Adjust.
* trad-frame.c (REG_VALUE): Rename to ...
(TF_REG_VALUE): ... this.
(REG_UNKNOWN): Rename to ...
(TF_REG_UNKNOWN): ... this.
(trad_frame_set_value, trad_frame_set_unknown): Adjust.
* mi/mi-main.c (register_changed_p): Adjust.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 5 +
bfd/elf32-ppc.c | 1 +
bfd/version.h | 2 +-
gdb/ChangeLog | 200 +++++++++++
gdb/MAINTAINERS | 2 +-
gdb/ada-valprint.c | 12 +-
gdb/c-valprint.c | 56 ++--
gdb/corelow.c | 4 +-
gdb/cp-valprint.c | 39 ++-
gdb/doc/ChangeLog | 4 +
gdb/doc/gdb.texinfo | 8 +-
gdb/dwarf2read.c | 13 +-
gdb/f-valprint.c | 24 +-
gdb/gdbserver/ChangeLog | 25 ++
gdb/gdbserver/i387-fp.c | 54 ++--
gdb/gdbserver/regcache.c | 87 +++++-
gdb/gdbserver/regcache.h | 18 +
gdb/gdbserver/tracepoint.c | 3 +-
gdb/infcmd.c | 45 ++-
gdb/jv-valprint.c | 12 +-
gdb/m2-valprint.c | 33 +-
gdb/mi/mi-main.c | 21 +-
gdb/mips-tdep.c | 20 +-
gdb/objfiles.h | 2 +
gdb/p-valprint.c | 36 +-
gdb/printcmd.c | 28 +-
gdb/python/py-block.c | 8 +-
gdb/python/py-breakpoint.c | 32 ++-
gdb/python/py-cmd.c | 9 +-
gdb/python/py-frame.c | 2 +-
gdb/python/py-lazy-string.c | 2 +-
gdb/python/py-param.c | 4 +-
gdb/python/py-prettyprint.c | 18 +-
gdb/python/py-symtab.c | 4 +-
gdb/python/py-type.c | 8 +-
gdb/python/py-utils.c | 86 ++++--
gdb/python/py-value.c | 19 +-
gdb/python/python-internal.h | 30 ++
gdb/python/python.c | 13 +-
gdb/regcache.c | 89 +++---
gdb/regcache.h | 23 ++-
gdb/remote-mips.c | 62 ++--
gdb/solib.c | 4 +-
gdb/target.c | 2 +-
gdb/testsuite/ChangeLog | 40 +++
gdb/testsuite/gdb.base/frame-args.exp | 2 +-
gdb/testsuite/gdb.cp/noparam.cc | 29 ++
gdb/testsuite/gdb.cp/noparam.exp | 21 ++
gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-noloc.exp | 26 +-
gdb/testsuite/gdb.dwarf2/pieces.exp | 2 +-
gdb/testsuite/gdb.opencl/convs_casts.cl | 38 ++-
gdb/testsuite/gdb.opencl/convs_casts.exp | 14 +-
gdb/testsuite/gdb.opencl/datatypes.cl | 152 +++++-----
gdb/testsuite/gdb.opencl/datatypes.exp | 14 +-
gdb/testsuite/gdb.opencl/operators.cl | 122 ++++----
gdb/testsuite/gdb.opencl/operators.exp | 14 +-
gdb/testsuite/gdb.opencl/vec_comps.cl | 38 ++-
gdb/testsuite/gdb.opencl/vec_comps.exp | 14 +-
gdb/testsuite/gdb.opt/clobbered-registers-O2.exp | 4 +-
gdb/testsuite/gdb.opt/inline-locals.exp | 4 +-
gdb/testsuite/gdb.python/py-prettyprint.exp | 7 +-
gdb/testsuite/gdb.threads/fork-child-threads.exp | 2 +-
gdb/testsuite/gdb.trace/tfile.exp | 8 +
gdb/tracepoint.c | 387 ++++++++++------------
gdb/trad-frame.c | 8 +-
gdb/tui/tui-regs.c | 18 +-
gdb/valops.c | 2 +-
gdb/valprint.c | 51 +++-
gdb/valprint.h | 9 +
gdb/value.c | 9 +-
gdb/value.h | 8 +-
gdb/version.in | 2 +-
73 files changed, 1409 insertions(+), 807 deletions(-)
create mode 100644 gdb/testsuite/gdb.cp/noparam.cc
create mode 100644 gdb/testsuite/gdb.cp/noparam.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9bbd329..c643fb7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-28 Joseph Myers <joseph@codesourcery.com>
+
+ * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
+ field.
+
2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 77a9d1e..fcbfa83 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -2785,6 +2785,7 @@ ppc_elf_link_hash_newfunc (struct bfd_hash_entry *entry,
ppc_elf_hash_entry (entry)->linker_section_pointer = NULL;
ppc_elf_hash_entry (entry)->dyn_relocs = NULL;
ppc_elf_hash_entry (entry)->tls_mask = 0;
+ ppc_elf_hash_entry (entry)->has_sda_refs = 0;
}
return entry;
diff --git a/bfd/version.h b/bfd/version.h
index 14ba307..cfc6b61 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20110125
+#define BFD_VERSION_DATE 20110129
#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 0aeb5b7..a164d82 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,203 @@
+2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix crash.
+ * valops.c (compare_parameters): Verify TYPE_NFIELDS before
+ touching TYPE_FIELD_ARTIFICIAL.
+
+2011-01-28 Richard Earnshaw <rearnsha@arm.com>
+
+ * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
+ Committers.
+
+2011-01-28 Pedro Alves <pedro@codesourcery.com>
+
+ * tracepoint.c (tfile_xfer_partial): If there's no traceframe
+ selected, don't try iterating over the traceframe's blocks.
+ (tfile_has_stack): If there's no traceframe selected, then there's
+ no stack.
+ (tfile_has_registers): If there's no traceframe selected, then
+ there's no registers.
+
+2011-01-28 Pedro Alves <pedro@codesourcery.com>
+
+ * target.c (memory_xfer_partial): No need to restore shadows if we
+ haven't read anything.
+
+2011-01-28 Pedro Alves <pedro@codesourcery.com>
+
+ * mips-tdep.c (mips_print_register): Use get_frame_register_value
+ and val_print_scalar_formatted.
+
+2011-01-27 Pedro Alves <pedro@codesourcery.com>
+
+ * tracepoint.c (tfile_read): New.
+ (tfile_open): Use it.
+ (tfile_get_traceframe_address): Use it.
+ (tfile_trace_find): Use it.
+ (walk_blocks_callback_func): New typedef.
+ (match_blocktype): New function.
+ (traceframe_walk_blocks): New function.
+ (traceframe_find_block_type): New function.
+ (tfile_fetch_registers, tfile_xfer_partial)
+ (tfile_get_trace_state_variable_value): Use
+ traceframe_find_block_type and tfile_read.
+
+2011-01-26 Kevin Buettner <kevinb@redhat.com>
+
+ * remote-mips.c: Add internationalization mark ups. Remove
+ trailing \n from already marked up strings.
+
+2011-01-26 Tom Tromey <tromey@redhat.com>
+
+ * python/py-prettyprint.c (print_string_repr): Clear
+ 'addressprint' option when calling val_print_string.
+ (print_children): Handle Val_pretty_default. Clear 'addressprint'
+ option when calling val_print_string.
+
+2011-01-26 Tom Tromey <tromey@redhat.com>
+
+ * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
+ GDB_PY_LL_ARG.
+ * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
+ macros.
+ (gdb_py_longest, gdb_py_ulongest): New typedefs.
+ (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
+ (gdb_py_long_as_ulongest): New defines.
+ (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
+ (gdb_py_int_as_long): Declare.
+ * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
+ GDB_PY_LL_ARG, gdb_py_object_from_longest.
+ (valpy_long): Add comment.
+ * python/py-utils.c (get_addr_from_python): Use
+ gdb_py_long_as_ulongest. Handle overflow properly.
+ (gdb_py_object_from_longest): New function.
+ (gdb_py_object_from_ulongest): Likewise.
+ (gdb_py_int_as_long): Likewise.
+ * python/py-type.c (typy_array): Use gdb_py_int_as_long.
+ * python/py-symtab.c (salpy_get_pc): Use
+ gdb_py_long_from_ulongest.
+ (salpy_get_line): Use PyInt_FromLong.
+ * python/py-param.c (set_parameter_value): Use
+ gdb_py_int_as_long.
+ * python/py-lazy-string.c (stpy_get_address): Use
+ gdb_py_long_from_ulongest.
+ * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
+ * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
+ * python/py-breakpoint.c (bppy_set_thread): Use
+ gdb_py_int_as_long.
+ (bppy_set_task): Likewise.
+ (bppy_set_ignore_count): Likewise.
+ (bppy_set_hit_count): Likewise.
+ * python/py-block.c (blpy_get_start): Use
+ gdb_py_object_from_ulongest.
+ (blpy_get_end): Likewise.
+ (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
+
+2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
+
+ PR/symtab 11766:
+ * gdb/objfiles.h (struct objfile) <addr_low>: New field.
+ * gdb/solib.c (solib_read_symbols): Check for addr_low in
+ equality test for objfile, initialize addr_low if needed.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * tui/tui-regs.c (tui_register_format): Remove dead code.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * printcmd.c (print_formatted): Use val_print_scalar_formatted
+ instead of print_scalar_formatted.
+ (print_scalar_formatted): Don't handle 's' format strings here,
+ and add an assertion that we never see such format here.
+ * valprint.h (val_print_scalar_formatted): Declare.
+ * valprint.c (val_print_scalar_formatted): New.
+ * c-valprint.c (c_val_print): Use val_print_scalar_formatted
+ instead of print_scalar_formatted.
+ * jv-valprint.c (java_val_print): Ditto.
+ * p-valprint.c (pascal_val_print): Ditto.
+ * ada-valprint.c (ada_val_print_1): Ditto.
+ * f-valprint.c (f_val_print): Ditto.
+ * infcmd.c (registers_info): Ditto.
+ * m2-valprint.c (m2_val_print): Ditto.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * m2-valprint.c (print_unbounded_array): Pass
+ value_contents_for_printing rather than value_contents, to
+ m2_print_array_contents. Also pass in the value.
+
+2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
+ (save_gdb_index_command): Switch to .gdb_index version 4.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * mi/mi-main.c (get_register): Use get_frame_register_value rather
+ than frame_register, and always pass a valid value to val_print.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ Centralize printing "<optimized out>".
+
+ * valprint.h (val_print_optimized_out): Declare.
+ * cp-valprint.c (cp_print_value_fields): Use
+ val_print_optimized_out.
+ * jv-valprint.c (java_print_value_fields): Ditto.
+ * p-valprint.c (pascal_object_print_value_fields): Ditto.
+ * printcmd.c (print_formatted): Ditto.
+ * valprint.c (valprint_check_validity): Ditto.
+ (value_check_printable): Ditto.
+ (val_print_optimized_out): New.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * infcmd.c (default_print_registers_info): Allocate values so to
+ never pass a NULL value to val_print.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * cp-valprint.c (cp_print_value): Treat the 'skip' local as
+ boolean. Make sure to always pass a value that matches the
+ contents buffer to callees. Preserve `address' for following
+ iterations.
+ * value.c (value_contents_for_printing_const): New.
+ (value_address): Constify value argument.
+ * value.h (value_contents_for_printing_const): Declare.
+ (value_address): Constify value argument.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * regcache.c (struct regcache_descr): Rename
+ sizeof_raw_register_valid_p field to sizeof_raw_register_status,
+ and sizeof_cooked_register_valid_p to
+ sizeof_cooked_register_status.
+ (init_regcache_descr): Adjust.
+ (struct regcache): Rename register_valid_p field to
+ register_status.
+ (regcache_xmalloc_1, regcache_xfree, regcache_save)
+ (do_cooked_read): Adjust.
+ (regcache_valid_p): Rename to ...
+ (regcache_register_status): ... this. Adjust.
+ (regcache_invalidate): Adjust.
+ (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
+ Adjust.
+ (regcache_raw_supply): Adjust. If buf i NULL, mark the register
+ as unavailable, not valid.
+ (regcache_dump): Adjust.
+ * regcache.h (enum register_status): New.
+ (regcache_register_status): Declare.
+ (regcache_invalidate): Delete declaration.
+ * corelow.c (get_core_registers): Adjust.
+ * tracepoint.c (tfile_fetch_registers): Adjust.
+ * trad-frame.c (REG_VALUE): Rename to ...
+ (TF_REG_VALUE): ... this.
+ (REG_UNKNOWN): Rename to ...
+ (TF_REG_UNKNOWN): ... this.
+ (trad_frame_set_value, trad_frame_set_unknown): Adjust.
+ * mi/mi-main.c (register_changed_p): Adjust.
+
2011-01-25 Pedro Alves <pedro@codesourcery.com>
* regcache.c (struct regcache_descr): Remove outdated comment.
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index e739838..3f5c696 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -255,7 +255,6 @@ the native maintainer when resolving ABI issues.
alpha --target=alpha-elf ,-Werror
arm --target=arm-elf ,-Werror
- Richard Earnshaw rearnsha@arm.com
avr --target=avr ,-Werror
Tristan Gingold gingold@adacore.com
@@ -429,6 +428,7 @@ under no obligation to review posted patches - but, of course, are invited
to do so!
PowerPC Andrew Cagney cagney@gnu.org
+ARM Richard Earnshaw rearnsha@arm.com
CRIS Hans-Peter Nilsson hp@axis.com
IA64 Jeff Johnston jjohnstn@redhat.com
MIPS Joel Brobecker brobecker@adacore.com
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index d0810c7..bd297c6 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -788,8 +788,8 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr,
struct value_print_options opts = *options;
opts.format = format;
- print_scalar_formatted (valaddr + offset_aligned,
- type, &opts, 0, stream);
+ val_print_scalar_formatted (type, valaddr, offset_aligned,
+ original_value, &opts, 0, stream);
}
else if (ada_is_system_address_type (type))
{
@@ -827,8 +827,8 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_ENUM:
if (options->format)
{
- print_scalar_formatted (valaddr + offset_aligned,
- type, options, 0, stream);
+ val_print_scalar_formatted (type, valaddr, offset_aligned,
+ original_value, options, 0, stream);
break;
}
len = TYPE_NFIELDS (type);
@@ -858,8 +858,8 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_FLAGS:
if (options->format)
- print_scalar_formatted (valaddr + offset_aligned,
- type, options, 0, stream);
+ val_print_scalar_formatted (type, valaddr, offset_aligned,
+ original_value, options, 0, stream);
else
val_print_type_code_flags (type, valaddr + offset_aligned, stream);
break;
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index bbe5588..3bd4db2 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -248,8 +248,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_MEMBERPTR:
if (options->format)
{
- print_scalar_formatted (valaddr + embedded_offset, type,
- options, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, options, 0, stream);
break;
}
cp_print_class_member (valaddr + embedded_offset, type, stream, "&");
@@ -262,8 +262,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_PTR:
if (options->format && options->format != 's')
{
- print_scalar_formatted (valaddr + embedded_offset, type,
- options, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, options, 0, stream);
break;
}
if (options->vtblprint && cp_is_vtbl_ptr_type (type))
@@ -432,8 +432,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_ENUM:
if (options->format)
{
- print_scalar_formatted (valaddr + embedded_offset, type,
- options, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, options, 0, stream);
break;
}
len = TYPE_NFIELDS (type);
@@ -458,8 +458,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_FLAGS:
if (options->format)
- print_scalar_formatted (valaddr + embedded_offset, type,
- options, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, options, 0, stream);
else
val_print_type_code_flags (type, valaddr + embedded_offset,
stream);
@@ -469,8 +469,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_METHOD:
if (options->format)
{
- print_scalar_formatted (valaddr + embedded_offset, type,
- options, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, options, 0, stream);
break;
}
/* FIXME, we should consider, at least for ANSI C language,
@@ -489,8 +489,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
struct value_print_options opts = *options;
opts.format = (options->format ? options->format
: options->output_format);
- print_scalar_formatted (valaddr + embedded_offset, type,
- &opts, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, &opts, 0, stream);
}
else
{
@@ -521,8 +521,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
opts.format = (options->format ? options->format
: options->output_format);
- print_scalar_formatted (valaddr + embedded_offset, type,
- &opts, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, &opts, 0, stream);
}
else
{
@@ -547,8 +547,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
struct value_print_options opts = *options;
opts.format = (options->format ? options->format
: options->output_format);
- print_scalar_formatted (valaddr + embedded_offset, type,
- &opts, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, &opts, 0, stream);
}
else
{
@@ -565,8 +565,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_FLT:
if (options->format)
{
- print_scalar_formatted (valaddr + embedded_offset, type,
- options, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, options, 0, stream);
}
else
{
@@ -576,8 +576,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_DECFLOAT:
if (options->format)
- print_scalar_formatted (valaddr + embedded_offset, type,
- options, 0, stream);
+ val_print_scalar_formatted (type, valaddr, embedded_offset,
+ original_value, options, 0, stream);
else
print_decimal_floating (valaddr + embedded_offset,
type, stream);
@@ -601,19 +601,21 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
case TYPE_CODE_COMPLEX:
if (options->format)
- print_scalar_formatted (valaddr + embedded_offset,
- TYPE_TARGET_TYPE (type),
- options, 0, stream);
+ val_print_scalar_formatted (TYPE_TARGET_TYPE (type),
+ valaddr, embedded_offset,
+ original_value, options, 0, stream);
else
print_floating (valaddr + embedded_offset,
TYPE_TARGET_TYPE (type),
stream);
fprintf_filtered (stream, " + ");
if (options->format)
- print_scalar_formatted (valaddr + embedded_offset
- + TYPE_LENGTH (TYPE_TARGET_TYPE (type)),
- TYPE_TARGET_TYPE (type),
- options, 0, stream);
+ val_print_scalar_formatted (TYPE_TARGET_TYPE (type),
+ valaddr,
+ embedded_offset
+ + TYPE_LENGTH (TYPE_TARGET_TYPE (type)),
+ original_value,
+ options, 0, stream);
else
print_floating (valaddr + embedded_offset
+ TYPE_LENGTH (TYPE_TARGET_TYPE (type)),
diff --git a/gdb/corelow.c b/gdb/corelow.c
index bfa2893..f65a89c 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -615,9 +615,9 @@ get_core_registers (struct target_ops *ops,
".reg2", 2, "floating-point", 0);
}
- /* Supply dummy value for all registers not found in the core. */
+ /* Mark all registers not found in the core as unavailable. */
for (i = 0; i < gdbarch_num_regs (get_regcache_arch (regcache)); i++)
- if (!regcache_valid_p (regcache, i))
+ if (regcache_register_status (regcache, i) == REG_UNKNOWN)
regcache_raw_supply (regcache, i, NULL);
}
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 23e42c1..fff41d8 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -316,7 +316,7 @@ cp_print_value_fields (struct type *type, struct type *real_type,
TYPE_FIELD_BITPOS (type, i),
TYPE_FIELD_BITSIZE (type, i)))
{
- fputs_filtered (_("<value optimized out>"), stream);
+ val_print_optimized_out (stream);
}
else
{
@@ -343,7 +343,7 @@ cp_print_value_fields (struct type *type, struct type *real_type,
struct value *v = value_static_field (type, i);
if (v == NULL)
- fputs_filtered ("<optimized out>", stream);
+ val_print_optimized_out (stream);
else
cp_print_static_field (TYPE_FIELD_TYPE (type, i),
v, stream, recurse + 1,
@@ -488,6 +488,7 @@ cp_print_value (struct type *type, struct type *real_type,
struct type *baseclass = check_typedef (TYPE_BASECLASS (type, i));
char *basename = TYPE_NAME (baseclass);
const gdb_byte *base_valaddr;
+ const struct value *base_val;
if (BASETYPE_VIA_VIRTUAL (type, i))
{
@@ -509,7 +510,7 @@ cp_print_value (struct type *type, struct type *real_type,
boffset = baseclass_offset (type, i, valaddr + offset,
address + offset);
- skip = ((boffset == -1) || (boffset + offset) < 0) ? 1 : -1;
+ skip = ((boffset == -1) || (boffset + offset) < 0);
if (BASETYPE_VIA_VIRTUAL (type, i))
{
@@ -525,20 +526,28 @@ cp_print_value (struct type *type, struct type *real_type,
large. */
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-25 12:53 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2011-01-25 12:53 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 916481a3b2b859c4fabd3ffc5005bee15a611d6d (commit)
via a40f3cdab6de0457290b72995f3ab5790735b776 (commit)
via 25ff0cbe0ffc4f5161388edf29a3393bd36337bd (commit)
via 06d60dbb3ec33298888c8107205064ef833d84a0 (commit)
via 5f6f9139e39b1e2b926f88b884f998b733053e5f (commit)
from ff1c7e2d8dadc64b58319e548f50ff2d3a43b79c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 916481a3b2b859c4fabd3ffc5005bee15a611d6d
Merge: ff1c7e2 a40f3cd
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Tue Jan 25 12:53:25 2011 +0000
Merge remote branch 'gdb/master'
commit a40f3cdab6de0457290b72995f3ab5790735b776
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 12:13:19 2011 +0000
* regcache.c (struct regcache_descr): Remove outdated comment.
(init_regcache_descr): Remove sizeof_raw_register_valid_p
overallocate hack.
(regcache_xmalloc): Rename to ...
(regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
Allocate the regcache type accordingly.
(regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
(regcache_xfree): Asser the source is also readonly. Copy sizeof
cooked registers, not raw.
(regcache_dup_no_passthrough): Delete.
(get_thread_arch_regcache): Use regcache_xmalloc_1.
* h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
mention obsolete write_register_bytes.
* regcache.h (regcache_dup_no_passthrough): Delete declaration.
commit 25ff0cbe0ffc4f5161388edf29a3393bd36337bd
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 11:53:59 2011 +0000
Stop remote_read_bytes from handling partial reads itself.
* remote-fileio.c: Include target.h.
(remote_fileio_write_bytes): Delete.
(remote_fileio_func_open, remote_fileio_func_write)
(remote_fileio_func_rename, remote_fileio_func_unlink): Use
target_read_memory.
(remote_fileio_func_stat): Use target_read_memory and
target_write_memory.
(remote_fileio_func_gettimeofday): Use target_write_memory.
(remote_fileio_func_system): Use target_read_memory.
* remote.c (remote_write_bytes): Make it static.
(remote_read_bytes): Don't handle partial reads here.
* remote.h (remote_read_bytes): Delete declaration.
commit 06d60dbb3ec33298888c8107205064ef833d84a0
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 10:09:19 2011 +0000
2011-01-25 Pedro Alves <pedro@codesourcery.com>
* server.h (decode_xfer_write): Change prototype.
* remote-utils.c (decode_xfer_write): Remove `annex' parameter,
and don't extract the annex here.
* server.c (decode_xfer_read): Remove `annex' parameter,
and don't extract the annex here.
(decode_xfer): New.
(struct qxfer): New.
(handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
(handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
(handle_qxfer_statictrace): New functions, abstracted out from
handle_query, and made to use the struct qxfer interface.
(handle_threads_qxfer_proper): Rename to ...
(handle_qxfer_threads_proper): ... this.
(handle_threads_qxfer): Rename to ...
(handle_qxfer_threads): ... this. Adjust.
(qxfer_packets): New array.
(handle_qxfer): New function.
(handle_query): Use handle_qxfer.
commit 5f6f9139e39b1e2b926f88b884f998b733053e5f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jan 25 09:49:58 2011 +0000
Simplify XML parsing a bit.
* xml-support.h (gdb_xml_parse_quick): Declare.
* xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
from gdb_xml_create_parser_and_cleanup, and added `old_chain'
parameter.
(gdb_xml_create_parser_and_cleanup): Reimplement on top of
gdb_xml_create_parser_and_cleanup_1.
(gdb_xml_parse_quick): New.
* memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
* osdata.c (osdata_parse): Ditto.
* remote.c (remote_threads_info): Ditto.
* solib-target.c (solib_target_parse_libraries): Ditto.
* xml-syscall.c (syscall_parse_xml): Ditto.
* xml-tdesc.c (tdesc_parse_xml): Ditto.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 52 +++
gdb/gdbserver/ChangeLog | 21 ++
gdb/gdbserver/remote-utils.c | 14 +-
gdb/gdbserver/server.c | 794 ++++++++++++++++++++----------------------
gdb/gdbserver/server.h | 2 +-
gdb/h8300-tdep.c | 5 +-
gdb/memory-map.c | 23 +-
gdb/osdata.c | 22 +-
gdb/regcache.c | 87 +++---
gdb/regcache.h | 1 -
gdb/remote-fileio.c | 76 ++---
gdb/remote.c | 113 ++----
gdb/remote.h | 5 -
gdb/solib-target.c | 24 +-
gdb/xml-support.c | 47 +++-
gdb/xml-support.h | 12 +
gdb/xml-syscall.c | 8 +-
gdb/xml-tdesc.c | 7 +-
18 files changed, 654 insertions(+), 659 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 43d2956..0aeb5b7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,55 @@
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * regcache.c (struct regcache_descr): Remove outdated comment.
+ (init_regcache_descr): Remove sizeof_raw_register_valid_p
+ overallocate hack.
+ (regcache_xmalloc): Rename to ...
+ (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
+ Allocate the regcache type accordingly.
+ (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
+ (regcache_xfree): Asser the source is also readonly. Copy sizeof
+ cooked registers, not raw.
+ (regcache_dup_no_passthrough): Delete.
+ (get_thread_arch_regcache): Use regcache_xmalloc_1.
+ * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
+ mention obsolete write_register_bytes.
+ * regcache.h (regcache_dup_no_passthrough): Delete declaration.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ Stop remote_read_bytes from handling partial reads itself.
+
+ * remote-fileio.c: Include target.h.
+ (remote_fileio_write_bytes): Delete.
+ (remote_fileio_func_open, remote_fileio_func_write)
+ (remote_fileio_func_rename, remote_fileio_func_unlink): Use
+ target_read_memory.
+ (remote_fileio_func_stat): Use target_read_memory and
+ target_write_memory.
+ (remote_fileio_func_gettimeofday): Use target_write_memory.
+ (remote_fileio_func_system): Use target_read_memory.
+ * remote.c (remote_write_bytes): Make it static.
+ (remote_read_bytes): Don't handle partial reads here.
+ * remote.h (remote_read_bytes): Delete declaration.
+
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ Simplify XML parsing a bit.
+
+ * xml-support.h (gdb_xml_parse_quick): Declare.
+ * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
+ from gdb_xml_create_parser_and_cleanup, and added `old_chain'
+ parameter.
+ (gdb_xml_create_parser_and_cleanup): Reimplement on top of
+ gdb_xml_create_parser_and_cleanup_1.
+ (gdb_xml_parse_quick): New.
+ * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
+ * osdata.c (osdata_parse): Ditto.
+ * remote.c (remote_threads_info): Ditto.
+ * solib-target.c (solib_target_parse_libraries): Ditto.
+ * xml-syscall.c (syscall_parse_xml): Ditto.
+ * xml-tdesc.c (tdesc_parse_xml): Ditto.
+
2011-01-24 Kevin Buettner <kevinb@redhat.com>
* configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 2933360..9ebf150 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,24 @@
+2011-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * server.h (decode_xfer_write): Change prototype.
+ * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
+ and don't extract the annex here.
+ * server.c (decode_xfer_read): Remove `annex' parameter,
+ and don't extract the annex here.
+ (decode_xfer): New.
+ (struct qxfer): New.
+ (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
+ (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
+ (handle_qxfer_statictrace): New functions, abstracted out from
+ handle_query, and made to use the struct qxfer interface.
+ (handle_threads_qxfer_proper): Rename to ...
+ (handle_qxfer_threads_proper): ... this.
+ (handle_threads_qxfer): Rename to ...
+ (handle_qxfer_threads): ... this. Adjust.
+ (qxfer_packets): New array.
+ (handle_qxfer): New function.
+ (handle_query): Use handle_qxfer.
+
2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdbreplay.c: Shorten lines of >= 80 columns.
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index 69f102b..88ef347 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -1432,19 +1432,13 @@ decode_X_packet (char *from, int packet_len, CORE_ADDR *mem_addr_ptr,
}
/* Decode a qXfer write request. */
+
int
-decode_xfer_write (char *buf, int packet_len, char **annex, CORE_ADDR *offset,
+decode_xfer_write (char *buf, int packet_len, CORE_ADDR *offset,
unsigned int *len, unsigned char *data)
{
char ch;
-
- /* Extract and NUL-terminate the annex. */
- *annex = buf;
- while (*buf && *buf != ':')
- buf++;
- if (*buf == '\0')
- return -1;
- *buf++ = 0;
+ char *b = buf;
/* Extract the offset. */
*offset = 0;
@@ -1455,7 +1449,7 @@ decode_xfer_write (char *buf, int packet_len, char **annex, CORE_ADDR *offset,
}
/* Get encoded data. */
- packet_len -= buf - *annex;
+ packet_len -= buf - b;
*len = remote_unescape_input ((const gdb_byte *) buf, packet_len,
data, packet_len);
return 0;
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index d236cc4..a170d85 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -357,8 +357,34 @@ extern int remote_debug;
or -1 otherwise. */
static int
-decode_xfer_read (char *buf, char **annex, CORE_ADDR *ofs, unsigned int *len)
+decode_xfer_read (char *buf, CORE_ADDR *ofs, unsigned int *len)
{
+ /* After the read marker and annex, qXfer looks like a
+ traditional 'm' packet. */
+ decode_m_packet (buf, ofs, len);
+
+ return 0;
+}
+
+static int
+decode_xfer (char *buf, char **object, char **rw, char **annex, char **offset)
+{
+ /* Extract and NUL-terminate the object. */
+ *object = buf;
+ while (*buf && *buf != ':')
+ buf++;
+ if (*buf == '\0')
+ return -1;
+ *buf++ = 0;
+
+ /* Extract and NUL-terminate the read/write action. */
+ *rw = buf;
+ while (*buf && *buf != ':')
+ buf++;
+ if (*buf == '\0')
+ return -1;
+ *buf++ = 0;
+
/* Extract and NUL-terminate the annex. */
*annex = buf;
while (*buf && *buf != ':')
@@ -367,10 +393,7 @@ decode_xfer_read (char *buf, char **annex, CORE_ADDR *ofs, unsigned int *len)
return -1;
*buf++ = 0;
- /* After the read marker and annex, qXfer looks like a
- traditional 'm' packet. */
- decode_m_packet (buf, ofs, len);
-
+ *offset = buf;
return 0;
}
@@ -791,8 +814,216 @@ handle_monitor_command (char *mon)
}
}
+/* Associates a callback with each supported qXfer'able object. */
+
+struct qxfer
+{
+ /* The object this handler handles. */
+ const char *object;
+
+ /* Request that the target transfer up to LEN 8-bit bytes of the
+ target's OBJECT. The OFFSET, for a seekable object, specifies
+ the starting point. The ANNEX can be used to provide additional
+ data-specific information to the target.
+
+ Return the number of bytes actually transfered, zero when no
+ further transfer is possible, -1 on error, and -2 when the
+ transfer is not supported. Return of a positive value smaller
+ than LEN does not indicate the end of the object, only the end of
+ the transfer.
+
+ One, and only one, of readbuf or writebuf must be non-NULL. */
+ int (*xfer) (const char *annex,
+ gdb_byte *readbuf, const gdb_byte *writebuf,
+ ULONGEST offset, LONGEST len);
+};
+
+/* Handle qXfer:auxv:read. */
+
+static int
+handle_qxfer_auxv (const char *annex,
+ gdb_byte *readbuf, const gdb_byte *writebuf,
+ ULONGEST offset, LONGEST len)
+{
+ if (the_target->read_auxv == NULL || writebuf != NULL)
+ return -2;
+
+ if (annex[0] != '\0' || !target_running ())
+ return -1;
+
+ return (*the_target->read_auxv) (offset, readbuf, len);
+}
+
+/* Handle qXfer:features:read. */
+
+static int
+handle_qxfer_features (const char *annex,
+ gdb_byte *readbuf, const gdb_byte *writebuf,
+ ULONGEST offset, LONGEST len)
+{
+ const char *document;
+ size_t total_len;
+
+ if (writebuf != NULL)
+ return -2;
+
+ if (!target_running ())
+ return -1;
+
+ /* Grab the correct annex. */
+ document = get_features_xml (annex);
+ if (document == NULL)
+ return -1;
+
+ total_len = strlen (document);
+
+ if (offset > total_len)
+ return -1;
+
+ if (offset + len > total_len)
+ len = total_len - offset;
+
+ memcpy (readbuf, document + offset, len);
+ return len;
+}
+
+/* Handle qXfer:libraries:read. */
+
+static int
+handle_qxfer_libraries (const char *annex,
+ gdb_byte *readbuf, const gdb_byte *writebuf,
+ ULONGEST offset, LONGEST len)
+{
+ unsigned int total_len;
+ char *document, *p;
+ struct inferior_list_entry *dll_ptr;
+
+ if (writebuf != NULL)
+ return -2;
+
+ if (annex[0] != '\0' || !target_running ())
+ return -1;
+
+ /* Over-estimate the necessary memory. Assume that every character
+ in the library name must be escaped. */
+ total_len = 64;
+ for (dll_ptr = all_dlls.head; dll_ptr != NULL; dll_ptr = dll_ptr->next)
+ total_len += 128 + 6 * strlen (((struct dll_info *) dll_ptr)->name);
+
+ document = malloc (total_len);
+ if (document == NULL)
+ return -1;
+
+ strcpy (document, "<library-list>\n");
+ p = document + strlen (document);
+
+ for (dll_ptr = all_dlls.head; dll_ptr != NULL; dll_ptr = dll_ptr->next)
+ {
+ struct dll_info *dll = (struct dll_info *) dll_ptr;
+ char *name;
+
+ strcpy (p, " <library name=\"");
+ p = p + strlen (p);
+ name = xml_escape_text (dll->name);
+ strcpy (p, name);
+ free (name);
+ p = p + strlen (p);
+ strcpy (p, "\"><segment address=\"");
+ p = p + strlen (p);
+ sprintf (p, "0x%lx", (long) dll->base_addr);
+ p = p + strlen (p);
+ strcpy (p, "\"/></library>\n");
+ p = p + strlen (p);
+ }
+
+ strcpy (p, "</library-list>\n");
+
+ total_len = strlen (document);
+
+ if (offset > total_len)
+ {
+ free (document);
+ return -1;
+ }
+
+ if (offset + len > total_len)
+ len = total_len - offset;
+
+ memcpy (readbuf, document + offset, len);
+ free (document);
+ return len;
+}
+
+/* Handle qXfer:osadata:read. */
+
+static int
+handle_qxfer_osdata (const char *annex,
+ gdb_byte *readbuf, const gdb_byte *writebuf,
+ ULONGEST offset, LONGEST len)
+{
+ if (the_target->qxfer_osdata == NULL || writebuf != NULL)
+ return -2;
+
+ return (*the_target->qxfer_osdata) (annex, readbuf, NULL, offset, len);
+}
+
+/* Handle qXfer:siginfo:read and qXfer:siginfo:write. */
+
+static int
+handle_qxfer_siginfo (const char *annex,
+ gdb_byte *readbuf, const gdb_byte *writebuf,
+ ULONGEST offset, LONGEST len)
+{
+ if (the_target->qxfer_siginfo == NULL)
+ return -2;
+
+ if (annex[0] != '\0' || !target_running ())
+ return -1;
+
+ return (*the_target->qxfer_siginfo) (annex, readbuf, writebuf, offset, len);
+}
+
+/* Handle qXfer:spu:read and qXfer:spu:write. */
+
+static int
+handle_qxfer_spu (const char *annex,
+ gdb_byte *readbuf, const gdb_byte *writebuf,
+ ULONGEST offset, LONGEST len)
+{
+ if (the_target->qxfer_spu == NULL)
+ return -2;
+
+ if (!target_running ())
+ return -1;
+
+ return (*the_target->qxfer_spu) (annex, readbuf, writebuf, offset, len);
+}
+
+/* Handle qXfer:statictrace:read. */
+
+static int
+handle_qxfer_statictrace (const char *annex,
+ gdb_byte *readbuf, const gdb_byte *writebuf,
+ ULONGEST offset, LONGEST len)
+{
+ ULONGEST nbytes;
+
+ if (writebuf != NULL)
+ return -2;
+
+ if (annex[0] != '\0' || !target_running () || current_traceframe == -1)
+ return -1;
+
+ if (traceframe_read_sdata (current_traceframe, offset,
+ readbuf, len, &nbytes))
+ return -1;
+ return nbytes;
+}
+
+/* Helper for handle_qxfer_threads. */
+
static void
-handle_threads_qxfer_proper (struct buffer *buffer)
+handle_qxfer_threads_proper (struct buffer *buffer)
{
struct inferior_list_entry *thread;
@@ -826,16 +1057,21 @@ handle_threads_qxfer_proper (struct buffer *buffer)
buffer_grow_str0 (buffer, "</threads>\n");
}
+/* Handle qXfer:threads:read. */
+
static int
-handle_threads_qxfer (const char *annex,
- unsigned char *readbuf,
- CORE_ADDR offset, int length)
+handle_qxfer_threads (const char *annex,
+ gdb_byte *readbuf, const gdb_byte *writebuf,
+ ULONGEST offset, LONGEST len)
{
static char *result = 0;
static unsigned int result_length = 0;
- if (annex && strcmp (annex, "") != 0)
- return 0;
+ if (writebuf != NULL)
+ return -2;
+
+ if (!target_running () || annex[0] != '\0')
+ return -1;
if (offset == 0)
{
@@ -847,7 +1083,7 @@ handle_threads_qxfer (const char *annex,
buffer_init (&buffer);
- handle_threads_qxfer_proper (&buffer);
+ handle_qxfer_threads_proper (&buffer);
result = buffer_finish (&buffer);
result_length = strlen (result);
@@ -863,13 +1099,135 @@ handle_threads_qxfer (const char *annex,
return 0;
}
- if (length > result_length - offset)
- length = result_length - offset;
+ if (len > result_length - offset)
+ len = result_length - offset;
+
+ memcpy (readbuf, result + offset, len);
+
+ return len;
+}
+
+static const struct qxfer qxfer_packets[] =
+ {
+ { "auxv", handle_qxfer_auxv },
+ { "features", handle_qxfer_features },
+ { "libraries", handle_qxfer_libraries },
+ { "osdata", handle_qxfer_osdata },
+ { "siginfo", handle_qxfer_siginfo },
+ { "spu", handle_qxfer_spu },
+ { "statictrace", handle_qxfer_statictrace },
+ { "threads", handle_qxfer_threads },
+ };
+
+static int
+handle_qxfer (char *own_buf, int packet_len, int *new_packet_len_p)
+{
+ int i;
+ char *object;
+ char *rw;
+ char *annex;
+ char *offset;
+
+ if (strncmp (own_buf, "qXfer:", 6) != 0)
+ return 0;
+
+ /* Grab the object, r/w and annex. */
+ if (decode_xfer (own_buf + 6, &object, &rw, &annex, &offset) < 0)
+ {
+ write_enn (own_buf);
+ return 1;
+ }
+
+ for (i = 0;
+ i < sizeof (qxfer_packets) / sizeof (qxfer_packets[0]);
+ i++)
+ {
+ const struct qxfer *q = &qxfer_packets[i];
+
+ if (strcmp (object, q->object) == 0)
+ {
+ if (strcmp (rw, "read") == 0)
+ {
+ unsigned char *data;
+ int n;
+ CORE_ADDR ofs;
+ unsigned int len;
- memcpy (readbuf, result + offset, length);
+ /* Grab the offset and length. */
+ if (decode_xfer_read (offset, &ofs, &len) < 0)
+ {
+ write_enn (own_buf);
+ return 1;
+ }
+
+ /* Read one extra byte, as an indicator of whether there is
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-25 9:10 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2011-01-25 9:10 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via ff1c7e2d8dadc64b58319e548f50ff2d3a43b79c (commit)
via d1a96080833408808c09bdb6c9263b9abe27ac39 (commit)
via 7f75bec967e52b1728936a4942e633a459b32202 (commit)
via f0a59e40849fe884f59e27868acc4a6b3d53956f (commit)
via eec8cd4c7db8c8a249a159b5e6694ff3e7913133 (commit)
via bc164ebe2a8cc9ee4f3831ffece97ddc9aa73439 (commit)
via b8ab6989f1a3bf5ee737b1ff6752772474c46dcd (commit)
via cb242295d1739b8ccb64e4edb9fb66d253d44c16 (commit)
via eaa4eac3f2b0b5b4364b7946d6d134ee618b0588 (commit)
via b5dd4e100992d41febd4276476a5aad99d1355f0 (commit)
via 90a763964dba5318d091dc839bc139ba19bdd703 (commit)
via 406f217393fa9f9cd68c600ce672ad9808da69bf (commit)
via 7142fa78824eaeb58b8276aeda013c300def656f (commit)
via f5e248ca1da7de9a570423cb568b79e50ecdbbd9 (commit)
via 17bbc3495ddc9adff2fbc2d902a4511ef50d9b8a (commit)
via 3ee1ceb823158a147782c07543457b39fffb4e88 (commit)
via a6c859acc211788f210ce8505afa9d75b71f981e (commit)
via 5660414653f6f44057a2ad8aab70d70b863376e5 (commit)
via 2a7dda4a72a710c38715f40663cb6e7308a1203b (commit)
via 19d48d461fee68e8dfa81f2fb2579182f432789c (commit)
via b14ab01fef68b19e497f0551a11584850c1a475e (commit)
via 783c9fc7bfd1b52ebe9a3f983c70e0405c7f76d7 (commit)
via 1db76bea462656feddb14384468b1ea608f47769 (commit)
via 5bfcc1f7c5a8bd08ed8b12f0dd36f0bfd199918b (commit)
via 8e89a9a6dbd26afab1a3d8aa6bd36da38755ea04 (commit)
via a76d6701cc58269fa7ef5e3c388b3bc697f4d9a7 (commit)
via f3afb768df121f0f44d56c373b3c042a101e1bb7 (commit)
via 2018673bc70edbc008000fa809f9b64343b8f337 (commit)
via be02c20dedf78058576c219353bb54b84da9617b (commit)
via b6100e6b9fb664d688414a575523316b07e5e3a4 (commit)
via 0169803b39156cc778373af253395e372a66aeb7 (commit)
via 42294ab40a733dbca9258929d0a6ec72e3059fbc (commit)
via 797407ac8fed56f60655bce2083f199296e1f5f4 (commit)
via ab3d3657a25c9555d1462e569bde72066f866a82 (commit)
via 70891828c8385f7d7eca68d063ee3e69e3f77141 (commit)
via 35694c442ca814c1454dccbb7c202d313880d2f3 (commit)
via e10622a6c9918ffc2be5a69897d4604999c8eb1a (commit)
via 039d6a9cc665580542d420dda3303792d25bcc75 (commit)
via 4cae3afdcb74147064e2c7193671d6c825ad0afd (commit)
via 4ee4798866cca547cbcccd2768a164d1cd154b5f (commit)
via a285ca111a1987a92c657dcc9ef9d5c506b6ddd9 (commit)
from 54cd47005c5ee2158c538f725502b10fedadefc9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ff1c7e2d8dadc64b58319e548f50ff2d3a43b79c
Merge: 54cd470 d1a9608
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jan 25 10:10:36 2011 +0100
Merge remote branch 'gdb/master'
commit d1a96080833408808c09bdb6c9263b9abe27ac39
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 25 00:00:32 2011 +0000
*** empty log message ***
commit 7f75bec967e52b1728936a4942e633a459b32202
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 24 23:00:05 2011 +0000
daily update
commit f0a59e40849fe884f59e27868acc4a6b3d53956f
Author: Kevin Buettner <kevinb@redhat.com>
Date: Mon Jan 24 21:34:18 2011 +0000
* configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
with remote-mips.o added to gdb_target_obs.
* Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
commit eec8cd4c7db8c8a249a159b5e6694ff3e7913133
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Jan 24 21:28:11 2011 +0000
* ada-valprint.c (val_print_packed_array_elements): Pass the
correct struct value to val_print.
(ada_val_print_1): Ditto.
commit bc164ebe2a8cc9ee4f3831ffece97ddc9aa73439
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Jan 24 18:54:13 2011 +0000
2011-01-24 Pedro Alves <pedro@codesourcery.com>
Don't lose embedded_offset in printing routines throughout.
gdb/
* valprint.h (val_print_array_elements): Change prototype.
* valprint.c (val_print_array_elements): Add `embedded_offset'
parameter, and adjust to pass it down to val_print, while passing
`valaddr' or `address' unmodified. Take embedded_offset into
account when checking repetitions.
* c-valprint.c (c_val_print): Pass embedded_offset to
val_print_array_elements instead of adjusting `valaddr' and
`address'.
* m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
embedded_offset to val_print_array_elements instead of adjusting
`valaddr'.
* p-lang.h (pascal_object_print_value_fields): Adjust prototype.
* p-valprint.c (pascal_val_print): Pass embedded_offset to
val_print_array_elements and pascal_object_print_value_fields
instead of adjusting `valaddr'.
(pascal_object_print_value_fields): Add `offset' parameter, and
adjust to use it.
(pascal_object_print_value): Add `offset' parameter, and adjust to
use it.
(pascal_object_print_static_field): Use
value_contents_for_printing/value_embedded_offset, rather than
value_contents.
* ada-valprint.c (val_print_packed_array_elements): Add `offset'
parameter, and adjust to use it. Use
value_contents_for_printing/value_embedded_offset, rather than
value_contents.
(ada_val_print): Rename `valaddr0' parameter to `valaddr'.
(ada_val_print_array): Add `offset' parameter, and adjust to use
it.
(ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
`embedded_offset' to `offset'. Don't re-adjust `valaddr'.
Instead work with offsets. Use
value_contents_for_printing/value_embedded_offset, rather than
value_contents. Change `defer_val_int' local type to CORE_ADDR,
and use value_from_pointer to extract a target pointer, rather
than value_from_longest.
(print_variant_part): Add `offset' parameter. Replace
`outer_valaddr' parameter by a new `outer_offset' parameter.
Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
(ada_value_print): Use
value_contents_for_printing/value_embedded_offset, rather than
value_contents.
(print_record): Add `offset' parameter, and adjust to pass it
down.
(print_field_values): Add `offset' parameter. Replace
`outer_valaddr' parameter by a new `outer_offset' parameter.
Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
Use value_contents_for_printing/value_embedded_offset, rather than
value_contents.
* d-valprint.c (dynamic_array_type): Use
value_contents_for_printing/value_embedded_offset, rather than
value_contents.
* jv-valprint.c (java_print_value_fields): Add `offset' parameter.
Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
(java_print_value_fields): Take `offset' into account. Don't
re-adjust `valaddr'. Instead pass down adjusted offsets.
(java_val_print): Take `embedded_offset' into account. Pass it to
java_print_value_fields.
* f-valprint.c (f77_print_array_1): Add `embedded_offset'
parameter. Don't re-adjust `valaddr' or `address'. Instead pass
down adjusted offsets.
(f77_print_array): Add `embedded_offset' parameter. Pass it down.
(f_val_print): Take `embedded_offset' into account.
gdb/testsuite/
* gdb.base/printcmds.c (some_struct): New struct and instance.
* gdb.base/printcmds.exp (test_print_repeats_embedded_array): New
procedure.
<global scope>: Call it.
commit b8ab6989f1a3bf5ee737b1ff6752772474c46dcd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 24 00:00:03 2011 +0000
*** empty log message ***
commit cb242295d1739b8ccb64e4edb9fb66d253d44c16
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jan 23 23:00:05 2011 +0000
daily update
commit eaa4eac3f2b0b5b4364b7946d6d134ee618b0588
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 23 00:00:02 2011 +0000
*** empty log message ***
commit b5dd4e100992d41febd4276476a5aad99d1355f0
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jan 22 23:00:05 2011 +0000
daily update
commit 90a763964dba5318d091dc839bc139ba19bdd703
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Sat Jan 22 10:16:28 2011 +0000
bfd/
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
common sections too.
ld/
* plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
private data and GP size.
commit 406f217393fa9f9cd68c600ce672ad9808da69bf
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 22 00:00:02 2011 +0000
*** empty log message ***
commit 7142fa78824eaeb58b8276aeda013c300def656f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 21 23:00:05 2011 +0000
daily update
commit f5e248ca1da7de9a570423cb568b79e50ecdbbd9
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 21 18:56:39 2011 +0000
move handing of "set interactive-mode" to gdb_has_a_terminal
The real purpose of this setting is really to override what the debugger
would otherwise guess from checking the stdin settings. So it seems
more natural to see this setting being handled inside gdb_has_a_terminal
rather than input_is_terminal (which checks for other things, such as
whether the input is stdin, for instance).
This patch also adjust the command help and the associated section in
the GDB Manual to be a little clearer about that.
gdb/ChangeLog:
* inflow.c: Include "gdbcmd.h".
(interactive_mode): New static global, moved here from top.c.
(show_interactive_mode): New function, moved here from top.c.
use gdb_has_a_terminal instead of input_from_terminal_p to
determine the current mode.
(gdb_has_a_terminal): Add handling of the "iteractive-mode"
setting.
(_initialize_inflow): Add the "set/show interactive-mode"
commands. Moved here from top.c, after having adjusted slightly
the help text.
* top.c (interactive_mode, show_interactive_mode): Delete, moved
to inflow.c.
(input_from_terminal_p): Remove handling of "interactive-mode"
setting, moved to infow.c.
(init_main): Remove creation of the "set/show interactive-mode"
commands, moved to inflow.c.
gdb/doc/ChangeLog:
* gdb.texinfo (Other Misc Settings): Rework part of the
documentation of the "set interactive mode" command.
commit 17bbc3495ddc9adff2fbc2d902a4511ef50d9b8a
Author: kwerner <kwerner>
Date: Fri Jan 21 14:05:51 2011 +0000
gdb/testsuite/ChangeLog
2011-01-21 Ken Werner <ken.werner@de.ibm.com>
* lib/opencl.exp (skip_opencl_tests): Add missing compile_flags
argument to the gdb_compile_opencl_hostapp call.
commit 3ee1ceb823158a147782c07543457b39fffb4e88
Author: Andreas Schwab <schwab@suse.de>
Date: Fri Jan 21 13:29:46 2011 +0000
Sync toplevel configure from GCC
2011-01-21 Andreas Schwab <schwab@redhat.com>
* configure.ac: Use AS_HELP_STRING throughout.
* configure: Regenerate.
2011-01-18 Jie Zhang <jie.zhang@analog.com>
* configure.ac (bfin-*-*): Remove gdb from noconfigdirs.
* configure: Regenerate.
commit a6c859acc211788f210ce8505afa9d75b71f981e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 21 00:53:10 2011 +0000
* ppc-opc.c (NON32, NO371): Remove PPC_OPCODE_PPCPS.
commit 5660414653f6f44057a2ad8aab70d70b863376e5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 21 00:00:33 2011 +0000
*** empty log message ***
commit 2a7dda4a72a710c38715f40663cb6e7308a1203b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jan 20 23:00:04 2011 +0000
daily update
commit 19d48d461fee68e8dfa81f2fb2579182f432789c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 20 00:00:32 2011 +0000
*** empty log message ***
commit b14ab01fef68b19e497f0551a11584850c1a475e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jan 19 23:00:05 2011 +0000
daily update
commit 783c9fc7bfd1b52ebe9a3f983c70e0405c7f76d7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jan 19 20:41:10 2011 +0000
[NEWS/ia64-hpux] Add entry for native ia64-hpux support
gdb/ChangeLog:
* NEWS: Add entry for native ia64-hpux support.
commit 1db76bea462656feddb14384468b1ea608f47769
Author: qiyao <qiyao>
Date: Wed Jan 19 20:38:41 2011 +0000
2011-01-19 Yao Qi <yao@codesourcery.com>
* lib/dwarf.exp (dwarf2_support): Change supported targets to a
positve list.
commit 5bfcc1f7c5a8bd08ed8b12f0dd36f0bfd199918b
Author: qiyao <qiyao>
Date: Wed Jan 19 20:26:08 2011 +0000
2011-01-19 Yao Qi <yao@codesourcery.com>
* gdb.asm/asm-source.exp: Replace ARM target triplet with a
canonical form.
Remove "xscale-*-*"
* gdb.xml/tdesc-regs.exp: Likewise.
* gdb.python/py-section-script.exp: Replace ARM target triplet
with canonical form.
Match arm*-*-symbianelf*.
* gdb.base/dup-sect.exp: Likewise.
* lib/dwarf.exp: New.
* gdb.dwarf2/callframecfa.exp: Check dwarf2 support by routine
dwarf2_support.
* gdb.dwarf2/dup-psym.exp: Likewise.
* gdb.dwarf2/dw2-ada-ffffffff.exp: Likewise.
* gdb.dwarf2/dw2-anonymous-func.exp: Likewise.
* gdb.dwarf2/dw2-bad-parameter-type.exp: Likewise.
* gdb.dwarf2/dw2-basic.exp: Likewise.
* gdb.dwarf2/dw2-compressed.exp: Likewise.
* gdb.dwarf2/dw2-const.exp: Likewise.
* gdb.dwarf2/dw2-cp-infcall-ref-static.exp: Likewise.
* gdb.dwarf2/dw2-cu-size.exp: Likewise.
* gdb.dwarf2/dw2-double-set-die-type.exp: Likewise.
* gdb.dwarf2/dw2-empty-namespace.exp: Likewise.
* gdb.dwarf2/dw2-filename.exp: Likewise.
* gdb.dwarf2/dw2-inheritance.exp: Likewise.
* gdb.dwarf2/dw2-inline-param.exp: Likewise.
* gdb.dwarf2/dw2-intercu.exp: Likewise.
* gdb.dwarf2/dw2-intermix.exp: Likewise.
* gdb.dwarf2/dw2-modula2-self-type.exp: Likewise.
* gdb.dwarf2/dw2-noloc.exp: Likewise.
* gdb.dwarf2/dw2-op-call.exp: Likewise.
* gdb.dwarf2/dw2-producer.exp: Likewise.
* gdb.dwarf2/dw2-ranges.exp: Likewise.
* gdb.dwarf2/dw2-ref-missing-frame.exp: Likewise.
* gdb.dwarf2/dw2-stack-boundary.exp: Likewise.
* gdb.dwarf2/dw2-strp.exp: Likewise.
* gdb.dwarf2/dw2-unresolved.exp: Likewise.
* gdb.dwarf2/implptr.exp: Likewise.
* gdb.dwarf2/mac-fileno.exp: Likewise.
* gdb.dwarf2/member-ptr-forwardref.exp: Likewise.
* gdb.dwarf2/pieces.exp: Likewise.
* gdb.dwarf2/pr11465.exp: Likewise.
* gdb.dwarf2/valop.exp: Likewise.
* gdb.dwarf2/watch-notconst.exp: Likewise.
* gdb.mi/dw2-ref-missing-frame.exp: Likewise.
commit 8e89a9a6dbd26afab1a3d8aa6bd36da38755ea04
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 19 17:21:36 2011 +0000
gdb
PR mi/8618:
* thread.c (free_thread): Free 'name'.
(print_thread_info): Emit thread name. Change CLI output.
(thread_name_command): New function.
(do_captured_thread_select): Emit newline.
(_initialize_thread): Register 'thread name' command.
* target.h (struct target_ops) <to_thread_name>: New field.
(target_thread_name): New macro.
* target.c (update_current_target): Handle to_thread_name.
* python/py-infthread.c (thpy_get_name): New function.
(thpy_set_name): Likewise.
(thread_object_getset): Add "name".
* linux-nat.c (linux_nat_thread_name): New function.
(linux_nat_add_target): Set to_thread_name.
* gdbthread.h (struct thread_info) <name>: New field.
gdb/doc
* gdb.texinfo (Threads): Document thread name output and `thread
name' command.
(Threads In Python): Document Thread.name attribute.
(GDB/MI Thread Commands): Document thread attributes.
gdb/testsuite
* gdb.python/py-infthread.exp: Add thread tests.
commit a76d6701cc58269fa7ef5e3c388b3bc697f4d9a7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 19 00:00:02 2011 +0000
*** empty log message ***
commit f3afb768df121f0f44d56c373b3c042a101e1bb7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jan 18 23:00:05 2011 +0000
daily update
commit 2018673bc70edbc008000fa809f9b64343b8f337
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jan 18 20:45:05 2011 +0000
Don't undefine elf_backend_static_tls_alignment twice.
commit be02c20dedf78058576c219353bb54b84da9617b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jan 18 20:41:07 2011 +0000
Undo Solaris damages in elf64-x86-64.c.
bfd/
2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_backend_static_tls_alignment): Undefine
after Solaris target.
(elf_backend_want_plt_sym): Redefine to 0 after Solaris target.
ld/testsuite/
2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
* ld-x86-64/ilp32-4.d: Updated.
commit b6100e6b9fb664d688414a575523316b07e5e3a4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jan 18 17:08:13 2011 +0000
Properly sign-extend byte.
gas/testsuite/
2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/intel.d: Updated.
* gas/i386/opcode-intel.d: Likewise.
* gas/i386/opcode-suffix.d: Likewise.
* gas/i386/opcode.d: Likewise.
opcodes/
2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (sIbT): New.
(b_T_mode): Likewise.
(dis386): Replace sIb with sIbT on "pushT".
(x86_64_table): Replace sIb with Ib on "aam" and "aad".
(OP_sI): Handle b_T_mode. Properly sign-extend byte.
commit 0169803b39156cc778373af253395e372a66aeb7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Jan 18 16:38:56 2011 +0000
fix printing of Ada wide characters on ppc-aix
Same problem as before: We were downcasting the character value from
int to unsigned char, which caused an overflow. The reason why we did
not see this problem before is probably related to the fact that
we're using stabs on AIX and thus characters types are defined as
a TYPE_CODE_INT (or TYPE_CODE_RANGE?).
gdb/ChangeLog:
* ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
(ada_val_print_1): Likewise.
commit 42294ab40a733dbca9258929d0a6ec72e3059fbc
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Jan 18 16:18:21 2011 +0000
[powerpc] breakpoint inserted past function end
On powerpc, the prologue scanner reads instruction after instruction,
and just skips instructions that do not affect a frame. This means
that it does not stop if if finds and unexpected instruction (which
could possibly happen with optimization, I presume). To avoid scanning
too many instructions, it tries to establish an upper limit.
The upper limit is first computed using the debugging (line) info,
but if that fails, it falls back on an arbitrary 100 bytes (or 25
instructions). The problem is that, if the function is shorter than
those 25 instructions, we run the risk of skipping the entire function
and returning a PC that's outside our function.
In the event where we can find a symbol for a given PC (and therefore
can determine function start and end addresses), but cannot find an
upper limit using skip_prologue_using_sal, then we can at least limit
make sure that the 25 instructions do not put us beyour our function.
If it does, then further reduce the upper-limit to the end of the function.
gdb/ChangeLog:
* rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
upper limit address is not greater than the function end address
when the upper limit could not be computed using the debugging
info.
commit 797407ac8fed56f60655bce2083f199296e1f5f4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jan 18 14:14:46 2011 +0000
opcodes/
* i386-init.h: Regenerated.
* i386-tbl.h: Regenerated.
commit ab3d3657a25c9555d1462e569bde72066f866a82
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jan 18 14:13:42 2011 +0000
Fix compilation for mingw64.
* coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
typecast to avoid warning.
* elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
usage.
* elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
of long for pointer to avoid warning.
(elfNN_ia64_relax_brl): Idem.
(elfNN_ia64_install_value): Idem.
* vms-alpha.c (_bfd_vms_slurp_etir): Idem.
commit 70891828c8385f7d7eca68d063ee3e69e3f77141
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 18 00:00:03 2011 +0000
*** empty log message ***
commit 35694c442ca814c1454dccbb7c202d313880d2f3
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 17 23:00:05 2011 +0000
daily update
commit e10622a6c9918ffc2be5a69897d4604999c8eb1a
Author: qneill <qneill>
Date: Mon Jan 17 18:40:34 2011 +0000
Add support for TBM instructions.
gas/
2011-01-17 Quentin Neill <quentin.neill@amd.com>
* config/tc-i386.c (cpu_arch): Add CPU_TBM_FLAGS.
* doc/c-i386.texi (i386-TBM): New section.
opcodes/
2011-01-17 Quentin Neill <quentin.neill@amd.com>
* i386-dis.c (REG_XOP_TBM_01): New.
(REG_XOP_TBM_02): New.
(reg_table): Add REG_XOP_TBM_01 and REG_XOP_TBM_02 tables.
(xop_table): Redirect to REG_XOP_TBM_01 and REG_XOP_TBM_02
entries, and add bextr instruction.
* i386-gen.c (cpu_flag_init): Add CPU_TBM_FLAGS, CpuTBM.
(cpu_flags): Add CpuTBM.
* i386-opc.h (CpuTBM) New.
(i386_cpu_flags): Add bit cputbm.
* i386-opc.tbl: Add bextr, blcfill, blci, blcic, blcmsk,
blcs, blsfill, blsic, t1mskc, and tzmsk.
* i386-init.h: Regenerated.
* i386-tbl.h: Regenerated
gas/testsuite
2011-01-17 Quentin Neill <quentin.neill@amd.com>
* gas/i386/tbm.s: New.
* gas/i386/tbm.d: New.
* gas/i386/tbm-intel.d: New.
* gas/i386/x86-64-tbm.s: New.
* gas/i386/x86-64-tbm.d: New.
* gas/i386/x86-64-tbm-intel.d: New.
* gas/i386/arch-10.d: Add tbm flag and TBM instruction pattern.
* gas/i386/arch-10.s: Add a TBM instruction.
* gas/i386/arch-10-1.l: Add TBM instruction pattern.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.
* gas/i386/x86-64-arch-2.s: Likewise.
* gas/i386/x86-64-arch-2.d: Likewise.
commit 039d6a9cc665580542d420dda3303792d25bcc75
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jan 17 16:50:39 2011 +0000
* cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
get_regcomp_error.
* utils.c: Include gdb_regex.h.
(do_regfree_cleanup): New function.
(make_regfree_cleanup): Likewise.
(get_regcomp_error): Likewise.
* gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
commit 4cae3afdcb74147064e2c7193671d6c825ad0afd
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Mon Jan 17 16:36:43 2011 +0000
bfd/
* elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
h->needs_plt when deciding whether to record a possible dynamic reloc.
ld/testsuite/
* ld-arm/arm-rel32.s, ld-arm/arm-rel32.d: New testcase.
* ld-arm/arm-elf.exp: Run it.
commit 4ee4798866cca547cbcccd2768a164d1cd154b5f
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Mon Jan 17 16:36:13 2011 +0000
bfd/
* elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
dynamic relocs for the removed section.
ld/testsuite/
* ld-arm/gc-thumb-lib.s, ld-arm/gc-thumb.s,
ld-arm/gc-thumb.d: New test.
* ld-arm/arm-elf.exp: Run it.
commit a285ca111a1987a92c657dcc9ef9d5c506b6ddd9
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jan 17 16:20:51 2011 +0000
* cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
re_compile_fastmap.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 14 +
bfd/ChangeLog | 33 +
bfd/coffcode.h | 2 +-
bfd/elf32-arm.c | 24 +-
bfd/elf32-rx.c | 1 +
bfd/elf64-x86-64.c | 3 +
bfd/elfxx-ia64.c | 10 +-
bfd/elfxx-mips.c | 7 +-
bfd/version.h | 2 +-
bfd/vms-alpha.c | 2 +-
configure | 85 +-
configure.ac | 170 +-
gdb/ChangeLog | 148 +
gdb/Makefile.in | 2 +-
gdb/NEWS | 15 +
gdb/ada-valprint.c | 197 +-
gdb/c-valprint.c | 7 +-
gdb/cli/cli-cmds.c | 26 +-
gdb/configure.tgt | 5 +
gdb/d-valprint.c | 8 +-
gdb/doc/ChangeLog | 12 +
gdb/doc/gdb.texinfo | 107 +-
gdb/f-valprint.c | 75 +-
gdb/gdb_regex.h | 4 +
gdb/gdbthread.h | 4 +
gdb/inflow.c | 36 +
gdb/jv-valprint.c | 42 +-
gdb/linux-nat.c | 38 +
gdb/m2-valprint.c | 4 +-
gdb/p-lang.h | 1 +
gdb/p-valprint.c | 48 +-
gdb/python/py-infthread.c | 59 +
gdb/rs6000-tdep.c | 9 +-
gdb/target.c | 18 +
gdb/target.h | 6 +
gdb/testsuite/ChangeLog | 68 +
gdb/testsuite/gdb.asm/asm-source.exp | 5 +-
gdb/testsuite/gdb.base/dup-sect.exp | 3 +-
gdb/testsuite/gdb.base/printcmds.c | 22 +
gdb/testsuite/gdb.base/printcmds.exp | 13 +
gdb/testsuite/gdb.dwarf2/callframecfa.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dup-psym.exp | 8 +-
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp | 9 +-
.../gdb.dwarf2/dw2-bad-parameter-type.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-basic.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-compressed.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-const.exp | 9 +-
.../gdb.dwarf2/dw2-cp-infcall-ref-static.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp | 9 +-
.../gdb.dwarf2/dw2-double-set-die-type.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-filename.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-intercu.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-intermix.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-noloc.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-op-call.exp | 11 +-
gdb/testsuite/gdb.dwarf2/dw2-producer.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-ranges.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-strp.exp | 9 +-
gdb/testsuite/gdb.dwarf2/dw2-unresolved.exp | 9 +-
gdb/testsuite/gdb.dwarf2/implptr.exp | 9 +-
gdb/testsuite/gdb.dwarf2/mac-fileno.exp | 9 +-
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp | 9 +-
gdb/testsuite/gdb.dwarf2/pieces.exp | 10 +-
gdb/testsuite/gdb.dwarf2/pr11465.exp | 9 +-
gdb/testsuite/gdb.dwarf2/valop.exp | 9 +-
gdb/testsuite/gdb.dwarf2/watch-notconst.exp | 9 +-
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp | 9 +-
gdb/testsuite/gdb.python/py-infthread.exp | 11 +
gdb/testsuite/gdb.python/py-section-script.exp | 3 +-
gdb/testsuite/gdb.threads/manythreads.exp | 3 +
gdb/testsuite/gdb.xml/tdesc-regs.exp | 5 +-
.../watch-notconst.exp => lib/dwarf.exp} | 38 +-
gdb/testsuite/lib/opencl.exp | 2 +-
gdb/thread.c | 71 +-
gdb/top.c | 38 -
gdb/utils.c | 32 +
gdb/valprint.c | 17 +-
gdb/valprint.h | 2 +-
gdb/version.in | 2 +-
opcodes/ChangeLog | 34 +
opcodes/i386-dis.c | 64 +-
opcodes/i386-gen.c | 3 +
opcodes/i386-init.h | 135 +-
opcodes/i386-opc.h | 3 +
opcodes/i386-opc.tbl | 12 +
opcodes/i386-tbl.h | 5091 ++++++++++----------
opcodes/ppc-opc.c | 7 +-
94 files changed, 4007 insertions(+), 3209 deletions(-)
copy gdb/testsuite/{gdb.dwarf2/watch-notconst.exp => lib/dwarf.exp} (50%)
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index aeb360f..30aa6ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2011-01-21 Andreas Schwab <schwab@redhat.com>
+
+ Sync from GCC:
+
+ 2011-01-21 Andreas Schwab <schwab@redhat.com>
+
+ * configure.ac: Use AS_HELP_STRING throughout.
+ * configure: Regenerate.
+
+ 2011-01-18 Jie Zhang <jie.zhang@analog.com>
+
+ * configure.ac (bfin-*-*): Remove gdb from noconfigdirs.
+ * configure: Regenerate.
+
2010-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* ltmain.sh (relink): Use absolute path when hardcoding with -L.
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 00ff8ff..9bbd329 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,36 @@
+2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
+ common sections too.
+
+2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
+ Solaris target.
+
+2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Fix compilation for mingw64.
+ * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
+ typecast to avoid warning.
+ * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
+ usage.
+ * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
+ of long for pointer to avoid warning.
+ (elfNN_ia64_relax_brl): Idem.
+ (elfNN_ia64_install_value): Idem.
+ * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
+
+2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
+
+ * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
+ h->needs_plt when deciding whether to record a possible dynamic reloc.
+
+2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
+
+ * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
+ dynamic relocs for the removed section.
+
2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 70f9851..5500f01 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4852,7 +4852,7 @@ coff_slurp_symbol_table (bfd * abfd)
to the symbol instead of the index. FIXME: This
should use a union. */
src->u.syment.n_value =
- (long) (native_symbols + src->u.syment.n_value);
+ (long) (intptr_t) (native_symbols + src->u.syment.n_value);
dst->symbol.value = src->u.syment.n_value;
src->fix_value = 1;
break;
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 6fdd500..54001a3 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -11277,21 +11277,13 @@ elf32_arm_gc_sweep_hook (bfd * abfd,
eh->plt_thumb_refcount--;
}
- if (r_type == R_ARM_ABS32
- || r_type == R_ARM_REL32
- || r_type == R_ARM_ABS32_NOI
- || r_type == R_ARM_REL32_NOI)
- for (pp = &eh->dyn_relocs; (p = *pp) != NULL; pp = &p->next)
- if (p->sec == sec)
- {
- p->count -= 1;
- if (ELF32_R_TYPE (rel->r_info) == R_ARM_REL32
- || ELF32_R_TYPE (rel->r_info) == R_ARM_REL32_NOI)
- p->pc_count -= 1;
- if (p->count == 0)
- *pp = p->next;
- break;
- }
+ for (pp = &eh->dyn_relocs; (p = *pp) != NULL; pp = &p->next)
+ if (p->sec == sec)
+ {
+ /* Everything must go for SEC. */
+ *pp = p->next;
+ break;
+ }
}
break;
@@ -11584,7 +11576,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
if ((info->shared || htab->root.is_relocatable_executable)
&& (sec->flags & SEC_ALLOC) != 0
&& ((r_type == R_ARM_ABS32 || r_type == R_ARM_ABS32_NOI)
- || (h != NULL && ! h->needs_plt
+ || (h != NULL && ! needs_plt
&& (! info->symbolic || ! h->def_regular))))
{
struct elf_dyn_relocs *p, **head;
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index 7855d5e..0a5e12c 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -20,6 +20,7 @@
#include "sysdep.h"
#include "bfd.h"
+#include "bfd_stdint.h"
#include "libbfd.h"
#include "elf-bfd.h"
#include "elf/rx.h"
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 9a3959a..343abce 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -4719,6 +4719,9 @@ elf64_l1om_elf_object_p (bfd *abfd)
#undef elf_backend_post_process_headers
#undef elf_backend_static_tls_alignment
+#undef elf_backend_want_plt_sym
+#define elf_backend_want_plt_sym 0
+
#include "elf64-target.h"
/* FreeBSD L1OM support. */
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index d42ad89..26e5919 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -636,7 +636,7 @@ elfNN_ia64_relax_br (bfd_byte *contents, bfd_vma off)
bfd_byte *hit_addr;
hit_addr = (bfd_byte *) (contents + off);
- br_slot = (long) hit_addr & 0x3;
+ br_slot = (intptr_t) hit_addr & 0x3;
hit_addr -= br_slot;
t0 = bfd_getl64 (hit_addr + 0);
t1 = bfd_getl64 (hit_addr + 8);
@@ -738,7 +738,7 @@ elfNN_ia64_relax_brl (bfd_byte *contents, bfd_vma off)
bfd_vma t0, t1, i0, i1, i2;
hit_addr = (bfd_byte *) (contents + off);
- hit_addr -= (long) hit_addr & 0x3;
+ hit_addr -= (intptr_t) hit_addr & 0x3;
t0 = bfd_getl64 (hit_addr);
t1 = bfd_getl64 (hit_addr + 8);
@@ -3874,7 +3874,7 @@ elfNN_ia64_install_value (bfd_byte *hit_addr, bfd_vma v,
switch (opnd)
{
case IA64_OPND_IMMU64:
- hit_addr -= (long) hit_addr & 0x3;
+ hit_addr -= (intptr_t) hit_addr & 0x3;
t0 = bfd_getl64 (hit_addr);
t1 = bfd_getl64 (hit_addr + 8);
@@ -3903,7 +3903,7 @@ elfNN_ia64_install_value (bfd_byte *hit_addr, bfd_vma v,
break;
case IA64_OPND_TGT64:
- hit_addr -= (long) hit_addr & 0x3;
+ hit_addr -= (intptr_t) hit_addr & 0x3;
t0 = bfd_getl64 (hit_addr);
t1 = bfd_getl64 (hit_addr + 8);
@@ -3928,7 +3928,7 @@ elfNN_ia64_install_value (bfd_byte *hit_addr, bfd_vma v,
break;
default:
- switch ((long) hit_addr & 0x3)
+ switch ((intptr_t) hit_addr & 0x3)
{
case 0: shift = 5; break;
case 1: shift = 14; hit_addr += 3; break;
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index dcf6a9e..d5e99bb 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -12597,8 +12597,11 @@ _bfd_mips_elf_merge_private_bfd_data (bfd *ibfd, bfd *obfd)
for (sec = ibfd->sections; sec != NULL; sec = sec->next)
{
/* Ignore synthetic sections and empty .text, .data and .bss sections
- which are automatically generated by gas. */
- if (strcmp (sec->name, ".reginfo")
+ which are automatically generated by gas. Also ignore fake
+ (s)common sections, since merely defining a common symbol does
+ not affect compatibility. */
+ if ((sec->flags & SEC_IS_COMMON) == 0
+ && strcmp (sec->name, ".reginfo")
&& strcmp (sec->name, ".mdebug")
&& (sec->size != 0
|| (strcmp (sec->name, ".text")
diff --git a/bfd/version.h b/bfd/version.h
index df12f23..14ba307 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20110117
+#define BFD_VERSION_DATE 20110125
#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/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 309c3a2..322de62 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -1709,7 +1709,7 @@ _bfd_vms_slurp_etir (bfd *abfd, struct bfd_link_info *info)
#if VMS_DEBUG
_bfd_vms_debug (4, "etir: %s(%d)\n",
_bfd_vms_etir_name (cmd), cmd);
- _bfd_hexdump (8, ptr, cmd_length - 4, (long) ptr);
+ _bfd_hexdump (8, ptr, cmd_length - 4, (intptr_t) ptr);
#endif
switch (cmd)
diff --git a/configure b/configure
index 5e469f4..bc408db 100755
--- a/configure
+++ b/configure
@@ -1454,69 +1454,76 @@ Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
- --enable-ld[=ARG] build ld [ARG={default,yes,no}]
+ --enable-ld[=ARG] build ld [ARG={default,yes,no}]
--disable-libquadmath do not build libquadmath directory
--disable-libquadmath-support
disable libquadmath support for Fortran
--enable-libada build libada directory
--enable-libssp build libssp directory
--enable-build-with-cxx build with C++ compiler instead of C compiler
- --disable-ppl-version-check disable check for PPL version
+ --disable-ppl-version-check
+ disable check for PPL version
--enable-cloog-backend[=BACKEND]
set the CLooG BACKEND used to either isl, ppl or
ppl-legacy (default)
--disable-cloog-version-check
disable check for CLooG version
--enable-lto enable link time optimization support
- --enable-stage1-languages[=all] choose additional languages to build during
- stage1. Mostly useful for compiler development.
- --enable-objc-gc enable use of Boehm's garbage collector with the
- GNU Objective-C runtime
+ --enable-stage1-languages[=all]
+ choose additional languages to build during stage1.
+ Mostly useful for compiler development
+ --enable-objc-gc enable use of Boehm's garbage collector with the GNU
+ Objective-C runtime
--enable-bootstrap enable bootstrapping [yes if native build]
--enable-serial-[{host,target,build}-]configure
- force sequential configuration of
- sub-packages for the host, target or build
- machine, or all sub-packages
- --enable-maintainer-mode enable make rules and dependencies not useful
- (and sometimes confusing) to the casual installer
- --enable-stage1-checking[=all] choose additional checking for stage1
- of the compiler
+ force sequential configuration of sub-packages for
+ the host, target or build machine, or all
+ sub-packages
+ --enable-maintainer-mode
+ enable make rules and dependencies not useful (and
+ sometimes confusing) to the casual installer
+ --enable-stage1-checking[=all]
+ choose additional checking for stage1 of the
+ compiler
--enable-werror enable -Werror in bootstrap stage2 and later
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-build-libsubdir=DIR Directory where to find libraries for build system
- --with-mpc=PATH specify prefix directory for installed MPC package.
- Equivalent to --with-mpc-include=PATH/include
- plus --with-mpc-lib=PATH/lib
- --with-mpc-include=PATH
- specify directory for installed MPC include files
- --with-mpc-lib=PATH specify directory for the installed MPC library
+ --with-mpc=PATH specify prefix directory for installed MPC package.
+ Equivalent to --with-mpc-include=PATH/include plus
+ --with-mpc-lib=PATH/lib
+ --with-mpc-include=PATH specify directory for installed MPC include files
+ --with-mpc-lib=PATH specify directory for the installed MPC library
--with-mpfr-dir=PATH this option has been REMOVED
--with-mpfr=PATH specify prefix directory for installed MPFR package.
- Equivalent to --with-mpfr-include=PATH/include
- plus --with-mpfr-lib=PATH/lib
+ Equivalent to --with-mpfr-include=PATH/include plus
+ --with-mpfr-lib=PATH/lib
--with-mpfr-include=PATH
specify directory for installed MPFR include files
--with-mpfr-lib=PATH specify directory for the installed MPFR library
--with-gmp-dir=PATH this option has been REMOVED
- --with-gmp=PATH specify prefix directory for the installed GMP package.
- Equivalent to --with-gmp-include=PATH/include
- plus --with-gmp-lib=PATH/lib
+ --with-gmp=PATH specify prefix directory for the installed GMP
+ package. Equivalent to
+ --with-gmp-include=PATH/include plus
+ --with-gmp-lib=PATH/lib
--with-gmp-include=PATH specify directory for installed GMP include files
--with-gmp-lib=PATH specify directory for the installed GMP library
- --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
- when linking with PPL
- --with-stage1-ldflags=FLAGS Linker flags for stage1
- -with-stage1-libs=LIBS Libraries for stage1
- --with-boot-libs=LIBS Libraries for stage2 and later
- --with-boot-ldflags=FLAGS Linker flags for stage2 and later
- --with-ppl=PATH Specify prefix directory for the installed PPL package
- Equivalent to --with-ppl-include=PATH/include
- plus --with-ppl-lib=PATH/lib
- --with-ppl-include=PATH Specify directory for installed PPL include files
- --with-ppl-lib=PATH Specify the directory for the installed PPL library
+ --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
+ linking with PPL
+ --with-stage1-ldflags=FLAGS
+ linker flags for stage1
+ --with-stage1-libs=LIBS libraries for stage1
+ --with-boot-libs=LIBS libraries for stage2 and later
+ --with-boot-ldflags=FLAGS
+ linker flags for stage2 and later
+ --with-ppl=PATH specify prefix directory for the installed PPL
+ package. Equivalent to
+ --with-ppl-include=PATH/include plus
+ --with-ppl-lib=PATH/lib
+ --with-ppl-include=PATH specify directory for installed PPL include files
+ --with-ppl-lib=PATH specify directory for the installed PPL library
--with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
package. Equivalent to
--with-cloog-include=PATH/include plus
@@ -1528,9 +1535,9 @@ Optional Packages:
--with-build-sysroot=SYSROOT
use sysroot as the system root during the build
--with-debug-prefix-map='A=B C=D ...'
- map A to B, C to D ... in debug information
---with-build-config='NAME NAME2...'
- Use config/NAME.mk build configuration
+ map A to B, C to D ... in debug information
+ --with-build-config='NAME NAME2...'
+ use config/NAME.mk build configuration
--with-build-time-tools=PATH
use given path to find target tools during the build
@@ -3260,7 +3267,7 @@ case "${target}" in
;;
bfin-*-*)
unsupported_languages="$unsupported_languages java"
- noconfigdirs="$noconfigdirs target-boehm-gc gdb"
+ noconfigdirs="$noconfigdirs target-boehm-gc"
if test x${is_cross_compiler} != xno ; then
target_configdirs="${target_configdirs} target-bsp target-cygmon"
fi
diff --git a/configure.ac b/configure.ac
index c7a86e2..1227054 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-# 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+# 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
# Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify it
@@ -344,7 +344,8 @@ esac
default_ld=
AC_ARG_ENABLE(gold,
-[[ --enable-gold[=ARG] build gold [ARG={default,yes,no}]]],
+[AS_HELP_STRING([[--enable-gold[=ARG]]],
+ [build gold @<:@ARG={default,yes,no}@:>@])],
ENABLE_GOLD=$enableval,
ENABLE_GOLD=no)
case "${ENABLE_GOLD}" in
@@ -385,7 +386,8 @@ case "${ENABLE_GOLD}" in
esac
AC_ARG_ENABLE(ld,
-[[ --enable-ld[=ARG] build ld [ARG={default,yes,no}]]],
+[AS_HELP_STRING([[--enable-ld[=ARG]]],
+ [build ld @<:@ARG={default,yes,no}@:>@])],
ENABLE_LD=$enableval,
ENABLE_LD=yes)
@@ -480,7 +482,7 @@ fi
AC_ARG_ENABLE(libada,
-[ --enable-libada build libada directory],
+[AS_HELP_STRING([--enable-libada], [build libada directory])],
ENABLE_LIBADA=$enableval,
ENABLE_LIBADA=yes)
if test "${ENABLE_LIBADA}" != "yes" ; then
@@ -488,7 +490,7 @@ if test "${ENABLE_LIBADA}" != "yes" ; then
fi
AC_ARG_ENABLE(libssp,
-[ --enable-libssp build libssp directory],
+[AS_HELP_STRING([--enable-libssp], [build libssp directory])],
ENABLE_LIBSSP=$enableval,
ENABLE_LIBSSP=yes)
@@ -711,7 +713,7 @@ case "${target}" in
;;
bfin-*-*)
unsupported_languages="$unsupported_languages java"
- noconfigdirs="$noconfigdirs target-boehm-gc gdb"
+ noconfigdirs="$noconfigdirs target-boehm-gc"
if test x${is_cross_compiler} != xno ; then
target_configdirs="${target_configdirs} target-bsp target-cygmon"
fi
@@ -1320,7 +1322,8 @@ ACX_PROG_CMP_IGNORE_INITIAL
# See if we are building gcc with C++.
AC_ARG_ENABLE(build-with-cxx,
-[ --enable-build-with-cxx build with C++ compiler instead of C compiler],
+[AS_HELP_STRING([--enable-build-with-cxx],
+ [build with C++ compiler instead of C compiler])],
ENABLE_BUILD_WITH_CXX=$enableval,
ENABLE_BUILD_WITH_CXX=no)
@@ -1334,12 +1337,17 @@ have_gmp=no
# Specify a location for mpc
# check for this first so it ends up on the link line before mpfr.
-AC_ARG_WITH(mpc, [ --with-mpc=PATH specify prefix directory for installed MPC package.
- Equivalent to --with-mpc-include=PATH/include
- plus --with-mpc-lib=PATH/lib])
-AC_ARG_WITH(mpc-include, [ --with-mpc-include=PATH
- specify directory for installed MPC include files])
-AC_ARG_WITH(mpc-lib, [ --with-mpc-lib=PATH specify directory for the installed MPC library])
+AC_ARG_WITH(mpc,
+[AS_HELP_STRING([--with-mpc=PATH],
+ [specify prefix directory for installed MPC package.
+ Equivalent to --with-mpc-include=PATH/include
+ plus --with-mpc-lib=PATH/lib])])
+AC_ARG_WITH(mpc-include,
+[AS_HELP_STRING([--with-mpc-include=PATH],
+ [specify directory for installed MPC include files])])
+AC_ARG_WITH(mpc-lib,
+[AS_HELP_STRING([--with-mpc-lib=PATH],
+ [specify directory for the installed MPC library])])
if test "x$with_mpc" != x; then
gmplibs="-L$with_mpc/lib $gmplibs"
@@ -1363,16 +1371,22 @@ fi
# Specify a location for mpfr
# check for this first so it ends up on the link line before gmp.
-AC_ARG_WITH(mpfr-dir, [ --with-mpfr-dir=PATH this option has been REMOVED],
- AC_MSG_ERROR([The --with-mpfr-dir=PATH option has been removed.
-Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH]))
-
-AC_ARG_WITH(mpfr, [ --with-mpfr=PATH specify prefix directory for installed MPFR package.
- Equivalent to --with-mpfr-include=PATH/include
- plus --with-mpfr-lib=PATH/lib])
-AC_ARG_WITH(mpfr-include, [ --with-mpfr-include=PATH
- specify directory for installed MPFR include files])
-AC_ARG_WITH(mpfr-lib, [ --with-mpfr-lib=PATH specify directory for the installed MPFR library])
+AC_ARG_WITH(mpfr-dir,
+[AS_HELP_STRING([--with-mpfr-dir=PATH], [this option has been REMOVED])],
+[AC_MSG_ERROR([The --with-mpfr-dir=PATH option has been removed.
+Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH])])
+
+AC_ARG_WITH(mpfr,
+[AS_HELP_STRING([--with-mpfr=PATH],
+ [specify prefix directory for installed MPFR package.
+ Equivalent to --with-mpfr-include=PATH/include
+ plus --with-mpfr-lib=PATH/lib])])
+AC_ARG_WITH(mpfr-include,
+[AS_HELP_STRING([--with-mpfr-include=PATH],
+ [specify directory for installed MPFR include files])])
+AC_ARG_WITH(mpfr-lib,
+[AS_HELP_STRING([--with-mpfr-lib=PATH],
+ [specify directory for the installed MPFR library])])
if test "x$with_mpfr" != x; then
gmplibs="-L$with_mpfr/lib $gmplibs"
@@ -1396,15 +1410,22 @@ if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/m
fi
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-17 13:31 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2011-01-17 13:31 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 54cd47005c5ee2158c538f725502b10fedadefc9 (commit)
via 893e939f750c3d0018aca70a5b181f7554973854 (commit)
via 0d8306bf351509bad634e46c2f85c942e9a0649e (commit)
via afb11568c4568d0b5e90c87ae26ae2f9e1a56665 (commit)
via 8714d5976f75118ff9e1b284c73b7a574369bc28 (commit)
via 0894b5fe27eb14ef6ba5a8136b9a0ccbf81c9a6e (commit)
via ed85087ca82b4eab3963a71f2e653766eb7f80fa (commit)
from dc2d67fd3e4bc8d43ece6e1e1d99094bfa380b7a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 54cd47005c5ee2158c538f725502b10fedadefc9
Merge: dc2d67f 893e939
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Mon Jan 17 13:31:20 2011 +0000
Merge remote branch 'gdb/master'
commit 893e939f750c3d0018aca70a5b181f7554973854
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Jan 17 10:34:49 2011 +0000
* p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
for internal variables.
(last_was_structop): New static variable.
(COMPLETE): New token.
(field_exp): New rule to group all '.' suffix handling.
Add mark_struct_expression calls when approriate to be able
to correctly find fields for completion.
(yylex): Adapt to handle field completion and set INTVAR when
required.
commit 0d8306bf351509bad634e46c2f85c942e9a0649e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 17 00:00:33 2011 +0000
*** empty log message ***
commit afb11568c4568d0b5e90c87ae26ae2f9e1a56665
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jan 16 23:00:06 2011 +0000
daily update
commit 8714d5976f75118ff9e1b284c73b7a574369bc28
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 16 00:00:33 2011 +0000
*** empty log message ***
commit 0894b5fe27eb14ef6ba5a8136b9a0ccbf81c9a6e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jan 15 23:00:05 2011 +0000
daily update
commit ed85087ca82b4eab3963a71f2e653766eb7f80fa
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Jan 15 15:49:46 2011 +0000
Check invalid x32 relocations.
2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
relocations.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 5 ++
bfd/elf64-x86-64.c | 33 ++++++++++++++++
bfd/version.h | 2 +-
gdb/ChangeLog | 12 ++++++
gdb/p-exp.y | 106 +++++++++++++++++++++++++++++++++++++++++++--------
gdb/version.in | 2 +-
6 files changed, 141 insertions(+), 19 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 37c49a3..00ff8ff 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
+ relocations.
+
2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 579f59c..9a3959a 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -1179,6 +1179,39 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
h = (struct elf_link_hash_entry *) h->root.u.i.link;
}
+ /* Check invalid x32 relocations. */
+ if (!ABI_64_P (abfd))
+ switch (r_type)
+ {
+ default:
+ break;
+
+ case R_X86_64_64:
+ case R_X86_64_DTPOFF64:
+ case R_X86_64_TPOFF64:
+ case R_X86_64_PC64:
+ case R_X86_64_GOTOFF64:
+ case R_X86_64_GOT64:
+ case R_X86_64_GOTPCREL64:
+ case R_X86_64_GOTPC64:
+ case R_X86_64_GOTPLT64:
+ case R_X86_64_PLTOFF64:
+ {
+ if (h)
+ name = h->root.root.string;
+ else
+ name = bfd_elf_sym_name (abfd, symtab_hdr, isym,
+ NULL);
+ (*_bfd_error_handler)
+ (_("%B: relocation %s against symbol `%s' isn't "
+ "supported in x32 mode"), abfd,
+ x86_64_elf_howto_table[r_type].name, name);
+ bfd_set_error (bfd_error_bad_value);
+ return FALSE;
+ }
+ break;
+ }
+
if (h != NULL)
{
/* Create the ifunc sections for static executables. If we
diff --git a/bfd/version.h b/bfd/version.h
index 1c1d5ea..df12f23 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20110115
+#define BFD_VERSION_DATE 20110117
#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 3788f8d..7db03c9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
+ for internal variables.
+ (last_was_structop): New static variable.
+ (COMPLETE): New token.
+ (field_exp): New rule to group all '.' suffix handling.
+ Add mark_struct_expression calls when approriate to be able
+ to correctly find fields for completion.
+ (yylex): Adapt to handle field completion and set INTVAR when
+ required.
+
2011-01-14 Yao Qi <yao@codesourcery.com>
* arm-tdep.c (arm_register_reggroup_p): FPS register is in
diff --git a/gdb/p-exp.y b/gdb/p-exp.y
index 21c3dbb..ec656d0 100644
--- a/gdb/p-exp.y
+++ b/gdb/p-exp.y
@@ -158,6 +158,7 @@ static int
parse_number (char *, int, int, YYSTYPE *);
static struct type *current_type;
+static struct internalvar *intvar;
static int leftdiv_is_integer;
static void push_current_type (void);
static void pop_current_type (void);
@@ -184,6 +185,7 @@ static int search_field;
%token <sval> STRING
%token <sval> FIELDNAME
+%token <voidval> COMPLETE
%token <ssym> NAME /* BLOCKNAME defined below to give it higher precedence. */
%token <tsym> TYPENAME
%type <sval> name
@@ -233,6 +235,7 @@ static int search_field;
%%
start : { current_type = NULL;
+ intvar = NULL;
search_field = 0;
leftdiv_is_integer = 0;
}
@@ -285,19 +288,56 @@ exp : DECREMENT '(' exp ')' %prec UNARY
{ write_exp_elt_opcode (UNOP_PREDECREMENT); }
;
-exp : exp '.' { search_field = 1; }
- FIELDNAME
- /* name */
+
+field_exp : exp '.' %prec UNARY
+ { search_field = 1; }
+ ;
+
+exp : field_exp FIELDNAME
{ write_exp_elt_opcode (STRUCTOP_STRUCT);
- write_exp_string ($4);
+ write_exp_string ($2);
+ write_exp_elt_opcode (STRUCTOP_STRUCT);
+ search_field = 0;
+ if (current_type)
+ {
+ while (TYPE_CODE (current_type)
+ == TYPE_CODE_PTR)
+ current_type =
+ TYPE_TARGET_TYPE (current_type);
+ current_type = lookup_struct_elt_type (
+ current_type, $2.ptr, 0);
+ }
+ }
+ ;
+
+exp : field_exp name
+ { mark_struct_expression ();
+ write_exp_elt_opcode (STRUCTOP_STRUCT);
+ write_exp_string ($2);
write_exp_elt_opcode (STRUCTOP_STRUCT);
search_field = 0;
if (current_type)
- { while (TYPE_CODE (current_type) == TYPE_CODE_PTR)
- current_type = TYPE_TARGET_TYPE (current_type);
+ {
+ while (TYPE_CODE (current_type)
+ == TYPE_CODE_PTR)
+ current_type =
+ TYPE_TARGET_TYPE (current_type);
current_type = lookup_struct_elt_type (
- current_type, $4.ptr, 0); };
- } ;
+ current_type, $2.ptr, 0);
+ }
+ }
+ ;
+
+exp : field_exp COMPLETE
+ { struct stoken s;
+ mark_struct_expression ();
+ write_exp_elt_opcode (STRUCTOP_STRUCT);
+ s.ptr = "";
+ s.length = 0;
+ write_exp_string (s);
+ write_exp_elt_opcode (STRUCTOP_STRUCT); }
+ ;
+
exp : exp '['
/* We need to save the current_type value. */
{ char *arrayname;
@@ -516,8 +556,19 @@ exp : variable
;
exp : VARIABLE
- /* Already written by write_dollar_variable. */
- ;
+ /* Already written by write_dollar_variable.
+ Handle current_type. */
+ { if (intvar) {
+ struct value * val, * mark;
+
+ mark = value_mark ();
+ val = value_of_internalvar (parse_gdbarch,
+ intvar);
+ current_type = value_type (val);
+ value_release_to_mark (mark);
+ }
+ }
+ ;
exp : SIZEOF '(' type ')' %prec UNARY
{ write_exp_elt_opcode (OP_LONG);
@@ -1060,8 +1111,13 @@ static char * uptok (tokstart, namelen)
uptokstart[namelen]='\0';
return uptokstart;
}
-/* Read one token, getting characters through lexptr. */
+/* This is set if the previously-returned token was a structure
+ operator '.'. This is used only when parsing to
+ do field name completion. */
+static int last_was_structop;
+
+/* Read one token, getting characters through lexptr. */
static int
yylex ()
@@ -1075,7 +1131,9 @@ yylex ()
int explen, tempbufindex;
static char *tempbuf;
static int tempbufsize;
-
+ int saw_structop = last_was_structop;
+
+ last_was_structop = 0;
retry:
prev_lexptr = lexptr;
@@ -1111,7 +1169,10 @@ yylex ()
switch (c = *tokstart)
{
case 0:
- return 0;
+ if (saw_structop && search_field)
+ return COMPLETE;
+ else
+ return 0;
case ' ':
case '\t':
@@ -1172,7 +1233,12 @@ yylex ()
case '.':
/* Might be a floating point number. */
if (lexptr[1] < '0' || lexptr[1] > '9')
- goto symbol; /* Nope, must be a symbol. */
+ {
+ if (in_parse_field)
+ last_was_structop = 1;
+ goto symbol; /* Nope, must be a symbol. */
+ }
+
/* FALL THRU into number case. */
case '0':
@@ -1430,11 +1496,17 @@ yylex ()
if (*tokstart == '$')
{
+ char c;
/* $ is the normal prefix for pascal hexadecimal values
but this conflicts with the GDB use for debugger variables
so in expression to enter hexadecimal values
we still need to use C syntax with 0xff */
write_dollar_variable (yylval.sval);
+ c = tokstart[namelen];
+ tokstart[namelen] = 0;
+ intvar = lookup_only_internalvar (++tokstart);
+ --tokstart;
+ tokstart[namelen] = c;
free (uptokstart);
return VARIABLE;
}
@@ -1454,7 +1526,7 @@ yylex ()
if (search_field && current_type)
is_a_field = (lookup_struct_elt_type (current_type, tmp, 1) != NULL);
- if (is_a_field)
+ if (is_a_field || in_parse_field)
sym = NULL;
else
sym = lookup_symbol (tmp, expression_context_block,
@@ -1469,7 +1541,7 @@ yylex ()
}
if (search_field && current_type)
is_a_field = (lookup_struct_elt_type (current_type, tmp, 1) != NULL);
- if (is_a_field)
+ if (is_a_field || in_parse_field)
sym = NULL;
else
sym = lookup_symbol (tmp, expression_context_block,
@@ -1497,7 +1569,7 @@ yylex ()
}
if (search_field && current_type)
is_a_field = (lookup_struct_elt_type (current_type, tmp, 1) != NULL);
- if (is_a_field)
+ if (is_a_field || in_parse_field)
sym = NULL;
else
sym = lookup_symbol (tmp, expression_context_block,
diff --git a/gdb/version.in b/gdb/version.in
index 5275ee7..ddb971d 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.50.20110115-cvs
+7.2.50.20110117-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-15 11:35 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2011-01-15 11:35 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via dc2d67fd3e4bc8d43ece6e1e1d99094bfa380b7a (commit)
via e09e73569d08e1331fe321d1e718981422dba1d0 (commit)
via 3203bab0c398e48e49ba8769e32d631668df0876 (commit)
via 995cd3a81fae4c618e014cd3d2d160cce8789d64 (commit)
via 4269a038b0a3f9986ba0ea9e264d1e3414be3de6 (commit)
via ef5da9c976a31b13935fc4e68b557e836bb9051c (commit)
via a3786c88ba877b599b557aedc98a4e69b4a7986f (commit)
via a1a6376c78ed5738c041dac4060103db68479004 (commit)
via 654348f5c99e8119e538c96fd974dfab2eaf4e8a (commit)
via b439e77336d08eb7a64a7c760d9775770b3d4d9a (commit)
via 2c7df889b82de365727725ce224323c1627fc4d0 (commit)
via b81a31ca876f98fe3df6cca179cd1b80f56dd634 (commit)
via 4e0d07bbdcbb3ea9765e1d044aa32526b5bddf66 (commit)
via 92f94c62fe0788276b24d4bd2245fdd67158626e (commit)
via 26d2277068ada3d73735650612ca7582dff749ce (commit)
from c382ea4cb3cd4f4adb6c38ae8fc91f2cc7b57998 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit dc2d67fd3e4bc8d43ece6e1e1d99094bfa380b7a
Merge: c382ea4 e09e735
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Jan 15 12:35:03 2011 +0100
Merge remote branch 'gdb/master'
commit e09e73569d08e1331fe321d1e718981422dba1d0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 15 00:00:03 2011 +0000
*** empty log message ***
commit 3203bab0c398e48e49ba8769e32d631668df0876
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 14 23:00:09 2011 +0000
daily update
commit 995cd3a81fae4c618e014cd3d2d160cce8789d64
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Jan 14 22:48:10 2011 +0000
Handle R_X86_64_32 like R_X86_64_64 for ILP32.
bfd/
2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
(elf_x86_64_link_hash_table_create): Set pointer_r_type.
(elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
(elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
for ILP32.
ld/testsuite/
2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
* ld-x86-64/ilp32-5.d: New.
* ld-x86-64/ilp32-5.s: Likewise.
* ld-x86-64/x86-64.exp: Run ilp32-5.
commit 4269a038b0a3f9986ba0ea9e264d1e3414be3de6
Author: qiyao <qiyao>
Date: Fri Jan 14 20:37:10 2011 +0000
2011-01-14 Yao Qi <yao@codesourcery.com>
* arm-tdep.c (arm_register_reggroup_p): FPS register is in
save_reggroup, restore_reggroup and all_reggroup.
commit ef5da9c976a31b13935fc4e68b557e836bb9051c
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 14 19:33:37 2011 +0000
new testcase printing wchar_t characters and strings
gdb/testsuite/ChangeLog:
* gdb.base/wchar.c, gdb.base/wchar.exp: New testcases.
commit a3786c88ba877b599b557aedc98a4e69b4a7986f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 14 19:33:19 2011 +0000
new testcase for Ada Wide Wide Characters and Strings
gdb/testsuite/ChangeLog:
* gdb.ada/widewide: New testcase.
commit a1a6376c78ed5738c041dac4060103db68479004
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 14 19:32:56 2011 +0000
Fix printing of Wide_Character & Wide_Wide_Character entities.
Wide_Characters and Wide_Wide_Characters are incorrectly printed.
Consider for instance:
Medium : Wide_Character := Wide_Character'Val(16#dead#);
Trying to print the value of this variable yields:
(gdb) p medium
$1 = 57005 '["ad"]'
The integer value is correct (57005 = 0xdead), but the character
representation is not, it should be:
$1 = 57005 '["dead"]'
Same for Wide_Wide_Characters.
There were two issues:
(a) The first issue was in ada-valprint, where we were assuming
that character types were 1 byte long;
(b) The second problem was in c-valprint, where we were down-casting
the integer value of the character to type `unsigned char',
causing use to lose all but the lowest byte.
gdb/ChangeLog:
* ada-valprint. (ada_printchar): Use the correct type length
in call to ada_emit_char.
* c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
commit 654348f5c99e8119e538c96fd974dfab2eaf4e8a
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Jan 14 18:39:31 2011 +0000
* solib-som.h (hpux_major_release): Declare variable here.
* solib-som.c: Remove <sys/utsname.h> header.
(DEFAULT_HPUX_MAJOR_RELEASE): New macro.
(hpux_major_release): Make global, change default value to
DEFAULT_HPUX_MAJOR_RELEASE.
(get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
* hppa-hpux-nat.c: Add <sys/utsname.h> include.
Add "solib-som.h" header.
(set_hpux_major_release): New function.
(_initialize_hppa_hpux_nat): Call set_hpux_major_release.
commit b439e77336d08eb7a64a7c760d9775770b3d4d9a
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Jan 14 18:16:34 2011 +0000
gdb: extend Linux osabi match
The current osabi default matching misses all *-uclinux tuples.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 2c7df889b82de365727725ce224323c1627fc4d0
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 14 13:53:01 2011 +0000
fix ARI warnings introduced by ia64-hpux patches
gdb/ChangeLog:
* ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
new-line at end of warning message.
(ia64_hpux_store_register): Remove trailing new-line at end of
error message.
* ia64-hpux-tdep.c: Rephrase comment.
* solib-ia64-hpux.c (struct dld_info): Change type of field
dld_flags from "long long" to ULONGEST.
commit b81a31ca876f98fe3df6cca179cd1b80f56dd634
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Jan 14 13:47:14 2011 +0000
* target.h (deprecated_child_ops): Delete declaration.
* target.c (deprecated_child_ops): Delete definition.
commit 4e0d07bbdcbb3ea9765e1d044aa32526b5bddf66
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Jan 14 13:43:16 2011 +0000
gdb/
* Makefile.in (hpux-thread.o): Delete rule.
* configure.ac: Don't check for HPUX DCE threads support.
* configure, config.in: Regenerate.
* hppa-hpux-nat.c (child_suppress_run): Delete.
(hppa_hpux_child_can_run): Delete.
(_initialize_hppa_hpux_nat): Don't override to_can_run.
* hpux-thread.c: Delete.
commit 92f94c62fe0788276b24d4bd2245fdd67158626e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Jan 14 13:38:21 2011 +0000
* Makefile.in (hpux-thread.o): Delete rule.
* configure.ac: Don't check for HPUX DCE threads support.
* configure, config.in: Regenerate.
* hppa-hpux-nat.c (child_suppress_run): Delete.
(hppa_hpux_child_can_run): Delete.
(_initialize_hppa_hpux_nat): Don't override to_can_run.
* hpux-thread.c: Delete.
commit 26d2277068ada3d73735650612ca7582dff749ce
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 14 12:35:55 2011 +0000
* bfd.c (bfd_perror): Flush stdout before and stderr after printing
error.
(_bfd_default_error_handler): Likewise.
* elf.c (print_segment_map): Likewise.
* libbfd.c (warn_deprecated): Likewise.
* som.c (som_sizeof_headers): No need to do so here.
* coff-i860.c: Replace use of printf for error messages with
_bfd_error_handler.
* coff-ppc.c: Likewise.
* coff-sh.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-dlx.c: Likewise.
* elf32-mep.c: Likewise.
* elf32-v850.c: Likewise.
* mach-o.c: Likewise.
* pef.c: Likewise.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 29 ++
bfd/bfd.c | 5 +-
bfd/coff-i860.c | 4 +-
bfd/coff-ppc.c | 16 +-
bfd/coff-sh.c | 5 +-
bfd/elf.c | 4 +-
bfd/elf32-bfin.c | 9 +-
bfd/elf32-dlx.c | 12 +-
bfd/elf32-mep.c | 9 +-
bfd/elf32-v850.c | 4 +-
bfd/elf64-x86-64.c | 20 +-
bfd/libbfd.c | 4 +-
bfd/mach-o.c | 55 +--
bfd/pef.c | 8 +-
bfd/som.c | 3 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 53 ++
gdb/Makefile.in | 5 -
gdb/ada-valprint.c | 2 +-
gdb/arm-tdep.c | 9 +-
gdb/c-valprint.c | 6 +-
gdb/config.in | 3 -
gdb/configure | 21 -
gdb/configure.ac | 16 -
gdb/configure.tgt | 3 +-
gdb/hppa-hpux-nat.c | 28 +-
gdb/hpux-thread.c | 574 -----------------------
gdb/ia64-hpux-nat.c | 4 +-
gdb/ia64-hpux-tdep.c | 10 +-
gdb/solib-ia64-hpux.c | 4 +-
gdb/solib-som.c | 28 +-
gdb/solib-som.h | 2 +
gdb/target.c | 6 -
gdb/target.h | 2 -
gdb/testsuite/ChangeLog | 8 +
gdb/testsuite/gdb.ada/widewide.exp | 47 ++
gdb/testsuite/gdb.ada/widewide/foo.adb | 27 +
gdb/testsuite/gdb.ada/widewide/pck.adb | 23 +
gdb/testsuite/gdb.ada/widewide/pck.ads | 22 +
gdb/{solib-som.h => testsuite/gdb.base/wchar.c} | 42 +-
gdb/testsuite/gdb.base/wchar.exp | 38 ++
gdb/version.in | 2 +-
42 files changed, 412 insertions(+), 762 deletions(-)
delete mode 100644 gdb/hpux-thread.c
create mode 100644 gdb/testsuite/gdb.ada/widewide.exp
create mode 100644 gdb/testsuite/gdb.ada/widewide/foo.adb
create mode 100644 gdb/testsuite/gdb.ada/widewide/pck.adb
create mode 100644 gdb/testsuite/gdb.ada/widewide/pck.ads
copy gdb/{solib-som.h => testsuite/gdb.base/wchar.c} (56%)
create mode 100644 gdb/testsuite/gdb.base/wchar.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 326b326..37c49a3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,32 @@
+2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
+ (elf_x86_64_link_hash_table_create): Set pointer_r_type.
+ (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
+ for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
+ R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
+ (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
+ for ILP32.
+
+2011-01-14 Alan Modra <amodra@gmail.com>
+
+ * bfd.c (bfd_perror): Flush stdout before and stderr after printing
+ error.
+ (_bfd_default_error_handler): Likewise.
+ * elf.c (print_segment_map): Likewise.
+ * libbfd.c (warn_deprecated): Likewise.
+ * som.c (som_sizeof_headers): No need to do so here.
+ * coff-i860.c: Replace use of printf for error messages with
+ _bfd_error_handler.
+ * coff-ppc.c: Likewise.
+ * coff-sh.c: Likewise.
+ * elf32-bfin.c: Likewise.
+ * elf32-dlx.c: Likewise.
+ * elf32-mep.c: Likewise.
+ * elf32-v850.c: Likewise.
+ * mach-o.c: Likewise.
+ * pef.c: Likewise.
+
2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
diff --git a/bfd/bfd.c b/bfd/bfd.c
index a9ce7cc..77582ec 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -1,6 +1,6 @@
/* Generic BFD library interface and support routines.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -523,10 +523,12 @@ DESCRIPTION
void
bfd_perror (const char *message)
{
+ fflush (stdout);
if (message == NULL || *message == '\0')
fprintf (stderr, "%s\n", bfd_errmsg (bfd_get_error ()));
else
fprintf (stderr, "%s: %s\n", message, bfd_errmsg (bfd_get_error ()));
+ fflush (stderr);
}
/*
@@ -723,6 +725,7 @@ _bfd_default_error_handler (const char *fmt, ...)
va_end (ap);
putc ('\n', stderr);
+ fflush (stderr);
}
/* This is a function pointer to the routine which should handle BFD
diff --git a/bfd/coff-i860.c b/bfd/coff-i860.c
index b7ada16..d50b070 100644
--- a/bfd/coff-i860.c
+++ b/bfd/coff-i860.c
@@ -1,6 +1,6 @@
/* BFD back-end for Intel i860 COFF files.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2007, 2008, 2010 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2007, 2008, 2010, 2011 Free Software Foundation, Inc.
Created mostly by substituting "860" for "386" in coff-i386.c
Harry Dolan <dolan@ssd.intel.com>, October 1995
@@ -144,7 +144,7 @@ coff_i860_reloc_nyi (bfd *abfd ATTRIBUTE_UNUSED,
char **error_message ATTRIBUTE_UNUSED)
{
reloc_howto_type *howto = reloc_entry->howto;
- fprintf (stderr, _("Relocation `%s' not yet implemented\n"), howto->name);
+ (*_bfd_error_handler) (_("relocation `%s' not yet implemented"), howto->name);
return bfd_reloc_notsupported;
}
diff --git a/bfd/coff-ppc.c b/bfd/coff-ppc.c
index 06eed24..69e10d8 100644
--- a/bfd/coff-ppc.c
+++ b/bfd/coff-ppc.c
@@ -1,6 +1,6 @@
/* BFD back-end for PowerPC Microsoft Portable Executable files.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Original version pieced together by Kim Knuttila (krk@cygnus.com)
@@ -1843,10 +1843,9 @@ ppc_coff_rtype2howto (relent, internal)
howto = ppc_coff_howto_table + IMAGE_REL_PPC_TOCREL16;
break;
default:
- fprintf (stderr,
- _("Warning: Unsupported reloc %s [%d] used -- it may not work.\n"),
- ppc_coff_howto_table[r_type].name,
- r_type);
+ (*_bfd_error_handler) (_("warning: unsupported reloc %s [%d] used -- it may not work"),
+ ppc_coff_howto_table[r_type].name,
+ r_type);
howto = ppc_coff_howto_table + r_type;
break;
}
@@ -1916,10 +1915,9 @@ coff_ppc_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
howto = ppc_coff_howto_table + r_type;
break;
default:
- fprintf (stderr,
- _("Warning: Unsupported reloc %s [%d] used -- it may not work.\n"),
- ppc_coff_howto_table[r_type].name,
- r_type);
+ (*_bfd_error_handler) (_("warning: unsupported reloc %s [%d] used -- it may not work"),
+ ppc_coff_howto_table[r_type].name,
+ r_type);
howto = ppc_coff_howto_table + r_type;
break;
}
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c
index 28ac0ab..b77af7c 100644
--- a/bfd/coff-sh.c
+++ b/bfd/coff-sh.c
@@ -1,6 +1,7 @@
/* BFD back-end for Renesas Super-H COFF binaries.
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011
+ Free Software Foundation, Inc.
Contributed by Cygnus Support.
Written by Steve Chamberlain, <sac@cygnus.com>.
Relaxing code written by Ian Lance Taylor, <ian@cygnus.com>.
@@ -517,7 +518,7 @@ sh_coff_reloc_type_lookup (abfd, code)
if (sh_reloc_map[i].bfd_reloc_val == code)
return &sh_coff_howtos[(int) sh_reloc_map[i].shcoff_reloc_val];
- fprintf (stderr, "SH Error: unknown reloc type %d\n", code);
+ (*_bfd_error_handler) (_("SH Error: unknown reloc type %d"), code);
return NULL;
}
diff --git a/bfd/elf.c b/bfd/elf.c
index de0ab61..257cc8c 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1,7 +1,7 @@
/* ELF executable support for BFD.
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
- 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -4280,10 +4280,12 @@ print_segment_map (const struct elf_segment_map *m)
(unsigned int) m->p_type);
pt = buf;
}
+ fflush (stdout);
fprintf (stderr, "%s:", pt);
for (j = 0; j < m->count; j++)
fprintf (stderr, " %s", m->sections [j]->name);
putc ('\n',stderr);
+ fflush (stderr);
}
static bfd_boolean
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c
index 56af244..8aba7ed 100644
--- a/bfd/elf32-bfin.c
+++ b/bfd/elf32-bfin.c
@@ -1,5 +1,5 @@
/* ADI Blackfin BFD support for 32-bit ELF.
- Copyright 2005, 2006, 2007, 2008, 2009, 2010
+ Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -104,7 +104,7 @@ bfin_pcrel24_reloc (bfd *abfd,
/* if rightshift is 1 and the number odd, return error. */
if (howto->rightshift && (relocation & 0x01))
{
- fprintf(stderr, "relocation should be even number\n");
+ (*_bfd_error_handler) (_("relocation should be even number"));
return bfd_reloc_overflow;
}
@@ -360,7 +360,7 @@ bfin_bfd_reloc (bfd *abfd,
/* If rightshift is 1 and the number odd, return error. */
if (howto->rightshift && (relocation & 0x01))
{
- fprintf(stderr, "relocation should be even number\n");
+ (*_bfd_error_handler) (_("relocation should be even number"));
return bfd_reloc_overflow;
}
@@ -5276,7 +5276,8 @@ bfin_finish_dynamic_symbol (bfd * output_bfd,
&& (info->symbolic
|| h->dynindx == -1 || h->forced_local) && h->def_regular)
{
- fprintf(stderr, "*** check this relocation %s\n", __FUNCTION__);
+ (*_bfd_error_handler) (_("*** check this relocation %s"),
+ __FUNCTION__);
rela.r_info = ELF32_R_INFO (0, R_BFIN_PCREL24);
rela.r_addend = bfd_get_signed_32 (output_bfd,
(sgot->contents
diff --git a/bfd/elf32-dlx.c b/bfd/elf32-dlx.c
index 6b96ac9..29b8910 100644
--- a/bfd/elf32-dlx.c
+++ b/bfd/elf32-dlx.c
@@ -1,5 +1,5 @@
/* DLX specific support for 32-bit ELF
- Copyright 2002, 2003, 2004, 2005, 2006, 2007
+ Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2011
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -139,9 +139,8 @@ elf32_dlx_relocate16 (bfd *abfd,
/* Can not support a long jump to sections other then .text. */
if (strcmp (input_section->name, symbol->section->output_section->name) != 0)
{
- fprintf (stderr,
- "BFD Link Error: branch (PC rel16) to section (%s) not supported\n",
- symbol->section->output_section->name);
+ (*_bfd_error_handler) (_("BFD Link Error: branch (PC rel16) to section (%s) not supported"),
+ symbol->section->output_section->name);
return bfd_reloc_undefined;
}
@@ -202,9 +201,8 @@ elf32_dlx_relocate26 (bfd *abfd,
/* Can not support a long jump to sections other then .text */
if (strcmp (input_section->name, symbol->section->output_section->name) != 0)
{
- fprintf (stderr,
- "BFD Link Error: jump (PC rel26) to section (%s) not supported\n",
- symbol->section->output_section->name);
+ (*_bfd_error_handler) (_("BFD Link Error: jump (PC rel26) to section (%s) not supported"),
+ symbol->section->output_section->name);
return bfd_reloc_undefined;
}
diff --git a/bfd/elf32-mep.c b/bfd/elf32-mep.c
index a6afcb5..b688d67 100644
--- a/bfd/elf32-mep.c
+++ b/bfd/elf32-mep.c
@@ -1,6 +1,6 @@
/* MeP-specific support for 32-bit ELF.
- Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
- Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
+ 2010, 2011 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -154,13 +154,14 @@ mep_reloc_type_lookup
default:
/* Pacify gcc -Wall. */
- fprintf (stderr, "mep: no reloc for code %d\n", code);
+ (*_bfd_error_handler) (_("mep: no reloc for code %d"), code);
return NULL;
}
if (mep_elf_howto_table[type].type != type)
{
- fprintf (stderr, "MeP: howto %d has type %d\n", type, mep_elf_howto_table[type].type);
+ (*_bfd_error_handler) (_("MeP: howto %d has type %d"),
+ type, mep_elf_howto_table[type].type);
abort ();
}
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index 29b2311..9e6f77d 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -1,6 +1,6 @@
/* V850-specific support for 32-bit ELF
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -480,7 +480,7 @@ v850_elf_perform_lo16_relocation (bfd *abfd, unsigned long *insn,
}
else
{
- fprintf (stderr, _("FAILED to find previous HI16 reloc\n"));
+ (*_bfd_error_handler) (_("FAILED to find previous HI16 reloc"));
return FALSE;
}
}
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 6066330..579f59c 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -495,6 +495,7 @@ struct elf_x86_64_link_hash_table
bfd_vma (*r_info) (bfd_vma, bfd_vma);
bfd_vma (*r_sym) (bfd_vma);
+ unsigned int pointer_r_type;
const char *dynamic_interpreter;
int dynamic_interpreter_size;
@@ -658,6 +659,7 @@ elf_x86_64_link_hash_table_create (bfd *abfd)
{
ret->r_info = elf64_r_info;
ret->r_sym = elf64_r_sym;
+ ret->pointer_r_type = R_X86_64_64;
ret->dynamic_interpreter = ELF64_DYNAMIC_INTERPRETER;
ret->dynamic_interpreter_size = sizeof ELF64_DYNAMIC_INTERPRETER;
}
@@ -665,6 +667,7 @@ elf_x86_64_link_hash_table_create (bfd *abfd)
{
ret->r_info = elf32_r_info;
ret->r_sym = elf32_r_sym;
+ ret->pointer_r_type = R_X86_64_32;
ret->dynamic_interpreter = ELF32_DYNAMIC_INTERPRETER;
ret->dynamic_interpreter_size = sizeof ELF32_DYNAMIC_INTERPRETER;
}
@@ -1232,6 +1235,9 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
bfd_set_error (bfd_error_bad_value);
return FALSE;
+ case R_X86_64_32:
+ if (ABI_64_P (abfd))
+ goto not_pointer;
case R_X86_64_64:
h->non_got_ref = 1;
h->pointer_equality_needed = 1;
@@ -1249,9 +1255,9 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
break;
case R_X86_64_32S:
- case R_X86_64_32:
case R_X86_64_PC32:
case R_X86_64_PC64:
+not_pointer:
h->non_got_ref = 1;
if (r_type != R_X86_64_PC32
&& r_type != R_X86_64_PC64)
@@ -1448,16 +1454,17 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
}
goto create_got;
+ case R_X86_64_32:
+ if (!ABI_64_P (abfd))
+ goto pointer;
case R_X86_64_8:
case R_X86_64_16:
- case R_X86_64_32:
case R_X86_64_32S:
/* Let's help debug shared library creation. These relocs
cannot be used in shared libs. Don't error out for
sections we don't care about, such as debug sections or
non-constant sections. */
if (info->shared
- && ABI_64_P (abfd)
&& (sec->flags & SEC_ALLOC) != 0
&& (sec->flags & SEC_READONLY) != 0)
{
@@ -1478,6 +1485,7 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
case R_X86_64_PC32:
case R_X86_64_PC64:
case R_X86_64_64:
+pointer:
if (h != NULL && info->executable)
{
/* If this reloc is in a read-only section, we might
@@ -2830,6 +2838,9 @@ elf_x86_64_relocate_section (bfd *output_bfd,
abort ();
goto do_relocation;
+ case R_X86_64_32:
+ if (ABI_64_P (output_bfd))
+ goto do_relocation;
case R_X86_64_64:
if (rel->r_addend != 0)
{
@@ -2894,7 +2905,6 @@ elf_x86_64_relocate_section (bfd *output_bfd,
continue;
}
- case R_X86_64_32:
case R_X86_64_PC32:
case R_X86_64_PC64:
case R_X86_64_PLT32:
@@ -3307,7 +3317,7 @@ elf_x86_64_relocate_section (bfd *output_bfd,
else
{
/* This symbol is local, or marked to become local. */
- if (r_type == R_X86_64_64)
+ if (r_type == htab->pointer_r_type)
{
relocate = TRUE;
outrel.r_info = htab->r_info (0, R_X86_64_RELATIVE);
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index a66d9c6..8b24378 100644
--- a/bfd/libbfd.c
+++ b/bfd/libbfd.c
@@ -1,6 +1,6 @@
/* Assorted BFD support routines, only used internally.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
+ 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -1021,6 +1021,7 @@ warn_deprecated (const char *what,
if (~(size_t) func & ~mask)
{
+ fflush (stdout);
/* Note: separate sentences in order to allow
for translation into other languages. */
if (func)
@@ -1028,6 +1029,7 @@ warn_deprecated (const char *what,
what, file, line, func);
else
fprintf (stderr, _("Deprecated %s called\n"), what);
+ fflush (stderr);
mask |= ~(size_t) func;
}
}
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index a02030e..0c0d1ac 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -1,6 +1,6 @@
/* Mach-O support for BFD.
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
- 2009, 2010
+ 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -378,8 +378,7 @@ bfd_mach_o_canonicalize_symtab (bfd *abfd, asymbol **alocation)
if (bfd_mach_o_read_symtab_symbols (abfd) != 0)
{
- fprintf (stderr,
- "bfd_mach_o_canonicalize_symtab: unable to load symbols\n");
+ (*_bfd_error_handler) (_("bfd_mach_o_canonicalize_symtab: unable to load symbols"));
return 0;
}
@@ -1251,9 +1250,8 @@ bfd_mach_o_write_contents (bfd *abfd)
case BFD_MACH_O_LC_SUB_FRAMEWORK:
break;
default:
- fprintf (stderr,
- "unable to write unknown load command 0x%lx\n",
- (unsigned long) cur->type);
+ (*_bfd_error_handler) (_("unable to write unknown load command 0x%lx"),
+ (unsigned long) cur->type);
return FALSE;
}
}
@@ -1653,8 +1651,8 @@ bfd_mach_o_read_symtab_symbol (bfd *abfd,
if (bfd_seek (abfd, symoff, SEEK_SET) != 0
|| bfd_bread ((void *) buf, symwidth, abfd) != symwidth)
{
- fprintf (stderr, "bfd_mach_o_read_symtab_symbol: unable to read %d bytes at %lu\n",
- symwidth, (unsigned long) symoff);
+ (*_bfd_error_handler) (_("bfd_mach_o_read_symtab_symbol: unable to read %d bytes at %lu"),
+ symwidth, (unsigned long) symoff);
return -1;
}
@@ -1670,8 +1668,9 @@ bfd_mach_o_read_symtab_symbol (bfd *abfd,
if (stroff >= sym->strsize)
{
- fprintf (stderr, "bfd_mach_o_read_symtab_symbol: symbol name out of range (%lu >= %lu)\n",
- (unsigned long) stroff, (unsigned long) sym->strsize);
+ (*_bfd_error_handler) (_("bfd_mach_o_read_symtab_symbol: symbol name out of range (%lu >= %lu)"),
+ (unsigned long) stroff,
+ (unsigned long) sym->strsize);
return -1;
}
@@ -1754,23 +1753,23 @@ bfd_mach_o_read_symtab_symbol (bfd *abfd,
/* Mach-O uses 0 to mean "no section"; not an error. */
if (section != 0)
{
- fprintf (stderr, "bfd_mach_o_read_symtab_symbol: "
- "symbol \"%s\" specified invalid section %d (max %lu): setting to undefined\n",
- s->symbol.name, section, mdata->nsects);
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-14 8:04 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2011-01-14 8:04 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via c382ea4cb3cd4f4adb6c38ae8fc91f2cc7b57998 (commit)
via 4519eb03863a0545796b91f72db9905ad4d54dd3 (commit)
via 16b42d642118a4ecd243a92a3d30e6ec9ef79a61 (commit)
via 0c2a9d801d0e4408bf4d0f2626113dbe0975b1ab (commit)
via 42f46242b4239897ce78996e8031fb2b453b0f3a (commit)
via e00546ebc6c70d040e7c60c62bb36b365faf0fd4 (commit)
via b5963657c4f9bb09156162a65cc035ea55d1ae7f (commit)
via 3c2918a7e5bb6ae18918c69709484aa78428b4a5 (commit)
via 0e52d299faed3f6430189eb5b1b3e26c62258693 (commit)
via af373e307707382768713c023fcb27fefa354cf9 (commit)
via b18c57162019bdff244dc29515e319ea9d13626b (commit)
via 20541a0f11ccd017f244324bef98525430afd5c8 (commit)
via 2a1a3a7404d1f4acd07972de3d032c73d8d58560 (commit)
via 48bb01b777ff8fb052f1a5929ba8405e7d743292 (commit)
via 061e2c2f4e9bcb4e0ac90e88f7f7d268bde804c7 (commit)
via 0da3e49c580365820be2b987b249440a20cb7a3c (commit)
via d91fc7a0c85a7c766dffe52fdffc0045d3f9bc0f (commit)
via b953243d1c850a363213d86756758781d3cee226 (commit)
via 2c6b777e7c2cd56d6f5630375e33c64cefc129e5 (commit)
via 84c64d73f27c2def9f23dc6cfd1171da907ce3a1 (commit)
via a60996756955cc8cad77994629d622fed5572f16 (commit)
via 8fefa6e4f261647761bdcaa766a146870400332e (commit)
via b821d466c42caf0af01fb9ce64633ee81f0aca62 (commit)
via 80c01fc5c301000b6100ec2f19524415dbe5926d (commit)
via 840a7679a7dbbba41eb9c4ec9aadd691c6e22ca0 (commit)
via c9ac506053cefef4c28b5f516b473dd6b8246814 (commit)
via 29c91bff191d72fd6250268f2d7a7404fefc6b06 (commit)
via f478247912cdbcffe6133771aefc630e3add50cc (commit)
via db3e7c12614c66fb97a6ab699234ff38645297d9 (commit)
via a9f87e3912fbba019d1455b48e87b078b9521f37 (commit)
via 1342d6935c17dabec76c6aeab259af16382dcb87 (commit)
via a086a77f42fecf900f7d8c483479a65b140dc9be (commit)
via e4c94ef2808942f5b48023bf9970d1baf45c34ed (commit)
via 283012c3d7de73c3943d8e8d88dbb634fb468d2a (commit)
via 462473a4920f487e6ace773f068575010a766ea2 (commit)
via 499de1b6987b0d26b03ac25e06ad41dbc64f5f26 (commit)
via 1be1f93a991dd0172debb6f6f5371b82fd3e950c (commit)
via c274fff2b9736ccb8d58fe890ce39109585bc477 (commit)
via a5df084452a0c35f114f019854983a8cf7fdc1e4 (commit)
via c2e02cfa56813570cca008cd86491918abcdd4b8 (commit)
via 03a69f086df284607606d74838b772c05cc9793e (commit)
via a99699255d04d1068a4807a119c5a2b967f6d6f1 (commit)
via 91d92eade9b57f7baaa2c255d07ca42347f9204b (commit)
via 601e037e8e18057678379ee347c5a4f02874cf33 (commit)
via 5a26f459fc426a89e68d9e14d3672c2a8c67b15a (commit)
via b83c685cd25409cd1f384da01d3cd426b2efdbe3 (commit)
via 34669dd2ed9725f034bb56c05ed53b5204951195 (commit)
via 75a879d324cc7c934141a19636796b0e6a413863 (commit)
via b0f93df7fecd942b547f3f26138b8d4e524ceb77 (commit)
via ba15817d6ccb5496a44e51a6e9a7cb82e93de84c (commit)
via 93cb87058b1b0557ca9d766f5c0363bd437dcc8c (commit)
via 1f5de7484fa5977a31f02b218a1b745ea3d908bd (commit)
via afd0ae8df48a2757ca2e090f248aa182c767fb66 (commit)
via f7c014ebf61934b43a9eaa549cbec124fad44aab (commit)
from e88a6525f9ca04aad5afa8ddb045afb31195d037 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit c382ea4cb3cd4f4adb6c38ae8fc91f2cc7b57998
Merge: e88a652 4519eb0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jan 14 09:03:53 2011 +0100
Merge remote branch 'gdb/master'
commit 4519eb03863a0545796b91f72db9905ad4d54dd3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Jan 14 04:23:58 2011 +0000
Fix x86-64 ILP32 shared library.
bfd/
2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
swap_reloca_out.
(elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
(elf_x86_64_check_relocs): Align relocation section to 4 byte
for 32bit.
(elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
ELF_ST_TYPE.
(elf_x86_64_finish_dynamic_symbol): Updated.
(elf_x86_64_finish_dynamic_sections): Don't use
Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
bfd_elf64_swap_dyn_out.
ld/testsuite/
2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
* ld-x86-64/ilp32-4.d: New.
* ld-x86-64/x86-64.exp: Run ilp32-4.
commit 16b42d642118a4ecd243a92a3d30e6ec9ef79a61
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 14 02:17:57 2011 +0000
PR ld/12339
* elf32-arm.c (allocate_dynrelocs): Don't set up eh before
following bfd_link_hash_warning symbol link.
commit 0c2a9d801d0e4408bf4d0f2626113dbe0975b1ab
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 14 00:00:03 2011 +0000
*** empty log message ***
commit 42f46242b4239897ce78996e8031fb2b453b0f3a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 23:55:28 2011 +0000
delete hpux_pid_to_str (unused)
This function is unused, and the default formatting routine does
just fine, I think. On pa-hpux:
[New process 12565, lwp 2513]
[New process 12565, lwp 2514]
So this patch deletes it.
gdb/ChangeLog:
* hpux-thread.c (hpux_pid_to_str): Delete.
commit e00546ebc6c70d040e7c60c62bb36b365faf0fd4
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 23:01:22 2011 +0000
[Ada] Fix printing of Wide_Wide_Strings
This fixes the printing of Wide_Wide_String objects. For instance,
consider:
My_WWS : Wide_Wide_String := " helo";
Before this patch is applied, GDB prints:
(gdb) print my_wws
$1 = " ["00"]h["00"]e"
gdb/ChangeLog:
* ada-valprint.c (ada_emit_char): Remove strange code.
Check that c is <= UCHAR_MAX before passing it to isascii.
(char_at): Do not assume that TYPE_LEN is either 1 or 2.
commit b5963657c4f9bb09156162a65cc035ea55d1ae7f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 23:01:03 2011 +0000
problem sourcing GDB script in interactive-mode on
When interactive-mode is not auto, GDB always uses that setting to
determine whether to act as if the input stream is a terminal or not.
However, this setting should only be honored if the input stream is
the standard input stream. Otherwise, we run into trouble while
source-ing a GDB script, as shown below (on x86_64-linux):
% cat script
print 1
print 2
% gdb -q
(gdb) set interactive-mode on
(gdb) source script
(gdb) print 3
$1 = 3
The lack of output and the fact that the "print 3" command returned
a value saved in $1 (as opposed to $3) indicates that the script was
not even evaluated at all.
gdb/ChangeLog:
* top.c (input_from_terminal_p): Restrict the use of interactive_mode
to the case where instream is stdin.
gdb/testsuite/ChangeLog:
* gdb.base/interact.exp: New testcase.
commit 3c2918a7e5bb6ae18918c69709484aa78428b4a5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jan 13 23:00:10 2011 +0000
daily update
commit 0e52d299faed3f6430189eb5b1b3e26c62258693
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Thu Jan 13 18:52:53 2011 +0000
Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.
/:
* ltmain.sh (relink): Use absolute path when hardcoding with -L.
commit af373e307707382768713c023fcb27fefa354cf9
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 16:24:40 2011 +0000
[ia64-hpux] inferior function call support
We have two stacks to deal with on ia64, when making a function call.
The first is the usual stack frame, and the second is the register
stack frame. On ia64-linux, the register frame is setup by adjusting
the BSP register. Unfortunately for us, the HP-UX kernel does not allow
the debugger to change the value of the BSP.
To work around that limitation, the method I am using here is to push
some assembly code on the stack. This assembly code contains, among
other things, a call to the alloc insn, which sets up our frame for us.
An extensive comment in ia64-hpux-tdep.c explains the entire procedure.
Despite this approach, most of the code in ia64-tdep.c which sets up
the function call is still applicable - and only a few things need
to be done differently: For instance, instead of changing the BSP,
we do nothing. We store the parameters at a different location, etc.
So this patch also adjusts the inf-call code in ia64-tdep.c to make it
a little more extensible: I create a new ia64_infcall_ops structure
which allows an ABI to define how the few things that need to be
differentiated.
Another element that turned out to be necessary but is more of a detail
is that the computation of the linkage pointer needs to be handled
specially for symbols inside shared libraries. This is especially
visible when calling malloc, which happens everytime memory needs to
be allocated in inferior memory... The special treatment included
again the necessity to use some routines only available on the host.
So another target object TARGET_OBJECT_HPUX_SOLIB_GOT was created for
that purpose.
gdb/ChangeLog:
* ia64-tdep.h (struct regcache): Forward declare.
(struct ia64_infcall_ops): New struct type.
(struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
and "infcall_ops".
* ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
Renames ia64_find_global_pointer.
(ia64_find_global_pointer, ia64_allocate_new_rse_frame)
(ia64_store_argument_in_slot, ia64_set_function_addr: New function.
(ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
methods.
(ia64_infcall_ops): New static global constant.
(ia64_gdbarch_init): Set tdep->infcall_ops.
* ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
(ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
* ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
(ia64_hpux_dummy_code): New static global constant.
(ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
(ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
(ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
New function.
(ia64_hpux_infcall_ops): New static global constant.
(ia64_hpux_init_abi): Install gdbarch and tdep methods needed
for inferior function calls to work properly on ia64-hpux.
commit b18c57162019bdff244dc29515e319ea9d13626b
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 16:24:26 2011 +0000
[ia64-hpux] unwinding bsp value from system call
This fixes unwinding from a thread that is stopped inside a system call.
This can be seen when switching to a thread that is stopped doing a
pthread_cond_wait, for instance...
The comments inside the code should explain what is happening in our
case (the HP-UX exception in the case of system calls): Under certain
circumstances (program stopped inside syscall), the offset to apply to
the current BSP in order to compute the previous BSP is not the usual
CFM & 0x7f.
We parts in this patch:
1. Figuring out that we are stopped inside a syscal: This requires
a TT_LWP_RUREGS ttrace call, which is not directly possible from
ia64-tdep.c. So use defined a new TARGET_OBJECT_HPUX_UREGS object
to request it from the -nat side.
2. Add a gdbarch_tdep method that allows us to change the default
behavior on ia64-hpux, permitting us to have a different "size of
register frame" in that one particular case.
gdb/ChangeLog:
* target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
* ia64-tdep.h (struct frame_info): forward declaration.
(struct gdbarch_tdep): Add field size_of_register_frame.
* ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
to determine the size of the register frame.
(ia64_size_of_register_frame): New function.
(ia64_gdbarch_init): Set tdep->size_of_register_frame.
* ia64-hpux-tdep.c: Include "target.h" and "frame.h".
(IA64_HPUX_UREG_REASON): New macro.
(ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
New functions.
(ia64_hpux_init_abi): Set tdep->size_of_register_frame.
* ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
(ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
objects.
commit 20541a0f11ccd017f244324bef98525430afd5c8
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 16:24:07 2011 +0000
port GDB to ia64-hpux (native).
ChangeLog:
* configure.ac: Remove readline, mmalloc, and gdb from noconfigdirs
for ia64-hpux.
* configure: Regenerate.
gdb/ChangeLog:
* config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
* configure.host: Add handling for ia64-hpux hosts. Add associated
floatformats.
* configure.tgt: Add handling for ia64-hpux targets.
* Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
(HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
(ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
commit 2a1a3a7404d1f4acd07972de3d032c73d8d58560
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 16:23:33 2011 +0000
[hpux/ttrace] Determine attached process LWP immediately after attaching.
When attaching to a process, the ttrace interface was creating a ptid
with a null LWP, because it did not have it yet. This LWP was then
set as soon as we received our first event from our inferior, during
our first wait. Similarly, the allocation of the thread private info
was also defered.
This works on PA/HP-UX, because we immediately perform a wait to pop
the event triggered by the attach. We can use that event to extract
the thread's LWP. But this does not work for IA64/HP-UX, because
the attach no longer triggers an event, and thus a wait should NOT
be performed (such a wait would simply block indefinitely).
It is actually possible, however, to determine the thread's LWP.
This change therefore adjusts the attach code to create a thread with
the correct LWP set, as well as with its private info allocated.
Same thing for all the other threads.
gdb/ChangeLog:
[ttrace] Compute thread list immediately after attach.
* inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
New subprogram.
(inf_ttrace_attach): Use it.
commit 48bb01b777ff8fb052f1a5929ba8405e7d743292
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 16:23:22 2011 +0000
[libunwind-frame] handle functions with no minimal symbol/debug info.
This is something that I am seeing on ia64-hpux while trying to
backtrace from a thread that's doing a wait:
(gdb) task 2
[Switching to task 2]
0x9fffffffef52f590 in __ksleep () from /[...]/libc.so.1
(gdb) bt
#0 0x9fffffffef52f590 in __ksleep () from /[...]/libc.so.1
#1 0x9fffffffef73c870 in __sleep_1x1 () from /[...]/libpthread.so.1
#2 0x9fffffffef738fe0 in __mxn_sleep () from /[...]/libpthread.so.1
#3 0x9fffffffef675e90 in ?? () from /[...]/libpthread.so.1
The backtrace is incomplete and stops at frame #3, but there are in fact
a few more frames.
The reason why we stopped the backtrace is related to the fact that
we were not able to determine the start address of the function
corresponding to the frame PC. This is visible at the user level
thanks to the "??" that GDB displayed for frame 3.
We have the following code in libunwind-frame.c:libunwind_frame_cache
which explicitly returns a NULL cache when we couldn't determine the
frame's function address, immediately triggering an end-of-stack
frame_id, thus terminating the backtrace:
/* We can assume we are unwinding a normal frame. Even if this is
for a signal trampoline, ia64 signal "trampolines" use a normal
subroutine call to start the signal handler. */
cache->func_addr = get_frame_func (this_frame);
if (cache->func_addr == 0
&& get_next_frame (this_frame)
&& get_frame_type (get_next_frame (this_frame)) == NORMAL_FRAME)
return NULL;
As explained in the comment, I think we can still go on, and use
the unwind record to do the debugging. This change imlements this
change, and allows us to get the full backtrace.
gdb/ChangeLog:
* libunwind-frame.c (libunwind_frame_cache): Do not return NULL
if we could not determine the frame's function address. Instead,
use the frame's PC, and then continue.
commit 061e2c2f4e9bcb4e0ac90e88f7f7d268bde804c7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 16:23:10 2011 +0000
Make sure __LITTLE_ENDIAN/__BIG_ENDIAN are defined in libunwind-frame.c
These macros do not seem to exist on ia64-hpux.
gdb/ChangeLog:
* libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
not already defined.
commit 0da3e49c580365820be2b987b249440a20cb7a3c
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 16:23:00 2011 +0000
[ia64] small integral parameters and return values
This patch fixes a small problem on ia64-hpux when calling functions
whose parameter are small integral values (less than 8 bytes). In
that case, the parameter value was stored on the wrong side of the
register. Same problem for return values.
With this patch, the results for gdb.base/callfuncs.exp improve from
# of expected passes 41
# of unexpected failures 78
To:
# of expected passes 95
# of unexpected failures 24
gdb/ChangeLog:
* ia64-tdep.c (ia64_struct_type_p): New function.
(ia64_extract_return_value): Handle integral values that are
less than 8 bytes long.
(ia64_push_dummy_call): Likewise.
commit d91fc7a0c85a7c766dffe52fdffc0045d3f9bc0f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 13 16:22:39 2011 +0000
[ia64] Add a big-endian version of the ia64-ext floatformat
ia64-tdep.c defines a floatformats_ia64_ext that should contain
both the little-endian and the big-endian version of the float
format used in the ia64 registers (an 82bit float format).
Right now, both entries point to the same little-endian definition.
A big-endian definition is now necessary for the ia64-hpux port.
gdb/ChangeLog:
* ia64-tdep.c (floatformat_ia64_ext_little): Renames
floatformat_ia64_ext.
(floatformat_ia64_ext_big): New static const.
(floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
commit b953243d1c850a363213d86756758781d3cee226
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 13 00:00:03 2011 +0000
*** empty log message ***
commit 2c6b777e7c2cd56d6f5630375e33c64cefc129e5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jan 12 23:00:05 2011 +0000
daily update
commit 84c64d73f27c2def9f23dc6cfd1171da907ce3a1
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Jan 12 22:10:46 2011 +0000
sim: enable hw_tree_delete in sim_hw_uninstall
I can't find any history for why the call to hw_tree_delete is commented
out, and the VCS history shows that this goes back to the original import
in 2009. I did find some vague reference to it from 2000 (pretty close
to the original import of code), but no actual details.
Without this call, every new instance of the sim results in all old
previously allocated resources being leaked. With some devices, this
isn't just memory, it's things like open file descriptors or mmaps.
So if there are pending issues with this, I'd rather we get the sims
sorted out rather than continuing to leak this stuff. Especially since
the "let's wait for the sims to fix themselves" hasn't actually happened
in the last 10+ years.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit a60996756955cc8cad77994629d622fed5572f16
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Jan 12 21:58:07 2011 +0000
sim: check asprintf return values
These are the last sources of build warnings (asprintf usage) that I see.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 8fefa6e4f261647761bdcaa766a146870400332e
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 12 21:09:36 2011 +0000
gdb
* mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
messages.
* mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
(mi_cmd_thread_list_ids): Likewise.
(mi_cmd_data_list_changed_registers): Likewise.
(mi_cmd_data_list_register_values): Likewise.
(mi_cmd_data_write_register_values): Likewise.
(mi_cmd_data_evaluate_expression): Likewise.
(mi_cmd_data_read_memory): Likewise.
(mi_cmd_data_read_memory_bytes): Likewise.
(mi_cmd_data_write_memory): Likewise.
(mi_cmd_enable_timings): Likewise.
* mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
* mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
(mi_cmd_var_delete): Likewise.
(mi_cmd_var_set_format): Likewise.
(mi_cmd_var_show_format): Likewise.
(mi_cmd_var_info_num_children): Likewise.
(mi_cmd_var_list_children): Likewise.
(mi_cmd_var_info_type): Likewise.
(mi_cmd_var_info_expression): Likewise.
(mi_cmd_var_show_attributes): Likewise.
(mi_cmd_var_assign): Likewise.
(mi_cmd_var_update): Likewise.
(mi_cmd_enable_pretty_printing): Likewise.
(mi_cmd_var_set_update_range): Likewise.
* mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
messages.
(mi_cmd_target_file_put): Likewise.
(mi_cmd_target_file_delete): Likewise.
* mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
messages.
(mi_cmd_stack_info_depth): Likewise.
(mi_cmd_stack_list_locals): Likewise.
(mi_cmd_stack_list_args): Likewise.
(mi_cmd_stack_select_frame): Likewise.
(mi_cmd_stack_select_frame): Likewise.
(mi_cmd_stack_info_frame): Likewise.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
messages.
(mi_cmd_file_list_exec_source_files): Likewise.
* mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
(mi_cmd_env_cd): Likewise.
(mi_cmd_env_path): Likewise.
(mi_cmd_env_dir): Likewise.
(mi_cmd_inferior_tty_show): Likewise.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
(mi_cmd_break_watch): Likewise.
gdb/testsuite
* gdb.mi/gdb2549.exp: Update for error message changes.
* gdb.mi/mi-cli.exp: Likewise.
* gdb.mi/mi-disassemble.exp: Likewise.
* gdb.mi/mi-pthreads.exp: Likewise.
* gdb.mi/mi-regs.exp: Likewise.
* gdb.mi/mi-stack.exp: Likewise.
* gdb.mi/mi-var-block.exp: Likewise.
* gdb.mi/mi-var-cmd.exp: Likewise.
* gdb.mi/mi2-cli.exp: Likewise.
* gdb.mi/mi2-disassemble.exp: Likewise.
* gdb.mi/mi2-pthreads.exp: Likewise.
* gdb.mi/mi2-regs.exp: Likewise.
* gdb.mi/mi2-stack.exp: Likewise.
* gdb.mi/mi2-var-block.exp: Likewise.
* gdb.mi/mi2-var-cmd.exp: Likewise.
commit b821d466c42caf0af01fb9ce64633ee81f0aca62
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Wed Jan 12 20:09:45 2011 +0000
2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
* ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
(ppc_linux_insert_hw_breakpoint): Likewise.
(ppc_linux_remove_hw_breakpoint): Likewise.
(ppc_linux_insert_watchpoint): Likewise.
commit 80c01fc5c301000b6100ec2f19524415dbe5926d
Author: DJ Delorie <dj@delorie.com>
Date: Wed Jan 12 19:04:47 2011 +0000
merge from gcc
commit 840a7679a7dbbba41eb9c4ec9aadd691c6e22ca0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jan 12 16:16:18 2011 +0000
gdb/
PR fortran/11104 and DWARF unbound arrays detection.
* dwarf2read.c (read_subrange_type): Set zero length on unspecified
upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
unspecified upper bound.
* eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
variables array_size_array, tmp_type and offset_item. New variable
array. Remove call to f77_get_upperbound. New variables array_type
and index. Call value_subscripted_rvalue for each dimenasion. Remove
the final call to deprecated_set_value_type.
gdb/testsuite/
PR fortran/11104 and DWARF unbound arrays detection.
* gdb.fortran/multi-dim.exp: New file.
* gdb.fortran/multi-dim.f90: New file.
commit c9ac506053cefef4c28b5f516b473dd6b8246814
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jan 12 16:09:56 2011 +0000
gdb/
Make value allocations more lazy.
* ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
instead of allocate_value and set_value_lazy when possible.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
instead of allocate_value and set_value_lazy.
* findvar.c (value_of_register_lazy): Likewise.
(read_var_value): Remove V preallocation, call just check_typedef in
advance. Move allocate_value to LOC_CONST, LOC_LABEL,
LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
the end, remove set_value_lazy there.
* valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
instead of allocate_value and set_value_lazy when possible.
* valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
* value.c (allocate_computed_value): Use allocate_value_lazy instead
of allocate_value and set_value_lazy.
(value_from_contents_and_address): Use allocate_value_lazy instead of
allocate_value and set_value_lazy when possible.
commit 29c91bff191d72fd6250268f2d7a7404fefc6b06
Author: aburgess <aburgess>
Date: Wed Jan 12 15:02:05 2011 +0000
http://sourceware.org/ml/gdb-patches/2010-12/msg00299.html
gdb/
* disasm.c (dump_insns): Support dumping opcodes for MI.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
dumping of instruction opcodes.
gdb/doc/
* gdb.texinfo (GDB/MI Data Manipulation): Update to reflect
changes in mi/mi-cmd-disas.c
gdb/testsuite/
* gdb.mi/mi-disassemble.exp, gdb.mi/mi2-disassemble.exp: Update
expected output to reflect changes in gdb/mi/mi-cmd-disas.c and
add new tests for opcode dumping.
commit f478247912cdbcffe6133771aefc630e3add50cc
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 12 14:30:45 2011 +0000
* gdb.texinfo (Threads): Remove duplicate text. Update examples.
Fix "thread apply" text.
commit db3e7c12614c66fb97a6ab699234ff38645297d9
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jan 12 10:48:12 2011 +0000
Detect GNU/kFreeBSD and set `gdb_osabi' appropiately
2011-01-09 Robert Millan <rmh@gnu.org>
* configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
appropiately.
commit a9f87e3912fbba019d1455b48e87b078b9521f37
Author: DJ Delorie <dj@delorie.com>
Date: Wed Jan 12 07:06:29 2011 +0000
* rx-dis.c (print_insn_rx): Support RX_Operand_TwoReg.
commit 1342d6935c17dabec76c6aeab259af16382dcb87
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 12 02:51:38 2011 +0000
Revert erroneous commit
commit a086a77f42fecf900f7d8c483479a65b140dc9be
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 12 02:44:45 2011 +0000
* thread.c (do_captured_thread_select): Emit newline before
printing frame.
commit e4c94ef2808942f5b48023bf9970d1baf45c34ed
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jan 12 01:23:28 2011 +0000
2011-01-11 Michael Snyder <msnyder@vmware.com>
* ui-file.c: Comment cleanup, mostly periods and spaces.
* ui-file.h: Ditto.
* ui-out.c: Ditto.
* ui-out.h: Ditto.
* utils.c: Ditto.
* v850-tdep.c: Ditto.
* valarith.c: Ditto.
* valops.c: Ditto.
* valprint.c: Ditto.
* valprint.h: Ditto.
* value.c: Ditto.
* value.h: Ditto.
* varobj.c: Ditto.
* varobj.h: Ditto.
* vax-tdep.c: Ditto.
* vec.c: Ditto.
* vec.h: Ditto.
* version.h: Ditto.
* windows-nat.c: Ditto.
* windows-tdep.c: Ditto.
* xcoffread.c: Ditto.
* xcoffsolib.c: Ditto.
* xml-support.c: Ditto.
* xstormy16-tdep.c: Ditto.
* xtensa-tdep.c: Ditto.
* xtensa-tdep.h: Ditto.
commit 283012c3d7de73c3943d8e8d88dbb634fb468d2a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 12 00:00:02 2011 +0000
*** empty log message ***
commit 462473a4920f487e6ace773f068575010a766ea2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jan 11 23:00:05 2011 +0000
daily update
commit 499de1b6987b0d26b03ac25e06ad41dbc64f5f26
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue Jan 11 21:53:23 2011 +0000
2011-01-11 Michael Snyder <msnyder@vmware.com>
* s390-tdep.c: Comment cleanup, mostly periods and spaces.
* score-tdep.c: Ditto.
* score-tdep.h: Ditto.
* ser-base.c: Ditto.
* ser-go32.c: Ditto.
* serial.c: Ditto.
* serial.h: Ditto.
* ser-mingw.c: Ditto.
* ser-pipe.c: Ditto.
* ser-tcp.c: Ditto.
* ser-unix.c: Ditto.
* sh64-tdep.c: Ditto.
* shnbsd-nat.c: Ditto.
* sh-tdep.c: Ditto.
* sh-tdep.h: Ditto.
* solib.c: Ditto.
* solib-darwin.c: Ditto.
* solib-frv.c: Ditto.
* solib.h: Ditto.
* solib-irix.c: Ditto.
* solib-osf.c: Ditto.
* solib-pa64.c: Ditto.
* solib-som.c: Ditto.
* solib-spu.c: Ditto.
* solib-sunos.c: Ditto.
* solib-svr4.c: Ditto.
* solist.h: Ditto.
* sol-thread.c: Ditto.
* somread.c: Ditto.
* source.c: Ditto.
* source.h: Ditto.
* sparc64-linux-tdep.c: Ditto.
* sparc64-tdep.c: Ditto.
* sparc-linux-nat.c: Ditto.
* sparc-linux-tdep.c: Ditto.
* sparc-sol2-nat.c: Ditto.
* sparc-sol2-tdep.c: Ditto.
* sparc-tdep.c: Ditto.
* sparc-tdep.h: Ditto.
* spu-tdep.c: Ditto.
* stabsread.c: Ditto.
* stabsread.h: Ditto.
* stack.c: Ditto.
* symfile.c: Ditto.
* symfile.h: Ditto.
* symmisc.c: Ditto.
* symtab.c: Ditto.
* symtab.h: Ditto.
* target.c: Ditto.
* target-descriptions.c: Ditto.
* target-descriptions.h: Ditto.
* target.h: Ditto.
* target-memory.c: Ditto.
* terminal.h: Ditto.
* thread.c: Ditto.
* top.c: Ditto.
* tracepoint.c: Ditto.
* tracepoint.h: Ditto.
* trad-frame.h: Ditto.
* typeprint.c: Ditto.
commit 1be1f93a991dd0172debb6f6f5371b82fd3e950c
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jan 11 21:22:35 2011 +0000
* gdb.python/py-infthread.exp: Load gdb-python.exp.
commit c274fff2b9736ccb8d58fe890ce39109585bc477
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Tue Jan 11 19:39:34 2011 +0000
2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
* breakpoint.c (resources_needed_watchpoint): Fix indentation.
* gdbtypes.c (is_scalar_type_recursive): Fix formatting.
commit a5df084452a0c35f114f019854983a8cf7fdc1e4
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Tue Jan 11 19:23:01 2011 +0000
2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
Implement support for PowerPC BookE ranged watchpoints.
gdb/
* breakpoint.h
(struct breakpoint_ops) <resources_needed>: New method.
Initialize to NULL in all existing breakpoint_ops instances.
(struct breakpoint) <exact>: New field.
(target_exact_watchpoints): Declare external global.
* breakpoint.c (target_exact_watchpoints): New global flag.
(update_watchpoint): Set b->type to bp_hardware_watchpoint and
b->enable_state to bp_enabled before calling
hw_watchpoint_used_count.
(hw_watchpoint_used_count): Iterate over all bp_locations in a
watchpoint. Call breakpoint's breakpoint_ops.resources_needed
if available.
(insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
if the watchpoint is exact.
(resources_needed_watchpoint): New function.
(watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
(watch_command_1): Set b->exact if the user asked for an exact
watchpoint and one can be set.
(can_use_hardware_watchpoint): Add exact_watchpoints argument.
Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
the user asks for an exact watchpoint and one can be set. Return
number of needed debug registers to watch the expression.
* gdbtypes.c (is_scalar_type): New function, based on
valprint.c:scalar_type_p.
(is_scalar_type_recursive): New function.
* gdbtypes.h (is_scalar_type_recursive): Declare.
* ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
handle regions when ranged watchpoints are available.
(create_watchpoint_request): New function.
(ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
create_watchpoint_request.
* rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
(_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
`set powerpc' and `show powerpc' commands.
* target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
Mention documentation comment in the target macro.
(target_region_ok_for_hw_watchpoint): Document return value.
gdb/doc/
* gdb.texinfo (PowerPC Embedded): Document ranged watchpoints and
the "set powerpc exact-watchpoints" flag.
commit c2e02cfa56813570cca008cd86491918abcdd4b8
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Tue Jan 11 19:18:30 2011 +0000
2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
* breakpoint.c (update_watchpoint): Decide on using a software or
hardware watchpoint after the bp_locations are created.
commit 03a69f086df284607606d74838b772c05cc9793e
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Tue Jan 11 19:16:14 2011 +0000
2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
Convert hardware watchpoints to use breakpoint_ops.
gdb/
* breakpoint.h (breakpoint_ops) <insert>: Rename to...
<insert_location>: ... this. Return int instead of void.
Accept pointer to struct bp_location instead of pointer to
struct breakpoint. Adapt all implementations.
(breakpoint_ops) <remove>: Rename to...
<remove_location>: ... this. Accept pointer to struct bp_location
instead of pointer to struct breakpoint. Adapt all implementations.
* breakpoint.c (insert_catchpoint): Delete function.
(insert_bp_location): Call the watchpoint or catchpoint's
breakpoint_ops.insert method.
(remove_breakpoint_1): Call the watchpoint or catchpoint's
breakpoint_ops.remove method.
(insert_watchpoint, remove_watchpoint): New functions.
(watchpoint_breakpoint_ops): New structure.
(watch_command_1): Initialize the OPS field.
* inf-child.c (inf_child_insert_fork_catchpoint)
(inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
(inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
(inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
Delete functions.
(inf_child_target): Remove initialization of to_insert_fork_catchpoint,
to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
to_remove_exec_catchpoint and to_set_syscall_catchpoint.
* target.c (update_current_target): Change default implementation of
to_insert_fork_catchpoint, to_remove_fork_catchpoint,
to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
to_insert_exec_catchpoint, to_remove_exec_catchpoint and
to_set_syscall_catchpoint to return_one.
(debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
(debug_to_insert_exec_catchpoint): Report return value.
* target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
(to_insert_exec_catchpoint): Change declaration to return int instead
of void.
gdb/testsuite/
* gdb.base/foll-exec.exp: Adapt to new error string when the catchpoint
type is not supported.
* gdb.base/foll-fork.exp: Likewise.
* gdb.base/foll-vfork.exp: Likewise.
commit a99699255d04d1068a4807a119c5a2b967f6d6f1
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Jan 11 17:58:56 2011 +0000
sim: allow memory maps to default to mapped files
I find it annoying when using --memory-mapfile that I also need to look
up and manually specify the file size to the following --memory-region
option. So make a length of 0 in the following --memory-region trigger
an auto-sizing of the map to the length of the file being mapped.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 91d92eade9b57f7baaa2c255d07ca42347f9204b
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue Jan 11 15:09:54 2011 +0000
2011-01-11 Michael Snyder <msnyder@vmware.com>
* arm-tdep.c: Internationalization.
* c-lang.c: Ditto.
* charset.c: Ditto.
* fork-child.c: Ditto.
* nto-procfs.c: Ditto.
* ppc-sysv-tdep.c: Ditto.
* procfs.c: Ditto.
* remote-mips.c: Ditto.
* remote.c: Ditto.
* rs6000-nat.c: Ditto.
* rs6000-tdep.c: Ditto.
* target.c: Ditto.
* valops.c: Ditto.
* value.c: Ditto.
* xml-support.c: Ditto.
* mi/mi-cmd-break.c: Ditto.
* mi/mi-cmd-var.c: Ditto.
* mi/mi-interp.c: Ditto.
* mi/mi-main.c: Ditto.
commit 601e037e8e18057678379ee347c5a4f02874cf33
Author: aburgess <aburgess>
Date: Tue Jan 11 14:19:27 2011 +0000
http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html
gdb/ChangeLog
* remote-sim.c (gdbsim_store_register): Update API to
sim_store_register to check more error conditions.
include/gdb/ChangeLog
* remote-sim.h (sim_store_register): Update the API
documentation for this function.
sim/erc32/ChangeLog
sim/h8300/ChangeLog
sim/m32c/ChangeLog
sim/mn10300/ChangeLog
sim/ppc/ChangeLog
sim/rx/ChangeLog
sim/v850/ChangeLog
* ???.c (sim_store_register): Update return value to
match new API.
commit 5a26f459fc426a89e68d9e14d3672c2a8c67b15a
Author: aburgess <aburgess>
Date: Tue Jan 11 14:19:27 2011 +0000
http://sourceware.org/ml/gdb-patches/2010-11/msg00112.html
gdb/ChangeLog
* remote-sim.c (gdbsim_store_register): Update API to
sim_store_register to check more error conditions.
include/gdb/ChangeLog
* remote-sim.h (sim_store_register): Update the API
documentation for this function.
sim/erc32/ChangeLog
sim/h8300/ChangeLog
sim/m32c/ChangeLog
sim/mn10300/ChangeLog
sim/ppc/ChangeLog
sim/rx/ChangeLog
sim/v850/ChangeLog
* ???.c (sim_store_register): Update return value to
match new API.
commit b83c685cd25409cd1f384da01d3cd426b2efdbe3
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Tue Jan 11 09:06:04 2011 +0000
elf32-arm.c (elf32_arm_tls_relax): Note fixme pointed out by AlanM
commit 34669dd2ed9725f034bb56c05ed53b5204951195
Author: xmj <xmj>
Date: Tue Jan 11 07:22:08 2011 +0000
Take unadjusted offset for loongson3a specific instructions.
commit 75a879d324cc7c934141a19636796b0e6a413863
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue Jan 11 03:01:33 2011 +0000
Fix change log omission.
commit b0f93df7fecd942b547f3f26138b8d4e524ceb77
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 11 00:00:33 2011 +0000
*** empty log message ***
commit ba15817d6ccb5496a44e51a6e9a7cb82e93de84c
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Jan 10 21:53:27 2011 +0000
sim: fix handling of 2nd arg to SIM_AC_OPTION_HARDWARE
The 2nd arg to SIM_AC_OPTION_HARDWARE is described as "a space separated
list of devices that override the defaults" while the 3rd arg is "a space
separated list of extra target specific devices". But the macro doesn't
seem to treat the 2nd arg this way.
Instead, it will always add the default list of devices, and only add the
extra target specific devices if the 2nd arg is not specified. So rework
the logic slightly to handle the 2nd arg as documented.
This shouldn't affect any targets in the tree as no one passes in a non-
empty value as the 2nd arg.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 93cb87058b1b0557ca9d766f5c0363bd437dcc8c
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Jan 10 21:52:08 2011 +0000
sim: add noreturn markings to more hw abort/halt funcs
These functions either call abort() themselves, or call functions which
are already marked noreturn. Either way, they don't return, so mark them
as such so calling code can assume this. This fixes some uninitialized
warnings due to code paths that end in an abort function.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 1f5de7484fa5977a31f02b218a1b745ea3d908bd
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon Jan 10 20:38:45 2011 +0000
2011-01-10 Michael Snyder <msnyder@vmware.com>
* nto-procfs.c: Comment cleanup, mostly periods and spaces.
* nto-tdep.c: Ditto.
* nto-tdep.h: Ditto.
* objc-exp.y: Ditto.
* objc-lang.c: Ditto.
* objfiles.c: Ditto.
* objfiles.h: Ditto.
* observer.c: Ditto.
* opencl-lang.c: Ditto.
* osabi.c: Ditto.
* parse.c: Ditto.
* parser-defs.h: Ditto.
* p-exp.y: Ditto.
* p-lang.c: Ditto.
* posix-hdep.c: Ditto.
* ppcbug-rom.c: Ditto.
* ppc-linux-nat.c: Ditto.
* ppc-linux-tdep.c: Ditto.
* ppc-linux-tdep.h: Ditto.
* ppcnbsd-tdep.c: Ditto.
* ppcobsd-tdep.c: Ditto.
* ppcobsd-tdep.h: Ditto.
* ppc-sysv-tdep.c: Ditto.
* ppc-tdep.h: Ditto.
* printcmd.c: Ditto.
* proc-abi.c: Ditto.
* proc-flags.c: Ditto.
* procfs.c: Ditto.
* proc-utils.h: Ditto.
* progspace.h: Ditto.
* prologue-value.c: Ditto.
* prologue-value.h: Ditto.
* psympriv.h: Ditto.
* psymtab.c: Ditto.
* p-typeprint.c: Ditto.
* p-valprint.c: Ditto.
* ravenscar-sparc-thread.c: Ditto.
* ravenscar-thread.c: Ditto.
* ravenscar-thread.h: Ditto.
* record.c: Ditto.
* regcache.c: Ditto.
* regcache.h: Ditto.
* remote.c: Ditto.
* remote-fileio.c: Ditto.
* remote-fileio.h: Ditto.
* remote.h: Ditto.
* remote-m32r-sdi.c: Ditto.
* remote-mips.c: Ditto.
* remote-sim.c: Ditto.
* rs6000-aix-tdep.c: Ditto.
* rs6000-nat.c: Ditto.
* rs6000-tdep.c: Ditto.
commit afd0ae8df48a2757ca2e090f248aa182c767fb66
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon Jan 10 17:14:12 2011 +0000
2011-01-10 Michael Snyder <msnyder@vmware.com>
* charset.c (validate): Internationalization.
* coffread.c (read_one_sym): Ditto.
* dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
* h8300-tdep.c (H8300_extract_return_value): Ditto.
* inflow.c (new_tty): Ditto.
* iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
* m32c-tdep.c (m32c_return_value): Ditto.
* mep-tdep.c (mep_store_return_value): Ditto.
* score-tdep.c (score7_fetch_insn): Ditto.
* ser-mingw.c (pipe_windows_open): Ditto.
* sh64-tdep.c (sh64_extract_return_value): Ditto.
* spu-tdep.c (spu_register_type): Ditto.
* tracepoint.c (trace_find_command): Ditto.
* valarith.c (value_pos): Ditto.
commit f7c014ebf61934b43a9eaa549cbec124fad44aab
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Jan 10 13:51:09 2011 +0000
* po/da.po: Updated Danish translation.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 +
bfd/ChangeLog | 20 +
bfd/elf32-arm.c | 13 +-
bfd/elf64-x86-64.c | 26 +-
bfd/version.h | 2 +-
configure | 4 +-
configure.ac | 4 +-
gdb/ChangeLog | 497 +++++++++++++
gdb/Makefile.in | 5 +-
gdb/NEWS | 3 +
gdb/ada-lang.c | 19 +-
gdb/ada-valprint.c | 22 +-
gdb/arm-tdep.c | 10 +-
gdb/breakpoint.c | 330 ++++++---
gdb/breakpoint.h | 33 +-
gdb/c-lang.c | 4 +-
gdb/charset.c | 16 +-
gdb/coffread.c | 6 +-
gdb/config/ia64/hpux.mh | 3 +
gdb/configure.host | 6 +
gdb/configure.tgt | 7 +-
gdb/disasm.c | 14 +-
gdb/doc/ChangeLog | 19 +-
gdb/doc/gdb.texinfo | 106 +--
gdb/dwarf2loc.c | 3 +-
gdb/dwarf2read.c | 18 +-
gdb/eval.c | 52 +--
gdb/findvar.c | 40 +-
gdb/fork-child.c | 2 +-
gdb/gdbtypes.c | 62 ++
gdb/gdbtypes.h | 2 +
gdb/h8300-tdep.c | 16 +-
gdb/hpux-thread.c | 13 -
gdb/ia64-hpux-nat.c | 703 ++++++++++++++++++
gdb/ia64-hpux-tdep.c | 434 +++++++++++
gdb/{version.h => ia64-hpux-tdep.h} | 20 +-
gdb/ia64-tdep.c | 177 ++++-
gdb/ia64-tdep.h | 45 ++
gdb/inf-child.c | 61 --
gdb/inf-ttrace.c | 53 ++-
gdb/inflow.c | 4 +-
gdb/iq2000-tdep.c | 2 +-
gdb/libunwind-frame.c | 30 +-
gdb/linux-nat.c | 22 +-
gdb/m32c-tdep.c | 12 +-
gdb/mep-tdep.c | 28 +-
gdb/mi/mi-cmd-break.c | 22 +-
gdb/mi/mi-cmd-disas.c | 42 +-
gdb/mi/mi-cmd-env.c | 14 +-
gdb/mi/mi-cmd-file.c | 10 +-
gdb/mi/mi-cmd-stack.c | 16 +-
gdb/mi/mi-cmd-target.c | 12 +-
gdb/mi/mi-cmd-var.c | 46 +-
gdb/mi/mi-interp.c | 9 +-
gdb/mi/mi-main.c | 38 +-
gdb/mi/mi-symbol-cmds.c | 4 +-
gdb/nto-procfs.c | 13 +-
gdb/nto-tdep.c | 6 +-
gdb/nto-tdep.h | 4 +-
gdb/objc-exp.y | 32 +-
gdb/objc-lang.c | 71 +-
gdb/objfiles.c | 62 +-
gdb/objfiles.h | 77 +-
gdb/observer.c | 14 +-
gdb/opencl-lang.c | 6 +-
gdb/osabi.c | 2 +-
gdb/p-exp.y | 92 ++-
gdb/p-lang.c | 10 +-
gdb/p-typeprint.c | 34 +-
gdb/p-valprint.c | 32 +-
gdb/parse.c | 52 +-
gdb/parser-defs.h | 16 +-
gdb/posix-hdep.c | 2 +-
gdb/ppc-linux-nat.c | 214 ++++---
gdb/ppc-linux-tdep.c | 30 +-
gdb/ppc-linux-tdep.h | 2 +-
gdb/ppc-sysv-tdep.c | 32 +-
gdb/ppc-tdep.h | 26 +-
gdb/ppcbug-rom.c | 11 +-
gdb/ppcnbsd-tdep.c | 4 +-
gdb/ppcobsd-tdep.c | 4 +-
gdb/ppcobsd-tdep.h | 2 +-
gdb/printcmd.c | 39 +-
gdb/proc-api.c | 4 +-
gdb/proc-flags.c | 4 +-
gdb/proc-utils.h | 2 +-
gdb/procfs.c | 253 ++++----
gdb/progspace.h | 4 +-
gdb/prologue-value.c | 2 +-
gdb/prologue-value.h | 2 +-
gdb/psympriv.h | 12 +-
gdb/psymtab.c | 62 +-
gdb/ravenscar-sparc-thread.c | 4 +-
gdb/ravenscar-thread.c | 5 +-
gdb/ravenscar-thread.h | 2 +-
gdb/record.c | 2 +-
gdb/regcache.c | 10 +-
gdb/regcache.h | 2 +-
gdb/remote-fileio.c | 42 +-
gdb/remote-fileio.h | 6 +-
gdb/remote-m32r-sdi.c | 104 ++--
gdb/remote-mips.c | 354 +++++----
gdb/remote-sim.c | 57 +-
gdb/remote.c | 118 ++--
gdb/remote.h | 2 +-
gdb/rs6000-aix-tdep.c | 40 +-
gdb/rs6000-nat.c | 128 ++--
gdb/rs6000-tdep.c | 108 ++-
gdb/s390-tdep.c | 21 +-
gdb/score-tdep.c | 157 +++--
gdb/score-tdep.h | 15 +-
gdb/ser-base.c | 51 +-
gdb/ser-go32.c | 72 +-
gdb/ser-mingw.c | 8 +-
gdb/ser-pipe.c | 16 +-
gdb/ser-tcp.c | 31 +-
gdb/ser-unix.c | 34 +-
gdb/serial.c | 28 +-
gdb/serial.h | 22 +-
gdb/sh-tdep.c | 179 +++---
gdb/sh-tdep.h | 4 +-
gdb/sh64-tdep.c | 230 ++++---
gdb/shnbsd-nat.c | 2 +-
gdb/sol-thread.c | 8 +-
gdb/solib-darwin.c | 4 +-
gdb/solib-frv.c | 12 +-
gdb/solib-ia64-hpux.c | 700 ++++++++++++++++++
gdb/{version.h => solib-ia64-hpux.h} | 21 +-
gdb/solib-irix.c | 12 +-
gdb/solib-osf.c | 18 +-
gdb/solib-pa64.c | 30 +-
gdb/solib-som.c | 53 +-
gdb/solib-spu.c | 2 +-
gdb/solib-sunos.c | 44 +-
gdb/solib-svr4.c | 27 +-
gdb/solib.c | 14 +-
gdb/solib.h | 6 +-
gdb/solist.h | 12 +-
gdb/somread.c | 28 +-
gdb/source.c | 105 ++--
gdb/source.h | 12 +-
gdb/sparc-linux-nat.c | 3 +-
gdb/sparc-linux-tdep.c | 8 +-
gdb/sparc-sol2-nat.c | 5 +-
gdb/sparc-sol2-tdep.c | 2 +-
gdb/sparc-tdep.c | 4 +-
gdb/sparc-tdep.h | 2 +-
gdb/sparc64-linux-tdep.c | 6 +-
gdb/sparc64-tdep.c | 2 +-
gdb/spu-tdep.c | 34 +-
gdb/stabsread.c | 193 +++---
gdb/stabsread.h | 12 +-
gdb/stack.c | 16 +-
gdb/symfile.c | 163 ++--
gdb/symfile.h | 6 +-
gdb/symmisc.c | 10 +-
gdb/symtab.c | 177 +++---
gdb/symtab.h | 116 ++--
gdb/target-descriptions.c | 2 +-
gdb/target-descriptions.h | 2 +-
gdb/target-memory.c | 2 +-
gdb/target.c | 132 ++--
gdb/target.h | 79 ++-
gdb/terminal.h | 4 +-
gdb/testsuite/ChangeLog | 47 ++
gdb/testsuite/gdb.base/foll-exec.exp | 2 +-
gdb/testsuite/gdb.base/foll-fork.exp | 2 +-
gdb/testsuite/gdb.base/foll-vfork.exp | 2 +-
gdb/testsuite/gdb.base/interact.exp | 48 ++
gdb/testsuite/gdb.fortran/multi-dim.exp | 77 ++
gdb/testsuite/gdb.fortran/multi-dim.f90 | 29 +
gdb/testsuite/gdb.mi/gdb2549.exp | 2 +-
gdb/testsuite/gdb.mi/mi-cli.exp | 6 +-
gdb/testsuite/gdb.mi/mi-disassemble.exp | 58 ++-
gdb/testsuite/gdb.mi/mi-pthreads.exp | 2 +-
gdb/testsuite/gdb.mi/mi-regs.exp | 2 +-
gdb/testsuite/gdb.mi/mi-stack.exp | 8 +-
gdb/testsuite/gdb.mi/mi-var-block.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-cmd.exp | 10 +-
gdb/testsuite/gdb.mi/mi2-cli.exp | 6 +-
gdb/testsuite/gdb.mi/mi2-disassemble.exp | 58 ++-
gdb/testsuite/gdb.mi/mi2-pthreads.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-regs.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-stack.exp | 8 +-
gdb/testsuite/gdb.mi/mi2-var-block.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-var-cmd.exp | 10 +-
gdb/testsuite/gdb.python/py-infthread.exp | 2 +
gdb/thread.c | 36 +-
gdb/top.c | 16 +-
gdb/tracepoint.c | 171 +++---
gdb/tracepoint.h | 4 +-
gdb/trad-frame.h | 4 +-
gdb/typeprint.c | 6 +-
gdb/ui-file.c | 22 +-
gdb/ui-file.h | 20 +-
gdb/ui-out.c | 60 +-
gdb/ui-out.h | 20 +-
gdb/utils.c | 82 +-
gdb/v850-tdep.c | 16 +-
gdb/valarith.c | 68 +-
gdb/valops.c | 46 +-
gdb/valprint.c | 112 ++--
gdb/valprint.h | 2 +-
gdb/value.c | 52 +-
gdb/value.h | 2 +-
gdb/varobj.c | 317 ++++----
gdb/varobj.h | 16 +-
gdb/vax-tdep.c | 2 +-
gdb/vec.c | 6 +-
gdb/vec.h | 28 +-
gdb/version.h | 4 +-
gdb/version.in | 2 +-
gdb/windows-nat.c | 247 ++++---
gdb/windows-tdep.c | 25 +-
gdb/xcoffread.c | 207 +++---
gdb/xcoffsolib.c | 2 +-
gdb/xml-support.c | 8 +-
gdb/xstormy16-tdep.c | 88 ++-
gdb/xtensa-tdep.c | 90 ++-
gdb/xtensa-tdep.h | 4 +-
include/ChangeLog | 4 +
include/dwarf2.h | 2 +-
include/gdb/ChangeLog | 5 +
include/gdb/remote-sim.h | 12 +-
ltmain.sh | 2 +-
opcodes/ChangeLog | 13 +
opcodes/mips-dis.c | 3 +-
opcodes/po/da.po | 1140 ++++++++++++++++++++++++-----
opcodes/rx-dis.c | 1 +
sim/common/ChangeLog | 33 +
sim/common/aclocal.m4 | 5 +-
sim/common/hw-device.h | 6 +-
sim/common/sim-hw.c | 2 +-
sim/common/sim-hw.h | 2 +-
sim/common/sim-memopt.c | 40 +-
sim/common/sim-module.c | 3 +-
sim/common/sim-options.c | 7 +-
sim/common/sim-utils.c | 7 +-
sim/common/sim-watch.c | 7 +-
sim/erc32/ChangeLog | 5 +
sim/erc32/interf.c | 2 +-
sim/h8300/ChangeLog | 5 +
sim/h8300/compile.c | 2 +-
sim/m32c/ChangeLog | 5 +
sim/m32c/gdb-if.c | 4 +-
sim/mn10300/ChangeLog | 5 +
sim/mn10300/interp.c | 2 +-
sim/ppc/ChangeLog | 5 +
sim/ppc/gdb-sim.c | 2 +-
sim/rx/ChangeLog | 5 +
sim/rx/gdb-if.c | 6 +-
sim/v850/ChangeLog | 5 +
sim/v850/interp.c | 2 +-
253 files changed, 8077 insertions(+), 3811 deletions(-)
create mode 100644 gdb/config/ia64/hpux.mh
create mode 100644 gdb/ia64-hpux-nat.c
create mode 100644 gdb/ia64-hpux-tdep.c
copy gdb/{version.h => ia64-hpux-tdep.h} (62%)
create mode 100644 gdb/solib-ia64-hpux.c
copy gdb/{version.h => solib-ia64-hpux.h} (62%)
create mode 100644 gdb/testsuite/gdb.base/interact.exp
create mode 100644 gdb/testsuite/gdb.fortran/multi-dim.exp
create mode 100644 gdb/testsuite/gdb.fortran/multi-dim.f90
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 5a48a71..aeb360f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ * ltmain.sh (relink): Use absolute path when hardcoding with -L.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.ac: Remove readline, mmalloc, and gdb from noconfigdirs
+ for ia64-hpux.
+ * configure: Regenerate.
+
2011-01-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Sync from GCC:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 42b07c6..326b326 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,23 @@
+2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
+ swap_reloca_out.
+ (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
+ (elf_x86_64_check_relocs): Align relocation section to 4 byte
+ for 32bit.
+ (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
+ ELF_ST_TYPE.
+ (elf_x86_64_finish_dynamic_symbol): Updated.
+ (elf_x86_64_finish_dynamic_sections): Don't use
+ Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
+ bfd_elf64_swap_dyn_out.
+
+2011-01-14 J. Park <grassman@gmail.com>
+
+ PR ld/12339
+ * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
+ following bfd_link_hash_warning symbol link.
+
2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
Glauber de Oliveira Costa <glommer@gmail.com>
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index ea1e485..6fdd500 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -1,6 +1,6 @@
/* 32-bit ELF support for ARM
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- 2008, 2009, 2010 Free Software Foundation, Inc.
+ 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -6985,8 +6985,11 @@ elf32_arm_abs12_reloc (bfd *abfd, void *data, bfd_vma value)
Return bfd_reloc_ok if we're done, bfd_reloc_continue if the caller
is to then call final_link_relocate. Return other values in the
- case of error. */
-
+ case of error.
+
+ FIXME:When --emit-relocs is in effect, we'll emit relocs describing
+ the pre-relaxed code. It would be nice if the relocs were updated
+ to match the optimization. */
static bfd_reloc_status_type
elf32_arm_tls_relax (struct elf32_arm_link_hash_table *globals,
@@ -12004,8 +12007,6 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf)
struct elf_dyn_relocs *p;
bfd_signed_vma thumb_refs;
- eh = (struct elf32_arm_link_hash_entry *) h;
-
if (h->root.type == bfd_link_hash_indirect)
return TRUE;
@@ -12015,6 +12016,8 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf)
symbol in a hash traversal. So look at it now. */
h = (struct elf_link_hash_entry *) h->root.u.i.link;
+ eh = (struct elf32_arm_link_hash_entry *) h;
+
info = (struct bfd_link_info *) inf;
htab = elf32_arm_hash_table (info);
if (htab == NULL)
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index ceb1a0a..6066330 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -495,7 +495,6 @@ struct elf_x86_64_link_hash_table
bfd_vma (*r_info) (bfd_vma, bfd_vma);
bfd_vma (*r_sym) (bfd_vma);
- void (*swap_reloca_out) (bfd *, const Elf_Internal_Rela *, bfd_byte *);
const char *dynamic_interpreter;
int dynamic_interpreter_size;
@@ -659,7 +658,6 @@ elf_x86_64_link_hash_table_create (bfd *abfd)
{
ret->r_info = elf64_r_info;
ret->r_sym = elf64_r_sym;
- ret->swap_reloca_out = bfd_elf64_swap_reloca_out;
ret->dynamic_interpreter = ELF64_DYNAMIC_INTERPRETER;
ret->dynamic_interpreter_size = sizeof ELF64_DYNAMIC_INTERPRETER;
}
@@ -667,7 +665,6 @@ elf_x86_64_link_hash_table_create (bfd *abfd)
{
ret->r_info = elf32_r_info;
ret->r_sym = elf32_r_sym;
- ret->swap_reloca_out = bfd_elf32_swap_reloca_out;
ret->dynamic_interpreter = ELF32_DYNAMIC_INTERPRETER;
ret->dynamic_interpreter_size = sizeof ELF32_DYNAMIC_INTERPRETER;
}
@@ -1545,7 +1542,8 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
htab->elf.dynobj = abfd;
sreloc = _bfd_elf_make_dynamic_reloc_section
- (sec, htab->elf.dynobj, 3, abfd, /*rela?*/ TRUE);
+ (sec, htab->elf.dynobj, ABI_64_P (abfd) ? 3 : 2,
+ abfd, /*rela?*/ TRUE);
if (sreloc == NULL)
return FALSE;
@@ -1699,7 +1697,7 @@ elf_x86_64_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info,
/* Check relocation against local STT_GNU_IFUNC symbol. */
if (isym != NULL
- && ELF64_ST_TYPE (isym->st_info) == STT_GNU_IFUNC)
+ && ELF_ST_TYPE (isym->st_info) == STT_GNU_IFUNC)
{
h = elf_x86_64_get_local_sym_hash (htab, abfd, rel, FALSE);
if (h == NULL)
@@ -3945,7 +3943,7 @@ elf_x86_64_finish_dynamic_symbol (bfd *output_bfd,
bed = get_elf_backend_data (output_bfd);
loc = relplt->contents + plt_index * bed->s->sizeof_rela;
- htab->swap_reloca_out (output_bfd, &rela, loc);
+ bed->s->swap_reloca_out (output_bfd, &rela, loc);
if (!h->def_regular)
{
@@ -4116,19 +4114,23 @@ elf_x86_64_finish_dynamic_sections (bfd *output_bfd,
if (htab->elf.dynamic_sections_created)
{
- Elf64_External_Dyn *dyncon, *dynconend;
+ bfd_byte *dyncon, *dynconend;
+ const struct elf_backend_data *bed;
+ bfd_size_type sizeof_dyn;
if (sdyn == NULL || htab->elf.sgot == NULL)
abort ();
- dyncon = (Elf64_External_Dyn *) sdyn->contents;
- dynconend = (Elf64_External_Dyn *) (sdyn->contents + sdyn->size);
- for (; dyncon < dynconend; dyncon++)
+ bed = get_elf_backend_data (dynobj);
+ sizeof_dyn = bed->s->sizeof_dyn;
+ dyncon = sdyn->contents;
+ dynconend = sdyn->contents + sdyn->size;
+ for (; dyncon < dynconend; dyncon += sizeof_dyn)
{
Elf_Internal_Dyn dyn;
asection *s;
- bfd_elf64_swap_dyn_in (dynobj, dyncon, &dyn);
+ (*bed->s->swap_dyn_in) (dynobj, dyncon, &dyn);
switch (dyn.d_tag)
{
@@ -4177,7 +4179,7 @@ elf_x86_64_finish_dynamic_sections (bfd *output_bfd,
break;
}
- bfd_elf64_swap_dyn_out (output_bfd, &dyn, dyncon);
+ (*bed->s->swap_dyn_out) (output_bfd, &dyn, dyncon);
}
/* Fill in the special first entry in the procedure linkage table. */
diff --git a/bfd/version.h b/bfd/version.h
index 57f53b3..ac86cec 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20110110
+#define BFD_VERSION_DATE 20110114
#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/configure b/configure
index 66ca5d3..5e469f4 100755
--- a/configure
+++ b/configure
@@ -3353,8 +3353,8 @@ case "${target}" in
noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
;;
ia64*-**-hpux*)
- # No gdb or ld support yet.
- noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
+ # No ld support yet.
+ noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
;;
ia64*-*-*vms*)
# No gdb or ld support yet.
diff --git a/configure.ac b/configure.ac
index 4807ffb..c7a86e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -804,8 +804,8 @@ case "${target}" in
noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
;;
ia64*-**-hpux*)
- # No gdb or ld support yet.
- noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
+ # No ld support yet.
+ noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
;;
ia64*-*-*vms*)
# No gdb or ld support yet.
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c03a6fc..292ce00 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,500 @@
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * hpux-thread.c (hpux_pid_to_str): Delete.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-valprint.c (ada_emit_char): Remove strange code.
+ Check that c is <= UCHAR_MAX before passing it to isascii.
+ (char_at): Do not assume that TYPE_LEN is either 1 or 2.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * top.c (input_from_terminal_p): Restrict the use of interactive_mode
+ to the case where instream is stdin.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * ia64-tdep.h (struct regcache): Forward declare.
+ (struct ia64_infcall_ops): New struct type.
+ (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
+ and "infcall_ops".
+ * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
+ Renames ia64_find_global_pointer.
+ (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
+ (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
+ (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
+ methods.
+ (ia64_infcall_ops): New static global constant.
+ (ia64_gdbarch_init): Set tdep->infcall_ops.
+ * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
+ (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
+ * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
+ (ia64_hpux_dummy_code): New static global constant.
+ (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
+ (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
+ (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
+ New function.
+ (ia64_hpux_infcall_ops): New static global constant.
+ (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
+ for inferior function calls to work properly on ia64-hpux.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
+ * ia64-tdep.h (struct frame_info): forward declaration.
+ (struct gdbarch_tdep): Add field size_of_register_frame.
+ * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
+ to determine the size of the register frame.
+ (ia64_size_of_register_frame): New function.
+ (ia64_gdbarch_init): Set tdep->size_of_register_frame.
+ * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
+ (IA64_HPUX_UREG_REASON): New macro.
+ (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
+ New functions.
+ (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
+ * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
+ (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
+ objects.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ Add support for ia64-hpux.
+ * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
+ ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
+
+ * configure.host: Add handling for ia64-hpux hosts. Add associated
+ floatformats.
+ * configure.tgt: Add handling for ia64-hpux targets.
+ * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
+ (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
+ (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ [ttrace] Compute thread list immediately after attach.
+ * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
+ New subprogram.
+ (inf_ttrace_attach): Use it.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
+ if we could not determine the frame's function address. Instead,
+ use the frame's PC, and then continue.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
+ not already defined.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * ia64-tdep.c (ia64_struct_type_p): New function.
+ (ia64_extract_return_value): Handle integral values that are
+ less than 8 bytes long.
+ (ia64_push_dummy_call): Likewise.
+
+2011-01-13 Joel Brobecker <brobecker@adacore.com>
+
+ * ia64-tdep.c (floatformat_ia64_ext_little): Renames
+ floatformat_ia64_ext.
+ (floatformat_ia64_ext_big): New static const.
+ (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
+
+2011-01-12 Tom Tromey <tromey@redhat.com>
+
+ * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
+ messages.
+ * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
+ (mi_cmd_thread_list_ids): Likewise.
+ (mi_cmd_data_list_changed_registers): Likewise.
+ (mi_cmd_data_list_register_values): Likewise.
+ (mi_cmd_data_write_register_values): Likewise.
+ (mi_cmd_data_evaluate_expression): Likewise.
+ (mi_cmd_data_read_memory): Likewise.
+ (mi_cmd_data_read_memory_bytes): Likewise.
+ (mi_cmd_data_write_memory): Likewise.
+ (mi_cmd_enable_timings): Likewise.
+ * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
+ * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
+ (mi_cmd_var_delete): Likewise.
+ (mi_cmd_var_set_format): Likewise.
+ (mi_cmd_var_show_format): Likewise.
+ (mi_cmd_var_info_num_children): Likewise.
+ (mi_cmd_var_list_children): Likewise.
+ (mi_cmd_var_info_type): Likewise.
+ (mi_cmd_var_info_expression): Likewise.
+ (mi_cmd_var_show_attributes): Likewise.
+ (mi_cmd_var_assign): Likewise.
+ (mi_cmd_var_update): Likewise.
+ (mi_cmd_enable_pretty_printing): Likewise.
+ (mi_cmd_var_set_update_range): Likewise.
+ * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
+ messages.
+ (mi_cmd_target_file_put): Likewise.
+ (mi_cmd_target_file_delete): Likewise.
+ * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
+ messages.
+ (mi_cmd_stack_info_depth): Likewise.
+ (mi_cmd_stack_list_locals): Likewise.
+ (mi_cmd_stack_list_args): Likewise.
+ (mi_cmd_stack_select_frame): Likewise.
+ (mi_cmd_stack_select_frame): Likewise.
+ (mi_cmd_stack_info_frame): Likewise.
+ * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
+ messages.
+ (mi_cmd_file_list_exec_source_files): Likewise.
+ * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
+ (mi_cmd_env_cd): Likewise.
+ (mi_cmd_env_path): Likewise.
+ (mi_cmd_env_dir): Likewise.
+ (mi_cmd_inferior_tty_show): Likewise.
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
+ * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
+ (mi_cmd_break_watch): Likewise.
+
+2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
+ (ppc_linux_insert_hw_breakpoint): Likewise.
+ (ppc_linux_remove_hw_breakpoint): Likewise.
+ (ppc_linux_insert_watchpoint): Likewise.
+
+2011-01-12 Andrew Burgess <aburgess@broadcom.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR fortran/11104 and DWARF unbound arrays detection.
+ * dwarf2read.c (read_subrange_type): Set zero length on unspecified
+ upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
+ unspecified upper bound.
+ * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
+ variables array_size_array, tmp_type and offset_item. New variable
+ array. Remove call to f77_get_upperbound. New variables array_type
+ and index. Call value_subscripted_rvalue for each dimenasion. Remove
+ the final call to deprecated_set_value_type.
+
+2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Make value allocations more lazy.
+ * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
+ instead of allocate_value and set_value_lazy when possible.
+ * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
+ instead of allocate_value and set_value_lazy.
+ * findvar.c (value_of_register_lazy): Likewise.
+ (read_var_value): Remove V preallocation, call just check_typedef in
+ advance. Move allocate_value to LOC_CONST, LOC_LABEL,
+ LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
+ LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
+ set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
+ remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
+ in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
+ the end, remove set_value_lazy there.
+ * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
+ instead of allocate_value and set_value_lazy when possible.
+ * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
+ * value.c (allocate_computed_value): Use allocate_value_lazy instead
+ of allocate_value and set_value_lazy.
+ (value_from_contents_and_address): Use allocate_value_lazy instead of
+ allocate_value and set_value_lazy when possible.
+
+2011-01-12 Andrew Burgess <aburgess@broadcom.com>
+
+ * disasm.c (dump_insns): Support dumping opcodes for MI.
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
+ dumping of instruction opcodes.
+
+2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
+
+ * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
+ appropiately.
+
+2011-01-11 Tom Tromey <tromey@redhat.com>
+
+ * thread.c (do_captured_thread_select): Emit newline before
+ printing frame.
+
+2011-01-11 Michael Snyder <msnyder@vmware.com>
+
+ * s390-tdep.c: Comment cleanup, mostly periods and spaces.
+ * score-tdep.c: Ditto.
+ * score-tdep.h: Ditto.
+ * ser-base.c: Ditto.
+ * ser-go32.c: Ditto.
+ * serial.c: Ditto.
+ * serial.h: Ditto.
+ * ser-mingw.c: Ditto.
+ * ser-pipe.c: Ditto.
+ * ser-tcp.c: Ditto.
+ * ser-unix.c: Ditto.
+ * sh64-tdep.c: Ditto.
+ * shnbsd-nat.c: Ditto.
+ * sh-tdep.c: Ditto.
+ * sh-tdep.h: Ditto.
+ * solib.c: Ditto.
+ * solib-darwin.c: Ditto.
+ * solib-frv.c: Ditto.
+ * solib.h: Ditto.
+ * solib-irix.c: Ditto.
+ * solib-osf.c: Ditto.
+ * solib-pa64.c: Ditto.
+ * solib-som.c: Ditto.
+ * solib-spu.c: Ditto.
+ * solib-sunos.c: Ditto.
+ * solib-svr4.c: Ditto.
+ * solist.h: Ditto.
+ * sol-thread.c: Ditto.
+ * somread.c: Ditto.
+ * source.c: Ditto.
+ * source.h: Ditto.
+ * sparc64-linux-tdep.c: Ditto.
+ * sparc64-tdep.c: Ditto.
+ * sparc-linux-nat.c: Ditto.
+ * sparc-linux-tdep.c: Ditto.
+ * sparc-sol2-nat.c: Ditto.
+ * sparc-sol2-tdep.c: Ditto.
+ * sparc-tdep.c: Ditto.
+ * sparc-tdep.h: Ditto.
+ * spu-tdep.c: Ditto.
+ * stabsread.c: Ditto.
+ * stabsread.h: Ditto.
+ * stack.c: Ditto.
+ * symfile.c: Ditto.
+ * symfile.h: Ditto.
+ * symmisc.c: Ditto.
+ * symtab.c: Ditto.
+ * symtab.h: Ditto.
+ * target.c: Ditto.
+ * target-descriptions.c: Ditto.
+ * target-descriptions.h: Ditto.
+ * target.h: Ditto.
+ * target-memory.c: Ditto.
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-10 12:00 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2011-01-10 12:00 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via e88a6525f9ca04aad5afa8ddb045afb31195d037 (commit)
via c97eb2bc31d91975be87a349dbe716144502d585 (commit)
via a9462c6b594300ea2f00c850792dcaf32bcdb5dc (commit)
from 21bc8baa35cf7b7d555405cc0cd002b0eb4df932 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit e88a6525f9ca04aad5afa8ddb045afb31195d037
Merge: 21bc8ba c97eb2b
Author: Phil Muldoon <pmuldoon@localhost.localdomain>
Date: Mon Jan 10 12:00:03 2011 +0000
Merge remote branch 'gdb/master'
commit c97eb2bc31d91975be87a349dbe716144502d585
Author: pmuldoon <pmuldoon>
Date: Mon Jan 10 11:00:23 2011 +0000
2011-01-10 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-cmd.exp: Remove gdb_py_test_multiple function.
Use load_lib gdb-python.exp.
* gdb.python/python.exp: Ditto.
* gdb.python/py-function.exp: Ditto.
commit a9462c6b594300ea2f00c850792dcaf32bcdb5dc
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Mon Jan 10 08:40:14 2011 +0000
bfd/
* reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
relocations.
* libbfd.h: Rebuilt.
* bfd-in2.h: Rebuilt.
* elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
(elf32_arm_reloc_map): Likewise.
(tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
(elf32_arm_stub_long_branch_any_tls_pic,
elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
(DEF_STUBS): Add new stubs.
(struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
(elf32_arm_local_tlsdesc_gotent): New.
(GOT_TLS_GDESC): New mask.
(GOT_TLS_GD_ANY): Define.
(struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
(elf32_arm_compute_jump_table_size): New.
(struct elf32_arm_link_hash_table): Add next_tls_desc_index,
num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
sgotplt_jump_table_size fields.
(elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
(elf32_arm_link_hash_table_create): Initialize new fields.
(arm_type_of_stub): Check TLS desc relocs too.
(elf32_arm_stub_name): TLS desc relocs can be shared.
(elf32_arm_tls_transition): Determine relaxation.
(arm_stub_required_alignment): Add tls stubs.
(elf32_arm_size_stubs): Likewise.
(elf32_arm_tls_relax): Perform TLS relaxing.
(elf32_arm_final_link_relocate): Process TLS DESC relocations.
(IS_ARM_TLS_GNU_RELOC): New.
(IS_ARM_TLS_RELOC): Use it.
(elf32_arm_relocate_section): Perform TLS relaxing.
(elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
desc relocations.
(allocate_dynrelocs): Allocate tls desc relcoations.
(elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
symbols.
(elf32_arm_size_dynamic_sections): Allocate tls trampolines and
got slots.
(elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
symbol.
(elf32_arm_finish_dynamic_symbol): Adjust.
(arm_put_trampoline): New.
(elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
trampolines.
(elf_backend_always_size_sections): Define.
include/elf/
* arm.h (R_ARM_TLS_DESC, R_ARM_TLS_GOTDESC, R_ARM_TLS_CALL,
R_ARM_TLS_DESCSEQ, T_ARM_THM_TLS_CALL, R_ARM_THM_TLS_DESCSEQ): New
relocations.
gas/
* doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
.tlsdescseq directive.
* config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
following a symbol.
(s_arm_tls_descseq): New directive.
(md_pseudo_table): Add it.
(encode_branch): Allow TLS_CALL relocs too.
(do_t_blx, do_t_branch23): Use encode_branch.
(reloc_names): Add tlsdesc and tlscall.
(md_apply_fix): Process tls desc relocations.
(tc_gen_reloc): Likewise.
(arm_fix_adjustable): Likewise.
gas/testsuite/
* gas/arm/tls.s: Add tlsdesc tests.
* gas/arm/tls.d: Adjust.
ld/testsuite/
* ld-arm/arm-elf.exp: Added tests for new TLS handling
relocations.
* ld-arm/tls-descrelax-be32.d: New.
* ld-arm/tls-descrelax-be32.s: New.
* ld-arm/tls-descrelax-be8.d: New.
* ld-arm/tls-descrelax-be8.s: New.
* ld-arm/tls-descrelax-v7.d: New.
* ld-arm/tls-descrelax-v7.s: New.
* ld-arm/tls-descrelax.d: New.
* ld-arm/tls-descrelax.s: New.
* ld-arm/tls-descseq.d: New.
* ld-arm/tls-descseq.r: New.
* ld-arm/tls-descseq.s: New.
* ld-arm/tls-gdesc-got.d: New.
* ld-arm/tls-gdesc-got.s: New.
* ld-arm/tls-gdesc-nlazy.g: New.
* ld-arm/tls-gdesc-nlazy.s: New.
* ld-arm/tls-gdesc.d: New.
* ld-arm/tls-gdesc.r: New.
* ld-arm/tls-gdesc.s: New.
* ld-arm/tls-gdierelax.d: New.
* ld-arm/tls-gdierelax.s: New.
* ld-arm/tls-gdierelax2.d: New.
* ld-arm/tls-gdierelax2.s: New.
* ld-arm/tls-gdlerelax.d: New.
* ld-arm/tls-gdlerelax.s: New.
* ld-arm/tls-lib-loc.d: New.
* ld-arm/tls-lib-loc.r: New.
* ld-arm/tls-lib-loc.s: New.
* ld-arm/tls-longplt-lib.d: New.
* ld-arm/tls-longplt-lib.s: New.
* ld-arm/tls-longplt.d: New.
* ld-arm/tls-longplt.s: New.
* ld-arm/tls-mixed.r: New.
* ld-arm/tls-mixed.s: New.
* ld-arm/tls-thumb1.d: New.
* ld-arm/tls-thumb1.s: New.
* ld-arm/arm-elf.exp: New.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 51 ++
bfd/bfd-in2.h | 6 +
bfd/elf32-arm.c | 1017 +++++++++++++++++++++++++++---
bfd/libbfd.h | 6 +
bfd/reloc.c | 12 +
gdb/testsuite/ChangeLog | 7 +
gdb/testsuite/gdb.python/py-cmd.exp | 18 +-
gdb/testsuite/gdb.python/py-function.exp | 18 +-
gdb/testsuite/gdb.python/python.exp | 18 -
include/elf/ChangeLog | 7 +
include/elf/arm.h | 8 +-
11 files changed, 1032 insertions(+), 136 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c2c0157..42b07c6 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,54 @@
+2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
+ Glauber de Oliveira Costa <glommer@gmail.com>
+
+ * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
+ BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
+ BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
+ relocations.
+ * libbfd.h: Rebuilt.
+ * bfd-in2.h: Rebuilt.
+ * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
+ (elf32_arm_reloc_map): Likewise.
+ (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
+ (elf32_arm_stub_long_branch_any_tls_pic,
+ elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
+ (DEF_STUBS): Add new stubs.
+ (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
+ (elf32_arm_local_tlsdesc_gotent): New.
+ (GOT_TLS_GDESC): New mask.
+ (GOT_TLS_GD_ANY): Define.
+ (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
+ (elf32_arm_compute_jump_table_size): New.
+ (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
+ num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
+ sgotplt_jump_table_size fields.
+ (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
+ (elf32_arm_link_hash_table_create): Initialize new fields.
+ (arm_type_of_stub): Check TLS desc relocs too.
+ (elf32_arm_stub_name): TLS desc relocs can be shared.
+ (elf32_arm_tls_transition): Determine relaxation.
+ (arm_stub_required_alignment): Add tls stubs.
+ (elf32_arm_size_stubs): Likewise.
+ (elf32_arm_tls_relax): Perform TLS relaxing.
+ (elf32_arm_final_link_relocate): Process TLS DESC relocations.
+ (IS_ARM_TLS_GNU_RELOC): New.
+ (IS_ARM_TLS_RELOC): Use it.
+ (elf32_arm_relocate_section): Perform TLS relaxing.
+ (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
+ desc relocations.
+ (allocate_dynrelocs): Allocate tls desc relcoations.
+ (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
+ symbols.
+ (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
+ got slots.
+ (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
+ symbol.
+ (elf32_arm_finish_dynamic_symbol): Adjust.
+ (arm_put_trampoline): New.
+ (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
+ trampolines.
+ (elf_backend_always_size_sections): Define.
+
2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 8531f8d..84fc75d 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3146,6 +3146,12 @@ pc-relative or some form of GOT-indirect relocation. */
BFD_RELOC_ARM_TLS_TPOFF32,
BFD_RELOC_ARM_TLS_IE32,
BFD_RELOC_ARM_TLS_LE32,
+ BFD_RELOC_ARM_TLS_GOTDESC,
+ BFD_RELOC_ARM_TLS_CALL,
+ BFD_RELOC_ARM_THM_TLS_CALL,
+ BFD_RELOC_ARM_TLS_DESCSEQ,
+ BFD_RELOC_ARM_THM_TLS_DESCSEQ,
+ BFD_RELOC_ARM_TLS_DESC,
/* ARM group relocations. */
BFD_RELOC_ARM_ALU_PC_G0_NC,
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 7c8eb68..ea1e485 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -261,18 +261,18 @@ static reloc_howto_type elf32_arm_howto_table_1[] =
0xffffffff, /* dst_mask */
FALSE), /* pcrel_offset */
- HOWTO (R_ARM_SWI24, /* type */
+ HOWTO (R_ARM_TLS_DESC, /* type */
0, /* rightshift */
- 0, /* size (0 = byte, 1 = short, 2 = long) */
- 0, /* bitsize */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
FALSE, /* pc_relative */
0, /* bitpos */
- complain_overflow_signed,/* complain_on_overflow */
+ complain_overflow_bitfield,/* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
- "R_ARM_SWI24", /* name */
+ "R_ARM_TLS_DESC", /* name */
FALSE, /* partial_inplace */
- 0x00000000, /* src_mask */
- 0x00000000, /* dst_mask */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
FALSE), /* pcrel_offset */
HOWTO (R_ARM_THM_SWI8, /* type */
@@ -1352,10 +1352,61 @@ static reloc_howto_type elf32_arm_howto_table_1[] =
0x040f70ff, /* dst_mask */
FALSE), /* pcrel_offset */
- EMPTY_HOWTO (90), /* Unallocated. */
- EMPTY_HOWTO (91),
- EMPTY_HOWTO (92),
- EMPTY_HOWTO (93),
+ HOWTO (R_ARM_TLS_GOTDESC, /* type */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 32, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield,/* complain_on_overflow */
+ NULL, /* special_function */
+ "R_ARM_TLS_GOTDESC", /* name */
+ TRUE, /* partial_inplace */
+ 0xffffffff, /* src_mask */
+ 0xffffffff, /* dst_mask */
+ FALSE), /* pcrel_offset */
+
+ HOWTO (R_ARM_TLS_CALL, /* type */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 24, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_dont,/* complain_on_overflow */
+ bfd_elf_generic_reloc, /* special_function */
+ "R_ARM_TLS_CALL", /* name */
+ FALSE, /* partial_inplace */
+ 0x00ffffff, /* src_mask */
+ 0x00ffffff, /* dst_mask */
+ FALSE), /* pcrel_offset */
+
+ HOWTO (R_ARM_TLS_DESCSEQ, /* type */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 0, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield,/* complain_on_overflow */
+ bfd_elf_generic_reloc, /* special_function */
+ "R_ARM_TLS_DESCSEQ", /* name */
+ FALSE, /* partial_inplace */
+ 0x00000000, /* src_mask */
+ 0x00000000, /* dst_mask */
+ FALSE), /* pcrel_offset */
+
+ HOWTO (R_ARM_THM_TLS_CALL, /* type */
+ 0, /* rightshift */
+ 2, /* size (0 = byte, 1 = short, 2 = long) */
+ 24, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_dont,/* complain_on_overflow */
+ bfd_elf_generic_reloc, /* special_function */
+ "R_ARM_THM_TLS_CALL", /* name */
+ FALSE, /* partial_inplace */
+ 0x07ff07ff, /* src_mask */
+ 0x07ff07ff, /* dst_mask */
+ FALSE), /* pcrel_offset */
HOWTO (R_ARM_PLT32_ABS, /* type */
0, /* rightshift */
@@ -1599,6 +1650,38 @@ static reloc_howto_type elf32_arm_howto_table_1[] =
0x00000fff, /* src_mask */
0x00000fff, /* dst_mask */
FALSE), /* pcrel_offset */
+
+ EMPTY_HOWTO (112),
+ EMPTY_HOWTO (113),
+ EMPTY_HOWTO (114),
+ EMPTY_HOWTO (115),
+ EMPTY_HOWTO (116),
+ EMPTY_HOWTO (117),
+ EMPTY_HOWTO (118),
+ EMPTY_HOWTO (119),
+ EMPTY_HOWTO (120),
+ EMPTY_HOWTO (121),
+ EMPTY_HOWTO (122),
+ EMPTY_HOWTO (123),
+ EMPTY_HOWTO (124),
+ EMPTY_HOWTO (125),
+ EMPTY_HOWTO (126),
+ EMPTY_HOWTO (127),
+ EMPTY_HOWTO (128),
+
+ HOWTO (R_ARM_THM_TLS_DESCSEQ, /* type */
+ 0, /* rightshift */
+ 1, /* size (0 = byte, 1 = short, 2 = long) */
+ 0, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield,/* complain_on_overflow */
+ bfd_elf_generic_reloc, /* special_function */
+ "R_ARM_THM_TLS_DESCSEQ",/* name */
+ FALSE, /* partial_inplace */
+ 0x00000000, /* src_mask */
+ 0x00000000, /* dst_mask */
+ FALSE), /* pcrel_offset */
};
/* 112-127 private relocations
@@ -1730,6 +1813,12 @@ static const struct elf32_arm_reloc_map elf32_arm_reloc_map[] =
{BFD_RELOC_ARM_PREL31, R_ARM_PREL31},
{BFD_RELOC_ARM_TARGET2, R_ARM_TARGET2},
{BFD_RELOC_ARM_PLT32, R_ARM_PLT32},
+ {BFD_RELOC_ARM_TLS_GOTDESC, R_ARM_TLS_GOTDESC},
+ {BFD_RELOC_ARM_TLS_CALL, R_ARM_TLS_CALL},
+ {BFD_RELOC_ARM_THM_TLS_CALL, R_ARM_THM_TLS_CALL},
+ {BFD_RELOC_ARM_TLS_DESCSEQ, R_ARM_TLS_DESCSEQ},
+ {BFD_RELOC_ARM_THM_TLS_DESCSEQ, R_ARM_THM_TLS_DESCSEQ},
+ {BFD_RELOC_ARM_TLS_DESC, R_ARM_TLS_DESC},
{BFD_RELOC_ARM_TLS_GD32, R_ARM_TLS_GD32},
{BFD_RELOC_ARM_TLS_LDO32, R_ARM_TLS_LDO32},
{BFD_RELOC_ARM_TLS_LDM32, R_ARM_TLS_LDM32},
@@ -1912,6 +2001,26 @@ typedef unsigned short int insn16;
section. */
#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
+static const unsigned long tls_trampoline [] =
+ {
+ 0xe08e0000, /* add r0, lr, r0 */
+ 0xe5901004, /* ldr r1, [r0,#4] */
+ 0xe12fff11, /* bx r1 */
+ };
+
+static const unsigned long dl_tlsdesc_lazy_trampoline [] =
+ {
+ 0xe52d2004, /* push {r2} */
+ 0xe59f200c, /* ldr r2, [pc, #3f - . - 8] */
+ 0xe59f100c, /* ldr r1, [pc, #4f - . - 8] */
+ 0xe79f2002, /* 1: ldr r2, [pc, r2] */
+ 0xe081100f, /* 2: add r1, pc */
+ 0xe12fff12, /* bx r2 */
+ 0x00000014, /* 3: .word _GLOBAL_OFFSET_TABLE_ - 1b - 8
+ + dl_tlsdesc_lazy_resolver(GOT) */
+ 0x00000018, /* 4: .word _GLOBAL_OFFSET_TABLE_ - 2b - 8 */
+ };
+
#ifdef FOUR_WORD_PLT
/* The first entry in a procedure linkage table looks like
@@ -2167,6 +2276,26 @@ static const insn_sequence elf32_arm_stub_long_branch_v4t_thumb_thumb_pic[] =
DATA_WORD(0, R_ARM_REL32, 0), /* dcd R_ARM_REL32(X) */
};
+/* Thumb2/ARM -> TLS trampoline. Lowest common denominator, which is a
+ long PIC stub. We can use r1 as a scratch -- and cannot use ip. */
+static const insn_sequence elf32_arm_stub_long_branch_any_tls_pic[] =
+{
+ ARM_INSN(0xe59f1000), /* ldr r1, [pc] */
+ ARM_INSN(0xe08ff001), /* add pc, pc, r1 */
+ DATA_WORD(0, R_ARM_REL32, -4), /* dcd R_ARM_REL32(X-4) */
+};
+
+/* V4T Thumb -> TLS trampoline. lowest common denominator, which is a
+ long PIC stub. We can use r1 as a scratch -- and cannot use ip. */
+static const insn_sequence elf32_arm_stub_long_branch_v4t_thumb_tls_pic[] =
+{
+ THUMB16_INSN(0x4778), /* bx pc */
+ THUMB16_INSN(0x46c0), /* nop */
+ ARM_INSN(0xe59f1000), /* ldr r1, [pc, #0] */
+ ARM_INSN(0xe081f00f), /* add pc, r1, pc */
+ DATA_WORD(0, R_ARM_REL32, -4), /* dcd R_ARM_REL32(X) */
+};
+
/* Cortex-A8 erratum-workaround stubs. */
/* Stub used for conditional branches (which may be beyond +/-1MB away, so we
@@ -2218,6 +2347,8 @@ static const insn_sequence elf32_arm_stub_a8_veneer_blx[] =
DEF_STUB(long_branch_v4t_arm_thumb_pic) \
DEF_STUB(long_branch_v4t_thumb_arm_pic) \
DEF_STUB(long_branch_thumb_only_pic) \
+ DEF_STUB(long_branch_any_tls_pic) \
+ DEF_STUB(long_branch_v4t_thumb_tls_pic) \
DEF_STUB(a8_veneer_b_cond) \
DEF_STUB(a8_veneer_b) \
DEF_STUB(a8_veneer_bl) \
@@ -2426,6 +2557,9 @@ struct elf_arm_obj_tdata
/* tls_type for each local got entry. */
char *local_got_tls_type;
+ /* GOTPLT entries for TLS descriptors. */
+ bfd_vma *local_tlsdesc_gotent;
+
/* Zero to warn when linking objects with incompatible enum sizes. */
int no_enum_size_warning;
@@ -2439,6 +2573,9 @@ struct elf_arm_obj_tdata
#define elf32_arm_local_got_tls_type(bfd) \
(elf_arm_tdata (bfd)->local_got_tls_type)
+#define elf32_arm_local_tlsdesc_gotent(bfd) \
+ (elf_arm_tdata (bfd)->local_tlsdesc_gotent)
+
#define is_arm_elf(bfd) \
(bfd_get_flavour (bfd) == bfd_target_elf_flavour \
&& elf_tdata (bfd) != NULL \
@@ -2478,8 +2615,14 @@ struct elf32_arm_link_hash_entry
#define GOT_NORMAL 1
#define GOT_TLS_GD 2
#define GOT_TLS_IE 4
+#define GOT_TLS_GDESC 8
+#define GOT_TLS_GD_ANY_P(type) ((type & GOT_TLS_GD) || (type & GOT_TLS_GDESC))
unsigned char tls_type;
+ /* Offset of the GOTPLT entry reserved for the TLS descriptor,
+ starting at the end of the jump table. */
+ bfd_vma tlsdesc_got;
+
/* The symbol marking the real symbol location for exported thumb
symbols with Arm stubs. */
struct elf_link_hash_entry *export_glue;
@@ -2516,6 +2659,9 @@ struct map_stub
asection *stub_sec;
};
+#define elf32_arm_compute_jump_table_size(htab) \
+ ((htab)->next_tls_desc_index * 4)
+
/* ARM ELF linker hash table. */
struct elf32_arm_link_hash_table
{
@@ -2594,6 +2740,12 @@ struct elf32_arm_link_hash_table
/* True if the target uses REL relocations. */
int use_rel;
+ /* The index of the next unused R_ARM_TLS_DESC slot in .rel.plt. */
+ bfd_vma next_tls_desc_index;
+
+ /* How many R_ARM_TLS_DESC relocations were generated so far. */
+ bfd_vma num_tls_desc;
+
/* Short-cuts to get to dynamic linker sections. */
asection *sdynbss;
asection *srelbss;
@@ -2601,6 +2753,19 @@ struct elf32_arm_link_hash_table
/* The (unloaded but important) VxWorks .rela.plt.unloaded section. */
asection *srelplt2;
+ /* The offset into splt of the PLT entry for the TLS descriptor
+ resolver. Special values are 0, if not necessary (or not found
+ to be necessary yet), and -1 if needed but not determined
+ yet. */
+ bfd_vma dt_tlsdesc_plt;
+
+ /* The offset into sgot of the GOT entry used by the PLT entry
+ above. */
+ bfd_vma dt_tlsdesc_got;
+
+ /* Offset in .plt section of tls_arm_trampoline. */
+ bfd_vma tls_trampoline;
+
/* Data for R_ARM_TLS_LDM32 relocations. */
union
{
@@ -2614,6 +2779,10 @@ struct elf32_arm_link_hash_table
/* For convenience in allocate_dynrelocs. */
bfd * obfd;
+ /* The amount of space used by the reserved portion of the sgotplt
+ section, plus whatever space is used by the jump slots. */
+ bfd_vma sgotplt_jump_table_size;
+
/* The stub hash table. */
struct bfd_hash_table stub_hash_table;
@@ -2663,6 +2832,7 @@ elf32_arm_link_hash_newfunc (struct bfd_hash_entry * entry,
{
ret->dyn_relocs = NULL;
ret->tls_type = GOT_UNKNOWN;
+ ret->tlsdesc_got = (bfd_vma) -1;
ret->plt_thumb_refcount = 0;
ret->plt_maybe_thumb_refcount = 0;
ret->plt_got_offset = -1;
@@ -2877,6 +3047,11 @@ elf32_arm_link_hash_table_create (bfd *abfd)
ret->sdynbss = NULL;
ret->srelbss = NULL;
ret->srelplt2 = NULL;
+ ret->dt_tlsdesc_plt = 0;
+ ret->dt_tlsdesc_got = 0;
+ ret->tls_trampoline = 0;
+ ret->next_tls_desc_index = 0;
+ ret->num_tls_desc = 0;
ret->thumb_glue_size = 0;
ret->arm_glue_size = 0;
ret->bx_glue_size = 0;
@@ -3075,7 +3250,8 @@ arm_type_of_stub (struct bfd_link_info *info,
branch_offset = (bfd_signed_vma)(destination - location);
- if (r_type == R_ARM_THM_CALL || r_type == R_ARM_THM_JUMP24)
+ if (r_type == R_ARM_THM_CALL || r_type == R_ARM_THM_JUMP24
+ || r_type == R_ARM_THM_TLS_CALL)
{
/* Handle cases where:
- this call goes too far (different Thumb/Thumb2 max
@@ -3092,7 +3268,8 @@ arm_type_of_stub (struct bfd_link_info *info,
&& (branch_offset > THM2_MAX_FWD_BRANCH_OFFSET
|| (branch_offset < THM2_MAX_BWD_BRANCH_OFFSET)))
|| ((st_type != STT_ARM_TFUNC)
- && (((r_type == R_ARM_THM_CALL) && !globals->use_blx)
+ && (((r_type == R_ARM_THM_CALL
+ || r_type == R_ARM_THM_TLS_CALL) && !globals->use_blx)
|| (r_type == R_ARM_THM_JUMP24))
&& !use_plt))
{
@@ -3143,18 +3320,21 @@ arm_type_of_stub (struct bfd_link_info *info,
sym_sec->owner, input_bfd, name);
}
- stub_type = (info->shared | globals->pic_veneer)
+ stub_type =
+ (info->shared | globals->pic_veneer)
/* PIC stubs. */
- ? ((globals->use_blx
- && (r_type ==R_ARM_THM_CALL))
- /* V5T and above. */
- ? arm_stub_long_branch_any_arm_pic
- /* V4T PIC stub. */
- : arm_stub_long_branch_v4t_thumb_arm_pic)
+ ? (r_type == R_ARM_THM_TLS_CALL
+ /* TLS PIC stubs */
+ ? (globals->use_blx ? arm_stub_long_branch_any_tls_pic
+ : arm_stub_long_branch_v4t_thumb_tls_pic)
+ : ((globals->use_blx && r_type == R_ARM_THM_CALL)
+ /* V5T PIC and above. */
+ ? arm_stub_long_branch_any_arm_pic
+ /* V4T PIC stub. */
+ : arm_stub_long_branch_v4t_thumb_arm_pic))
/* non-PIC stubs. */
- : ((globals->use_blx
- && (r_type ==R_ARM_THM_CALL))
+ : ((globals->use_blx && r_type == R_ARM_THM_CALL)
/* V5T and above. */
? arm_stub_long_branch_any_any
/* V4T. */
@@ -3170,7 +3350,8 @@ arm_type_of_stub (struct bfd_link_info *info,
}
else if (r_type == R_ARM_CALL
|| r_type == R_ARM_JUMP24
- || r_type == R_ARM_PLT32)
+ || r_type == R_ARM_PLT32
+ || r_type == R_ARM_TLS_CALL)
{
if (st_type == STT_ARM_TFUNC)
{
@@ -3190,7 +3371,7 @@ arm_type_of_stub (struct bfd_link_info *info,
the mode change (bit 24 (H) of BLX encoding). */
if (branch_offset > (ARM_MAX_FWD_BRANCH_OFFSET + 2)
|| (branch_offset < ARM_MAX_BWD_BRANCH_OFFSET)
- || ((r_type == R_ARM_CALL) && !globals->use_blx)
+ || (r_type == R_ARM_CALL && !globals->use_blx)
|| (r_type == R_ARM_JUMP24)
|| (r_type == R_ARM_PLT32))
{
@@ -3216,9 +3397,13 @@ arm_type_of_stub (struct bfd_link_info *info,
if (branch_offset > ARM_MAX_FWD_BRANCH_OFFSET
|| (branch_offset < ARM_MAX_BWD_BRANCH_OFFSET))
{
- stub_type = (info->shared | globals->pic_veneer)
+ stub_type =
+ (info->shared | globals->pic_veneer)
/* PIC stubs. */
- ? arm_stub_long_branch_any_arm_pic
+ ? (r_type == R_ARM_TLS_CALL
+ /* TLS PIC Stub */
+ ? arm_stub_long_branch_any_tls_pic
+ : arm_stub_long_branch_any_arm_pic)
/* non-PIC stubs. */
: arm_stub_long_branch_any_any;
}
@@ -3263,7 +3448,9 @@ elf32_arm_stub_name (const asection *input_section,
sprintf (stub_name, "%08x_%x:%x+%x_%d",
input_section->id & 0xffffffff,
sym_sec->id & 0xffffffff,
- (int) ELF32_R_SYM (rel->r_info) & 0xffffffff,
+ ELF32_R_TYPE (rel->r_info) == R_ARM_TLS_CALL
+ || ELF32_R_TYPE (rel->r_info) == R_ARM_THM_TLS_CALL
+ ? 0 : (int) ELF32_R_SYM (rel->r_info) & 0xffffffff,
(int) rel->r_addend & 0xffffffff,
(int) stub_type);
}
@@ -3426,6 +3613,32 @@ put_thumb_insn (struct elf32_arm_link_hash_table * htab,
bfd_putb16 (val, ptr);
}
+/* If it's possible to change R_TYPE to a more efficient access
+ model, return the new reloc type. */
+
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-10 9:10 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2011-01-10 9:10 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 21bc8baa35cf7b7d555405cc0cd002b0eb4df932 (commit)
via 386fd71dbbeacfa996aa39085cc0a987456d6a7e (commit)
via 8b05ad8a8a57ea6aa546b97d8984d9966af9de28 (commit)
via 6f230b15ca7b6f7d2197c51fb275a858c7b000bc (commit)
via 159c035d4daf93dc39c22fbdf29348a0b772fb7c (commit)
via 3a45d307627f40de8c5ab6a48839fed985a0467a (commit)
via 5afaef5e344ae56eddec74900a39e8492ea22b18 (commit)
via 900ace7f9cd7f71e161a97f9d01b85114c1fa70d (commit)
via 9a8c65dd2b21512020cdd4b072a4de91bc874744 (commit)
via b00ecb8dab24ad52d2641ac537f5db32daba61c7 (commit)
via 7f8216b7f23798b10045f214e00af0fb4653ed02 (commit)
via 3fda795b388fb7f1ba2caa951a843939d26bfe48 (commit)
via b9db6aa13d53bd29df2cc574285c476ae9d6ff0b (commit)
via a9ad6cdd26f1ae0c933f0d946b27040df79d4a4c (commit)
via 66e56a98073cd68a6636e7fada635b7d93116ebb (commit)
via c32f7ee91c7e86c122f9c6c65d8fa90da75ec4b0 (commit)
via 15d9da77124a196567420d859a60fd03e4bd8002 (commit)
via e5585f82b7440dc4e96287f00be6050ca09f51ca (commit)
via 69a1cd8762ef44d74ce707b01e439211400790c9 (commit)
from ff3abfdd456fa07373e2c45e63fa1d1fde330689 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 21bc8baa35cf7b7d555405cc0cd002b0eb4df932
Merge: ff3abfd 386fd71
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jan 10 10:10:35 2011 +0100
Merge remote branch 'gdb/master'
commit 386fd71dbbeacfa996aa39085cc0a987456d6a7e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Jan 10 06:07:08 2011 +0000
minor comment reformatting (ada-valprint.c:printstr)
Just to make the length of each line a little more balanced.
gdb/ChangeLog:
* ada-valprint.c (printstr): Minor comment reformatting.
commit 8b05ad8a8a57ea6aa546b97d8984d9966af9de28
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon Jan 10 02:43:28 2011 +0000
2011-01-08 Michael Snyder <msnyder@vmware.com>
* m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
markup.
commit 6f230b15ca7b6f7d2197c51fb275a858c7b000bc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 10 00:00:32 2011 +0000
*** empty log message ***
commit 159c035d4daf93dc39c22fbdf29348a0b772fb7c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jan 9 23:00:06 2011 +0000
daily update
commit 3a45d307627f40de8c5ab6a48839fed985a0467a
Author: Andreas Schwab <schwab@suse.de>
Date: Sun Jan 9 15:22:49 2011 +0000
* gdb.threads/tls.exp ("info address me"): Fix expected output.
commit 5afaef5e344ae56eddec74900a39e8492ea22b18
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun Jan 9 03:20:32 2011 +0000
2011-01-08 Michael Snyder <msnyder@vmware.com>
* m2-exp.y: Comment cleanup, mostly periods and spaces.
* m2-lang.c: Ditto.
* m2-typeprint.c: Ditto.
* m2-valprint.c: Ditto.
* m32c-tdep.c: Ditto.
* m32r-linux-nat.c: Ditto.
* m32r-rom.c: Ditto.
* m32r-tdep.c: Ditto.
* m32r-tdep.h: Ditto.
* m68hc11-tdep.c: Ditto.
* m58klinux-nat.c: Ditto.
* m68k-tdep.c: Ditto.
* m88k-tdep.c: Ditto.
* m88k-tdep.h: Ditto.
* machoread.c: Ditto.
* macrocmd.c: Ditto.
* macroexp.c: Ditto.
* macrotab.c: Ditto.
* main.c: Ditto.
* maint.c: Ditto.
* mdebugread.c: Ditto.
* mdebugread.h: Ditto.
* memattr.c: Ditto.
* memattr.h: Ditto.
* memory-map.h: Ditto.
* mep-tdep.c: Ditto.
* microblaze-rom.c: Ditto.
* microblaze-tdep.c: Ditto.
* minsyms.c: Ditto.
* mips-irix-tdep.c: Ditto.
* mips-linux-nat.c: Ditto.
* mips-linux-tdep.c: Ditto.
* mips-linux-tdep.h: Ditto.
* mipsnbsd-nat.c: Ditto.
* mipsnbsd-tdep.c: Ditto.
* mipsread.c: Ditto.
* mips-tdep.c: Ditto.
* mips-tdep.h: Ditto.
* mn10300-linux-tdep.c: Ditto.
* mn10300-tdep.c: Ditto.
* mn10300-tdep.h: Ditto.
* monitor.c: Ditto.
* monitor.h: Ditto.
* moxie-tdep.c: Ditto.
* moxie-tdep.h: Ditto.
* mt-tdep.c: Ditto.
commit 900ace7f9cd7f71e161a97f9d01b85114c1fa70d
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun Jan 9 03:08:52 2011 +0000
2011-01-08 Michael Snyder <msnyder@vmware.com>
* h8300-tdep.c: Comment cleanup, mostly periods and spaces.
* hppa-hpux-tdep.c: Ditto.
* hppa-linux-nat.c: Ditto.
* hppa-linux-tdep.c: Ditto.
* hppanbsd-tdep.c: Ditto.
* hppa-tdep.c: Ditto.
* hppa-tdep.h: Ditto.
* hpux-thread.c: Ditto.
* i386-cygwin-tdep.c: Ditto.
* i386-darwin-nat.c: Ditto.
* i386gnu-nat.c: Ditto.
* i386-linux-nat.c: Ditto.
* i386-linux-tdep.c: Ditto.
* i386-nat.c: Ditto.
* i386-nat.h: Ditto.
* i386nbsd-tdep.c: Ditto.
* i386-sol2-nat.c: Ditto.
* i386-stub.c: Ditto.
* i386-tdep.c: Ditto.
* i386-tdep.h: Ditto.
* i387-tdep.c: Ditto.
* ia64-linux-nat.c: Ditto.
* ia64-linux-tdep.c: Ditto.
* ia64-tdep.c: Ditto.
* infcall.c: Ditto.
* infcall.h: Ditto.
* infcmd.c: Ditto.
* inferior.c: Ditto.
* inferior.h: Ditto.
* infloop.c: Ditto.
* inflow.c: Ditto.
* infrun.c: Ditto.
* interps.c: Ditto.
* interps.h: Ditto.
* iq2000-tdep.c: Ditto.
* irix5-nat.c: Ditto.
* jit.c: Ditto.
* jit.h: Ditto.
* jv-exp.y: Ditto.
* jv-lang.c: Ditto.
* jv-lang.h: Ditto.
* jv-typeprint.c: Ditto.
* jv-valprint.c: Ditto.
* language.c: Ditto.
* language.h: Ditto.
* linespec.c: Ditto.
* linux-fork.c: Ditto.
* linux-nat.c: Ditto.
* linux-thread-db.c: Ditto.
* lm32-tdep.c: Ditto.
commit 9a8c65dd2b21512020cdd4b072a4de91bc874744
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 9 00:00:33 2011 +0000
*** empty log message ***
commit b00ecb8dab24ad52d2641ac537f5db32daba61c7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jan 8 23:00:05 2011 +0000
daily update
commit 7f8216b7f23798b10045f214e00af0fb4653ed02
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat Jan 8 20:45:10 2011 +0000
gdb: bfin: tix typo in register name
Looks like we've long been using "AO" instead of "A0" in the enum for the
A0.W. But no one noticed since we aren't using it directly (we assume the
position in the reverse). I've committed this simple fix.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 3fda795b388fb7f1ba2caa951a843939d26bfe48
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 8 12:36:27 2011 +0000
Fix typo in fbsd-nat.c.
* fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
commit b9db6aa13d53bd29df2cc574285c476ae9d6ff0b
Author: Michael Snyder <msnyder@specifix.com>
Date: Sat Jan 8 04:01:09 2011 +0000
2011-01-07 Michael Snyder <msnyder@vmware.com>
* charset.c (_initialize_charset): Fix typo in string.
commit a9ad6cdd26f1ae0c933f0d946b27040df79d4a4c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 8 00:00:03 2011 +0000
*** empty log message ***
commit 66e56a98073cd68a6636e7fada635b7d93116ebb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 7 23:00:04 2011 +0000
daily update
commit c32f7ee91c7e86c122f9c6c65d8fa90da75ec4b0
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Jan 7 20:24:18 2011 +0000
2011-01-07 Michael Snyder <msnyder@vmware.com>
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
for i18n.
* tui/tui-layout.c (tui_set_layout_for_display_command):
Split line so that operator goes to beginning of line.
* tui/tui-winsource.c (tui_horizontal_source_scroll): Move
assignment out of if statement.
commit 15d9da77124a196567420d859a60fd03e4bd8002
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Jan 7 19:36:13 2011 +0000
2011-01-07 Michael Snyder <msnyder@vmware.com>
* ada-lang.c: Comment cleanup, mostly periods and spaces.
* ada-lang.h: Ditto.
* ada-tasks.c: Ditto.
* ada-valprint.c: Ditto.
* aix-threads.c: Ditto.
* alpha-linux-nat.c: Ditto.
* alpha-linux-tdep.c: Ditto.
* alpha-mdebug-tdep.c: Ditto.
* alpha-nat.c: Ditto.
* alpha-osf1-tdep.c: Ditto.
* alpha-tdep.c: Ditto.
* alphabsd-nat.c: Ditto.
* alphabsd-tdep.c: Ditto.
* amd64-darwin-tdep.c: Ditto.
* amd64-linux-nat.c: Ditto.
* amd64-linux-tdep.c: Ditto.
* amd64-sol2-tdep.c: Ditto.
* amd64-tdep.c: Ditto.
* amd64-fbsd-tdep.c: Ditto.
* amd64-nbsd-tdep.c: Ditto.
* amd64-obsd-tdep.c: Ditto.
* amd64-linux-nat.c: Ditto.
* amd64-linux-tdep.c: Ditto.
* arm-tdep.c: Ditto.
* arm-tdep.h: Ditto.
* armnbsd-nat.c: Ditto.
* avr-tdep.c: Ditto.
* bfin-tdep.c: Ditto.
* bsd-kvm.c: Ditto.
* c-typeprintc: Ditto.
* c-valprint.c: Ditto.
* coff-pe-read.h: Ditto.
* coffreead.c: Ditto.
* cris-tdep.c: Ditto.
* d-lang.c: Ditto.
* darwin-nat-info.c: Ditto.
* darwin-nat.c: Ditto.
* dbug-rom.c: Ditto.
* dbxread.c: Ditto.
* dcache.c: Ditto.
* dcache.h: Ditto.
* dec-thread.c: Ditto.
* defs.h: Ditto.
* demangle.c: Ditto.
* dicos-tdep.c: Ditto.
* dictionary.c: Ditto.
* dictionary.h: Ditto.
* dink32-rom.c: Ditto.
* disasm.c: Ditto.
* doublest.c: Ditto.
* dsrec.c: Ditto.
* dummy-frame.c: Ditto.
* dwarf2-frame.c: Ditto.
* dwarf2expr.c: Ditto.
* dwarf2loc.c: Ditto.
* dwarf2read.c: Ditto.
* elfread.c: Ditto.
* environ.c: Ditto.
* eval.c: Ditto.
* event-top.h: Ditto.
* exceptions.c: Ditto.
* exceptions.h: Ditto.
* exec.c: Ditto.
* expprint.c: Ditto.
* expression.h: Ditto.
* f-exp.y: Ditto.
* f-lang.c: Ditto.
* f-lang.h: Ditto.
* f-typeprint.c: Ditto.
* f-valprint.c: Ditto.
* fbsd-nat.c: Ditto.
* findvar.c: Ditto.
* fork-child.c: Ditto.
* frame.c: Ditto.
* frame.h: Ditto.
* frv-linux-tdep.c: Ditto.
* frv-tdep.c: Ditto.
* gcore.c: Ditto.
* gdb-stabs.h: Ditto.
* gdb_assert.h: Ditto.
* gdb_string.h: Ditto.
* gdb_thread_db.h: Ditto.
* gdb_wait.h: Ditto.
* gdbarch.sh: Ditto.
* gdbcore.h: Ditto.
* gdbthread.h: Ditto.
* gdbtypes.c: Ditto.
* gdbtypes.h: Ditto.
* gnu-nat.c: Ditto.
* gnu-nat.h: Ditto.
* gnu-v2-abi.c: Ditto.
* gnu-v3-abi.c: Ditto.
* go32-nat.c: Ditto.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
commit e5585f82b7440dc4e96287f00be6050ca09f51ca
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Jan 7 17:35:23 2011 +0000
2011-01-07 Michael Snyder <msnyder@vmware.com>
* ax-gdb.c: Adjust some long output strings.
* breakpoint.c: Ditto.
* charset.c: Ditto.
* cp-abi.c: Ditto.
* infcall.c: Ditto.
* infrun.c: Ditto.
* linux-nat.c: Ditto.
* solib-pa64.c: Ditto.
* solib-som.c: Ditto.
commit 69a1cd8762ef44d74ce707b01e439211400790c9
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jan 7 15:47:20 2011 +0000
* gdb.texinfo (Python API): Add descriptions to @menu items.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 242 ++++++++++++++++++++
gdb/ada-lang.c | 156 +++++++------
gdb/ada-lang.h | 20 +-
gdb/ada-tasks.c | 24 +-
gdb/ada-valprint.c | 18 +-
gdb/aix-thread.c | 22 +-
gdb/alpha-linux-nat.c | 11 +-
gdb/alpha-linux-tdep.c | 7 +-
gdb/alpha-mdebug-tdep.c | 10 +-
gdb/alpha-nat.c | 42 ++--
gdb/alpha-osf1-tdep.c | 4 +-
gdb/alpha-tdep.c | 36 ++--
gdb/alpha-tdep.h | 6 +-
gdb/alphabsd-nat.c | 9 +-
gdb/alphabsd-tdep.c | 3 +-
gdb/amd64-darwin-tdep.c | 2 +-
gdb/amd64-linux-nat.c | 2 +-
gdb/amd64-linux-tdep.c | 4 +-
gdb/amd64-sol2-tdep.c | 2 +-
gdb/amd64-tdep.c | 4 +-
gdb/amd64fbsd-tdep.c | 8 +-
gdb/amd64nbsd-tdep.c | 2 +-
gdb/amd64obsd-tdep.c | 6 +-
gdb/arm-linux-nat.c | 4 +-
gdb/arm-linux-tdep.c | 22 +-
gdb/arm-tdep.c | 158 ++++++++-----
gdb/arm-tdep.h | 2 +-
gdb/armnbsd-nat.c | 2 +-
gdb/avr-tdep.c | 127 ++++++------
gdb/ax-gdb.c | 5 +-
gdb/bfin-tdep.c | 3 +-
gdb/bfin-tdep.h | 2 +-
gdb/breakpoint.c | 6 +-
gdb/bsd-kvm.c | 10 +-
gdb/c-typeprint.c | 10 +-
gdb/c-valprint.c | 2 +-
gdb/charset.c | 8 +-
gdb/coff-pe-read.h | 2 +-
gdb/coffread.c | 4 +-
gdb/cp-abi.c | 6 +-
gdb/cris-tdep.c | 63 +++---
gdb/d-lang.c | 6 +-
gdb/darwin-nat-info.c | 2 +-
gdb/darwin-nat.c | 14 +-
gdb/dbug-rom.c | 8 +-
gdb/dbxread.c | 226 ++++++++++----------
gdb/dcache.c | 8 +-
gdb/dcache.h | 8 +-
gdb/dec-thread.c | 6 +-
gdb/defs.h | 81 ++++----
gdb/demangle.c | 20 +-
gdb/dicos-tdep.c | 3 +-
gdb/dictionary.c | 4 +-
gdb/dictionary.h | 2 +-
gdb/dink32-rom.c | 16 +-
gdb/disasm.c | 19 +-
gdb/doc/ChangeLog | 4 +
gdb/doc/gdb.texinfo | 4 +-
gdb/doublest.c | 24 +-
gdb/dsrec.c | 16 +-
gdb/dummy-frame.c | 2 +-
gdb/dwarf2-frame.c | 6 +-
gdb/dwarf2expr.c | 7 +-
gdb/dwarf2loc.c | 6 +-
gdb/dwarf2read.c | 126 +++++------
gdb/elfread.c | 30 ++--
gdb/environ.c | 2 +-
gdb/eval.c | 160 +++++++-------
gdb/event-top.h | 2 +-
gdb/exceptions.c | 16 +-
gdb/exceptions.h | 8 +-
gdb/exec.c | 26 +-
gdb/expprint.c | 13 +-
gdb/expression.h | 59 +++---
gdb/f-exp.y | 20 +-
gdb/f-lang.c | 40 ++--
gdb/f-lang.h | 6 +-
gdb/f-typeprint.c | 16 +-
gdb/f-valprint.c | 42 ++--
gdb/fbsd-nat.c | 2 +-
gdb/findvar.c | 2 +-
gdb/fork-child.c | 6 +-
gdb/frame.c | 12 +-
gdb/frame.h | 10 +-
gdb/frv-linux-tdep.c | 33 ++--
gdb/frv-tdep.c | 23 ++-
gdb/gcore.c | 4 +-
gdb/gdb-stabs.h | 4 +-
gdb/gdb_assert.h | 2 +-
gdb/gdb_string.h | 2 +-
gdb/gdb_thread_db.h | 19 +-
gdb/gdb_wait.h | 2 +-
gdb/gdbarch.c | 140 ++++++------
gdb/gdbarch.h | 40 ++--
gdb/gdbarch.sh | 82 ++++----
gdb/gdbcore.h | 15 +-
gdb/gdbthread.h | 6 +-
gdb/gdbtypes.c | 50 ++---
gdb/gdbtypes.h | 113 +++++-----
gdb/gnu-nat.c | 170 ++++++++------
gdb/gnu-nat.h | 17 +-
gdb/gnu-v2-abi.c | 43 ++--
gdb/gnu-v3-abi.c | 14 +-
gdb/go32-nat.c | 78 ++++---
gdb/h8300-tdep.c | 21 +-
gdb/hppa-hpux-tdep.c | 74 ++++---
gdb/hppa-linux-nat.c | 8 +-
gdb/hppa-linux-tdep.c | 22 +-
gdb/hppa-tdep.c | 97 +++++----
gdb/hppa-tdep.h | 19 +-
gdb/hppanbsd-tdep.c | 5 +-
gdb/hpux-thread.c | 27 ++-
gdb/i386-cygwin-tdep.c | 2 +-
gdb/i386-darwin-nat.c | 34 ++-
gdb/i386-linux-nat.c | 34 ++-
gdb/i386-linux-tdep.c | 7 +-
gdb/i386-nat.c | 9 +-
gdb/i386-nat.h | 2 +-
gdb/i386-sol2-nat.c | 4 +-
gdb/i386-stub.c | 4 +-
gdb/i386-tdep.c | 61 +++---
gdb/i386-tdep.h | 11 +-
gdb/i386gnu-nat.c | 6 +-
gdb/i386nbsd-tdep.c | 6 +-
gdb/i387-tdep.c | 8 +-
gdb/ia64-linux-nat.c | 43 ++--
gdb/ia64-linux-tdep.c | 11 +-
gdb/ia64-tdep.c | 257 +++++++++++++---------
gdb/inf-loop.c | 20 +-
gdb/infcall.c | 109 +++++-----
gdb/infcall.h | 2 +-
gdb/infcmd.c | 105 +++++-----
gdb/inferior.c | 2 +-
gdb/inferior.h | 28 ++--
gdb/inflow.c | 12 +-
gdb/infrun.c | 149 ++++++-------
gdb/interps.c | 38 ++--
gdb/interps.h | 2 +-
gdb/iq2000-tdep.c | 61 +++---
gdb/irix5-nat.c | 13 +-
gdb/jit.c | 33 ++--
gdb/jit.h | 39 ++--
gdb/jv-exp.y | 32 ++--
gdb/jv-lang.c | 90 ++++----
gdb/jv-lang.h | 6 +-
gdb/jv-typeprint.c | 8 +-
gdb/jv-valprint.c | 22 +-
gdb/language.c | 92 ++++----
gdb/language.h | 74 +++---
gdb/linespec.c | 91 ++++----
gdb/linux-fork.c | 4 +-
gdb/linux-nat.c | 57 +++---
gdb/linux-thread-db.c | 5 +-
gdb/lm32-tdep.c | 16 +-
gdb/m2-exp.y | 16 +-
gdb/m2-lang.c | 8 +-
gdb/m2-typeprint.c | 13 +-
gdb/m2-valprint.c | 7 +-
gdb/m32c-tdep.c | 15 +-
gdb/m32r-linux-nat.c | 5 +-
gdb/m32r-rom.c | 113 ++++++----
gdb/m32r-tdep.c | 86 ++++----
gdb/m32r-tdep.h | 6 +-
gdb/m68hc11-tdep.c | 27 ++-
gdb/m68k-tdep.c | 22 +-
gdb/m68klinux-nat.c | 42 +++--
gdb/m88k-tdep.c | 4 +-
gdb/m88k-tdep.h | 2 +-
gdb/machoread.c | 12 +-
gdb/macrocmd.c | 2 +-
gdb/macroexp.c | 6 +-
gdb/macrotab.c | 2 +-
gdb/main.c | 9 +-
gdb/maint.c | 29 ++--
gdb/mdebugread.c | 443 +++++++++++++++++++------------------
gdb/mdebugread.h | 4 +-
gdb/memattr.c | 10 +-
gdb/memattr.h | 17 +-
gdb/memory-map.h | 3 +-
gdb/mep-tdep.c | 26 +-
gdb/mi/mi-cmd-disas.c | 8 +-
gdb/microblaze-rom.c | 6 +-
gdb/microblaze-tdep.c | 37 ++--
gdb/minsyms.c | 60 +++---
gdb/mips-irix-tdep.c | 2 +-
gdb/mips-linux-nat.c | 15 +-
gdb/mips-linux-tdep.c | 6 +-
gdb/mips-linux-tdep.h | 9 +-
gdb/mips-tdep.c | 303 ++++++++++++++------------
gdb/mips-tdep.h | 12 +-
gdb/mipsnbsd-nat.c | 6 +-
gdb/mipsnbsd-tdep.c | 3 +-
gdb/mipsread.c | 23 +-
gdb/mn10300-linux-tdep.c | 12 +-
gdb/mn10300-tdep.c | 13 +-
gdb/mn10300-tdep.h | 4 +-
gdb/monitor.c | 202 +++++++++---------
gdb/monitor.h | 43 ++--
gdb/moxie-tdep.c | 6 +-
gdb/moxie-tdep.h | 2 +-
gdb/mt-tdep.c | 23 +-
gdb/solib-pa64.c | 9 +-
gdb/solib-som.c | 37 ++--
gdb/testsuite/ChangeLog | 60 +++---
gdb/testsuite/gdb.threads/tls.exp | 2 +-
gdb/tui/tui-layout.c | 4 +-
gdb/tui/tui-winsource.c | 5 +-
gdb/version.in | 2 +-
209 files changed, 3673 insertions(+), 3077 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 0802422..57f53b3 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20110107
+#define BFD_VERSION_DATE 20110110
#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 b1edadf..c03a6fc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,245 @@
+2011-01-10 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-valprint.c (printstr): Minor comment reformatting.
+
+2011-01-08 Michael Snyder <msnyder@vmware.com>
+
+ * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
+ markup.
+
+2011-01-08 Michael Snyder <msnyder@vmware.com>
+
+ * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
+ * hppa-hpux-tdep.c: Ditto.
+ * hppa-linux-nat.c: Ditto.
+ * hppa-linux-tdep.c: Ditto.
+ * hppanbsd-tdep.c: Ditto.
+ * hppa-tdep.c: Ditto.
+ * hppa-tdep.h: Ditto.
+ * hpux-thread.c: Ditto.
+ * i386-cygwin-tdep.c: Ditto.
+ * i386-darwin-nat.c: Ditto.
+ * i386gnu-nat.c: Ditto.
+ * i386-linux-nat.c: Ditto.
+ * i386-linux-tdep.c: Ditto.
+ * i386-nat.c: Ditto.
+ * i386-nat.h: Ditto.
+ * i386nbsd-tdep.c: Ditto.
+ * i386-sol2-nat.c: Ditto.
+ * i386-stub.c: Ditto.
+ * i386-tdep.c: Ditto.
+ * i386-tdep.h: Ditto.
+ * i387-tdep.c: Ditto.
+ * ia64-linux-nat.c: Ditto.
+ * ia64-linux-tdep.c: Ditto.
+ * ia64-tdep.c: Ditto.
+ * infcall.c: Ditto.
+ * infcall.h: Ditto.
+ * infcmd.c: Ditto.
+ * inferior.c: Ditto.
+ * inferior.h: Ditto.
+ * infloop.c: Ditto.
+ * inflow.c: Ditto.
+ * infrun.c: Ditto.
+ * interps.c: Ditto.
+ * interps.h: Ditto.
+ * iq2000-tdep.c: Ditto.
+ * irix5-nat.c: Ditto.
+ * jit.c: Ditto.
+ * jit.h: Ditto.
+ * jv-exp.y: Ditto.
+ * jv-lang.c: Ditto.
+ * jv-lang.h: Ditto.
+ * jv-typeprint.c: Ditto.
+ * jv-valprint.c: Ditto.
+ * language.c: Ditto.
+ * language.h: Ditto.
+ * linespec.c: Ditto.
+ * linux-fork.c: Ditto.
+ * linux-nat.c: Ditto.
+ * linux-thread-db.c: Ditto.
+ * lm32-tdep.c: Ditto.
+
+2011-01-08 Michael Snyder <msnyder@vmware.com>
+
+ * m2-exp.y: Comment cleanup, mostly periods and spaces.
+ * m2-lang.c: Ditto.
+ * m2-typeprint.c: Ditto.
+ * m2-valprint.c: Ditto.
+ * m32c-tdep.c: Ditto.
+ * m32r-linux-nat.c: Ditto.
+ * m32r-rom.c: Ditto.
+ * m32r-tdep.c: Ditto.
+ * m32r-tdep.h: Ditto.
+ * m68hc11-tdep.c: Ditto.
+ * m58klinux-nat.c: Ditto.
+ * m68k-tdep.c: Ditto.
+ * m88k-tdep.c: Ditto.
+ * m88k-tdep.h: Ditto.
+ * machoread.c: Ditto.
+ * macrocmd.c: Ditto.
+ * macroexp.c: Ditto.
+ * macrotab.c: Ditto.
+ * main.c: Ditto.
+ * maint.c: Ditto.
+ * mdebugread.c: Ditto.
+ * mdebugread.h: Ditto.
+ * memattr.c: Ditto.
+ * memattr.h: Ditto.
+ * memory-map.h: Ditto.
+ * mep-tdep.c: Ditto.
+ * microblaze-rom.c: Ditto.
+ * microblaze-tdep.c: Ditto.
+ * minsyms.c: Ditto.
+ * mips-irix-tdep.c: Ditto.
+ * mips-linux-nat.c: Ditto.
+ * mips-linux-tdep.c: Ditto.
+ * mips-linux-tdep.h: Ditto.
+ * mipsnbsd-nat.c: Ditto.
+ * mipsnbsd-tdep.c: Ditto.
+ * mipsread.c: Ditto.
+ * mips-tdep.c: Ditto.
+ * mips-tdep.h: Ditto.
+ * mn10300-linux-tdep.c: Ditto.
+ * mn10300-tdep.c: Ditto.
+ * mn10300-tdep.h: Ditto.
+ * monitor.c: Ditto.
+ * monitor.h: Ditto.
+ * moxie-tdep.c: Ditto.
+ * moxie-tdep.h: Ditto.
+ * mt-tdep.c: Ditto.
+
+2011-01-08 Mike Frysinger <vapier@gentoo.org>
+
+ * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
+
+2011-01-08 Robert Millan <rmh@gnu.org>
+
+ * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
+
+2011-01-07 Michael Snyder <msnyder@vmware.com>
+
+ * charset.c (_initialize_charset): Fix typo in string.
+
+2011-01-07 Michael Snyder <msnyder@vmware.com>
+
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
+ for i18n.
+ * tui/tui-layout.c (tui_set_layout_for_display_command):
+ Split line so that operator goes to beginning of line.
+ * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
+ assignment out of if statement.
+
+2011-01-07 Michael Snyder <msnyder@vmware.com>
+
+ * ada-lang.c: Comment cleanup, mostly periods and spaces.
+ * ada-lang.h: Ditto.
+ * ada-tasks.c: Ditto.
+ * ada-valprint.c: Ditto.
+ * aix-threads.c: Ditto.
+ * alpha-linux-nat.c: Ditto.
+ * alpha-linux-tdep.c: Ditto.
+ * alpha-mdebug-tdep.c: Ditto.
+ * alpha-nat.c: Ditto.
+ * alpha-osf1-tdep.c: Ditto.
+ * alpha-tdep.c: Ditto.
+ * alphabsd-nat.c: Ditto.
+ * alphabsd-tdep.c: Ditto.
+ * amd64-darwin-tdep.c: Ditto.
+ * amd64-linux-nat.c: Ditto.
+ * amd64-linux-tdep.c: Ditto.
+ * amd64-sol2-tdep.c: Ditto.
+ * amd64-tdep.c: Ditto.
+ * amd64-fbsd-tdep.c: Ditto.
+ * amd64-nbsd-tdep.c: Ditto.
+ * amd64-obsd-tdep.c: Ditto.
+ * amd64-linux-nat.c: Ditto.
+ * amd64-linux-tdep.c: Ditto.
+ * arm-tdep.c: Ditto.
+ * arm-tdep.h: Ditto.
+ * armnbsd-nat.c: Ditto.
+ * avr-tdep.c: Ditto.
+ * bfin-tdep.c: Ditto.
+ * bsd-kvm.c: Ditto.
+ * c-typeprintc: Ditto.
+ * c-valprint.c: Ditto.
+ * coff-pe-read.h: Ditto.
+ * coffreead.c: Ditto.
+ * cris-tdep.c: Ditto.
+ * d-lang.c: Ditto.
+ * darwin-nat-info.c: Ditto.
+ * darwin-nat.c: Ditto.
+ * dbug-rom.c: Ditto.
+ * dbxread.c: Ditto.
+ * dcache.c: Ditto.
+ * dcache.h: Ditto.
+ * dec-thread.c: Ditto.
+ * defs.h: Ditto.
+ * demangle.c: Ditto.
+ * dicos-tdep.c: Ditto.
+ * dictionary.c: Ditto.
+ * dictionary.h: Ditto.
+ * dink32-rom.c: Ditto.
+ * disasm.c: Ditto.
+ * doublest.c: Ditto.
+ * dsrec.c: Ditto.
+ * dummy-frame.c: Ditto.
+ * dwarf2-frame.c: Ditto.
+ * dwarf2expr.c: Ditto.
+ * dwarf2loc.c: Ditto.
+ * dwarf2read.c: Ditto.
+ * elfread.c: Ditto.
+ * environ.c: Ditto.
+ * eval.c: Ditto.
+ * event-top.h: Ditto.
+ * exceptions.c: Ditto.
+ * exceptions.h: Ditto.
+ * exec.c: Ditto.
+ * expprint.c: Ditto.
+ * expression.h: Ditto.
+ * f-exp.y: Ditto.
+ * f-lang.c: Ditto.
+ * f-lang.h: Ditto.
+ * f-typeprint.c: Ditto.
+ * f-valprint.c: Ditto.
+ * fbsd-nat.c: Ditto.
+ * findvar.c: Ditto.
+ * fork-child.c: Ditto.
+ * frame.c: Ditto.
+ * frame.h: Ditto.
+ * frv-linux-tdep.c: Ditto.
+ * frv-tdep.c: Ditto.
+ * gcore.c: Ditto.
+ * gdb-stabs.h: Ditto.
+ * gdb_assert.h: Ditto.
+ * gdb_string.h: Ditto.
+ * gdb_thread_db.h: Ditto.
+ * gdb_wait.h: Ditto.
+ * gdbarch.sh: Ditto.
+ * gdbcore.h: Ditto.
+ * gdbthread.h: Ditto.
+ * gdbtypes.c: Ditto.
+ * gdbtypes.h: Ditto.
+ * gnu-nat.c: Ditto.
+ * gnu-nat.h: Ditto.
+ * gnu-v2-abi.c: Ditto.
+ * gnu-v3-abi.c: Ditto.
+ * go32-nat.c: Ditto.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Regenerate.
+
+2011-01-07 Michael Snyder <msnyder@vmware.com>
+
+ * ax-gdb.c: Adjust some long output strings.
+ * breakpoint.c: Ditto.
+ * charset.c: Ditto.
+ * cp-abi.c: Ditto.
+ * infcall.c: Ditto.
+ * infrun.c: Ditto.
+ * linux-nat.c: Ditto.
+ * solib-pa64.c: Ditto.
+ * solib-som.c: Ditto.
+
2011-01-06 Tom Tromey <tromey@redhat.com>
PR python/12367:
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 3efff2e..4f96e4a 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -62,7 +62,7 @@
#include "value.h"
/* Define whether or not the C operator '/' truncates towards zero for
- differently signed operands (truncation direction is undefined in C).
+ differently signed operands (truncation direction is undefined in C).
Copied from valarith.c. */
#ifndef TRUNCATION_TOWARDS_ZERO
@@ -239,7 +239,8 @@ static struct value *ada_index_struct_field (int, struct value *, int,
struct type *);
static struct value *assign_aggregate (struct value *, struct value *,
- struct expression *, int *, enum noside);
+ struct expression *,
+ int *, enum noside);
static void aggregate_assign_from_choices (struct value *, struct value *,
struct expression *,
@@ -621,7 +622,7 @@ check_size (const struct type *type)
error (_("object size is larger than varsize-limit"));
}
-/* Maximum value of a SIZE-byte signed integer type. */
+/* Maximum value of a SIZE-byte signed integer type. */
static LONGEST
max_of_size (int size)
{
@@ -630,14 +631,14 @@ max_of_size (int size)
return top_bit | (top_bit - 1);
}
-/* Minimum value of a SIZE-byte signed integer type. */
+/* Minimum value of a SIZE-byte signed integer type. */
static LONGEST
min_of_size (int size)
{
return -max_of_size (size) - 1;
}
-/* Maximum value of a SIZE-byte unsigned integer type. */
+/* Maximum value of a SIZE-byte unsigned integer type. */
static ULONGEST
umax_of_size (int size)
{
@@ -646,7 +647,7 @@ umax_of_size (int size)
return top_bit | (top_bit - 1);
}
-/* Maximum value of integral type T, as a signed quantity. */
+/* Maximum value of integral type T, as a signed quantity. */
static LONGEST
max_of_type (struct type *t)
{
@@ -656,7 +657,7 @@ max_of_type (struct type *t)
return max_of_size (TYPE_LENGTH (t));
}
-/* Minimum value of integral type T, as a signed quantity. */
+/* Minimum value of integral type T, as a signed quantity. */
static LONGEST
min_of_type (struct type *t)
{
@@ -934,7 +935,7 @@ ada_remove_po_subprogram_suffix (const char *encoded, int *len)
/* Protected entry subprograms are broken into two
separate subprograms: The first one is unprotected, and has
a 'N' suffix; the second is the protected version, and has
- the 'P' suffix. The second calls the first one after handling
+ the 'P' suffix. The second calls the first one after handling
the protection. Since the P subprograms are internally generated,
we leave these names undecoded, giving the user a clue that this
entity is internal. */
@@ -1114,7 +1115,7 @@ ada_decode (const char *encoded)
/* Remove _E{DIGITS}+[sb] */
/* Just as for protected object subprograms, there are 2 categories
- of subprograms created by the compiler for each entry. The first
+ of subprograms created by the compiler for each entry. The first
one implements the actual entry code, and has a suffix following
the convention above; the second one implements the barrier and
uses the same convention as above, except that the 'E' is replaced
@@ -1232,11 +1233,10 @@ static struct htab *decoded_names_store;
previously computed. Tries to save the decoded name in the same
obstack as GSYMBOL, if possible, and otherwise on the heap (so that,
in any case, the decoded symbol has a lifetime at least that of
- GSYMBOL).
+ GSYMBOL).
The GSYMBOL parameter is "mutable" in the C++ sense: logically
const, but nevertheless modified to a semantically equivalent form
- when a decoded name is cached in it.
-*/
+ when a decoded name is cached in it. */
char *
ada_decode_symbol (const struct general_symbol_info *gsymbol)
@@ -1708,7 +1708,7 @@ ada_is_direct_array_type (struct type *type)
}
/* Non-zero iff TYPE represents any kind of array in Ada, or a pointer
- * to one. */
+ * to one. */
static int
ada_is_array_type (struct type *type)
@@ -2039,7 +2039,8 @@ decode_constrained_packed_array_type (struct type *type)
if (TYPE_CODE (shadow_type) != TYPE_CODE_ARRAY)
{
- lim_warning (_("could not understand bounds information on packed array"));
+ lim_warning (_("could not understand bounds "
+ "information on packed array"));
return NULL;
}
@@ -2125,7 +2126,8 @@ value_subscript_packed (struct value *arr, int arity, struct value **ind)
if (TYPE_CODE (elt_type) != TYPE_CODE_ARRAY
|| TYPE_FIELD_BITSIZE (elt_type, 0) == 0)
error
- (_("attempt to do packed indexing of something other than a packed array"));
+ (_("attempt to do packed indexing of "
+ "something other than a packed array"));
else
{
struct type *range_type = TYPE_INDEX_TYPE (elt_type);
@@ -2140,7 +2142,8 @@ value_subscript_packed (struct value *arr, int arity, struct value **ind)
idx = pos_atr (ind[i]);
if (idx < lowerbound || idx > upperbound)
- lim_warning (_("packed array index %ld out of bounds"), (long) idx);
+ lim_warning (_("packed array index %ld out of bounds"),
+ (long) idx);
bits = TYPE_FIELD_BITSIZE (elt_type, 0);
elt_total_bit_offset += (idx - lowerbound) * bits;
elt_type = ada_check_typedef (TYPE_TARGET_TYPE (elt_type));
@@ -2174,7 +2177,7 @@ has_negatives (struct type *type)
/* Create a new value of type TYPE from the contents of OBJ starting
at byte OFFSET, and bit offset BIT_OFFSET within that byte,
proceeding for BIT_SIZE bits. If OBJ is an lval in memory, then
- assigning through the result will set the field fetched from.
+ assigning through the result will set the field fetched from.
VALADDR is ignored unless OBJ is NULL, in which case,
VALADDR+OFFSET must address the start of storage containing the
packed value. The value returned in this case is never an lval.
@@ -2550,7 +2553,7 @@ ada_value_ptr_subscript (struct value *arr, struct type *type, int arity,
/* Given that ARRAY_PTR is a pointer or reference to an array of type TYPE (the
actual type of ARRAY_PTR is ignored), returns the Ada slice of HIGH-LOW+1
elements starting at index LOW. The lower bound of this array is LOW, as
- per Ada rules. */
+ per Ada rules. */
static struct value *
ada_value_slice_from_ptr (struct value *array_ptr, struct type *type,
int low, int high)
@@ -3823,7 +3826,7 @@ possible_user_operator_p (enum exp_opcode op, struct value *args[])
sets *LEN to the length of the renamed entity's name,
*RENAMED_ENTITY to that name (not null-terminated), and *RENAMING_EXPR to
the string describing the subcomponent selected from the renamed
- entity. Returns ADA_NOT_RENAMING if SYM does not encode a renaming
+ entity. Returns ADA_NOT_RENAMING if SYM does not encode a renaming
(in which case, the values of *RENAMED_ENTITY, *LEN, and *RENAMING_EXPR
are undefined). Otherwise, returns a value indicating the category
of entity renamed: an object (ADA_OBJECT_RENAMING), exception
@@ -4069,7 +4072,8 @@ make_array_descriptor (struct type *type, struct value *arr)
struct value *bounds = allocate_value (bounds_type);
int i;
- for (i = ada_array_arity (ada_check_typedef (value_type (arr))); i > 0; i -= 1)
+ for (i = ada_array_arity (ada_check_typedef (value_type (arr)));
+ i > 0; i -= 1)
{
modify_field (value_type (bounds), value_contents_writeable (bounds),
ada_array_bound (arr, i, 0),
@@ -4106,7 +4110,7 @@ make_array_descriptor (struct type *type, struct value *arr)
}
\f
/* Dummy definitions for an experimental caching module that is not
- * used in the public sources. */
+ * used in the public sources. */
static int
lookup_cached_symbol (const char *name, domain_enum namespace,
@@ -4407,7 +4411,7 @@ static char *
xget_renaming_scope (struct type *renaming_type)
{
/* The renaming types adhere to the following convention:
- <scope>__<rename>___<XR extension>.
+ <scope>__<rename>___<XR extension>.
So, to extract the scope, we search for the "___XR" extension,
and then backtrack until we find the first "__". */
@@ -4546,7 +4550,7 @@ remove_irrelevant_renamings (struct ada_symbol_info *syms,
/* If there is both a renaming foo___XR... encoded as a variable and
a simple variable foo in the same block, discard the latter.
- First, zero out such symbols, then compress. */
+ First, zero out such symbols, then compress. */
is_new_style_renaming = 0;
for (i = 0; i < nsyms; i += 1)
{
@@ -4784,8 +4788,10 @@ add_nonlocal_symbols (struct obstack *obstackp, const char *name,
strcpy (name1, "_ada_");
strcpy (name1 + sizeof ("_ada_") - 1, name);
data.objfile = objfile;
- objfile->sf->qf->map_matching_symbols (name1, domain, objfile, global,
- aux_add_nonlocal_symbols, &data,
+ objfile->sf->qf->map_matching_symbols (name1, domain,
+ objfile, global,
+ aux_add_nonlocal_symbols,
+ &data,
full_match, compare_names);
}
}
@@ -4913,7 +4919,7 @@ ada_lookup_encoded_symbol (const char *name, const struct block *block0,
/* Return a symbol in DOMAIN matching NAME, in BLOCK0 and enclosing
scope and in global scopes, or NULL if none. NAME is folded and
encoded first. Otherwise, the result is as for ada_lookup_symbol_list,
- choosing the first symbol if there are multiple choices.
+ choosing the first symbol if there are multiple choices.
*IS_A_FIELD_OF_THIS is set to 0 and *SYMTAB is set to the symbol
table in which the symbol was found (in both cases, these
assignments occur only if the pointers are non-null). */
@@ -4992,14 +4998,14 @@ is_name_suffix (const char *str)
#if 0
/* FIXME: brobecker/2005-09-23: Protected Object subprograms end
- with a N at the end. Unfortunately, the compiler uses the same
- convention for other internal types it creates. So treating
+ with a N at the end. Unfortunately, the compiler uses the same
+ convention for other internal types it creates. So treating
all entity names that end with an "N" as a name suffix causes
- some regressions. For instance, consider the case of an enumerated
- type. To support the 'Image attribute, it creates an array whose
+ some regressions. For instance, consider the case of an enumerated
+ type. To support the 'Image attribute, it creates an array whose
name ends with N.
Having a single character like this as a suffix carrying some
- information is a bit risky. Perhaps we should change the encoding
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-07 5:57 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2011-01-07 5:57 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via ff3abfdd456fa07373e2c45e63fa1d1fde330689 (commit)
via fc7aee6fd42face8453d4c9a6f5c2a7589fbf557 (commit)
via 5936736ddc1d7d0ff03a2cb9cdcba14e05d8f058 (commit)
via 390347e3af69c4e3b28f50ff079ad629e6ed86f3 (commit)
via 6375164cac7df1b8bbdc44330e8dd84e91a36e1a (commit)
via b09ef0963472ecefb3c48c4f6b854af3df39408d (commit)
via 0d67ef8877f86c2cd1144e6e1e51c95806a09403 (commit)
via f47b1885bb46d4a0a5963483c6cbcfbe4444a253 (commit)
via 93df9f55772f9992866d94d3eda65e7c7d7ee39a (commit)
via 9e9d3b19324834de25706adaa5e77e940042255d (commit)
via 95eb7299a43691367d4234b44e256244f501f9dd (commit)
via 38e689abe37e23dc10ae6b3d7eda10792fbe5cce (commit)
via 10ca8357c723a3a0dff901b421d62297fe3d0185 (commit)
via 6162f66a3168655f31475fe2a34750b13629b432 (commit)
from ee7931dc2f112b223bd76bf31ba5bfc716a0a947 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ff3abfdd456fa07373e2c45e63fa1d1fde330689
Merge: ee7931d fc7aee6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jan 7 06:57:16 2011 +0100
Merge remote branch 'gdb/master'
commit fc7aee6fd42face8453d4c9a6f5c2a7589fbf557
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Jan 7 03:34:20 2011 +0000
Optimize _bfd_elf_allocate_ifunc_dyn_relocs.
2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
commit 5936736ddc1d7d0ff03a2cb9cdcba14e05d8f058
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jan 7 02:51:08 2011 +0000
gdb/testsuite/
* configure: Regenerate.
commit 390347e3af69c4e3b28f50ff079ad629e6ed86f3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 7 00:00:02 2011 +0000
*** empty log message ***
commit 6375164cac7df1b8bbdc44330e8dd84e91a36e1a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jan 6 23:00:05 2011 +0000
daily update
commit b09ef0963472ecefb3c48c4f6b854af3df39408d
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Jan 6 21:10:51 2011 +0000
gdb
PR python/12367:
* NEWS: Add item.
* python/python.c (GdbMethods): Add "newest_frame" method.
* python/python-internal.h (gdbpy_newest_frame): Declare.
* python/py-frame.c (gdbpy_newest_frame): New function.
gdb/doc
* gdb.texinfo (Frames In Python): Document gdb.newest_thread.
gdb/testsuite
* gdb.python/py-frame.exp: Test gdb.newest_frame.
commit 0d67ef8877f86c2cd1144e6e1e51c95806a09403
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date: Thu Jan 6 19:56:42 2011 +0000
ChangeLog:
2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
* jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
* jit.c (jit_debug): New variable.
(show_jit_debug): New function.
(struct target_buffer): Use ULONGEST.
(bfd_open_from_target_memory): Likewise.
(jit_register_code, jit_inferior_init): Add debug output.
(_initialize_jit): Register "debug jit" command.
doc/ChangeLog:
2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.texinfo (Debugging Output): Document "set debug jit".
commit f47b1885bb46d4a0a5963483c6cbcfbe4444a253
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jan 6 19:05:47 2011 +0000
Correct year.
commit 93df9f55772f9992866d94d3eda65e7c7d7ee39a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jan 6 18:45:03 2011 +0000
Handle STT_GNU_IFUNC symols when building shared library.
bfd/
2012-01-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12366
PR ld/12371
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
handle symbols marked with regular reference, but not non-GOT
reference when building shared library.
* elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
local and global STT_GNU_IFUNC symols when building shared
library.
* elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
ld/testsuite/
2012-01-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12366
PR ld/12371
* ld-ifunc/ifunc-10-i386.s: Add more tests.
* ld-ifunc/ifunc-10-x86-64.s: Likewise.
* ld-ifunc/ifunc-11-i386.s: Likewise.
* ld-ifunc/ifunc-11-x86-64.s: Likewise.
* ld-ifunc/ifunc-12-i386.d: New.
* ld-ifunc/ifunc-12-i386.s: Likewise.
* ld-ifunc/ifunc-12-x86-64.d: Likewise.
* ld-ifunc/ifunc-12-x86-64.s: Likewise.
* ld-ifunc/ifunc-13-i386.d: Likewise.
* ld-ifunc/ifunc-13-x86-64.d: Likewise.
* ld-ifunc/ifunc-13a-i386.s: Likewise.
* ld-ifunc/ifunc-13a-x86-64.s: Likewise.
* ld-ifunc/ifunc-13b-i386.s: Likewise.
* ld-ifunc/ifunc-13b-x86-64.s: Likewise.
commit 9e9d3b19324834de25706adaa5e77e940042255d
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Jan 6 18:34:09 2011 +0000
gdb
* frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
* python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
and ARCH_FRAME.
gdb/doc
PR python/12133:
* gdb.texinfo (Frames In Python): Document various frame
constants.
commit 95eb7299a43691367d4234b44e256244f501f9dd
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Jan 6 17:16:56 2011 +0000
* python/py-frame.c (frapy_block): Use get_frame_block.
commit 38e689abe37e23dc10ae6b3d7eda10792fbe5cce
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 6 14:58:56 2011 +0000
Do not stop on SIGPRIO signals by default
This signal does not indicate an error condition, so the default
behavior when receiving this signal should be to resume execution
silently.
gdb/ChangeLog:
Do not stop on SIGPRIO signals by default
* infrun.c (_initialize_infrun): Unset signal_stop and
signal_print for TARGET_SIGNAL_PRIO.
commit 10ca8357c723a3a0dff901b421d62297fe3d0185
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 6 14:43:36 2011 +0000
fix style violation in ada-tasks.c comment
gdb/ChangeLog:
* ada-tasks.c: Fix style violation in comment.
commit 6162f66a3168655f31475fe2a34750b13629b432
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Thu Jan 6 14:30:43 2011 +0000
gas/testsuite/
* gas/arm/blx-bad.s: New.
* gas/arm/blx-bad.d: New.
opcodes/
* arm-dis.c (thumb32_opcodes): BLX must have bit zero clear.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 17 ++++++++++++
bfd/elf-ifunc.c | 31 ++++++++++++++++++++--
bfd/elf32-i386.c | 32 +++++++++++++----------
bfd/elf64-x86-64.c | 33 +++++++++++++----------
bfd/version.h | 2 +-
gdb/ChangeLog | 38 +++++++++++++++++++++++++++
gdb/NEWS | 3 ++
gdb/ada-tasks.c | 2 +-
gdb/doc/ChangeLog | 14 ++++++++++
gdb/doc/gdb.texinfo | 37 ++++++++++++++++++++++++--
gdb/frame.h | 2 +-
gdb/infrun.c | 2 +
gdb/jit.c | 46 +++++++++++++++++++++++++++++++-
gdb/jit.h | 2 +-
gdb/python/py-frame.c | 43 +++++++++++++++++++++++++-----
gdb/python/python-internal.h | 1 +
gdb/python/python.c | 3 ++
gdb/testsuite/ChangeLog | 8 +++++
gdb/testsuite/configure | 4 +-
gdb/testsuite/gdb.python/py-frame.exp | 7 +++++
gdb/version.in | 2 +-
opcodes/ChangeLog | 4 +++
opcodes/arm-dis.c | 2 +-
23 files changed, 284 insertions(+), 51 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index eb99588..c2c0157 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,20 @@
+2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
+
+2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/12366
+ PR ld/12371
+ * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
+ handle symbols marked with regular reference, but not non-GOT
+ reference when building shared library.
+
+ * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
+ local and global STT_GNU_IFUNC symols when building shared
+ library.
+ * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
+
2011-01-05 DJ Delorie <dj@redhat.com>
* reloc.c: Add BFD_RELOC_RX_OP_NEG.
diff --git a/bfd/elf-ifunc.c b/bfd/elf-ifunc.c
index 760fc26..81429b8 100644
--- a/bfd/elf-ifunc.c
+++ b/bfd/elf-ifunc.c
@@ -190,6 +190,20 @@ _bfd_elf_allocate_ifunc_dyn_relocs (struct bfd_link_info *info,
/* Support garbage collection against STT_GNU_IFUNC symbols. */
if (h->plt.refcount <= 0 && h->got.refcount <= 0)
{
+ /* When building shared library, we need to handle the case
+ where it is marked with regular reference, but not non-GOT
+ reference. It may happen if we didn't see STT_GNU_IFUNC
+ symbol at the time when checking relocations. */
+ if (info->shared
+ && !h->non_got_ref
+ && h->ref_regular)
+ for (p = *head; p != NULL; p = p->next)
+ if (p->count)
+ {
+ h->non_got_ref = 1;
+ goto keep;
+ }
+
h->got = htab->init_got_offset;
h->plt = htab->init_plt_offset;
*head = NULL;
@@ -209,6 +223,7 @@ _bfd_elf_allocate_ifunc_dyn_relocs (struct bfd_link_info *info,
return TRUE;
}
+keep:
bed = get_elf_backend_data (info->output_bfd);
if (bed->rela_plts_and_copies_p)
sizeof_reloc = bed->s->sizeof_rela;
@@ -258,10 +273,20 @@ _bfd_elf_allocate_ifunc_dyn_relocs (struct bfd_link_info *info,
*head = NULL;
/* Finally, allocate space. */
- for (p = *head; p != NULL; p = p->next)
- htab->irelifunc->size += p->count * sizeof_reloc;
+ p = *head;
+ if (p != NULL)
+ {
+ bfd_size_type count = 0;
+ do
+ {
+ count += p->count;
+ p = p->next;
+ }
+ while (p != NULL);
+ htab->irelifunc->size += count * sizeof_reloc;
+ }
- /* For STT_GNU_IFUNC symbol, .got.plt has the real function addres
+ /* For STT_GNU_IFUNC symbol, .got.plt has the real function address
and .got has the PLT entry adddress. We will load the GOT entry
with the PLT entry in finish_dynamic_symbol if it is used. For
branch, it uses .got.plt. For symbol value,
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index ae749c6..e9b3933 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -1807,23 +1807,10 @@ elf_i386_gc_sweep_hook (bfd *abfd,
r_symndx = ELF32_R_SYM (rel->r_info);
if (r_symndx >= symtab_hdr->sh_info)
{
- struct elf_i386_link_hash_entry *eh;
- struct elf_dyn_relocs **pp;
- struct elf_dyn_relocs *p;
-
h = sym_hashes[r_symndx - symtab_hdr->sh_info];
while (h->root.type == bfd_link_hash_indirect
|| h->root.type == bfd_link_hash_warning)
h = (struct elf_link_hash_entry *) h->root.u.i.link;
- eh = (struct elf_i386_link_hash_entry *) h;
-
- for (pp = &eh->dyn_relocs; (p = *pp) != NULL; pp = &p->next)
- if (p->sec == sec)
- {
- /* Everything must go for SEC. */
- *pp = p->next;
- break;
- }
}
else
{
@@ -1843,6 +1830,22 @@ elf_i386_gc_sweep_hook (bfd *abfd,
}
}
+ if (h)
+ {
+ struct elf_i386_link_hash_entry *eh;
+ struct elf_dyn_relocs **pp;
+ struct elf_dyn_relocs *p;
+
+ eh = (struct elf_i386_link_hash_entry *) h;
+ for (pp = &eh->dyn_relocs; (p = *pp) != NULL; pp = &p->next)
+ if (p->sec == sec)
+ {
+ /* Everything must go for SEC. */
+ *pp = p->next;
+ break;
+ }
+ }
+
r_type = ELF32_R_TYPE (rel->r_info);
if (! elf_i386_tls_transition (info, abfd, sec, NULL,
symtab_hdr, sym_hashes,
@@ -1883,7 +1886,8 @@ elf_i386_gc_sweep_hook (bfd *abfd,
case R_386_32:
case R_386_PC32:
- if (info->shared)
+ if (info->shared
+ && (h == NULL || h->type != STT_GNU_IFUNC))
break;
/* Fall through */
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 3dd16ba..ceb1a0a 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -1684,23 +1684,10 @@ elf_x86_64_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info,
r_symndx = htab->r_sym (rel->r_info);
if (r_symndx >= symtab_hdr->sh_info)
{
- struct elf_x86_64_link_hash_entry *eh;
- struct elf_dyn_relocs **pp;
- struct elf_dyn_relocs *p;
-
h = sym_hashes[r_symndx - symtab_hdr->sh_info];
while (h->root.type == bfd_link_hash_indirect
|| h->root.type == bfd_link_hash_warning)
h = (struct elf_link_hash_entry *) h->root.u.i.link;
- eh = (struct elf_x86_64_link_hash_entry *) h;
-
- for (pp = &eh->dyn_relocs; (p = *pp) != NULL; pp = &p->next)
- if (p->sec == sec)
- {
- /* Everything must go for SEC. */
- *pp = p->next;
- break;
- }
}
else
{
@@ -1720,6 +1707,23 @@ elf_x86_64_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info,
}
}
+ if (h)
+ {
+ struct elf_x86_64_link_hash_entry *eh;
+ struct elf_dyn_relocs **pp;
+ struct elf_dyn_relocs *p;
+
+ eh = (struct elf_x86_64_link_hash_entry *) h;
+
+ for (pp = &eh->dyn_relocs; (p = *pp) != NULL; pp = &p->next)
+ if (p->sec == sec)
+ {
+ /* Everything must go for SEC. */
+ *pp = p->next;
+ break;
+ }
+ }
+
r_type = ELF32_R_TYPE (rel->r_info);
if (! elf_x86_64_tls_transition (info, abfd, sec, NULL,
symtab_hdr, sym_hashes,
@@ -1771,7 +1775,8 @@ elf_x86_64_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info,
case R_X86_64_PC16:
case R_X86_64_PC32:
case R_X86_64_PC64:
- if (info->shared)
+ if (info->shared
+ && (h == NULL || h->type != STT_GNU_IFUNC))
break;
/* Fall thru */
diff --git a/bfd/version.h b/bfd/version.h
index 97edb33..0802422 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20110106
+#define BFD_VERSION_DATE 20110107
#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 42e77dc..b1edadf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,41 @@
+2011-01-06 Tom Tromey <tromey@redhat.com>
+
+ PR python/12367:
+ * NEWS: Add item.
+ * python/python.c (GdbMethods): Add "newest_frame" method.
+ * python/python-internal.h (gdbpy_newest_frame): Declare.
+ * python/py-frame.c (gdbpy_newest_frame): New function.
+
+2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
+ * jit.c (jit_debug): New variable.
+ (show_jit_debug): New function.
+ (struct target_buffer): Use ULONGEST.
+ (bfd_open_from_target_memory): Likewise.
+ (jit_register_code, jit_inferior_init): Add debug output.
+ (_initialize_jit): Register "debug jit" command.
+
+2011-01-06 Tom Tromey <tromey@redhat.com>
+
+ * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
+ * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
+ and ARCH_FRAME.
+
+2011-01-06 Tom Tromey <tromey@redhat.com>
+
+ * python/py-frame.c (frapy_block): Use get_frame_block.
+
+2011-01-06 Joel Brobecker <brobecker@adacore.com>
+
+ Do not stop on SIGPRIO signals by default
+ * infrun.c (_initialize_infrun): Unset signal_stop and
+ signal_print for TARGET_SIGNAL_PRIO.
+
+2011-01-06 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-tasks.c: Fix style violation in comment.
+
2011-01-06 Joel Brobecker <brobecker@adacore.com>
* linespec.c (decode_compound, find_method): Remove trailing \n
diff --git a/gdb/NEWS b/gdb/NEWS
index 7c2b494..1f02dfc 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -43,6 +43,9 @@
** gdb.parameter("directories") is now available.
+ ** New function gdb.newest_frame returns the newest frame in the
+ selected thread.
+
* C++ Improvements:
** GDB now puts template parameters in scope when debugging in an
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 3252920..33a1760 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -29,7 +29,7 @@
Block of each task is stored. */
#define KNOWN_TASKS_NAME "system__tasking__debug__known_tasks"
-/* The maximum number of tasks known to the Ada runtime */
+/* The maximum number of tasks known to the Ada runtime. */
static const int MAX_NUMBER_OF_KNOWN_TASKS = 1000;
enum task_states
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 7c33fb7..8835a31 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,17 @@
+2011-01-06 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Frames In Python): Document gdb.newest_thread.
+
+2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * gdb.texinfo (Debugging Output): Document "set debug jit".
+
+2011-01-06 Tom Tromey <tromey@redhat.com>
+
+ PR python/12133:
+ * gdb.texinfo (Frames In Python): Document various frame
+ constants.
+
2011-01-05 Joel Brobecker <brobecker@adacore.com>
* doc/agentexpr.texi, doc/all-cfg.texi, doc/annotate.texinfo,
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 8eb1ec8..d47a484 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -19955,6 +19955,11 @@ The default is off. @file{infrun.c} contains GDB's runtime state machine used
for implementing operations such as single-stepping the inferior.
@item show debug infrun
Displays the current state of @value{GDBN} inferior debugging.
+@item set debug jit
+@cindex just-in-time compilation, debugging messages
+Turns on or off debugging messages from JIT debug support.
+@item show debug jit
+Displays the current state of @value{GDBN} JIT debugging.
@item set debug lin-lwp
@cindex @sc{gnu}/Linux LWP debug messages
@cindex Linux lightweight processes
@@ -22514,6 +22519,11 @@ The following frame-related functions are available in the @code{gdb} module:
Return the selected frame object. (@pxref{Selection,,Selecting a Frame}).
@end defun
+@findex gdb.newest_frame
+@defun newest_frame
+Return the newest frame object for the selected thread.
+@end defun
+
@defun frame_stop_reason_string reason
Return a string explaining the reason why @value{GDBN} stopped unwinding
frames, as expressed by the given @var{reason} code (an integer, see the
@@ -22536,9 +22546,30 @@ obtained.
@end defmethod
@defmethod Frame type
-Returns the type of the frame. The value can be one of
-@code{gdb.NORMAL_FRAME}, @code{gdb.DUMMY_FRAME}, @code{gdb.SIGTRAMP_FRAME}
-or @code{gdb.SENTINEL_FRAME}.
+Returns the type of the frame. The value can be one of:
+@table @code
+@item gdb.NORMAL_FRAME
+An ordinary stack frame.
+
+@item gdb.DUMMY_FRAME
+A fake stack frame that was created by @value{GDBN} when performing an
+inferior function call.
+
+@item gdb.INLINE_FRAME
+A frame representing an inlined function. The function was inlined
+into a @code{gdb.NORMAL_FRAME} that is older than this one.
+
+@item gdb.SIGTRAMP_FRAME
+A signal trampoline frame. This is the frame created by the OS when
+it calls into a signal handler.
+
+@item gdb.ARCH_FRAME
+A fake stack frame representing a cross-architecture call.
+
+@item gdb.SENTINEL_FRAME
+This is like @code{gdb.NORMAL_FRAME}, but it is only used for the
+newest frame.
+@end table
@end defmethod
@defmethod Frame unwind_stop_reason
diff --git a/gdb/frame.h b/gdb/frame.h
index 8549e43..b361104 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -204,7 +204,7 @@ enum frame_type
call. */
DUMMY_FRAME,
/* A frame representing an inlined function, associated with an
- upcoming (next, inner, younger) NORMAL_FRAME. */
+ upcoming (prev, outer, older) NORMAL_FRAME. */
INLINE_FRAME,
/* In a signal handler, various OSs handle this in various ways.
The main thing is that the frame may be far from normal. */
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 8a3ba84..dd6fe6c 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -6927,6 +6927,8 @@ leave it stopped or free to run as needed."),
signal_print[TARGET_SIGNAL_URG] = 0;
signal_stop[TARGET_SIGNAL_WINCH] = 0;
signal_print[TARGET_SIGNAL_WINCH] = 0;
+ signal_stop[TARGET_SIGNAL_PRIO] = 0;
+ signal_print[TARGET_SIGNAL_PRIO] = 0;
/* These signals are used internally by user-level thread
implementations. (See signal(5) on Solaris.) Like the above
diff --git a/gdb/jit.c b/gdb/jit.c
index 2f2e401..cadd7f6 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -21,6 +21,8 @@
#include "jit.h"
#include "breakpoint.h"
+#include "command.h"
+#include "gdbcmd.h"
#include "gdbcore.h"
#include "observer.h"
#include "objfiles.h"
@@ -48,6 +50,17 @@ static CORE_ADDR jit_descriptor_addr = 0;
static int registering_code = 0;
+/* Non-zero if we want to see trace of jit level stuff. */
+
+static int jit_debug = 0;
+
+static void
+show_jit_debug (struct ui_file *file, int from_tty,
+ struct cmd_list_element *c, const char *value)
+{
+ fprintf_filtered (file, _("JIT debugging is %s.\n"), value);
+}
+
/* Helper cleanup function to clear an integer flag like the one above. */
static void
@@ -59,7 +72,7 @@ clear_int (void *int_addr)
struct target_buffer
{
CORE_ADDR base;
- size_t size;
+ ULONGEST size;
};
/* Openning the file is a no-op. */
@@ -118,7 +131,7 @@ mem_bfd_iovec_stat (struct bfd *abfd, void *stream, struct stat *sb)
/* Open a BFD from the target's memory. */
static struct bfd *
-bfd_open_from_target_memory (CORE_ADDR addr, size_t size, char *target)
+bfd_open_from_target_memory (CORE_ADDR addr, ULONGEST size, char *target)
{
const char *filename = xstrdup ("<in-memory>");
struct target_buffer *buffer = xmalloc (sizeof (struct target_buffer));
@@ -219,6 +232,13 @@ jit_register_code (struct gdbarch *gdbarch,
const struct bfd_arch_info *b;
CORE_ADDR *entry_addr_ptr;
+ if (jit_debug)
+ fprintf_unfiltered (gdb_stdlog,
+ "jit_register_code, symfile_addr = %s, "
+ "symfile_size = %s\n",
+ paddress (gdbarch, code_entry->symfile_addr),
+ pulongest (code_entry->symfile_size));
+
nbfd = bfd_open_from_target_memory (code_entry->symfile_addr,
code_entry->symfile_size, gnutarget);
old_cleanups = make_cleanup_bfd_close (nbfd);
@@ -314,6 +334,11 @@ jit_inferior_init (struct gdbarch *gdbarch)
struct jit_code_entry cur_entry;
CORE_ADDR cur_entry_addr;
+ if (jit_debug)
+ fprintf_unfiltered (gdb_stdlog,
+ "jit_inferior_init, registering_code = %d\n",
+ registering_code);
+
/* When we register code, GDB resets its breakpoints in case symbols have
changed. That in turn calls this handler, which makes us look for new
code again. To avoid being re-entered, we check this flag. */
@@ -329,6 +354,10 @@ jit_inferior_init (struct gdbarch *gdbarch)
if (reg_addr == 0)
return;
+ if (jit_debug)
+ fprintf_unfiltered (gdb_stdlog, "jit_inferior_init, reg_addr = %s\n",
+ paddress (gdbarch, reg_addr));
+
/* Lookup the descriptor symbol and cache the addr. If it is missing, we
assume we are not attached to a JIT and return early. */
desc_symbol = lookup_minimal_symbol (jit_descriptor_name, NULL, NULL);
@@ -338,6 +367,11 @@ jit_inferior_init (struct gdbarch *gdbarch)
if (jit_descriptor_addr == 0)
return;
+ if (jit_debug)
+ fprintf_unfiltered (gdb_stdlog,
+ "jit_inferior_init, jit_descriptor_addr = %s\n",
+ paddress (gdbarch, jit_descriptor_addr));
+
/* Read the descriptor so we can check the version number and load any already
JITed functions. */
jit_read_descriptor (gdbarch, &descriptor);
@@ -453,6 +487,14 @@ extern void _initialize_jit (void);
void
_initialize_jit (void)
{
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-06 12:22 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2011-01-06 12:22 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 52898 bytes --]
The branch, master has been updated
via ee7931dc2f112b223bd76bf31ba5bfc716a0a947 (commit)
via 8bef39475287bdce64ba672333879627614a64c7 (commit)
via d3a53b0f798666339edb89002087dbf3a222af09 (commit)
via dc1dbdd748005d025bfed664141f94868b4608b9 (commit)
via a1d4eea835dab8b8f372de80a9b9f1d47f4ddc87 (commit)
via 968b19ffd222d8c5af49a1964b61ebc26f69f8c5 (commit)
via f850d1e13721d2e41319ecf28d4f1fb252114a51 (commit)
via 1be0d6417699867915c0b0efc15174baf1623863 (commit)
via e22c5a3e2b53ba419113970be49407a4098e7ce9 (commit)
via 73df4d26c29e68266770c0bf48f727bde62d4468 (commit)
via a253ad6ac0478fb293d7005517b717732b88e726 (commit)
via 9d777470f6b55b374c2e6761fc658078f3df0d69 (commit)
via 8ab7ed746e8abce9d14aff83159939f01ccfc646 (commit)
via d960d576b6bf7dc12a29a244df35fa4e7373dca4 (commit)
via 1ba609a9c42f9cfeb111aec95b015c3f5eeafbc6 (commit)
via 071892049d961a5b7694238d590074023177d54d (commit)
via fe0e115731240592d9f2838759bc76db45d3e89e (commit)
via 3bf6cbf8d09e90753e83f7a85a538710f365553a (commit)
via e78704d5680d54c2c895e4a8f96e01e33e698813 (commit)
via 7f416aff7d49595e8041fd7a2b48135b887601f7 (commit)
via d6447a2d1ad08c3a3a25742339a464be0aadf8d7 (commit)
via 91347ff709cbcd9f603ff0ad02016cfcd268ca40 (commit)
via 8b40ee1f1f2f5f8855e99a21a933273b790b913b (commit)
from 26ae9b76b64a97219d4ea5d83c8c9446b690a0c6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ee7931dc2f112b223bd76bf31ba5bfc716a0a947
Merge: 26ae9b7 8bef394
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Thu Jan 6 12:21:56 2011 +0000
Merge remote branch 'gdb/master'
commit 8bef39475287bdce64ba672333879627614a64c7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 6 10:35:00 2011 +0000
[testsuite/gdb.ada] simplify some testcases by using clean_restart.
gdb/testsuite/ChangeLog:
* gdb.ada/array_bounds.exp, gdb.ada/array_return.exp,
gdb.ada/array_subscript_addr.exp, gdb.ada/arrayidx.exp,
gdb.ada/arrayparam.exp, gdb.ada/arrayptr.exp,
gdb.ada/atomic_enum.exp, gdb.ada/call_pn.exp,
gdb.ada/catch_ex.exp, gdb.ada/char_param.exp,
gdb.ada/complete.exp, gdb.ada/exprs.exp, gdb.ada/fixed_cmp.exp,
gdb.ada/fixed_points.exp, gdb.ada/formatted_ref.exp,
gdb.ada/frame_args.exp, gdb.ada/fun_addr.exp,
gdb.ada/fun_in_declare.exp, gdb.ada/funcall_param.exp,
gdb.ada/homonym.exp, gdb.ada/int_deref.exp,
gdb.ada/interface.exp, gdb.ada/lang_switch.exp,
gdb.ada/mod_from_name.exp, gdb.ada/nested.exp,
gdb.ada/null_array.exp, gdb.ada/null_record.exp,
gdb.ada/packed_array.exp, gdb.ada/packed_tagged.exp,
gdb.ada/print_chars.exp, gdb.ada/print_pc.exp,
gdb.ada/ptype_field.exp, gdb.ada/ptype_tagged_param.exp,
gdb.ada/rec_return.exp, gdb.ada/ref_param.exp,
gdb.ada/ref_tick_size.exp, gdb.ada/start.exp,
gdb.ada/str_ref_cmp.exp, gdb.ada/sym_print_name.exp,
gdb.ada/taft_type.exp, gdb.ada/tagged.exp, gdb.ada/tasks.exp,
gdb.ada/tick_last_segv.exp, gdb.ada/type_coercion.exp,
gdb.ada/uninitialized_vars.exp,
gdb.ada/variant_record_packed_array.exp, gdb.ada/watch_arg.exp:
Simplify by using clean_restart.
commit d3a53b0f798666339edb89002087dbf3a222af09
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 6 10:33:37 2011 +0000
Avoid the use of gdb_start_cmd in gdb.ada/*.exp testcases.
This command does not work when testing with GDBserver. So this patch
changes the few tests that do not specifically test the `start' command,
and replace calls to gdb_start_cmd with the usual `run LOC' approach.
For the couple of testcases that do really test the `start' command,
do an early return as UNTESTED instead of running this testcase.
gdb/testsuite/ChangeLog:
Add marker to be used as anchor for inserting breakpoints.
* gdb.ada/null_record/null_record.adb: Add "-- START" comment.
* gdb.ada/start/dummy.adb, gdb.ada/uninitialized_vars/parse.adb:
Likewise.
Remove uses of gdb_start_cmd.
* gdb.ada/null_record.exp: Remove use of gdb_start_cmd.
* gdb.ada/print_pc.exp, gdb.ada/uninitialized_vars.exp: Ditto.
Do not run testcase if testing with GDBserver.
* gdb.ada/exec_changed.exp, gdb.ada/start.exp: Abort as untested
if testing with GDBserver.
commit dc1dbdd748005d025bfed664141f94868b4608b9
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 6 09:30:33 2011 +0000
Remove trailing new-line at end of error string
gdb/ChangeLog:
* linespec.c (decode_compound, find_method): Remove trailing \n
at end of error string.
* solib-irix.c (irix_current_sos): Likewise.
* varobj.c (uninstall_variable): Likewise.
commit a1d4eea835dab8b8f372de80a9b9f1d47f4ddc87
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 6 06:28:37 2011 +0000
New script copyright.py
gdb/ChangeLog:
* copyright.py: New script.
* copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
Launch emacs without exec'ing. Call copyright.py afterwards.
commit 968b19ffd222d8c5af49a1964b61ebc26f69f8c5
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 6 06:27:43 2011 +0000
Add copyright header to some Ada files (testsuite)
gdb/testsuite/ChangeLog:
* gdb.ada/complete/foo.adb, gdb.ada/complete/pck.adb,
gdb.ada/complete/pck.ads, gdb.ada/print_chars/foo.adb: Add
copyright header.
commit f850d1e13721d2e41319ecf28d4f1fb252114a51
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu Jan 6 00:56:59 2011 +0000
2011-01-05 Michael Snyder <msnyder@vmware.com>
* cli/cli-cmds.c: Shorten lines of >= 80 columns.
* cli/cli-decode.c: Ditto.
* cli/cli-dump.c: Ditto.
* cli/cli-logging.c: Ditto.
* cli/cli-script.c: Ditto.
* cli/cli-setshow.c: Ditto.
* common/signals.c: Ditto.
* mi/mi-cmd-break.c: Ditto.
* mi/mi-cmd-disas.c: Ditto.
* mi/mi-cmd-stack.c: Ditto.
* mi/mi-cmd-var.c: Ditto.
* mi/mi-cmds.c: Ditto.
* mi/mi-common.h: Ditto.
* mi/mi-console.c: Ditto.
* mi/mi-interp.c: Ditto.
* mi/mi-main.c: Ditto.
* osf-share/cma_attr.c: Ditto.
* osf-share/cma_deb_core.h: Ditto.
* osf-share/cma_debug_client.h: Ditto.
* osf-share/cma_handle.h: Ditto.
* osf-share/cma_mutex.h: Ditto.
* osf-share/cma_stack_int.h: Ditto.
* osf-share/cma_tcb_defs.h: Ditto.
* python/py-auto-load.c: Ditto.
* python/py-breakpoint.c: Ditto.
* python/py-cmd.c: Ditto.
* python/py-frame.c: Ditto.
* python/py-objfile.c: Ditto.
* python/py-param.c: Ditto.
* python/py-progspace.c: Ditto.
* python/py-symbol.c: Ditto.
* python/py-value.c: Ditto.
* python/python-internal.h: Ditto.
* python/python.c: Ditto.
* tui/tui-data.c: Ditto.
* tui/tui-disasm.c: Ditto.
* tui/tui-hooks.c: Ditto.
* tui/tui-io.c: Ditto.
* tui/tui-layout.c: Ditto.
* tui/tui-regs.c: Ditto.
* tui/tui-source.c: Ditto.
* tui/tui-stack.c: Ditto.
* tui/tui-win.c: Ditto.
* tui/tui-windata.c: Ditto.
* tui/tui-winsource.c: Ditto.
commit 1be0d6417699867915c0b0efc15174baf1623863
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu Jan 6 00:14:09 2011 +0000
2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdbreplay.c: Shorten lines of >= 80 columns.
* linux-low.c: Ditto.
* linux-ppc-low.c: Ditto.
* linux-s390-low.c: Ditto.
* linux-sparc-low.c: Ditto.
* linux-x86-low.c: Ditto.
* linux-xtensa-low.c: Ditto.
* mem-break.c: Ditto.
* nto-low.c: Ditto.
* regcache.h: Ditto.
* remote-utils.c: Ditto.
* server.c: Ditto.
* server.h: Ditto.
* thread-db.c: Ditto.
* tracepoint.c: Ditto.
* utils.c: Ditto.
* win32-low.h: Ditto.
commit e22c5a3e2b53ba419113970be49407a4098e7ce9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 6 00:00:33 2011 +0000
*** empty log message ***
commit 73df4d26c29e68266770c0bf48f727bde62d4468
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Wed Jan 5 23:12:37 2011 +0000
* testutils.inc: Correct comment syntax fallout from
copyright update.
* utils-dsp.inc, utils-fpu.inc, utils-mdmx.inc: Ditto.
commit a253ad6ac0478fb293d7005517b717732b88e726
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Wed Jan 5 23:10:39 2011 +0000
* mips32-dsp.s: Update copyright year.
commit 9d777470f6b55b374c2e6761fc658078f3df0d69
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jan 5 23:00:04 2011 +0000
daily update
commit 8ab7ed746e8abce9d14aff83159939f01ccfc646
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jan 5 22:22:44 2011 +0000
2011-01-05 Michael Snyder <msnyder@vmware.com>
* addrmap.c: Shorten lines of >= 80 columns.
* arch-utils.c: Ditto.
* arch-utils.h: Ditto.
* ax-gdb.c: Ditto.
* ax-general.c: Ditto.
* bcache.c: Ditto.
* blockframe.c: Ditto.
* breakpoint.c: Ditto.
* buildsym.c: Ditto.
* c-lang.c: Ditto.
* c-typeprint.c: Ditto.
* charset.c: Ditto.
* coffread.c: Ditto.
* command.h: Ditto.
* corelow.c: Ditto.
* cp-abi.c: Ditto.
* cp-namespace.c: Ditto.
* cp-support.c: Ditto.
* dbug-rom.c: Ditto.
* dbxread.c: Ditto.
* defs.h: Ditto.
* dfp.c: Ditto.
* dfp.h: Ditto.
* dictionary.c: Ditto.
* disasm.c: Ditto.
* doublest.c: Ditto.
* dwarf2-frame.c: Ditto.
* dwarf2expr.c: Ditto.
* dwarf2loc.c: Ditto.
* dwarf2read.c: Ditto.
* elfread.c: Ditto.
* eval.c: Ditto.
* event-loop.c: Ditto.
* event-loop.h: Ditto.
* exceptions.h: Ditto.
* exec.c: Ditto.
* expprint.c: Ditto.
* expression.h: Ditto.
* f-lang.c: Ditto.
* f-valprint.c: Ditto.
* findcmd.c: Ditto.
* frame-base.c: Ditto.
* frame-unwind.c: Ditto.
* frame-unwind.h: Ditto.
* frame.c: Ditto.
* frame.h: Ditto.
* gcore.c: Ditto.
* gdb-stabs.h: Ditto.
* gdb_assert.h: Ditto.
* gdb_dirent.h: Ditto.
* gdb_obstack.h: Ditto.
* gdbcore.h: Ditto.
* gdbtypes.c: Ditto.
* gdbtypes.h: Ditto.
* inf-ttrace.c: Ditto.
* infcall.c: Ditto.
* infcmd.c: Ditto.
* inflow.c: Ditto.
* infrun.c: Ditto.
* inline-frame.h: Ditto.
* language.c: Ditto.
* language.h: Ditto.
* libunwind-frame.c: Ditto.
* libunwind-frame.h: Ditto.
* linespec.c: Ditto.
* linux-nat.c: Ditto.
* linux-nat.h: Ditto.
* linux-thread-db.c: Ditto.
* machoread.c: Ditto.
* macroexp.c: Ditto.
* macrotab.c: Ditto.
* main.c: Ditto.
* maint.c: Ditto.
* mdebugread.c: Ditto.
* memattr.c: Ditto.
* minsyms.c: Ditto.
* monitor.c: Ditto.
* monitor.h: Ditto.
* objfiles.c: Ditto.
* objfiles.h: Ditto.
* osabi.c: Ditto.
* p-typeprint.c: Ditto.
* p-valprint.c: Ditto.
* parse.c: Ditto.
* printcmd.c: Ditto.
* proc-events.c: Ditto.
* procfs.c: Ditto.
* progspace.c: Ditto.
* progspace.h: Ditto.
* psympriv.h: Ditto.
* psymtab.c: Ditto.
* record.c: Ditto.
* regcache.c: Ditto.
* regcache.h: Ditto.
* remote-fileio.c: Ditto.
* remote.c: Ditto.
* ser-mingw.c: Ditto.
* ser-tcp.c: Ditto.
* ser-unix.c: Ditto.
* serial.c: Ditto.
* serial.h: Ditto.
* solib-frv.c: Ditto.
* solib-irix.c: Ditto.
* solib-osf.c: Ditto.
* solib-pa64.c: Ditto.
* solib-som.c: Ditto.
* solib-sunos.c: Ditto.
* solib-svr4.c: Ditto.
* solib-target.c: Ditto.
* solib.c: Ditto.
* somread.c: Ditto.
* source.c: Ditto.
* stabsread.c: Ditto.
* stabsread.c: Ditto.
* stack.c: Ditto.
* stack.h: Ditto.
* symfile-mem.c: Ditto.
* symfile.c: Ditto.
* symfile.h: Ditto.
* symmisc.c: Ditto.
* symtab.c: Ditto.
* symtab.h: Ditto.
* target-descriptions.c: Ditto.
* target-memory.c: Ditto.
* target.c: Ditto.
* target.h: Ditto.
* terminal.h: Ditto.
* thread.c: Ditto.
* top.c: Ditto.
* tracepoint.c: Ditto.
* tracepoint.h: Ditto.
* ui-file.c: Ditto.
* ui-file.h: Ditto.
* ui-out.h: Ditto.
* user-regs.c: Ditto.
* user-regs.h: Ditto.
* utils.c: Ditto.
* valarith.c: Ditto.
* valops.c: Ditto.
* valprint.c: Ditto.
* valprint.h: Ditto.
* value.c: Ditto.
* varobj.c: Ditto.
* varobj.h: Ditto.
* vec.h: Ditto.
* xcoffread.c: Ditto.
* xcoffsolib.c: Ditto.
* xcoffsolib.h: Ditto.
* xml-syscall.c: Ditto.
* xml-tdesc.c: Ditto.
commit d960d576b6bf7dc12a29a244df35fa4e7373dca4
Author: DJ Delorie <dj@delorie.com>
Date: Wed Jan 5 22:04:07 2011 +0000
* reloc.c: Add BFD_RELOC_RX_OP_NEG.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
* config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression
instead of an RH_NEG32 one.
commit 1ba609a9c42f9cfeb111aec95b015c3f5eeafbc6
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Jan 5 17:17:44 2011 +0000
sim: ignore generated hw-config.h
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 071892049d961a5b7694238d590074023177d54d
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Jan 5 17:13:36 2011 +0000
sim: tweak load buffer type to avoid signed warnings
The sim_load_file func creates a buffer with arbitrary data in it (reads
it via the bfd). It then passes it on to a sim_write_fn which expects a
unsigned char buffer. Since sim_load_file itself doesn't care about the
contents, tweak the type to avoid signed mismatch warnings from gcc:
common/sim-load.c: In function âsim_load_fileâ:
common/sim-load.c:143: warning: pointer targets in passing argument 3 of âdo_writeâ differ in signedness
common/sim-load.c:143: note: expected âconst unsigned char *â but argument is of type âchar *â
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit fe0e115731240592d9f2838759bc76db45d3e89e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jan 5 06:01:36 2011 +0000
Copyright year update in sim/ppc/psim.texinfo
sim/ppc/ChangeLog:
* psim.texinfo: Copyright year update.
commit 3bf6cbf8d09e90753e83f7a85a538710f365553a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jan 5 05:09:44 2011 +0000
Update the copyright year for most remaining files in GDB
commit e78704d5680d54c2c895e4a8f96e01e33e698813
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jan 5 05:06:47 2011 +0000
Add missing copyright header for testsuite/gdb.base/langs1.f.
This file has been created prior to CVS rev 1. Instead of listing all
the years since 1999, I just put 1999, 2010 and 2011.
gdb/testsuite/ChangeLog:
* gdb.base/langs1.f: Add copyright header.
commit 7f416aff7d49595e8041fd7a2b48135b887601f7
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Jan 5 00:16:53 2011 +0000
Implement BMI instructions.
commit d6447a2d1ad08c3a3a25742339a464be0aadf8d7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 5 00:00:32 2011 +0000
*** empty log message ***
commit 91347ff709cbcd9f603ff0ad02016cfcd268ca40
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jan 4 23:00:06 2011 +0000
daily update
commit 8b40ee1f1f2f5f8855e99a21a933273b790b913b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jan 4 20:53:31 2011 +0000
Add VexGdq.
2011-01-04 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (VexGdq): New.
(OP_VEX): Handle dq_mode.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 7 +
bfd/bfd-in2.h | 1 +
bfd/elf32-rx.c | 1 +
bfd/libbfd.h | 1 +
bfd/reloc.c | 2 +
bfd/version.h | 2 +-
gdb/ChangeLog | 218 +
gdb/addrmap.c | 3 +-
gdb/arch-utils.c | 29 +-
gdb/arch-utils.h | 10 +-
gdb/ax-gdb.c | 50 +-
gdb/ax-general.c | 16 +-
gdb/bcache.c | 3 +-
gdb/blockframe.c | 9 +-
gdb/breakpoint.c | 170 +-
gdb/buildsym.c | 12 +-
gdb/c-lang.c | 3 +-
gdb/c-typeprint.c | 10 +-
gdb/charset.c | 25 +-
gdb/cli/cli-cmds.c | 32 +-
gdb/cli/cli-decode.c | 8 +-
gdb/cli/cli-dump.c | 28 +-
gdb/cli/cli-logging.c | 18 +-
gdb/cli/cli-script.c | 9 +-
gdb/cli/cli-setshow.c | 3 +-
gdb/coffread.c | 18 +-
gdb/command.h | 6 +-
gdb/common/signals.c | 6 +-
gdb/configure.ac | 4 +-
gdb/copyright.py | 608 +++
gdb/copyright.sh | 11 +-
gdb/corelow.c | 6 +-
gdb/cp-abi.c | 9 +-
gdb/cp-namespace.c | 3 +-
gdb/cp-support.c | 3 +-
gdb/dbug-rom.c | 6 +-
gdb/dbxread.c | 43 +-
gdb/defs.h | 33 +-
gdb/dfp.c | 6 +-
gdb/dfp.h | 3 +-
gdb/dictionary.c | 3 +-
gdb/disasm.c | 3 +-
gdb/doc/ChangeLog | 6 +
gdb/doc/agentexpr.texi | 4 +-
gdb/doc/all-cfg.texi | 2 +-
gdb/doc/annotate.texinfo | 2 +-
gdb/doc/gdb.texinfo | 6 +-
gdb/doc/gdbint.texinfo | 2 +-
gdb/doc/observer.texi | 4 +-
gdb/doc/refcard.tex | 4 +-
gdb/doc/stabs.texinfo | 2 +-
gdb/doublest.c | 13 +-
gdb/dwarf2-frame.c | 36 +-
gdb/dwarf2expr.c | 12 +-
gdb/dwarf2loc.c | 38 +-
gdb/dwarf2read.c | 239 +-
gdb/elfread.c | 78 +-
gdb/eval.c | 118 +-
gdb/event-loop.c | 21 +-
gdb/event-loop.h | 2 +-
gdb/exceptions.h | 10 +-
gdb/exec.c | 15 +-
gdb/expprint.c | 3 +-
gdb/expression.h | 37 +-
gdb/f-lang.c | 15 +-
gdb/f-valprint.c | 13 +-
gdb/findcmd.c | 7 +-
gdb/frame-base.c | 3 +-
gdb/frame-unwind.c | 9 +-
gdb/frame-unwind.h | 4 +-
gdb/frame.c | 31 +-
gdb/frame.h | 6 +-
gdb/gcore.c | 3 +-
gdb/gdb-stabs.h | 5 +-
gdb/gdb.1 | 2 +-
gdb/gdb_assert.h | 4 +-
gdb/gdb_dirent.h | 2 +-
gdb/gdb_obstack.h | 7 +-
gdb/gdbcore.h | 6 +-
gdb/gdbserver/ChangeLog | 25 +
gdb/gdbserver/configure.ac | 2 +-
gdb/gdbserver/gdbreplay.c | 11 +-
gdb/gdbserver/gdbserver.1 | 2 +-
gdb/gdbserver/linux-low.c | 28 +-
gdb/gdbserver/linux-ppc-low.c | 3 +-
gdb/gdbserver/linux-s390-low.c | 15 +-
gdb/gdbserver/linux-sparc-low.c | 30 +-
gdb/gdbserver/linux-x86-low.c | 8 +-
gdb/gdbserver/linux-xtensa-low.c | 3 +-
gdb/gdbserver/mem-break.c | 3 +-
gdb/gdbserver/nto-low.c | 3 +-
gdb/gdbserver/regcache.h | 3 +-
gdb/gdbserver/remote-utils.c | 10 +-
gdb/gdbserver/server.c | 15 +-
gdb/gdbserver/server.h | 9 +-
gdb/gdbserver/thread-db.c | 3 +-
gdb/gdbserver/tracepoint.c | 44 +-
gdb/gdbserver/utils.c | 3 +-
gdb/gdbserver/win32-low.h | 6 +-
gdb/gdbtypes.c | 41 +-
gdb/gdbtypes.h | 22 +-
gdb/inf-ttrace.c | 13 +-
gdb/infcall.c | 118 +-
gdb/infcmd.c | 90 +-
gdb/inflow.c | 6 +-
gdb/infrun.c | 172 +-
gdb/inline-frame.c | 4 +-
gdb/language.c | 78 +-
gdb/language.h | 5 +-
gdb/libunwind-frame.c | 22 +-
gdb/libunwind-frame.h | 3 +-
gdb/linespec.c | 59 +-
gdb/linux-nat.c | 160 +-
gdb/linux-nat.h | 3 +-
gdb/linux-thread-db.c | 9 +-
gdb/machoread.c | 25 +-
gdb/macroexp.c | 3 +-
gdb/macrotab.c | 7 +-
gdb/main.c | 41 +-
gdb/maint.c | 30 +-
gdb/mdebugread.c | 398 +-
gdb/memattr.c | 11 +-
gdb/mi/mi-cmd-break.c | 3 +-
gdb/mi/mi-cmd-disas.c | 11 +-
gdb/mi/mi-cmd-stack.c | 6 +-
gdb/mi/mi-cmd-var.c | 18 +-
gdb/mi/mi-cmds.c | 15 +-
gdb/mi/mi-common.h | 5 +-
gdb/mi/mi-console.c | 3 +-
gdb/mi/mi-interp.c | 17 +-
gdb/mi/mi-main.c | 42 +-
gdb/minsyms.c | 4 +-
gdb/monitor.c | 67 +-
gdb/monitor.h | 14 +-
gdb/objfiles.c | 3 +-
gdb/objfiles.h | 24 +-
gdb/osabi.c | 17 +-
gdb/osf-share/cma_attr.h | 9 +-
gdb/osf-share/cma_deb_core.h | 38 +-
gdb/osf-share/cma_debug_client.h | 12 +-
gdb/osf-share/cma_handle.h | 15 +-
gdb/osf-share/cma_mutex.h | 6 +-
gdb/osf-share/cma_stack_int.h | 6 +-
gdb/osf-share/cma_tcb_defs.h | 32 +-
gdb/p-typeprint.c | 42 +-
gdb/p-valprint.c | 57 +-
gdb/parse.c | 21 +-
gdb/printcmd.c | 23 +-
gdb/proc-events.c | 3 +-
gdb/procfs.c | 27 +-
gdb/progspace.c | 7 +-
gdb/progspace.h | 3 +-
gdb/psympriv.h | 3 +-
gdb/psymtab.c | 24 +-
gdb/python/py-auto-load.c | 3 +-
gdb/python/py-breakpoint.c | 5 +-
gdb/python/py-cmd.c | 9 +-
gdb/python/py-frame.c | 6 +-
gdb/python/py-objfile.c | 3 +-
gdb/python/py-param.c | 3 +-
gdb/python/py-progspace.c | 3 +-
gdb/python/py-symbol.c | 6 +-
gdb/python/py-value.c | 15 +-
gdb/python/python-internal.h | 3 +-
gdb/python/python.c | 6 +-
gdb/record.c | 71 +-
gdb/regcache.c | 42 +-
gdb/regcache.h | 7 +-
gdb/remote-fileio.c | 19 +-
gdb/remote.c | 128 +-
gdb/ser-mingw.c | 6 +-
gdb/ser-tcp.c | 5 +-
gdb/ser-unix.c | 30 +-
gdb/serial.c | 13 +-
gdb/serial.h | 11 +-
gdb/solib-frv.c | 36 +-
gdb/solib-irix.c | 6 +-
gdb/solib-osf.c | 3 +-
gdb/solib-pa64.c | 9 +-
gdb/solib-som.c | 36 +-
gdb/solib-sunos.c | 3 +-
gdb/solib-svr4.c | 26 +-
gdb/solib-target.c | 6 +-
gdb/solib.c | 38 +-
gdb/somread.c | 17 +-
gdb/source.c | 20 +-
gdb/stabsread.c | 88 +-
gdb/stabsread.h | 5 +-
gdb/stack.c | 26 +-
gdb/stack.h | 2 +-
gdb/symfile-mem.c | 22 +-
gdb/symfile.c | 58 +-
gdb/symfile.h | 9 +-
gdb/symmisc.c | 23 +-
gdb/symtab.c | 56 +-
gdb/symtab.h | 9 +-
gdb/target-descriptions.c | 10 +-
gdb/target-memory.c | 6 +-
gdb/target.c | 84 +-
gdb/target.h | 17 +-
gdb/terminal.h | 3 +-
gdb/testsuite/ChangeLog | 64 +
gdb/testsuite/configure.ac | 2 +-
gdb/testsuite/gdb.ada/array_bounds.exp | 5 +-
gdb/testsuite/gdb.ada/array_return.exp | 5 +-
gdb/testsuite/gdb.ada/array_subscript_addr.exp | 5 +-
gdb/testsuite/gdb.ada/arrayidx.exp | 5 +-
gdb/testsuite/gdb.ada/arrayparam.exp | 5 +-
gdb/testsuite/gdb.ada/arrayptr.exp | 5 +-
gdb/testsuite/gdb.ada/atomic_enum.exp | 5 +-
gdb/testsuite/gdb.ada/call_pn.exp | 5 +-
gdb/testsuite/gdb.ada/catch_ex.exp | 5 +-
gdb/testsuite/gdb.ada/char_param.exp | 5 +-
gdb/testsuite/gdb.ada/complete.exp | 5 +-
gdb/testsuite/gdb.ada/complete/foo.adb | 15 +
gdb/testsuite/gdb.ada/complete/pck.adb | 15 +
gdb/testsuite/gdb.ada/complete/pck.ads | 15 +
gdb/testsuite/gdb.ada/exec_changed.exp | 7 +
gdb/testsuite/gdb.ada/exprs.exp | 5 +-
gdb/testsuite/gdb.ada/fixed_cmp.exp | 5 +-
gdb/testsuite/gdb.ada/fixed_points.exp | 5 +-
gdb/testsuite/gdb.ada/formatted_ref.exp | 5 +-
gdb/testsuite/gdb.ada/frame_args.exp | 5 +-
gdb/testsuite/gdb.ada/fun_addr.exp | 5 +-
gdb/testsuite/gdb.ada/fun_in_declare.exp | 5 +-
gdb/testsuite/gdb.ada/funcall_param.exp | 5 +-
gdb/testsuite/gdb.ada/homonym.exp | 5 +-
gdb/testsuite/gdb.ada/int_deref.exp | 5 +-
gdb/testsuite/gdb.ada/interface.exp | 5 +-
gdb/testsuite/gdb.ada/lang_switch.exp | 5 +-
gdb/testsuite/gdb.ada/mod_from_name.exp | 5 +-
gdb/testsuite/gdb.ada/nested.exp | 5 +-
gdb/testsuite/gdb.ada/null_array.exp | 5 +-
gdb/testsuite/gdb.ada/null_record.exp | 15 +-
gdb/testsuite/gdb.ada/null_record/null_record.adb | 2 +-
gdb/testsuite/gdb.ada/packed_array.exp | 5 +-
gdb/testsuite/gdb.ada/packed_tagged.exp | 5 +-
gdb/testsuite/gdb.ada/print_chars.exp | 5 +-
gdb/testsuite/gdb.ada/print_chars/foo.adb | 15 +
gdb/testsuite/gdb.ada/print_pc.exp | 15 +-
gdb/testsuite/gdb.ada/ptype_field.exp | 5 +-
gdb/testsuite/gdb.ada/ptype_tagged_param.exp | 5 +-
gdb/testsuite/gdb.ada/rec_return.exp | 5 +-
gdb/testsuite/gdb.ada/ref_param.exp | 5 +-
gdb/testsuite/gdb.ada/ref_tick_size.exp | 5 +-
gdb/testsuite/gdb.ada/start.exp | 12 +-
gdb/testsuite/gdb.ada/start/dummy.adb | 2 +-
gdb/testsuite/gdb.ada/str_ref_cmp.exp | 5 +-
gdb/testsuite/gdb.ada/sym_print_name.exp | 5 +-
gdb/testsuite/gdb.ada/taft_type.exp | 5 +-
gdb/testsuite/gdb.ada/tagged.exp | 5 +-
gdb/testsuite/gdb.ada/tasks.exp | 5 +-
gdb/testsuite/gdb.ada/tick_last_segv.exp | 5 +-
gdb/testsuite/gdb.ada/type_coercion.exp | 5 +-
gdb/testsuite/gdb.ada/uninitialized_vars.exp | 15 +-
gdb/testsuite/gdb.ada/uninitialized_vars/parse.adb | 2 +-
.../gdb.ada/variant_record_packed_array.exp | 5 +-
gdb/testsuite/gdb.ada/watch_arg.exp | 5 +-
gdb/testsuite/gdb.arch/gdb1291.s | 2 +-
gdb/testsuite/gdb.arch/gdb1431.s | 2 +-
gdb/testsuite/gdb.base/langs1.f | 15 +
gdb/testsuite/gdb.fortran/array-element.f | 2 +-
gdb/testsuite/gdb.fortran/complex.f | 2 +-
gdb/testsuite/gdb.fortran/derived-type.f90 | 2 +-
gdb/testsuite/gdb.fortran/library-module-lib.f90 | 2 +-
gdb/testsuite/gdb.fortran/library-module-main.f90 | 2 +-
gdb/testsuite/gdb.fortran/logical.f90 | 2 +-
gdb/testsuite/gdb.fortran/module.f90 | 2 +-
gdb/testsuite/gdb.fortran/subarray.f | 2 +-
gdb/testsuite/gdb.mi/array.f | 2 +-
gdb/thread.c | 11 +-
gdb/top.c | 48 +-
gdb/tracepoint.c | 89 +-
gdb/tracepoint.h | 6 +-
gdb/tui/tui-data.c | 15 +-
gdb/tui/tui-disasm.c | 16 +-
gdb/tui/tui-hooks.c | 6 +-
gdb/tui/tui-io.c | 6 +-
gdb/tui/tui-layout.c | 10 +-
gdb/tui/tui-regs.c | 21 +-
gdb/tui/tui-source.c | 32 +-
gdb/tui/tui-stack.c | 23 +-
gdb/tui/tui-win.c | 34 +-
gdb/tui/tui-windata.c | 5 +-
gdb/tui/tui-winsource.c | 34 +-
gdb/ui-file.c | 2 +-
gdb/ui-file.h | 60 +-
gdb/ui-out.h | 4 +-
gdb/user-regs.c | 4 +-
gdb/user-regs.h | 3 +-
gdb/utils.c | 92 +-
gdb/valarith.c | 18 +-
gdb/valops.c | 97 +-
gdb/valprint.c | 63 +-
gdb/valprint.h | 2 +-
gdb/value.c | 30 +-
gdb/varobj.c | 57 +-
gdb/varobj.h | 5 +-
gdb/vec.h | 3 +-
gdb/version.in | 2 +-
gdb/xcoffread.c | 193 +-
gdb/xcoffsolib.c | 7 +-
gdb/xcoffsolib.h | 6 +-
gdb/xml-syscall.c | 15 +-
gdb/xml-tdesc.c | 12 +-
opcodes/ChangeLog | 40 +
opcodes/i386-dis.c | 94 +-
opcodes/i386-gen.c | 3 +
opcodes/i386-init.h | 137 +-
opcodes/i386-opc.h | 3 +
opcodes/i386-opc.tbl | 9 +
opcodes/i386-tbl.h | 5036 ++++++++++----------
sim/.gitignore | 1 +
sim/ChangeLog | 4 +
sim/common/ChangeLog | 8 +
sim/common/run.1 | 2 +-
sim/common/sim-load.c | 2 +-
sim/ppc/ChangeLog | 4 +
sim/ppc/psim.texinfo | 4 +-
sim/testsuite/sim/mips/ChangeLog | 8 +
sim/testsuite/sim/mips/mips32-dsp.s | 2 +-
sim/testsuite/sim/mips/testutils.inc | 4 +-
sim/testsuite/sim/mips/utils-dsp.inc | 4 +-
sim/testsuite/sim/mips/utils-fpu.inc | 4 +-
sim/testsuite/sim/mips/utils-mdmx.inc | 4 +-
325 files changed, 7270 insertions(+), 4929 deletions(-)
create mode 100644 gdb/copyright.py
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0369051..eb99588 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-05 DJ Delorie <dj@redhat.com>
+
+ * reloc.c: Add BFD_RELOC_RX_OP_NEG.
+ * libbfd.h: Regenerate.
+ * bfd-in2.h: Regenerate.
+ * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
+
2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
* cpu-i386.c (bfd_i386_compatible): New.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index e75eb0d..8531f8d 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3991,6 +3991,7 @@ instructions */
BFD_RELOC_RX_GPRELL,
BFD_RELOC_RX_SYM,
BFD_RELOC_RX_OP_SUBTRACT,
+ BFD_RELOC_RX_OP_NEG,
BFD_RELOC_RX_ABS8,
BFD_RELOC_RX_ABS16,
BFD_RELOC_RX_ABS16_REV,
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index ac587ef..7855d5e 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -248,6 +248,7 @@ static const struct rx_reloc_map rx_reloc_map [] =
{ BFD_RELOC_RX_RELAX, R_RX_RH_RELAX },
{ BFD_RELOC_RX_SYM, R_RX_SYM },
{ BFD_RELOC_RX_OP_SUBTRACT, R_RX_OPsub },
+ { BFD_RELOC_RX_OP_NEG, R_RX_OPneg },
{ BFD_RELOC_RX_ABS8, R_RX_ABS8 },
{ BFD_RELOC_RX_ABS16, R_RX_ABS16 },
{ BFD_RELOC_RX_ABS16_REV, R_RX_ABS16_REV },
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 5687082..1cf63ce 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -1800,6 +1800,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_RX_GPRELL",
"BFD_RELOC_RX_SYM",
"BFD_RELOC_RX_OP_SUBTRACT",
+ "BFD_RELOC_RX_OP_NEG",
"BFD_RELOC_RX_ABS8",
"BFD_RELOC_RX_ABS16",
"BFD_RELOC_RX_ABS16_REV",
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 6d4eb85..30919f2 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -4258,6 +4258,8 @@ ENUMX
ENUMX
BFD_RELOC_RX_OP_SUBTRACT
ENUMX
+ BFD_RELOC_RX_OP_NEG
+ENUMX
BFD_RELOC_RX_ABS8
ENUMX
BFD_RELOC_RX_ABS16
diff --git a/bfd/version.h b/bfd/version.h
index e76446a..97edb33 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20110104
+#define BFD_VERSION_DATE 20110106
#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 586d12e..42e77dc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,221 @@
+2011-01-06 Joel Brobecker <brobecker@adacore.com>
+
+ * linespec.c (decode_compound, find_method): Remove trailing \n
+ at end of error string.
+ * solib-irix.c (irix_current_sos): Likewise.
+ * varobj.c (uninstall_variable): Likewise.
+
+2011-01-06 Joel Brobecker <brobecker@adacore.com>
+
+ * copyright.py: New script.
+ * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
+ Launch emacs without exec'ing. Call copyright.py afterwards.
+
+2011-01-05 Michael Snyder <msnyder@vmware.com>
+
+ * addrmap.c: Shorten lines of >= 80 columns.
+ * arch-utils.c: Ditto.
+ * arch-utils.h: Ditto.
+ * ax-gdb.c: Ditto.
+ * ax-general.c: Ditto.
+ * bcache.c: Ditto.
+ * blockframe.c: Ditto.
+ * breakpoint.c: Ditto.
+ * buildsym.c: Ditto.
+ * c-lang.c: Ditto.
+ * c-typeprint.c: Ditto.
+ * charset.c: Ditto.
+ * coffread.c: Ditto.
+ * command.h: Ditto.
+ * corelow.c: Ditto.
+ * cp-abi.c: Ditto.
+ * cp-namespace.c: Ditto.
+ * cp-support.c: Ditto.
+ * dbug-rom.c: Ditto.
+ * dbxread.c: Ditto.
+ * defs.h: Ditto.
+ * dfp.c: Ditto.
+ * dfp.h: Ditto.
+ * dictionary.c: Ditto.
+ * disasm.c: Ditto.
+ * doublest.c: Ditto.
+ * dwarf2-frame.c: Ditto.
+ * dwarf2expr.c: Ditto.
+ * dwarf2loc.c: Ditto.
+ * dwarf2read.c: Ditto.
+ * elfread.c: Ditto.
+ * eval.c: Ditto.
+ * event-loop.c: Ditto.
+ * event-loop.h: Ditto.
+ * exceptions.h: Ditto.
+ * exec.c: Ditto.
+ * expprint.c: Ditto.
+ * expression.h: Ditto.
+ * f-lang.c: Ditto.
+ * f-valprint.c: Ditto.
+ * findcmd.c: Ditto.
+ * frame-base.c: Ditto.
+ * frame-unwind.c: Ditto.
+ * frame-unwind.h: Ditto.
+ * frame.c: Ditto.
+ * frame.h: Ditto.
+ * gcore.c: Ditto.
+ * gdb-stabs.h: Ditto.
+ * gdb_assert.h: Ditto.
+ * gdb_dirent.h: Ditto.
+ * gdb_obstack.h: Ditto.
+ * gdbcore.h: Ditto.
+ * gdbtypes.c: Ditto.
+ * gdbtypes.h: Ditto.
+ * inf-ttrace.c: Ditto.
+ * infcall.c: Ditto.
+ * infcmd.c: Ditto.
+ * inflow.c: Ditto.
+ * infrun.c: Ditto.
+ * inline-frame.h: Ditto.
+ * language.c: Ditto.
+ * language.h: Ditto.
+ * libunwind-frame.c: Ditto.
+ * libunwind-frame.h: Ditto.
+ * linespec.c: Ditto.
+ * linux-nat.c: Ditto.
+ * linux-nat.h: Ditto.
+ * linux-thread-db.c: Ditto.
+ * machoread.c: Ditto.
+ * macroexp.c: Ditto.
+ * macrotab.c: Ditto.
+ * main.c: Ditto.
+ * maint.c: Ditto.
+ * mdebugread.c: Ditto.
+ * memattr.c: Ditto.
+ * minsyms.c: Ditto.
+ * monitor.c: Ditto.
+ * monitor.h: Ditto.
+ * objfiles.c: Ditto.
+ * objfiles.h: Ditto.
+ * osabi.c: Ditto.
+ * p-typeprint.c: Ditto.
+ * p-valprint.c: Ditto.
+ * parse.c: Ditto.
+ * printcmd.c: Ditto.
+ * proc-events.c: Ditto.
+ * procfs.c: Ditto.
+ * progspace.c: Ditto.
+ * progspace.h: Ditto.
+ * psympriv.h: Ditto.
+ * psymtab.c: Ditto.
+ * record.c: Ditto.
+ * regcache.c: Ditto.
+ * regcache.h: Ditto.
+ * remote-fileio.c: Ditto.
+ * remote.c: Ditto.
+ * ser-mingw.c: Ditto.
+ * ser-tcp.c: Ditto.
+ * ser-unix.c: Ditto.
+ * serial.c: Ditto.
+ * serial.h: Ditto.
+ * solib-frv.c: Ditto.
+ * solib-irix.c: Ditto.
+ * solib-osf.c: Ditto.
+ * solib-pa64.c: Ditto.
+ * solib-som.c: Ditto.
+ * solib-sunos.c: Ditto.
+ * solib-svr4.c: Ditto.
+ * solib-target.c: Ditto.
+ * solib.c: Ditto.
+ * somread.c: Ditto.
+ * source.c: Ditto.
+ * stabsread.c: Ditto.
+ * stabsread.c: Ditto.
+ * stack.c: Ditto.
+ * stack.h: Ditto.
+ * symfile-mem.c: Ditto.
+ * symfile.c: Ditto.
+ * symfile.h: Ditto.
+ * symmisc.c: Ditto.
+ * symtab.c: Ditto.
+ * symtab.h: Ditto.
+ * target-descriptions.c: Ditto.
+ * target-memory.c: Ditto.
+ * target.c: Ditto.
+ * target.h: Ditto.
+ * terminal.h: Ditto.
+ * thread.c: Ditto.
+ * top.c: Ditto.
+ * tracepoint.c: Ditto.
+ * tracepoint.h: Ditto.
+ * ui-file.c: Ditto.
+ * ui-file.h: Ditto.
+ * ui-out.h: Ditto.
+ * user-regs.c: Ditto.
+ * user-regs.h: Ditto.
+ * utils.c: Ditto.
+ * valarith.c: Ditto.
+ * valops.c: Ditto.
+ * valprint.c: Ditto.
+ * valprint.h: Ditto.
+ * value.c: Ditto.
+ * varobj.c: Ditto.
+ * varobj.h: Ditto.
+ * vec.h: Ditto.
+ * xcoffread.c: Ditto.
+ * xcoffsolib.c: Ditto.
+ * xcoffsolib.h: Ditto.
+ * xml-syscall.c: Ditto.
+ * xml-tdesc.c: Ditto.
+
+2011-01-05 Michael Snyder <msnyder@vmware.com>
+
+ * cli/cli-cmds.c: Shorten lines of >= 80 columns.
+ * cli/cli-decode.c: Ditto.
+ * cli/cli-dump.c: Ditto.
+ * cli/cli-logging.c: Ditto.
+ * cli/cli-script.c: Ditto.
+ * cli/cli-setshow.c: Ditto.
+ * common/signals.c: Ditto.
+ * mi/mi-cmd-break.c: Ditto.
+ * mi/mi-cmd-disas.c: Ditto.
+ * mi/mi-cmd-stack.c: Ditto.
+ * mi/mi-cmd-var.c: Ditto.
+ * mi/mi-cmds.c: Ditto.
+ * mi/mi-common.h: Ditto.
+ * mi/mi-console.c: Ditto.
+ * mi/mi-interp.c: Ditto.
+ * mi/mi-main.c: Ditto.
+ * osf-share/cma_attr.c: Ditto.
+ * osf-share/cma_deb_core.h: Ditto.
+ * osf-share/cma_debug_client.h: Ditto.
+ * osf-share/cma_handle.h: Ditto.
+ * osf-share/cma_mutex.h: Ditto.
+ * osf-share/cma_stack_int.h: Ditto.
+ * osf-share/cma_tcb_defs.h: Ditto.
+ * python/py-auto-load.c: Ditto.
+ * python/py-breakpoint.c: Ditto.
+ * python/py-cmd.c: Ditto.
+ * python/py-frame.c: Ditto.
+ * python/py-objfile.c: Ditto.
+ * python/py-param.c: Ditto.
+ * python/py-progspace.c: Ditto.
+ * python/py-symbol.c: Ditto.
+ * python/py-value.c: Ditto.
+ * python/python-internal.h: Ditto.
+ * python/python.c: Ditto.
+ * tui/tui-data.c: Ditto.
+ * tui/tui-disasm.c: Ditto.
+ * tui/tui-hooks.c: Ditto.
+ * tui/tui-io.c: Ditto.
+ * tui/tui-layout.c: Ditto.
+ * tui/tui-regs.c: Ditto.
+ * tui/tui-source.c: Ditto.
+ * tui/tui-stack.c: Ditto.
+ * tui/tui-win.c: Ditto.
+ * tui/tui-windata.c: Ditto.
+ * tui/tui-winsource.c: Ditto.
+
+2011-01-05 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.ac, gdb.1: Copyright year update.
+
2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
* frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
diff --git a/gdb/addrmap.c b/gdb/addrmap.c
index 6de3190..917790e 100644
--- a/gdb/addrmap.c
+++ b/gdb/addrmap.c
@@ -307,7 +307,8 @@ addrmap_node_set_value (splay_tree_node node, void *value)
static void
-addrmap_splay_tree_insert (struct addrmap_mutable *map, CORE_ADDR key, void *value)
+addrmap_splay_tree_insert (struct addrmap_mutable *map,
+ CORE_ADDR key, void *value)
{
splay_tree_insert (map->tree,
allocate_key (map, key),
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 9ed26ab..db79b9a 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -279,7 +279,7 @@ show_endian (struct ui_file *file, int from_tty, struct cmd_list_element *c,
"(currently big endian)\n"));
else
fprintf_unfiltered (file, _("The target endianness is set automatically "
- "(currently little endian)\n"));
+ "(currently little endian)\n"));
else
if (target_byte_order_user == BFD_ENDIAN_BIG)
fprintf_unfiltered (file,
@@ -435,12 +435,12 @@ show_architecture (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
{
if (target_architecture_user == NULL)
- fprintf_filtered (file, _("\
-The target architecture is set automatically (currently %s)\n"),
- gdbarch_bfd_arch_info (get_current_arch ())->printable_name);
+ fprintf_filtered (file, _("The target architecture is set "
+ "automatically (currently %s)\n"),
+ gdbarch_bfd_arch_info (get_current_arch ())->printable_name);
else
- fprintf_filtered (file, _("\
-The target architecture is assumed to be %s\n"), set_architecture_string);
+ fprintf_filtered (file, _("The target architecture is assumed to be %s\n"),
+ set_architecture_string);
}
@@ -662,9 +662,9 @@ initialize_current_architecture (void)
arches[nr + 0] = "auto";
arches[nr + 1] = NULL;
add_setshow_enum_cmd ("architecture", class_support,
- arches, &set_architecture_string, _("\
-Set architecture of target."), _("\
-Show architecture of target."), NULL,
+ arches, &set_architecture_string,
+ _("Set architecture of target."),
+ _("Show architecture of target."), NULL,
set_architecture, show_architecture,
&setlist, &showlist);
add_alias_cmd ("processor", "architecture", class_support, 1, &setlist);
@@ -788,15 +788,16 @@ default_remote_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr,
/* */
-extern initialize_file_ftype _initialize_gdbarch_utils; /* -Wmissing-prototypes */
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_gdbarch_utils;
void
_initialize_gdbarch_utils (void)
{
add_setshow_enum_cmd ("endian", class_support,
- endian_enum, &set_endian_string, _("\
-Set endianness of target."), _("\
-Show endianness of target."), NULL,
- set_endian, show_endian,
+ endian_enum, &set_endian_string,
+ _("Set endianness of target."),
+ _("Show endianness of target."),
+ NULL, set_endian, show_endian,
&setlist, &showlist);
}
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index 88fe237..5d05535 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -51,8 +51,8 @@ extern void
/* Default implementation of gdbarch_displaced_hw_singlestep. */
extern int
- default_displaced_step_hw_singlestep (struct gdbarch *gdbarch,
- struct displaced_step_closure *closure);
+ default_displaced_step_hw_singlestep (struct gdbarch *,
+ struct displaced_step_closure *);
/* Possible value for gdbarch_displaced_step_location:
Place displaced instructions at the program's entry point,
@@ -74,7 +74,8 @@ extern int no_op_reg_to_regnum (struct gdbarch *gdbarch, int reg);
/* Do nothing version of elf_make_msymbol_special. */
-void default_elf_make_msymbol_special (asymbol *sym, struct minimal_symbol *msym);
+void default_elf_make_msymbol_special (asymbol *sym,
+ struct minimal_symbol *msym);
/* Do nothing version of coff_make_msymbol_special. */
@@ -100,7 +101,8 @@ extern CORE_ADDR generic_skip_solib_resolver (struct gdbarch *gdbarch,
extern int generic_in_solib_return_trampoline (struct gdbarch *gdbarch,
CORE_ADDR pc, char *name);
-extern int generic_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc);
+extern int generic_in_function_epilogue_p (struct gdbarch *gdbarch,
+ CORE_ADDR pc);
/* By default, registers are not convertible. */
extern int generic_convert_register_p (struct gdbarch *gdbarch, int regnum,
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index e85f003..8094710 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -70,7 +70,8 @@ static struct value *const_var_ref (struct symbol *var);
static struct value *const_expr (union exp_element **pc);
static struct value *maybe_const_expr (union exp_element **pc);
-static void gen_traced_pop (struct gdbarch *, struct agent_expr *, struct axs_value *);
+static void gen_traced_pop (struct gdbarch *, struct agent_expr *,
+ struct axs_value *);
static void gen_sign_extend (struct agent_expr *, struct type *);
static void gen_extend (struct agent_expr *, struct type *);
@@ -633,7 +634,8 @@ gen_var_ref (struct gdbarch *gdbarch, struct agent_expr *ax,
case LOC_CONST_BYTES:
internal_error (__FILE__, __LINE__,
- _("gen_var_ref: LOC_CONST_BYTES symbols are not supported"));
+ _("gen_var_ref: LOC_CONST_BYTES "
+ "symbols are not supported"));
/* Variable at a fixed location in memory. Easy. */
case LOC_STATIC:
@@ -1092,9 +1094,8 @@ gen_ptrdiff (struct agent_expr *ax, struct axs_value *value,
if (TYPE_LENGTH (TYPE_TARGET_TYPE (value1->type))
!= TYPE_LENGTH (TYPE_TARGET_TYPE (value2->type)))
- error (_("\
-First argument of `-' is a pointer, but second argument is neither\n\
-an integer nor a pointer of the same type."));
+ error (_("First argument of `-' is a pointer, but second argument "
+ "is neither\nan integer nor a pointer of the same type."));
ax_simple (ax, aop_sub);
gen_scale (ax, aop_div_unsigned, value1->type);
@@ -1138,8 +1139,9 @@ gen_less (struct agent_expr *ax, struct axs_value *value,
operator, used in error messages */
static void
gen_binop (struct agent_expr *ax, struct axs_value *value,
- struct axs_value *value1, struct axs_value *value2, enum agent_op op,
- enum agent_op op_unsigned, int may_carry, char *name)
+ struct axs_value *value1, struct axs_value *value2,
+ enum agent_op op, enum agent_op op_unsigned,
+ int may_carry, char *name)
{
/* We only handle INT op INT. */
if ((TYPE_CODE (value1->type) != TYPE_CODE_INT)
@@ -1447,7 +1449,8 @@ gen_struct_ref_recursive (struct expression *exp, struct agent_expr *ax,
{
gen_static_field (exp->gdbarch, ax, value, type, i);
if (value->optimized_out)
- error (_("static field `%s' has been optimized out, cannot use"),
+ error (_("static field `%s' has been "
+ "optimized out, cannot use"),
field);
return 1;
}
@@ -1469,7 +1472,8 @@ gen_struct_ref_recursive (struct expression *exp, struct agent_expr *ax,
struct type *basetype = check_typedef (TYPE_BASECLASS (type, i));
rslt = gen_struct_ref_recursive (exp, ax, value, field,
- offset + TYPE_BASECLASS_BITPOS (type, i) / TARGET_CHAR_BIT,
+ offset + TYPE_BASECLASS_BITPOS (type, i)
+ / TARGET_CHAR_BIT,
basetype);
if (rslt)
return 1;
@@ -1587,7 +1591,8 @@ gen_struct_elt_for_reference (struct expression *exp,
{
gen_static_field (exp->gdbarch, ax, value, t, i);
if (value->optimized_out)
- error (_("static field `%s' has been optimized out, cannot use"),
+ error (_("static field `%s' has been "
+ "optimized out, cannot use"),
fieldname);
return 1;
}
@@ -1706,7 +1711,8 @@ gen_repeat (struct expression *exp, union exp_element **pc,
int length;
if (!v)
- error (_("Right operand of `@' must be a constant, in agent expressions."));
+ error (_("Right operand of `@' must be a "
+ "constant, in agent expressions."));
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2011-01-04 4:59 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2011-01-04 4:59 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 26ae9b76b64a97219d4ea5d83c8c9446b690a0c6 (commit)
via 443a01efb78cf5450066ae2817fdb3fe735efbe2 (commit)
via c195e19e3beb8f8ad7d5e2b8874cdcfc9e3369f4 (commit)
via 0477db51a0704ba62bc0c6133047411ec3640a71 (commit)
via 5c766a85ead96a2b46e9c6a0d621e56cc90d0dba (commit)
via 457da755a718113dcbc339f7823af0d439fa62c7 (commit)
via aefd15f62c6b46af4ffc9fd3ec8d849b03ebed50 (commit)
via e56270d3cfc3ee5403279e4f6853068519adfb9d (commit)
via f203fa39c811514a6d5d56595b8e6287c156a97b (commit)
via c0c55ea54be3d4ca1fff2f775e4d6410775ef139 (commit)
via 0c741c529e09621ad1ffcaf7e124387ad7bd6759 (commit)
via da23b1d01deda347f98a1753dcd81ca92f3af817 (commit)
via b062555b24d3e08fe18039db4edc18df9b9da81b (commit)
via a39584b4a71b81d30b63174936ef1409ac6c8d2a (commit)
via 114580503a36f7864388087b839750ed4583a589 (commit)
via 7f66283392a68f0992a3d40000723c49ca1c62fb (commit)
via 55490d832f51082a117eb7c17a52ade9dca6f6b0 (commit)
via 6d3bcdd4f73f02e252738c51ef90c804f3b281f7 (commit)
via e932f1922b2554951551c17864b28468de5f732c (commit)
via 95448c0b31869c3785bbe327ae93e8df0cafb352 (commit)
via 152966c4aa1ac1e2950b9c9f5c1515ff9591f936 (commit)
via a226e9bb547d097af59fa4ffe001381b82390216 (commit)
via 4b1d7842adfc9887086cea526e5ca5e923e48422 (commit)
from d3cf99efbd69d1713af02f445f361e475c905f80 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 26ae9b76b64a97219d4ea5d83c8c9446b690a0c6
Merge: d3cf99e 443a01e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jan 4 05:58:09 2011 +0100
Merge remote branch 'gdb/master'
commit 443a01efb78cf5450066ae2817fdb3fe735efbe2
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 4 00:00:03 2011 +0000
*** empty log message ***
commit c195e19e3beb8f8ad7d5e2b8874cdcfc9e3369f4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 3 23:00:05 2011 +0000
daily update
commit 0477db51a0704ba62bc0c6133047411ec3640a71
Author: DJ Delorie <dj@delorie.com>
Date: Mon Jan 3 21:05:50 2011 +0000
merge from gcc
commit 5c766a85ead96a2b46e9c6a0d621e56cc90d0dba
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jan 3 18:16:46 2011 +0000
Don't allow mixing x64_32 with x86_64.
bfd/
2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
* cpu-i386.c (bfd_i386_compatible): New.
(bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
with bfd_i386_compatible.
(bfd_x86_64_arch_intel_syntax): Likewise.
(bfd_i386_arch_intel_syntax): Likewise.
(i8086_arch): Likewise.
(bfd_x64_32_arch): Likewise.
(bfd_x86_64_arch): Likewise.
(bfd_i386_arch): Likewise.
ld/testsuite/
2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
* ld-x86-64/dummy.s: New.
* ld-x86-64/foo.s: Likewise.
* ld-x86-64/ia32-1.d: Likewise.
* ld-x86-64/ia32-2.d: Likewise.
* ld-x86-64/ia32-3.d: Likewise.
* ld-x86-64/ilp32-1.d: Likewise.
* ld-x86-64/ilp32-2.d: Likewise.
* ld-x86-64/ilp32-3.d: Likewise.
* ld-x86-64/lp64-1.d: Likewise.
* ld-x86-64/lp64-2.d: Likewise.
* ld-x86-64/lp64-3.d: Likewise.
* ld-x86-64/start.s: Likewise.
* ld-x86-64/x86-64.exp: Run ilp32-1, ilp32-2, ilp32-3, ia32-1,
ia32-2, ia32-3, lp64-1, lp64-2 and lp64-3.
commit 457da755a718113dcbc339f7823af0d439fa62c7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jan 3 13:10:59 2011 +0000
gdb/
* frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
this_pc_in_block, morestack_msym and morestack_name. Check for
"__morestack" minimal symbol there.
gdb/testsuite/
* gdb.base/morestack.exp: New file.
* gdb.base/morestack.c: New file.
commit aefd15f62c6b46af4ffc9fd3ec8d849b03ebed50
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jan 3 13:01:04 2011 +0000
gdb/doc/
* Makefile.in (diststuff): Remove gdb-cfg.texi and GDBvn.texi.
(clean): Add GDBvn.texi.
commit e56270d3cfc3ee5403279e4f6853068519adfb9d
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Jan 3 07:53:05 2011 +0000
prevent the "load" command from repeating
This makes sure that the `load' command does not repeat when the user
presses Return again, as documented in the GDB User's Manual.
gdb/ChangeLog:
* symfile.c (find_sym_fns): Add call to dont_repeat.
commit f203fa39c811514a6d5d56595b8e6287c156a97b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 3 00:00:03 2011 +0000
*** empty log message ***
commit c0c55ea54be3d4ca1fff2f775e4d6410775ef139
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jan 2 23:00:05 2011 +0000
daily update
commit 0c741c529e09621ad1ffcaf7e124387ad7bd6759
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Sun Jan 2 16:40:07 2011 +0000
Sync toplevel configure from GCC.
/:
Sync from GCC:
2010-12-22 Hariharan Sandanagobalane <hariharan@picochip.com>
* configure.ac: (picochip): Disable libiberty.
* configure: Regenerate.
commit da23b1d01deda347f98a1753dcd81ca92f3af817
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Jan 2 07:32:33 2011 +0000
gdb/testsuite/
* gdb.ada/gnat_ada.gpr: Fix copyright comment line regression by 2011.
commit b062555b24d3e08fe18039db4edc18df9b9da81b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 2 00:00:33 2011 +0000
*** empty log message ***
commit a39584b4a71b81d30b63174936ef1409ac6c8d2a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jan 1 23:00:05 2011 +0000
daily update
commit 114580503a36f7864388087b839750ed4583a589
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Jan 1 21:42:17 2011 +0000
Update copyright in comments to 2011.
commit 7f66283392a68f0992a3d40000723c49ca1c62fb
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Jan 1 20:55:48 2011 +0000
Update copyright to 2011.
binutils/
2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
* version.c (print_version): Update copyright to 2011.
gas/
2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
* gas.c (parse_args): Update copyright to 2011.
gold/
2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
* version.cc (print_version): Update copyright to 2011.
ld/
2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
* ldver.c (ldversion): Update copyright to 2011.
opcodes/
2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (process_copyright): Update copyright to 2011.
commit 55490d832f51082a117eb7c17a52ade9dca6f6b0
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Jan 1 16:43:50 2011 +0000
Rotate binutils ChangeLogs.
commit 6d3bcdd4f73f02e252738c51ef90c804f3b281f7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 1 15:32:52 2011 +0000
run copyright.sh for 2011.
commit e932f1922b2554951551c17864b28468de5f732c
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 1 14:14:46 2011 +0000
Update copyright year in version of output (gdb/gdbserver/gdbreplay)
gdb/ChangeLog:
* top.c (print_gdb_version): Update copyright year in version output.
gdb/gdbserverChangeLog:
* server.c (gdbserver_version): Update copyright year in version
output.
* gdbreplay.c (gdbreplay_version): Ditto.
commit 95448c0b31869c3785bbe327ae93e8df0cafb352
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 1 14:05:06 2011 +0000
Rotate GDB's main ChangeLog file
gdb/ChangeLog:
* ChangeLog-2010: Renames ChangeLog.
* ChangeLog: New file.
* config/djgpp/fnchange.lst: Add exception for gdb/ChangeLog-2010.
Also fix a typo in the exception for gdb/ChangeLog-2009.
commit 152966c4aa1ac1e2950b9c9f5c1515ff9591f936
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 1 00:00:03 2011 +0000
*** empty log message ***
commit a226e9bb547d097af59fa4ffe001381b82390216
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Dec 31 23:00:05 2010 +0000
daily update
commit 4b1d7842adfc9887086cea526e5ca5e923e48422
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Dec 31 22:59:51 2010 +0000
2010-12-31 Michael Snyder <msnyder@vmware.com>
* charset.c: Comment cleanup and long line wrapping.
* charset.h: Ditto.
* c-lang.c: Ditto.
* c-lang.h: Ditto.
* coff-pe-read.c: Ditto.
* coff-pe-read.h: Ditto.
* coffread.c: Ditto.
* command.h: Ditto.
* complaints.c: Ditto.
* complaints.h: Ditto.
* completer.c: Ditto.
* completer.h: Ditto.
* corefile.c: Ditto.
* corelow.c: Ditto.
* core-regset.c: Ditto.
* cp-abi.c: Ditto.
* cp-abi.h: Ditto.
* cp-namespace.c: Ditto.
* cp-support.c: Ditto.
* cp-support.h: Ditto.
* cp-valprint.c: Ditto.
* cp-typeprint.c: Ditto.
* c-valprint.c: Ditto.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 +
bfd/ChangeLog | 3564 +------
bfd/{ChangeLog => ChangeLog-2010} | 0
bfd/cpu-i386.c | 29 +-
bfd/version.h | 2 +-
configure | 3 +
configure.ac | 3 +
gdb/ChangeLog |11930 +-------------------
gdb/{ChangeLog => ChangeLog-2010} | 24 +
gdb/Makefile.in | 2 +-
gdb/ada-exp.y | 2 +-
gdb/ada-lang.h | 2 +-
gdb/ada-lex.l | 2 +-
gdb/ada-operator.inc | 2 +-
gdb/ada-tasks.c | 2 +-
gdb/ada-typeprint.c | 2 +-
gdb/ada-valprint.c | 2 +-
gdb/addrmap.c | 2 +-
gdb/addrmap.h | 2 +-
gdb/aix-thread.c | 2 +-
gdb/alpha-linux-nat.c | 2 +-
gdb/alpha-linux-tdep.c | 2 +-
gdb/alpha-mdebug-tdep.c | 2 +-
gdb/alpha-nat.c | 2 +-
gdb/alpha-osf1-tdep.c | 2 +-
gdb/alpha-tdep.c | 3 +-
gdb/alpha-tdep.h | 2 +-
gdb/alphabsd-nat.c | 4 +-
gdb/alphabsd-tdep.c | 2 +-
gdb/alphabsd-tdep.h | 2 +-
gdb/alphafbsd-tdep.c | 2 +-
gdb/alphanbsd-tdep.c | 2 +-
gdb/alphaobsd-tdep.c | 3 +-
gdb/amd64-darwin-tdep.c | 2 +-
gdb/amd64-darwin-tdep.h | 2 +-
gdb/amd64-dicos-tdep.c | 2 +-
gdb/amd64-linux-nat.c | 4 +-
gdb/amd64-linux-tdep.c | 2 +-
gdb/amd64-linux-tdep.h | 3 +-
gdb/amd64-nat.c | 2 +-
gdb/amd64-nat.h | 2 +-
gdb/amd64-sol2-tdep.c | 2 +-
gdb/amd64-tdep.c | 4 +-
gdb/amd64-tdep.h | 2 +-
gdb/amd64-windows-nat.c | 2 +-
gdb/amd64-windows-tdep.c | 2 +-
gdb/amd64bsd-nat.c | 2 +-
gdb/amd64fbsd-nat.c | 2 +-
gdb/amd64fbsd-tdep.c | 2 +-
gdb/amd64nbsd-nat.c | 2 +-
gdb/amd64nbsd-tdep.c | 2 +-
gdb/amd64obsd-nat.c | 2 +-
gdb/amd64obsd-tdep.c | 2 +-
gdb/annotate.c | 2 +-
gdb/annotate.h | 2 +-
gdb/arch-utils.c | 2 +-
gdb/arch-utils.h | 4 +-
gdb/arm-linux-nat.c | 2 +-
gdb/arm-linux-tdep.c | 2 +-
gdb/arm-linux-tdep.h | 3 +-
gdb/arm-symbian-tdep.c | 3 +-
gdb/arm-tdep.c | 2 +-
gdb/arm-tdep.h | 2 +-
gdb/arm-wince-tdep.c | 2 +-
gdb/armbsd-tdep.c | 3 +-
gdb/armnbsd-nat.c | 2 +-
gdb/armnbsd-tdep.c | 2 +-
gdb/armobsd-tdep.c | 3 +-
gdb/auxv.c | 2 +-
gdb/auxv.h | 2 +-
gdb/avr-tdep.c | 2 +-
gdb/ax-gdb.c | 2 +-
gdb/ax-gdb.h | 2 +-
gdb/ax-general.c | 2 +-
gdb/ax.h | 2 +-
gdb/bcache.c | 2 +-
gdb/bcache.h | 2 +-
gdb/bfd-target.c | 2 +-
gdb/bfd-target.h | 3 +-
gdb/bfin-linux-tdep.c | 2 +-
gdb/bfin-tdep.c | 2 +-
gdb/bfin-tdep.h | 2 +-
gdb/block.c | 3 +-
gdb/block.h | 3 +-
gdb/blockframe.c | 2 +-
gdb/breakpoint.c | 2 +-
gdb/breakpoint.h | 3 +-
gdb/bsd-kvm.c | 2 +-
gdb/bsd-kvm.h | 3 +-
gdb/bsd-uthread.c | 3 +-
gdb/bsd-uthread.h | 3 +-
gdb/buildsym.c | 2 +-
gdb/buildsym.h | 2 +-
gdb/c-exp.y | 2 +-
gdb/c-lang.c | 149 +-
gdb/c-lang.h | 30 +-
gdb/c-typeprint.c | 324 +-
gdb/c-valprint.c | 212 +-
gdb/call-cmds.h | 2 +-
gdb/cc-with-index.sh | 2 +-
gdb/charset-list.h | 2 +-
gdb/charset.c | 51 +-
gdb/charset.h | 10 +-
gdb/cli-out.c | 2 +-
gdb/cli-out.h | 2 +-
gdb/cli/cli-cmds.c | 4 +-
gdb/cli/cli-cmds.h | 3 +-
gdb/cli/cli-decode.c | 2 +-
gdb/cli/cli-decode.h | 2 +-
gdb/cli/cli-dump.c | 2 +-
gdb/cli/cli-dump.h | 2 +-
gdb/cli/cli-interp.c | 2 +-
gdb/cli/cli-logging.c | 2 +-
gdb/cli/cli-script.c | 2 +-
gdb/cli/cli-script.h | 2 +-
gdb/cli/cli-setshow.c | 2 +-
gdb/cli/cli-setshow.h | 2 +-
gdb/coff-pe-read.c | 64 +-
gdb/coff-pe-read.h | 6 +-
gdb/coffread.c | 487 +-
gdb/command.h | 70 +-
gdb/common/gdb_signals.h | 2 +-
gdb/common/i386-xstate.h | 2 +-
gdb/common/signals.c | 2 +-
gdb/complaints.c | 21 +-
gdb/complaints.h | 8 +-
gdb/completer.c | 195 +-
gdb/completer.h | 25 +-
gdb/config/alpha/nm-osf3.h | 2 +-
gdb/config/djgpp/djconfig.sh | 2 +-
gdb/config/djgpp/fnchange.lst | 3 +-
gdb/config/djgpp/langinfo.h | 2 +-
gdb/config/djgpp/nl_types.h | 2 +-
gdb/config/i386/nm-fbsd.h | 2 +-
gdb/config/i386/nm-i386gnu.h | 2 +-
gdb/config/nm-linux.h | 2 +-
gdb/config/nm-nto.h | 2 +-
gdb/config/rs6000/nm-rs6000.h | 2 +-
gdb/config/sparc/nm-sol2.h | 2 +-
gdb/copyright.sh | 2 +-
gdb/core-regset.c | 9 +-
gdb/corefile.c | 66 +-
gdb/corelow.c | 117 +-
gdb/cp-abi.c | 32 +-
gdb/cp-abi.h | 74 +-
gdb/cp-name-parser.y | 2 +-
gdb/cp-namespace.c | 234 +-
gdb/cp-support.c | 165 +-
gdb/cp-support.h | 29 +-
gdb/cp-valprint.c | 217 +-
gdb/cris-tdep.c | 4 +-
gdb/d-lang.c | 3 +-
gdb/d-lang.h | 3 +-
gdb/d-valprint.c | 2 +-
gdb/darwin-nat-info.c | 2 +-
gdb/darwin-nat.c | 2 +-
gdb/darwin-nat.h | 2 +-
gdb/data-directory/Makefile.in | 2 +-
gdb/dbug-rom.c | 2 +-
gdb/dcache.c | 2 +-
gdb/dcache.h | 4 +-
gdb/dec-thread.c | 2 +-
gdb/defs.h | 2 +-
gdb/demangle.c | 2 +-
gdb/dfp.c | 2 +-
gdb/dfp.h | 2 +-
gdb/dicos-tdep.c | 2 +-
gdb/dicos-tdep.h | 2 +-
gdb/dictionary.c | 3 +-
gdb/dictionary.h | 3 +-
gdb/dink32-rom.c | 2 +-
gdb/disasm.c | 4 +-
gdb/disasm.h | 3 +-
gdb/doc/ChangeLog | 5 +
gdb/doc/Makefile.in | 5 +-
gdb/doublest.c | 4 +-
gdb/doublest.h | 4 +-
gdb/dsrec.c | 2 +-
gdb/dummy-frame.c | 2 +-
gdb/dummy-frame.h | 2 +-
gdb/dwarf2-frame.c | 2 +-
gdb/dwarf2-frame.h | 2 +-
gdb/dwarf2expr.c | 2 +-
gdb/dwarf2expr.h | 2 +-
gdb/dwarf2loc.c | 2 +-
gdb/dwarf2loc.h | 2 +-
gdb/dwarf2read.c | 2 +-
gdb/elfread.c | 2 +-
gdb/environ.c | 2 +-
gdb/environ.h | 2 +-
gdb/eval.c | 2 +-
gdb/event-loop.c | 4 +-
gdb/event-loop.h | 2 +-
gdb/event-top.c | 4 +-
gdb/event-top.h | 2 +-
gdb/exceptions.c | 2 +-
gdb/exceptions.h | 2 +-
gdb/exec.c | 2 +-
gdb/exec.h | 3 +-
gdb/expprint.c | 2 +-
gdb/expression.h | 2 +-
gdb/f-exp.y | 2 +-
gdb/f-lang.c | 2 +-
gdb/f-lang.h | 2 +-
gdb/f-typeprint.c | 2 +-
gdb/f-valprint.c | 2 +-
gdb/fbsd-nat.c | 2 +-
gdb/fbsd-nat.h | 3 +-
gdb/features/Makefile | 2 +-
gdb/features/arm-core.xml | 2 +-
gdb/features/arm-fpa.xml | 2 +-
gdb/features/arm-m-profile.xml | 2 +-
gdb/features/arm-vfpv2.xml | 2 +-
gdb/features/arm-vfpv3.xml | 2 +-
gdb/features/arm-with-iwmmxt.xml | 2 +-
gdb/features/arm-with-m.xml | 2 +-
gdb/features/arm-with-neon.xml | 2 +-
gdb/features/arm-with-vfpv2.xml | 2 +-
gdb/features/arm-with-vfpv3.xml | 2 +-
gdb/features/feature_to_c.sh | 2 +-
gdb/features/gdb-target.dtd | 2 +-
gdb/features/i386/32bit-avx.xml | 2 +-
gdb/features/i386/32bit-core.xml | 2 +-
gdb/features/i386/32bit-linux.xml | 2 +-
gdb/features/i386/32bit-sse.xml | 2 +-
gdb/features/i386/64bit-avx.xml | 2 +-
gdb/features/i386/64bit-core.xml | 2 +-
gdb/features/i386/64bit-linux.xml | 2 +-
gdb/features/i386/64bit-sse.xml | 2 +-
gdb/features/i386/amd64-avx-linux.xml | 2 +-
gdb/features/i386/amd64-avx.xml | 2 +-
gdb/features/i386/amd64-linux.xml | 2 +-
gdb/features/i386/amd64.xml | 2 +-
gdb/features/i386/i386-avx-linux.xml | 2 +-
gdb/features/i386/i386-avx.xml | 2 +-
gdb/features/i386/i386-linux.xml | 2 +-
gdb/features/i386/i386-mmx-linux.xml | 2 +-
gdb/features/i386/i386-mmx.xml | 2 +-
gdb/features/i386/i386.xml | 2 +-
gdb/features/library-list.dtd | 2 +-
gdb/features/mips-cp0.xml | 2 +-
gdb/features/mips-cpu.xml | 2 +-
gdb/features/mips-fpu.xml | 2 +-
gdb/features/mips-linux.xml | 2 +-
gdb/features/mips64-cp0.xml | 2 +-
gdb/features/mips64-cpu.xml | 2 +-
gdb/features/mips64-fpu.xml | 2 +-
gdb/features/mips64-linux.xml | 2 +-
gdb/features/osdata.dtd | 2 +-
gdb/features/rs6000/power-altivec.xml | 2 +-
gdb/features/rs6000/power-core.xml | 2 +-
gdb/features/rs6000/power-fpu-isa205.xml | 2 +-
gdb/features/rs6000/power-fpu.xml | 2 +-
gdb/features/rs6000/power-linux.xml | 2 +-
gdb/features/rs6000/power-oea.xml | 2 +-
gdb/features/rs6000/power-spe.xml | 2 +-
gdb/features/rs6000/power-vsx.xml | 2 +-
gdb/features/rs6000/power64-core.xml | 2 +-
gdb/features/rs6000/power64-linux.xml | 2 +-
gdb/features/rs6000/powerpc-32.xml | 2 +-
gdb/features/rs6000/powerpc-32l.xml | 2 +-
gdb/features/rs6000/powerpc-403.xml | 2 +-
gdb/features/rs6000/powerpc-403gc.xml | 2 +-
gdb/features/rs6000/powerpc-405.xml | 2 +-
gdb/features/rs6000/powerpc-505.xml | 2 +-
gdb/features/rs6000/powerpc-601.xml | 2 +-
gdb/features/rs6000/powerpc-602.xml | 2 +-
gdb/features/rs6000/powerpc-603.xml | 2 +-
gdb/features/rs6000/powerpc-604.xml | 2 +-
gdb/features/rs6000/powerpc-64.xml | 2 +-
gdb/features/rs6000/powerpc-64l.xml | 2 +-
gdb/features/rs6000/powerpc-7400.xml | 2 +-
gdb/features/rs6000/powerpc-750.xml | 2 +-
gdb/features/rs6000/powerpc-860.xml | 2 +-
gdb/features/rs6000/powerpc-altivec32.xml | 2 +-
gdb/features/rs6000/powerpc-altivec32l.xml | 2 +-
gdb/features/rs6000/powerpc-altivec64.xml | 2 +-
gdb/features/rs6000/powerpc-altivec64l.xml | 2 +-
gdb/features/rs6000/powerpc-cell32l.xml | 2 +-
gdb/features/rs6000/powerpc-cell64l.xml | 2 +-
gdb/features/rs6000/powerpc-e500.xml | 2 +-
gdb/features/rs6000/powerpc-e500l.xml | 2 +-
gdb/features/rs6000/powerpc-isa205-32l.xml | 2 +-
gdb/features/rs6000/powerpc-isa205-64l.xml | 2 +-
gdb/features/rs6000/powerpc-isa205-altivec32l.xml | 2 +-
gdb/features/rs6000/powerpc-isa205-altivec64l.xml | 2 +-
gdb/features/rs6000/powerpc-isa205-vsx32l.xml | 2 +-
gdb/features/rs6000/powerpc-isa205-vsx64l.xml | 2 +-
gdb/features/rs6000/powerpc-vsx32.xml | 2 +-
gdb/features/rs6000/powerpc-vsx32l.xml | 2 +-
gdb/features/rs6000/powerpc-vsx64.xml | 2 +-
gdb/features/rs6000/powerpc-vsx64l.xml | 2 +-
gdb/features/rs6000/rs6000.xml | 2 +-
gdb/features/s390-acr.xml | 2 +-
gdb/features/s390-core32.xml | 2 +-
gdb/features/s390-core64.xml | 2 +-
gdb/features/s390-fpr.xml | 2 +-
gdb/features/s390-linux32.xml | 2 +-
gdb/features/s390-linux64.xml | 2 +-
gdb/features/s390x-core64.xml | 2 +-
gdb/features/s390x-linux64.xml | 2 +-
gdb/features/threads.dtd | 2 +-
gdb/features/xinclude.dtd | 2 +-
gdb/features/xscale-iwmmxt.xml | 2 +-
gdb/filesystem.c | 2 +-
gdb/filesystem.h | 2 +-
gdb/findcmd.c | 2 +-
gdb/findvar.c | 2 +-
gdb/fork-child.c | 2 +-
gdb/frame-base.c | 2 +-
gdb/frame-base.h | 3 +-
gdb/frame-unwind.c | 2 +-
gdb/frame-unwind.h | 2 +-
gdb/frame.c | 27 +-
gdb/frame.h | 2 +-
gdb/frv-linux-tdep.c | 2 +-
gdb/frv-tdep.c | 2 +-
gdb/frv-tdep.h | 3 +-
gdb/gcore.c | 4 +-
gdb/gdb-gdb.py | 2 +-
gdb/gdb-stabs.h | 2 +-
gdb/gdb.c | 3 +-
gdb/gdb.h | 2 +-
gdb/gdb_assert.h | 2 +-
gdb/gdb_buildall.sh | 2 +-
gdb/gdb_curses.h | 2 +-
gdb/gdb_dirent.h | 2 +-
gdb/gdb_expat.h | 3 +-
gdb/gdb_gcore.sh | 2 +-
gdb/gdb_locale.h | 3 +-
gdb/gdb_mbuild.sh | 2 +-
gdb/gdb_obstack.h | 3 +-
gdb/gdb_proc_service.h | 3 +-
gdb/gdb_ptrace.h | 2 +-
gdb/gdb_regex.h | 2 +-
gdb/gdb_select.h | 3 +-
gdb/gdb_stat.h | 3 +-
gdb/gdb_string.h | 4 +-
gdb/gdb_thread_db.h | 2 +-
gdb/gdb_usleep.c | 2 +-
gdb/gdb_usleep.h | 2 +-
gdb/gdb_vfork.h | 3 +-
gdb/gdb_wait.h | 3 +-
gdb/gdb_wchar.h | 2 +-
gdb/gdbarch.sh | 2 +-
gdb/gdbcmd.h | 2 +-
gdb/gdbcore.h | 2 +-
gdb/gdbserver/ChangeLog | 6 +
gdb/gdbserver/Makefile.in | 2 +-
gdb/gdbserver/event-loop.c | 2 +-
gdb/gdbserver/gdb_proc_service.h | 2 +-
gdb/gdbserver/gdbreplay.c | 4 +-
gdb/gdbserver/hostio-errno.c | 2 +-
gdb/gdbserver/hostio.c | 2 +-
gdb/gdbserver/i386-low.c | 2 +-
gdb/gdbserver/i386-low.h | 2 +-
gdb/gdbserver/i387-fp.c | 2 +-
gdb/gdbserver/i387-fp.h | 2 +-
gdb/gdbserver/inferiors.c | 2 +-
gdb/gdbserver/linux-amd64-ipa.c | 2 +-
gdb/gdbserver/linux-arm-low.c | 2 +-
gdb/gdbserver/linux-bfin-low.c | 2 +-
gdb/gdbserver/linux-cris-low.c | 2 +-
gdb/gdbserver/linux-crisv32-low.c | 2 +-
gdb/gdbserver/linux-i386-ipa.c | 2 +-
gdb/gdbserver/linux-ia64-low.c | 2 +-
gdb/gdbserver/linux-low.c | 2 +-
gdb/gdbserver/linux-low.h | 2 +-
gdb/gdbserver/linux-m32r-low.c | 3 +-
gdb/gdbserver/linux-m68k-low.c | 2 +-
gdb/gdbserver/linux-mips-low.c | 2 +-
gdb/gdbserver/linux-ppc-low.c | 2 +-
gdb/gdbserver/linux-s390-low.c | 2 +-
gdb/gdbserver/linux-sh-low.c | 2 +-
gdb/gdbserver/linux-sparc-low.c | 2 +-
gdb/gdbserver/linux-x86-low.c | 2 +-
gdb/gdbserver/linux-xtensa-low.c | 2 +-
gdb/gdbserver/lynx-i386-low.c | 2 +-
gdb/gdbserver/lynx-low.c | 2 +-
gdb/gdbserver/lynx-low.h | 2 +-
gdb/gdbserver/lynx-ppc-low.c | 2 +-
gdb/gdbserver/mem-break.c | 2 +-
gdb/gdbserver/mem-break.h | 2 +-
gdb/gdbserver/nto-low.c | 2 +-
gdb/gdbserver/nto-low.h | 2 +-
gdb/gdbserver/nto-x86-low.c | 2 +-
gdb/gdbserver/proc-service.c | 2 +-
gdb/gdbserver/proc-service.list | 2 +-
gdb/gdbserver/regcache.c | 2 +-
gdb/gdbserver/regcache.h | 2 +-
gdb/gdbserver/remote-utils.c | 2 +-
gdb/gdbserver/server.c | 5 +-
gdb/gdbserver/server.h | 2 +-
gdb/gdbserver/spu-low.c | 3 +-
gdb/gdbserver/target.c | 2 +-
gdb/gdbserver/target.h | 2 +-
gdb/gdbserver/thread-db.c | 2 +-
gdb/gdbserver/tracepoint.c | 2 +-
gdb/gdbserver/utils.c | 2 +-
gdb/gdbserver/win32-arm-low.c | 2 +-
gdb/gdbserver/win32-i386-low.c | 2 +-
gdb/gdbserver/win32-low.c | 3 +-
gdb/gdbserver/win32-low.h | 2 +-
gdb/gdbserver/wincecompat.c | 2 +-
gdb/gdbserver/wincecompat.h | 2 +-
gdb/gdbserver/xtensa-xtregs.c | 2 +-
gdb/gdbthread.h | 2 +-
gdb/gdbtypes.c | 2 +-
gdb/gdbtypes.h | 2 +-
gdb/glibc-tdep.c | 2 +-
gdb/glibc-tdep.h | 2 +-
gdb/gnu-nat.c | 2 +-
gdb/gnu-nat.h | 2 +-
gdb/gnu-v2-abi.c | 2 +-
gdb/gnu-v3-abi.c | 2 +-
gdb/gnulib/Makefile.am | 2 +-
gdb/gnulib/Makefile.in | 5 +-
gdb/gnulib/dummy.c | 2 +-
gdb/gnulib/extra/arg-nonnull.h | 2 +-
gdb/gnulib/extra/c++defs.h | 2 +-
gdb/gnulib/extra/warn-on-use.h | 2 +-
gdb/gnulib/m4/00gnulib.m4 | 2 +-
gdb/gnulib/m4/extensions.m4 | 2 +-
gdb/gnulib/m4/gnulib-cache.m4 | 2 +-
gdb/gnulib/m4/gnulib-common.m4 | 2 +-
gdb/gnulib/m4/gnulib-comp.m4 | 2 +-
gdb/gnulib/m4/gnulib-tool.m4 | 2 +-
gdb/gnulib/m4/include_next.m4 | 2 +-
gdb/gnulib/m4/longlong.m4 | 2 +-
gdb/gnulib/m4/memchr.m4 | 2 +-
gdb/gnulib/m4/mmap-anon.m4 | 2 +-
gdb/gnulib/m4/multiarch.m4 | 2 +-
gdb/gnulib/m4/stddef_h.m4 | 2 +-
gdb/gnulib/m4/stdint.m4 | 2 +-
gdb/gnulib/m4/string_h.m4 | 2 +-
gdb/gnulib/m4/warn-on-use.m4 | 2 +-
gdb/gnulib/m4/wchar_h.m4 | 2 +-
gdb/gnulib/m4/wchar_t.m4 | 2 +-
gdb/gnulib/m4/wint_t.m4 | 2 +-
gdb/gnulib/memchr.c | 2 +-
gdb/gnulib/memmem.c | 2 +-
gdb/gnulib/stddef.in.h | 2 +-
gdb/gnulib/stdint.in.h | 2 +-
gdb/gnulib/str-two-way.h | 2 +-
gdb/gnulib/string.in.h | 2 +-
gdb/gnulib/wchar.in.h | 2 +-
gdb/go32-nat.c | 4 +-
gdb/gregset.h | 2 +-
gdb/h8300-tdep.c | 2 +-
gdb/hppa-hpux-nat.c | 2 +-
gdb/hppa-hpux-tdep.c | 2 +-
gdb/hppa-linux-nat.c | 2 +-
gdb/hppa-linux-offsets.h | 2 +-
gdb/hppa-linux-tdep.c | 2 +-
gdb/hppa-tdep.c | 4 +-
gdb/hppa-tdep.h | 2 +-
gdb/hppabsd-nat.c | 2 +-
gdb/hppabsd-tdep.c | 2 +-
gdb/hppabsd-tdep.h | 2 +-
gdb/hppanbsd-nat.c | 2 +-
gdb/hppanbsd-tdep.c | 2 +-
gdb/hppaobsd-tdep.c | 2 +-
gdb/hpux-thread.c | 4 +-
gdb/i386-cygwin-tdep.c | 3 +-
gdb/i386-darwin-nat.c | 2 +-
gdb/i386-darwin-tdep.c | 2 +-
gdb/i386-darwin-tdep.h | 2 +-
gdb/i386-dicos-tdep.c | 2 +-
gdb/i386-linux-nat.c | 2 +-
gdb/i386-linux-tdep.c | 4 +-
gdb/i386-linux-tdep.h | 2 +-
gdb/i386-nat.c | 2 +-
gdb/i386-nat.h | 2 +-
gdb/i386-nto-tdep.c | 2 +-
gdb/i386-sol2-nat.c | 3 +-
gdb/i386-sol2-tdep.c | 2 +-
gdb/i386-tdep.c | 2 +-
gdb/i386-tdep.h | 2 +-
gdb/i386-windows-nat.c | 2 +-
gdb/i386bsd-nat.c | 4 +-
gdb/i386bsd-nat.h | 3 +-
gdb/i386bsd-tdep.c | 2 +-
gdb/i386fbsd-nat.c | 2 +-
gdb/i386fbsd-tdep.c | 2 +-
gdb/i386gnu-nat.c | 2 +-
gdb/i386gnu-tdep.c | 2 +-
gdb/i386nbsd-nat.c | 2 +-
gdb/i386nbsd-tdep.c | 2 +-
gdb/i386obsd-nat.c | 2 +-
gdb/i386obsd-tdep.c | 3 +-
gdb/i386v4-nat.c | 2 +-
gdb/i387-tdep.c | 2 +-
gdb/i387-tdep.h | 2 +-
gdb/ia64-linux-nat.c | 2 +-
gdb/ia64-linux-tdep.c | 2 +-
gdb/ia64-tdep.c | 2 +-
gdb/ia64-tdep.h | 2 +-
gdb/inf-child.c | 2 +-
gdb/inf-child.h | 3 +-
gdb/inf-loop.c | 3 +-
gdb/inf-loop.h | 3 +-
gdb/inf-ptrace.c | 2 +-
gdb/inf-ptrace.h | 2 +-
gdb/inf-ttrace.c | 2 +-
gdb/inf-ttrace.h | 3 +-
gdb/infcall.c | 2 +-
gdb/infcall.h | 3 +-
gdb/infcmd.c | 2 +-
gdb/inferior.c | 2 +-
gdb/inferior.h | 4 +-
gdb/inflow.c | 2 +-
gdb/inflow.h | 2 +-
gdb/infrun.c | 2 +-
gdb/inline-frame.c | 2 +-
gdb/inline-frame.h | 2 +-
gdb/interps.c | 2 +-
gdb/interps.h | 2 +-
gdb/iq2000-tdep.c | 2 +-
gdb/irix5-nat.c | 2 +-
gdb/jit.c | 2 +-
gdb/jit.h | 2 +-
gdb/jv-exp.y | 2 +-
gdb/jv-lang.c | 2 +-
gdb/jv-lang.h | 2 +-
gdb/jv-typeprint.c | 2 +-
gdb/jv-valprint.c | 2 +-
gdb/language.c | 2 +-
gdb/language.h | 2 +-
gdb/libunwind-frame.c | 2 +-
gdb/libunwind-frame.h | 2 +-
gdb/linespec.c | 2 +-
gdb/linespec.h | 3 +-
gdb/linux-fork.c | 2 +-
gdb/linux-fork.h | 2 +-
gdb/linux-nat.c | 4 +-
gdb/linux-nat.h | 2 +-
gdb/linux-record.c | 2 +-
gdb/linux-record.h | 2 +-
gdb/linux-tdep.c | 2 +-
gdb/linux-tdep.h | 2 +-
gdb/linux-thread-db.c | 2 +-
gdb/lm32-tdep.c | 2 +-
gdb/m2-exp.y | 2 +-
gdb/m2-lang.c | 2 +-
gdb/m2-lang.h | 2 +-
gdb/m2-typeprint.c | 2 +-
gdb/m2-valprint.c | 2 +-
gdb/m32c-tdep.c | 3 +-
gdb/m32r-linux-nat.c | 2 +-
gdb/m32r-linux-tdep.c | 3 +-
gdb/m32r-rom.c | 2 +-
gdb/m32r-tdep.c | 2 +-
gdb/m32r-tdep.h | 3 +-
gdb/m68hc11-tdep.c | 2 +-
gdb/m68k-tdep.c | 2 +-
gdb/m68k-tdep.h | 2 +-
gdb/m68kbsd-nat.c | 3 +-
gdb/m68kbsd-tdep.c | 2 +-
gdb/m68klinux-nat.c | 2 +-
gdb/m68klinux-tdep.c | 2 +-
gdb/m88k-tdep.c | 2 +-
gdb/m88k-tdep.h | 3 +-
gdb/m88kbsd-nat.c | 3 +-
gdb/machoread.c | 2 +-
gdb/macrocmd.c | 3 +-
gdb/macroexp.c | 3 +-
gdb/macroexp.h | 3 +-
gdb/macroscope.c | 3 +-
gdb/macroscope.h | 3 +-
gdb/macrotab.c | 3 +-
gdb/macrotab.h | 3 +-
gdb/main.c | 2 +-
gdb/main.h | 3 +-
gdb/maint.c | 2 +-
gdb/mdebugread.c | 4 +-
gdb/mdebugread.h | 3 +-
gdb/mem-break.c | 2 +-
gdb/memattr.c | 4 +-
gdb/memattr.h | 2 +-
gdb/memory-map.c | 3 +-
gdb/memory-map.h | 3 +-
gdb/mep-tdep.c | 4 +-
gdb/mi/mi-cmd-break.c | 2 +-
gdb/mi/mi-cmd-disas.c | 2 +-
gdb/mi/mi-cmd-env.c | 2 +-
gdb/mi/mi-cmd-file.c | 2 +-
gdb/mi/mi-cmd-stack.c | 2 +-
gdb/mi/mi-cmd-target.c | 2 +-
gdb/mi/mi-cmd-var.c | 2 +-
gdb/mi/mi-cmds.c | 2 +-
gdb/mi/mi-cmds.h | 2 +-
gdb/mi/mi-common.c | 3 +-
gdb/mi/mi-common.h | 3 +-
gdb/mi/mi-console.c | 2 +-
gdb/mi/mi-console.h | 3 +-
gdb/mi/mi-getopt.c | 2 +-
gdb/mi/mi-getopt.h | 3 +-
gdb/mi/mi-interp.c | 2 +-
gdb/mi/mi-main.c | 4 +-
gdb/mi/mi-main.h | 3 +-
gdb/mi/mi-out.c | 2 +-
gdb/mi/mi-out.h | 3 +-
gdb/mi/mi-parse.c | 2 +-
gdb/mi/mi-parse.h | 3 +-
gdb/mi/mi-symbol-cmds.c | 3 +-
gdb/microblaze-linux-tdep.c | 2 +-
gdb/microblaze-rom.c | 2 +-
gdb/microblaze-tdep.c | 2 +-
gdb/microblaze-tdep.h | 2 +-
gdb/mingw-hdep.c | 3 +-
gdb/minsyms.c | 3 +-
gdb/mips-irix-tdep.c | 3 +-
gdb/mips-linux-nat.c | 4 +-
gdb/mips-linux-tdep.c | 2 +-
gdb/mips-linux-tdep.h | 2 +-
gdb/mips-tdep.c | 2 +-
gdb/mips-tdep.h | 2 +-
gdb/mips64obsd-nat.c | 3 +-
gdb/mips64obsd-tdep.c | 3 +-
gdb/mipsnbsd-nat.c | 2 +-
gdb/mipsnbsd-tdep.c | 2 +-
gdb/mipsnbsd-tdep.h | 2 +-
gdb/mipsread.c | 2 +-
gdb/mn10300-linux-tdep.c | 2 +-
gdb/mn10300-tdep.c | 2 +-
gdb/mn10300-tdep.h | 2 +-
gdb/monitor.c | 2 +-
gdb/monitor.h | 2 +-
gdb/moxie-tdep.c | 2 +-
gdb/moxie-tdep.h | 2 +-
gdb/mt-tdep.c | 3 +-
gdb/nbsd-nat.c | 3 +-
gdb/nbsd-nat.h | 3 +-
gdb/nbsd-tdep.c | 2 +-
gdb/nbsd-tdep.h | 3 +-
gdb/nto-procfs.c | 2 +-
gdb/nto-tdep.c | 2 +-
gdb/nto-tdep.h | 3 +-
gdb/objc-exp.y | 2 +-
gdb/objc-lang.c | 2 +-
gdb/objc-lang.h | 2 +-
gdb/objfiles.c | 3 +-
gdb/objfiles.h | 3 +-
gdb/obsd-tdep.c | 3 +-
gdb/obsd-tdep.h | 3 +-
gdb/observer.c | 2 +-
gdb/observer.sh | 2 +-
gdb/opencl-lang.c | 2 +-
gdb/osabi.c | 2 +-
gdb/osabi.h | 2 +-
gdb/osdata.c | 2 +-
gdb/osdata.h | 2 +-
gdb/p-exp.y | 2 +-
gdb/p-lang.c | 2 +-
gdb/p-lang.h | 2 +-
gdb/p-typeprint.c | 2 +-
gdb/p-valprint.c | 2 +-
gdb/parse.c | 2 +-
gdb/parser-defs.h | 2 +-
gdb/posix-hdep.c | 3 +-
gdb/ppc-linux-nat.c | 3 +-
gdb/ppc-linux-tdep.c | 2 +-
gdb/ppc-linux-tdep.h | 2 +-
gdb/ppc-sysv-tdep.c | 2 +-
gdb/ppc-tdep.h | 4 +-
gdb/ppcbug-rom.c | 2 +-
gdb/ppcnbsd-nat.c | 2 +-
gdb/ppcnbsd-tdep.c | 2 +-
gdb/ppcnbsd-tdep.h | 2 +-
gdb/ppcobsd-nat.c | 2 +-
gdb/ppcobsd-tdep.c | 2 +-
gdb/ppcobsd-tdep.h | 2 +-
gdb/printcmd.c | 2 +-
gdb/proc-api.c | 2 +-
gdb/proc-events.c | 2 +-
gdb/proc-flags.c | 2 +-
gdb/proc-service.c | 2 +-
gdb/proc-service.list | 2 +-
gdb/proc-utils.h | 2 +-
gdb/proc-why.c | 2 +-
gdb/procfs.c | 4 +-
gdb/procfs.h | 2 +-
gdb/progspace.c | 2 +-
gdb/progspace.h | 2 +-
gdb/prologue-value.c | 2 +-
gdb/prologue-value.h | 2 +-
gdb/psympriv.h | 2 +-
gdb/psymtab.c | 2 +-
gdb/psymtab.h | 2 +-
gdb/python/lib/gdb/__init__.py | 2 +-
gdb/python/lib/gdb/command/__init__.py | 2 +-
gdb/python/lib/gdb/command/pretty_printers.py | 2 +-
gdb/python/lib/gdb/printing.py | 2 +-
gdb/python/lib/gdb/types.py | 2 +-
gdb/python/py-auto-load.c | 2 +-
gdb/python/py-block.c | 2 +-
gdb/python/py-breakpoint.c | 2 +-
gdb/python/py-cmd.c | 2 +-
gdb/python/py-frame.c | 2 +-
gdb/python/py-function.c | 2 +-
gdb/python/py-inferior.c | 2 +-
gdb/python/py-infthread.c | 2 +-
gdb/python/py-lazy-string.c | 2 +-
gdb/python/py-objfile.c | 2 +-
gdb/python/py-param.c | 2 +-
gdb/python/py-prettyprint.c | 2 +-
gdb/python/py-progspace.c | 2 +-
gdb/python/py-symbol.c | 2 +-
gdb/python/py-symtab.c | 2 +-
gdb/python/py-type.c | 2 +-
gdb/python/py-utils.c | 2 +-
gdb/python/py-value.c | 2 +-
gdb/python/python-internal.h | 2 +-
gdb/python/python.c | 2 +-
gdb/python/python.h | 2 +-
gdb/ravenscar-sparc-thread.c | 2 +-
gdb/ravenscar-thread.c | 2 +-
gdb/ravenscar-thread.h | 2 +-
gdb/record.c | 2 +-
gdb/record.h | 2 +-
gdb/regcache.c | 2 +-
gdb/regcache.h | 2 +-
gdb/regformats/regdat.sh | 3 +-
gdb/regformats/regdef.h | 3 +-
gdb/reggroups.c | 2 +-
gdb/reggroups.h | 3 +-
gdb/regset.c | 3 +-
gdb/regset.h | 2 +-
gdb/remote-fileio.c | 2 +-
gdb/remote-fileio.h | 3 +-
gdb/remote-m32r-sdi.c | 2 +-
gdb/remote-mips.c | 3 +-
gdb/remote-sim.c | 3 +-
gdb/remote.c | 2 +-
gdb/remote.h | 2 +-
gdb/reply_mig_hack.awk | 2 +-
gdb/reverse.c | 3 +-
gdb/rs6000-aix-tdep.c | 3 +-
gdb/rs6000-nat.c | 2 +-
gdb/rs6000-tdep.c | 2 +-
gdb/rs6000-tdep.h | 3 +-
gdb/rx-tdep.c | 2 +-
gdb/s390-tdep.c | 4 +-
gdb/s390-tdep.h | 3 +-
gdb/score-tdep.c | 3 +-
gdb/score-tdep.h | 3 +-
gdb/sentinel-frame.c | 2 +-
gdb/sentinel-frame.h | 3 +-
gdb/ser-base.c | 3 +-
gdb/ser-base.h | 3 +-
gdb/ser-go32.c | 2 +-
gdb/ser-mingw.c | 3 +-
gdb/ser-pipe.c | 2 +-
gdb/ser-tcp.c | 2 +-
gdb/ser-tcp.h | 3 +-
gdb/ser-unix.c | 2 +-
gdb/ser-unix.h | 2 +-
gdb/serial.c | 2 +-
gdb/serial.h | 2 +-
gdb/sh-linux-tdep.c | 3 +-
gdb/sh-tdep.c | 3 +-
gdb/sh-tdep.h | 2 +-
gdb/sh64-tdep.c | 3 +-
gdb/shnbsd-nat.c | 2 +-
gdb/shnbsd-tdep.c | 2 +-
gdb/sim-regno.h | 3 +-
gdb/sol-thread.c | 2 +-
gdb/sol2-tdep.c | 3 +-
gdb/sol2-tdep.h | 3 +-
gdb/solib-darwin.c | 2 +-
gdb/solib-darwin.h | 2 +-
gdb/solib-frv.c | 3 +-
gdb/solib-irix.c | 2 +-
gdb/solib-irix.h | 2 +-
gdb/solib-osf.c | 2 +-
gdb/solib-pa64.c | 3 +-
gdb/solib-pa64.h | 3 +-
gdb/solib-som.c | 2 +-
gdb/solib-som.h | 3 +-
gdb/solib-spu.c | 2 +-
gdb/solib-spu.h | 2 +-
gdb/solib-sunos.c | 2 +-
gdb/solib-svr4.c | 2 +-
gdb/solib-svr4.h | 2 +-
gdb/solib-target.c | 2 +-
gdb/solib-target.h | 2 +-
gdb/solib.c | 2 +-
gdb/solib.h | 2 +-
gdb/solist.h | 2 +-
gdb/somread.c | 2 +-
gdb/source.c | 2 +-
gdb/source.h | 3 +-
gdb/sparc-linux-nat.c | 2 +-
gdb/sparc-linux-tdep.c | 2 +-
gdb/sparc-nat.c | 2 +-
gdb/sparc-nat.h | 2 +-
gdb/sparc-sol2-nat.c | 2 +-
gdb/sparc-sol2-tdep.c | 2 +-
gdb/sparc-tdep.c | 2 +-
gdb/sparc-tdep.h | 2 +-
gdb/sparc64-linux-nat.c | 2 +-
gdb/sparc64-linux-tdep.c | 2 +-
gdb/sparc64-nat.c | 3 +-
gdb/sparc64-sol2-tdep.c | 2 +-
gdb/sparc64-tdep.c | 2 +-
gdb/sparc64-tdep.h | 2 +-
gdb/sparc64fbsd-nat.c | 2 +-
gdb/sparc64fbsd-tdep.c | 2 +-
gdb/sparc64nbsd-nat.c | 2 +-
gdb/sparc64nbsd-tdep.c | 2 +-
gdb/sparc64obsd-tdep.c | 2 +-
gdb/sparcnbsd-nat.c | 2 +-
gdb/sparcnbsd-tdep.c | 2 +-
gdb/sparcobsd-tdep.c | 2 +-
gdb/spu-linux-nat.c | 3 +-
gdb/spu-multiarch.c | 2 +-
gdb/spu-tdep.c | 3 +-
gdb/spu-tdep.h | 3 +-
gdb/srec.h | 2 +-
gdb/stabsread.c | 2 +-
gdb/stabsread.h | 2 +-
gdb/stack.c | 2 +-
gdb/stack.h | 3 +-
gdb/std-regs.c | 2 +-
gdb/symfile-mem.c | 2 +-
gdb/symfile.c | 4 +-
gdb/symfile.h | 2 +-
gdb/symmisc.c | 4 +-
gdb/symtab.c | 2 +-
gdb/symtab.h | 4 +-
gdb/syscalls/amd64-linux.xml | 2 +-
gdb/syscalls/bfin-linux.xml | 2 +-
gdb/syscalls/gdb-syscalls.dtd | 2 +-
gdb/syscalls/i386-linux.xml | 2 +-
gdb/syscalls/ppc-linux.xml | 2 +-
gdb/syscalls/ppc64-linux.xml | 2 +-
gdb/syscalls/sparc-linux.xml | 2 +-
gdb/syscalls/sparc64-linux.xml | 2 +-
gdb/target-descriptions.c | 3 +-
gdb/target-descriptions.h | 3 +-
gdb/target-memory.c | 3 +-
gdb/target.c | 2 +-
gdb/target.h | 2 +-
gdb/terminal.h | 2 +-
gdb/testsuite/ChangeLog | 9 +
gdb/testsuite/Makefile.in | 2 +-
gdb/testsuite/config/cfdbug.exp | 2 +-
gdb/testsuite/config/d10v.exp | 3 +-
gdb/testsuite/config/default.exp | 2 +-
gdb/testsuite/config/dve.exp | 3 +-
gdb/testsuite/config/gdbserver.exp | 2 +-
gdb/testsuite/config/i960.exp | 3 +-
gdb/testsuite/config/m32r.exp | 3 +-
gdb/testsuite/config/mips-idt.exp | 2 +-
gdb/testsuite/config/mips.exp | 2 +-
gdb/testsuite/config/mn10300-eval.exp | 3 +-
gdb/testsuite/config/monitor.exp | 2 +-
gdb/testsuite/config/proelf.exp | 3 +-
gdb/testsuite/config/rom68k.exp | 3 +-
gdb/testsuite/config/sh.exp | 3 +-
gdb/testsuite/config/sid.exp | 2 +-
gdb/testsuite/config/sim.exp | 2 +-
gdb/testsuite/config/slite.exp | 2 +-
gdb/testsuite/config/unix.exp | 4 +-
gdb/testsuite/config/vr4300.exp | 3 +-
gdb/testsuite/config/vr5000.exp | 3 +-
gdb/testsuite/config/vx.exp | 2 +-
gdb/testsuite/config/vxworks.exp | 3 +-
gdb/testsuite/config/vxworks29k.exp | 2 +-
gdb/testsuite/gdb.ada/array_bounds.exp | 2 +-
gdb/testsuite/gdb.ada/array_bounds/bar.adb | 2 +-
gdb/testsuite/gdb.ada/array_return.exp | 3 +-
gdb/testsuite/gdb.ada/array_return/p.adb | 3 +-
gdb/testsuite/gdb.ada/array_return/pck.adb | 3 +-
gdb/testsuite/gdb.ada/array_return/pck.ads | 3 +-
gdb/testsuite/gdb.ada/array_subscript_addr.exp | 2 +-
gdb/testsuite/gdb.ada/array_subscript_addr/p.adb | 2 +-
gdb/testsuite/gdb.ada/arrayidx.exp | 2 +-
gdb/testsuite/gdb.ada/arrayidx/p.adb | 3 +-
gdb/testsuite/gdb.ada/arrayparam.exp | 2 +-
gdb/testsuite/gdb.ada/arrayparam/foo.adb | 2 +-
gdb/testsuite/gdb.ada/arrayparam/pck.adb | 2 +-
gdb/testsuite/gdb.ada/arrayparam/pck.ads | 2 +-
gdb/testsuite/gdb.ada/arrayptr.exp | 2 +-
gdb/testsuite/gdb.ada/arrayptr/foo.adb | 2 +-
gdb/testsuite/gdb.ada/arrayptr/pck.adb | 2 +-
gdb/testsuite/gdb.ada/arrayptr/pck.ads | 2 +-
gdb/testsuite/gdb.ada/assign_1.exp | 2 +-
gdb/testsuite/gdb.ada/atomic_enum.exp | 2 +-
gdb/testsuite/gdb.ada/atomic_enum/foo.adb | 2 +-
gdb/testsuite/gdb.ada/atomic_enum/pck.adb | 2 +-
gdb/testsuite/gdb.ada/atomic_enum/pck.ads | 2 +-
gdb/testsuite/gdb.ada/boolean_expr.exp | 2 +-
gdb/testsuite/gdb.ada/call_pn.exp | 2 +-
gdb/testsuite/gdb.ada/call_pn/foo.adb | 2 +-
gdb/testsuite/gdb.ada/call_pn/pck.adb | 2 +-
gdb/testsuite/gdb.ada/call_pn/pck.ads | 2 +-
gdb/testsuite/gdb.ada/catch_ex.exp | 2 +-
gdb/testsuite/gdb.ada/catch_ex/foo.adb | 2 +-
gdb/testsuite/gdb.ada/char_param.exp | 2 +-
gdb/testsuite/gdb.ada/char_param/foo.adb | 2 +-
gdb/testsuite/gdb.ada/char_param/pck.adb | 2 +-
gdb/testsuite/gdb.ada/char_param/pck.ads | 2 +-
gdb/testsuite/gdb.ada/complete.exp | 2 +-
gdb/testsuite/gdb.ada/cond_lang.exp | 2 +-
gdb/testsuite/gdb.ada/cond_lang/a.adb | 2 +-
gdb/testsuite/gdb.ada/cond_lang/foo.c | 2 +-
gdb/testsuite/gdb.ada/cond_lang/mixed.adb | 2 +-
gdb/testsuite/gdb.ada/cond_lang/mixed.ads | 2 +-
gdb/testsuite/gdb.ada/cond_lang/pck.adb | 2 +-
gdb/testsuite/gdb.ada/cond_lang/pck.ads | 2 +-
gdb/testsuite/gdb.ada/dyn_loc.exp | 2 +-
gdb/testsuite/gdb.ada/dyn_loc/p.adb | 2 +-
gdb/testsuite/gdb.ada/dyn_loc/pack.adb | 2 +-
gdb/testsuite/gdb.ada/dyn_loc/pack.ads | 2 +-
gdb/testsuite/gdb.ada/exec_changed.exp | 2 +-
gdb/testsuite/gdb.ada/exec_changed/first.adb | 3 +-
gdb/testsuite/gdb.ada/exec_changed/second.adb | 3 +-
gdb/testsuite/gdb.ada/exprs.exp | 2 +-
gdb/testsuite/gdb.ada/exprs/p.adb | 2 +-
gdb/testsuite/gdb.ada/fixed_cmp.exp | 2 +-
gdb/testsuite/gdb.ada/fixed_cmp/fixed.adb | 2 +-
gdb/testsuite/gdb.ada/fixed_cmp/pck.adb | 2 +-
gdb/testsuite/gdb.ada/fixed_cmp/pck.ads | 2 +-
gdb/testsuite/gdb.ada/fixed_points.exp | 2 +-
.../gdb.ada/fixed_points/fixed_points.adb | 3 +-
gdb/testsuite/gdb.ada/formatted_ref.exp | 2 +-
gdb/testsuite/gdb.ada/formatted_ref/defs.adb | 2 +-
gdb/testsuite/gdb.ada/formatted_ref/defs.ads | 2 +-
.../gdb.ada/formatted_ref/formatted_ref.adb | 2 +-
gdb/testsuite/gdb.ada/frame_args.exp | 2 +-
gdb/testsuite/gdb.ada/frame_args/foo.adb | 2 +-
gdb/testsuite/gdb.ada/frame_args/pck.adb | 2 +-
gdb/testsuite/gdb.ada/frame_args/pck.ads | 2 +-
gdb/testsuite/gdb.ada/fun_addr.exp | 2 +-
gdb/testsuite/gdb.ada/fun_addr/foo.adb | 2 +-
gdb/testsuite/gdb.ada/fun_in_declare.exp | 2 +-
gdb/testsuite/gdb.ada/fun_in_declare/foo.adb | 2 +-
gdb/testsuite/gdb.ada/fun_in_declare/pck.adb | 2 +-
gdb/testsuite/gdb.ada/fun_in_declare/pck.ads | 2 +-
gdb/testsuite/gdb.ada/funcall_param.exp | 2 +-
gdb/testsuite/gdb.ada/funcall_param/foo.adb | 2 +-
gdb/testsuite/gdb.ada/funcall_param/pck.adb | 2 +-
gdb/testsuite/gdb.ada/funcall_param/pck.ads | 2 +-
gdb/testsuite/gdb.ada/gnat_ada.gpr | 3 +-
gdb/testsuite/gdb.ada/homonym.exp | 2 +-
gdb/testsuite/gdb.ada/homonym/homonym.adb | 2 +-
gdb/testsuite/gdb.ada/homonym/homonym.ads | 2 +-
gdb/testsuite/gdb.ada/homonym/homonym_main.adb | 2 +-
gdb/testsuite/gdb.ada/info_types.c | 2 +-
gdb/testsuite/gdb.ada/info_types.exp | 2 +-
gdb/testsuite/gdb.ada/int_deref.exp | 2 +-
gdb/testsuite/gdb.ada/int_deref/foo.adb | 2 +-
gdb/testsuite/gdb.ada/int_deref/pck.ads | 2 +-
gdb/testsuite/gdb.ada/interface.exp | 2 +-
gdb/testsuite/gdb.ada/interface/foo.adb | 2 +-
gdb/testsuite/gdb.ada/interface/types.adb | 2 +-
gdb/testsuite/gdb.ada/interface/types.ads | 2 +-
gdb/testsuite/gdb.ada/lang_switch.exp | 2 +-
gdb/testsuite/gdb.ada/lang_switch/foo.c | 2 +-
gdb/testsuite/gdb.ada/lang_switch/lang_switch.adb | 2 +-
gdb/testsuite/gdb.ada/mod_from_name.exp | 2 +-
gdb/testsuite/gdb.ada/mod_from_name/foo.adb | 2 +-
gdb/testsuite/gdb.ada/nested.exp | 2 +-
gdb/testsuite/gdb.ada/nested/hello.adb | 2 +-
gdb/testsuite/gdb.ada/null_array.exp | 2 +-
gdb/testsuite/gdb.ada/null_array/foo.adb | 2 +-
gdb/testsuite/gdb.ada/null_array/pck.adb | 2 +-
gdb/testsuite/gdb.ada/null_array/pck.ads | 2 +-
gdb/testsuite/gdb.ada/null_record.exp | 2 +-
gdb/testsuite/gdb.ada/null_record/bar.adb | 3 +-
gdb/testsuite/gdb.ada/null_record/bar.ads | 3 +-
gdb/testsuite/gdb.ada/null_record/null_record.adb | 3 +-
gdb/testsuite/gdb.ada/packed_array.exp | 2 +-
gdb/testsuite/gdb.ada/packed_array/pa.adb | 3 +-
gdb/testsuite/gdb.ada/packed_tagged.exp | 2 +-
gdb/testsuite/gdb.ada/packed_tagged/comp_bug.adb | 2 +-
gdb/testsuite/gdb.ada/print_chars.exp | 2 +-
gdb/testsuite/gdb.ada/print_chars/pck.adb | 2 +-
gdb/testsuite/gdb.ada/print_chars/pck.ads | 2 +-
gdb/testsuite/gdb.ada/print_pc.exp | 2 +-
gdb/testsuite/gdb.ada/ptype_arith_binop.exp | 2 +-
gdb/testsuite/gdb.ada/ptype_field.exp | 2 +-
gdb/testsuite/gdb.ada/ptype_field/foo.adb | 2 +-
gdb/testsuite/gdb.ada/ptype_field/pck.adb | 2 +-
gdb/testsuite/gdb.ada/ptype_field/pck.ads | 2 +-
gdb/testsuite/gdb.ada/ptype_tagged_param.exp | 2 +-
gdb/testsuite/gdb.ada/ptype_tagged_param/foo.adb | 2 +-
gdb/testsuite/gdb.ada/ptype_tagged_param/pck.adb | 2 +-
gdb/testsuite/gdb.ada/ptype_tagged_param/pck.ads | 2 +-
gdb/testsuite/gdb.ada/rec_return.exp | 2 +-
gdb/testsuite/gdb.ada/rec_return/foo.adb | 2 +-
gdb/testsuite/gdb.ada/rec_return/pck.adb | 2 +-
gdb/testsuite/gdb.ada/rec_return/pck.ads | 2 +-
gdb/testsuite/gdb.ada/ref_param.exp | 2 +-
gdb/testsuite/gdb.ada/ref_param/foo.adb | 2 +-
gdb/testsuite/gdb.ada/ref_param/pck.adb | 2 +-
gdb/testsuite/gdb.ada/ref_param/pck.ads | 2 +-
gdb/testsuite/gdb.ada/ref_tick_size.exp | 2 +-
gdb/testsuite/gdb.ada/ref_tick_size/p.adb | 2 +-
gdb/testsuite/gdb.ada/ref_tick_size/pck.adb | 2 +-
gdb/testsuite/gdb.ada/ref_tick_size/pck.ads | 2 +-
gdb/testsuite/gdb.ada/start.exp | 2 +-
gdb/testsuite/gdb.ada/start/dummy.adb | 3 +-
gdb/testsuite/gdb.ada/str_ref_cmp.exp | 2 +-
gdb/testsuite/gdb.ada/str_ref_cmp/foo.adb | 2 +-
gdb/testsuite/gdb.ada/str_ref_cmp/pck.ads | 2 +-
gdb/testsuite/gdb.ada/sym_print_name.exp | 2 +-
gdb/testsuite/gdb.ada/sym_print_name/foo.adb | 2 +-
gdb/testsuite/gdb.ada/sym_print_name/pck.adb | 2 +-
gdb/testsuite/gdb.ada/sym_print_name/pck.ads | 2 +-
gdb/testsuite/gdb.ada/taft_type.exp | 2 +-
gdb/testsuite/gdb.ada/taft_type/p.adb | 2 +-
gdb/testsuite/gdb.ada/taft_type/pck.adb | 2 +-
gdb/testsuite/gdb.ada/taft_type/pck.ads | 2 +-
gdb/testsuite/gdb.ada/tagged.exp | 2 +-
gdb/testsuite/gdb.ada/tagged/foo.adb | 2 +-
gdb/testsuite/gdb.ada/tagged/pck.adb | 2 +-
gdb/testsuite/gdb.ada/tagged/pck.ads | 2 +-
gdb/testsuite/gdb.ada/tasks.exp | 2 +-
gdb/testsuite/gdb.ada/tasks/foo.adb | 2 +-
gdb/testsuite/gdb.ada/tick_last_segv.exp | 2 +-
gdb/testsuite/gdb.ada/tick_last_segv/foo.adb | 2 +-
gdb/testsuite/gdb.ada/type_coercion.exp | 2 +-
gdb/testsuite/gdb.ada/type_coercion/assign.adb | 2 +-
gdb/testsuite/gdb.ada/type_coercion/ident.adb | 2 +-
gdb/testsuite/gdb.ada/uninitialized_vars.exp | 2 +-
gdb/testsuite/gdb.ada/uninitialized_vars/parse.adb | 2 +-
.../uninitialized_vars/parse_controlled.ads | 2 +-
.../gdb.ada/variant_record_packed_array.exp | 2 +-
.../gdb.ada/variant_record_packed_array/foo.adb | 2 +-
.../gdb.ada/variant_record_packed_array/pck.adb | 2 +-
.../gdb.ada/variant_record_packed_array/pck.ads | 2 +-
gdb/testsuite/gdb.ada/watch_arg.exp | 2 +-
gdb/testsuite/gdb.ada/watch_arg/watch.adb | 3 +-
gdb/testsuite/gdb.arch/alpha-step.c | 2 +-
gdb/testsuite/gdb.arch/alpha-step.exp | 2 +-
gdb/testsuite/gdb.arch/altivec-abi.exp | 2 +-
gdb/testsuite/gdb.arch/altivec-regs.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-byte.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-disp-step.S | 2 +-
gdb/testsuite/gdb.arch/amd64-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-dword.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-i386-address.S | 2 +-
gdb/testsuite/gdb.arch/amd64-i386-address.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-pseudo.c | 2 +-
gdb/testsuite/gdb.arch/amd64-word.exp | 2 +-
gdb/testsuite/gdb.arch/arm-disp-step.S | 2 +-
gdb/testsuite/gdb.arch/arm-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/e500-abi.exp | 2 +-
gdb/testsuite/gdb.arch/e500-prologue.c | 2 +-
gdb/testsuite/gdb.arch/e500-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/e500-regs.exp | 3 +-
gdb/testsuite/gdb.arch/gcore.c | 3 +-
gdb/testsuite/gdb.arch/gdb1291.exp | 2 +-
gdb/testsuite/gdb.arch/gdb1431.exp | 3 +-
gdb/testsuite/gdb.arch/gdb1558.c | 3 +-
gdb/testsuite/gdb.arch/gdb1558.exp | 2 +-
gdb/testsuite/gdb.arch/i386-avx.c | 2 +-
gdb/testsuite/gdb.arch/i386-avx.exp | 2 +-
gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 2 +-
gdb/testsuite/gdb.arch/i386-byte.exp | 2 +-
gdb/testsuite/gdb.arch/i386-cpuid.h | 2 +-
gdb/testsuite/gdb.arch/i386-disp-step.S | 2 +-
gdb/testsuite/gdb.arch/i386-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/i386-gnu-cfi-asm.S | 2 +-
gdb/testsuite/gdb.arch/i386-gnu-cfi.exp | 2 +-
gdb/testsuite/gdb.arch/i386-permbkpt.S | 2 +-
gdb/testsuite/gdb.arch/i386-permbkpt.exp | 2 +-
gdb/testsuite/gdb.arch/i386-prologue.c | 2 +-
gdb/testsuite/gdb.arch/i386-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/i386-pseudo.c | 2 +-
gdb/testsuite/gdb.arch/i386-signal.c | 2 +-
gdb/testsuite/gdb.arch/i386-signal.exp | 2 +-
gdb/testsuite/gdb.arch/i386-size-overlap.c | 2 +-
gdb/testsuite/gdb.arch/i386-size-overlap.exp | 2 +-
gdb/testsuite/gdb.arch/i386-size.c | 2 +-
gdb/testsuite/gdb.arch/i386-size.exp | 2 +-
gdb/testsuite/gdb.arch/i386-sse.c | 2 +-
gdb/testsuite/gdb.arch/i386-sse.exp | 3 +-
gdb/testsuite/gdb.arch/i386-unwind.c | 3 +-
gdb/testsuite/gdb.arch/i386-unwind.exp | 3 +-
gdb/testsuite/gdb.arch/i386-word.exp | 2 +-
gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.S | 2 +-
gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp | 2 +-
gdb/testsuite/gdb.arch/iwmmxt-regs.c | 2 +-
gdb/testsuite/gdb.arch/iwmmxt-regs.exp | 2 +-
gdb/testsuite/gdb.arch/pa-nullify.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-aix-prologue.c | 2 +-
gdb/testsuite/gdb.arch/powerpc-aix-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-d128-regs.c | 2 +-
gdb/testsuite/gdb.arch/powerpc-d128-regs.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-prologue.c | 2 +-
gdb/testsuite/gdb.arch/powerpc-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/ppc-dfp.c | 2 +-
gdb/testsuite/gdb.arch/ppc-dfp.exp | 2 +-
gdb/testsuite/gdb.arch/ppc-fp.c | 2 +-
gdb/testsuite/gdb.arch/ppc-fp.exp | 2 +-
gdb/testsuite/gdb.arch/ppc64-atomic-inst.c | 2 +-
gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp | 2 +-
gdb/testsuite/gdb.arch/spu-info.c | 2 +-
gdb/testsuite/gdb.arch/spu-info.exp | 2 +-
gdb/testsuite/gdb.arch/spu-ls.c | 2 +-
gdb/testsuite/gdb.arch/spu-ls.exp | 2 +-
gdb/testsuite/gdb.arch/system-gcore.exp | 3 +-
gdb/testsuite/gdb.arch/thumb-prologue.c | 2 +-
gdb/testsuite/gdb.arch/thumb-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/thumb2-it.S | 2 +-
gdb/testsuite/gdb.arch/thumb2-it.exp | 2 +-
gdb/testsuite/gdb.arch/vsx-regs.exp | 2 +-
gdb/testsuite/gdb.asm/asm-source.exp | 2 +-
gdb/testsuite/gdb.base/a2-run.exp | 2 +-
gdb/testsuite/gdb.base/advance.exp | 2 +-
gdb/testsuite/gdb.base/all-bin.exp | 3 +-
gdb/testsuite/gdb.base/annota1.exp | 2 +-
gdb/testsuite/gdb.base/annota3.exp | 2 +-
gdb/testsuite/gdb.base/anon.exp | 2 +-
gdb/testsuite/gdb.base/args.exp | 2 +-
gdb/testsuite/gdb.base/arithmet.exp | 2 +-
gdb/testsuite/gdb.base/arrayidx.c | 2 +-
gdb/testsuite/gdb.base/arrayidx.exp | 2 +-
gdb/testsuite/gdb.base/assign.exp | 3 +-
gdb/testsuite/gdb.base/async.exp | 3 +-
gdb/testsuite/gdb.base/attach-pie-misread.c | 2 +-
gdb/testsuite/gdb.base/attach-pie-misread.exp | 2 +-
gdb/testsuite/gdb.base/attach.exp | 2 +-
gdb/testsuite/gdb.base/auxv.c | 4 +-
gdb/testsuite/gdb.base/bang.exp | 3 +-
gdb/testsuite/gdb.base/bfp-test.c | 2 +-
gdb/testsuite/gdb.base/bfp-test.exp | 2 +-
gdb/testsuite/gdb.base/bigcore.c | 2 +-
gdb/testsuite/gdb.base/bigcore.exp | 2 +-
gdb/testsuite/gdb.base/bitfields.exp | 2 +-
gdb/testsuite/gdb.base/bitfields2.exp | 2 +-
gdb/testsuite/gdb.base/bitops.exp | 3 +-
gdb/testsuite/gdb.base/break-always.c | 2 +-
gdb/testsuite/gdb.base/break-always.exp | 2 +-
gdb/testsuite/gdb.base/break-entry.exp | 2 +-
gdb/testsuite/gdb.base/break-interp-lib.c | 2 +-
gdb/testsuite/gdb.base/break-interp-main.c | 2 +-
gdb/testsuite/gdb.base/break-interp.exp | 2 +-
gdb/testsuite/gdb.base/break.c | 4 +-
gdb/testsuite/gdb.base/break.exp | 3 +-
gdb/testsuite/gdb.base/break1.c | 4 +-
gdb/testsuite/gdb.base/breakpoint-shadow.c | 2 +-
gdb/testsuite/gdb.base/breakpoint-shadow.exp | 2 +-
gdb/testsuite/gdb.base/call-ar-st.exp | 2 +-
gdb/testsuite/gdb.base/call-rt-st.exp | 4 +-
gdb/testsuite/gdb.base/call-sc.c | 2 +-
gdb/testsuite/gdb.base/call-sc.exp | 2 +-
gdb/testsuite/gdb.base/call-signal-resume.exp | 2 +-
gdb/testsuite/gdb.base/call-signals.c | 2 +-
gdb/testsuite/gdb.base/call-strs.exp | 2 +-
gdb/testsuite/gdb.base/callexit.c | 2 +-
gdb/testsuite/gdb.base/callexit.exp | 2 +-
gdb/testsuite/gdb.base/callfuncs.c | 2 +-
gdb/testsuite/gdb.base/callfuncs.exp | 2 +-
gdb/testsuite/gdb.base/catch-syscall.exp | 3 +-
gdb/testsuite/gdb.base/charset-malloc.c | 2 +-
gdb/testsuite/gdb.base/charset.c | 3 +-
gdb/testsuite/gdb.base/charset.exp | 3 +-
gdb/testsuite/gdb.base/checkpoint.c | 3 +-
gdb/testsuite/gdb.base/checkpoint.exp | 3 +-
gdb/testsuite/gdb.base/chng-syms.exp | 2 +-
gdb/testsuite/gdb.base/code-expr.exp | 3 +-
gdb/testsuite/gdb.base/code_elim.exp | 2 +-
gdb/testsuite/gdb.base/code_elim1.c | 3 +-
gdb/testsuite/gdb.base/code_elim2.c | 3 +-
gdb/testsuite/gdb.base/commands.exp | 2 +-
gdb/testsuite/gdb.base/completion.exp | 2 +-
gdb/testsuite/gdb.base/complex.c | 2 +-
gdb/testsuite/gdb.base/complex.exp | 2 +-
gdb/testsuite/gdb.base/cond-expr.exp | 3 +-
gdb/testsuite/gdb.base/condbreak.exp | 2 +-
gdb/testsuite/gdb.base/consecutive.exp | 3 +-
gdb/testsuite/gdb.base/constvars.exp | 2 +-
gdb/testsuite/gdb.base/corefile.exp | 2 +-
gdb/testsuite/gdb.base/coremaker.c | 2 +-
gdb/testsuite/gdb.base/coremaker2.c | 2 +-
gdb/testsuite/gdb.base/cursal.c | 2 +-
gdb/testsuite/gdb.base/cursal.exp | 2 +-
gdb/testsuite/gdb.base/cvexpr.c | 2 +-
gdb/testsuite/gdb.base/cvexpr.exp | 3 +-
gdb/testsuite/gdb.base/dbx.exp | 2 +-
gdb/testsuite/gdb.base/default.exp | 2 +-
gdb/testsuite/gdb.base/define.exp | 2 +-
gdb/testsuite/gdb.base/del.c | 2 +-
gdb/testsuite/gdb.base/del.exp | 2 +-
gdb/testsuite/gdb.base/detach.exp | 3 +-
gdb/testsuite/gdb.base/dfp-exprs.exp | 2 +-
gdb/testsuite/gdb.base/dfp-test.c | 2 +-
gdb/testsuite/gdb.base/dfp-test.exp | 2 +-
gdb/testsuite/gdb.base/display.exp | 2 +-
gdb/testsuite/gdb.base/dump.exp | 3 +-
gdb/testsuite/gdb.base/dup-sect.S | 2 +-
gdb/testsuite/gdb.base/dup-sect.exp | 2 +-
gdb/testsuite/gdb.base/echo.exp | 2 +-
gdb/testsuite/gdb.base/ena-dis-br.exp | 2 +-
gdb/testsuite/gdb.base/ending-run.exp | 2 +-
gdb/testsuite/gdb.base/environ.exp | 2 +-
gdb/testsuite/gdb.base/eval-skip.exp | 3 +-
gdb/testsuite/gdb.base/eval.exp | 2 +-
gdb/testsuite/gdb.base/exe-lock.exp | 2 +-
gdb/testsuite/gdb.base/expand-psymtabs.c | 2 +-
gdb/testsuite/gdb.base/expand-psymtabs.exp | 2 +-
gdb/testsuite/gdb.base/exprs.exp | 2 +-
gdb/testsuite/gdb.base/fileio.exp | 2 +-
gdb/testsuite/gdb.base/find.c | 2 +-
gdb/testsuite/gdb.base/find.exp | 2 +-
gdb/testsuite/gdb.base/finish.exp | 3 +-
gdb/testsuite/gdb.base/fixsection.c | 2 +-
gdb/testsuite/gdb.base/fixsection.exp | 2 +-
gdb/testsuite/gdb.base/float.exp | 2 +-
gdb/testsuite/gdb.base/foll-exec.exp | 2 +-
gdb/testsuite/gdb.base/foll-fork.exp | 2 +-
gdb/testsuite/gdb.base/foll-vfork.exp | 2 +-
gdb/testsuite/gdb.base/frame-args.c | 2 +-
gdb/testsuite/gdb.base/frame-args.exp | 2 +-
gdb/testsuite/gdb.base/freebpcmd.c | 3 +-
gdb/testsuite/gdb.base/freebpcmd.exp | 3 +-
gdb/testsuite/gdb.base/fullname.c | 2 +-
gdb/testsuite/gdb.base/fullname.exp | 2 +-
gdb/testsuite/gdb.base/funcargs.exp | 2 +-
gdb/testsuite/gdb.base/gcore-buffer-overflow.c | 2 +-
gdb/testsuite/gdb.base/gcore-buffer-overflow.exp | 2 +-
gdb/testsuite/gdb.base/gcore.c | 3 +-
gdb/testsuite/gdb.base/gcore.exp | 2 +-
gdb/testsuite/gdb.base/gdb1056.exp | 2 +-
gdb/testsuite/gdb.base/gdb1090.c | 2 +-
gdb/testsuite/gdb.base/gdb1090.exp | 2 +-
gdb/testsuite/gdb.base/gdb11530.c | 2 +-
gdb/testsuite/gdb.base/gdb11530.exp | 2 +-
gdb/testsuite/gdb.base/gdb11531.c | 2 +-
gdb/testsuite/gdb.base/gdb11531.exp | 2 +-
gdb/testsuite/gdb.base/gdb1250.c | 2 +-
gdb/testsuite/gdb.base/gdb1250.exp | 2 +-
gdb/testsuite/gdb.base/gdb1555.exp | 2 +-
gdb/testsuite/gdb.base/gdb1821.exp | 2 +-
gdb/testsuite/gdb.base/gdbvars.exp | 2 +-
gdb/testsuite/gdb.base/gnu_vector.c | 2 +-
gdb/testsuite/gdb.base/gnu_vector.exp | 2 +-
gdb/testsuite/gdb.base/hashline1.exp | 2 +-
gdb/testsuite/gdb.base/hashline2.exp | 2 +-
gdb/testsuite/gdb.base/hashline3.exp | 2 +-
gdb/testsuite/gdb.base/hbreak.c | 2 +-
gdb/testsuite/gdb.base/hbreak.exp | 2 +-
gdb/testsuite/gdb.base/help.exp | 2 +-
gdb/testsuite/gdb.base/hook-stop-continue.c | 2 +-
gdb/testsuite/gdb.base/hook-stop-continue.exp | 2 +-
gdb/testsuite/gdb.base/hook-stop-frame.c | 2 +-
gdb/testsuite/gdb.base/hook-stop-frame.exp | 2 +-
gdb/testsuite/gdb.base/huge.exp | 3 +-
gdb/testsuite/gdb.base/ifelse.exp | 2 +-
gdb/testsuite/gdb.base/included.c | 2 +-
gdb/testsuite/gdb.base/included.exp | 2 +-
gdb/testsuite/gdb.base/included.h | 2 +-
gdb/testsuite/gdb.base/infnan.c | 2 +-
gdb/testsuite/gdb.base/infnan.exp | 2 +-
gdb/testsuite/gdb.base/info-proc.exp | 2 +-
gdb/testsuite/gdb.base/info-target.exp | 2 +-
gdb/testsuite/gdb.base/interp.exp | 3 +-
gdb/testsuite/gdb.base/interrupt.exp | 4 +-
gdb/testsuite/gdb.base/jump.exp | 2 +-
gdb/testsuite/gdb.base/label.exp | 2 +-
gdb/testsuite/gdb.base/langs.exp | 2 +-
gdb/testsuite/gdb.base/lineinc.exp | 2 +-
gdb/testsuite/gdb.base/list.exp | 2 +-
gdb/testsuite/gdb.base/logical.exp | 2 +-
gdb/testsuite/gdb.base/long_long.exp | 2 +-
gdb/testsuite/gdb.base/longjmp.c | 2 +-
gdb/testsuite/gdb.base/longjmp.exp | 2 +-
gdb/testsuite/gdb.base/macscp.exp | 2 +-
gdb/testsuite/gdb.base/maint.exp | 2 +-
gdb/testsuite/gdb.base/mips_pro.exp | 2 +-
gdb/testsuite/gdb.base/miscexprs.exp | 2 +-
gdb/testsuite/gdb.base/morestack.c | 105 +
.../{step-resume-infcall.exp => morestack.exp} | 42 +-
gdb/testsuite/gdb.base/moribund-step.exp | 2 +-
gdb/testsuite/gdb.base/multi-forks.c | 3 +-
gdb/testsuite/gdb.base/multi-forks.exp | 2 +-
gdb/testsuite/gdb.base/nodebug.exp | 2 +-
gdb/testsuite/gdb.base/nofield.c | 2 +-
gdb/testsuite/gdb.base/nofield.exp | 2 +-
gdb/testsuite/gdb.base/nostdlib.c | 2 +-
gdb/testsuite/gdb.base/nostdlib.exp | 2 +-
gdb/testsuite/gdb.base/opaque.exp | 4 +-
gdb/testsuite/gdb.base/overlays.exp | 2 +-
gdb/testsuite/gdb.base/page.exp | 2 +-
gdb/testsuite/gdb.base/pc-fp.exp | 2 +-
gdb/testsuite/gdb.base/pending.c | 2 +-
gdb/testsuite/gdb.base/pending.exp | 2 +-
gdb/testsuite/gdb.base/pendshr.c | 2 +-
gdb/testsuite/gdb.base/permissions.exp | 2 +-
gdb/testsuite/gdb.base/pie-execl.c | 2 +-
gdb/testsuite/gdb.base/pie-execl.exp | 2 +-
gdb/testsuite/gdb.base/pointers.exp | 2 +-
gdb/testsuite/gdb.base/pr10179.exp | 2 +-
gdb/testsuite/gdb.base/pr11022.c | 2 +-
gdb/testsuite/gdb.base/pr11022.exp | 2 +-
gdb/testsuite/gdb.base/prelink-lib.c | 2 +-
gdb/testsuite/gdb.base/prelink.c | 2 +-
gdb/testsuite/gdb.base/prelink.exp | 2 +-
gdb/testsuite/gdb.base/printcmds.exp | 2 +-
gdb/testsuite/gdb.base/prologue.c | 2 +-
gdb/testsuite/gdb.base/prologue.exp | 2 +-
gdb/testsuite/gdb.base/psymtab.exp | 2 +-
gdb/testsuite/gdb.base/ptr-typedef.c | 2 +-
gdb/testsuite/gdb.base/ptr-typedef.exp | 2 +-
gdb/testsuite/gdb.base/ptype.exp | 2 +-
gdb/testsuite/gdb.base/radix.exp | 2 +-
gdb/testsuite/gdb.base/randomize.c | 2 +-
gdb/testsuite/gdb.base/randomize.exp | 2 +-
gdb/testsuite/gdb.base/readline.exp | 3 +-
gdb/testsuite/gdb.base/recurse.exp | 4 +-
gdb/testsuite/gdb.base/regs.exp | 2 +-
gdb/testsuite/gdb.base/relational.exp | 3 +-
gdb/testsuite/gdb.base/relativedebug.c | 2 +-
gdb/testsuite/gdb.base/relativedebug.exp | 2 +-
gdb/testsuite/gdb.base/relocate.c | 2 +-
gdb/testsuite/gdb.base/relocate.exp | 2 +-
gdb/testsuite/gdb.base/remote.exp | 2 +-
gdb/testsuite/gdb.base/remotetimeout.exp | 2 +-
gdb/testsuite/gdb.base/reread.exp | 2 +-
gdb/testsuite/gdb.base/restore.exp | 2 +-
gdb/testsuite/gdb.base/return-nodebug.c | 2 +-
gdb/testsuite/gdb.base/return-nodebug.exp | 2 +-
gdb/testsuite/gdb.base/return-nodebug1.c | 2 +-
gdb/testsuite/gdb.base/return.exp | 2 +-
gdb/testsuite/gdb.base/return2.exp | 2 +-
gdb/testsuite/gdb.base/savedregs.c | 2 +-
gdb/testsuite/gdb.base/savedregs.exp | 2 +-
gdb/testsuite/gdb.base/scope.exp | 2 +-
gdb/testsuite/gdb.base/sect-cmd.exp | 2 +-
gdb/testsuite/gdb.base/sep-proc.c | 2 +-
gdb/testsuite/gdb.base/sep.c | 2 +-
gdb/testsuite/gdb.base/sep.exp | 2 +-
gdb/testsuite/gdb.base/sepdebug.c | 2 +-
gdb/testsuite/gdb.base/sepdebug.exp | 2 +-
gdb/testsuite/gdb.base/sepdebug2.c | 2 +-
gdb/testsuite/gdb.base/sepsymtab.c | 2 +-
gdb/testsuite/gdb.base/sepsymtab.exp | 2 +-
gdb/testsuite/gdb.base/set-lang-auto.exp | 2 +-
gdb/testsuite/gdb.base/setshow.exp | 4 +-
gdb/testsuite/gdb.base/setvar.exp | 2 +-
gdb/testsuite/gdb.base/shlib-call.exp | 2 +-
gdb/testsuite/gdb.base/shreloc.exp | 2 +-
gdb/testsuite/gdb.base/sigall.exp | 2 +-
gdb/testsuite/gdb.base/sigaltstack.c | 2 +-
gdb/testsuite/gdb.base/sigaltstack.exp | 2 +-
gdb/testsuite/gdb.base/sigbpt.c | 2 +-
gdb/testsuite/gdb.base/sigbpt.exp | 3 +-
gdb/testsuite/gdb.base/sigchld.c | 2 +-
gdb/testsuite/gdb.base/sigchld.exp | 2 +-
gdb/testsuite/gdb.base/siginfo-addr.c | 2 +-
gdb/testsuite/gdb.base/siginfo-addr.exp | 2 +-
gdb/testsuite/gdb.base/siginfo-infcall.c | 2 +-
gdb/testsuite/gdb.base/siginfo-infcall.exp | 2 +-
gdb/testsuite/gdb.base/siginfo-obj.c | 2 +-
gdb/testsuite/gdb.base/siginfo-obj.exp | 2 +-
gdb/testsuite/gdb.base/siginfo.c | 2 +-
gdb/testsuite/gdb.base/siginfo.exp | 2 +-
gdb/testsuite/gdb.base/signals.exp | 2 +-
gdb/testsuite/gdb.base/signull.c | 2 +-
gdb/testsuite/gdb.base/signull.exp | 3 +-
gdb/testsuite/gdb.base/sigrepeat.c | 3 +-
gdb/testsuite/gdb.base/sigrepeat.exp | 3 +-
gdb/testsuite/gdb.base/sigstep.c | 2 +-
gdb/testsuite/gdb.base/sigstep.exp | 2 +-
gdb/testsuite/gdb.base/sizeof.exp | 2 +-
gdb/testsuite/gdb.base/so-disc-shr.c | 2 +-
gdb/testsuite/gdb.base/so-impl-ld.exp | 4 +-
gdb/testsuite/gdb.base/so-indr-cl.exp | 2 +-
gdb/testsuite/gdb.base/solib-corrupted.exp | 2 +-
gdb/testsuite/gdb.base/solib-disc.c | 2 +-
gdb/testsuite/gdb.base/solib-disc.exp | 2 +-
gdb/testsuite/gdb.base/solib-display-lib.c | 2 +-
gdb/testsuite/gdb.base/solib-display-main.c | 2 +-
gdb/testsuite/gdb.base/solib-display.exp | 2 +-
gdb/testsuite/gdb.base/solib-nodir.exp | 2 +-
gdb/testsuite/gdb.base/solib-overlap-lib.c | 2 +-
gdb/testsuite/gdb.base/solib-overlap-main.c | 2 +-
gdb/testsuite/gdb.base/solib-overlap.exp | 2 +-
gdb/testsuite/gdb.base/solib-symbol-lib.c | 2 +-
gdb/testsuite/gdb.base/solib-symbol-main.c | 2 +-
gdb/testsuite/gdb.base/solib-symbol.exp | 2 +-
gdb/testsuite/gdb.base/solib-weak.c | 2 +-
gdb/testsuite/gdb.base/solib-weak.exp | 3 +-
gdb/testsuite/gdb.base/solib.exp | 2 +-
gdb/testsuite/gdb.base/source-error.gdb | 2 +-
gdb/testsuite/gdb.base/source-test.gdb | 2 +-
gdb/testsuite/gdb.base/source.exp | 2 +-
gdb/testsuite/gdb.base/stack-checking.c | 2 +-
gdb/testsuite/gdb.base/stack-checking.exp | 2 +-
gdb/testsuite/gdb.base/start.c | 2 +-
gdb/testsuite/gdb.base/start.exp | 2 +-
gdb/testsuite/gdb.base/step-break.c | 2 +-
gdb/testsuite/gdb.base/step-break.exp | 2 +-
gdb/testsuite/gdb.base/step-bt.c | 2 +-
gdb/testsuite/gdb.base/step-bt.exp | 2 +-
gdb/testsuite/gdb.base/step-line.exp | 3 +-
gdb/testsuite/gdb.base/step-resume-infcall.c | 2 +-
gdb/testsuite/gdb.base/step-resume-infcall.exp | 2 +-
gdb/testsuite/gdb.base/step-test.exp | 2 +-
gdb/testsuite/gdb.base/store.exp | 2 +-
gdb/testsuite/gdb.base/structs.c | 2 +-
gdb/testsuite/gdb.base/structs.exp | 2 +-
gdb/testsuite/gdb.base/structs2.exp | 3 +-
gdb/testsuite/gdb.base/structs3.c | 2 +-
gdb/testsuite/gdb.base/structs3.exp | 2 +-
gdb/testsuite/gdb.base/subst.exp | 2 +-
.../gdb.base/symbol-without-target_section.c | 2 +-
.../gdb.base/symbol-without-target_section.exp | 2 +-
gdb/testsuite/gdb.base/term.exp | 2 +-
gdb/testsuite/gdb.base/trace-commands.exp | 2 +-
gdb/testsuite/gdb.base/tui-layout.exp | 2 +-
gdb/testsuite/gdb.base/twice.exp | 2 +-
gdb/testsuite/gdb.base/type-opaque.exp | 2 +-
gdb/testsuite/gdb.base/ui-redirect.exp | 2 +-
gdb/testsuite/gdb.base/unload.c | 2 +-
gdb/testsuite/gdb.base/unload.exp | 2 +-
gdb/testsuite/gdb.base/unloadshr.c | 2 +-
gdb/testsuite/gdb.base/unloadshr2.c | 2 +-
gdb/testsuite/gdb.base/until.exp | 2 +-
gdb/testsuite/gdb.base/unwindonsignal.c | 2 +-
gdb/testsuite/gdb.base/unwindonsignal.exp | 2 +-
gdb/testsuite/gdb.base/valgrind-db-attach.c | 2 +-
gdb/testsuite/gdb.base/valgrind-db-attach.exp | 2 +-
gdb/testsuite/gdb.base/value-double-free.c | 2 +-
gdb/testsuite/gdb.base/value-double-free.exp | 2 +-
gdb/testsuite/gdb.base/varargs.exp | 2 +-
gdb/testsuite/gdb.base/volatile.exp | 2 +-
gdb/testsuite/gdb.base/watch-cond-infcall.c | 2 +-
gdb/testsuite/gdb.base/watch-cond-infcall.exp | 2 +-
gdb/testsuite/gdb.base/watch-cond.c | 2 +-
gdb/testsuite/gdb.base/watch-cond.exp | 2 +-
gdb/testsuite/gdb.base/watch-non-mem.c | 2 +-
gdb/testsuite/gdb.base/watch-non-mem.exp | 2 +-
gdb/testsuite/gdb.base/watch-read.c | 2 +-
gdb/testsuite/gdb.base/watch-read.exp | 2 +-
gdb/testsuite/gdb.base/watch-vfork.c | 2 +-
gdb/testsuite/gdb.base/watch-vfork.exp | 2 +-
gdb/testsuite/gdb.base/watch_thread_num.c | 2 +-
gdb/testsuite/gdb.base/watch_thread_num.exp | 2 +-
.../gdb.base/watchpoint-cond-gone-stripped.c | 2 +-
gdb/testsuite/gdb.base/watchpoint-cond-gone.c | 2 +-
gdb/testsuite/gdb.base/watchpoint-cond-gone.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint-hw-hit-once.c | 2 +-
gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint-hw.c | 2 +-
gdb/testsuite/gdb.base/watchpoint-hw.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint-solib-shr.c | 2 +-
gdb/testsuite/gdb.base/watchpoint-solib.c | 2 +-
gdb/testsuite/gdb.base/watchpoint-solib.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint.exp | 2 +-
gdb/testsuite/gdb.base/watchpoints.c | 2 +-
gdb/testsuite/gdb.base/watchpoints.exp | 2 +-
gdb/testsuite/gdb.base/weaklib1.c | 2 +-
gdb/testsuite/gdb.base/weaklib2.c | 2 +-
gdb/testsuite/gdb.base/whatis-exp.exp | 3 +-
gdb/testsuite/gdb.base/whatis.c | 2 +-
gdb/testsuite/gdb.base/whatis.exp | 2 +-
gdb/testsuite/gdb.cell/arch.exp | 2 +-
gdb/testsuite/gdb.cell/break-spu.c | 2 +-
gdb/testsuite/gdb.cell/break.c | 2 +-
gdb/testsuite/gdb.cell/break.exp | 2 +-
gdb/testsuite/gdb.cell/bt-spu.c | 2 +-
gdb/testsuite/gdb.cell/bt.c | 2 +-
gdb/testsuite/gdb.cell/bt.exp | 2 +-
gdb/testsuite/gdb.cell/bt2-spu.c | 2 +-
gdb/testsuite/gdb.cell/core.exp | 2 +-
gdb/testsuite/gdb.cell/coremaker-spu.c | 2 +-
gdb/testsuite/gdb.cell/coremaker.c | 2 +-
gdb/testsuite/gdb.cell/data-spu.c | 2 +-
gdb/testsuite/gdb.cell/data.c | 2 +-
gdb/testsuite/gdb.cell/data.exp | 2 +-
gdb/testsuite/gdb.cell/dwarfaddr.S | 2 +-
gdb/testsuite/gdb.cell/dwarfaddr.exp | 2 +-
gdb/testsuite/gdb.cell/ea-cache-spu.c | 2 +-
gdb/testsuite/gdb.cell/ea-cache.c | 2 +-
gdb/testsuite/gdb.cell/ea-cache.exp | 2 +-
gdb/testsuite/gdb.cell/ea-standalone.c | 2 +-
gdb/testsuite/gdb.cell/ea-standalone.exp | 2 +-
gdb/testsuite/gdb.cell/ea-test.c | 2 +-
gdb/testsuite/gdb.cell/ea-test.exp | 2 +-
gdb/testsuite/gdb.cell/f-regs.exp | 2 +-
gdb/testsuite/gdb.cell/fork-spu.c | 2 +-
gdb/testsuite/gdb.cell/fork.c | 2 +-
gdb/testsuite/gdb.cell/fork.exp | 2 +-
gdb/testsuite/gdb.cell/gcore.exp | 2 +-
gdb/testsuite/gdb.cell/mem-access-spu.c | 2 +-
gdb/testsuite/gdb.cell/mem-access.c | 2 +-
gdb/testsuite/gdb.cell/mem-access.exp | 2 +-
gdb/testsuite/gdb.cell/ptype.exp | 2 +-
gdb/testsuite/gdb.cell/registers.exp | 2 +-
gdb/testsuite/gdb.cell/size-spu.c | 2 +-
gdb/testsuite/gdb.cell/size.c | 2 +-
gdb/testsuite/gdb.cell/sizeof.exp | 2 +-
gdb/testsuite/gdb.cell/solib-symbol.exp | 2 +-
gdb/testsuite/gdb.cell/solib.exp | 2 +-
gdb/testsuite/gdb.cp/abstract-origin.cc | 2 +-
gdb/testsuite/gdb.cp/abstract-origin.exp | 2 +-
gdb/testsuite/gdb.cp/ambiguous.exp | 2 +-
gdb/testsuite/gdb.cp/annota2.exp | 2 +-
gdb/testsuite/gdb.cp/annota3.exp | 3 +-
gdb/testsuite/gdb.cp/anon-union.exp | 2 +-
gdb/testsuite/gdb.cp/arg-reference.cc | 2 +-
gdb/testsuite/gdb.cp/arg-reference.exp | 2 +-
gdb/testsuite/gdb.cp/bool.cc | 3 +-
gdb/testsuite/gdb.cp/bool.exp | 3 +-
gdb/testsuite/gdb.cp/breakpoint.cc | 2 +-
gdb/testsuite/gdb.cp/breakpoint.exp | 2 +-
gdb/testsuite/gdb.cp/bs15503.cc | 3 +-
gdb/testsuite/gdb.cp/bs15503.exp | 2 +-
gdb/testsuite/gdb.cp/call-c-1.c | 2 +-
gdb/testsuite/gdb.cp/call-c.cc | 2 +-
gdb/testsuite/gdb.cp/call-c.exp | 2 +-
gdb/testsuite/gdb.cp/casts.exp | 2 +-
gdb/testsuite/gdb.cp/class2.cc | 3 +-
gdb/testsuite/gdb.cp/class2.exp | 3 +-
gdb/testsuite/gdb.cp/classes.cc | 2 +-
gdb/testsuite/gdb.cp/classes.exp | 2 +-
gdb/testsuite/gdb.cp/converts.exp | 2 +-
gdb/testsuite/gdb.cp/cp-relocate.cc | 2 +-
gdb/testsuite/gdb.cp/cp-relocate.exp | 2 +-
gdb/testsuite/gdb.cp/cpcompletion.exp | 2 +-
gdb/testsuite/gdb.cp/cpexprs.cc | 2 +-
gdb/testsuite/gdb.cp/cpexprs.exp | 2 +-
gdb/testsuite/gdb.cp/cplusfuncs.exp | 4 +-
gdb/testsuite/gdb.cp/ctti.exp | 2 +-
gdb/testsuite/gdb.cp/cttiadd.cc | 2 +-
gdb/testsuite/gdb.cp/cttiadd1.cc | 2 +-
gdb/testsuite/gdb.cp/cttiadd2.cc | 2 +-
gdb/testsuite/gdb.cp/cttiadd3.cc | 2 +-
gdb/testsuite/gdb.cp/demangle.exp | 2 +-
gdb/testsuite/gdb.cp/derivation.exp | 4 +-
gdb/testsuite/gdb.cp/exception.cc | 2 +-
gdb/testsuite/gdb.cp/exception.exp | 2 +-
gdb/testsuite/gdb.cp/expand-sals.cc | 2 +-
gdb/testsuite/gdb.cp/expand-sals.exp | 2 +-
gdb/testsuite/gdb.cp/extern-c.cc | 2 +-
gdb/testsuite/gdb.cp/extern-c.exp | 2 +-
gdb/testsuite/gdb.cp/formatted-ref.cc | 2 +-
gdb/testsuite/gdb.cp/formatted-ref.exp | 2 +-
gdb/testsuite/gdb.cp/fpointer.exp | 2 +-
gdb/testsuite/gdb.cp/gdb1355.exp | 2 +-
gdb/testsuite/gdb.cp/gdb2384-base.cc | 2 +-
gdb/testsuite/gdb.cp/gdb2384-base.h | 2 +-
gdb/testsuite/gdb.cp/gdb2384.cc | 2 +-
gdb/testsuite/gdb.cp/gdb2384.exp | 2 +-
gdb/testsuite/gdb.cp/gdb2495.cc | 2 +-
gdb/testsuite/gdb.cp/gdb2495.exp | 2 +-
gdb/testsuite/gdb.cp/hang.exp | 2 +-
gdb/testsuite/gdb.cp/infcall-dlopen-lib.cc | 2 +-
gdb/testsuite/gdb.cp/infcall-dlopen.cc | 2 +-
gdb/testsuite/gdb.cp/infcall-dlopen.exp | 2 +-
gdb/testsuite/gdb.cp/inherit.exp | 2 +-
gdb/testsuite/gdb.cp/koenig.exp | 2 +-
gdb/testsuite/gdb.cp/local.exp | 4 +-
gdb/testsuite/gdb.cp/m-data.exp | 2 +-
gdb/testsuite/gdb.cp/m-static.exp | 3 +-
gdb/testsuite/gdb.cp/mb-ctor.exp | 2 +-
gdb/testsuite/gdb.cp/mb-inline.exp | 2 +-
gdb/testsuite/gdb.cp/mb-inline.h | 2 +-
gdb/testsuite/gdb.cp/mb-inline1.cc | 2 +-
gdb/testsuite/gdb.cp/mb-inline2.cc | 2 +-
gdb/testsuite/gdb.cp/mb-templates.exp | 2 +-
gdb/testsuite/gdb.cp/member-ptr.cc | 2 +-
gdb/testsuite/gdb.cp/member-ptr.exp | 2 +-
gdb/testsuite/gdb.cp/method.exp | 2 +-
gdb/testsuite/gdb.cp/method2.exp | 2 +-
gdb/testsuite/gdb.cp/misc.cc | 2 +-
gdb/testsuite/gdb.cp/misc.exp | 4 +-
gdb/testsuite/gdb.cp/namespace-nested-import.exp | 2 +-
gdb/testsuite/gdb.cp/namespace.exp | 4 +-
gdb/testsuite/gdb.cp/namespace1.cc | 3 +-
gdb/testsuite/gdb.cp/nextoverthrow.cc | 2 +-
gdb/testsuite/gdb.cp/nextoverthrow.exp | 2 +-
gdb/testsuite/gdb.cp/nsdecl.exp | 2 +-
gdb/testsuite/gdb.cp/nsimport.exp | 2 +-
gdb/testsuite/gdb.cp/nsrecurs.exp | 2 +-
gdb/testsuite/gdb.cp/nsstress.exp | 2 +-
gdb/testsuite/gdb.cp/nsusing.exp | 2 +-
gdb/testsuite/gdb.cp/operator.exp | 2 +-
gdb/testsuite/gdb.cp/oranking.exp | 2 +-
gdb/testsuite/gdb.cp/overload.exp | 4 +-
gdb/testsuite/gdb.cp/ovldbreak.exp | 2 +-
gdb/testsuite/gdb.cp/pass-by-ref.cc | 2 +-
gdb/testsuite/gdb.cp/pass-by-ref.exp | 2 +-
gdb/testsuite/gdb.cp/pr-1023.exp | 2 +-
gdb/testsuite/gdb.cp/pr-1210.exp | 2 +-
gdb/testsuite/gdb.cp/pr-574.cc | 3 +-
gdb/testsuite/gdb.cp/pr-574.exp | 2 +-
gdb/testsuite/gdb.cp/pr10687.exp | 2 +-
gdb/testsuite/gdb.cp/pr10728.exp | 2 +-
gdb/testsuite/gdb.cp/pr12028.exp | 2 +-
gdb/testsuite/gdb.cp/pr9067.exp | 2 +-
gdb/testsuite/gdb.cp/pr9167.exp | 2 +-
gdb/testsuite/gdb.cp/pr9631.exp | 2 +-
gdb/testsuite/gdb.cp/printmethod.cc | 2 +-
gdb/testsuite/gdb.cp/printmethod.exp | 2 +-
gdb/testsuite/gdb.cp/psmang.exp | 3 +-
gdb/testsuite/gdb.cp/ptype-cv-cp.cc | 2 +-
gdb/testsuite/gdb.cp/ptype-cv-cp.exp | 2 +-
gdb/testsuite/gdb.cp/punctuator.exp | 2 +-
gdb/testsuite/gdb.cp/re-set-overloaded.cc | 2 +-
gdb/testsuite/gdb.cp/re-set-overloaded.exp | 2 +-
gdb/testsuite/gdb.cp/ref-params.cc | 2 +-
gdb/testsuite/gdb.cp/ref-params.exp | 2 +-
gdb/testsuite/gdb.cp/ref-types.cc | 3 +-
gdb/testsuite/gdb.cp/ref-types.exp | 2 +-
gdb/testsuite/gdb.cp/rtti.exp | 3 +-
gdb/testsuite/gdb.cp/rtti.h | 3 +-
gdb/testsuite/gdb.cp/rtti1.cc | 3 +-
gdb/testsuite/gdb.cp/rtti2.cc | 3 +-
gdb/testsuite/gdb.cp/shadow.exp | 2 +-
gdb/testsuite/gdb.cp/smartp.cc | 2 +-
gdb/testsuite/gdb.cp/smartp.exp | 2 +-
gdb/testsuite/gdb.cp/static-print-quit.cc | 2 +-
gdb/testsuite/gdb.cp/static-print-quit.exp | 2 +-
gdb/testsuite/gdb.cp/temargs.cc | 2 +-
gdb/testsuite/gdb.cp/temargs.exp | 2 +-
gdb/testsuite/gdb.cp/templates.exp | 2 +-
gdb/testsuite/gdb.cp/try_catch.exp | 2 +-
gdb/testsuite/gdb.cp/userdef.cc | 2 +-
gdb/testsuite/gdb.cp/userdef.exp | 2 +-
gdb/testsuite/gdb.cp/virtbase.exp | 2 +-
gdb/testsuite/gdb.cp/virtfunc.exp | 2 +-
gdb/testsuite/gdb.cp/virtfunc2.cc | 2 +-
gdb/testsuite/gdb.cp/virtfunc2.exp | 2 +-
gdb/testsuite/gdb.disasm/am33.exp | 3 +-
gdb/testsuite/gdb.disasm/h8300s.exp | 3 +-
gdb/testsuite/gdb.disasm/hppa.exp | 2 +-
gdb/testsuite/gdb.disasm/mn10300.exp | 2 +-
gdb/testsuite/gdb.disasm/sh3.exp | 2 +-
gdb/testsuite/gdb.disasm/t01_mov.exp | 3 +-
gdb/testsuite/gdb.disasm/t02_mova.exp | 3 +-
gdb/testsuite/gdb.disasm/t03_add.exp | 3 +-
gdb/testsuite/gdb.disasm/t04_sub.exp | 3 +-
gdb/testsuite/gdb.disasm/t05_cmp.exp | 3 +-
gdb/testsuite/gdb.disasm/t06_ari2.exp | 3 +-
gdb/testsuite/gdb.disasm/t07_ari3.exp | 3 +-
gdb/testsuite/gdb.disasm/t08_or.exp | 3 +-
gdb/testsuite/gdb.disasm/t09_xor.exp | 3 +-
gdb/testsuite/gdb.disasm/t10_and.exp | 3 +-
gdb/testsuite/gdb.disasm/t11_logs.exp | 3 +-
gdb/testsuite/gdb.disasm/t12_bit.exp | 3 +-
gdb/testsuite/gdb.disasm/t13_otr.exp | 3 +-
gdb/testsuite/gdb.dwarf2/Makefile.in | 2 +-
gdb/testsuite/gdb.dwarf2/callframecfa.S | 2 +-
gdb/testsuite/gdb.dwarf2/callframecfa.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dup-psym.S | 2 +-
gdb/testsuite/gdb.dwarf2/dup-psym.exp | 3 +-
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp | 3 +-
gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S | 2 +-
.../gdb.dwarf2/dw2-bad-parameter-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-basic.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-basic.exp | 3 +-
gdb/testsuite/gdb.dwarf2/dw2-compressed.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-compressed.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-const.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-const.exp | 2 +-
.../gdb.dwarf2/dw2-cp-infcall-ref-static-main.c | 2 +-
.../gdb.dwarf2/dw2-cp-infcall-ref-static.S | 2 +-
.../gdb.dwarf2/dw2-cp-infcall-ref-static.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-cu-size.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp | 3 +-
gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S | 2 +-
.../gdb.dwarf2/dw2-double-set-die-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-filename.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-filename.exp | 3 +-
gdb/testsuite/gdb.dwarf2/dw2-inheritance.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inline-param-main.c | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inline-param.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-intercu.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-intercu.exp | 3 +-
gdb/testsuite/gdb.dwarf2/dw2-intermix.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-intermix.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-noloc-main.c | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-noloc.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-noloc.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-op-call.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-op-call.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-producer.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-producer.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ranges.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ranges.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ranges2.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ranges3.S | 2 +-
.../gdb.dwarf2/dw2-ref-missing-frame-func.c | 2 +-
.../gdb.dwarf2/dw2-ref-missing-frame-main.c | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-restore.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-restore.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-strp.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-strp.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-unresolved-main.c | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-unresolved.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-unresolved.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp | 2 +-
gdb/testsuite/gdb.dwarf2/implptr.c | 2 +-
gdb/testsuite/gdb.dwarf2/implptr.exp | 2 +-
gdb/testsuite/gdb.dwarf2/mac-fileno.S | 2 +-
gdb/testsuite/gdb.dwarf2/mac-fileno.exp | 2 +-
gdb/testsuite/gdb.dwarf2/main.c | 2 +-
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.S | 2 +-
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp | 2 +-
gdb/testsuite/gdb.dwarf2/pieces.S | 2 +-
gdb/testsuite/gdb.dwarf2/pieces.c | 2 +-
gdb/testsuite/gdb.dwarf2/pieces.exp | 2 +-
gdb/testsuite/gdb.dwarf2/pr10770.exp | 2 +-
gdb/testsuite/gdb.dwarf2/pr11465.S | 2 +-
gdb/testsuite/gdb.dwarf2/pr11465.exp | 2 +-
gdb/testsuite/gdb.dwarf2/valop.S | 2 +-
gdb/testsuite/gdb.dwarf2/valop.exp | 2 +-
gdb/testsuite/gdb.dwarf2/watch-notconst.c | 2 +-
gdb/testsuite/gdb.dwarf2/watch-notconst.exp | 2 +-
gdb/testsuite/gdb.dwarf2/watch-notconst2.S | 2 +-
gdb/testsuite/gdb.dwarf2/watch-notconst2.c | 2 +-
gdb/testsuite/gdb.fortran/Makefile.in | 2 +-
gdb/testsuite/gdb.fortran/array-element.exp | 2 +-
gdb/testsuite/gdb.fortran/complex.exp | 2 +-
gdb/testsuite/gdb.fortran/derived-type.exp | 2 +-
gdb/testsuite/gdb.fortran/exprs.exp | 2 +-
gdb/testsuite/gdb.fortran/library-module.exp | 2 +-
gdb/testsuite/gdb.fortran/logical.exp | 2 +-
gdb/testsuite/gdb.fortran/module.exp | 2 +-
gdb/testsuite/gdb.fortran/subarray.exp | 2 +-
gdb/testsuite/gdb.fortran/types.exp | 2 +-
gdb/testsuite/gdb.gdb/complaints.exp | 3 +-
gdb/testsuite/gdb.gdb/observer.exp | 3 +-
gdb/testsuite/gdb.gdb/selftest.exp | 2 +-
gdb/testsuite/gdb.gdb/xfullpath.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.aCC/exception.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.aCC/optimize.exp | 3 +-
gdb/testsuite/gdb.hp/gdb.aCC/watch-cmd.exp | 3 +-
gdb/testsuite/gdb.hp/gdb.base-hp/callfwmall.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.base-hp/dollar.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.base-hp/hwwatchbus.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.base-hp/pxdb.exp | 3 +-
gdb/testsuite/gdb.hp/gdb.base-hp/reg-pa64.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.base-hp/sized-enum.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.base-hp/so-thresh.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.compat/xdb1.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.compat/xdb2.exp | 2 +-
gdb/testsuite/gdb.hp/gdb.compat/xdb3.exp | 3 +-
gdb/testsuite/gdb.hp/gdb.defects/solib-d.exp | 3 +-
gdb/testsuite/gdb.java/jmain.exp | 3 +-
gdb/testsuite/gdb.java/jmisc.exp | 2 +-
gdb/testsuite/gdb.java/jnpe.exp | 2 +-
gdb/testsuite/gdb.java/jnpe.java | 2 +-
gdb/testsuite/gdb.java/jprint.exp | 3 +-
gdb/testsuite/gdb.java/jv-exp.exp | 2 +-
gdb/testsuite/gdb.java/jv-print.exp | 2 +-
gdb/testsuite/gdb.mi/basics.c | 2 +-
gdb/testsuite/gdb.mi/dw2-ref-missing-frame-func.c | 2 +-
gdb/testsuite/gdb.mi/dw2-ref-missing-frame-main.c | 2 +-
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S | 2 +-
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp | 2 +-
gdb/testsuite/gdb.mi/gdb2549.exp | 2 +-
gdb/testsuite/gdb.mi/gdb669.exp | 2 +-
gdb/testsuite/gdb.mi/gdb680.exp | 2 +-
gdb/testsuite/gdb.mi/gdb701.exp | 2 +-
gdb/testsuite/gdb.mi/gdb792.exp | 3 +-
gdb/testsuite/gdb.mi/mi-async.exp | 2 +-
gdb/testsuite/gdb.mi/mi-basics.exp | 2 +-
gdb/testsuite/gdb.mi/mi-break.exp | 2 +-
gdb/testsuite/gdb.mi/mi-cli.exp | 2 +-
gdb/testsuite/gdb.mi/mi-console.exp | 2 +-
gdb/testsuite/gdb.mi/mi-disassemble.exp | 2 +-
gdb/testsuite/gdb.mi/mi-eval.exp | 2 +-
gdb/testsuite/gdb.mi/mi-file-transfer.exp | 2 +-
gdb/testsuite/gdb.mi/mi-file.exp | 2 +-
gdb/testsuite/gdb.mi/mi-hack-cli.exp | 3 +-
gdb/testsuite/gdb.mi/mi-nonstop-exit.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nonstop.exp | 2 +-
gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsintrall.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsmoribund.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsthrexec.exp | 2 +-
gdb/testsuite/gdb.mi/mi-pending.c | 2 +-
gdb/testsuite/gdb.mi/mi-pending.exp | 2 +-
gdb/testsuite/gdb.mi/mi-pendshr.c | 2 +-
gdb/testsuite/gdb.mi/mi-pthreads.exp | 2 +-
gdb/testsuite/gdb.mi/mi-read-memory.exp | 2 +-
gdb/testsuite/gdb.mi/mi-regs.exp | 2 +-
gdb/testsuite/gdb.mi/mi-return.exp | 2 +-
gdb/testsuite/gdb.mi/mi-reverse.exp | 3 +-
gdb/testsuite/gdb.mi/mi-simplerun.exp | 2 +-
gdb/testsuite/gdb.mi/mi-stack.c | 2 +-
gdb/testsuite/gdb.mi/mi-stack.exp | 2 +-
gdb/testsuite/gdb.mi/mi-stepi.exp | 2 +-
gdb/testsuite/gdb.mi/mi-syn-frame.exp | 2 +-
gdb/testsuite/gdb.mi/mi-until.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-block.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-child-f.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-child.c | 2 +-
gdb/testsuite/gdb.mi/mi-var-child.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-cmd.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-cp.cc | 2 +-
gdb/testsuite/gdb.mi/mi-var-cp.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-display.exp | 4 +-
gdb/testsuite/gdb.mi/mi-var-invalidate.exp | 2 +-
gdb/testsuite/gdb.mi/mi-watch.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-basics.exp | 4 +-
gdb/testsuite/gdb.mi/mi2-break.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-cli.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-console.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-disassemble.exp | 4 +-
gdb/testsuite/gdb.mi/mi2-eval.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-file.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-hack-cli.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-pthreads.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-read-memory.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-regs.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-return.exp | 4 +-
gdb/testsuite/gdb.mi/mi2-simplerun.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-stack.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-stepi.exp | 4 +-
gdb/testsuite/gdb.mi/mi2-syn-frame.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-until.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-var-block.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-var-cmd.exp | 4 +-
gdb/testsuite/gdb.mi/mi2-var-display.exp | 4 +-
gdb/testsuite/gdb.mi/mi2-watch.exp | 2 +-
gdb/testsuite/gdb.mi/non-stop-exit.c | 2 +-
gdb/testsuite/gdb.mi/non-stop.c | 2 +-
gdb/testsuite/gdb.mi/ns-stale-regcache.c | 2 +-
gdb/testsuite/gdb.mi/nsintrall.c | 2 +-
gdb/testsuite/gdb.mi/nsmoribund.c | 2 +-
gdb/testsuite/gdb.mi/nsthrexec.c | 2 +-
gdb/testsuite/gdb.mi/pthreads.c | 2 +-
gdb/testsuite/gdb.mi/var-cmd.c | 3 +-
gdb/testsuite/gdb.modula2/Makefile.in | 2 +-
gdb/testsuite/gdb.modula2/unbounded-array.exp | 2 +-
gdb/testsuite/gdb.modula2/unbounded1.c | 2 +-
gdb/testsuite/gdb.multi/base.exp | 2 +-
gdb/testsuite/gdb.multi/bkpt-multi-exec.exp | 2 +-
gdb/testsuite/gdb.multi/goodbye.c | 2 +-
gdb/testsuite/gdb.multi/hangout.c | 2 +-
gdb/testsuite/gdb.multi/hello.c | 2 +-
gdb/testsuite/gdb.objc/basicclass.exp | 2 +-
gdb/testsuite/gdb.objc/nondebug.exp | 2 +-
gdb/testsuite/gdb.objc/objcdecode.exp | 2 +-
gdb/testsuite/gdb.objc/print.exp | 2 +-
gdb/testsuite/gdb.opencl/convs_casts.cl | 2 +-
gdb/testsuite/gdb.opencl/convs_casts.exp | 2 +-
gdb/testsuite/gdb.opencl/datatypes.cl | 2 +-
gdb/testsuite/gdb.opencl/datatypes.exp | 2 +-
gdb/testsuite/gdb.opencl/operators.cl | 2 +-
gdb/testsuite/gdb.opencl/operators.exp | 2 +-
gdb/testsuite/gdb.opencl/vec_comps.cl | 2 +-
gdb/testsuite/gdb.opencl/vec_comps.exp | 2 +-
gdb/testsuite/gdb.opt/clobbered-registers-O2.c | 2 +-
gdb/testsuite/gdb.opt/clobbered-registers-O2.exp | 2 +-
gdb/testsuite/gdb.opt/inline-bt.c | 2 +-
gdb/testsuite/gdb.opt/inline-bt.exp | 2 +-
gdb/testsuite/gdb.opt/inline-cmds.c | 2 +-
gdb/testsuite/gdb.opt/inline-cmds.exp | 2 +-
gdb/testsuite/gdb.opt/inline-locals.c | 2 +-
gdb/testsuite/gdb.opt/inline-locals.exp | 2 +-
gdb/testsuite/gdb.opt/inline-markers.c | 2 +-
gdb/testsuite/gdb.pascal/floats.exp | 2 +-
gdb/testsuite/gdb.pascal/floats.pas | 2 +-
gdb/testsuite/gdb.pascal/gdb11492.exp | 2 +-
gdb/testsuite/gdb.pascal/gdb11492.pas | 2 +-
gdb/testsuite/gdb.pascal/hello.exp | 2 +-
gdb/testsuite/gdb.pascal/integers.exp | 2 +-
gdb/testsuite/gdb.pascal/integers.pas | 2 +-
gdb/testsuite/gdb.pascal/print.exp | 2 +-
gdb/testsuite/gdb.pascal/types.exp | 2 +-
gdb/testsuite/gdb.python/lib-types.cc | 2 +-
gdb/testsuite/gdb.python/lib-types.exp | 2 +-
gdb/testsuite/gdb.python/py-block.c | 2 +-
gdb/testsuite/gdb.python/py-block.exp | 2 +-
gdb/testsuite/gdb.python/py-breakpoint.c | 2 +-
gdb/testsuite/gdb.python/py-breakpoint.exp | 2 +-
gdb/testsuite/gdb.python/py-cmd.exp | 2 +-
gdb/testsuite/gdb.python/py-error.exp | 2 +-
gdb/testsuite/gdb.python/py-error.py | 2 +-
gdb/testsuite/gdb.python/py-frame.exp | 2 +-
gdb/testsuite/gdb.python/py-function.exp | 2 +-
gdb/testsuite/gdb.python/py-inferior.exp | 2 +-
gdb/testsuite/gdb.python/py-infthread.exp | 2 +-
gdb/testsuite/gdb.python/py-mi.exp | 2 +-
gdb/testsuite/gdb.python/py-parameter.exp | 2 +-
gdb/testsuite/gdb.python/py-pp-maint.c | 2 +-
gdb/testsuite/gdb.python/py-pp-maint.exp | 2 +-
gdb/testsuite/gdb.python/py-pp-maint.py | 2 +-
gdb/testsuite/gdb.python/py-prettyprint.c | 2 +-
gdb/testsuite/gdb.python/py-prettyprint.exp | 2 +-
gdb/testsuite/gdb.python/py-prettyprint.py | 2 +-
gdb/testsuite/gdb.python/py-progspace.c | 2 +-
gdb/testsuite/gdb.python/py-progspace.exp | 2 +-
gdb/testsuite/gdb.python/py-section-script.c | 2 +-
gdb/testsuite/gdb.python/py-section-script.exp | 2 +-
gdb/testsuite/gdb.python/py-section-script.py | 2 +-
gdb/testsuite/gdb.python/py-shared-sl.c | 2 +-
gdb/testsuite/gdb.python/py-shared.c | 2 +-
gdb/testsuite/gdb.python/py-shared.exp | 2 +-
gdb/testsuite/gdb.python/py-symbol.c | 2 +-
gdb/testsuite/gdb.python/py-symbol.exp | 2 +-
gdb/testsuite/gdb.python/py-symtab.exp | 2 +-
gdb/testsuite/gdb.python/py-template.cc | 2 +-
gdb/testsuite/gdb.python/py-template.exp | 2 +-
gdb/testsuite/gdb.python/py-type.c | 2 +-
gdb/testsuite/gdb.python/py-type.exp | 2 +-
gdb/testsuite/gdb.python/py-value.c | 2 +-
gdb/testsuite/gdb.python/py-value.exp | 2 +-
gdb/testsuite/gdb.python/python-1.c | 2 +-
gdb/testsuite/gdb.python/python.c | 2 +-
gdb/testsuite/gdb.python/python.exp | 2 +-
gdb/testsuite/gdb.python/source1 | 2 +-
gdb/testsuite/gdb.python/source2.py | 2 +-
gdb/testsuite/gdb.reverse/break-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/break-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/break-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/consecutive-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/consecutive-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/consecutive-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/finish-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/finish-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/finish-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/i386-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-sse-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/i386-sse-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i387-env-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i387-stack-reverse.exp | 2 +-
.../gdb.reverse/machinestate-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/machinestate.c | 2 +-
gdb/testsuite/gdb.reverse/machinestate.exp | 2 +-
gdb/testsuite/gdb.reverse/ms1.c | 2 +-
gdb/testsuite/gdb.reverse/shr2.c | 2 +-
gdb/testsuite/gdb.reverse/sigall-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/sigall-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/sigall-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/solib-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/solib-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/solib-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/step-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/step-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/step-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/until-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/until-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/until-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/ur1.c | 2 +-
gdb/testsuite/gdb.reverse/watch-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/watch-reverse.c | 2 +-
gdb/testsuite/gdb.reverse/watch-reverse.exp | 2 +-
gdb/testsuite/gdb.server/ext-attach.c | 2 +-
gdb/testsuite/gdb.server/ext-attach.exp | 2 +-
gdb/testsuite/gdb.server/ext-run.exp | 2 +-
gdb/testsuite/gdb.server/file-transfer.exp | 2 +-
gdb/testsuite/gdb.server/server-mon.exp | 2 +-
gdb/testsuite/gdb.server/server-run.exp | 2 +-
gdb/testsuite/gdb.server/server.c | 2 +-
gdb/testsuite/gdb.stabs/exclfwd.exp | 3 +-
gdb/testsuite/gdb.stabs/exclfwd.h | 2 +-
gdb/testsuite/gdb.stabs/exclfwd1.c | 2 +-
gdb/testsuite/gdb.stabs/exclfwd2.c | 2 +-
gdb/testsuite/gdb.stabs/gdb11479.c | 2 +-
gdb/testsuite/gdb.stabs/gdb11479.exp | 2 +-
gdb/testsuite/gdb.stabs/weird.exp | 4 +-
gdb/testsuite/gdb.threads/attach-into-signal.c | 2 +-
gdb/testsuite/gdb.threads/attach-into-signal.exp | 2 +-
gdb/testsuite/gdb.threads/attach-stopped.c | 2 +-
gdb/testsuite/gdb.threads/attach-stopped.exp | 2 +-
gdb/testsuite/gdb.threads/attachstop-mt.c | 2 +-
gdb/testsuite/gdb.threads/attachstop-mt.exp | 2 +-
gdb/testsuite/gdb.threads/bp_in_thread.c | 2 +-
gdb/testsuite/gdb.threads/bp_in_thread.exp | 3 +-
gdb/testsuite/gdb.threads/current-lwp-dead.c | 2 +-
gdb/testsuite/gdb.threads/current-lwp-dead.exp | 2 +-
gdb/testsuite/gdb.threads/execl.c | 2 +-
gdb/testsuite/gdb.threads/execl.exp | 2 +-
gdb/testsuite/gdb.threads/execl1.c | 2 +-
gdb/testsuite/gdb.threads/fork-child-threads.c | 2 +-
gdb/testsuite/gdb.threads/fork-child-threads.exp | 2 +-
gdb/testsuite/gdb.threads/fork-thread-pending.c | 2 +-
gdb/testsuite/gdb.threads/fork-thread-pending.exp | 2 +-
gdb/testsuite/gdb.threads/gcore-thread.exp | 2 +-
gdb/testsuite/gdb.threads/hand-call-in-threads.c | 2 +-
gdb/testsuite/gdb.threads/hand-call-in-threads.exp | 2 +-
gdb/testsuite/gdb.threads/ia64-sigill.c | 2 +-
gdb/testsuite/gdb.threads/ia64-sigill.exp | 2 +-
gdb/testsuite/gdb.threads/interrupted-hand-call.c | 2 +-
.../gdb.threads/interrupted-hand-call.exp | 2 +-
gdb/testsuite/gdb.threads/killed.c | 3 +-
gdb/testsuite/gdb.threads/killed.exp | 2 +-
gdb/testsuite/gdb.threads/linux-dp.exp | 4 +-
.../gdb.threads/local-watch-wrong-thread.c | 2 +-
.../gdb.threads/local-watch-wrong-thread.exp | 2 +-
gdb/testsuite/gdb.threads/manythreads.c | 3 +-
gdb/testsuite/gdb.threads/manythreads.exp | 2 +-
gdb/testsuite/gdb.threads/multi-create.c | 2 +-
gdb/testsuite/gdb.threads/multi-create.exp | 2 +-
gdb/testsuite/gdb.threads/pending-step.c | 2 +-
gdb/testsuite/gdb.threads/pending-step.exp | 2 +-
gdb/testsuite/gdb.threads/print-threads.exp | 2 +-
gdb/testsuite/gdb.threads/pthread_cond_wait.c | 2 +-
gdb/testsuite/gdb.threads/pthread_cond_wait.exp | 3 +-
gdb/testsuite/gdb.threads/pthreads.c | 2 +-
gdb/testsuite/gdb.threads/pthreads.exp | 2 +-
gdb/testsuite/gdb.threads/schedlock.c | 2 +-
gdb/testsuite/gdb.threads/schedlock.exp | 2 +-
gdb/testsuite/gdb.threads/sigthread.exp | 2 +-
gdb/testsuite/gdb.threads/staticthreads.c | 2 +-
gdb/testsuite/gdb.threads/staticthreads.exp | 3 +-
gdb/testsuite/gdb.threads/step.exp | 2 +-
gdb/testsuite/gdb.threads/step2.exp | 2 +-
gdb/testsuite/gdb.threads/switch-threads.c | 2 +-
gdb/testsuite/gdb.threads/switch-threads.exp | 3 +-
gdb/testsuite/gdb.threads/thread-execl.c | 2 +-
gdb/testsuite/gdb.threads/thread-execl.exp | 2 +-
gdb/testsuite/gdb.threads/thread-specific.c | 2 +-
gdb/testsuite/gdb.threads/thread-specific.exp | 2 +-
.../gdb.threads/thread-unwindonsignal.exp | 2 +-
gdb/testsuite/gdb.threads/thread_check.c | 3 +-
gdb/testsuite/gdb.threads/thread_check.exp | 3 +-
gdb/testsuite/gdb.threads/thread_events.c | 2 +-
gdb/testsuite/gdb.threads/thread_events.exp | 2 +-
gdb/testsuite/gdb.threads/threadapply.c | 2 +-
gdb/testsuite/gdb.threads/threadapply.exp | 2 +-
gdb/testsuite/gdb.threads/threxit-hop-specific.c | 2 +-
gdb/testsuite/gdb.threads/threxit-hop-specific.exp | 2 +-
gdb/testsuite/gdb.threads/tls-nodebug.exp | 3 +-
gdb/testsuite/gdb.threads/tls-shared.exp | 2 +-
gdb/testsuite/gdb.threads/tls.exp | 2 +-
gdb/testsuite/gdb.threads/tls2.c | 2 +-
gdb/testsuite/gdb.threads/watchthreads-reorder.c | 2 +-
gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads.c | 2 +-
gdb/testsuite/gdb.threads/watchthreads.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads2.c | 2 +-
gdb/testsuite/gdb.threads/watchthreads2.exp | 2 +-
gdb/testsuite/gdb.trace/actions.exp | 3 +-
gdb/testsuite/gdb.trace/ax.exp | 2 +-
gdb/testsuite/gdb.trace/backtrace.exp | 3 +-
gdb/testsuite/gdb.trace/circ.exp | 2 +-
gdb/testsuite/gdb.trace/collection.exp | 3 +-
gdb/testsuite/gdb.trace/deltrace.exp | 2 +-
gdb/testsuite/gdb.trace/infotrace.exp | 3 +-
gdb/testsuite/gdb.trace/packetlen.exp | 3 +-
gdb/testsuite/gdb.trace/passc-dyn.exp | 2 +-
gdb/testsuite/gdb.trace/passcount.exp | 3 +-
gdb/testsuite/gdb.trace/report.exp | 3 +-
gdb/testsuite/gdb.trace/save-trace.exp | 3 +-
gdb/testsuite/gdb.trace/tfile.exp | 2 +-
gdb/testsuite/gdb.trace/tfind.exp | 2 +-
gdb/testsuite/gdb.trace/tracecmd.exp | 3 +-
gdb/testsuite/gdb.trace/tsv.exp | 2 +-
gdb/testsuite/gdb.trace/while-dyn.exp | 3 +-
gdb/testsuite/gdb.trace/while-stepping.exp | 3 +-
gdb/testsuite/gdb.xml/tdesc-arch.exp | 2 +-
gdb/testsuite/gdb.xml/tdesc-errors.exp | 2 +-
gdb/testsuite/gdb.xml/tdesc-regs.exp | 2 +-
gdb/testsuite/gdb.xml/tdesc-xinclude.exp | 2 +-
gdb/testsuite/lib/ada.exp | 2 +-
gdb/testsuite/lib/cell.exp | 2 +-
gdb/testsuite/lib/cl_util.c | 2 +-
gdb/testsuite/lib/cl_util.h | 2 +-
gdb/testsuite/lib/compiler.c | 2 +-
gdb/testsuite/lib/compiler.cc | 2 +-
gdb/testsuite/lib/cp-support.exp | 3 +-
gdb/testsuite/lib/fortran.exp | 2 +-
gdb/testsuite/lib/gdb-python.exp | 2 +-
gdb/testsuite/lib/gdb.exp | 3 +-
gdb/testsuite/lib/gdbserver-support.exp | 2 +-
gdb/testsuite/lib/java.exp | 2 +-
gdb/testsuite/lib/mi-support.exp | 2 +-
gdb/testsuite/lib/objc.exp | 2 +-
gdb/testsuite/lib/opencl.exp | 2 +-
gdb/testsuite/lib/opencl_hostapp.c | 2 +-
gdb/testsuite/lib/pascal.exp | 2 +-
gdb/testsuite/lib/prelink-support.exp | 2 +-
gdb/testsuite/lib/set_unbuffered_mode.c | 2 +-
gdb/testsuite/lib/trace-support.exp | 3 +-
gdb/thread.c | 2 +-
gdb/top.c | 4 +-
gdb/top.h | 2 +-
gdb/tracepoint.c | 2 +-
gdb/tracepoint.h | 2 +-
gdb/trad-frame.c | 2 +-
gdb/trad-frame.h | 2 +-
gdb/tramp-frame.c | 3 +-
gdb/tramp-frame.h | 2 +-
gdb/tui/tui-command.c | 2 +-
gdb/tui/tui-command.h | 2 +-
gdb/tui/tui-data.c | 2 +-
gdb/tui/tui-data.h | 2 +-
gdb/tui/tui-disasm.c | 2 +-
gdb/tui/tui-disasm.h | 2 +-
gdb/tui/tui-file.c | 2 +-
gdb/tui/tui-file.h | 2 +-
gdb/tui/tui-hooks.c | 4 +-
gdb/tui/tui-hooks.h | 3 +-
gdb/tui/tui-interp.c | 3 +-
gdb/tui/tui-io.c | 2 +-
gdb/tui/tui-io.h | 4 +-
gdb/tui/tui-layout.c | 2 +-
gdb/tui/tui-layout.h | 4 +-
gdb/tui/tui-main.c | 2 +-
gdb/tui/tui-out.c | 4 +-
gdb/tui/tui-regs.c | 2 +-
gdb/tui/tui-regs.h | 2 +-
gdb/tui/tui-source.c | 2 +-
gdb/tui/tui-source.h | 4 +-
gdb/tui/tui-stack.c | 2 +-
gdb/tui/tui-stack.h | 4 +-
gdb/tui/tui-win.c | 2 +-
gdb/tui/tui-win.h | 4 +-
gdb/tui/tui-windata.c | 2 +-
gdb/tui/tui-windata.h | 2 +-
gdb/tui/tui-wingeneral.c | 4 +-
gdb/tui/tui-wingeneral.h | 4 +-
gdb/tui/tui-winsource.c | 2 +-
gdb/tui/tui-winsource.h | 4 +-
gdb/tui/tui.c | 2 +-
gdb/tui/tui.h | 2 +-
gdb/typeprint.c | 2 +-
gdb/typeprint.h | 2 +-
gdb/ui-file.c | 2 +-
gdb/ui-file.h | 2 +-
gdb/ui-out.c | 4 +-
gdb/ui-out.h | 4 +-
gdb/user-regs.c | 2 +-
gdb/user-regs.h | 2 +-
gdb/utils.c | 2 +-
gdb/v850-tdep.c | 2 +-
gdb/valarith.c | 2 +-
gdb/valops.c | 2 +-
gdb/valprint.c | 2 +-
gdb/valprint.h | 2 +-
gdb/value.c | 2 +-
gdb/value.h | 2 +-
gdb/varobj.c | 2 +-
gdb/varobj.h | 2 +-
gdb/vax-nat.c | 2 +-
gdb/vax-tdep.c | 3 +-
gdb/vax-tdep.h | 2 +-
gdb/vaxbsd-nat.c | 2 +-
gdb/vaxnbsd-tdep.c | 3 +-
gdb/vaxobsd-tdep.c | 3 +-
gdb/vec.c | 2 +-
gdb/vec.h | 2 +-
gdb/version.h | 3 +-
gdb/version.in | 2 +-
gdb/windows-nat.c | 2 +-
gdb/windows-nat.h | 2 +-
gdb/windows-tdep.c | 2 +-
gdb/windows-tdep.h | 2 +-
gdb/windows-termcap.c | 2 +-
gdb/wrapper.c | 2 +-
gdb/wrapper.h | 2 +-
gdb/xcoffread.c | 2 +-
gdb/xcoffread.h | 2 +-
gdb/xcoffsolib.c | 2 +-
gdb/xcoffsolib.h | 2 +-
gdb/xml-support.c | 3 +-
gdb/xml-support.h | 3 +-
gdb/xml-syscall.c | 2 +-
gdb/xml-syscall.h | 2 +-
gdb/xml-tdesc.c | 2 +-
gdb/xml-tdesc.h | 2 +-
gdb/xstormy16-tdep.c | 2 +-
gdb/xtensa-config.c | 2 +-
gdb/xtensa-linux-nat.c | 2 +-
gdb/xtensa-linux-tdep.c | 2 +-
gdb/xtensa-tdep.c | 2 +-
gdb/xtensa-tdep.h | 2 +-
gdb/xtensa-xtregs.c | 2 +-
include/demangle.h | 2 +-
include/floatformat.h | 2 +-
include/gdb/callback.h | 2 +-
include/gdb/fileio.h | 2 +-
include/gdb/remote-sim.h | 4 +-
include/gdb/signals.def | 2 +-
include/gdb/signals.h | 2 +-
include/gdb/sim-arm.h | 3 +-
include/gdb/sim-cr16.h | 2 +-
include/gdb/sim-d10v.h | 3 +-
include/gdb/sim-frv.h | 2 +-
include/gdb/sim-h8300.h | 3 +-
include/gdb/sim-lm32.h | 2 +-
include/gdb/sim-m32c.h | 3 +-
include/gdb/sim-ppc.h | 2 +-
include/gdb/sim-rx.h | 2 +-
include/gdb/sim-sh.h | 2 +-
include/libiberty.h | 2 +-
include/plugin-api.h | 2 +-
include/xtensa-config.h | 2 +-
libdecnumber/Makefile.in | 3 +-
libdecnumber/dconfig.h | 2 +-
libiberty/ChangeLog | 4 -
libiberty/cp-demangle.h | 3 +-
libiberty/cplus-dem.c | 2 +-
libiberty/floatformat.c | 2 +-
libiberty/lbasename.c | 2 +-
libiberty/maint-tool | 2 +-
libiberty/make-temp-file.c | 3 +-
libiberty/pex-common.c | 2 +-
libiberty/pex-unix.c | 4 +-
opcodes/ChangeLog | 1006 +--
opcodes/{ChangeLog => ChangeLog-2010} | 0
opcodes/i386-gen.c | 4 +-
sim/Makefile.in | 2 +-
sim/arm/Makefile.in | 2 +-
sim/arm/iwmmxt.c | 3 +-
sim/arm/iwmmxt.h | 3 +-
sim/arm/maverick.c | 3 +-
sim/arm/wrapper.c | 4 +-
sim/avr/Makefile.in | 2 +-
sim/avr/interp.c | 2 +-
sim/common/Make-common.in | 4 +-
sim/common/Makefile.in | 2 +-
sim/common/callback.c | 4 +-
sim/common/cgen-cpu.h | 2 +-
sim/common/cgen-defs.h | 2 +-
sim/common/cgen-engine.h | 2 +-
sim/common/cgen-mem.h | 2 +-
sim/common/cgen-ops.h | 2 +-
sim/common/cgen-par.c | 2 +-
sim/common/cgen-par.h | 2 +-
sim/common/cgen-run.c | 3 +-
sim/common/cgen-scache.c | 2 +-
sim/common/cgen-scache.h | 3 +-
sim/common/cgen-sim.h | 3 +-
sim/common/cgen-trace.c | 2 +-
sim/common/cgen-trace.h | 2 +-
sim/common/cgen-types.h | 2 +-
sim/common/cgen-utils.c | 2 +-
sim/common/dv-core.c | 2 +-
sim/common/dv-glue.c | 2 +-
sim/common/dv-pal.c | 2 +-
sim/common/dv-sockser.c | 3 +-
sim/common/genmloop.sh | 2 +-
sim/common/hw-alloc.c | 3 +-
sim/common/hw-alloc.h | 3 +-
sim/common/hw-base.c | 2 +-
sim/common/hw-base.h | 2 +-
sim/common/hw-device.c | 2 +-
sim/common/hw-device.h | 2 +-
sim/common/hw-events.c | 3 +-
sim/common/hw-events.h | 3 +-
sim/common/hw-handles.c | 2 +-
sim/common/hw-handles.h | 2 +-
sim/common/hw-instances.c | 2 +-
sim/common/hw-instances.h | 2 +-
sim/common/hw-main.h | 3 +-
sim/common/hw-ports.c | 3 +-
sim/common/hw-ports.h | 3 +-
sim/common/hw-properties.c | 2 +-
sim/common/hw-properties.h | 2 +-
sim/common/hw-tree.c | 2 +-
sim/common/hw-tree.h | 2 +-
sim/common/nrun.c | 2 +-
sim/common/run-sim.h | 2 +-
sim/common/run.c | 3 +-
sim/common/sim-abort.c | 3 +-
sim/common/sim-alu.h | 2 +-
sim/common/sim-arange.c | 3 +-
sim/common/sim-arange.h | 3 +-
sim/common/sim-base.h | 2 +-
sim/common/sim-basics.h | 3 +-
sim/common/sim-bits.c | 2 +-
sim/common/sim-bits.h | 2 +-
sim/common/sim-config.c | 2 +-
sim/common/sim-config.h | 3 +-
sim/common/sim-core.c | 2 +-
sim/common/sim-core.h | 2 +-
sim/common/sim-cpu.c | 3 +-
sim/common/sim-cpu.h | 3 +-
sim/common/sim-endian.c | 2 +-
sim/common/sim-endian.h | 2 +-
sim/common/sim-engine.c | 2 +-
sim/common/sim-engine.h | 2 +-
sim/common/sim-events.c | 2 +-
sim/common/sim-events.h | 2 +-
sim/common/sim-fpu.c | 2 +-
sim/common/sim-fpu.h | 2 +-
sim/common/sim-hload.c | 3 +-
sim/common/sim-hrw.c | 3 +-
sim/common/sim-hw.c | 3 +-
sim/common/sim-hw.h | 3 +-
sim/common/sim-info.c | 3 +-
sim/common/sim-inline.c | 2 +-
sim/common/sim-inline.h | 2 +-
sim/common/sim-io.c | 2 +-
sim/common/sim-io.h | 2 +-
sim/common/sim-load.c | 2 +-
sim/common/sim-memopt.c | 2 +-
sim/common/sim-memopt.h | 3 +-
sim/common/sim-model.c | 2 +-
sim/common/sim-model.h | 2 +-
sim/common/sim-module.c | 2 +-
sim/common/sim-module.h | 2 +-
sim/common/sim-n-bits.h | 2 +-
sim/common/sim-n-core.h | 2 +-
sim/common/sim-n-endian.h | 2 +-
sim/common/sim-options.c | 2 +-
sim/common/sim-options.h | 2 +-
sim/common/sim-profile.c | 2 +-
sim/common/sim-profile.h | 2 +-
sim/common/sim-reason.c | 3 +-
sim/common/sim-reg.c | 3 +-
sim/common/sim-resume.c | 3 +-
sim/common/sim-run.c | 3 +-
sim/common/sim-signal.c | 3 +-
sim/common/sim-signal.h | 3 +-
sim/common/sim-stop.c | 3 +-
sim/common/sim-trace.c | 2 +-
sim/common/sim-trace.h | 2 +-
sim/common/sim-types.h | 3 +-
sim/common/sim-utils.c | 2 +-
sim/common/sim-utils.h | 3 +-
sim/common/sim-watch.c | 3 +-
sim/common/sim-watch.h | 3 +-
sim/common/syscall.c | 2 +-
sim/common/version.h | 3 +-
sim/cr16/Makefile.in | 2 +-
sim/cr16/cr16_sim.h | 2 +-
sim/cr16/endian.c | 2 +-
sim/cr16/gencode.c | 2 +-
sim/cr16/interp.c | 2 +-
sim/cr16/simops.c | 2 +-
sim/cris/Makefile.in | 2 +-
sim/cris/cris-sim.h | 2 +-
sim/cris/cris-tmpl.c | 2 +-
sim/cris/crisv10f.c | 2 +-
sim/cris/crisv32f.c | 2 +-
sim/cris/devices.c | 2 +-
sim/cris/dv-cris.c | 2 +-
sim/cris/dv-rv.c | 2 +-
sim/cris/mloop.in | 2 +-
sim/cris/rvdummy.c | 2 +-
sim/cris/sim-if.c | 2 +-
sim/cris/sim-main.h | 2 +-
sim/cris/tconfig.in | 2 +-
sim/cris/traps.c | 2 +-
sim/d10v/Makefile.in | 2 +-
sim/erc32/Makefile.in | 2 +-
sim/frv/Makefile.in | 2 +-
sim/frv/cache.c | 2 +-
sim/frv/cache.h | 2 +-
sim/frv/devices.c | 2 +-
sim/frv/frv-sim.h | 2 +-
sim/frv/frv.c | 4 +-
sim/frv/interrupts.c | 2 +-
sim/frv/memory.c | 2 +-
sim/frv/mloop.in | 2 +-
sim/frv/options.c | 2 +-
sim/frv/pipeline.c | 2 +-
sim/frv/profile-fr400.c | 3 +-
sim/frv/profile-fr400.h | 2 +-
sim/frv/profile-fr450.c | 2 +-
sim/frv/profile-fr500.c | 2 +-
sim/frv/profile-fr500.h | 2 +-
sim/frv/profile-fr550.c | 3 +-
sim/frv/profile-fr550.h | 3 +-
sim/frv/profile.c | 2 +-
sim/frv/profile.h | 2 +-
sim/frv/registers.c | 2 +-
sim/frv/registers.h | 3 +-
sim/frv/reset.c | 2 +-
sim/frv/sim-if.c | 2 +-
sim/frv/sim-main.h | 2 +-
sim/frv/traps.c | 2 +-
sim/h8300/Makefile.in | 2 +-
sim/igen/Makefile.in | 2 +-
sim/igen/compare_igen_models | 3 +-
sim/igen/filter.c | 2 +-
sim/igen/filter.h | 2 +-
sim/igen/filter_host.c | 2 +-
sim/igen/filter_host.h | 2 +-
sim/igen/gen-engine.c | 2 +-
sim/igen/gen-engine.h | 2 +-
sim/igen/gen-icache.c | 2 +-
sim/igen/gen-icache.h | 2 +-
sim/igen/gen-idecode.c | 2 +-
sim/igen/gen-idecode.h | 2 +-
sim/igen/gen-itable.c | 2 +-
sim/igen/gen-itable.h | 2 +-
sim/igen/gen-model.c | 2 +-
sim/igen/gen-model.h | 2 +-
sim/igen/gen-semantics.c | 2 +-
sim/igen/gen-semantics.h | 2 +-
sim/igen/gen-support.c | 2 +-
sim/igen/gen-support.h | 2 +-
sim/igen/gen.c | 2 +-
sim/igen/gen.h | 2 +-
sim/igen/igen.c | 2 +-
sim/igen/igen.h | 2 +-
sim/igen/ld-cache.c | 2 +-
sim/igen/ld-cache.h | 2 +-
sim/igen/ld-decode.c | 2 +-
sim/igen/ld-decode.h | 2 +-
sim/igen/ld-insn.c | 2 +-
sim/igen/ld-insn.h | 2 +-
sim/igen/lf.c | 2 +-
sim/igen/lf.h | 2 +-
sim/igen/misc.c | 2 +-
sim/igen/misc.h | 2 +-
sim/igen/table.c | 2 +-
sim/igen/table.h | 2 +-
sim/iq2000/Makefile.in | 3 +-
sim/iq2000/iq2000-sim.h | 2 +-
sim/iq2000/iq2000.c | 2 +-
sim/iq2000/mloop.in | 2 +-
sim/iq2000/sim-if.c | 3 +-
sim/lm32/dv-lm32cpu.c | 2 +-
sim/lm32/dv-lm32timer.c | 2 +-
sim/lm32/dv-lm32uart.c | 2 +-
sim/lm32/lm32-sim.h | 2 +-
sim/lm32/lm32.c | 2 +-
sim/lm32/sim-if.c | 2 +-
sim/lm32/sim-main.h | 2 +-
sim/lm32/traps.c | 2 +-
sim/lm32/user.c | 2 +-
sim/m32c/Makefile.in | 3 +-
sim/m32c/blinky.S | 3 +-
sim/m32c/configure.in | 3 +-
sim/m32c/cpu.h | 3 +-
sim/m32c/gdb-if.c | 3 +-
sim/m32c/gloss.S | 3 +-
sim/m32c/int.c | 3 +-
sim/m32c/int.h | 3 +-
sim/m32c/load.c | 3 +-
sim/m32c/load.h | 3 +-
sim/m32c/m32c.opc | 3 +-
sim/m32c/main.c | 3 +-
sim/m32c/mem.c | 3 +-
sim/m32c/mem.h | 3 +-
sim/m32c/misc.c | 3 +-
sim/m32c/misc.h | 3 +-
sim/m32c/opc2c.c | 3 +-
sim/m32c/r8c.opc | 3 +-
sim/m32c/reg.c | 3 +-
sim/m32c/safe-fgets.c | 3 +-
sim/m32c/safe-fgets.h | 3 +-
sim/m32c/sample.S | 3 +-
sim/m32c/sample.ld | 3 +-
sim/m32c/sample2.c | 3 +-
sim/m32c/srcdest.c | 3 +-
sim/m32c/syscalls.c | 3 +-
sim/m32c/syscalls.h | 3 +-
sim/m32c/trace.c | 3 +-
sim/m32c/trace.h | 3 +-
sim/m32r/Makefile.in | 2 +-
sim/m32r/devices.c | 2 +-
sim/m32r/m32r-sim.h | 2 +-
sim/m32r/m32r.c | 2 +-
sim/m32r/m32r2.c | 2 +-
sim/m32r/m32rx.c | 2 +-
sim/m32r/mloop.in | 2 +-
sim/m32r/mloop2.in | 2 +-
sim/m32r/mloopx.in | 2 +-
sim/m32r/sim-if.c | 2 +-
sim/m32r/traps-linux.c | 2 +-
sim/m32r/traps.c | 2 +-
sim/m68hc11/Makefile.in | 2 +-
sim/m68hc11/dv-m68hc11.c | 2 +-
sim/m68hc11/dv-m68hc11eepr.c | 2 +-
sim/m68hc11/dv-m68hc11sio.c | 2 +-
sim/m68hc11/dv-m68hc11spi.c | 2 +-
sim/m68hc11/dv-m68hc11tim.c | 2 +-
sim/m68hc11/dv-nvram.c | 2 +-
sim/m68hc11/emulos.c | 3 +-
sim/m68hc11/gencode.c | 2 +-
sim/m68hc11/interp.c | 4 +-
sim/m68hc11/interrupts.c | 2 +-
sim/m68hc11/interrupts.h | 2 +-
sim/m68hc11/m68hc11_sim.c | 2 +-
sim/m68hc11/sim-main.h | 2 +-
sim/mcore/Makefile.in | 4 +-
sim/mcore/interp.c | 2 +-
sim/mcore/sysdep.h | 3 +-
sim/microblaze/Makefile.in | 4 +-
sim/microblaze/interp.c | 2 +-
sim/microblaze/microblaze.h | 2 +-
sim/microblaze/microblaze.isa | 2 +-
sim/microblaze/sim-main.h | 2 +-
sim/microblaze/sysdep.h | 2 +-
sim/mips/cp1.c | 3 +-
sim/mips/cp1.h | 2 +-
sim/mips/dsp.c | 3 +-
sim/mips/dv-tx3904cpu.c | 3 +-
sim/mips/dv-tx3904irc.c | 3 +-
sim/mips/dv-tx3904sio.c | 2 +-
sim/mips/dv-tx3904tmr.c | 3 +-
sim/mips/mdmx.c | 3 +-
sim/mips/sim-main.h | 2 +-
sim/mn10300/Makefile.in | 2 +-
sim/mn10300/dv-mn103cpu.c | 3 +-
sim/mn10300/dv-mn103int.c | 3 +-
sim/mn10300/dv-mn103iop.c | 3 +-
sim/mn10300/dv-mn103ser.c | 3 +-
sim/mn10300/dv-mn103tim.c | 2 +-
sim/moxie/Makefile.in | 2 +-
sim/moxie/interp.c | 2 +-
sim/moxie/sim-main.h | 2 +-
sim/moxie/sysdep.h | 2 +-
sim/ppc/altivec_expression.h | 2 +-
sim/ppc/altivec_registers.h | 2 +-
sim/ppc/dp-bit.c | 3 +-
sim/ppc/e500_expression.h | 2 +-
sim/ppc/e500_registers.h | 2 +-
sim/ppc/gdb-sim.c | 3 +-
sim/rx/Makefile.in | 2 +-
sim/rx/configure.in | 3 +-
sim/rx/cpu.h | 3 +-
sim/rx/err.c | 2 +-
sim/rx/err.h | 2 +-
sim/rx/fpu.c | 2 +-
sim/rx/fpu.h | 2 +-
sim/rx/gdb-if.c | 2 +-
sim/rx/load.c | 3 +-
sim/rx/load.h | 2 +-
sim/rx/main.c | 3 +-
sim/rx/mem.c | 3 +-
sim/rx/mem.h | 3 +-
sim/rx/misc.c | 3 +-
sim/rx/misc.h | 3 +-
sim/rx/reg.c | 3 +-
sim/rx/rx.c | 2 +-
sim/rx/syscalls.c | 3 +-
sim/rx/syscalls.h | 3 +-
sim/rx/trace.c | 3 +-
sim/rx/trace.h | 3 +-
sim/sh/Makefile.in | 2 +-
sim/sh64/Makefile.in | 2 +-
sim/sh64/eng.h | 2 +-
sim/sh64/sh64-sim.h | 3 +-
sim/sh64/sh64.c | 2 +-
sim/sh64/sim-if.c | 2 +-
sim/testsuite/Makefile.in | 2 +-
sim/testsuite/common/bits-gen.c | 3 +-
sim/testsuite/d10v-elf/Makefile.in | 2 +-
sim/testsuite/frv-elf/Makefile.in | 3 +-
sim/testsuite/m32r-elf/Makefile.in | 3 +-
sim/testsuite/mips64el-elf/Makefile.in | 2 +-
sim/testsuite/sim/cris/asm/asm.exp | 3 +-
sim/testsuite/sim/cris/c/c.exp | 3 +-
sim/testsuite/sim/cris/hw/rv-n-cris/rvc.exp | 3 +-
sim/testsuite/sim/mips/testutils.inc | 3 +-
sim/testsuite/sim/mips/utils-dsp.inc | 3 +-
sim/testsuite/sim/mips/utils-fpu.inc | 3 +-
sim/testsuite/sim/mips/utils-mdmx.inc | 3 +-
sim/v850/Makefile.in | 2 +-
2561 files changed, 4746 insertions(+), 20226 deletions(-)
copy bfd/{ChangeLog => ChangeLog-2010} (100%)
copy gdb/{ChangeLog => ChangeLog-2010} (99%)
create mode 100644 gdb/testsuite/gdb.base/morestack.c
copy gdb/testsuite/gdb.base/{step-resume-infcall.exp => morestack.exp} (50%)
copy opcodes/{ChangeLog => ChangeLog-2010} (100%)
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 3d04a72..5a48a71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-01-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Sync from GCC:
+ 2010-12-22 Hariharan Sandanagobalane <hariharan@picochip.com>
+
+ * configure.ac: (picochip): Disable libiberty.
+ * configure: Regenerate.
+
2010-12-18 Jeff Johnston <jjohnstn@redhat.com>
* COPYING.LIBGLOSS: Remove the GPL for fr30 target.
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c486f58..0369051 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3558 +1,16 @@
-2010-12-31 Robert Millan <rmh@gnu.org>
-
- * config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu.
- * configure.host: Likewise.
- * configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec',
- `bfd_elf32_ntradlittlemips_freebsd_vec',
- `bfd_elf32_tradbigmips_freebsd_vec',
- `bfd_elf32_tradlittlemips_freebsd_vec',
- `bfd_elf64_tradbigmips_freebsd_vec' and
- `bfd_elf64_tradlittlemips_freebsd_vec'.
- * configure: Regenerate.
- * elf32-mips.c: New target for FreeBSD support
- (same as traditional MIPS but overrides ELF_OSABI
- with ELFOSABI_FREEBSD).
- * elf64-mips.c: Likewise.
- * elfn32-mips.c: Likewise.
- * targets.c (_bfd_target_vector): Add
- `bfd_elf32_ntradbigmips_freebsd_vec',
- `bfd_elf32_ntradlittlemips_freebsd_vec',
- `bfd_elf32_tradbigmips_freebsd_vec',
- `bfd_elf32_tradlittlemips_freebsd_vec',
- `bfd_elf64_tradbigmips_freebsd_vec' and
- `bfd_elf64_tradlittlemips_freebsd_vec'.
-
-2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
-
- * elfcode.h (NAME(elf,r_info)): New.
- (NAME(elf,r_sym)): Likewise.
-
- * elflink.c (elf64_r_info): Removed.
- (elf32_r_info): Likewise.
- (elf64_r_sym): Likewise.
- (elf32_r_sym): Likewise.
-
-2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
- (elf_backend_relocs_compatible): Defined to
- elf_x86_64_relocs_compatible.
-
-2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
-
- * archures.c (bfd_mach_x64_32): New.
- (bfd_mach_x64_32_intel_syntax): Likewise.
- * bfd-in2.h: Regenerated.
-
- * config.bfd (targ64_selvecs): Add bfd_elf32_x86_64_vec for
- i[3-7]86-*-linux-*.
- (targ_selvecs): Add bfd_elf32_x86_64_vec for x86_64-*-linux-*.
-
- * configure.in: Support bfd_elf32_x86_64_vec.
- * configure: Regenerated.
-
- * cpu-i386.c (bfd_x64_32_arch_intel_syntax): New.
+2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * cpu-i386.c (bfd_i386_compatible): New.
+ (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
+ with bfd_i386_compatible.
+ (bfd_x86_64_arch_intel_syntax): Likewise.
+ (bfd_i386_arch_intel_syntax): Likewise.
+ (i8086_arch): Likewise.
(bfd_x64_32_arch): Likewise.
+ (bfd_x86_64_arch): Likewise.
+ (bfd_i386_arch): Likewise.
- * elf-bfd.h (elf_append_rela): New prototype.
- (elf_append_rel): Likewise.
- (elf64_r_info): Likewise.
- (elf32_r_info): Likewise.
- (elf64_r_sym): Likewise.
- (elf32_r_sym): Likewise.
-
- * elf64-x86-64.c (ABI_64_P): New.
- (elf_x86_64_info_to_howto): Replace ELF64_R_TYPE with
- ELF32_R_TYPE. Replace ELF64_ST_TYPE with ELF_ST_TYPE.
- (elf_x86_64_check_tls_transition):Likewise.
- (elf_x86_64_check_relocs): Likewise.
- (elf_x86_64_gc_mark_hook):Likewise.
- (elf_x86_64_gc_sweep_hook): Likewise.
- (elf_x86_64_relocate_section): Likewise.
- (elf_x86_64_reloc_type_class): Likewise.
- (ELF_DYNAMIC_INTERPRETER): Renamed to ...
- (ELF64_DYNAMIC_INTERPRETER): This.
- (ELF32_DYNAMIC_INTERPRETER): New.
- (elf_x86_64_link_hash_table): Add r_info, r_sym, swap_reloca_out,
- dynamic_interpreter and dynamic_interpreter_size.
- (elf_x86_64_get_local_sym_hash): Replace ELF64_R_SYM with
- htab->r_sym. Replace ELF64_R_INFO with htab->r_info.
- (elf_x86_64_get_local_sym_hash): Likewise.
- (elf_x86_64_check_tls_transition):Likewise.
- (elf_x86_64_check_relocs): Likewise.
- (elf_x86_64_gc_mark_hook):Likewise.
- (elf_x86_64_gc_sweep_hook): Likewise.
- (elf_x86_64_relocate_section): Likewise.
- (elf_x86_64_finish_dynamic_symbol): Likewise.
- (elf_x86_64_finish_local_dynamic_symbol): Likewise.
- (elf_x86_64_link_hash_table_create): Initialize r_info, r_sym,
- swap_reloca_out, dynamic_interpreter and dynamic_interpreter_size.
- (elf_x86_64_check_relocs): Check ABI_64_P when requesting for
- PIC.
- (elf_x86_64_relocate_section): Likewise.
- (elf64_x86_64_adjust_dynamic_symbol): Replace sizeof
- (Elf64_External_Rela) with bed->s->sizeof_rela.
- (elf64_x86_64_allocate_dynrelocs): Likewise.
- (elf64_x86_64_size_dynamic_sections): Likewise.
- (elf64_x86_64_finish_dynamic_symbol): Likewise.
- (elf64_x86_64_append_rela): Removed.
- (elf32_x86_64_elf_object_p): New.
- Add bfd_elf32_x86_64_vec.
-
- * elf64-x86-64.c (elf64_x86_64_xxx): Renamed to ...
- (elf_x86_64_xxx): This.
-
- * elflink.c (bfd_elf_final_link): Check ELF file class on error.
- (elf_append_rela): New.
- (elf_append_rel): Likewise.
- (elf64_r_info): Likewise.
- (elf32_r_info): Likewise.
- (elf64_r_sym): Likewise.
- (elf32_r_sym): Likewise.
-
- * targets.c (bfd_elf32_x86_64_vec): New.
- (_bfd_target_vector): Add bfd_elf32_x86_64_vec.
-
-2010-12-24 Alan Modra <amodra@gmail.com>
-
- * compress.c (decompress_contents): Style.
- (bfd_get_full_section_contents): Do not decompress directly into
- caller buffer or directly return cached section contents.
- Check malloc return for compressed_buffer.
-
-2010-12-21 Kai Tietz <kai.tietz@onevision.com>
-
- * peXXigen.c (_bfd_XXi_final_link_postscript): Use
- bfd_get_symbol_leading_char to determine "_tls_used" name.
-
-2010-12-21 Pierre Muller <muller@ics.u-strasbg.fr>
-
- * peXXigen.c (_bfd_XXi_final_link_postscript): Use correct size
- for windows 64-bit TLS table size.
-
-2010-12-16 DJ Delorie <dj@redhat.com>
-
- * reloc.c (BFD_RELOC_RX_ABS16_REV): Add.
- (BFD_RELOC_RX_ABS32_REV): Add.
- * bfd-in2.h: Regenerate.
- * libbfd.h: Regenerate.
- * elf32-rx.c (rx_reloc_map): Add them.
-
-2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf.c (_bfd_elf_new_section_hook): Special handling for
- .init_array/.fini_array output sections.
-
-2010-12-13 Alan Modra <amodra@gmail.com>
-
- * aoutx.h (aout_link_check_ar_symbols): Formatting.
- * cofflink.c (coff_link_check_ar_symbols): Likewise.
- * elflink.c (elf_link_add_archive_symbols): Likewise.
- * pdp11.c (aout_link_check_ar_symbols): Likewise.
- * xcofflink.c (xcoff_link_check_dynamic_ar_symbols,
- xcoff_link_check_dynamic_ar_symbols): Likewise.
-
- * aoutx.h (aout_link_check_archive_element): Simplify code dealing
- with add_archive_element substitute BFD.
- * cofflink.c (coff_link_check_archive_element): Likewise.
- * ecoff.c (ecoff_link_check_archive_element): Likewise.
- (ecoff_link_add_archive_symbols): Likewise.
- * linker.c (generic_link_check_archive_element): Likewise.
- * pdp11.c (aout_link_check_archive_element): Likewise.
- * vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
- * xcofflink.c (xcoff_link_check_archive_element): Likewise.
-
- * aoutx.h (aout_link_check_archive_element): Free symbols from old
- bfd if !keep_memory.
- * cofflink.c (coff_link_check_archive_element): Likewise.
- * pdp11.c (aout_link_check_archive_element): Likewise.
- * xcofflink.c (xcoff_link_check_archive_element): Likewise.
-
-2010-12-13 Alan Modra <amodra@gmail.com>
-
- * plugin.c (bfd_plugin_mkobject): Delete.
- (plugin_vec): Use bfd_false instead.
-
-2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
-
- * elflink.c (elf_link_add_archive_symbols): Remove subsbfd.
-
-2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf.c (special_sections_g): Add ".gnu.lto_".
-
-2010-12-10 Alan Modra <amodra@gmail.com>
-
- * config.bfd: Configure rs6000-*-aix* as for powerpc-*-aix*.
- Add aix5coff64_vec to powerpc ELF entries.
-
-2010-12-09 Mike Frysinger <vapier@gentoo.org>
-
- * .gitignore: New file.
-
-2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
-
- PR ld/12288
- * plugin.c (message): Add putchar for the trailing `\n'.
-
-2010-12-04 Mike Frysinger <vapier@gentoo.org>
-
- * Makefile.am (!INSTALL_LIBBFD/bfdinclude_HEADERS): Set to nothing.
- (PLUGINS/bfdinclude_HEADERS): Append plugin-api.h.
- * Makefile.in: Regenerated.
-
-2010-12-04 Alan Modra <amodra@gmail.com>
-
- PR ld/12277
- * elflink.c (elf_link_output_extsym): Set bfd_error on symbol
- and section errors. Allow better translation of error messages.
-
-2010-12-02 Richard Sandiford <richard.sandiford@linaro.org>
-
- * elf32-arm.c (elf32_arm_link_hash_table): Remove sgot, sgotplt,
- srelgot, splt, srelplt.
- (create_got_section, elf32_arm_link_hash_table_create): Don't set them.
- (elf32_arm_create_dynamic_sections): Likewise. Use htab->root
- fields instead.
- (arm_type_of_stub): Use the root fields instead of the removed ones.
- (cortex_a8_erratum_scan, elf32_arm_size_stubs): Likewise.
- (bfd_elf32_arm_process_before_allocation): Likewise.
- (elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
- (elf32_arm_size_dynamic_sections): Likewise.
- (elf32_arm_output_arch_local_syms): Likewise.
- (elf32_arm_final_link_relocate): Set sgot, splt and srelgot from the
- htab fields instead of looking them up by name. Consistently use
- these local variables instead of htab fields.
- (elf32_arm_finish_dynamic_symbol): Likewise sgot, splt and srel.
- Use srelbss instead of looking it up by name.
- (elf32_arm_finish_dynamic_sections): Use sgotplt, splt and srelplt
- instead of looking up the symbols by name. Use the root fields
- instead of the removed ones.
-
-2010-12-02 Richard Sandiford <richard.sandiford@linaro.org>
-
- * elf32-arm.c (elf32_arm_relocs_copied): Delete.
- (elf32_arm_link_hash_entry): Replace relocs_copied with dyn_relocs.
- (elf32_arm_link_hash_newfunc): Update accordingly.
- (elf32_arm_copy_indirect_symbol, elf32_arm_gc_sweep_hook): Likewise.
- (elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
- (elf32_arm_readonly_dynrelocs): Likewise.
- (elf32_arm_size_dynamic_sections): Likewise.
-
-2010-12-02 Paul Koning <ni1d@arrl.net>
-
- * pdp11.c (aout_link_add_symbols): Ignore debug symbols.
-
-2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * config.bfd: Add sparc64-rtems.
-
-2010-11-25 Alan Modra <amodra@gmail.com>
-
- * po/es.po: Update.
- * po/fi.po: Update.
- * po/fr.po: Update.
- * po/ja.po: Update.
- * po/zh_CN.po: Update.
-
-2010-11-24 Joel Brobecker <brobecker@adacore.com>
-
- * Makefile.am (OPTIONAL_BACKENDS): Add rs6000-core.lo.
- (OPTIONAL_BACKENDS_CFILES): Add rs6000-core.c.
- * Makefile.in: Regenerate.
-
-2010-11-24 Alan Modra <amodra@gmail.com>
-
- PR ld/12253
- * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct
- DW_EH_PE_datarel handling. Truncate .eh_frame_hdr address to
- ptr_size.
-
-2010-11-23 Mingming Sun <mingm.sun@gmail.com>
-
- * elfxx-mips.c (mips_set_isa_flags): Move bfd_mach_loongson_3a
- after bfd_mach_mips_sb1.
-
-2010-11-17 Tristan Gingold <gingold@adacore.com>
-
- * vms-lib.c (vms_write_index): Add comments.
- Partially revert previous patch. Free blocks later.
-
-2010-11-17 Nick Clifton <nickc@redhat.com>
-
- PR ld/12161
- * elf32-avr.c (elf32_avr_check_relocs): Delete.
- (elf_backend_check_relocs): Delete.
-
-2010-11-16 Jie Zhang <jie.zhang@analog.com>
-
- * elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
- (elf32_bfin_data_in_l1): New variable.
- (elf32_bfin_final_write_processing): New.
- (elf_backend_final_write_processing): Define.
-
-2010-11-15 Mike Frysinger <vapier@gentoo.org>
-
- PR binutils/12177
- * elf32-bfin.c (_bfin_create_got_section): Drop unused flags code.
-
-2010-11-12 H.J. Lu <hongjiu.lu@intel.com>
-
- * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS and
- BFD_DECOMPRESS.
- (bfd_openr_next_archived_file): Revert the last change.
-
-2010-11-11 Mingming Sun <mingm.sun@gmail.com>
-
- * archures.c (bfd_mach_mips_loongson_3a): Defined.
- * bfd-in2.h (bfd_mach_mips_loongson_3a): Defined.
- * cpu-mips.c (I_loongson_3a): New add.
- (arch_info_struct): Add loongson_3a.
- * elfxx-mips.c (_bfd_elf_mips_mach): Add loongson_3a.
- (mips_set_isa_flags): Add loongson_3a.
- (mips_mach_extensions): Add loongson_3a in MIPS64 extensions.
-
-2010-11-10 Richard Sandiford <richard.sandiford@linaro.org>
-
- * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove unused
- variables.
-
-2010-11-10 Nick Clifton <nickc@redhat.com>
-
- * po/ja.po: Updated Japanese translation.
- * po/ru.po: Updated Russian translation.
-
-2010-11-08 Nick Clifton <nickc@redhat.com>
-
- * po/ja.po: Updated Japanese translation.
-
-2010-11-08 Alan Modra <amodra@gmail.com>
-
- * hash.c (bfd_hash_hash): Extract from..
- (bfd_hash_lookup): ..here.
- (bfd_hash_rename): New function.
- * section.c (bfd_rename_section): New function.
- * bfd-in.h (bfd_hash_rename): Declare.
- * bfd-in2.h: Regenerate.
- * elf.c (_bfd_elf_make_section_from_shdr): Rename input sections
- when compressing or decompressing. Don't assert name match.
- * elf64-hppa.c (get_reloc_section): Don't assert name match.
- * elfxx-ia64.c (get_reloc_section): Likewise.
-
-2010-11-05 Joseph Myers <joseph@codesourcery.com>
-
- * elf32-tic6x.c (elf32_tic6x_obj_attrs_handle_unknown): New.
- (elf32_tic6x_merge_attributes): Use
- _bfd_elf_merge_unknown_attribute_low and
- _bfd_elf_merge_unknown_attribute_list.
- (elf_backend_obj_attrs_handle_unknown): Define.
-
-2010-11-05 Joseph Myers <joseph@codesourcery.com>
-
- * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
- _bfd_elf_merge_unknown_attribute_list): Correct test for matching
- string attributes.
-
-2010-11-05 Tristan Gingold <gingold@adacore.com>
-
- * po/bfd.pot: Regenerate
-
-2010-11-05 Tristan Gingold <gingold@adacore.com>
-
- * configure.in: Bump version to 2.21.51
- * configure: Regenerate.
-
-2010-11-04 Maciej W. Rozycki <macro@codesourcery.com>
-
- PR ld/10144
- * elfxx-mips.c (_bfd_mips_elf_check_relocs)
- [R_MIPS_32, R_MIPS_REL32, R_MIPS_64]: Ignore relocs from
- SEC_DEBUGGING sections.
-
-2010-11-04 Tristan Gingold <gingold@adacore.com>
-
- * vms-lib.c (vms_write_index): Fix thinko: reverse the loop.
- Use bfd_zmalloc instead of bfd_malloc. Fix comment.
-
-2010-11-04 Kai Tietz <kai.tietz@onevision.com>
-
- * coffcode.h (GNU_LINKONCE_WT): New.
- (sec_to_styp_flags): Add handling of new debug
- section.
- (styp_to_sec_flags): Likewise.
-
-2010-11-04 Tristan Gingold <gingold@adacore.com>
-
- * makefile.vms (CFLAGS): Make badalias warnings informational.
- * vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
-
-2010-11-04 Joseph Myers <joseph@codesourcery.com>
-
- * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
- _bfd_elf_merge_unknown_attribute_list): New.
- * elf-bfd.h (struct elf_backend_data): Add
- obj_attrs_handle_unknown.
- (_bfd_elf_merge_unknown_attribute_low,
- _bfd_elf_merge_unknown_attribute_list): Declare.
- * elf32-arm.c (elf32_arm_obj_attrs_handle_unknown): New. Split
- out from elf32_arm_merge_eabi_attributes.
- (elf32_arm_merge_eabi_attributes): Use
- _bfd_elf_merge_unknown_attribute_low and
- _bfd_elf_merge_unknown_attribute_list.
- (elf_backend_obj_attrs_handle_unknown): Define.
- * elfxx-target.h (elf_backend_obj_attrs_handle_unknown): Define.
- (elfNN_bed): Update initializer.
-
-2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
-
- * bfd.c (BFD_FLAGS_FOR_BFD_USE_MASK): New.
- * bfd-in2.h: Regenerated.
-
-2010-11-02 Joseph Myers <joseph@codesourcery.com>
-
- * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Except for
- Tag_ABI_compatibility, treat odd tags as strings and even ones as
- integers.
- (elf32_tic6x_obj_attrs_order, elf32_tic6x_tag_to_array_alignment,
- elf32_tic6x_array_alignment_to_tag): New.
- (elf32_tic6x_merge_attributes): Handle more attributes. Set type
- for merged attributes.
- (elf_backend_obj_attrs_order): Define.
-
-2010-10-29 Maciej W. Rozycki <macro@codesourcery.com>
-
- * elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.
-
-2010-10-29 Pawel Sikora <pluto@pld-linux.org>
-
- PR binutils/12075
- * compress.c (bfd_compress_section_contents): Use uLong on
- compressed_size.
-
-2010-10-29 Joseph Myers <joseph@codesourcery.com>
-
- * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check
- Tag_ABI_compatibility not Tag_compatibility.
- (elf32_tic6x_merge_attributes): Update compatibility attribute
- name in comment. Return FALSE if merging common attributes fails.
-
-2010-10-29 Nick Clifton <nickc@redhat.com>
-
- PR bintils/6962
- * coffcode.h (handle_COMDAT): Only check the base type when
- looking for a section symbol.
-
-2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
- Cary Coutant <ccoutant@google.com>
-
- * archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
- and BFD_DECOMPRESS.
-
- * bfd.c (BFD_COMPRESS): New.
- (BFD_DECOMPRESS): Likewise.
- (BFD_FLAGS_SAVED): Likewise.
- (bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.
-
- * compress.c (bfd_uncompress_section_contents): Removed.
- (get_uncompressed_size): New.
- (decompress_contents): Likewise.
- (bfd_compress_section_contents): Likewise.
- (bfd_get_full_section_contents): Likewise.
- (bfd_is_section_compressed): Likewise.
- (bfd_init_section_decompress_status): Likewise.
- (bfd_init_section_compress_status): Likewise.
-
- * dwarf2.c (dwarf_debug_sections): New.
- (dwarf_debug_section_enum): Likewise.
- (read_section): Remove section_name and compressed_section_name.
- Add dwarf_debug_section_enum. Try compressed debug section.
- (read_indirect_string): Updated.
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-31 22:30 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-12-31 22:30 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via d3cf99efbd69d1713af02f445f361e475c905f80 (commit)
via 063d51569a462844484401166c2fb3a46691668a (commit)
via 76c889a35e18796c235dd690f0bc9ed6b89e61e6 (commit)
via cfe876923224be1f46d60aa69d655dfec1768a6c (commit)
via 81739b404bb6e4c3a459e6fc4b707e4eab80eae1 (commit)
via 8fe80dd2edd866c0e1192f98ee36058af4048879 (commit)
via 66ca0ee28888b8575bb404f861255e1db83161b2 (commit)
via 8aefc2ca418cc5dfac6ac1a0d10d5650bd9aa027 (commit)
via 30a2b1ae93bae347f55202e06e2018fef3a1a40e (commit)
via 3425331568060820fe70c1a0850f125a5ca9901e (commit)
from dd2092437258c4ea93d4626f094446eed31b2fa0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit d3cf99efbd69d1713af02f445f361e475c905f80
Merge: dd20924 063d515
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Dec 31 23:30:46 2010 +0100
Merge remote branch 'gdb/master'
commit 063d51569a462844484401166c2fb3a46691668a
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Dec 31 19:16:35 2010 +0000
2010-12-31 Michael Snyder <msnyder@vmware.com>
* annotate.c: Comment cleanup, shorten long lines.
* arch-utils.c: Ditto.
* arch-utils.h: Ditto.
* auxv.c: Ditto.
* auxv.h: Ditto.
* ax-gdb.c: Ditto.
* ax-gdb.h: Ditto.
* ax-general.c: Ditto.
* breakpoint.h: Ditto.
* buildsym.h: Ditto.
commit 76c889a35e18796c235dd690f0bc9ed6b89e61e6
Author: Dave Anglin <dave.anglin@nrc.ca>
Date: Fri Dec 31 16:43:44 2010 +0000
PR gas/11395
* config/tc-hppa.c (pa_ip): Revert last change. Add variable need_cond
to determine whether a 64-bit condition is needed for 'A' and 'S'
conditions. Default to 32-bit never condition for logical and unit
instructions. Add error message for missing branch on bit condition.
* hppa.h (pa_opcodes): Revert last change. Exchange 32 and 64-bit
"bb" entries.
* hppa-dis.c (compare_cond_64_names): Change never condition to ",*".
(add_cond_64_names): Likewise.
(logical_cond_64_names): Likewise.
(unit_cond_64_names): Likewise.
commit cfe876923224be1f46d60aa69d655dfec1768a6c
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Fri Dec 31 11:00:52 2010 +0000
bfd/
2010-12-23 Robert Millan <rmh@gnu.org>
* config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.host: Likewise.
* configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.
* configure: Regenerate.
* elf32-mips.c: New target for FreeBSD support
(same as traditional MIPS but overrides ELF_OSABI
with ELFOSABI_FREEBSD).
* elf64-mips.c: Likewise.
* elfn32-mips.c: Likewise.
* targets.c (_bfd_target_vector): Add
`bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.
ld/
2010-12-14 Robert Millan <rmh@gnu.org>
* configure.tgt: Recognize mips-freebsd and mips-kfreebsd-gnu.
* emulparams/elf32btsmip_fbsd.sh: New file.
* emulparams/elf32btsmipn32_fbsd.sh: Likewise.
* emulparams/elf32ltsmip_fbsd.sh: Likewise.
* emulparams/elf32ltsmipn32_fbsd.sh: Likewise.
* emulparams/elf64btsmip_fbsd.sh: Likewise.
* emulparams/elf64ltsmip_fbsd.sh: Likewise.
* Makefile.am: Add build rules for `eelf32btsmip_fbsd.c',
`eelf32btsmipn32_fbsd.c', `eelf32ltsmip_fbsd.c',
`eelf32ltsmipn32_fbsd.c', `eelf64btsmip_fbsd.c' and
`eelf64ltsmip_fbsd.c'.
* Makefile.in: Regenerate.
gas/
2010-12-19 Robert Millan <rmh@gnu.org>
Richard Sandiford <rdsandiford@googlemail.com>
* config/tc-mips.c (ELF_TARGET): New macro. Generates target
names accordingly to whether TE_FreeBSD and whether TE_TMIPS
are defined.
(mips_target_format): Refactor code using ELF_TARGET().
(support_64bit_objects): Likewise.
* configure.in: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.tgt: Likewise.
* configure: Regenerate.
binutils/testsuite/
* binutils-all/readelf.exp: Handle MIPS FreeBSD targets.
gas/testsuite/
* gas/mips/e32el-rel2.d: Accept any file format.
* gas/mips/elf-rel.d: Likewise.
* gas/mips/elf-rel2.d: Likewise.
* gas/mips/elf-rel3.d: Likewise.
* gas/mips/elfel-rel.d: Likewise.
* gas/mips/elfel-rel2.d: Likewise.
* gas/mips/elfel-rel3.d: Likewise.
* gas/mips/ldstla-32-mips3-shared.d: Likewise.
* gas/mips/ldstla-32-mips3.d: Likewise.
* gas/mips/ldstla-32-shared.d: Likewise.
* gas/mips/ldstla-32.d: Likewise.
* gas/mips/ldstla-n64-shared.d: Likewise.
* gas/mips/ldstla-n64.d: Likewise.
* gas/mips/noat-1.d: Likewise.
* gas/mips/set-arch.d: Likewise.
* gas/mips/tls-o32.d: Likewise.
ld/testsuite/
* ld-mips-elf/mips-elf-flags.exp: Handle FreeBSD targets.
* ld-mips-elf/mips-elf.exp: Likewise.
* ld-mips-elf/mips16-call-global.d: Accept any file format.
* ld-mips-elf/mips16-intermix.d: Likewise.
commit 81739b404bb6e4c3a459e6fc4b707e4eab80eae1
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Dec 31 02:43:20 2010 +0000
Move elfXX_r_info/elfXX_r_sym to elfcode.h.
2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
* elfcode.h (NAME(elf,r_info)): New.
(NAME(elf,r_sym)): Likewise.
* elflink.c (elf64_r_info): Removed.
(elf32_r_info): Likewise.
(elf64_r_sym): Likewise.
(elf32_r_sym): Likewise.
commit 8fe80dd2edd866c0e1192f98ee36058af4048879
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Dec 31 00:34:59 2010 +0000
Add elf_x86_64_relocs_compatible.
2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
(elf_backend_relocs_compatible): Defined to
elf_x86_64_relocs_compatible.
commit 66ca0ee28888b8575bb404f861255e1db83161b2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Dec 31 00:33:30 2010 +0000
Add x86-64 ILP32 support.
bfd/
2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
* archures.c (bfd_mach_x64_32): New.
(bfd_mach_x64_32_intel_syntax): Likewise.
* bfd-in2.h: Regenerated.
* config.bfd (targ64_selvecs): Add bfd_elf32_x86_64_vec for
i[3-7]86-*-linux-*.
(targ_selvecs): Add bfd_elf32_x86_64_vec for x86_64-*-linux-*.
* configure.in: Support bfd_elf32_x86_64_vec.
* configure: Regenerated.
* cpu-i386.c (bfd_x64_32_arch_intel_syntax): New.
(bfd_x64_32_arch): Likewise.
* elf-bfd.h (elf_append_rela): New prototype.
(elf_append_rel): Likewise.
(elf64_r_info): Likewise.
(elf32_r_info): Likewise.
(elf64_r_sym): Likewise.
(elf32_r_sym): Likewise.
* elf64-x86-64.c (ABI_64_P): New.
(elf_x86_64_info_to_howto): Replace ELF64_R_TYPE with
ELF32_R_TYPE. Replace ELF64_ST_TYPE with ELF_ST_TYPE.
(elf_x86_64_check_tls_transition):Likewise.
(elf_x86_64_check_relocs): Likewise.
(elf_x86_64_gc_mark_hook):Likewise.
(elf_x86_64_gc_sweep_hook): Likewise.
(elf_x86_64_relocate_section): Likewise.
(elf_x86_64_reloc_type_class): Likewise.
(ELF_DYNAMIC_INTERPRETER): Renamed to ...
(ELF64_DYNAMIC_INTERPRETER): This.
(ELF32_DYNAMIC_INTERPRETER): New.
(elf_x86_64_link_hash_table): Add r_info, r_sym, swap_reloca_out,
dynamic_interpreter and dynamic_interpreter_size.
(elf_x86_64_get_local_sym_hash): Replace ELF64_R_SYM with
htab->r_sym. Replace ELF64_R_INFO with htab->r_info.
(elf_x86_64_get_local_sym_hash): Likewise.
(elf_x86_64_check_tls_transition):Likewise.
(elf_x86_64_check_relocs): Likewise.
(elf_x86_64_gc_mark_hook):Likewise.
(elf_x86_64_gc_sweep_hook): Likewise.
(elf_x86_64_relocate_section): Likewise.
(elf_x86_64_finish_dynamic_symbol): Likewise.
(elf_x86_64_finish_local_dynamic_symbol): Likewise.
(elf_x86_64_link_hash_table_create): Initialize r_info, r_sym,
swap_reloca_out, dynamic_interpreter and dynamic_interpreter_size.
(elf_x86_64_check_relocs): Check ABI_64_P when requesting for
PIC.
(elf_x86_64_relocate_section): Likewise.
(elf64_x86_64_adjust_dynamic_symbol): Replace sizeof
(Elf64_External_Rela) with bed->s->sizeof_rela.
(elf64_x86_64_allocate_dynrelocs): Likewise.
(elf64_x86_64_size_dynamic_sections): Likewise.
(elf64_x86_64_finish_dynamic_symbol): Likewise.
(elf64_x86_64_append_rela): Removed.
(elf32_x86_64_elf_object_p): New.
Add bfd_elf32_x86_64_vec.
* elf64-x86-64.c (elf64_x86_64_xxx): Renamed to ...
(elf_x86_64_xxx): This.
* elflink.c (bfd_elf_final_link): Check ELF file class on error.
(elf_append_rela): New.
(elf_append_rel): Likewise.
(elf64_r_info): Likewise.
(elf32_r_info): Likewise.
(elf64_r_sym): Likewise.
(elf32_r_sym): Likewise.
* targets.c (bfd_elf32_x86_64_vec): New.
(_bfd_target_vector): Add bfd_elf32_x86_64_vec.
gas/
2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (x86_elf_abi): New.
(i386_mach): Return bfd_mach_x64_32 for ILP32.
(OPTION_N32): Likewise.
(md_longopts): Add "n32" for ELF.
(md_parse_option): Handle OPTION_N32.
(md_show_usage): Add --n32.
(i386_target_format): Update and check x86_elf_abi.
* config/tc-i386.h (ELF_TARGET_FORMAT32): New.
* doc/as.texinfo: Document --n32.
* doc/c-i386.texi: Likewise.
gas/testsuite/
2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/ilp32/lns/ilp32.exp: New.
* gas/i386/ilp32/lns/lns-common-1.d: Likewise.
* gas/i386/ilp32/lns/lns-duplicate.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-1.d: New.
* gas/i386/ilp32/cfi/cfi-common-2.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-3.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-4.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-5.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-6.d: Likewise.
* gas/i386/ilp32/cfi/cfi-common-7.d: Likewise.
* gas/i386/ilp32/cfi/cfi-x86_64.d: Likewise.
* gas/i386/ilp32/cfi/ilp32.exp: Likewise.
* gas/i386/ilp32/elf/ehopt0.d: Likewise.
* gas/i386/ilp32/elf/equ-reloc.d: Likewise.
* gas/i386/ilp32/elf/file.d: Likewise.
* gas/i386/ilp32/elf/group0a.d: Likewise.
* gas/i386/ilp32/elf/group0b.d: Likewise.
* gas/i386/ilp32/elf/group1a.d: Likewise.
* gas/i386/ilp32/elf/group1b.d: Likewise.
* gas/i386/ilp32/elf/ifunc-1.d: Likewise.
* gas/i386/ilp32/elf/ilp32.exp: Likewise.
* gas/i386/ilp32/elf/redef.d: Likewise.
* gas/i386/ilp32/elf/section0.d: Likewise.
* gas/i386/ilp32/elf/section1.d: Likewise.
* gas/i386/ilp32/elf/section3.d: Likewise.
* gas/i386/ilp32/elf/section4.d: Likewise.
* gas/i386/ilp32/elf/section6.d: Likewise.
* gas/i386/ilp32/elf/section7.d: Likewise.
* gas/i386/ilp32/elf/struct.d: Likewise.
* gas/i386/ilp32/elf/symtab.d: Likewise.
* gas/i386/ilp32/elf/symver.d: Likewise.
* gas/i386/ilp32/ilp32.exp: New.
* gas/i386/ilp32/immed64.d: Likewise.
* gas/i386/ilp32/mixed-mode-reloc64.d: Likewise.
* gas/i386/ilp32/reloc64.d: Likewise.
* gas/i386/ilp32/rex.d: Likewise.
* gas/i386/ilp32/rexw.d: Likewise.
* gas/i386/ilp32/svme64.d: Likewise.
* gas/i386/ilp32/x86-64-addr32.d: Likewise.
* gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
* gas/i386/ilp32/x86-64-aes.d: Likewise.
* gas/i386/ilp32/x86-64-aes-intel.d: Likewise.
* gas/i386/ilp32/x86-64-amdfam10.d: Likewise.
* gas/i386/ilp32/x86-64-arch-1.d: Likewise.
* gas/i386/ilp32/x86-64-arch-2.d: Likewise.
* gas/i386/ilp32/x86-64-avx.d: Likewise.
* gas/i386/ilp32/x86-64-avx-intel.d: Likewise.
* gas/i386/ilp32/x86-64-avx-swap.d: Likewise.
* gas/i386/ilp32/x86-64-avx-swap-intel.d: Likewise.
* gas/i386/ilp32/x86-64-branch.d: Likewise.
* gas/i386/ilp32/x86-64-cbw.d: Likewise.
* gas/i386/ilp32/x86-64-cbw-intel.d: Likewise.
* gas/i386/ilp32/x86-64-clmul.d: Likewise.
* gas/i386/ilp32/x86-64-clmul-intel.d: Likewise.
* gas/i386/ilp32/x86-64-crc32.d: Likewise.
* gas/i386/ilp32/x86-64-crc32-intel.d: Likewise.
* gas/i386/ilp32/x86-64-crx.d: Likewise.
* gas/i386/ilp32/x86-64-crx-suffix.d: Likewise.
* gas/i386/ilp32/x86-64.d: Likewise.
* gas/i386/ilp32/x86-64-disp.d: Likewise.
* gas/i386/ilp32/x86-64-disp-intel.d: Likewise.
* gas/i386/ilp32/x86-64-drx.d: Likewise.
* gas/i386/ilp32/x86-64-drx-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-ept.d: Likewise.
* gas/i386/ilp32/x86-64-ept-intel.d: Likewise.
* gas/i386/ilp32/x86-64-fma4.d: Likewise.
* gas/i386/ilp32/x86-64-fma.d: Likewise.
* gas/i386/ilp32/x86-64-fma-intel.d: Likewise.
* gas/i386/ilp32/x86-64-gidt.d: Likewise.
* gas/i386/ilp32/x86-64-ifunc.d: Likewise.
* gas/i386/ilp32/x86-64-intel64.d: Likewise.
* gas/i386/ilp32/x86-64-io.d: Likewise.
* gas/i386/ilp32/x86-64-io-intel.d: Likewise.
* gas/i386/ilp32/x86-64-io-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-localpic.d: Likewise.
* gas/i386/ilp32/x86-64-mem.d: Likewise.
* gas/i386/ilp32/x86-64-mem-intel.d: Likewise.
* gas/i386/ilp32/x86-64-movbe.d: Likewise.
* gas/i386/ilp32/x86-64-movbe-intel.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1-nocona.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1-pentium.d: Likewise.
* gas/i386/ilp32/x86-64-nops-2.d: Likewise.
* gas/i386/ilp32/x86-64-nops-3.d: Likewise.
* gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
* gas/i386/ilp32/x86-64-nops-4.d: Likewise.
* gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise.
* gas/i386/ilp32/x86-64-nops-5.d: Likewise.
* gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
* gas/i386/ilp32/x86-64-nops.d: Likewise.
* gas/i386/ilp32/x86-64-opcode.d: Likewise.
* gas/i386/ilp32/x86-64-opcode-inval.d: Likewise.
* gas/i386/ilp32/x86-64-opcode-inval-intel.d: Likewise.
* gas/i386/ilp32/x86-64-opts.d: Likewise.
* gas/i386/ilp32/x86-64-opts-intel.d: Likewise.
* gas/i386/ilp32/x86-64-pcrel.d: Likewise.
* gas/i386/ilp32/x86-64-reg.d: Likewise.
* gas/i386/ilp32/x86-64-reg-intel.d: Likewise.
* gas/i386/ilp32/x86-64-rep.d: Likewise.
* gas/i386/ilp32/x86-64-rep-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-rip.d: Likewise.
* gas/i386/ilp32/x86-64-rip-intel.d: Likewise.
* gas/i386/ilp32/x86-64-sib.d: Likewise.
* gas/i386/ilp32/x86-64-sib-intel.d: Likewise.
* gas/i386/ilp32/x86-64-simd.d: Likewise.
* gas/i386/ilp32/x86-64-simd-intel.d: Likewise.
* gas/i386/ilp32/x86-64-simd-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-sse2avx.d: Likewise.
* gas/i386/ilp32/x86-64-sse2avx-opts.d: Likewise.
* gas/i386/ilp32/x86-64-sse2avx-opts-intel.d: Likewise.
* gas/i386/ilp32/x86-64-sse3.d: Likewise.
* gas/i386/ilp32/x86-64-sse4_1.d: Likewise.
* gas/i386/ilp32/x86-64-sse4_1-intel.d: Likewise.
* gas/i386/ilp32/x86-64-sse4_2.d: Likewise.
* gas/i386/ilp32/x86-64-sse4_2-intel.d: Likewise.
* gas/i386/ilp32/x86-64-sse-check.d: Likewise.
* gas/i386/ilp32/x86-64-sse-check-none.d: Likewise.
* gas/i386/ilp32/x86-64-sse-check-warn.d: Likewise.
* gas/i386/ilp32/x86-64-sse-noavx.d: Likewise.
* gas/i386/ilp32/x86-64-ssse3.d: Likewise.
* gas/i386/ilp32/x86-64-stack.d: Likewise.
* gas/i386/ilp32/x86-64-stack-intel.d: Likewise.
* gas/i386/ilp32/x86-64-stack-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-unwind.d: Likewise.
* gas/i386/ilp32/x86-64-vmx.d: Likewise.
* gas/i386/ilp32/x86-64-xsave.d: Likewise.
* gas/i386/ilp32/x86-64-xsave-intel.d: Likewise.
ld/
2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
* emulparams/elf32_x86_64.sh: New.
* configure.tgt (targ64_extra_emuls): Add elf32_x86_64 for
i[3-7]86-*-linux-*.
(targ_extra_libpath): Likewise.
(targ_extra_emuls): Add elf32_x86_64 for x86_64-*-linux-*.
(targ_extra_libpath): Likewise.
* Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64.c.
(eelf32_x86_64.c): New.
* Makefile.in: Regenerated.
opcodes/
2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (print_insn): Support bfd_mach_x64_32 and
bfd_mach_x64_32_intel_syntax.
commit 8aefc2ca418cc5dfac6ac1a0d10d5650bd9aa027
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Dec 31 00:00:03 2010 +0000
*** empty log message ***
commit 30a2b1ae93bae347f55202e06e2018fef3a1a40e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Dec 30 23:00:06 2010 +0000
daily update
commit 3425331568060820fe70c1a0850f125a5ca9901e
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Dec 30 17:36:22 2010 +0000
Fix style warnings detected by server in new Blackfin code
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 115 +++++++
bfd/archures.c | 2 +
bfd/bfd-in2.h | 2 +
bfd/config.bfd | 38 ++-
bfd/configure | 19 +-
bfd/configure.host | 1 +
bfd/configure.in | 19 +-
bfd/cpu-i386.c | 36 ++-
bfd/elf-bfd.h | 8 +
bfd/elf32-mips.c | 31 ++
bfd/elf64-mips.c | 33 ++
bfd/elf64-x86-64.c | 852 ++++++++++++++++++++++++++--------------------
bfd/elfcode.h | 16 +
bfd/elflink.c | 51 +++-
bfd/elfn32-mips.c | 33 ++
bfd/targets.c | 14 +
bfd/version.h | 2 +-
gdb/ChangeLog | 23 ++-
gdb/annotate.c | 6 +-
gdb/arch-utils.c | 55 ++--
gdb/arch-utils.h | 10 +-
gdb/auxv.c | 73 +++--
gdb/auxv.h | 2 +-
gdb/ax-gdb.c | 12 +-
gdb/ax-gdb.h | 2 +-
gdb/ax-general.c | 2 +-
gdb/bfin-tdep.c | 10 +-
gdb/breakpoint.h | 249 ++++++++------
gdb/buildsym.h | 17 +-
gdb/version.in | 2 +-
include/opcode/ChangeLog | 6 +
include/opcode/hppa.h | 14 +-
opcodes/ChangeLog | 13 +
opcodes/hppa-dis.c | 10 +-
opcodes/i386-dis.c | 5 +
35 files changed, 1176 insertions(+), 607 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index bf39613..c486f58 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,118 @@
+2010-12-31 Robert Millan <rmh@gnu.org>
+
+ * config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu.
+ * configure.host: Likewise.
+ * configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec',
+ `bfd_elf32_ntradlittlemips_freebsd_vec',
+ `bfd_elf32_tradbigmips_freebsd_vec',
+ `bfd_elf32_tradlittlemips_freebsd_vec',
+ `bfd_elf64_tradbigmips_freebsd_vec' and
+ `bfd_elf64_tradlittlemips_freebsd_vec'.
+ * configure: Regenerate.
+ * elf32-mips.c: New target for FreeBSD support
+ (same as traditional MIPS but overrides ELF_OSABI
+ with ELFOSABI_FREEBSD).
+ * elf64-mips.c: Likewise.
+ * elfn32-mips.c: Likewise.
+ * targets.c (_bfd_target_vector): Add
+ `bfd_elf32_ntradbigmips_freebsd_vec',
+ `bfd_elf32_ntradlittlemips_freebsd_vec',
+ `bfd_elf32_tradbigmips_freebsd_vec',
+ `bfd_elf32_tradlittlemips_freebsd_vec',
+ `bfd_elf64_tradbigmips_freebsd_vec' and
+ `bfd_elf64_tradlittlemips_freebsd_vec'.
+
+2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfcode.h (NAME(elf,r_info)): New.
+ (NAME(elf,r_sym)): Likewise.
+
+ * elflink.c (elf64_r_info): Removed.
+ (elf32_r_info): Likewise.
+ (elf64_r_sym): Likewise.
+ (elf32_r_sym): Likewise.
+
+2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
+ (elf_backend_relocs_compatible): Defined to
+ elf_x86_64_relocs_compatible.
+
+2010-12-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * archures.c (bfd_mach_x64_32): New.
+ (bfd_mach_x64_32_intel_syntax): Likewise.
+ * bfd-in2.h: Regenerated.
+
+ * config.bfd (targ64_selvecs): Add bfd_elf32_x86_64_vec for
+ i[3-7]86-*-linux-*.
+ (targ_selvecs): Add bfd_elf32_x86_64_vec for x86_64-*-linux-*.
+
+ * configure.in: Support bfd_elf32_x86_64_vec.
+ * configure: Regenerated.
+
+ * cpu-i386.c (bfd_x64_32_arch_intel_syntax): New.
+ (bfd_x64_32_arch): Likewise.
+
+ * elf-bfd.h (elf_append_rela): New prototype.
+ (elf_append_rel): Likewise.
+ (elf64_r_info): Likewise.
+ (elf32_r_info): Likewise.
+ (elf64_r_sym): Likewise.
+ (elf32_r_sym): Likewise.
+
+ * elf64-x86-64.c (ABI_64_P): New.
+ (elf_x86_64_info_to_howto): Replace ELF64_R_TYPE with
+ ELF32_R_TYPE. Replace ELF64_ST_TYPE with ELF_ST_TYPE.
+ (elf_x86_64_check_tls_transition):Likewise.
+ (elf_x86_64_check_relocs): Likewise.
+ (elf_x86_64_gc_mark_hook):Likewise.
+ (elf_x86_64_gc_sweep_hook): Likewise.
+ (elf_x86_64_relocate_section): Likewise.
+ (elf_x86_64_reloc_type_class): Likewise.
+ (ELF_DYNAMIC_INTERPRETER): Renamed to ...
+ (ELF64_DYNAMIC_INTERPRETER): This.
+ (ELF32_DYNAMIC_INTERPRETER): New.
+ (elf_x86_64_link_hash_table): Add r_info, r_sym, swap_reloca_out,
+ dynamic_interpreter and dynamic_interpreter_size.
+ (elf_x86_64_get_local_sym_hash): Replace ELF64_R_SYM with
+ htab->r_sym. Replace ELF64_R_INFO with htab->r_info.
+ (elf_x86_64_get_local_sym_hash): Likewise.
+ (elf_x86_64_check_tls_transition):Likewise.
+ (elf_x86_64_check_relocs): Likewise.
+ (elf_x86_64_gc_mark_hook):Likewise.
+ (elf_x86_64_gc_sweep_hook): Likewise.
+ (elf_x86_64_relocate_section): Likewise.
+ (elf_x86_64_finish_dynamic_symbol): Likewise.
+ (elf_x86_64_finish_local_dynamic_symbol): Likewise.
+ (elf_x86_64_link_hash_table_create): Initialize r_info, r_sym,
+ swap_reloca_out, dynamic_interpreter and dynamic_interpreter_size.
+ (elf_x86_64_check_relocs): Check ABI_64_P when requesting for
+ PIC.
+ (elf_x86_64_relocate_section): Likewise.
+ (elf64_x86_64_adjust_dynamic_symbol): Replace sizeof
+ (Elf64_External_Rela) with bed->s->sizeof_rela.
+ (elf64_x86_64_allocate_dynrelocs): Likewise.
+ (elf64_x86_64_size_dynamic_sections): Likewise.
+ (elf64_x86_64_finish_dynamic_symbol): Likewise.
+ (elf64_x86_64_append_rela): Removed.
+ (elf32_x86_64_elf_object_p): New.
+ Add bfd_elf32_x86_64_vec.
+
+ * elf64-x86-64.c (elf64_x86_64_xxx): Renamed to ...
+ (elf_x86_64_xxx): This.
+
+ * elflink.c (bfd_elf_final_link): Check ELF file class on error.
+ (elf_append_rela): New.
+ (elf_append_rel): Likewise.
+ (elf64_r_info): Likewise.
+ (elf32_r_info): Likewise.
+ (elf64_r_sym): Likewise.
+ (elf32_r_sym): Likewise.
+
+ * targets.c (bfd_elf32_x86_64_vec): New.
+ (_bfd_target_vector): Add bfd_elf32_x86_64_vec.
+
2010-12-24 Alan Modra <amodra@gmail.com>
* compress.c (decompress_contents): Style.
diff --git a/bfd/archures.c b/bfd/archures.c
index 1d61ae3..0efc658 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -185,6 +185,8 @@ DESCRIPTION
.#define bfd_mach_i386_i386 1
.#define bfd_mach_i386_i8086 2
.#define bfd_mach_i386_i386_intel_syntax 3
+.#define bfd_mach_x64_32 32
+.#define bfd_mach_x64_32_intel_syntax 33
.#define bfd_mach_x86_64 64
.#define bfd_mach_x86_64_intel_syntax 65
. bfd_arch_l1om, {* Intel L1OM *}
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 7cf593b..e75eb0d 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1872,6 +1872,8 @@ enum bfd_architecture
#define bfd_mach_i386_i386 1
#define bfd_mach_i386_i8086 2
#define bfd_mach_i386_i386_intel_syntax 3
+#define bfd_mach_x64_32 32
+#define bfd_mach_x64_32_intel_syntax 33
#define bfd_mach_x86_64 64
#define bfd_mach_x86_64_intel_syntax 65
bfd_arch_l1om, /* Intel L1OM */
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 2de94a4..01fa09a 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -598,7 +598,7 @@ case "${targ}" in
i[3-7]86-*-linux-*)
targ_defvec=bfd_elf32_i386_vec
targ_selvecs="i386linux_vec i386pei_vec"
- targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
+ targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf32_x86_64_vec bfd_elf64_l1om_vec"
;;
#ifdef BFD64
x86_64-*-darwin*)
@@ -629,7 +629,7 @@ case "${targ}" in
;;
x86_64-*-linux-*)
targ_defvec=bfd_elf64_x86_64_vec
- targ_selvecs="bfd_elf32_i386_vec i386linux_vec i386pei_vec x86_64pei_vec bfd_elf64_l1om_vec"
+ targ_selvecs="bfd_elf32_i386_vec bfd_elf32_x86_64_vec i386linux_vec i386pei_vec x86_64pei_vec bfd_elf64_l1om_vec"
want64=true
;;
x86_64-*-mingw*)
@@ -1016,6 +1016,40 @@ case "${targ}" in
want64=true
;;
#ifdef BFD64
+ mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
+ # FreeBSD vectors
+ targ_defvec=bfd_elf32_ntradlittlemips_freebsd_vec
+ targ_selvecs="bfd_elf32_ntradbigmips_freebsd_vec bfd_elf32_tradlittlemips_freebsd_vec bfd_elf32_tradbigmips_freebsd_vec bfd_elf64_tradlittlemips_freebsd_vec bfd_elf64_tradbigmips_freebsd_vec"
+ # Generic vectors
+ targ_selvecs="${targ_selvecs} bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec"
+ want64=true
+ ;;
+ mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
+ # FreeBSD vectors
+ targ_defvec=bfd_elf32_ntradbigmips_freebsd_vec
+ targ_selvecs="bfd_elf32_ntradlittlemips_freebsd_vec bfd_elf32_tradbigmips_freebsd_vec bfd_elf32_tradlittlemips_freebsd_vec bfd_elf64_tradbigmips_freebsd_vec bfd_elf64_tradlittlemips_freebsd_vec"
+ # Generic vectors
+ targ_selvecs="${targ_selvecs} bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
+ want64=true
+ ;;
+#endif
+ mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
+ # FreeBSD vectors
+ targ_defvec=bfd_elf32_tradlittlemips_freebsd_vec
+ targ_selvecs="bfd_elf32_tradbigmips_freebsd_vec bfd_elf32_ntradlittlemips_freebsd_vec bfd_elf64_tradlittlemips_freebsd_vec bfd_elf32_ntradbigmips_freebsd_vec bfd_elf64_tradbigmips_freebsd_vec"
+ # Generic vectors
+ targ_selvecs="${targ_selvecs} bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec"
+ want64=true
+ ;;
+ mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
+ # FreeBSD vectors
+ targ_defvec=bfd_elf32_tradbigmips_freebsd_vec
+ targ_selvecs="bfd_elf32_tradlittlemips_freebsd_vec bfd_elf32_ntradbigmips_freebsd_vec bfd_elf64_tradbigmips_freebsd_vec bfd_elf32_ntradlittlemips_freebsd_vec bfd_elf64_tradlittlemips_freebsd_vec"
+ # Generic vectors
+ targ_selvecs="${targ_selvecs} bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec"
+ want64=true
+ ;;
+#ifdef BFD64
mmix-*-*)
targ_defvec=bfd_elf64_mmix_vec
targ_selvecs=bfd_mmo_vec
diff --git a/bfd/configure b/bfd/configure
index 278cc1d..5085580 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -15113,8 +15113,10 @@ do
bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
- bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
- bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
+ bfd_elf32_ntradbigmips_vec | bfd_elf32_ntradbigmips_freebsd_vec)
+ tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
+ bfd_elf32_ntradlittlemips_vec | bfd_elf32_ntradlittlemips_freebsd_vec)
+ tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
@@ -15153,8 +15155,10 @@ do
bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
- bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
- bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
+ bfd_elf32_tradbigmips_vec | bfd_elf32_tradbigmips_freebsd_vec)
+ tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
+ bfd_elf32_tradlittlemips_vec | bfd_elf32_tradlittlemips_freebsd_vec)
+ tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
@@ -15187,11 +15191,14 @@ do
bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_sparc_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
- bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
- bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
+ bfd_elf64_tradbigmips_vec | bfd_elf64_tradbigmips_freebsd_vec)
+ tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
+ bfd_elf64_tradlittlemips_vec | bfd_elf64_tradlittlemips_freebsd_vec)
+ tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
+ bfd_elf32_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
diff --git a/bfd/configure.host b/bfd/configure.host
index eb7bfe9..7c63de5 100644
--- a/bfd/configure.host
+++ b/bfd/configure.host
@@ -50,6 +50,7 @@ mips*-sgi-irix3*) HDEFINES="-G 4" ;;
mips*-sgi-irix4*) HDEFINES="-G 4" ;;
mips*-sgi-irix6*) host64=true;;
mips64*-*-linux*) host64=true;;
+mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu) host64=true;;
mips*-*-sysv4*) ;;
mips*-*-sysv*) HDEFINES="-G 4" ;;
mips*-*-riscos*) HDEFINES="-G 4" ;;
diff --git a/bfd/configure.in b/bfd/configure.in
index baa996a..5908a57 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -748,8 +748,10 @@ do
bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
- bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
- bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
+ bfd_elf32_ntradbigmips_vec | bfd_elf32_ntradbigmips_freebsd_vec)
+ tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
+ bfd_elf32_ntradlittlemips_vec | bfd_elf32_ntradlittlemips_freebsd_vec)
+ tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
@@ -788,8 +790,10 @@ do
bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
- bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
- bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
+ bfd_elf32_tradbigmips_vec | bfd_elf32_tradbigmips_freebsd_vec)
+ tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
+ bfd_elf32_tradlittlemips_vec | bfd_elf32_tradlittlemips_freebsd_vec)
+ tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
@@ -822,11 +826,14 @@ do
bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_sparc_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
- bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
- bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
+ bfd_elf64_tradbigmips_vec | bfd_elf64_tradbigmips_freebsd_vec)
+ tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
+ bfd_elf64_tradlittlemips_vec | bfd_elf64_tradlittlemips_freebsd_vec)
+ tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
+ bfd_elf32_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
diff --git a/bfd/cpu-i386.c b/bfd/cpu-i386.c
index 44cca9d..f679a18 100644
--- a/bfd/cpu-i386.c
+++ b/bfd/cpu-i386.c
@@ -24,6 +24,22 @@
#include "bfd.h"
#include "libbfd.h"
+static const bfd_arch_info_type bfd_x64_32_arch_intel_syntax =
+{
+ 64, /* 64 bits in a word */
+ 32, /* 32 bits in an address */
+ 8, /* 8 bits in a byte */
+ bfd_arch_i386,
+ bfd_mach_x64_32_intel_syntax,
+ "i386:intel",
+ "i386:x64-32:intel",
+ 3,
+ FALSE,
+ bfd_default_compatible,
+ bfd_default_scan,
+ 0
+};
+
static const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
{
64, /* 64 bits in a word */
@@ -37,7 +53,7 @@ static const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
FALSE,
bfd_default_compatible,
bfd_default_scan,
- 0
+ &bfd_x64_32_arch_intel_syntax,
};
static const bfd_arch_info_type bfd_i386_arch_intel_syntax =
@@ -72,6 +88,22 @@ static const bfd_arch_info_type i8086_arch =
&bfd_i386_arch_intel_syntax
};
+static const bfd_arch_info_type bfd_x64_32_arch =
+{
+ 64, /* 64 bits in a word */
+ 32, /* 32 bits in an address */
+ 8, /* 8 bits in a byte */
+ bfd_arch_i386,
+ bfd_mach_x64_32,
+ "i386",
+ "i386:x64-32",
+ 3,
+ FALSE,
+ bfd_default_compatible,
+ bfd_default_scan,
+ &i8086_arch
+};
+
static const bfd_arch_info_type bfd_x86_64_arch =
{
64, /* 64 bits in a word */
@@ -85,7 +117,7 @@ static const bfd_arch_info_type bfd_x86_64_arch =
FALSE,
bfd_default_compatible,
bfd_default_scan,
- &i8086_arch
+ &bfd_x64_32_arch
};
const bfd_arch_info_type bfd_i386_arch =
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 2e607f8..cc83588 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2272,6 +2272,14 @@ extern bfd_boolean _bfd_elf_allocate_ifunc_dyn_relocs
(struct bfd_link_info *, struct elf_link_hash_entry *,
struct elf_dyn_relocs **, unsigned int, unsigned int);
+extern void elf_append_rela (bfd *, asection *, Elf_Internal_Rela *);
+extern void elf_append_rel (bfd *, asection *, Elf_Internal_Rela *);
+
+extern bfd_vma elf64_r_info (bfd_vma, bfd_vma);
+extern bfd_vma elf64_r_sym (bfd_vma);
+extern bfd_vma elf32_r_info (bfd_vma, bfd_vma);
+extern bfd_vma elf32_r_sym (bfd_vma);
+
/* Large common section. */
extern asection _bfd_elf_large_com_section;
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index aed0b4c..3392207 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -1725,6 +1725,37 @@ static const struct ecoff_debug_swap mips_elf32_ecoff_debug_swap = {
/* Include the target file again for this target. */
#include "elf32-target.h"
+/* FreeBSD support. */
+
+#undef TARGET_LITTLE_SYM
+#undef TARGET_LITTLE_NAME
+#undef TARGET_BIG_SYM
+#undef TARGET_BIG_NAME
+
+#define TARGET_LITTLE_SYM bfd_elf32_tradlittlemips_freebsd_vec
+#define TARGET_LITTLE_NAME "elf32-tradlittlemips-freebsd"
+#define TARGET_BIG_SYM bfd_elf32_tradbigmips_freebsd_vec
+#define TARGET_BIG_NAME "elf32-tradbigmips-freebsd"
+
+#undef ELF_OSABI
+#define ELF_OSABI ELFOSABI_FREEBSD
+
+/* The kernel recognizes executables as valid only if they carry a
+ "FreeBSD" label in the ELF header. So we put this label on all
+ executables and (for simplicity) also all other object files. */
+
+static void
+elf_fbsd_post_process_headers (bfd *abfd, struct bfd_link_info *info)
+{
+ _bfd_elf_set_osabi (abfd, info);
+}
+
+#undef elf_backend_post_process_headers
+#define elf_backend_post_process_headers elf_fbsd_post_process_headers
+#undef elf32_bed
+#define elf32_bed elf32_fbsd_tradbed
+
+#include "elf32-target.h"
/* Implement elf_backend_final_write_processing for VxWorks. */
static void
diff --git a/bfd/elf64-mips.c b/bfd/elf64-mips.c
index 7ed54fa..3eeb341 100644
--- a/bfd/elf64-mips.c
+++ b/bfd/elf64-mips.c
@@ -3354,3 +3354,36 @@ extern bfd_boolean bfd_elf64_archive_write_armap
/* Include the target file again for this target. */
#include "elf64-target.h"
+
+
+/* FreeBSD support. */
+
+#undef TARGET_LITTLE_SYM
+#undef TARGET_LITTLE_NAME
+#undef TARGET_BIG_SYM
+#undef TARGET_BIG_NAME
+
+#define TARGET_LITTLE_SYM bfd_elf64_tradlittlemips_freebsd_vec
+#define TARGET_LITTLE_NAME "elf64-tradlittlemips-freebsd"
+#define TARGET_BIG_SYM bfd_elf64_tradbigmips_freebsd_vec
+#define TARGET_BIG_NAME "elf64-tradbigmips-freebsd"
+
+#undef ELF_OSABI
+#define ELF_OSABI ELFOSABI_FREEBSD
+
+/* The kernel recognizes executables as valid only if they carry a
+ "FreeBSD" label in the ELF header. So we put this label on all
+ executables and (for simplicity) also all other object files. */
+
+static void
+elf_fbsd_post_process_headers (bfd *abfd, struct bfd_link_info *info)
+{
+ _bfd_elf_set_osabi (abfd, info);
+}
+
+#undef elf_backend_post_process_headers
+#define elf_backend_post_process_headers elf_fbsd_post_process_headers
+#undef elf64_bed
+#define elf64_bed elf64_fbsd_tradbed
+
+#include "elf64-target.h"
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 83656ae..3dd16ba 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -1,4 +1,4 @@
-/* X86-64 specific support for 64-bit ELF
+/* X86-64 specific support for ELF
Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2010 Free Software Foundation, Inc.
Contributed by Jan Hubicka <jh@suse.cz>.
@@ -34,6 +34,14 @@
/* In case we're on a 32-bit machine, construct a 64-bit "-1" value. */
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-22 20:11 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-12-22 20:11 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 37816 bytes --]
The branch, master has been updated
via 2ce488949646b137d041e724458bd0f8ea1ebcf5 (commit)
via 8adc5fddcedf6ba47d6fd40dc2ba4c4f9c9b6a45 (commit)
via e0b60493e555d6d78e5bd69890531ed86fdfbad8 (commit)
via 7c1179519d4f5f028b94a3071f775d9923ef1b0c (commit)
via 07433744611d5ed4beebbc27d382daa1daf7a134 (commit)
via c4e773b1fb01910f9ff94a7f64f8f94620980be3 (commit)
via 0893837e1e72edd31b082dcee67a79503d57f3ad (commit)
via 8a595ba5734900e915ba31b4b5f096deb7beb038 (commit)
via fc775018a7423273f64ae125707cef8f2be2910e (commit)
via f487a6054dbdc205228bff03589a5c6e2dade307 (commit)
via dae725ed5d0edf632f9d4bc21eabb28890db09a5 (commit)
via 4b1fa80c6f70ebb624342ad697c91909bb1db8c8 (commit)
via 503d1ef270c95e55a003fd913760a72d2fedf1aa (commit)
via 288180a93adab44652eb5fb4ce39bcce899f7be8 (commit)
via e3e2bdb5539511b75a332c087f629111ec04c6dc (commit)
via 61f06700b163fdeaa62e3b5e37029423088bd298 (commit)
via 91bef12495b6ec8dfdb0998eed18740bbeb390a8 (commit)
via 6fcf6494224a6606245c297e9602a7953434120b (commit)
via cd64fa3f4e535614b8210241598112ab19c606a9 (commit)
via bd7c9765d99b99a50caf868fc7431dd591c803b0 (commit)
via b04d3b7e2cebc68da35032b1eb9bdd9ad83cdcca (commit)
via 4ec81a5030cb0515eac5ed06c3116c07de6ba377 (commit)
via eddac4b4a1c638f6e5795e5b3da475d83e63d8cf (commit)
via a025fbffd7294700ecc406421d118f7a0392efde (commit)
via 486ee7f3437358941f0762ace2550170ef474de1 (commit)
via c40d16fcc57ba9e164faf064146f661aadbbfabe (commit)
via c399a3bbcd00c855d2ac47769aa870c9b975353d (commit)
via 0266671e24d8f20402ebe328038d84c22f068711 (commit)
via 23578b492741b32ee53c453ab50c7e7f78258dfb (commit)
via f7795948b64873aace3546059597ce7ed498c74b (commit)
via 8c6a4e026da60454cfe6c9c9a1ea0c071a9d9506 (commit)
via 0436b64a7ccf7888365a9f02d83bf23c3d513ab3 (commit)
via 0b7ce86af6cf99c9df0e634ccb61134315e79813 (commit)
via 12489706fabef7f148b877358c101c714d58e252 (commit)
via cb02304f78faa8600c5f2f32e10f0857ebd912df (commit)
via cafda6b69357061d11902df051b1201b91713e68 (commit)
via a879222a9818cc283b15ce90ff45cda33899178f (commit)
via 62d79c9a7841f6de070137b37dc138bfff7d62d4 (commit)
via 8bafd6a5d82aed290f27e458a53e11352362713c (commit)
via 5869f02d80550193b3346bebfa9d6941681d26b3 (commit)
via 7b66f834bb061187be876cdc21cac43be52ab6ca (commit)
via acfc984d522c7049bff69d410579c1bd398a1118 (commit)
via 87baf9c76d270004e5bce727862c62ee8f194b59 (commit)
via 37124605c17c958356b11b8ee98f39f0e9413514 (commit)
via 66d646742f09992f9fcc665fedca55c0809c42ae (commit)
via a4809228480c67d2d0ad49a2403de6b3fe0a6342 (commit)
from 38cdd2f1951b882ce68ff310f85e234a2450ddce (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 2ce488949646b137d041e724458bd0f8ea1ebcf5
Merge: 38cdd2f 8adc5fd
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Wed Dec 22 15:11:03 2010 -0500
Merge remote branch 'gdb/master'
commit 8adc5fddcedf6ba47d6fd40dc2ba4c4f9c9b6a45
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Wed Dec 22 18:30:16 2010 +0000
* inferior.c (remove_inferior_command): Don't remove an active inferior.
* mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
commit e0b60493e555d6d78e5bd69890531ed86fdfbad8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Dec 22 00:00:33 2010 +0000
*** empty log message ***
commit 7c1179519d4f5f028b94a3071f775d9923ef1b0c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Dec 21 23:00:05 2010 +0000
daily update
commit 07433744611d5ed4beebbc27d382daa1daf7a134
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Dec 21 19:10:08 2010 +0000
gdb
* thread.c (print_thread_info): Make a ui-out table in CLI mode.
gdb/testsuite
* gdb.threads/execl.exp: Update.
* gdb.threads/linux-dp.exp: Update.
* gdb.threads/manythreads.exp: Update.
* gdb.threads/tls.exp: Update.
commit c4e773b1fb01910f9ff94a7f64f8f94620980be3
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Tue Dec 21 15:24:37 2010 +0000
2010-12-21 Kai Tietz <kai.tietz@onevision.com>
* peXXigen.c (_bfd_XXi_final_link_postscript): Use
bfd_get_symbol_leading_char to determine "_tls_used" name.
2010-12-21 Kai Tietz <kai.tietz@onevision.com>
* ld-pe/pe.exp: Add TLS directory test.
* ld-pe/tlssec.s: New.
* ld-pe/tlssec64.d: New.
* ld-pe/tlssec32.d: New.
commit 0893837e1e72edd31b082dcee67a79503d57f3ad
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Dec 21 08:41:15 2010 +0000
* peXXigen.c (_bfd_XXi_final_link_postscript): Use correct size
for windows 64-bit TLS table size.
commit 8a595ba5734900e915ba31b4b5f096deb7beb038
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Dec 21 00:00:02 2010 +0000
*** empty log message ***
commit fc775018a7423273f64ae125707cef8f2be2910e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Dec 20 23:00:05 2010 +0000
daily update
commit f487a6054dbdc205228bff03589a5c6e2dade307
Author: qiyao <qiyao>
Date: Mon Dec 20 06:19:04 2010 +0000
2010-12-20 Yao Qi <yao@codesourcery.com>
* arm-tdep.c (arm_register_reggroup_p): New.
(arm_gdbarch_init): Set arm_register_reggroup_p for hook
register_reggroup_p.
commit dae725ed5d0edf632f9d4bc21eabb28890db09a5
Author: qiyao <qiyao>
Date: Mon Dec 20 06:15:01 2010 +0000
Forget to commit in my last check in
2010-12-20 Yao Qi <yao@codesourcery.com>
* features/arm-core.xml: Add attribute type to reg from r0 to r12.
* features/arm-with-iwmmxt.c: Regenerate.
* features/arm-with-neon.c: Regenerate.
* features/arm-with-vfpv2.c: Regenerate.
* features/arm-with-vfpv3.c: Regenerate.
commit 4b1fa80c6f70ebb624342ad697c91909bb1db8c8
Author: qiyao <qiyao>
Date: Mon Dec 20 06:09:20 2010 +0000
2010-12-20 Yao Qi <yao@codesourcery.com>
* features/arm-core.xml: Add attribute type to reg from r0 to r12.
* features/arm-with-iwmmxt.c: Regenerate.
* features/arm-with-neon.c: Regenerate.
* features/arm-with-vfpv2.c: Regenerate.
* features/arm-with-vfpv3.c: Regenerate.
commit 503d1ef270c95e55a003fd913760a72d2fedf1aa
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Dec 20 00:00:33 2010 +0000
*** empty log message ***
commit 288180a93adab44652eb5fb4ce39bcce899f7be8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Dec 19 23:00:05 2010 +0000
daily update
commit e3e2bdb5539511b75a332c087f629111ec04c6dc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Dec 19 00:00:33 2010 +0000
*** empty log message ***
commit 61f06700b163fdeaa62e3b5e37029423088bd298
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Dec 18 23:00:05 2010 +0000
daily update
commit 91bef12495b6ec8dfdb0998eed18740bbeb390a8
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Sat Dec 18 11:28:25 2010 +0000
include/opcode/
* mips.h: Update commentary after last commit.
commit 6fcf6494224a6606245c297e9602a7953434120b
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Sat Dec 18 11:14:12 2010 +0000
include/opcode/
2010-12-14 Mingjie Xing <mingjie.xing@gmail.com>
* mips.h (OP_*_OFFSET_A, OP_*_OFFSET_B, OP_*_OFFSET_C)
(OP_*_RZ, OP_*_FZ, INSN2_M_FP_D, INSN2_WRITE_GPR_Z, INSN2_WRITE_FPR_Z)
(INSN2_READ_GPR_Z, INSN2_READ_FPR_Z, INSN2_READ_GPR_D): Define.
opcodes/
2010-12-14 Mingjie Xing <mingjie.xing@gmail.com>
* mips-opc.c (WR_z, WR_Z, RD_z, RD_Z, RD_d): Define.
(mips_builtin_opcodes): Add loongson3a specific instructions.
* mips-dis.c (print_insn_args): Handle the new arguments +a|b|c|z|Z.
gas/
2010-12-14 Mingjie Xing <mingjie.xing@gmail.com>
* config/tc-mips.c (insn_uses_reg): Handle the new flags
INSN2_READ_FPR_Z, INSN2_READ_GPR_D and INSN2_READ_GPR_Z.
(append_insn): Handle delay-slot filling for the new flags.
(validate_mips_insn): Handle the new arguments +a|b|c|z|Z.
(mips_ip): Handle the new arguments +a|b|c|z|Z.
gas/testsuite/
2010-12-14 Mingjie Xing <mingjie.xing@gmail.com>
* gas/mips/loongson-3a-2.s, gas/mips/loongson-3a-2.d,
gas/mips/loongson-3a-3.s, gas/mips/loongson-3a-3.d: New tests.
* gas/mips/mips.exp: Run them.
commit cd64fa3f4e535614b8210241598112ab19c606a9
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Sat Dec 18 02:10:04 2010 +0000
* mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
(get_other_inferior): New.
commit bd7c9765d99b99a50caf868fc7431dd591c803b0
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Sat Dec 18 02:08:42 2010 +0000
* python/py-progspace.c (py_free_pspace): Obtain arch another
way to avoid dereferencing a null pointer.
commit b04d3b7e2cebc68da35032b1eb9bdd9ad83cdcca
Author: Michael Snyder <msnyder@specifix.com>
Date: Sat Dec 18 00:11:44 2010 +0000
2010-12-17 Michael Snyder <msnyder@vmware.com>
* utils.c (do_my_cleanups): Comment fix-up.
commit 4ec81a5030cb0515eac5ed06c3116c07de6ba377
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Dec 18 00:00:34 2010 +0000
*** empty log message ***
commit eddac4b4a1c638f6e5795e5b3da475d83e63d8cf
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Dec 17 23:00:06 2010 +0000
daily update
commit a025fbffd7294700ecc406421d118f7a0392efde
Author: Jeff Johnston <jjohnstn@redhat.com>
Date: Fri Dec 17 22:09:16 2010 +0000
2010-12-18 Jeff Johnston <jjohnstn@redhat.com>
* COPYING.LIBGLOSS: Remove the GPL for fr30 target.
commit 486ee7f3437358941f0762ace2550170ef474de1
Author: Kevin Buettner <kevinb@redhat.com>
Date: Fri Dec 17 21:39:26 2010 +0000
* mips-tdep.c (make_mips16_addr): New function.
(mips_elf_make_msymbol_special): Don't set the low bit in the
symbol's address.
(mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
indicating mips16 address, if present.
(mips_write_pc): Set bit indicating mips16 address when in a mips16
function.
(mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
but for each function pointer argument to inferior function call.
commit c40d16fcc57ba9e164faf064146f661aadbbfabe
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Dec 17 17:19:33 2010 +0000
* psympriv.h (struct partial_symtab) <readin>: Move field
earlier.
commit c399a3bbcd00c855d2ac47769aa870c9b975353d
Author: DJ Delorie <dj@delorie.com>
Date: Fri Dec 17 04:16:55 2010 +0000
* reloc.c (BFD_RELOC_RX_ABS16_REV): Add.
(BFD_RELOC_RX_ABS32_REV): Add.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-rx.c (rx_reloc_map): Add them.
* config/tc-rx.c (rx_validate_fix_sub): Permit subtraction in more
cases.
(tc_gen_reloc): Fix handling of subtraction (esp wrt endianness).
commit 0266671e24d8f20402ebe328038d84c22f068711
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Dec 17 00:00:33 2010 +0000
*** empty log message ***
commit 23578b492741b32ee53c453ab50c7e7f78258dfb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Dec 16 23:00:05 2010 +0000
daily update
commit f7795948b64873aace3546059597ce7ed498c74b
Author: Kevin Buettner <kevinb@redhat.com>
Date: Thu Dec 16 22:50:46 2010 +0000
* mips-tdep.c (mips_convert_register_float_case_p)
(mips_convert_register_gpreg_case_p): New functions.
(mips_convert_register_p): Invoke new functions above.
(mips_register_to_value): Add case for fetching value shorter
than 64 bits from a 64-bit register.
(mips_value_to_register): Add case for storing value shorter
than 64 bits into a 64-bit register.
commit 8c6a4e026da60454cfe6c9c9a1ea0c071a9d9506
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Dec 16 17:40:21 2010 +0000
2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
* python/py-value.c (value_object_type) <tp_flags>: Add
Py_TPFLAGS_BASETYPE.
commit 0436b64a7ccf7888365a9f02d83bf23c3d513ab3
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Dec 16 13:05:28 2010 +0000
NEWS: Mention new sim --map-info flag.
commit 0b7ce86af6cf99c9df0e634ccb61134315e79813
Author: Doug Evans <dje@google.com>
Date: Thu Dec 16 01:42:40 2010 +0000
* dwarf2read.c (_initialize_dwarf2_read): Fix help text of
"save gdb-index" command.
commit 12489706fabef7f148b877358c101c714d58e252
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Dec 16 00:00:02 2010 +0000
*** empty log message ***
commit cb02304f78faa8600c5f2f32e10f0857ebd912df
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Dec 15 23:00:06 2010 +0000
daily update
commit cafda6b69357061d11902df051b1201b91713e68
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Dec 15 21:19:50 2010 +0000
gdb
* infrun.c (save_infcall_control_state): Handle the
exception-resume breakpoint.
(restore_infcall_control_state): Likewise.
(discard_infcall_control_state): Likewise.
gdb/testsuite
2010-12-15 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.cp/nextoverthrow.cc (dummy): Return int 0.
(NextOverThrowDerivates) <resumebpt>: New.
(resumebpt_test): New.
(main): Call resumebpt_test.
* gdb.cp/nextoverthrow.exp: New block for test of "resumebpt".
commit a879222a9818cc283b15ce90ff45cda33899178f
Author: Kevin Buettner <kevinb@redhat.com>
Date: Wed Dec 15 20:53:06 2010 +0000
* mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
cooked values that are being transferred to 64-bit raw registers.
(mips_pseudo_register_read): Revise to preserve symmetry with
mips_pseudo_register_write().
commit 62d79c9a7841f6de070137b37dc138bfff7d62d4
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Dec 15 19:28:30 2010 +0000
2010-12-15 Greg Watson <g.watson@computer.org>
* f-exp.y (yylex): Check entire token against keywords.
commit 8bafd6a5d82aed290f27e458a53e11352362713c
Author: Doug Evans <dje@google.com>
Date: Wed Dec 15 17:27:56 2010 +0000
Rename "maint set python auto-load" to "set auto-load-scripts".
* NEWS: Mention it.
* python/py-auto-load.c (auto_load_scripts): Renamed from
gdbpy_auto_load.
(load_auto_scripts_for_objfile): Update.
(gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
"set auto-load-scripts".
doc/
* gdb.texinfo (Startup): Document auto-loading of scripts during
startup.
(Auto-loading): Delete "maint set python auto-load on|off".
Add "set auto-load-scripts on|off".
commit 5869f02d80550193b3346bebfa9d6941681d26b3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Dec 15 14:56:39 2010 +0000
Add SORT_BY_INIT_PRIORITY.
bfd/
2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (_bfd_elf_new_section_hook): Special handling for
.init_array/.fini_array output sections.
ld/
2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (GENSCRIPTS): Add @enable_initfini_array@.
* NEWS: Mention SORT_BY_INIT_PRIORITY.
* configure.in: Add AC_CANONICAL_BUILD.
Add --enable-initfini-array.
* genscripts.sh (ENABLE_INITFINI_ARRAY): New.
* ld.h (sort_type): Add by_init_priority.
* ld.texinfo: Document SORT_BY_INIT_PRIORITY.
* ldgram.y (SORT_BY_INIT_PRIORITY): New.
(wildcard_spec): Handle SORT_BY_INIT_PRIORITY.
* ldlang.c (get_init_priority): New.
(compare_section): Use get_init_priority for by_init_priority.
* ldlex.l (SORT_BY_INIT_PRIORITY): New.
* scripttempl/elf.sc: Support ENABLE_INITFINI_ARRAY.
* Makefile.in: Regenerated.
* aclocal.m4: Regenerated.
* config.in: Likewise.
* configure: Likewise.
ld/testsuite/
2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/elf.exp (array_tests): Add init-mixed.
(array_tests_static): Likewise.
Also delete tmpdir/init-mixed.
* ld-elf/init-mixed.c: New.
* ld-elf/init-mixed.out: Likewise.
commit 7b66f834bb061187be876cdc21cac43be52ab6ca
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Dec 15 11:50:46 2010 +0000
sim: add --map-info option
There are options for listing the current device/hw tree and memory
regions, but no way to find out at run time all the current mappings.
So add a new --map-info option akin to the --memory-info option which
displays all the current mappings.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit acfc984d522c7049bff69d410579c1bd398a1118
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Dec 15 00:00:04 2010 +0000
*** empty log message ***
commit 87baf9c76d270004e5bce727862c62ee8f194b59
Author: DJ Delorie <dj@delorie.com>
Date: Tue Dec 14 23:39:03 2010 +0000
(decode_opcode): RXO_branchrel is relative to the opcode's PC, not
the address following the opcode.
commit 37124605c17c958356b11b8ee98f39f0e9413514
Author: DJ Delorie <dj@delorie.com>
Date: Tue Dec 14 23:12:20 2010 +0000
* rx.c (decode_opcode): For "MVFC PC,", use the address of the
opcode, not the address following the opcode.
commit 66d646742f09992f9fcc665fedca55c0809c42ae
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Dec 14 23:00:08 2010 +0000
daily update
commit a4809228480c67d2d0ad49a2403de6b3fe0a6342
Author: Kevin Buettner <kevinb@redhat.com>
Date: Tue Dec 14 21:07:48 2010 +0000
* mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
than unsigned, values in registers.
-----------------------------------------------------------------------
Summary of changes:
COPYING.LIBGLOSS | 23 +---
ChangeLog | 4 +
bfd/ChangeLog | 23 ++++
bfd/bfd-in2.h | 2 +
bfd/elf.c | 13 ++-
bfd/elf32-rx.c | 2 +
bfd/libbfd.h | 2 +
bfd/peXXigen.c | 13 ++-
bfd/reloc.c | 4 +
bfd/version.h | 2 +-
gdb/ChangeLog | 111 ++++++++++++++++
gdb/NEWS | 7 +
gdb/arm-tdep.c | 13 ++
gdb/doc/ChangeLog | 7 +
gdb/doc/gdb.texinfo | 31 ++++-
gdb/dwarf2read.c | 2 +-
gdb/f-exp.y | 4 +-
gdb/features/arm-core.xml | 26 ++--
gdb/features/arm-with-iwmmxt.c | 27 ++--
gdb/features/arm-with-neon.c | 30 ++--
gdb/features/arm-with-vfpv2.c | 30 ++--
gdb/features/arm-with-vfpv3.c | 30 ++--
gdb/inferior.c | 3 +
gdb/infrun.c | 9 ++
gdb/mi/mi-main.c | 31 +++++
gdb/mips-tdep.c | 199 +++++++++++++++++++++++++----
gdb/psympriv.h | 10 +-
gdb/python/py-auto-load.c | 32 +++--
gdb/python/py-progspace.c | 5 +-
gdb/python/py-value.c | 2 +-
gdb/testsuite/ChangeLog | 15 ++
gdb/testsuite/gdb.cp/nextoverthrow.cc | 36 +++++-
gdb/testsuite/gdb.cp/nextoverthrow.exp | 11 ++-
gdb/testsuite/gdb.threads/execl.exp | 2 +-
gdb/testsuite/gdb.threads/linux-dp.exp | 18 ++-
gdb/testsuite/gdb.threads/manythreads.exp | 2 +-
gdb/testsuite/gdb.threads/tls.exp | 6 +-
gdb/thread.c | 65 +++++++++-
gdb/utils.c | 2 +-
gdb/version.in | 2 +-
include/opcode/ChangeLog | 10 ++
include/opcode/mips.h | 34 +++++-
opcodes/ChangeLog | 6 +
opcodes/mips-dis.c | 31 +++++
opcodes/mips-opc.c | 65 ++++++++++
sim/common/ChangeLog | 6 +
sim/common/sim-memopt.c | 45 +++++++-
sim/rx/ChangeLog | 7 +
sim/rx/rx.c | 12 ++-
49 files changed, 891 insertions(+), 181 deletions(-)
First 500 lines of diff:
diff --git a/COPYING.LIBGLOSS b/COPYING.LIBGLOSS
index 403d42b..5e78978 100644
--- a/COPYING.LIBGLOSS
+++ b/COPYING.LIBGLOSS
@@ -58,27 +58,10 @@ duplicated in all such forms.
This file is distributed WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-(4) GPL (fr30 directory only)
+(4) (formerly GPL for fr30)
-Copyright (C) 1998 Free Software Foundation, Inc.
-Contributed by Cygnus Solutions.
-
-This file is part of GNU CC.
-
-GNU CC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU CC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU CC; see the file COPYING. If not, write to
-the Free Software Foundation, 51 Franklin Street, Fifth Floor,
-Boston, MA 02110-1301, USA.
+The GPL is no longer applicable to the fr30 platform. The piece of
+code (syscalls.c) referencing the GPL has been officially relicensed.
(5) Advanced Micro Devices
diff --git a/ChangeLog b/ChangeLog
index bc19a77..3d04a72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-18 Jeff Johnston <jjohnstn@redhat.com>
+
+ * COPYING.LIBGLOSS: Remove the GPL for fr30 target.
+
2010-12-10 Ian Lance Taylor <iant@google.com>
PR bootstrap/46819
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8e12461..7b8ca30 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,26 @@
+2010-12-21 Kai Tietz <kai.tietz@onevision.com>
+
+ * peXXigen.c (_bfd_XXi_final_link_postscript): Use
+ bfd_get_symbol_leading_char to determine "_tls_used" name.
+
+2010-12-21 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * peXXigen.c (_bfd_XXi_final_link_postscript): Use correct size
+ for windows 64-bit TLS table size.
+
+2010-12-16 DJ Delorie <dj@redhat.com>
+
+ * reloc.c (BFD_RELOC_RX_ABS16_REV): Add.
+ (BFD_RELOC_RX_ABS32_REV): Add.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+ * elf32-rx.c (rx_reloc_map): Add them.
+
+2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf.c (_bfd_elf_new_section_hook): Special handling for
+ .init_array/.fini_array output sections.
+
2010-12-13 Alan Modra <amodra@gmail.com>
* aoutx.h (aout_link_check_ar_symbols): Formatting.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index e7805b6..7cf593b 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3991,7 +3991,9 @@ instructions */
BFD_RELOC_RX_OP_SUBTRACT,
BFD_RELOC_RX_ABS8,
BFD_RELOC_RX_ABS16,
+ BFD_RELOC_RX_ABS16_REV,
BFD_RELOC_RX_ABS32,
+ BFD_RELOC_RX_ABS32_REV,
BFD_RELOC_RX_ABS16U,
BFD_RELOC_RX_ABS16UW,
BFD_RELOC_RX_ABS16UL,
diff --git a/bfd/elf.c b/bfd/elf.c
index 0e7cd9a..de0ab61 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2304,12 +2304,19 @@ _bfd_elf_new_section_hook (bfd *abfd, asection *sec)
anyway. We will set ELF section type and flags for all linker
created sections. If user specifies BFD section flags, we will
set ELF section type and flags based on BFD section flags in
- elf_fake_sections. */
- if ((!sec->flags && abfd->direction != read_direction)
+ elf_fake_sections. Special handling for .init_array/.fini_array
+ output sections since they may contain .ctors/.dtors input
+ sections. We don't want _bfd_elf_init_private_section_data to
+ copy ELF section type from .ctors/.dtors input sections. */
+ if (abfd->direction != read_direction
|| (sec->flags & SEC_LINKER_CREATED) != 0)
{
ssect = (*bed->get_sec_type_attr) (abfd, sec);
- if (ssect != NULL)
+ if (ssect != NULL
+ && (!sec->flags
+ || (sec->flags & SEC_LINKER_CREATED) != 0
+ || ssect->type == SHT_INIT_ARRAY
+ || ssect->type == SHT_FINI_ARRAY))
{
elf_section_type (sec) = ssect->type;
elf_section_flags (sec) = ssect->attr;
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index d7e15a0..ac587ef 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -250,7 +250,9 @@ static const struct rx_reloc_map rx_reloc_map [] =
{ BFD_RELOC_RX_OP_SUBTRACT, R_RX_OPsub },
{ BFD_RELOC_RX_ABS8, R_RX_ABS8 },
{ BFD_RELOC_RX_ABS16, R_RX_ABS16 },
+ { BFD_RELOC_RX_ABS16_REV, R_RX_ABS16_REV },
{ BFD_RELOC_RX_ABS32, R_RX_ABS32 },
+ { BFD_RELOC_RX_ABS32_REV, R_RX_ABS32_REV },
{ BFD_RELOC_RX_ABS16UL, R_RX_ABS16UL },
{ BFD_RELOC_RX_ABS16UW, R_RX_ABS16UW },
{ BFD_RELOC_RX_ABS16U, R_RX_ABS16U }
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index e706ce4..5687082 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -1802,7 +1802,9 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_RX_OP_SUBTRACT",
"BFD_RELOC_RX_ABS8",
"BFD_RELOC_RX_ABS16",
+ "BFD_RELOC_RX_ABS16_REV",
"BFD_RELOC_RX_ABS32",
+ "BFD_RELOC_RX_ABS32_REV",
"BFD_RELOC_RX_ABS16U",
"BFD_RELOC_RX_ABS16UW",
"BFD_RELOC_RX_ABS16UL",
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index a5b7f68..322c5ea 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -2418,7 +2418,9 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo)
}
h1 = coff_link_hash_lookup (coff_hash_table (info),
- "__tls_used", FALSE, FALSE, TRUE);
+ (bfd_get_symbol_leading_char(abfd) != 0
+ ? "__tls_used" : "_tls_used"),
+ FALSE, FALSE, TRUE);
if (h1 != NULL)
{
if ((h1->root.type == bfd_link_hash_defined
@@ -2437,8 +2439,15 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo)
abfd);
result = FALSE;
}
-
+ /* According to PECOFF sepcifications by Microsoft version 8.2
+ the TLS data directory consists of 4 pointers, followed
+ by two 4-byte integer. This implies that the total size
+ is different for 32-bit and 64-bit executables. */
+#if !defined(COFF_WITH_pep) && !defined(COFF_WITH_pex64)
pe_data (abfd)->pe_opthdr.DataDirectory[PE_TLS_TABLE].Size = 0x18;
+#else
+ pe_data (abfd)->pe_opthdr.DataDirectory[PE_TLS_TABLE].Size = 0x28;
+#endif
}
/* If there is a .pdata section and we have linked pdata finally, we
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 5a428a2..6d4eb85 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -4262,8 +4262,12 @@ ENUMX
ENUMX
BFD_RELOC_RX_ABS16
ENUMX
+ BFD_RELOC_RX_ABS16_REV
+ENUMX
BFD_RELOC_RX_ABS32
ENUMX
+ BFD_RELOC_RX_ABS32_REV
+ENUMX
BFD_RELOC_RX_ABS16U
ENUMX
BFD_RELOC_RX_ABS16UW
diff --git a/bfd/version.h b/bfd/version.h
index 26536ee..68216b4 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101214
+#define BFD_VERSION_DATE 20101222
#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 002f3d2..bf9f525 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,114 @@
+2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * inferior.c (remove_inferior_command): Don't remove an active inferior.
+ * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
+
+2010-12-21 Tom Tromey <tromey@redhat.com>
+
+ * thread.c (print_thread_info): Make a ui-out table in CLI mode.
+
+2010-12-20 Yao Qi <yao@codesourcery.com>
+
+ * arm-tdep.c (arm_register_reggroup_p): New.
+ (arm_gdbarch_init): Set arm_register_reggroup_p for hook
+ register_reggroup_p.
+
+2010-12-20 Yao Qi <yao@codesourcery.com>
+
+ * features/arm-core.xml: Add attribute type to reg from r0 to r12.
+ * features/arm-with-iwmmxt.c: Regenerate.
+ * features/arm-with-neon.c: Regenerate.
+ * features/arm-with-vfpv2.c: Regenerate.
+ * features/arm-with-vfpv3.c: Regenerate.
+
+2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
+ (get_other_inferior): New.
+
+2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * python/py-progspace.c (py_free_pspace): Obtain arch another
+ way to avoid dereferencing a null pointer.
+
+2010-12-17 Michael Snyder <msnyder@vmware.com>
+
+ * utils.c (do_my_cleanups): Comment fix-up.
+
+2010-12-17 Kevin Buettner <kevinb@redhat.com>
+
+ * mips-tdep.c (make_mips16_addr): New function.
+ (mips_elf_make_msymbol_special): Don't set the low bit in the
+ symbol's address.
+ (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
+ indicating mips16 address, if present.
+ (mips_write_pc): Set bit indicating mips16 address when in a mips16
+ function.
+ (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
+ but for each function pointer argument to inferior function call.
+
+2010-12-17 Tom Tromey <tromey@redhat.com>
+
+ * psympriv.h (struct partial_symtab) <readin>: Move field
+ earlier.
+
+2010-12-16 Kevin Buettner <kevinb@redhat.com>
+
+ * mips-tdep.c (mips_convert_register_float_case_p)
+ (mips_convert_register_gpreg_case_p): New functions.
+ (mips_convert_register_p): Invoke new functions above.
+ (mips_register_to_value): Add case for fetching value shorter
+ than 64 bits from a 64-bit register.
+ (mips_value_to_register): Add case for storing value shorter
+ than 64 bits into a 64-bit register.
+
+2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
+
+ * python/py-value.c (value_object_type) <tp_flags>: Add
+ Py_TPFLAGS_BASETYPE.
+
+2010-12-16 Mike Frysinger <vapier@gentoo.org>
+
+ * NEWS: Mention new sim --map-info flag.
+
+2010-12-15 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
+ "save gdb-index" command.
+
+2010-12-15 Tom Tromey <tromey@redhat.com>
+
+ * infrun.c (save_infcall_control_state): Handle the
+ exception-resume breakpoint.
+ (restore_infcall_control_state): Likewise.
+ (discard_infcall_control_state): Likewise.
+
+2010-12-15 Kevin Buettner <kevinb@redhat.com>
+
+ * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
+ cooked values that are being transferred to 64-bit raw registers.
+ (mips_pseudo_register_read): Revise to preserve symmetry with
+ mips_pseudo_register_write().
+
+2010-12-15 Greg Watson <g.watson@computer.org>
+
+ * f-exp.y (yylex): Check entire token against keywords.
+
+2010-12-15 Doug Evans <dje@google.com>
+
+ Rename "maint set python auto-load" to "set auto-load-scripts".
+ * NEWS: Mention it.
+ * python/py-auto-load.c (auto_load_scripts): Renamed from
+ gdbpy_auto_load.
+ (load_auto_scripts_for_objfile): Update.
+ (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
+ "set auto-load-scripts".
+
+2010-12-14 Kevin Buettner <kevinb@redhat.com>
+
+ * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
+ than unsigned, values in registers.
+
2010-12-14 Ken Werner <ken.werner@de.ibm.com>
* valops.c (value_one): Use get_array_bounds to compute the number
diff --git a/gdb/NEWS b/gdb/NEWS
index 559609b..91f1835 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -8,6 +8,9 @@
-data-directory DIR Specify DIR as the "data-directory".
This is mostly for testing purposes.
+* The "maint set python auto-load on|off" command has been renamed to
+ "set auto-load-scripts on|off".
+
* GDB has a new command: "set directories".
It is like the "dir" command except that it replaces the
source path list instead of augmenting it.
@@ -115,6 +118,10 @@
* Guile support was removed.
+* New features in the GNU simulator
+
+ ** The --map-info flag lists all known core mappings.
+
*** Changes in GDB 7.2
* Shared library support for remote targets by default
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 636c1de..0f38b6b 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -29,6 +29,7 @@
#include "gdb_string.h"
#include "dis-asm.h" /* For register styles. */
#include "regcache.h"
+#include "reggroups.h"
#include "doublest.h"
#include "value.h"
#include "arch-utils.h"
@@ -6998,6 +6999,17 @@ arm_elf_osabi_sniffer (bfd *abfd)
return osabi;
}
+static int
+arm_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
+ struct reggroup *group)
+{
+ /* FPS register's type is INT, but belongs to float_group. */
+ if (regnum == ARM_FPS_REGNUM)
+ return (group == float_reggroup);
+ else
+ return default_register_reggroup_p (gdbarch, regnum, group);
+}
+
\f
/* Initialize the current architecture based on INFO. If possible,
re-use an architecture from ARCHES, which is a list of
@@ -7462,6 +7474,7 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_pc_regnum (gdbarch, ARM_PC_REGNUM);
set_gdbarch_num_regs (gdbarch, ARM_NUM_REGS);
set_gdbarch_register_type (gdbarch, arm_register_type);
+ set_gdbarch_register_reggroup_p (gdbarch, arm_register_reggroup_p);
/* This "info float" is FPA-specific. Use the generic version if we
do not have FPA. */
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index c1d0e1c..df46a17 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-15 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (Startup): Document auto-loading of scripts during
+ startup.
+ (Auto-loading): Delete "maint set python auto-load on|off".
+ Add "set auto-load-scripts on|off".
+
2010-12-07 Doug Evans <dje@google.com>
* gdb.texinfo (Mode Options): Document -data-directory.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index dc9630a..0e1d553 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1263,6 +1263,25 @@ to the program you are debugging, in the directory where you invoke
@value{GDBN}.
@item
+If the command line specified a program to debug, or a process to
+attach to, or a core file, @value{GDBN} loads any auto-loaded
+scripts provided for the program or for its loaded shared libraries.
+@xref{Auto-loading}.
+
+If you wish to disable the auto-loading during startup,
+you must do something like the following:
+
+@smallexample
+$ gdb -ex "set auto-load-scripts off" -ex "file myprogram"
+@end smallexample
+
+The following does not work because the auto-loading is turned off too late:
+
+@smallexample
+$ gdb -ex "set auto-load-scripts off" myprogram
+@end smallexample
+
+@item
Reads command files specified by the @samp{-x} option. @xref{Command
Files}, for more details about @value{GDBN} command files.
@@ -23114,13 +23133,13 @@ debugging commands and scripts.
Auto-loading can be enabled or disabled.
@table @code
-@kindex maint set python auto-load
-@item maint set python auto-load [yes|no]
-Enable or disable the Python auto-loading feature.
+@kindex set auto-load-scripts
+@item set auto-load-scripts [yes|no]
+Enable or disable the auto-loading of Python scripts.
-@kindex maint show python auto-load
-@item maint show python auto-load
-Show whether Python auto-loading is enabled or disabled.
+@kindex show auto-load-scripts
+@item show auto-load-scripts
+Show whether auto-loading of Python scripts is enabled or disabled.
@end table
When reading an auto-loaded file, @value{GDBN} sets the
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 2b48ff3..80770f8 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -15839,7 +15839,7 @@ The value is the maximum depth to print."),
c = add_cmd ("gdb-index", class_files, save_gdb_index_command,
_("\
-Save a .gdb-index file.\n\
+Save a gdb-index file.\n\
Usage: save gdb-index DIRECTORY"),
&save_cmdlist);
set_cmd_completer (c, filename_completer);
diff --git a/gdb/f-exp.y b/gdb/f-exp.y
index 415819a..feffe79 100644
--- a/gdb/f-exp.y
+++ b/gdb/f-exp.y
@@ -1150,8 +1150,8 @@ yylex ()
/* Catch specific keywords. */
for (i = 0; f77_keywords[i].operator != NULL; i++)
- if (strncmp (tokstart, f77_keywords[i].operator,
- strlen(f77_keywords[i].operator)) == 0)
+ if (strlen (f77_keywords[i].operator) == namelen
+ && strncmp (tokstart, f77_keywords[i].operator, namelen) == 0)
{
/* lexptr += strlen(f77_keywords[i].operator); */
yylval.opcode = f77_keywords[i].opcode;
diff --git a/gdb/features/arm-core.xml b/gdb/features/arm-core.xml
index 1624901..59e59e9 100644
--- a/gdb/features/arm-core.xml
+++ b/gdb/features/arm-core.xml
@@ -7,19 +7,19 @@
<!DOCTYPE feature SYSTEM "gdb-target.dtd">
<feature name="org.gnu.gdb.arm.core">
- <reg name="r0" bitsize="32"/>
- <reg name="r1" bitsize="32"/>
- <reg name="r2" bitsize="32"/>
- <reg name="r3" bitsize="32"/>
- <reg name="r4" bitsize="32"/>
- <reg name="r5" bitsize="32"/>
- <reg name="r6" bitsize="32"/>
- <reg name="r7" bitsize="32"/>
- <reg name="r8" bitsize="32"/>
- <reg name="r9" bitsize="32"/>
- <reg name="r10" bitsize="32"/>
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-14 17:13 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-12-14 17:13 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 38cdd2f1951b882ce68ff310f85e234a2450ddce (commit)
via a3568256dd143fe7badf11635b4607c26731325b (commit)
via 9ece7f002e466d35387177497d5991e55ddd04d6 (commit)
from a3422d9d1cf66dbfd75f1139fe924aba4133afd9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 38cdd2f1951b882ce68ff310f85e234a2450ddce
Merge: a3422d9 a356825
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Dec 14 18:13:28 2010 +0100
Merge remote branch 'gdb/master'
commit a3568256dd143fe7badf11635b4607c26731325b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Dec 14 14:50:41 2010 +0000
Move gdb ChangeLog entry to gdb/ChangeLog.
commit 9ece7f002e466d35387177497d5991e55ddd04d6
Author: kwerner <kwerner>
Date: Tue Dec 14 10:23:40 2010 +0000
gdb:
* valops.c (value_one): Use get_array_bounds to compute the number
of array elements instead of dividing the length of the array by the
length of the element types.
* valarith.c (value_complement, value_neg): Likewise.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 7 +++++++
gdb/valarith.c | 16 ++++++++++++----
gdb/valops.c | 8 ++++++--
3 files changed, 25 insertions(+), 6 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 379beb2..002f3d2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-14 Ken Werner <ken.werner@de.ibm.com>
+
+ * valops.c (value_one): Use get_array_bounds to compute the number
+ of array elements instead of dividing the length of the array by the
+ length of the element types.
+ * valarith.c (value_complement, value_neg): Likewise.
+
2010-12-14 Joel Brobecker <brobecker@adacore.com>
* irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 36e937d..6b212b2 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -1766,9 +1766,13 @@ value_neg (struct value *arg1)
{
struct value *tmp, *val = allocate_value (type);
struct type *eltype = check_typedef (TYPE_TARGET_TYPE (type));
- int i, n = TYPE_LENGTH (type) / TYPE_LENGTH (eltype);
+ int i;
+ LONGEST low_bound, high_bound;
- for (i = 0; i < n; i++)
+ if (!get_array_bounds (type, &low_bound, &high_bound))
+ error (_("Could not determine the vector bounds"));
+
+ for (i = 0; i < high_bound - low_bound + 1; i++)
{
tmp = value_neg (value_subscript (arg1, i));
memcpy (value_contents_writeable (val) + i * TYPE_LENGTH (eltype),
@@ -1798,10 +1802,14 @@ value_complement (struct value *arg1)
{
struct value *tmp;
struct type *eltype = check_typedef (TYPE_TARGET_TYPE (type));
- int i, n = TYPE_LENGTH (type) / TYPE_LENGTH (eltype);
+ int i;
+ LONGEST low_bound, high_bound;
+
+ if (!get_array_bounds (type, &low_bound, &high_bound))
+ error (_("Could not determine the vector bounds"));
val = allocate_value (type);
- for (i = 0; i < n; i++)
+ for (i = 0; i < high_bound - low_bound + 1; i++)
{
tmp = value_complement (value_subscript (arg1, i));
memcpy (value_contents_writeable (val) + i * TYPE_LENGTH (eltype),
diff --git a/gdb/valops.c b/gdb/valops.c
index dfadad8..7ea6315 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -877,11 +877,15 @@ value_one (struct type *type, enum lval_type lv)
else if (TYPE_CODE (type1) == TYPE_CODE_ARRAY && TYPE_VECTOR (type1))
{
struct type *eltype = check_typedef (TYPE_TARGET_TYPE (type1));
- int i, n = TYPE_LENGTH (type1) / TYPE_LENGTH (eltype);
+ int i;
+ LONGEST low_bound, high_bound;
struct value *tmp;
+ if (!get_array_bounds (type1, &low_bound, &high_bound))
+ error (_("Could not determine the vector bounds"));
+
val = allocate_value (type);
- for (i = 0; i < n; i++)
+ for (i = 0; i < high_bound - low_bound + 1; i++)
{
tmp = value_one (eltype, lv);
memcpy (value_contents_writeable (val) + i * TYPE_LENGTH (eltype),
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-14 8:27 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-12-14 8:27 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via a3422d9d1cf66dbfd75f1139fe924aba4133afd9 (commit)
via 8a65048726d8ceba13dfd089a76b3893562dfc1c (commit)
via 5c8b735209edd71f4c5337194b8f80c7effb9cb0 (commit)
via 06986c99481f6ac7677f3acefd4881b01db48371 (commit)
via c64955e410919ac6cdacefe2d5cb5b9d417d74c4 (commit)
via ab83f16f599b5d3d0f99245a6c58d2aa422168d6 (commit)
via 6c0ea7dd3632660e4f85170b5ce3e86c78087f1b (commit)
via e6377c333cf6f1573e4e0ff22ac56a3fe11bcf0e (commit)
via 9d6207ac0871bb8039bb5a08a59d0f4e30a2cf98 (commit)
via d84e5e930e2e86762b84643d39cfc31f3d13bb59 (commit)
via 6d2bf6d7d060fbbd3f32d8c3e7d54fe6460eed48 (commit)
via 6254e798e614d8120de346a830578666efe03c74 (commit)
via e33f3e3e0c1a0c2011bc46a5dd6b7d2ab056cbd8 (commit)
via 9ae2bba719f306e922e622bd3ff161a4bbaed20d (commit)
via 412f42e610580d43101d23aea4837002325c271e (commit)
via 823ea0e017d2c769a434845a0f4a2fdf99551c52 (commit)
via 5a36b4fd39d6ed34881f4b41320f2d262a2cf1f7 (commit)
via 9aef96442583bee6235626825ac5cd7ff249211a (commit)
via 6227a1b5c83a964f69d136366286901f3c6d6954 (commit)
via dbc801b6a84373b31d3c91fa6316bf793155aa9b (commit)
via 4e16f9ba78fefbc9866c210389754d842fb3c2aa (commit)
via 5ed19ecbad49ec0c29220870e9cfc69ef2ed5577 (commit)
via 63962a7ceeaa8d3e64fa64623061d76da307d839 (commit)
from aba8cd875362142c4a9415b27d7ee6569ed6467a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit a3422d9d1cf66dbfd75f1139fe924aba4133afd9
Merge: aba8cd8 8a65048
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Tue Dec 14 08:27:44 2010 +0000
Merge remote branch 'gdb/master'
commit 8a65048726d8ceba13dfd089a76b3893562dfc1c
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Dec 14 07:17:11 2010 +0000
build failure on IRIX when building with Python support.
This is a nasty interaction between Python and GDB. Basically,
Python causes some macros to be unilaterally defined in order
to turns some features on:
/* Define to activate features from IEEE Stds 1003.1-2001 */
#define _POSIX_C_SOURCE 200112L
/* Define to the level of X/Open that your system supports */
#define _XOPEN_SOURCE 600
But the problem is that they turn off defines provided by some
system headers on which we depend. Namely:
* sys/siginfo.h:
#if _SGIAPI
#define siginfo __siginfo
#endif
* sys/ucontext.h:
#if _SGIAPI && !defined(__SGI_NOUCONTEXT_COMPAT)
[...]
#define fp_r __fp_r
[...]
#define fp_csr __fp_csr
[...]
#endif
The important macro here is _SGIAPI, defined as follow in standards.h:
#define _SGIAPI ((defined(_SGI_SOURCE) && \
_NO_POSIX && _NO_XOPEN4 && _NO_XOPEN5) || \
(_ANSIMODE && _NO_POSIX && _NO_XOPEN4 && _NO_XOPEN5))
If one builds GDB without Python, then _SGIAPI is true, and all is fine.
But building with Python causes both _POSIX_C_SOURCE and _XOPEN_SOURCE
to trip all the _NO_[...] tests (_NO_POSIX, _NO_XOPEN4, _NO_XOPEN5).
And so we get build failures because we try to use undefined types, or
non-existent component names inside the regset structure.
The latter problem is observed only within irix5-nat.c, which means
that it is specific to IRIX. So it's easy to write the code in a way
that it does not require the macros (just use the real component names,
rather than relying on the macros to do the translation).
The former, on the other hand, is a little trickier, because the problem
occurs inside a generic unit (procfs.c). The solution I chose was to
adjust the configure script to add -Dsiginfo=__siginfo to the CPPFLAGS
if building with python using GCC on IRIX.
We hadn't seen this sort of issue up to now because the affect units
have not been dependent on the python includes up to now. Recent changes
have made them indirectly dependent on Python, thus triggering the issues.
gdb/ChangeLog:
* irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
and __fp_scr respectively throughout.
* configure.ac: Compile with -Dsiginfo=__siginfo if building with
Python using GCC on IRIX.
* configure: Regenerate.
commit 5c8b735209edd71f4c5337194b8f80c7effb9cb0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Dec 14 00:00:33 2010 +0000
*** empty log message ***
commit 06986c99481f6ac7677f3acefd4881b01db48371
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Dec 13 23:00:06 2010 +0000
daily update
commit c64955e410919ac6cdacefe2d5cb5b9d417d74c4
Author: Kevin Buettner <kevinb@redhat.com>
Date: Mon Dec 13 15:45:53 2010 +0000
* solib-svr4.c (enable_break): Don't attempt to place breakpoints,
when attaching, on the names in bkpt_names: _start, __start, and
main.
commit ab83f16f599b5d3d0f99245a6c58d2aa422168d6
Author: Stan Shebs <shebs@apple.com>
Date: Mon Dec 13 05:29:29 2010 +0000
2010-12-12 Stan Shebs <stan@codesourcery.com>
* value.c (value_of_internalvar): Add case for trace state
variables.
* gdb.trace/tsv.exp: Test print command on trace state variables.
commit 6c0ea7dd3632660e4f85170b5ce3e86c78087f1b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Dec 13 01:06:13 2010 +0000
* aoutx.h (aout_link_check_ar_symbols): Formatting.
* cofflink.c (coff_link_check_ar_symbols): Likewise.
* elflink.c (elf_link_add_archive_symbols): Likewise.
* pdp11.c (aout_link_check_ar_symbols): Likewise.
* xcofflink.c (xcoff_link_check_dynamic_ar_symbols,
xcoff_link_check_dynamic_ar_symbols): Likewise.
* aoutx.h (aout_link_check_archive_element): Simplify code dealing
with add_archive_element substitute BFD.
* cofflink.c (coff_link_check_archive_element): Likewise.
* ecoff.c (ecoff_link_check_archive_element): Likewise.
(ecoff_link_add_archive_symbols): Likewise.
* linker.c (generic_link_check_archive_element): Likewise.
* pdp11.c (aout_link_check_archive_element): Likewise.
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
* xcofflink.c (xcoff_link_check_archive_element): Likewise.
* aoutx.h (aout_link_check_archive_element): Free symbols from old
bfd if !keep_memory.
* cofflink.c (coff_link_check_archive_element): Likewise.
* pdp11.c (aout_link_check_archive_element): Likewise.
* xcofflink.c (xcoff_link_check_archive_element): Likewise.
commit e6377c333cf6f1573e4e0ff22ac56a3fe11bcf0e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Dec 13 00:00:04 2010 +0000
*** empty log message ***
commit 9d6207ac0871bb8039bb5a08a59d0f4e30a2cf98
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Dec 12 23:50:46 2010 +0000
* plugin.c (bfd_plugin_mkobject): Delete.
(plugin_vec): Use bfd_false instead.
commit d84e5e930e2e86762b84643d39cfc31f3d13bb59
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Dec 12 23:00:05 2010 +0000
daily update
commit 6d2bf6d7d060fbbd3f32d8c3e7d54fe6460eed48
Author: Doug Evans <dje@google.com>
Date: Sun Dec 12 19:19:27 2010 +0000
* dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
(dwarf2_per_cu_quick_data): Move definition down to "quick functions"
section. Delete members lines full_names. Rename read_lines to
no_file_data.
(quick_file_names): New struct.
(hash_file_name_entry, eq_file_name_entry): New functions.
(delete_file_name_entry, create_quick_file_names_table): New functions.
(dwarf2_read_index): Initialize quick_file_names_table.
(dw2_get_file_names): Renamed from dw2_require_line_header.
Return pointer to quick_file_names entry. All callers updated.
(dw2_get_real_path): Renamed from dw2_require_full_path.
Replace per_cu arg with pointer to quick_file_names entry.
All callers updated.
(dw2_free_cached_file_names): New function.
(dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
(dwarf2_initialize_objfile): Initialize quick_file_names_table in
the OBJF_READNOW case.
(dwarf2_free_objfile): Rewrite freeing of quick file names tables.
commit 6254e798e614d8120de346a830578666efe03c74
Author: Mark Kettenis <kettenis@gnu.org>
Date: Sun Dec 12 19:06:21 2010 +0000
Fix mail addres in ChangeLog.
commit e33f3e3e0c1a0c2011bc46a5dd6b7d2ab056cbd8
Author: Mark Kettenis <kettenis@gnu.org>
Date: Sun Dec 12 18:23:25 2010 +0000
* mips64obsd-tdep.c (floatformats_mips64_quad): New define.
(mips64obsd_init_abi): Set long_double_bit and long_double_format.
commit 9ae2bba719f306e922e622bd3ff161a4bbaed20d
Author: Mark Kettenis <kettenis@gnu.org>
Date: Sun Dec 12 17:41:17 2010 +0000
* sparc-tdep.c: Fix typo in comment.
commit 412f42e610580d43101d23aea4837002325c271e
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Dec 12 14:52:26 2010 +0000
Optimize for add_archive_element.
bfd/
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_link_add_archive_symbols): Remove subsbfd.
ld/
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (load_symbols): Optimize for add_archive_element.
commit 823ea0e017d2c769a434845a0f4a2fdf99551c52
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Dec 12 14:49:24 2010 +0000
Mark .gnu.lto_* sections with SHF_EXCLUDE.
bfd/
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (special_sections_g): Add ".gnu.lto_".
gas/testsuite/
2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
* gas/elf/elf.exp: Run section9.
* gas/elf/section9.d: New.
* gas/elf/section9.s: Likewise.
commit 5a36b4fd39d6ed34881f4b41320f2d262a2cf1f7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Dec 12 00:00:03 2010 +0000
*** empty log message ***
commit 9aef96442583bee6235626825ac5cd7ff249211a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Dec 11 23:00:05 2010 +0000
daily update
commit 6227a1b5c83a964f69d136366286901f3c6d6954
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Sat Dec 11 10:48:54 2010 +0000
opcodes/
2010-12-03 Mingming Sun <mingm.sun@gmail.com>
* mips-opc.c: (mips_builtin_opcodes): Add loongson3a mul/div and
fixed point instructions.
gas/testsuite/
2010-12-03 Mingming Sun <mingm.sun@gmail.com>
* gas/mips/loongson-3a.s, gas/mips/loongson-3a.d: New test.
* gas/mips/mips.exp: Run it.
commit dbc801b6a84373b31d3c91fa6316bf793155aa9b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Dec 11 00:01:03 2010 +0000
*** empty log message ***
commit 4e16f9ba78fefbc9866c210389754d842fb3c2aa
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Dec 10 23:00:05 2010 +0000
daily update
commit 5ed19ecbad49ec0c29220870e9cfc69ef2ed5577
Author: Doug Evans <dje@google.com>
Date: Fri Dec 10 21:59:59 2010 +0000
* dwarf2read.c: Whitespace cleanup, plus comment additions.
No code changes.
commit 63962a7ceeaa8d3e64fa64623061d76da307d839
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Dec 10 20:33:43 2010 +0000
* NEWS: Document exception-handling change.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 38 ++++
bfd/aoutx.h | 43 +++--
bfd/cofflink.c | 47 +++--
bfd/ecoff.c | 25 +--
bfd/elf.c | 1 +
bfd/elflink.c | 9 +-
bfd/linker.c | 22 +--
bfd/pdp11.c | 35 +++--
bfd/plugin.c | 9 +-
bfd/version.h | 2 +-
bfd/vms-alpha.c | 11 +-
bfd/xcofflink.c | 30 ++--
gdb/ChangeLog | 58 ++++++
gdb/NEWS | 7 +
gdb/configure | 15 ++
gdb/configure.ac | 15 ++
gdb/dwarf2read.c | 375 +++++++++++++++++++++++++--------------
gdb/irix5-nat.c | 11 +-
gdb/mips64obsd-tdep.c | 8 +
gdb/solib-svr4.c | 21 ++-
gdb/sparc-tdep.c | 2 +-
gdb/testsuite/ChangeLog | 4 +
gdb/testsuite/gdb.trace/tsv.exp | 70 +++++++-
gdb/value.c | 18 ++
gdb/version.in | 2 +-
opcodes/ChangeLog | 5 +
opcodes/mips-opc.c | 56 ++++---
27 files changed, 652 insertions(+), 287 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 10d3b98..8e12461 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,41 @@
+2010-12-13 Alan Modra <amodra@gmail.com>
+
+ * aoutx.h (aout_link_check_ar_symbols): Formatting.
+ * cofflink.c (coff_link_check_ar_symbols): Likewise.
+ * elflink.c (elf_link_add_archive_symbols): Likewise.
+ * pdp11.c (aout_link_check_ar_symbols): Likewise.
+ * xcofflink.c (xcoff_link_check_dynamic_ar_symbols,
+ xcoff_link_check_dynamic_ar_symbols): Likewise.
+
+ * aoutx.h (aout_link_check_archive_element): Simplify code dealing
+ with add_archive_element substitute BFD.
+ * cofflink.c (coff_link_check_archive_element): Likewise.
+ * ecoff.c (ecoff_link_check_archive_element): Likewise.
+ (ecoff_link_add_archive_symbols): Likewise.
+ * linker.c (generic_link_check_archive_element): Likewise.
+ * pdp11.c (aout_link_check_archive_element): Likewise.
+ * vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
+ * xcofflink.c (xcoff_link_check_archive_element): Likewise.
+
+ * aoutx.h (aout_link_check_archive_element): Free symbols from old
+ bfd if !keep_memory.
+ * cofflink.c (coff_link_check_archive_element): Likewise.
+ * pdp11.c (aout_link_check_archive_element): Likewise.
+ * xcofflink.c (xcoff_link_check_archive_element): Likewise.
+
+2010-12-13 Alan Modra <amodra@gmail.com>
+
+ * plugin.c (bfd_plugin_mkobject): Delete.
+ (plugin_vec): Use bfd_false instead.
+
+2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elflink.c (elf_link_add_archive_symbols): Remove subsbfd.
+
+2010-12-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf.c (special_sections_g): Add ".gnu.lto_".
+
2010-12-10 Alan Modra <amodra@gmail.com>
* config.bfd: Configure rs6000-*-aix* as for powerpc-*-aix*.
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index efa9d47..7ca221e 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -3305,8 +3305,8 @@ aout_link_check_ar_symbols (bfd *abfd,
continue;
}
- if (! (*info->callbacks->add_archive_element)
- (info, abfd, name, subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -3333,8 +3333,8 @@ aout_link_check_ar_symbols (bfd *abfd,
outside BFD. We assume that we should link
in the object file. This is done for the -u
option in the linker. */
- if (! (*info->callbacks->add_archive_element)
- (info, abfd, name, subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -3343,8 +3343,8 @@ aout_link_check_ar_symbols (bfd *abfd,
symbol. It is already on the undefs list. */
h->type = bfd_link_hash_common;
h->u.c.p = (struct bfd_link_hash_common_entry *)
- bfd_hash_allocate (&info->hash->table,
- sizeof (struct bfd_link_hash_common_entry));
+ bfd_hash_allocate (&info->hash->table,
+ sizeof (struct bfd_link_hash_common_entry));
if (h->u.c.p == NULL)
return FALSE;
@@ -3382,8 +3382,8 @@ aout_link_check_ar_symbols (bfd *abfd,
it if the current link symbol is common. */
if (h->type == bfd_link_hash_undefined)
{
- if (! (*info->callbacks->add_archive_element)
- (info, abfd, name, subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -3404,27 +3404,36 @@ aout_link_check_archive_element (bfd *abfd,
struct bfd_link_info *info,
bfd_boolean *pneeded)
{
- bfd *subsbfd = NULL;
+ bfd *oldbfd;
+ bfd_boolean needed;
- if (! aout_get_external_symbols (abfd))
+ if (!aout_get_external_symbols (abfd))
return FALSE;
- if (! aout_link_check_ar_symbols (abfd, info, pneeded, &subsbfd))
+ oldbfd = abfd;
+ if (!aout_link_check_ar_symbols (abfd, info, pneeded, &abfd))
return FALSE;
- if (*pneeded)
+ needed = *pneeded;
+ if (needed)
{
/* Potentially, the add_archive_element hook may have set a
substitute BFD for us. */
- if (subsbfd && !aout_get_external_symbols (subsbfd))
- return FALSE;
- if (! aout_link_add_symbols (subsbfd ? subsbfd : abfd, info))
+ if (abfd != oldbfd)
+ {
+ if (!info->keep_memory
+ && !aout_link_free_symbols (oldbfd))
+ return FALSE;
+ if (!aout_get_external_symbols (abfd))
+ return FALSE;
+ }
+ if (!aout_link_add_symbols (abfd, info))
return FALSE;
}
- if (! info->keep_memory || ! *pneeded)
+ if (!info->keep_memory || !needed)
{
- if (! aout_link_free_symbols (abfd))
+ if (!aout_link_free_symbols (abfd))
return FALSE;
}
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index a28d396..33de7fe 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -244,8 +244,8 @@ coff_link_check_ar_symbols (bfd *abfd,
if (h != (struct bfd_link_hash_entry *) NULL
&& h->type == bfd_link_hash_undefined)
{
- if (! (*info->callbacks->add_archive_element)
- (info, abfd, name, subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -269,29 +269,38 @@ coff_link_check_archive_element (bfd *abfd,
struct bfd_link_info *info,
bfd_boolean *pneeded)
{
- bfd *subsbfd = NULL;
+ bfd *oldbfd;
+ bfd_boolean needed;
- if (! _bfd_coff_get_external_symbols (abfd))
- return FALSE;
-
- if (! coff_link_check_ar_symbols (abfd, info, pneeded, &subsbfd))
- return FALSE;
-
- /* Potentially, the add_archive_element hook may have set a
- substitute BFD for us. */
- if (*pneeded
- && subsbfd
- && ! _bfd_coff_get_external_symbols (subsbfd))
+ if (!_bfd_coff_get_external_symbols (abfd))
return FALSE;
- if (*pneeded
- && ! coff_link_add_symbols (subsbfd ? subsbfd : abfd, info))
+ oldbfd = abfd;
+ if (!coff_link_check_ar_symbols (abfd, info, pneeded, &abfd))
return FALSE;
- if ((! info->keep_memory || ! *pneeded)
- && ! _bfd_coff_free_symbols (abfd))
- return FALSE;
+ needed = *pneeded;
+ if (needed)
+ {
+ /* Potentially, the add_archive_element hook may have set a
+ substitute BFD for us. */
+ if (abfd != oldbfd)
+ {
+ if (!info->keep_memory
+ && !_bfd_coff_free_symbols (oldbfd))
+ return FALSE;
+ if (!_bfd_coff_get_external_symbols (abfd))
+ return FALSE;
+ }
+ if (!coff_link_add_symbols (abfd, info))
+ return FALSE;
+ }
+ if (!info->keep_memory || !needed)
+ {
+ if (!_bfd_coff_free_symbols (abfd))
+ return FALSE;
+ }
return TRUE;
}
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index 4349486..f85627d 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -3600,7 +3600,7 @@ ecoff_link_check_archive_element (bfd *abfd,
EXTR esym;
bfd_boolean def;
const char *name;
- bfd *subsbfd;
+ bfd *oldbfd;
struct bfd_link_hash_entry *h;
(*swap_ext_in) (abfd, (void *) ext_ptr, &esym);
@@ -3645,18 +3645,17 @@ ecoff_link_check_archive_element (bfd *abfd,
continue;
/* Include this element. */
- subsbfd = NULL;
- if (! (*info->callbacks->add_archive_element)
- (info, abfd, name, &subsbfd))
+ oldbfd = abfd;
+ if (!(*info->callbacks
+ ->add_archive_element) (info, abfd, name, &abfd))
goto error_return;
/* Potentially, the add_archive_element hook may have set a
substitute BFD for us. */
- if (subsbfd
+ if (abfd != oldbfd
&& !reread_ext_syms_and_strs (&symhdr, &external_ext_size, &esize,
- &external_ext, &ssext, subsbfd, backend))
+ &external_ext, &ssext, abfd, backend))
goto error_return;
- if (! ecoff_link_add_externals (subsbfd ? subsbfd : abfd, info,
- external_ext, ssext))
+ if (! ecoff_link_add_externals (abfd, info, external_ext, ssext))
goto error_return;
*pneeded = TRUE;
@@ -3733,7 +3732,6 @@ ecoff_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
unsigned int file_offset;
const char *name;
bfd *element;
- bfd *subsbfd;
h = *pundef;
@@ -3820,13 +3818,10 @@ ecoff_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
/* Unlike the generic linker, we know that this element provides
a definition for an undefined symbol and we know that we want
to include it. We don't need to check anything. */
- subsbfd = NULL;
- if (! (*info->callbacks->add_archive_element)
- (info, element, name, &subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, element, name, &element))
return FALSE;
- /* Potentially, the add_archive_element hook may have set a
- substitute BFD for us. */
- if (! ecoff_link_add_object_symbols (subsbfd ? subsbfd : element, info))
+ if (! ecoff_link_add_object_symbols (element, info))
return FALSE;
pundef = &(*pundef)->u.undef.next;
diff --git a/bfd/elf.c b/bfd/elf.c
index 075a668..0e7cd9a 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2082,6 +2082,7 @@ static const struct bfd_elf_special_section special_sections_f[] =
static const struct bfd_elf_special_section special_sections_g[] =
{
{ STRING_COMMA_LEN (".gnu.linkonce.b"), -2, SHT_NOBITS, SHF_ALLOC + SHF_WRITE },
+ { STRING_COMMA_LEN (".gnu.lto_"), -1, SHT_PROGBITS, SHF_EXCLUDE },
{ STRING_COMMA_LEN (".got"), 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
{ STRING_COMMA_LEN (".gnu.version"), 0, SHT_GNU_versym, 0 },
{ STRING_COMMA_LEN (".gnu.version_d"), 0, SHT_GNU_verdef, 0 },
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 32575d9..6136a94 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -5011,7 +5011,6 @@ elf_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
{
struct elf_link_hash_entry *h;
bfd *element;
- bfd *subsbfd = NULL;
struct bfd_link_hash_entry *undefs_tail;
symindex mark;
@@ -5074,12 +5073,10 @@ elf_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
undefs_tail = info->hash->undefs_tail;
- if (! (*info->callbacks->add_archive_element)
- (info, element, symdef->name, &subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, element, symdef->name, &element))
goto error_return;
- /* Potentially, the add_archive_element hook may have set a
- substitute BFD for us. */
- if (! bfd_link_add_symbols (subsbfd ? subsbfd : element, info))
+ if (!bfd_link_add_symbols (element, info))
goto error_return;
/* If there are any new undefined symbols, we need to make
diff --git a/bfd/linker.c b/bfd/linker.c
index fc52b51..2b52ba9 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -1223,20 +1223,18 @@ generic_link_check_archive_element (bfd *abfd,
{
bfd_size_type symcount;
asymbol **symbols;
- bfd *subsbfd = NULL;
+ bfd *oldbfd = abfd;
/* This object file defines this symbol, so pull it in. */
- if (! (*info->callbacks->add_archive_element)
- (info, abfd, bfd_asymbol_name (p), &subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, abfd, bfd_asymbol_name (p),
+ &abfd))
return FALSE;
/* Potentially, the add_archive_element hook may have set a
substitute BFD for us. */
- if (subsbfd)
- {
- abfd = subsbfd;
- if (!bfd_generic_link_read_symbols (abfd))
- return FALSE;
- }
+ if (abfd != oldbfd
+ && !bfd_generic_link_read_symbols (abfd))
+ return FALSE;
symcount = _bfd_generic_link_get_symcount (abfd);
symbols = _bfd_generic_link_get_symbols (abfd);
if (! generic_link_add_symbol_list (abfd, info, symcount,
@@ -1257,12 +1255,12 @@ generic_link_check_archive_element (bfd *abfd,
symbfd = h->u.undef.abfd;
if (symbfd == NULL)
{
- bfd *subsbfd = NULL;
/* This symbol was created as undefined from outside
BFD. We assume that we should link in the object
file. This is for the -u option in the linker. */
- if (! (*info->callbacks->add_archive_element)
- (info, abfd, bfd_asymbol_name (p), &subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, abfd, bfd_asymbol_name (p),
+ &abfd))
return FALSE;
/* Potentially, the add_archive_element hook may have set a
substitute BFD for us. But no symbols are going to get
diff --git a/bfd/pdp11.c b/bfd/pdp11.c
index 08aab37..3821037 100644
--- a/bfd/pdp11.c
+++ b/bfd/pdp11.c
@@ -2601,8 +2601,8 @@ aout_link_check_ar_symbols (bfd *abfd,
but not if it is defined in the .text section. That
seems a bit crazy to me, and I haven't implemented it.
However, it might be correct. */
- if (! (*info->callbacks->add_archive_element)
- (info, abfd, name, subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -2629,8 +2629,8 @@ aout_link_check_ar_symbols (bfd *abfd,
outside BFD. We assume that we should link
in the object file. This is done for the -u
option in the linker. */
- if (! (*info->callbacks->add_archive_element)
- (info, abfd, name, subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -2682,27 +2682,36 @@ aout_link_check_archive_element (bfd *abfd,
struct bfd_link_info *info,
bfd_boolean *pneeded)
{
- bfd *subsbfd = NULL;
+ bfd *oldbfd;
+ bfd_boolean needed;
- if (! aout_get_external_symbols (abfd))
+ if (!aout_get_external_symbols (abfd))
return FALSE;
- if (! aout_link_check_ar_symbols (abfd, info, pneeded, &subsbfd))
+ oldbfd = abfd;
+ if (!aout_link_check_ar_symbols (abfd, info, pneeded, &abfd))
return FALSE;
- if (*pneeded)
+ needed = *pneeded;
+ if (needed)
{
/* Potentially, the add_archive_element hook may have set a
substitute BFD for us. */
- if (subsbfd && ! aout_get_external_symbols (subsbfd))
- return FALSE;
- if (! aout_link_add_symbols (subsbfd ? subsbfd : abfd, info))
+ if (abfd != oldbfd)
+ {
+ if (!info->keep_memory
+ && !aout_link_free_symbols (oldbfd))
+ return FALSE;
+ if (!aout_get_external_symbols (abfd))
+ return FALSE;
+ }
+ if (!aout_link_add_symbols (abfd, info))
return FALSE;
}
- if (! info->keep_memory || ! *pneeded)
+ if (!info->keep_memory || !needed)
{
- if (! aout_link_free_symbols (abfd))
+ if (!aout_link_free_symbols (abfd))
return FALSE;
}
diff --git a/bfd/plugin.c b/bfd/plugin.c
index 61cd687..30a4923 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
@@ -448,13 +448,6 @@ bfd_plugin_sizeof_headers (bfd *a ATTRIBUTE_UNUSED,
return 0;
}
-static bfd_boolean
-bfd_plugin_mkobject (bfd *abfd ATTRIBUTE_UNUSED)
-{
- BFD_ASSERT (0);
- return 0;
-}
-
const bfd_target plugin_vec =
{
"plugin", /* Name. */
@@ -485,7 +478,7 @@ const bfd_target plugin_vec =
},
{ /* bfd_set_format. */
bfd_false,
- bfd_plugin_mkobject,
+ bfd_false,
_bfd_generic_mkarchive,
bfd_false,
},
diff --git a/bfd/version.h b/bfd/version.h
index e704060..26536ee 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101210
+#define BFD_VERSION_DATE 20101214
#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/bfd/vms-alpha.c b/bfd/vms-alpha.c
index ba195f9..309c3a2 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -8220,7 +8220,6 @@ alpha_vms_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
symindex symidx;
bfd *element;
bfd *orig_element;
- bfd *subsbfd;
h = *pundef;
next_pundef = &(*pundef)->u.undef.next;
@@ -8278,14 +8277,10 @@ alpha_vms_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
/* Unlike the generic linker, we know that this element provides
a definition for an undefined symbol and we know that we want
to include it. We don't need to check anything. */
- subsbfd = NULL;
- if (! (*info->callbacks->add_archive_element)
- (info, element, h->root.string, &subsbfd))
+ if (!(*info->callbacks
+ ->add_archive_element) (info, element, h->root.string, &element))
return FALSE;
- /* Potentially, the add_archive_element hook may have set a
- substitute BFD for us. */
- if (! alpha_vms_link_add_object_symbols (subsbfd ? subsbfd : element,
- info))
+ if (!alpha_vms_link_add_object_symbols (element, info))
return FALSE;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-10 17:16 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-12-10 17:16 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via aba8cd875362142c4a9415b27d7ee6569ed6467a (commit)
via 7b2b0d224cdb69b849e35c8cf9178a68b5fbb5a5 (commit)
via 78dfc48ba55545702ef520758de3cb70f9dae689 (commit)
via e014e39f5adef100506cdae7b40c33ab413c4a4f (commit)
via b5f2c9de753b28ba696acd64e2ae5f461e8e5bb3 (commit)
via 2bf6f365906ab18210152f960bb1964fc8bd8ea7 (commit)
via f066d508597485ba85468202f253fb8fa905cd70 (commit)
via fc2a20735997e42ad2a708f2ecde99284e6e6227 (commit)
via ecfcf3d644585028a6b31bd6b8fef11a99819abe (commit)
via e363f217cac07310e00c4a048c22e2fdc8eae2e6 (commit)
via 89ce8d4bd4a1aa64169928b4478eb112db891c8a (commit)
via e8c3912c58bde7afceb133154d94430097195e6e (commit)
via f6fffb5c85b6ae486e8c7c4818143b678d01207a (commit)
via 95eff2fb6321f6da995145ac27760e33e6300397 (commit)
via 625c318cdc3f4cda81d28a76878827b3930de728 (commit)
via 6483066954a45f74ba5c8714e67c911026b47c78 (commit)
via cfd59d46a2bcfc9de4e72aeba847ac29e56a8b43 (commit)
via 9d11e2823c8c241c2cf465e5eb8c0765a329e148 (commit)
via c649ca66b44a7390e0c263ed927c8fd5d4b18bc1 (commit)
via 68a319b90dca7951d5df3640da7e943a28b02e37 (commit)
via b9dfe9746d527111b67c454b6d64b44a69db63d2 (commit)
via 6703fb1c02cb1cab84045480543723ddb120a172 (commit)
via b47f816c5c5b4076f1b9d7601bd617d77d98a5da (commit)
via 431f664cad8887aed70646d72334ce5e42997e49 (commit)
via f56bc74802e5301a778b69b270767ec0cd4c167a (commit)
from b1463fe8242bc8a3ff48142ccf92a8c6848f59f9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit aba8cd875362142c4a9415b27d7ee6569ed6467a
Merge: b1463fe 7b2b0d2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Dec 10 18:16:41 2010 +0100
Merge remote branch 'gdb/master'
commit 7b2b0d224cdb69b849e35c8cf9178a68b5fbb5a5
Author: Ian Lance Taylor <ian@airs.com>
Date: Fri Dec 10 14:50:10 2010 +0000
PR bootstrap/46819
* configure.ac: For --disable-libgcj clear libgcj_saved.
* configure: Rebuild.
commit 78dfc48ba55545702ef520758de3cb70f9dae689
Author: Paolo Bonzini <bonzini@gnu.org>
Date: Fri Dec 10 12:09:34 2010 +0000
2010-12-10 Tobias Burnus <burnus@net-b.de>
PR fortran/46540
* configure.ac: Add --disable-libquadmath and
--disable-libquadmath-support.
commit e014e39f5adef100506cdae7b40c33ab413c4a4f
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Dec 10 09:10:49 2010 +0000
2010-12-10 Tristan Gingold <gingold@adacore.com>
* src-release (ETC_SUPPORT): add gnu-oids.texi
commit b5f2c9de753b28ba696acd64e2ae5f461e8e5bb3
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Dec 10 09:10:49 2010 +0000
2010-12-10 Tristan Gingold <gingold@adacore.com>
* src-release (ETC_SUPPORT): add gnu-oids.texi
commit 2bf6f365906ab18210152f960bb1964fc8bd8ea7
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Dec 10 09:10:49 2010 +0000
2010-12-10 Tristan Gingold <gingold@adacore.com>
* src-release (ETC_SUPPORT): add gnu-oids.texi
commit f066d508597485ba85468202f253fb8fa905cd70
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Dec 10 09:10:49 2010 +0000
2010-12-10 Tristan Gingold <gingold@adacore.com>
* src-release (ETC_SUPPORT): add gnu-oids.texi
commit fc2a20735997e42ad2a708f2ecde99284e6e6227
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Dec 10 09:10:49 2010 +0000
2010-12-10 Tristan Gingold <gingold@adacore.com>
* src-release (ETC_SUPPORT): add gnu-oids.texi
commit ecfcf3d644585028a6b31bd6b8fef11a99819abe
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Dec 10 01:03:12 2010 +0000
* config.bfd: Configure rs6000-*-aix* as for powerpc-*-aix*.
Add aix5coff64_vec to powerpc ELF entries.
commit e363f217cac07310e00c4a048c22e2fdc8eae2e6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Dec 10 00:00:33 2010 +0000
*** empty log message ***
commit 89ce8d4bd4a1aa64169928b4478eb112db891c8a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Dec 9 23:00:08 2010 +0000
daily update
commit e8c3912c58bde7afceb133154d94430097195e6e
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Thu Dec 9 20:41:54 2010 +0000
* mi/mi-parse.c (mi_parse): Wrong error message.
commit f6fffb5c85b6ae486e8c7c4818143b678d01207a
Author: Doug Evans <dje@google.com>
Date: Thu Dec 9 19:52:23 2010 +0000
* symfile.h (quick_symbol_functions): Clarify usage of
map_symbol_filenames.
commit 95eff2fb6321f6da995145ac27760e33e6300397
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Dec 9 19:23:49 2010 +0000
gdb
* mi/mi-parse.h (mi_parse): Update.
* mi/mi-parse.c (mi_parse_cleanup): New function.
(mi_parse): Add 'token' argument. Throw exception on error.
* mi/mi-main.c (mi_print_exception): New function.
(mi_execute_command): Use mi_print_exception. Catch exceptions
from mi_parse.
gdb/testsuite
* gdb.base/interp.exp: Add regression test.
commit 625c318cdc3f4cda81d28a76878827b3930de728
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Dec 9 16:09:49 2010 +0000
gdb
PR c++/9593:
* thread.c (clear_thread_inferior_resources): Call
delete_longjmp_breakpoint.
* infrun.c (handle_inferior_event): Handle exception breakpoints.
(handle_inferior_event): Likewise.
(insert_exception_resume_breakpoint): New function.
(check_exception_resume): Likewise.
* inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
* infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
(step_1): Set thread's initiating frame.
(until_next_continuation): New function.
(until_next_command): Support exception breakpoints.
(finish_command_continuation): Delete longjmp breakpoint.
(finish_forward): Support exception breakpoints.
* gdbthread.h (struct thread_info) <initiating_frame>: New field.
* breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
bp_exception_master>: New constants.
(struct bpstat_what) <is_longjmp>: New field.
(set_longjmp_breakpoint): Update.
* breakpoint.c (create_exception_master_breakpoint): New function.
(update_breakpoints_after_exec): Handle bp_exception_master. Call
create_exception_master_breakpoint.
(print_it_typical): Handle bp_exception_master, bp_exception.
(bpstat_stop_status): Handle bp_exception_master.
(bpstat_what): Handle bp_exception_master, bp_exception,
bp_exception_resume.
(bptype_string): Likewise.
(print_one_breakpoint_location): Likewise.
(allocate_bp_location): Likewise.
(set_longjmp_breakpoint): Handle exception breakpoints. Change
interface.
(delete_longjmp_breakpoint): Handle exception breakpoints.
(mention): Likewise.
(struct until_break_command_continuation_args) <thread_num>: New
field.
(until_break_command_continuation): Call
delete_longjmp_breakpoint.
(until_break_command): Support exception breakpoints.
(delete_command): Likewise.
(breakpoint_re_set_one): Likewise.
(breakpoint_re_set): Likewise.
gdb/testuite
* gdb.java/jnpe.java: New file.
* gdb.java/jnpe.exp: New file.
* gdb.cp/nextoverthrow.exp: New file.
* gdb.cp/nextoverthrow.cc: New file.
commit 6483066954a45f74ba5c8714e67c911026b47c78
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Dec 9 09:03:12 2010 +0000
bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignore
This seems to cover a few random targets as well as --enable-targets=all.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit cfd59d46a2bcfc9de4e72aeba847ac29e56a8b43
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Dec 9 00:00:02 2010 +0000
*** empty log message ***
commit 9d11e2823c8c241c2cf465e5eb8c0765a329e148
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Dec 8 23:00:05 2010 +0000
daily update
commit c649ca66b44a7390e0c263ed927c8fd5d4b18bc1
Author: Doug Evans <dje@google.com>
Date: Wed Dec 8 21:35:58 2010 +0000
* gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
commit 68a319b90dca7951d5df3640da7e943a28b02e37
Author: Doug Evans <dje@google.com>
Date: Wed Dec 8 21:33:19 2010 +0000
* gdbtypes.c (check_typedef): Tweak comment.
commit b9dfe9746d527111b67c454b6d64b44a69db63d2
Author: Doug Evans <dje@google.com>
Date: Wed Dec 8 19:03:34 2010 +0000
PR symtab/12302
* dwarf2read.c (struct psymtab_cu_index_map): New struct.
(hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
(struct addrmap_index_data): New struct.
(add_address_entry): Remove arg `pst', new args `start', `end'.
(add_address_entry_worker, write_address_map): New functions.
(write_psymtabs_to_index): Address table generation moved to
write_address_map. Build a table mapping psymtab to CU index
to pass to it.
commit 6703fb1c02cb1cab84045480543723ddb120a172
Author: Doug Evans <dje@google.com>
Date: Wed Dec 8 18:26:40 2010 +0000
* dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
name to perror.
commit b47f816c5c5b4076f1b9d7601bd617d77d98a5da
Author: Doug Evans <dje@google.com>
Date: Wed Dec 8 18:04:05 2010 +0000
* symfile.h (quick_symbol_functions): Clarify usage of
expand_symtabs_with_filename.
* dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
comp units, ignore type units.
commit 431f664cad8887aed70646d72334ce5e42997e49
Author: Doug Evans <dje@google.com>
Date: Wed Dec 8 17:31:51 2010 +0000
* dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
commit f56bc74802e5301a778b69b270767ec0cd4c167a
Author: DJ Delorie <dj@delorie.com>
Date: Wed Dec 8 16:24:42 2010 +0000
merge from gcc
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 17 +++
bfd/.gitignore | 40 ++++++
bfd/ChangeLog | 9 ++
bfd/config.bfd | 12 +-
bfd/version.h | 2 +-
configure | 33 +++++
configure.ac | 24 ++++
gdb/ChangeLog | 88 ++++++++++++++
gdb/breakpoint.c | 98 ++++++++++++++--
gdb/breakpoint.h | 18 +++-
gdb/dwarf2read.c | 176 ++++++++++++++++++++++++----
gdb/gdbthread.h | 10 ++
gdb/gdbtypes.c | 2 +-
gdb/gdbtypes.h | 13 +-
gdb/infcmd.c | 34 +++++-
gdb/inferior.h | 2 +
gdb/infrun.c | 192 ++++++++++++++++++++++++++++---
gdb/mi/mi-main.c | 40 +++++--
gdb/mi/mi-parse.c | 51 ++++----
gdb/mi/mi-parse.h | 14 ++-
gdb/symfile.h | 11 +-
gdb/testsuite/ChangeLog | 11 ++
gdb/testsuite/gdb.base/interp.exp | 11 ++
gdb/testsuite/gdb.cp/nextoverthrow.cc | 203 ++++++++++++++++++++++++++++++++
gdb/testsuite/gdb.cp/nextoverthrow.exp | 153 ++++++++++++++++++++++++
gdb/testsuite/gdb.java/jnpe.exp | 74 ++++++++++++
gdb/testsuite/gdb.java/jnpe.java | 40 ++++++
gdb/thread.c | 19 +++
gdb/version.in | 2 +-
libiberty/.gitignore | 2 +
libiberty/ChangeLog | 9 ++
libiberty/splay-tree.c | 52 ++++++--
opcodes/.gitignore | 2 +
opcodes/ChangeLog | 4 +
src-release | 2 +-
35 files changed, 1345 insertions(+), 125 deletions(-)
create mode 100644 bfd/.gitignore
create mode 100644 gdb/testsuite/gdb.cp/nextoverthrow.cc
create mode 100644 gdb/testsuite/gdb.cp/nextoverthrow.exp
create mode 100644 gdb/testsuite/gdb.java/jnpe.exp
create mode 100644 gdb/testsuite/gdb.java/jnpe.java
create mode 100644 libiberty/.gitignore
create mode 100644 opcodes/.gitignore
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index fbe634e..bc19a77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2010-12-10 Ian Lance Taylor <iant@google.com>
+
+ PR bootstrap/46819
+ * configure.ac: For --disable-libgcj clear libgcj_saved.
+ * configure: Rebuild.
+
+2010-12-10 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/46540
+ * configure.ac: Add --disable-libquadmath and
+ --disable-libquadmath-support.
+ * configure: Regenerate.
+
+2010-12-10 Tristan Gingold <gingold@adacore.com>
+
+ * src-release (ETC_SUPPORT): add gnu-oids.texi
+
2010-12-03 Hans-Peter Nilsson <hp@axis.com>
PR libffi/46792
diff --git a/bfd/.gitignore b/bfd/.gitignore
new file mode 100644
index 0000000..3316133
--- /dev/null
+++ b/bfd/.gitignore
@@ -0,0 +1,40 @@
+/bfd-in3.h
+/bfd.h
+/bfd_stdint.h
+/bfdver.h
+/elf32-ia64.c
+/elf32-target.h
+/elf64-ia64.c
+/elf64-target.h
+/libtool-soversion
+/ofiles
+/peigen.c
+/pepigen.c
+/pex64igen.c
+/stmp-bfd-h
+/targmatch.h
+
+/doc/aoutx.texi
+/doc/archive.texi
+/doc/archures.texi
+/doc/bfdio.texi
+/doc/bfdt.texi
+/doc/bfdver.texi
+/doc/bfdwin.texi
+/doc/cache.texi
+/doc/chew
+/doc/coffcode.texi
+/doc/core.texi
+/doc/elf.texi
+/doc/elfcode.texi
+/doc/format.texi
+/doc/hash.texi
+/doc/init.texi
+/doc/libbfd.texi
+/doc/linker.texi
+/doc/mmo.texi
+/doc/opncls.texi
+/doc/reloc.texi
+/doc/section.texi
+/doc/syms.texi
+/doc/targets.texi
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 009a020..10d3b98 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
+2010-12-10 Alan Modra <amodra@gmail.com>
+
+ * config.bfd: Configure rs6000-*-aix* as for powerpc-*-aix*.
+ Add aix5coff64_vec to powerpc ELF entries.
+
+2010-12-09 Mike Frysinger <vapier@gentoo.org>
+
+ * .gitignore: New file.
+
2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
PR ld/12288
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 9b719d8..2de94a4 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -1076,26 +1076,26 @@ case "${targ}" in
targ_selvecs="bfd_elf32_pjl_vec bfd_elf32_pj_vec bfd_elf32_i386_vec"
;;
- powerpc-*-aix5.[01])
+ powerpc-*-aix5.[01] | rs6000-*-aix5.[01])
targ_defvec=rs6000coff_vec
targ_selvecs="aix5coff64_vec"
want64=true
;;
#ifdef BFD64
- powerpc64-*-aix5.[01])
+ powerpc64-*-aix5.[01] | rs6000-*-aix5.[01])
targ_defvec=aix5coff64_vec
targ_selvecs="rs6000coff_vec"
want64=true
;;
#endif
- powerpc-*-aix[5-9]*)
+ powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
targ_cflags=-DAIX_WEAK_SUPPORT
targ_defvec=rs6000coff_vec
targ_selvecs="aix5coff64_vec"
want64=true
;;
#ifdef BFD64
- powerpc64-*-aix[5-9]*)
+ powerpc64-*-aix[5-9]* | rs6000-*-aix[5-9]*)
targ_cflags=-DAIX_WEAK_SUPPORT
targ_defvec=aix5coff64_vec
targ_selvecs="rs6000coff_vec"
@@ -1122,12 +1122,12 @@ case "${targ}" in
powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
powerpc64-*-*bsd*)
targ_defvec=bfd_elf64_powerpc_vec
- targ_selvecs="bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec"
+ targ_selvecs="bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec"
want64=true
;;
powerpc64le-*-elf* | powerpcle-*-elf64*)
targ_defvec=bfd_elf64_powerpcle_vec
- targ_selvecs="bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec"
+ targ_selvecs="bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec"
want64=true
;;
#endif
diff --git a/bfd/version.h b/bfd/version.h
index 684eafa..e704060 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101208
+#define BFD_VERSION_DATE 20101210
#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/configure b/configure
index 6dde71a..9f036cb 100755
--- a/configure
+++ b/configure
@@ -742,6 +742,8 @@ enable_option_checking
with_build_libsubdir
enable_gold
enable_ld
+enable_libquadmath
+enable_libquadmath_support
enable_libada
enable_libssp
enable_build_with_cxx
@@ -1453,6 +1455,9 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-ld[=ARG] build ld [ARG={default,yes,no}]
+ --disable-libquadmath do not build libquadmath directory
+ --disable-libquadmath-support
+ disable libquadmath support for Fortran
--enable-libada build libada directory
--enable-libssp build libssp directory
--enable-build-with-cxx build with C++ compiler instead of C compiler
@@ -2992,6 +2997,31 @@ case "${host}" in
esac
+# Check whether --enable-libquadmath was given.
+if test "${enable_libquadmath+set}" = set; then :
+ enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
+else
+ ENABLE_LIBQUADMATH=yes
+fi
+
+if test "${ENABLE_LIBQUADMATH}" = "no" ; then
+ noconfigdirs="$noconfigdirs target-libquadmath"
+fi
+
+
+# Check whether --enable-libquadmath-support was given.
+if test "${enable_libquadmath_support+set}" = set; then :
+ enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
+else
+ ENABLE_LIBQUADMATH_SUPPORT=yes
+fi
+
+enable_libquadmath_support=
+if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
+ enable_libquadmath_support=no
+fi
+
+
# Check whether --enable-libada was given.
if test "${enable_libada+set}" = set; then :
enableval=$enable_libada; ENABLE_LIBADA=$enableval
@@ -3025,6 +3055,9 @@ no)
# Make sure we get it printed in the list of not supported target libs.
# Don't disable libffi, though, other languages use it.
noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
+ # Clear libgcj_saved so that even if java is enabled libffi won't be
+ # built.
+ libgcj_saved=
;;
esac
diff --git a/configure.ac b/configure.ac
index fcf5ba2..fc268b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -458,6 +458,27 @@ case "${host}" in
esac
+AC_ARG_ENABLE(libquadmath,
+AS_HELP_STRING([--disable-libquadmath],
+ [do not build libquadmath directory]),
+ENABLE_LIBQUADMATH=$enableval,
+ENABLE_LIBQUADMATH=yes)
+if test "${ENABLE_LIBQUADMATH}" = "no" ; then
+ noconfigdirs="$noconfigdirs target-libquadmath"
+fi
+
+
+AC_ARG_ENABLE(libquadmath-support,
+AS_HELP_STRING([--disable-libquadmath-support],
+ [disable libquadmath support for Fortran]),
+ENABLE_LIBQUADMATH_SUPPORT=$enableval,
+ENABLE_LIBQUADMATH_SUPPORT=yes)
+enable_libquadmath_support=
+if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
+ enable_libquadmath_support=no
+fi
+
+
AC_ARG_ENABLE(libada,
[ --enable-libada build libada directory],
ENABLE_LIBADA=$enableval,
@@ -485,6 +506,9 @@ no)
# Make sure we get it printed in the list of not supported target libs.
# Don't disable libffi, though, other languages use it.
noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
+ # Clear libgcj_saved so that even if java is enabled libffi won't be
+ # built.
+ libgcj_saved=
;;
esac
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6611a84..37c58a4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,91 @@
+2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * mi/mi-parse.c (mi_parse): Wrong error message.
+
+2010-12-09 Doug Evans <dje@google.com>
+
+ * symfile.h (quick_symbol_functions): Clarify usage of
+ map_symbol_filenames.
+
+2010-12-09 Tom Tromey <tromey@redhat.com>
+
+ * mi/mi-parse.h (mi_parse): Update.
+ * mi/mi-parse.c (mi_parse_cleanup): New function.
+ (mi_parse): Add 'token' argument. Throw exception on error.
+ * mi/mi-main.c (mi_print_exception): New function.
+ (mi_execute_command): Use mi_print_exception. Catch exceptions
+ from mi_parse.
+
+2010-12-09 Tom Tromey <tromey@redhat.com>
+
+ PR c++/9593:
+ * thread.c (clear_thread_inferior_resources): Call
+ delete_longjmp_breakpoint.
+ * infrun.c (handle_inferior_event): Handle exception breakpoints.
+ (handle_inferior_event): Likewise.
+ (insert_exception_resume_breakpoint): New function.
+ (check_exception_resume): Likewise.
+ * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
+ * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
+ (step_1): Set thread's initiating frame.
+ (until_next_continuation): New function.
+ (until_next_command): Support exception breakpoints.
+ (finish_command_continuation): Delete longjmp breakpoint.
+ (finish_forward): Support exception breakpoints.
+ * gdbthread.h (struct thread_info) <initiating_frame>: New field.
+ * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
+ bp_exception_master>: New constants.
+ (struct bpstat_what) <is_longjmp>: New field.
+ (set_longjmp_breakpoint): Update.
+ * breakpoint.c (create_exception_master_breakpoint): New function.
+ (update_breakpoints_after_exec): Handle bp_exception_master. Call
+ create_exception_master_breakpoint.
+ (print_it_typical): Handle bp_exception_master, bp_exception.
+ (bpstat_stop_status): Handle bp_exception_master.
+ (bpstat_what): Handle bp_exception_master, bp_exception,
+ bp_exception_resume.
+ (bptype_string): Likewise.
+ (print_one_breakpoint_location): Likewise.
+ (allocate_bp_location): Likewise.
+ (set_longjmp_breakpoint): Handle exception breakpoints. Change
+ interface.
+ (delete_longjmp_breakpoint): Handle exception breakpoints.
+ (mention): Likewise.
+ (struct until_break_command_continuation_args) <thread_num>: New
+ field.
+ (until_break_command_continuation): Call
+ delete_longjmp_breakpoint.
+ (until_break_command): Support exception breakpoints.
+ (delete_command): Likewise.
+ (breakpoint_re_set_one): Likewise.
+ (breakpoint_re_set): Likewise.
+
+2010-12-08 Doug Evans <dje@google.com>
+
+ * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
+
+ * gdbtypes.c (check_typedef): Tweak comment.
+
+ PR symtab/12302
+ * dwarf2read.c (struct psymtab_cu_index_map): New struct.
+ (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
+ (struct addrmap_index_data): New struct.
+ (add_address_entry): Remove arg `pst', new args `start', `end'.
+ (add_address_entry_worker, write_address_map): New functions.
+ (write_psymtabs_to_index): Address table generation moved to
+ write_address_map. Build a table mapping psymtab to CU index
+ to pass to it.
+
+ * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
+ name to perror.
+
+ * symfile.h (quick_symbol_functions): Clarify usage of
+ expand_symtabs_with_filename.
+ * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
+ comp units, ignore type units.
+
+ * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
+
2010-12-07 Doug Evans <dje@google.com>
* dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 1d66eef..6a51a3b 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2209,6 +2209,35 @@ create_std_terminate_master_breakpoint (const char *func_name)
do_cleanups (old_chain);
}
+/* Install a master breakpoint on the unwinder's debug hook. */
+
+void
+create_exception_master_breakpoint (void)
+{
+ struct objfile *objfile;
+
+ ALL_OBJFILES (objfile)
+ {
+ struct minimal_symbol *debug_hook;
+
+ debug_hook = lookup_minimal_symbol ("_Unwind_DebugHook", NULL, objfile);
+ if (debug_hook != NULL)
+ {
+ struct breakpoint *b;
+ CORE_ADDR addr = SYMBOL_VALUE_ADDRESS (debug_hook);
+ struct gdbarch *gdbarch = get_objfile_arch (objfile);
+
+ addr = gdbarch_convert_from_func_ptr_addr (gdbarch, addr,
+ ¤t_target);
+ b = create_internal_breakpoint (gdbarch, addr, bp_exception_master);
+ b->addr_string = xstrdup ("_Unwind_DebugHook");
+ b->enable_state = bp_disabled;
+ }
+ }
+
+ update_global_location_list (1);
+}
+
void
update_breakpoints_after_exec (void)
{
@@ -2250,7 +2279,8 @@ update_breakpoints_after_exec (void)
/* Thread event breakpoints must be set anew after an exec(),
as must overlay event and longjmp master breakpoints. */
if (b->type == bp_thread_event || b->type == bp_overlay_event
- || b->type == bp_longjmp_master || b->type == bp_std_terminate_master)
+ || b->type == bp_longjmp_master || b->type == bp_std_terminate_master
+ || b->type == bp_exception_master)
{
delete_breakpoint (b);
continue;
@@ -2265,7 +2295,8 @@ update_breakpoints_after_exec (void)
/* Longjmp and longjmp-resume breakpoints are also meaningless
after an exec. */
- if (b->type == bp_longjmp || b->type == bp_longjmp_resume)
+ if (b->type == bp_longjmp || b->type == bp_longjmp_resume
+ || b->type == bp_exception || b->type == bp_exception_resume)
{
delete_breakpoint (b);
continue;
@@ -2327,6 +2358,7 @@ update_breakpoints_after_exec (void)
create_longjmp_master_breakpoint ("siglongjmp");
create_longjmp_master_breakpoint ("_siglongjmp");
create_std_terminate_master_breakpoint ("std::terminate()");
+ create_exception_master_breakpoint ();
}
int
@@ -3248,6 +3280,12 @@ print_it_typical (bpstat bs)
result = PRINT_NOTHING;
break;
+ case bp_exception_master:
+ /* These should never be enabled. */
+ printf_filtered (_("Exception Master Breakpoint: gdb should not stop!\n"));
+ result = PRINT_NOTHING;
+ break;
+
case bp_watchpoint:
case bp_hardware_watchpoint:
annotate_watchpoint (b->number);
@@ -3335,6 +3373,8 @@ print_it_typical (bpstat bs)
case bp_none:
case bp_longjmp:
case bp_longjmp_resume:
+ case bp_exception:
+ case bp_exception_resume:
case bp_step_resume:
case bp_watchpoint_scope:
case bp_call_dummy:
@@ -4121,7 +4161,8 @@ bpstat_stop_status (struct address_space *aspace,
if (b->type == bp_thread_event || b->type == bp_overlay_event
|| b->type == bp_longjmp_master
- || b->type == bp_std_terminate_master)
+ || b->type == bp_std_terminate_master
+ || b->type == bp_exception_master)
/* We do not stop for these. */
bs->stop = 0;
else
@@ -4216,6 +4257,7 @@ bpstat_what (bpstat bs)
retval.main_action = BPSTAT_WHAT_KEEP_CHECKING;
retval.call_dummy = STOP_NONE;
+ retval.is_longjmp = 0;
for (; bs != NULL; bs = bs->next)
{
@@ -4271,10 +4313,14 @@ bpstat_what (bpstat bs)
}
break;
case bp_longjmp:
+ case bp_exception:
this_action = BPSTAT_WHAT_SET_LONGJMP_RESUME;
+ retval.is_longjmp = bptype == bp_longjmp;
break;
case bp_longjmp_resume:
+ case bp_exception_resume:
this_action = BPSTAT_WHAT_CLEAR_LONGJMP_RESUME;
+ retval.is_longjmp = bptype == bp_longjmp_resume;
break;
case bp_step_resume:
if (bs->stop)
@@ -4290,6 +4336,7 @@ bpstat_what (bpstat bs)
case bp_overlay_event:
case bp_longjmp_master:
case bp_std_terminate_master:
+ case bp_exception_master:
this_action = BPSTAT_WHAT_SINGLE;
break;
case bp_catchpoint:
@@ -4483,6 +4530,8 @@ bptype_string (enum bptype type)
{bp_access_watchpoint, "acc watchpoint"},
{bp_longjmp, "longjmp"},
{bp_longjmp_resume, "longjmp resume"},
+ {bp_exception, "exception"},
+ {bp_exception_resume, "exception resume"},
{bp_step_resume, "step resume"},
{bp_watchpoint_scope, "watchpoint scope"},
{bp_call_dummy, "call dummy"},
@@ -4492,6 +4541,7 @@ bptype_string (enum bptype type)
{bp_overlay_event, "overlay events"},
{bp_longjmp_master, "longjmp master"},
{bp_std_terminate_master, "std::terminate master"},
+ {bp_exception_master, "exception master"},
{bp_catchpoint, "catchpoint"},
{bp_tracepoint, "tracepoint"},
{bp_fast_tracepoint, "fast tracepoint"},
@@ -4630,6 +4680,8 @@ print_one_breakpoint_location (struct breakpoint *b,
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-08 15:55 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-12-08 15:55 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via b1463fe8242bc8a3ff48142ccf92a8c6848f59f9 (commit)
via a2c1503ec49af285b5d301ff6d47e34a17a152f7 (commit)
via 8d84f1b4d57be1385c4c778e522edf6c4f2fa408 (commit)
via 7c87f1bb2041e03818d3705f8719dad2a8c30d9b (commit)
via 68db70f05288f15c45bd62a8de6e84677f0fb985 (commit)
via 063caa6468033583e6ba78c8f88273de2c0ebb92 (commit)
via 47ec54a885067d30025c3adeca6bb7859196d1c0 (commit)
via 208f1fe14d05fae1b312d5c4f93d2fbcba7ec099 (commit)
via affaea642de48625e4f2c2c5f94e45da9d49a9d5 (commit)
via 2575f0876960e6a2f687a3fa5ac9e78eb5c3bc41 (commit)
via 10324b77c51dfcb388dfe6c73e4ba899c4299be0 (commit)
via 3b8b668119f4e13c43e0b48a87d89bc2303433c6 (commit)
from e857f088aa2014034c13a16a6f3371a57121bb46 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit b1463fe8242bc8a3ff48142ccf92a8c6848f59f9
Merge: e857f08 a2c1503
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Wed Dec 8 15:55:24 2010 +0000
Merge remote branch 'gdb/master'
commit a2c1503ec49af285b5d301ff6d47e34a17a152f7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Dec 8 00:00:03 2010 +0000
*** empty log message ***
commit 8d84f1b4d57be1385c4c778e522edf6c4f2fa408
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Dec 7 23:00:05 2010 +0000
daily update
commit 7c87f1bb2041e03818d3705f8719dad2a8c30d9b
Author: Ian Lance Taylor <ian@airs.com>
Date: Tue Dec 7 21:20:22 2010 +0000
* configure.ac: Always set default for poststage1_ldflags to
-static-libstdc++ -static-libgcc.
commit 68db70f05288f15c45bd62a8de6e84677f0fb985
Author: Ian Lance Taylor <ian@airs.com>
Date: Tue Dec 7 21:20:22 2010 +0000
* configure.ac: Always set default for poststage1_ldflags to
-static-libstdc++ -static-libgcc.
commit 063caa6468033583e6ba78c8f88273de2c0ebb92
Author: Doug Evans <dje@google.com>
Date: Tue Dec 7 17:30:48 2010 +0000
* dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
gdb_realpath.
commit 47ec54a885067d30025c3adeca6bb7859196d1c0
Author: Doug Evans <dje@google.com>
Date: Tue Dec 7 17:26:00 2010 +0000
PR python/12227
* NEWS: Mention -data-directory.
* main.c (captured_main): Recognize -data-directory.
doc/
* gdb.texinfo (Mode Options): Document -data-directory.
(Data Files): Add reference to -data-directory.
testsuite/
* gdb.base/catch-syscall.exp (do_syscall_tests): Remove setting
of data-directory.
* lib/gdb-python.exp (gdb_check_python_config): Delete, all callers
updated.
* lib/gdb.exp (INTERNAL_GDBFLAGS): Add -data-directory.
commit 208f1fe14d05fae1b312d5c4f93d2fbcba7ec099
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Dec 7 00:00:02 2010 +0000
*** empty log message ***
commit affaea642de48625e4f2c2c5f94e45da9d49a9d5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Dec 6 23:00:04 2010 +0000
daily update
commit 2575f0876960e6a2f687a3fa5ac9e78eb5c3bc41
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Dec 6 20:25:49 2010 +0000
Use putchar for the trailing `\n' in plugin message.
bfd/
2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
PR ld/12288
* plugin.c (message): Add putchar for the trailing `\n'.
ld/
2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
PR ld/12288
* plugin.c (message): Use putchar for the trailing `\n'.
commit 10324b77c51dfcb388dfe6c73e4ba899c4299be0
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Mon Dec 6 14:16:42 2010 +0000
2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
* mi/mi-parse.c (mi_parse): Missing else.
commit 3b8b668119f4e13c43e0b48a87d89bc2303433c6
Author: Alexandre Oliva <aoliva@redhat.com>
Date: Mon Dec 6 13:00:26 2010 +0000
Check in for PR other/46020 was meant for PR other/46026.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 ++++++-
bfd/ChangeLog | 5 +++++
bfd/plugin.c | 1 +
bfd/version.h | 2 +-
configure | 8 ++++----
configure.ac | 8 ++++----
gdb/ChangeLog | 13 +++++++++++++
gdb/NEWS | 5 +++++
gdb/doc/ChangeLog | 5 +++++
gdb/doc/gdb.texinfo | 10 ++++++++++
gdb/dwarf2read.c | 13 ++++---------
gdb/main.c | 5 +++++
gdb/mi/mi-parse.c | 2 +-
gdb/testsuite/ChangeLog | 8 ++++++++
gdb/testsuite/gdb.base/catch-syscall.exp | 4 ++--
gdb/testsuite/gdb.python/lib-types.exp | 3 ---
gdb/testsuite/gdb.python/py-pp-maint.exp | 3 ---
gdb/testsuite/lib/gdb-python.exp | 18 ------------------
gdb/testsuite/lib/gdb.exp | 2 +-
gdb/version.in | 2 +-
20 files changed, 76 insertions(+), 48 deletions(-)
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 50e96fe..fbe634e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,11 @@
* configure.ac (cris-*-elf, crisv32-*-elf): Disable target-libffi.
* configure: Regenerate.
+2010-12-02 Ian Lance Taylor <iant@google.com>
+
+ * configure.ac: Always set default for poststage1_ldflags to
+ -static-libstdc++ -static-libgcc.
+
2010-12-02 Jeff Johnston <jjohnstn@redhat.com>
* COPYING.NEWLIB: Add National Semiconductor notice.
@@ -15,7 +20,7 @@
2010-11-26 Alexandre Oliva <aoliva@redhat.com>
- PR other/46020
+ PR other/46026
* configure.ac (CXX_FOR_TARGET): Add -funconfigured-libstdc++-v3.
* Makefile.def (CXX_FOR_TARGET): Removed from flags_to_pass.
* Makefile.tpl (CXX_FOR_TARGET_FLAG_TO_PASS): New.
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 16f5536..009a020 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
+
+ PR ld/12288
+ * plugin.c (message): Add putchar for the trailing `\n'.
+
2010-12-04 Mike Frysinger <vapier@gentoo.org>
* Makefile.am (!INSTALL_LIBBFD/bfdinclude_HEADERS): Set to nothing.
diff --git a/bfd/plugin.c b/bfd/plugin.c
index a46bf90..61cd687 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
@@ -78,6 +78,7 @@ message (int level ATTRIBUTE_UNUSED,
va_start (args, format);
printf ("bfd plugin: ");
vprintf (format, args);
+ putchar ('\n');
va_end (args);
return LDPS_OK;
}
diff --git a/bfd/version.h b/bfd/version.h
index bedfbca..684eafa 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101206
+#define BFD_VERSION_DATE 20101208
#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/configure b/configure
index 6a3ff45..6dde71a 100755
--- a/configure
+++ b/configure
@@ -5606,10 +5606,10 @@ if test "${with_boot_ldflags+set}" = set; then :
fi
else
poststage1_ldflags=
- # With --enable-build-with-cxx, default to linking libstdc++ and
- # libgcc statically. But if the user explicitly specified the
- # libraries to use, trust that they are doing what they want.
- if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
+ # In stages 2 and 3, default to linking libstdc++ and libgcc
+ # statically. But if the user explicitly specified the libraries to
+ # use, trust that they are doing what they want.
+ if test "$poststage1_libs" = ""; then
poststage1_ldflags="-static-libstdc++ -static-libgcc"
fi
fi
diff --git a/configure.ac b/configure.ac
index 440f066..fcf5ba2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1561,10 +1561,10 @@ AC_ARG_WITH(boot-ldflags,
poststage1_ldflags=$withval
fi],
[poststage1_ldflags=
- # With --enable-build-with-cxx, default to linking libstdc++ and
- # libgcc statically. But if the user explicitly specified the
- # libraries to use, trust that they are doing what they want.
- if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
+ # In stages 2 and 3, default to linking libstdc++ and libgcc
+ # statically. But if the user explicitly specified the libraries to
+ # use, trust that they are doing what they want.
+ if test "$poststage1_libs" = ""; then
poststage1_ldflags="-static-libstdc++ -static-libgcc"
fi])
AC_SUBST(poststage1_ldflags)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b2dd553..6611a84 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,16 @@
+2010-12-07 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
+ gdb_realpath.
+
+ PR python/12227
+ * NEWS: Mention -data-directory.
+ * main.c (captured_main): Recognize -data-directory.
+
+2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * mi/mi-parse.c (mi_parse): Missing else.
+
2010-12-04 Masaki Muranaka <monaka@monami-software.com>
* configure.tgt: Accept microblaze*-*-linux* for linux target
diff --git a/gdb/NEWS b/gdb/NEWS
index f1efcd2..9dfb249 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,11 @@
*** Changes since GDB 7.2
+* New command line options
+
+-data-directory DIR Specify DIR as the "data-directory".
+ This is mostly for testing purposes.
+
* GDB has a new command: "set directories".
It is like the "dir" command except that it replaces the
source path list instead of augmenting it.
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 6b4f2bb..c1d0e1c 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-07 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (Mode Options): Document -data-directory.
+ (Data Files): Add reference to -data-directory.
+
2010-11-29 Doug Evans <dje@google.com>
* gdb.texinfo (Pretty-Printer Introduction): Change
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 422812c..dc9630a 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1111,6 +1111,12 @@ used if possible.
Run @value{GDBN} using @var{directory} as its working directory,
instead of the current directory.
+@item -data-directory @var{directory}
+@cindex @code{--data-directory}
+Run @value{GDBN} using @var{directory} as its data directory.
+The data directory is where @value{GDBN} searches for its
+auxiliary files. @xref{Data Files}.
+
@item -fullname
@itemx -f
@cindex @code{--fullname}
@@ -15598,6 +15604,10 @@ You can set the default data directory by using the configure-time
automatically if the installed @value{GDBN} is moved to a new
location.
+The data directory may also be specified with the
+@code{--data-directory} command line option.
+@xref{Mode Options}.
+
@node Targets
@chapter Specifying a Debugging Target
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 31a08a7..1cc5258 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2199,16 +2199,11 @@ dw2_lookup_symtab (struct objfile *objfile, const char *name,
const char *this_full_name = dw2_require_full_path (objfile,
per_cu, j);
- if (this_full_name != NULL)
+ if (this_full_name != NULL
+ && FILENAME_CMP (real_path, this_full_name) == 0)
{
- char *rp = gdb_realpath (this_full_name);
- if (rp != NULL && FILENAME_CMP (real_path, rp) == 0)
- {
- xfree (rp);
- *result = dw2_instantiate_symtab (objfile, per_cu);
- return 1;
- }
- xfree (rp);
+ *result = dw2_instantiate_symtab (objfile, per_cu);
+ return 1;
}
}
}
diff --git a/gdb/main.c b/gdb/main.c
index 9bd36cf..c686bd2 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -432,6 +432,7 @@ captured_main (void *data)
{"i", required_argument, 0, 'i'},
{"directory", required_argument, 0, 'd'},
{"d", required_argument, 0, 'd'},
+ {"data-directory", required_argument, 0, 'D'},
{"cd", required_argument, 0, OPT_CD},
{"tty", required_argument, 0, 't'},
{"baud", required_argument, 0, 'b'},
@@ -551,6 +552,10 @@ captured_main (void *data)
batch_flag = batch_silent = 1;
gdb_stdout = ui_file_new();
break;
+ case 'D':
+ xfree (gdb_datadir);
+ gdb_datadir = xstrdup (optarg);
+ break;
#ifdef GDBTK
case 'z':
{
diff --git a/gdb/mi/mi-parse.c b/gdb/mi/mi-parse.c
index a5a4e75..4541b66 100644
--- a/gdb/mi/mi-parse.c
+++ b/gdb/mi/mi-parse.c
@@ -319,7 +319,7 @@ mi_parse (char *cmd)
chp += 1;
parse->thread_group = strtol (chp, &chp, 10);
}
- if (strncmp (chp, "--thread ", ts) == 0)
+ else if (strncmp (chp, "--thread ", ts) == 0)
{
if (parse->thread != -1)
error (_("Duplicate '--thread' option"));
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 569c7b6..523374e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2010-12-07 Doug Evans <dje@google.com>
+
+ * gdb.base/catch-syscall.exp (do_syscall_tests): Remove setting
+ of data-directory.
+ * lib/gdb-python.exp (gdb_check_python_config): Delete, all callers
+ updated.
+ * lib/gdb.exp (INTERNAL_GDBFLAGS): Add -data-directory.
+
2010-11-29 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.base/callfuncs.exp: Test for skip_float_tests.
diff --git a/gdb/testsuite/gdb.base/catch-syscall.exp b/gdb/testsuite/gdb.base/catch-syscall.exp
index 7845655..b84c0dd 100644
--- a/gdb/testsuite/gdb.base/catch-syscall.exp
+++ b/gdb/testsuite/gdb.base/catch-syscall.exp
@@ -277,8 +277,8 @@ proc test_catch_syscall_fail_nodatadir {} {
proc do_syscall_tests {} {
global gdb_prompt srcdir
- # First, we need to set GDB datadir.
- gdb_test_no_output "set data-directory [pwd]/../data-directory"
+ # NOTE: We don't have to point gdb at the correct data-directory.
+ # For the build tree that is handled by INTERNAL_GDBFLAGS.
# Verify that the 'catch syscall' help is available
set thistest "help catch syscall"
diff --git a/gdb/testsuite/gdb.python/lib-types.exp b/gdb/testsuite/gdb.python/lib-types.exp
index 0599b0d..07480f5 100644
--- a/gdb/testsuite/gdb.python/lib-types.exp
+++ b/gdb/testsuite/gdb.python/lib-types.exp
@@ -44,9 +44,6 @@ if ![runto_main] then {
return 0
}
-# Ensure sys.path, et.al. are initialized properly.
-gdb_check_python_config
-
gdb_test_no_output "python import gdb.types"
# test get_basic_type const stripping
diff --git a/gdb/testsuite/gdb.python/py-pp-maint.exp b/gdb/testsuite/gdb.python/py-pp-maint.exp
index 7474584..b613e41 100644
--- a/gdb/testsuite/gdb.python/py-pp-maint.exp
+++ b/gdb/testsuite/gdb.python/py-pp-maint.exp
@@ -51,9 +51,6 @@ if ![runto_main ] then {
return -1
}
-# Ensure sys.path, et.al. are initialized properly.
-gdb_check_python_config
-
gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \
".*Breakpoint.*"
gdb_test "continue" ".*Breakpoint.*"
diff --git a/gdb/testsuite/lib/gdb-python.exp b/gdb/testsuite/lib/gdb-python.exp
index 58deadc..4a15d7a 100644
--- a/gdb/testsuite/lib/gdb-python.exp
+++ b/gdb/testsuite/lib/gdb-python.exp
@@ -45,21 +45,3 @@ proc gdb_py_test_multiple { name args } {
}
return 0
}
-
-# Establish various python configuration parameters if necessary.
-# E.g. sys.path.
-
-proc gdb_check_python_config { } {
- global USE_INSTALLED_TREE
- # If we're running an installed version of gdb, and we want to test the
- # installed versions of the python support scripts, then we don't want
- # to point data-directory at the build tree.
- if { [info exists USE_INSTALLED_TREE] && "$USE_INSTALLED_TREE" == "yes" } {
- verbose -log "Assuming system config already installed."
- } else {
- verbose -log "Installing system config from build tree."
- set gdb_data_dir "[pwd]/../data-directory"
- gdb_test_no_output "set data-directory $gdb_data_dir"
- gdb_test_no_output "python GdbSetPythonDirectory ('$gdb_data_dir/python')"
- }
-}
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index fc8751f..50e2c70 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -56,7 +56,7 @@ verbose "using GDBFLAGS = $GDBFLAGS" 2
# INTERNAL_GDBFLAGS contains flags that the testsuite requires.
global INTERNAL_GDBFLAGS
if ![info exists INTERNAL_GDBFLAGS] {
- set INTERNAL_GDBFLAGS "-nw -nx"
+ set INTERNAL_GDBFLAGS "-nw -nx -data-directory [pwd]/../data-directory"
}
# The variable gdb_prompt is a regexp which matches the gdb prompt.
diff --git a/gdb/version.in b/gdb/version.in
index 75d92f6..ee8ab53 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.50.20101206-cvs
+7.2.50.20101208-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-06 6:40 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-12-06 6:40 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via e857f088aa2014034c13a16a6f3371a57121bb46 (commit)
via ef3577f3951ccfbe46a6eb8b27c1b97218639925 (commit)
via 9c434f75aeaa0b00633c90e36295892c8c7effee (commit)
via bc0eec5df968522388fe1f429befbf0459309de1 (commit)
via 13b6ef50481fcd848929b318b0a2c5778ef49f0c (commit)
via 6198197160c73228157e2eba024db47a7c2c36f8 (commit)
via 8c2f422d73fa741746eb4229dbcf1e7da06ff830 (commit)
via 1c53376a468030ca605dcc68cba7cd2c3bc989ee (commit)
via 45caa5ecada82820bbc97526012e5a273f14afe1 (commit)
via 58721f002d34434cf546ceb8e84ab0074fcd02b4 (commit)
via 67035de23cccb3b513bbb38f14233fc6137dd1f0 (commit)
via 2d8421141d727a1fea5710ea2ecbe233059f5482 (commit)
from 8e8cccf62c844a3e6c5bd4d83d17e8c9524a4a53 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit e857f088aa2014034c13a16a6f3371a57121bb46
Merge: 8e8cccf ef3577f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Dec 6 07:40:45 2010 +0100
Merge remote branch 'gdb/master'
commit ef3577f3951ccfbe46a6eb8b27c1b97218639925
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Mon Dec 6 01:55:25 2010 +0000
PR libffi/46792
* configure.ac (cris-*-elf, crisv32-*-elf): Disable target-libffi.
* configure: Regenerate.
commit 9c434f75aeaa0b00633c90e36295892c8c7effee
Author: Dave Korn <dave.korn@artimi.com>
Date: Mon Dec 6 01:40:20 2010 +0000
PR target/40125
PR lto/46695
* lthostflags.m4: New file.
(ACX_LT_HOST_FLAGS): Define.
commit bc0eec5df968522388fe1f429befbf0459309de1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Dec 6 00:00:03 2010 +0000
*** empty log message ***
commit 13b6ef50481fcd848929b318b0a2c5778ef49f0c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Dec 5 23:00:05 2010 +0000
daily update
commit 6198197160c73228157e2eba024db47a7c2c36f8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Dec 5 23:00:05 2010 +0000
daily update
commit 8c2f422d73fa741746eb4229dbcf1e7da06ff830
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Dec 5 00:00:33 2010 +0000
*** empty log message ***
commit 1c53376a468030ca605dcc68cba7cd2c3bc989ee
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Dec 4 23:00:05 2010 +0000
daily update
commit 45caa5ecada82820bbc97526012e5a273f14afe1
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat Dec 4 13:00:35 2010 +0000
bfd: install plugin-api.h as needed
Since people need plugin-api.h in order to build linker plugins, install
the header with the other library headers when plugin support is enabled.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 58721f002d34434cf546ceb8e84ab0074fcd02b4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Dec 4 04:42:06 2010 +0000
PR ld/12277
* elflink.c (elf_link_output_extsym): Set bfd_error on symbol
and section errors. Allow better translation of error messages.
commit 67035de23cccb3b513bbb38f14233fc6137dd1f0
Author: monaka <monaka>
Date: Sat Dec 4 02:10:48 2010 +0000
* configure.tgt: Accept microblaze*-*-linux* for linux target
and microblaze*-*-* for as target.
commit 2d8421141d727a1fea5710ea2ecbe233059f5482
Author: monaka <monaka>
Date: Sat Dec 4 01:58:55 2010 +0000
* Makefile.in: Use CC_FOR_BUILD to build opc2c.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
bfd/ChangeLog | 12 ++++++++++++
bfd/Makefile.am | 2 ++
bfd/Makefile.in | 10 +++++++---
bfd/elflink.c | 45 +++++++++++++++++++++++++++------------------
bfd/version.h | 2 +-
config/ChangeLog | 7 +++++++
config/lthostflags.m4 | 33 +++++++++++++++++++++++++++++++++
configure | 4 ++--
configure.ac | 4 ++--
gdb/ChangeLog | 5 +++++
gdb/configure.tgt | 4 ++--
gdb/version.in | 2 +-
sim/m32c/ChangeLog | 4 ++++
sim/m32c/Makefile.in | 11 ++++++++---
15 files changed, 119 insertions(+), 32 deletions(-)
create mode 100644 config/lthostflags.m4
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 8a49506..50e96fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-12-03 Hans-Peter Nilsson <hp@axis.com>
+
+ PR libffi/46792
+ * configure.ac (cris-*-elf, crisv32-*-elf): Disable target-libffi.
+ * configure: Regenerate.
+
2010-12-02 Jeff Johnston <jjohnstn@redhat.com>
* COPYING.NEWLIB: Add National Semiconductor notice.
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 20df60a..16f5536 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,15 @@
+2010-12-04 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.am (!INSTALL_LIBBFD/bfdinclude_HEADERS): Set to nothing.
+ (PLUGINS/bfdinclude_HEADERS): Append plugin-api.h.
+ * Makefile.in: Regenerated.
+
+2010-12-04 Alan Modra <amodra@gmail.com>
+
+ PR ld/12277
+ * elflink.c (elf_link_output_extsym): Set bfd_error on symbol
+ and section errors. Allow better translation of error messages.
+
2010-12-02 Richard Sandiford <richard.sandiford@linaro.org>
* elf32-arm.c (elf32_arm_link_hash_table): Remove sgot, sgotplt,
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index da14d57..9c454cc 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -23,6 +23,7 @@ else !INSTALL_LIBBFD
# Empty these so that the respective installation directories will not be created.
bfdlibdir =
bfdincludedir =
+bfdinclude_HEADERS =
rpath_bfdlibdir = @bfdlibdir@
noinst_LTLIBRARIES = libbfd.la
libbfd_la_LDFLAGS += -rpath $(rpath_bfdlibdir)
@@ -33,6 +34,7 @@ NO_WERROR = @NO_WERROR@
AM_CFLAGS = $(WARN_CFLAGS)
AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
if PLUGINS
+bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
LIBDL = -ldl
endif
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index c452dd7..2cbf6a0 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -38,6 +38,7 @@ build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
@INSTALL_LIBBFD_FALSE@am__append_1 = -rpath $(rpath_bfdlibdir)
+@PLUGINS_TRUE@am__append_2 = $(INCDIR)/plugin-api.h
subdir = .
DIST_COMMON = README ChangeLog $(srcdir)/Makefile.in \
$(srcdir)/Makefile.am $(top_srcdir)/configure \
@@ -136,8 +137,8 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
-am__bfdinclude_HEADERS_DIST = bfd.h $(INCDIR)/ansidecl.h \
- $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h
+am__bfdinclude_HEADERS_DIST = $(INCDIR)/plugin-api.h bfd.h \
+ $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h
HEADERS = $(bfdinclude_HEADERS)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
@@ -327,7 +328,10 @@ bfddocdir = doc
libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \
@SHARED_LDFLAGS@ $(am__empty)
@INSTALL_LIBBFD_TRUE@bfdlib_LTLIBRARIES = libbfd.la
-@INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h
+@INSTALL_LIBBFD_FALSE@bfdinclude_HEADERS = $(am__append_2)
+@INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) \
+@INSTALL_LIBBFD_TRUE@ $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
+@INSTALL_LIBBFD_TRUE@ $(INCDIR)/bfdlink.h $(am__append_2)
@INSTALL_LIBBFD_FALSE@rpath_bfdlibdir = @bfdlibdir@
@INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la
AM_CFLAGS = $(WARN_CFLAGS)
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 590e324..32575d9 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -8643,6 +8643,7 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
h->ref_regular ? NULL : h->root.u.undef.abfd,
NULL, 0, finfo->info->unresolved_syms_in_shared_libs == RM_GENERATE_ERROR)))
{
+ bfd_set_error (bfd_error_bad_value);
eoinfo->failed = TRUE;
return FALSE;
}
@@ -8659,16 +8660,21 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
&& !h->dynamic_weak
&& ! elf_link_check_versioned_symbol (finfo->info, bed, h))
{
- (*_bfd_error_handler)
- (_("%B: %s symbol `%s' in %B is referenced by DSO"),
- finfo->output_bfd,
- h->root.u.def.section == bfd_abs_section_ptr
- ? finfo->output_bfd : h->root.u.def.section->owner,
- ELF_ST_VISIBILITY (h->other) == STV_INTERNAL
- ? "internal"
- : ELF_ST_VISIBILITY (h->other) == STV_HIDDEN
- ? "hidden" : "local",
- h->root.root.string);
+ bfd *def_bfd;
+ const char *msg;
+
+ if (ELF_ST_VISIBILITY (h->other) == STV_INTERNAL)
+ msg = _("%B: internal symbol `%s' in %B is referenced by DSO");
+ else if (ELF_ST_VISIBILITY (h->other) == STV_HIDDEN)
+ msg = _("%B: hidden symbol `%s' in %B is referenced by DSO");
+ else
+ msg = _("%B: local symbol `%s' in %B is referenced by DSO");
+ def_bfd = finfo->output_bfd;
+ if (h->root.u.def.section != bfd_abs_section_ptr)
+ def_bfd = h->root.u.def.section->owner;
+ (*_bfd_error_handler) (msg, finfo->output_bfd, def_bfd,
+ h->root.root.string);
+ bfd_set_error (bfd_error_bad_value);
eoinfo->failed = TRUE;
return FALSE;
}
@@ -8753,6 +8759,7 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
(*_bfd_error_handler)
(_("%B: could not find output section %A for input section %A"),
finfo->output_bfd, input_sec->output_section, input_sec);
+ bfd_set_error (bfd_error_nonrepresentable_section);
eoinfo->failed = TRUE;
return FALSE;
}
@@ -8870,14 +8877,16 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
&& h->root.type == bfd_link_hash_undefined
&& !h->def_regular)
{
- (*_bfd_error_handler)
- (_("%B: %s symbol `%s' isn't defined"),
- finfo->output_bfd,
- ELF_ST_VISIBILITY (sym.st_other) == STV_PROTECTED
- ? "protected"
- : ELF_ST_VISIBILITY (sym.st_other) == STV_INTERNAL
- ? "internal" : "hidden",
- h->root.root.string);
+ const char *msg;
+
+ if (ELF_ST_VISIBILITY (sym.st_other) == STV_PROTECTED)
+ msg = _("%B: protected symbol `%s' isn't defined");
+ else if (ELF_ST_VISIBILITY (sym.st_other) == STV_INTERNAL)
+ msg = _("%B: internal symbol `%s' isn't defined");
+ else
+ msg = _("%B: hidden symbol `%s' isn't defined");
+ (*_bfd_error_handler) (msg, finfo->output_bfd, h->root.root.string);
+ bfd_set_error (bfd_error_bad_value);
eoinfo->failed = TRUE;
return FALSE;
}
diff --git a/bfd/version.h b/bfd/version.h
index 20052c8..bedfbca 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101204
+#define BFD_VERSION_DATE 20101206
#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/config/ChangeLog b/config/ChangeLog
index 87af62b..83eab40 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ PR target/40125
+ PR lto/46695
+ * lthostflags.m4: New file.
+ (ACX_LT_HOST_FLAGS): Define.
+
2010-12-02 Dave Korn <dave.korn.cygwin@gmail.com>
* mh-cygwin (LDFLAGS): Turn up stack allocation to 12MB.
diff --git a/config/lthostflags.m4 b/config/lthostflags.m4
new file mode 100644
index 0000000..bc0f59e
--- /dev/null
+++ b/config/lthostflags.m4
@@ -0,0 +1,33 @@
+dnl Copyright (C) 2010 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl usage: ACX_LT_HOST_FLAGS([default_flags])
+dnl Defines and AC_SUBSTs lt_host_flags
+
+
+AC_DEFUN([ACX_LT_HOST_FLAGS], [
+AC_REQUIRE([AC_CANONICAL_SYSTEM])
+
+case $host in
+ *-cygwin* | *-mingw*)
+ # 'host' will be top-level target in the case of a target lib,
+ # we must compare to with_cross_host to decide if this is a native
+ # or cross-compiler and select where to install dlls appropriately.
+ if test -n "$with_cross_host" &&
+ test x"$with_cross_host" != x"no"; then
+ lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
+ else
+ lt_host_flags='-no-undefined -bindir "$(bindir)"';
+ fi
+ ;;
+ *)
+ lt_host_flags=[$1]
+ ;;
+esac
+
+AC_SUBST(lt_host_flags)
+])
diff --git a/configure b/configure
index 6833413..6a3ff45 100755
--- a/configure
+++ b/configure
@@ -3247,8 +3247,8 @@ case "${target}" in
*-*-aout)
unsupported_languages="$unsupported_languages fortran"
noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
- *-*-elf)
- noconfigdirs="$noconfigdirs target-boehm-gc";;
+ *-*-elf) # See PR46792 regarding target-libffi.
+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
*-*-linux*)
noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
*)
diff --git a/configure.ac b/configure.ac
index 65c0a74..440f066 100644
--- a/configure.ac
+++ b/configure.ac
@@ -707,8 +707,8 @@ case "${target}" in
*-*-aout)
unsupported_languages="$unsupported_languages fortran"
noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
- *-*-elf)
- noconfigdirs="$noconfigdirs target-boehm-gc";;
+ *-*-elf) # See PR46792 regarding target-libffi.
+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
*-*-linux*)
noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
*)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3814cb3..b2dd553 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-04 Masaki Muranaka <monaka@monami-software.com>
+
+ * configure.tgt: Accept microblaze*-*-linux* for linux target
+ and microblaze*-*-* for as target.
+
2010-12-02 Keith Seitz <keiths@redhat.com>
* linespec.c (find_method): Move name canonicalization outside
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index 24a6bf9..161cbdc 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -317,14 +317,14 @@ mep-*-*)
# No sim needed. Target uses SID.
;;
-microblaze*-linux-*)
+microblaze*-linux-*|microblaze*-*-linux*)
# Target: Xilinx MicroBlaze running Linux
gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o microblaze-rom.o \
monitor.o dsrec.o solib.o solib-svr4.o corelow.o \
symfile-mem.o linux-tdep.o"
gdb_sim=../sim/microblaze/libsim.a
;;
-microblaze*-xilinx-*)
+microblaze*-*-*)
# Target: Xilinx MicroBlaze running standalone
gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
gdb_sim=../sim/microblaze/libsim.a
diff --git a/gdb/version.in b/gdb/version.in
index cef7ed0..75d92f6 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.50.20101204-cvs
+7.2.50.20101206-cvs
diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog
index 49dfa03..89e6643 100644
--- a/sim/m32c/ChangeLog
+++ b/sim/m32c/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-04 Masaki Muranaka <monaka@monami-software.com>
+
+ * Makefile.in: Use CC_FOR_BUILD to build opc2c.
+
2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
* main.c (setup_tcp_console): Check error return from socket() call
diff --git a/sim/m32c/Makefile.in b/sim/m32c/Makefile.in
index c304ab8..18fc24f 100644
--- a/sim/m32c/Makefile.in
+++ b/sim/m32c/Makefile.in
@@ -55,7 +55,7 @@ m32c.c : m32c.opc opc2c
./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c
opc2c : opc2c.o safe-fgets.o
- $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+ $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $^ -o $@ $(BUILD_LIBS)
sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld
../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o
@@ -82,10 +82,15 @@ load.o : load.h cpu.h mem.h
main.o : cpu.h mem.h misc.h load.h
mem.o : mem.h cpu.h syscalls.h
misc.o : cpu.h misc.h
-opc2c.o : safe-fgets.h
reg.o : cpu.h
-safe-fgets.o : safe-fgets.h
srcdest.c : cpu.h mem.h
syscalls.c : cpu.h mem.h syscalls.h
r8c.o : cpu.h mem.h misc.h int.h
+
+opc2c.o : opc2c.c safe-fgets.h
+ $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/opc2c.c
+
+safe-fgets.o : safe-fgets.c safe-fgets.h
+ $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/safe-fgets.c
+
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-04 1:03 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-12-04 1:03 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 8e8cccf62c844a3e6c5bd4d83d17e8c9524a4a53 (commit)
via 43bc0813e0971ead8195028935c804d707d97b0a (commit)
via 8d09ceb05be685c540469d4a6b726c8eef3b3c72 (commit)
via 609e018959c7aa390ea3aefdf360971ff1683335 (commit)
via 250315712b8621a9d3ad400dfb4333f71564b21c (commit)
via ae4029a1b3a9b71bfa5311763201aeee4deebf9b (commit)
via a3d62c38050b4871fa20ba93e2fae0bd649f808f (commit)
via 40b3754dd3c4e3773d584de01624b5896d1328a5 (commit)
via be9b6948c117e936c5e1c7c8f0ad75c662846b71 (commit)
from bf55fc65300668210defd040346ccb97572fbbf5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 8e8cccf62c844a3e6c5bd4d83d17e8c9524a4a53
Merge: bf55fc6 43bc081
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Dec 4 02:03:05 2010 +0100
Merge remote branch 'gdb/master'
commit 43bc0813e0971ead8195028935c804d707d97b0a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Dec 4 00:00:33 2010 +0000
*** empty log message ***
commit 8d09ceb05be685c540469d4a6b726c8eef3b3c72
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Dec 3 23:00:05 2010 +0000
daily update
commit 609e018959c7aa390ea3aefdf360971ff1683335
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Dec 3 00:00:33 2010 +0000
*** empty log message ***
commit 250315712b8621a9d3ad400dfb4333f71564b21c
Author: Dave Korn <dave.korn@artimi.com>
Date: Thu Dec 2 23:36:59 2010 +0000
* mh-cygwin (LDFLAGS): Turn up stack allocation to 12MB.
(BOOT_LDFLAGS): Add matching stack size flag.
* mh-mingw (LDFLAGS): Likewise.
(BOOT_LDFLAGS): Likewise.
commit ae4029a1b3a9b71bfa5311763201aeee4deebf9b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Dec 2 23:00:06 2010 +0000
daily update
commit a3d62c38050b4871fa20ba93e2fae0bd649f808f
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu Dec 2 21:34:13 2010 +0000
2010-11-29 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.base/callfuncs.exp: Test for skip_float_tests.
* gdb.base/call-sc.exp: Ditto.
* gdb.base/finish.exp: Ditto.
* gdb.base/return.exp: Ditto.
* gdb.base/return2.exp: Ditto.
commit 40b3754dd3c4e3773d584de01624b5896d1328a5
Author: Keith Seitz <keiths@redhat.com>
Date: Thu Dec 2 20:05:57 2010 +0000
* linespec.c (find_method): Move name canonicalization outside
the loop.
Be paranoid and use a cleanup.
commit be9b6948c117e936c5e1c7c8f0ad75c662846b71
Author: Jeff Johnston <jjohnstn@redhat.com>
Date: Thu Dec 2 20:05:11 2010 +0000
2010-12-02 Jeff Johnston <jjohnstn@redhat.com>
* COPYING.NEWLIB: Add National Semiconductor notice.
-----------------------------------------------------------------------
Summary of changes:
COPYING.NEWLIB | 15 +++++++++++++++
ChangeLog | 4 ++++
bfd/version.h | 2 +-
config/ChangeLog | 7 +++++++
config/mh-cygwin | 6 ++++--
config/mh-mingw | 6 ++++--
gdb/ChangeLog | 6 ++++++
gdb/linespec.c | 23 ++++++++++++-----------
gdb/testsuite/ChangeLog | 8 ++++++++
gdb/testsuite/gdb.base/call-sc.exp | 30 ++++++++++++++++--------------
gdb/testsuite/gdb.base/callfuncs.exp | 12 ++++++++----
gdb/testsuite/gdb.base/finish.exp | 6 ++++--
gdb/testsuite/gdb.base/return.exp | 5 ++++-
gdb/testsuite/gdb.base/return2.exp | 8 +++++---
gdb/version.in | 2 +-
15 files changed, 99 insertions(+), 41 deletions(-)
First 500 lines of diff:
diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB
index 59687b6..7f90c7e 100644
--- a/COPYING.NEWLIB
+++ b/COPYING.NEWLIB
@@ -862,3 +862,18 @@ http://www.ti.com/
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+(38) National Semiconductor (cr16-* and crx-* targets)
+
+Copyright (c) 2004 National Semiconductor Corporation
+
+The authors hereby grant permission to use, copy, modify, distribute,
+and license this software and its documentation for any purpose, provided
+that existing copyright notices are retained in all copies and that this
+notice is included verbatim in any distributions. No written agreement,
+license, or royalty fee is required for any of the authorized uses.
+Modifications to this software may be copyrighted by their authors
+and need not follow the licensing terms described here, provided that
+the new terms are clearly indicated on the first page of each file where
+they apply.
+
diff --git a/ChangeLog b/ChangeLog
index 09dba95..8a49506 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-02 Jeff Johnston <jjohnstn@redhat.com>
+
+ * COPYING.NEWLIB: Add National Semiconductor notice.
+
2010-11-29 Andreas Schwab <schwab@redhat.com>
* configure.ac: Move comment to remove extra space in last argument
diff --git a/bfd/version.h b/bfd/version.h
index 281aec9..20052c8 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101202
+#define BFD_VERSION_DATE 20101204
#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/config/ChangeLog b/config/ChangeLog
index 8e98f6d..87af62b 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-02 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ * mh-cygwin (LDFLAGS): Turn up stack allocation to 12MB.
+ (BOOT_LDFLAGS): Add matching stack size flag.
+ * mh-mingw (LDFLAGS): Likewise.
+ (BOOT_LDFLAGS): Likewise.
+
2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
* bootstrap-lto.mk (BOOT_ADAFLAGS): Delete.
diff --git a/config/mh-cygwin b/config/mh-cygwin
index 3a9698b..e3f7325 100644
--- a/config/mh-cygwin
+++ b/config/mh-cygwin
@@ -1,8 +1,10 @@
EXTRA_TARGET_HOST_ALL_MODULES=maybe-all-libtermcap
EXTRA_TARGET_HOST_INSTALL_MODULES=maybe-install-libtermcap
-# Increase stack limit to same as Linux default.
-LDFLAGS += -Wl,--stack,8388608
+# Increase stack limit to a figure based on the Linux default, with 4MB added
+# as GCC turns out to need that much more to pass all the limits-* tests.
+LDFLAGS += -Wl,--stack,12582912
+BOOT_LDFLAGS += -Wl,--stack,12582912
all-gdb: maybe-all-libtermcap
diff --git a/config/mh-mingw b/config/mh-mingw
index d91323e..bc1d274 100644
--- a/config/mh-mingw
+++ b/config/mh-mingw
@@ -2,5 +2,7 @@
# Vista (see PR33281 for details).
BOOT_CFLAGS += -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format
CFLAGS += -D__USE_MINGW_ACCESS
-# Increase stack limit to same as Linux default.
-LDFLAGS += -Wl,--stack,8388608
+# Increase stack limit to a figure based on the Linux default, with 4MB added
+# as GCC turns out to need that much more to pass all the limits-* tests.
+LDFLAGS += -Wl,--stack,12582912
+BOOT_LDFLAGS += -Wl,--stack,12582912
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2abbdf9..3814cb3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2010-12-02 Keith Seitz <keiths@redhat.com>
+
+ * linespec.c (find_method): Move name canonicalization outside
+ the loop.
+ Be paranoid and use a cleanup.
+
2010-12-01 Doug Evans <dje@google.com>
* dwarf2read.c (save_gdb_index_command): Add comment.
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 91c5b90..7af0e3a 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1589,15 +1589,20 @@ find_method (int funfirstline, char ***canonical, char *saved_arg,
if (strchr (saved_arg, '(') != NULL)
{
int i;
+ char *name = saved_arg;
+ char *canon = cp_canonicalize_string (name);
+ struct cleanup *cleanup;
- for (i = 0; i < i1; ++i)
+ if (canon != NULL)
{
- char *name = saved_arg;
- char *canon = cp_canonicalize_string (name);
-
- if (canon != NULL)
- name = canon;
+ name = canon;
+ cleanup = make_cleanup (xfree, canon);
+ }
+ else
+ cleanup = make_cleanup (null_cleanup, NULL);
+ for (i = 0; i < i1; ++i)
+ {
if (strcmp_iw (name, SYMBOL_LINKAGE_NAME (sym_arr[i])) == 0)
{
values.sals = (struct symtab_and_line *)
@@ -1605,13 +1610,9 @@ find_method (int funfirstline, char ***canonical, char *saved_arg,
values.nelts = 1;
values.sals[0] = find_function_start_sal (sym_arr[i],
funfirstline);
- if (canon)
- xfree (canon);
+ do_cleanups (cleanup);
return values;
}
-
- if (canon)
- xfree (canon);
}
error (_("the class `%s' does not have any method instance named %s\n"),
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index a57716d..569c7b6 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2010-11-29 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
+
+ * gdb.base/callfuncs.exp: Test for skip_float_tests.
+ * gdb.base/call-sc.exp: Ditto.
+ * gdb.base/finish.exp: Ditto.
+ * gdb.base/return.exp: Ditto.
+ * gdb.base/return2.exp: Ditto.
+
2010-11-30 Doug Evans <dje@google.com>
* lib/gdb.exp (gdb_test_sequence): Return result of gdb_expect_list.
diff --git a/gdb/testsuite/gdb.base/call-sc.exp b/gdb/testsuite/gdb.base/call-sc.exp
index 5abbd44..a357cd9 100644
--- a/gdb/testsuite/gdb.base/call-sc.exp
+++ b/gdb/testsuite/gdb.base/call-sc.exp
@@ -440,20 +440,22 @@ start_scalars_test tll
test_scalar_calls
test_scalar_returns
-# Approx size: 4, 8, ...
-start_scalars_test tf
-test_scalar_calls
-test_scalar_returns
-
-# Approx size: 8, 16, ...
-start_scalars_test td
-test_scalar_calls
-test_scalar_returns
-
-# Approx size: 16, 32, ...
-start_scalars_test tld
-test_scalar_calls
-test_scalar_returns
+if ![target_info exists gdb,skip_float_tests] {
+ # Approx size: 4, 8, ...
+ start_scalars_test tf
+ test_scalar_calls
+ test_scalar_returns
+
+ # Approx size: 8, 16, ...
+ start_scalars_test td
+ test_scalar_calls
+ test_scalar_returns
+
+ # Approx size: 16, 32, ...
+ start_scalars_test tld
+ test_scalar_calls
+ test_scalar_returns
+}
# Approx size: 4, 8, ...
start_scalars_test te
diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp
index 613b5f0..0a9ac45 100644
--- a/gdb/testsuite/gdb.base/callfuncs.exp
+++ b/gdb/testsuite/gdb.base/callfuncs.exp
@@ -209,10 +209,14 @@ proc do_function_calls {} {
"call inferior func with struct - returns int"
gdb_test "p t_structs_l(struct_val1)" "= 51" \
"call inferior func with struct - returns long"
- gdb_test "p t_structs_f(struct_val1)" "= 2.12.*" \
- "call inferior func with struct - returns float"
- gdb_test "p t_structs_d(struct_val1)" "= 9.87.*" \
- "call inferior func with struct - returns double"
+
+ if ![target_info exists gdb,skip_float_tests] {
+ gdb_test "p t_structs_f(struct_val1)" "= 2.12.*" \
+ "call inferior func with struct - returns float"
+ gdb_test "p t_structs_d(struct_val1)" "= 9.87.*" \
+ "call inferior func with struct - returns double"
+ }
+
gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char .. )?\"foo\"" \
"call inferior func with struct - returns char *"
}
diff --git a/gdb/testsuite/gdb.base/finish.exp b/gdb/testsuite/gdb.base/finish.exp
index 83893b8..9c796ca 100644
--- a/gdb/testsuite/gdb.base/finish.exp
+++ b/gdb/testsuite/gdb.base/finish.exp
@@ -103,8 +103,10 @@ proc finish_tests { } {
finish_1 "int"
finish_1 "long"
finish_1 "long_long"
- finish_1 "float"
- finish_1 "double"
+ if ![target_info exists gdb,skip_float_tests] {
+ finish_1 "float"
+ finish_1 "double"
+ }
finish_abbreviation "fin"
}
diff --git a/gdb/testsuite/gdb.base/return.exp b/gdb/testsuite/gdb.base/return.exp
index dcd66f8..47967d7 100644
--- a/gdb/testsuite/gdb.base/return.exp
+++ b/gdb/testsuite/gdb.base/return.exp
@@ -89,7 +89,10 @@ proc return_tests { } {
# is not xfailed.
setup_xfail "sparc-*-solaris2.3*" "sparc-*-solaris2.4*" "m6811-*-*"
- gdb_test "p tmp3" ".* = 5.*" "correct value returned double test (known problem with sparc solaris)"
+ if ![target_info exists gdb,skip_float_tests] {
+ gdb_test "p tmp3" ".* = 5.*" \
+ "correct value returned double test (known problem with sparc solaris)"
+ }
}
set prev_timeout $timeout
diff --git a/gdb/testsuite/gdb.base/return2.exp b/gdb/testsuite/gdb.base/return2.exp
index f3d69d4..c268c78 100644
--- a/gdb/testsuite/gdb.base/return2.exp
+++ b/gdb/testsuite/gdb.base/return2.exp
@@ -98,9 +98,11 @@ proc return2_tests { } {
if { ! [istarget "m6811-*-*"] && ![istarget "h8300*-*"] } then {
return_1 "long_long"
}
- return_1 "float"
- if { ! [istarget "m6811-*-*"] } then {
- return_1 "double"
+ if ![target_info exists gdb,skip_float_tests] {
+ return_1 "float"
+ if { ! [istarget "m6811-*-*"] } then {
+ return_1 "double"
+ }
}
}
diff --git a/gdb/version.in b/gdb/version.in
index d859cbb..cef7ed0 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.50.20101202-cvs
+7.2.50.20101204-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-12-02 15:47 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-12-02 15:47 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via bf55fc65300668210defd040346ccb97572fbbf5 (commit)
via 0e3bd63abac1bf727c4ee3e1bb19a51478d8f26e (commit)
via dd7fa16627e6a20d07cd28f76d8e75b9f6859f2c (commit)
via 3a50499e5622e8367b5c9c198c413e81fa16762d (commit)
via 459e7811f623ac06f660a24ba7de0d59e19b8c2d (commit)
via b1f76c17d2109a25df532f640649c40258e88c28 (commit)
via b6119e4c53e0bcf363b0a4c94f0f2ad610311ad9 (commit)
via 1153e77e8c6b91750247cf178b37d3220fa7021c (commit)
via b5f803c02471fe84a46832837c260297a6a326b8 (commit)
via ae2216f8dc8476759f74a590c9d5dcf71079d9cb (commit)
via b6f9421c247b6719cf55d5c39035d1df94194ebe (commit)
via cb995e236d1c599ac3d488c83b0ca5764ed0aeb5 (commit)
via 3e8ef87fbbea3c9862f697fa1a29766f18617232 (commit)
from 78e9675f6783611aab8b4e94e046e95c4a18b2ea (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit bf55fc65300668210defd040346ccb97572fbbf5
Merge: 78e9675 0e3bd63
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Thu Dec 2 15:46:51 2010 +0000
Merge remote branch 'gdb/master'
commit 0e3bd63abac1bf727c4ee3e1bb19a51478d8f26e
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Thu Dec 2 13:28:35 2010 +0000
bfd/
* elf32-arm.c (elf32_arm_link_hash_table): Remove sgot, sgotplt,
srelgot, splt, srelplt.
(create_got_section, elf32_arm_link_hash_table_create): Don't set them.
(elf32_arm_create_dynamic_sections): Likewise. Use htab->root
fields instead.
(arm_type_of_stub): Use the root fields instead of the removed ones.
(cortex_a8_erratum_scan, elf32_arm_size_stubs): Likewise.
(bfd_elf32_arm_process_before_allocation): Likewise.
(elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
(elf32_arm_size_dynamic_sections): Likewise.
(elf32_arm_output_arch_local_syms): Likewise.
(elf32_arm_final_link_relocate): Set sgot, splt and srelgot from the
htab fields instead of looking them up by name. Consistently use
these local variables instead of htab fields.
(elf32_arm_finish_dynamic_symbol): Likewise sgot, splt and srel.
Use srelbss instead of looking it up by name.
(elf32_arm_finish_dynamic_sections): Use sgotplt, splt and srelplt
instead of looking up the symbols by name. Use the root fields
instead of the removed ones.
commit dd7fa16627e6a20d07cd28f76d8e75b9f6859f2c
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Thu Dec 2 13:27:21 2010 +0000
bfd/
* elf32-arm.c (elf32_arm_relocs_copied): Delete.
(elf32_arm_link_hash_entry): Replace relocs_copied with dyn_relocs.
(elf32_arm_link_hash_newfunc): Update accordingly.
(elf32_arm_copy_indirect_symbol, elf32_arm_gc_sweep_hook): Likewise.
(elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
(elf32_arm_readonly_dynrelocs): Likewise.
(elf32_arm_size_dynamic_sections): Likewise.
commit 3a50499e5622e8367b5c9c198c413e81fa16762d
Author: Paul Koning <pkoning@equallogic.com>
Date: Thu Dec 2 11:53:06 2010 +0000
* pdp11.c (aout_link_add_symbols): Ignore debug symbols.
commit 459e7811f623ac06f660a24ba7de0d59e19b8c2d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Dec 2 00:00:33 2010 +0000
*** empty log message ***
commit b1f76c17d2109a25df532f640649c40258e88c28
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Dec 1 23:00:05 2010 +0000
daily update
commit b6119e4c53e0bcf363b0a4c94f0f2ad610311ad9
Author: Doug Evans <dje@google.com>
Date: Wed Dec 1 19:37:35 2010 +0000
* dwarf2read.c (save_gdb_index_command): Add comment.
commit 1153e77e8c6b91750247cf178b37d3220fa7021c
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Wed Dec 1 16:49:40 2010 +0000
* valops.c (value_assign): Returned value is never lazy. If a
C++ class type is returned, fix incorrect enclosing type / embedded
offset. If internal variable is returned, allocate new internalvar
value using value_of_internalvar.
* NEWS: Document changes in behavior of "print x = 0" and similar
expressions.
commit b5f803c02471fe84a46832837c260297a6a326b8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Dec 1 00:00:33 2010 +0000
*** empty log message ***
commit ae2216f8dc8476759f74a590c9d5dcf71079d9cb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 30 23:00:05 2010 +0000
daily update
commit b6f9421c247b6719cf55d5c39035d1df94194ebe
Author: Doug Evans <dje@google.com>
Date: Tue Nov 30 17:41:13 2010 +0000
* lib/gdb.exp (gdb_test_sequence): Return result of gdb_expect_list.
(gdb_expect_list): Fix spelling errors in comments.
* gdb.arch/system-gcore.exp: Use gdb_test_sequence instead of
send_gdb/gdb_expect_list where applicable.
* gdb.base/call-ar-st.exp: Ditto.
* gdb.base/funcargs.exp: Ditto.
* gdb.base/gcore.exp: Ditto.
* gdb.base/page.exp: Ditto.
* gdb.base/sigaltstack.exp: Ditto.
* gdb.base/siginfo.exp: Ditto.
* gdb.base/sigstep.exp: Ditto.
* gdb.base/trace-commands.exp: Ditto.
commit cb995e236d1c599ac3d488c83b0ca5764ed0aeb5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 30 01:14:06 2010 +0000
Add sparc64-rtems.
commit 3e8ef87fbbea3c9862f697fa1a29766f18617232
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 30 00:00:32 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 40 +++
bfd/config.bfd | 4 +-
bfd/elf32-arm.c | 304 ++++++++++--------------
bfd/pdp11.c | 4 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 14 +
gdb/NEWS | 6 +
gdb/dwarf2read.c | 1 +
gdb/testsuite/ChangeLog | 15 ++
gdb/testsuite/gdb.arch/system-gcore.exp | 21 +-
gdb/testsuite/gdb.base/call-ar-st.exp | 50 ++---
gdb/testsuite/gdb.base/funcargs.exp | 379 ++++++++++++++---------------
gdb/testsuite/gdb.base/gcore.exp | 21 +-
gdb/testsuite/gdb.base/page.exp | 3 +-
gdb/testsuite/gdb.base/sigaltstack.exp | 5 +-
gdb/testsuite/gdb.base/siginfo.exp | 5 +-
gdb/testsuite/gdb.base/sigstep.exp | 5 +-
gdb/testsuite/gdb.base/trace-commands.exp | 18 +-
gdb/testsuite/lib/gdb.exp | 13 +-
gdb/valops.c | 25 ++-
gdb/version.in | 2 +-
21 files changed, 464 insertions(+), 473 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e8cf66b..20df60a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,43 @@
+2010-12-02 Richard Sandiford <richard.sandiford@linaro.org>
+
+ * elf32-arm.c (elf32_arm_link_hash_table): Remove sgot, sgotplt,
+ srelgot, splt, srelplt.
+ (create_got_section, elf32_arm_link_hash_table_create): Don't set them.
+ (elf32_arm_create_dynamic_sections): Likewise. Use htab->root
+ fields instead.
+ (arm_type_of_stub): Use the root fields instead of the removed ones.
+ (cortex_a8_erratum_scan, elf32_arm_size_stubs): Likewise.
+ (bfd_elf32_arm_process_before_allocation): Likewise.
+ (elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
+ (elf32_arm_size_dynamic_sections): Likewise.
+ (elf32_arm_output_arch_local_syms): Likewise.
+ (elf32_arm_final_link_relocate): Set sgot, splt and srelgot from the
+ htab fields instead of looking them up by name. Consistently use
+ these local variables instead of htab fields.
+ (elf32_arm_finish_dynamic_symbol): Likewise sgot, splt and srel.
+ Use srelbss instead of looking it up by name.
+ (elf32_arm_finish_dynamic_sections): Use sgotplt, splt and srelplt
+ instead of looking up the symbols by name. Use the root fields
+ instead of the removed ones.
+
+2010-12-02 Richard Sandiford <richard.sandiford@linaro.org>
+
+ * elf32-arm.c (elf32_arm_relocs_copied): Delete.
+ (elf32_arm_link_hash_entry): Replace relocs_copied with dyn_relocs.
+ (elf32_arm_link_hash_newfunc): Update accordingly.
+ (elf32_arm_copy_indirect_symbol, elf32_arm_gc_sweep_hook): Likewise.
+ (elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
+ (elf32_arm_readonly_dynrelocs): Likewise.
+ (elf32_arm_size_dynamic_sections): Likewise.
+
+2010-12-02 Paul Koning <ni1d@arrl.net>
+
+ * pdp11.c (aout_link_add_symbols): Ignore debug symbols.
+
+2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * config.bfd: Add sparc64-rtems.
+
2010-11-25 Alan Modra <amodra@gmail.com>
* po/es.po: Update.
diff --git a/bfd/config.bfd b/bfd/config.bfd
index f0a03e3..9b719d8 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -1432,7 +1432,7 @@ case "${targ}" in
targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
want64=true
;;
- sparc64-*-elf*)
+ sparc64-*-elf* | sparc64-*-rtems* )
targ_defvec=bfd_elf64_sparc_vec
targ_selvecs=bfd_elf32_sparc_vec
want64=true
@@ -1441,7 +1441,7 @@ case "${targ}" in
sparc*-*-coff*)
targ_defvec=sparccoff_vec
;;
- sparc*-*-rtems*)
+ sparc-*-rtems*)
targ_defvec=bfd_elf32_sparc_vec
targ_selvecs="sunos_big_vec sparccoff_vec"
;;
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index ffe8f60..7c8eb68 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -2451,26 +2451,6 @@ elf32_arm_mkobject (bfd *abfd)
ARM_ELF_DATA);
}
-/* The ARM linker needs to keep track of the number of relocs that it
- decides to copy in check_relocs for each symbol. This is so that
- it can discard PC relative relocs if it doesn't need them when
- linking with -Bsymbolic. We store the information in a field
- extending the regular ELF linker hash table. */
-
-/* This structure keeps track of the number of relocs we have copied
- for a given symbol. */
-struct elf32_arm_relocs_copied
- {
- /* Next section. */
- struct elf32_arm_relocs_copied * next;
- /* A section in dynobj. */
- asection * section;
- /* Number of relocs copied in this section. */
- bfd_size_type count;
- /* Number of PC-relative relocs copied in this section. */
- bfd_size_type pc_count;
- };
-
#define elf32_arm_hash_entry(ent) ((struct elf32_arm_link_hash_entry *)(ent))
/* Arm ELF linker hash entry. */
@@ -2478,8 +2458,8 @@ struct elf32_arm_link_hash_entry
{
struct elf_link_hash_entry root;
- /* Number of PC relative relocs copied for this symbol. */
- struct elf32_arm_relocs_copied * relocs_copied;
+ /* Track dynamic relocs copied for this symbol. */
+ struct elf_dyn_relocs *dyn_relocs;
/* We reference count Thumb references to a PLT entry separately,
so that we can emit the Thumb trampoline only if needed. */
@@ -2615,11 +2595,6 @@ struct elf32_arm_link_hash_table
int use_rel;
/* Short-cuts to get to dynamic linker sections. */
- asection *sgot;
- asection *sgotplt;
- asection *srelgot;
- asection *splt;
- asection *srelplt;
asection *sdynbss;
asection *srelbss;
@@ -2686,7 +2661,7 @@ elf32_arm_link_hash_newfunc (struct bfd_hash_entry * entry,
table, string));
if (ret != NULL)
{
- ret->relocs_copied = NULL;
+ ret->dyn_relocs = NULL;
ret->tls_type = GOT_UNKNOWN;
ret->plt_thumb_refcount = 0;
ret->plt_maybe_thumb_refcount = 0;
@@ -2761,15 +2736,6 @@ create_got_section (bfd *dynobj, struct bfd_link_info *info)
if (! _bfd_elf_create_got_section (dynobj, info))
return FALSE;
- htab->sgot = bfd_get_section_by_name (dynobj, ".got");
- htab->sgotplt = bfd_get_section_by_name (dynobj, ".got.plt");
- if (!htab->sgot || !htab->sgotplt)
- abort ();
-
- htab->srelgot = bfd_get_section_by_name (dynobj,
- RELOC_SECTION (htab, ".got"));
- if (htab->srelgot == NULL)
- return FALSE;
return TRUE;
}
@@ -2786,15 +2752,12 @@ elf32_arm_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
if (htab == NULL)
return FALSE;
- if (!htab->sgot && !create_got_section (dynobj, info))
+ if (!htab->root.sgot && !create_got_section (dynobj, info))
return FALSE;
if (!_bfd_elf_create_dynamic_sections (dynobj, info))
return FALSE;
- htab->splt = bfd_get_section_by_name (dynobj, ".plt");
- htab->srelplt = bfd_get_section_by_name (dynobj,
- RELOC_SECTION (htab, ".plt"));
htab->sdynbss = bfd_get_section_by_name (dynobj, ".dynbss");
if (!info->shared)
htab->srelbss = bfd_get_section_by_name (dynobj,
@@ -2820,8 +2783,8 @@ elf32_arm_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
}
}
- if (!htab->splt
- || !htab->srelplt
+ if (!htab->root.splt
+ || !htab->root.srelplt
|| !htab->sdynbss
|| (!info->shared && !htab->srelbss))
abort ();
@@ -2841,21 +2804,21 @@ elf32_arm_copy_indirect_symbol (struct bfd_link_info *info,
edir = (struct elf32_arm_link_hash_entry *) dir;
eind = (struct elf32_arm_link_hash_entry *) ind;
- if (eind->relocs_copied != NULL)
+ if (eind->dyn_relocs != NULL)
{
- if (edir->relocs_copied != NULL)
+ if (edir->dyn_relocs != NULL)
{
- struct elf32_arm_relocs_copied **pp;
- struct elf32_arm_relocs_copied *p;
+ struct elf_dyn_relocs **pp;
+ struct elf_dyn_relocs *p;
/* Add reloc counts against the indirect sym to the direct sym
list. Merge any entries against the same section. */
- for (pp = &eind->relocs_copied; (p = *pp) != NULL; )
+ for (pp = &eind->dyn_relocs; (p = *pp) != NULL; )
{
- struct elf32_arm_relocs_copied *q;
+ struct elf_dyn_relocs *q;
- for (q = edir->relocs_copied; q != NULL; q = q->next)
- if (q->section == p->section)
+ for (q = edir->dyn_relocs; q != NULL; q = q->next)
+ if (q->sec == p->sec)
{
q->pc_count += p->pc_count;
q->count += p->count;
@@ -2865,11 +2828,11 @@ elf32_arm_copy_indirect_symbol (struct bfd_link_info *info,
if (q == NULL)
pp = &p->next;
}
- *pp = edir->relocs_copied;
+ *pp = edir->dyn_relocs;
}
- edir->relocs_copied = eind->relocs_copied;
- eind->relocs_copied = NULL;
+ edir->dyn_relocs = eind->dyn_relocs;
+ eind->dyn_relocs = NULL;
}
if (ind->root.type == bfd_link_hash_indirect)
@@ -2911,11 +2874,6 @@ elf32_arm_link_hash_table_create (bfd *abfd)
return NULL;
}
- ret->sgot = NULL;
- ret->sgotplt = NULL;
- ret->srelgot = NULL;
- ret->splt = NULL;
- ret->srelplt = NULL;
ret->sdynbss = NULL;
ret->srelbss = NULL;
ret->srelplt2 = NULL;
@@ -3094,7 +3052,7 @@ arm_type_of_stub (struct bfd_link_info *info,
r_type = ELF32_R_TYPE (rel->r_info);
/* Keep a simpler condition, for the sake of clarity. */
- if (globals->splt != NULL
+ if (globals->root.splt != NULL
&& hash != NULL
&& hash->root.plt.offset != (bfd_vma) -1)
{
@@ -3109,8 +3067,8 @@ arm_type_of_stub (struct bfd_link_info *info,
because it avoids spreading offset corrections in several
places. */
- destination = (globals->splt->output_section->vma
- + globals->splt->output_offset
+ destination = (globals->root.splt->output_section->vma
+ + globals->root.splt->output_offset
+ hash->root.plt.offset);
st_type = STT_FUNC;
}
@@ -4132,7 +4090,7 @@ cortex_a8_erratum_scan (bfd *input_bfd,
found->non_a8_stub = TRUE;
/* Keep a simpler condition, for the sake of clarity. */
- if (htab->splt != NULL && found->hash != NULL
+ if (htab->root.splt != NULL && found->hash != NULL
&& found->hash->root.plt.offset != (bfd_vma) -1)
use_plt = TRUE;
@@ -4552,11 +4510,11 @@ elf32_arm_size_stubs (bfd *output_bfd,
decide whether a branch stub is
needed. */
if (globals != NULL
- && globals->splt != NULL
+ && globals->root.splt != NULL
&& hash != NULL
&& hash->root.plt.offset != (bfd_vma) -1)
{
- sym_sec = globals->splt;
+ sym_sec = globals->root.splt;
sym_value = hash->root.plt.offset;
if (sym_sec->output_section != NULL)
destination = (sym_value
@@ -4579,11 +4537,11 @@ elf32_arm_size_stubs (bfd *output_bfd,
elf32_arm_hash_table (info);
if (globals != NULL
- && globals->splt != NULL
+ && globals->root.splt != NULL
&& hash != NULL
&& hash->root.plt.offset != (bfd_vma) -1)
{
- sym_sec = globals->splt;
+ sym_sec = globals->root.splt;
sym_value = hash->root.plt.offset;
if (sym_sec->output_section != NULL)
destination = (sym_value
@@ -5574,7 +5532,7 @@ bfd_elf32_arm_process_before_allocation (bfd *abfd,
/* If the call will go through a PLT entry then we do not need
glue. */
- if (globals->splt != NULL && h->plt.offset != (bfd_vma) -1)
+ if (globals->root.splt != NULL && h->plt.offset != (bfd_vma) -1)
continue;
switch (r_type)
@@ -6875,11 +6833,11 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
unsigned long r_type = howto->type;
unsigned long r_symndx;
bfd_byte * hit_data = contents + rel->r_offset;
- bfd * dynobj = NULL;
bfd_vma * local_got_offsets;
asection * sgot = NULL;
asection * splt = NULL;
asection * sreloc = NULL;
+ asection * srelgot;
bfd_vma addend;
bfd_signed_vma signed_addend;
struct elf32_arm_link_hash_table * globals;
@@ -6908,12 +6866,9 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if (bfd_get_start_address (output_bfd) != 0)
elf_elfheader (output_bfd)->e_flags |= EF_ARM_HASENTRY;
- dynobj = elf_hash_table (info)->dynobj;
- if (dynobj)
- {
- sgot = bfd_get_section_by_name (dynobj, ".got");
- splt = bfd_get_section_by_name (dynobj, ".plt");
- }
+ sgot = globals->root.sgot;
+ splt = globals->root.splt;
+ srelgot = globals->root.srelgot;
local_got_offsets = elf_local_got_offsets (input_bfd);
r_symndx = ELF32_R_SYM (rel->r_info);
@@ -7971,12 +7926,9 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if (info->shared)
{
- asection * srelgot;
Elf_Internal_Rela outrel;
bfd_byte *loc;
- srelgot = (bfd_get_section_by_name
- (dynobj, RELOC_SECTION (globals, ".got")));
BFD_ASSERT (srelgot != NULL);
outrel.r_addend = addend + value;
@@ -8012,7 +7964,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
{
bfd_vma off;
- if (globals->sgot == NULL)
+ if (sgot == NULL)
abort ();
off = globals->tls_ldm_got.offset;
@@ -8028,29 +7980,29 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
Elf_Internal_Rela outrel;
bfd_byte *loc;
- if (globals->srelgot == NULL)
+ if (srelgot == NULL)
abort ();
outrel.r_addend = 0;
- outrel.r_offset = (globals->sgot->output_section->vma
- + globals->sgot->output_offset + off);
+ outrel.r_offset = (sgot->output_section->vma
+ + sgot->output_offset + off);
outrel.r_info = ELF32_R_INFO (0, R_ARM_TLS_DTPMOD32);
if (globals->use_rel)
bfd_put_32 (output_bfd, outrel.r_addend,
- globals->sgot->contents + off);
+ sgot->contents + off);
- loc = globals->srelgot->contents;
- loc += globals->srelgot->reloc_count++ * RELOC_SIZE (globals);
+ loc = srelgot->contents;
+ loc += srelgot->reloc_count++ * RELOC_SIZE (globals);
SWAP_RELOC_OUT (globals) (output_bfd, &outrel, loc);
}
else
- bfd_put_32 (output_bfd, 1, globals->sgot->contents + off);
+ bfd_put_32 (output_bfd, 1, sgot->contents + off);
globals->tls_ldm_got.offset |= 1;
}
- value = globals->sgot->output_section->vma + globals->sgot->output_offset + off
+ value = sgot->output_section->vma + sgot->output_offset + off
- (input_section->output_section->vma + input_section->output_offset + rel->r_offset);
return _bfd_final_link_relocate (howto, input_bfd, input_section,
@@ -8065,7 +8017,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
int indx;
char tls_type;
- if (globals->sgot == NULL)
+ if (sgot == NULL)
abort ();
indx = 0;
@@ -8113,10 +8065,10 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
|| h->root.type != bfd_link_hash_undefweak))
{
need_relocs = TRUE;
- if (globals->srelgot == NULL)
+ if (srelgot == NULL)
abort ();
- loc = globals->srelgot->contents;
- loc += globals->srelgot->reloc_count * RELOC_SIZE (globals);
+ loc = srelgot->contents;
+ loc += srelgot->reloc_count * RELOC_SIZE (globals);
}
if (tls_type & GOT_TLS_GD)
@@ -8124,22 +8076,22 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if (need_relocs)
{
outrel.r_addend = 0;
- outrel.r_offset = (globals->sgot->output_section->vma
- + globals->sgot->output_offset
+ outrel.r_offset = (sgot->output_section->vma
+ + sgot->output_offset
+ cur_off);
outrel.r_info = ELF32_R_INFO (indx, R_ARM_TLS_DTPMOD32);
if (globals->use_rel)
bfd_put_32 (output_bfd, outrel.r_addend,
- globals->sgot->contents + cur_off);
+ sgot->contents + cur_off);
SWAP_RELOC_OUT (globals) (output_bfd, &outrel, loc);
- globals->srelgot->reloc_count++;
+ srelgot->reloc_count++;
loc += RELOC_SIZE (globals);
if (indx == 0)
bfd_put_32 (output_bfd, value - dtpoff_base (info),
- globals->sgot->contents + cur_off + 4);
+ sgot->contents + cur_off + 4);
else
{
outrel.r_addend = 0;
@@ -8149,11 +8101,11 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if (globals->use_rel)
bfd_put_32 (output_bfd, outrel.r_addend,
- globals->sgot->contents + cur_off + 4);
+ sgot->contents + cur_off + 4);
SWAP_RELOC_OUT (globals) (output_bfd, &outrel, loc);
- globals->srelgot->reloc_count++;
+ srelgot->reloc_count++;
loc += RELOC_SIZE (globals);
}
}
@@ -8165,9 +8117,9 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
symbol binding locally. Mark it as belonging
to module 1, the executable. */
bfd_put_32 (output_bfd, 1,
- globals->sgot->contents + cur_off);
+ sgot->contents + cur_off);
bfd_put_32 (output_bfd, value - dtpoff_base (info),
- globals->sgot->contents + cur_off + 4);
+ sgot->contents + cur_off + 4);
}
cur_off += 8;
@@ -8181,22 +8133,22 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
outrel.r_addend = value - dtpoff_base (info);
else
outrel.r_addend = 0;
- outrel.r_offset = (globals->sgot->output_section->vma
- + globals->sgot->output_offset
+ outrel.r_offset = (sgot->output_section->vma
+ + sgot->output_offset
+ cur_off);
outrel.r_info = ELF32_R_INFO (indx, R_ARM_TLS_TPOFF32);
if (globals->use_rel)
bfd_put_32 (output_bfd, outrel.r_addend,
- globals->sgot->contents + cur_off);
+ sgot->contents + cur_off);
SWAP_RELOC_OUT (globals) (output_bfd, &outrel, loc);
- globals->srelgot->reloc_count++;
+ srelgot->reloc_count++;
loc += RELOC_SIZE (globals);
}
else
bfd_put_32 (output_bfd, tpoff (info, value),
- globals->sgot->contents + cur_off);
+ sgot->contents + cur_off);
cur_off += 4;
}
@@ -8208,7 +8160,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if ((tls_type & GOT_TLS_GD) && r_type != R_ARM_TLS_GD32)
off += 8;
- value = globals->sgot->output_section->vma + globals->sgot->output_offset + off
+ value = sgot->output_section->vma + sgot->output_offset + off
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-11-30 0:15 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-11-30 0:15 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 78e9675f6783611aab8b4e94e046e95c4a18b2ea (commit)
via 85c05a4bbc86c4757e0b8a76a2bfd43e80d800ed (commit)
via d712a8cd14ef424c3375c4288d4a78f4ecc4166d (commit)
via 5a9fa87006fc0437a80a99e7029e602c0a3a30c3 (commit)
via 83520a07e6de31319c8ebce35d7ef9ea8abde0b5 (commit)
via 904b05782deb53da93b07a60b70193b5a80f6d40 (commit)
via d3bf95b7dcbba0d0b07a51c616e195e55554ae02 (commit)
via c81a691b89389250cd099d1a3f23d852a1ad755c (commit)
via e012eb4d0574f51690879f3f7d22b97624751f1d (commit)
from f436a264c48a1c9af4df3ce44f5a4a2b3baf9491 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 78e9675f6783611aab8b4e94e046e95c4a18b2ea
Merge: f436a26 85c05a4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Nov 30 01:15:22 2010 +0100
Merge remote branch 'gdb/master'
commit 85c05a4bbc86c4757e0b8a76a2bfd43e80d800ed
Author: Doug Evans <dje@google.com>
Date: Mon Nov 29 23:20:56 2010 +0000
* python/lib/gdb/printing.py (register_pretty_printer): Change
printer-name:subprinter-name to printer-name;subprinter-name.
* python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
Ditto.
(InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
doc/
* gdb.texinfo (Pretty-Printer Introduction): Change
printer-name:subprinter-name to printer-name;subprinter-name.
testsuite/
* gdb.python/py-pp-maint.exp: Change printer-name:subprinter-name to
printer-name;subprinter-name.
commit d712a8cd14ef424c3375c4288d4a78f4ecc4166d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Nov 29 23:00:05 2010 +0000
daily update
commit 5a9fa87006fc0437a80a99e7029e602c0a3a30c3
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Nov 29 21:18:15 2010 +0000
gdb
* opencl-lang.c (lval_func_check_synthetic_pointer): New
function.
* value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
New fields.
(value_bits_synthetic_pointer): Declare.
* value.c (value_bits_synthetic_pointer): New function.
* valprint.c (valprint_check_validity): Handle synthetic
pointers.
* valops.c (value_ind): Use new 'indirect' lval_funcs method.
* valarith.c (value_ptradd): Use set_value_component_location.
* p-valprint.c (pascal_object_print_value_fields): Handle
synthetic pointers.
* jv-valprint.c (java_print_value_fields): Handle synthetic
pointers.
* dwarf2read.c (dwarf_stack_op_name): Add
DW_OP_GNU_implicit_pointer.
(dwarf2_fetch_die_location_block): Add get_frame_pc, baton
arguments. Handle location lists.
(fill_in_loclist_baton): New function.
(dwarf2_symbol_mark_computed): Use it.
* dwarf2loc.h (dwarf2_find_location_expression): Declare.
(dwarf2_fetch_die_location_block): Add get_frame_pc, baton
arguments.
* dwarf2loc.c (dwarf2_find_location_expression): Rename from
find_location_expression. No longer static. Update all callers.
(dwarf_expr_frame_pc): New function.
(per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
all callers.
(struct piece_closure) <per_cu>: New field.
(allocate_piece_closure): Add per_cu argument.
(read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
(check_pieced_value_bits): Remove validity argument, add check_for
argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
(check_pieced_value_validity, check_pieced_value_invalid):
Update.
(check_pieced_synthetic_pointer): New function.
(get_frame_address_in_block_wrapper): New function.
(indirect_pieced_value): New function.
(pieced_value_funcs): Update.
(invalid_synthetic_pointer): New function.
(dwarf2_evaluate_loc_desc_full): Rename from
dwarf2_evaluate_loc_desc. Add byte_offset argument.
(dwarf2_evaluate_loc_desc): Rewrite.
(dwarf2_loc_desc_needs_frame): Set new field on context.
(get_ax_pc): New function.
(disassemble_dwarf_expression): Handle
DW_OP_GNU_implicit_pointer.
* dwarf2expr.h (enum dwarf_value_location)
<DWARF_VALUE_IMPLICIT_POINTER>: New constant.
(struct dwarf_expr_context) <get_frame_pc>: New field.
(struct dwarf_expr_piece) <v.ptr>: New field.
* dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
(execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
* dwarf2-frame.c (no_get_frame_pc): New function.
(execute_stack_op): Set new field on context.
* cp-valprint.c (cp_print_value_fields): Handle synthetic
pointers.
gdb/testsuite
* gdb.dwarf2/implptr.exp: New file.
* gdb.dwarf2/implptr.c: New file.
* gdb.dwarf2/implptr.S: New file.
commit 83520a07e6de31319c8ebce35d7ef9ea8abde0b5
Author: DJ Delorie <dj@delorie.com>
Date: Mon Nov 29 16:34:10 2010 +0000
merge from gcc
commit 904b05782deb53da93b07a60b70193b5a80f6d40
Author: pmuldoon <pmuldoon>
Date: Mon Nov 29 13:49:02 2010 +0000
2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
PR python/12199
* python/py-breakpoint.c (bppy_delete_breakpoint): New function.
2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
PR python/12199
* gdb.python/py-breakpoint.exp: Test the delete method.
2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
PR python/12199
* gdb.texinfo (Breakpoints In Python): Document "delete" method.
commit d3bf95b7dcbba0d0b07a51c616e195e55554ae02
Author: Andreas Schwab <schwab@suse.de>
Date: Mon Nov 29 11:01:42 2010 +0000
* configure.ac: Move comment to remove extra space in last argument
of GCC_TARGET_TOOL.
commit c81a691b89389250cd099d1a3f23d852a1ad755c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 29 00:00:33 2010 +0000
*** empty log message ***
commit e012eb4d0574f51690879f3f7d22b97624751f1d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Nov 28 23:00:06 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +
bfd/version.h | 2 +-
configure.ac | 3 +-
gdb/ChangeLog | 74 ++
gdb/cp-valprint.c | 8 +
gdb/doc/ChangeLog | 11 +
gdb/doc/gdb.texinfo | 8 +-
gdb/dwarf2-frame.c | 10 +
gdb/dwarf2expr.c | 31 +
gdb/dwarf2expr.h | 22 +-
gdb/dwarf2loc.c | 291 +++++++-
gdb/dwarf2loc.h | 11 +-
gdb/dwarf2read.c | 53 ++-
gdb/jv-valprint.c | 8 +
gdb/opencl-lang.c | 39 ++
gdb/p-valprint.c | 8 +
gdb/python/lib/gdb/command/pretty_printers.py | 10 +-
gdb/python/lib/gdb/printing.py | 10 +-
gdb/python/py-breakpoint.c | 19 +
gdb/testsuite/ChangeLog | 17 +
gdb/testsuite/gdb.dwarf2/implptr.S | 882 +++++++++++++++++++++++++
gdb/testsuite/gdb.dwarf2/implptr.c | 68 ++
gdb/testsuite/gdb.dwarf2/implptr.exp | 80 +++
gdb/testsuite/gdb.python/py-breakpoint.exp | 23 +
gdb/testsuite/gdb.python/py-pp-maint.exp | 18 +-
gdb/valarith.c | 8 +-
gdb/valops.c | 13 +
gdb/valprint.c | 7 +
gdb/value.c | 12 +
gdb/value.h | 16 +
gdb/version.in | 2 +-
libdecnumber/ChangeLog | 5 +
libdecnumber/dconfig.h | 7 +-
libiberty/ChangeLog | 4 +
libiberty/setproctitle.c | 1 +
35 files changed, 1710 insertions(+), 76 deletions(-)
create mode 100644 gdb/testsuite/gdb.dwarf2/implptr.S
create mode 100644 gdb/testsuite/gdb.dwarf2/implptr.c
create mode 100644 gdb/testsuite/gdb.dwarf2/implptr.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index fbc94ed..09dba95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-29 Andreas Schwab <schwab@redhat.com>
+
+ * configure.ac: Move comment to remove extra space in last argument
+ of GCC_TARGET_TOOL.
+
2010-11-26 Alexandre Oliva <aoliva@redhat.com>
PR other/46020
diff --git a/bfd/version.h b/bfd/version.h
index 2c78ce5..fad98e6 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101128
+#define BFD_VERSION_DATE 20101130
#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/configure.ac b/configure.ac
index 7859290..65c0a74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3235,8 +3235,9 @@ RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar])
GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new])
GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/])
+dnl see comments for CXX_FOR_TARGET_FLAG_TO_PASS
GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX,
- [gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],dnl see comments for CXX_FOR_TARGET_FLAG_TO_PASS
+ [gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],
c++)
GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX,
[gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a7aa825..0286cac 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,77 @@
+2010-11-29 Doug Evans <dje@google.com>
+
+ * python/lib/gdb/printing.py (register_pretty_printer): Change
+ printer-name:subprinter-name to printer-name;subprinter-name.
+ * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
+ Ditto.
+ (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
+
+2010-11-29 Tom Tromey <tromey@redhat.com>
+
+ * opencl-lang.c (lval_func_check_synthetic_pointer): New
+ function.
+ * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
+ New fields.
+ (value_bits_synthetic_pointer): Declare.
+ * value.c (value_bits_synthetic_pointer): New function.
+ * valprint.c (valprint_check_validity): Handle synthetic
+ pointers.
+ * valops.c (value_ind): Use new 'indirect' lval_funcs method.
+ * valarith.c (value_ptradd): Use set_value_component_location.
+ * p-valprint.c (pascal_object_print_value_fields): Handle
+ synthetic pointers.
+ * jv-valprint.c (java_print_value_fields): Handle synthetic
+ pointers.
+ * dwarf2read.c (dwarf_stack_op_name): Add
+ DW_OP_GNU_implicit_pointer.
+ (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
+ arguments. Handle location lists.
+ (fill_in_loclist_baton): New function.
+ (dwarf2_symbol_mark_computed): Use it.
+ * dwarf2loc.h (dwarf2_find_location_expression): Declare.
+ (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
+ arguments.
+ * dwarf2loc.c (dwarf2_find_location_expression): Rename from
+ find_location_expression. No longer static. Update all callers.
+ (dwarf_expr_frame_pc): New function.
+ (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
+ all callers.
+ (struct piece_closure) <per_cu>: New field.
+ (allocate_piece_closure): Add per_cu argument.
+ (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
+ (check_pieced_value_bits): Remove validity argument, add check_for
+ argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
+ (check_pieced_value_validity, check_pieced_value_invalid):
+ Update.
+ (check_pieced_synthetic_pointer): New function.
+ (get_frame_address_in_block_wrapper): New function.
+ (indirect_pieced_value): New function.
+ (pieced_value_funcs): Update.
+ (invalid_synthetic_pointer): New function.
+ (dwarf2_evaluate_loc_desc_full): Rename from
+ dwarf2_evaluate_loc_desc. Add byte_offset argument.
+ (dwarf2_evaluate_loc_desc): Rewrite.
+ (dwarf2_loc_desc_needs_frame): Set new field on context.
+ (get_ax_pc): New function.
+ (disassemble_dwarf_expression): Handle
+ DW_OP_GNU_implicit_pointer.
+ * dwarf2expr.h (enum dwarf_value_location)
+ <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
+ (struct dwarf_expr_context) <get_frame_pc>: New field.
+ (struct dwarf_expr_piece) <v.ptr>: New field.
+ * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
+ (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
+ * dwarf2-frame.c (no_get_frame_pc): New function.
+ (execute_stack_op): Set new field on context.
+ * cp-valprint.c (cp_print_value_fields): Handle synthetic
+ pointers.
+
+2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
+
+ PR python/12199
+
+ * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
+
2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix step_resume_breakpoint unsaved during an infcall.
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 5f47ec4..e65c12b 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -289,6 +289,14 @@ cp_print_value_fields (struct type *type, struct type *real_type,
{
fputs_filtered ("<optimized out or zero length>", stream);
}
+ else if (value_bits_synthetic_pointer (val,
+ TYPE_FIELD_BITPOS (type,
+ i),
+ TYPE_FIELD_BITSIZE (type,
+ i)))
+ {
+ fputs_filtered (_("<synthetic pointer>"), stream);
+ }
else if (!value_bits_valid (val, TYPE_FIELD_BITPOS (type, i),
TYPE_FIELD_BITSIZE (type, i)))
{
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index dd00d1a..6b4f2bb 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,14 @@
+2010-11-29 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (Pretty-Printer Introduction): Change
+ printer-name:subprinter-name to printer-name;subprinter-name.
+
+2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
+
+ PR python/12199
+
+ * gdb.texinfo (Breakpoints In Python): Document "delete" method.
+
2010-11-23 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Top): Check SYSTEM_READLINE.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 5550f51..422812c 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -8160,7 +8160,7 @@ pretty-printers with their names.
If a pretty-printer can handle multiple data types, then its
@dfn{subprinters} are the printers for the individual data types.
Each such subprinter has its own name.
-The format of the name is @var{printer-name}:@var{subprinter-name}.
+The format of the name is @var{printer-name};@var{subprinter-name}.
Pretty-printers are installed by @dfn{registering} them with @value{GDBN}.
Typically they are automatically loaded and registered when the corresponding
@@ -22911,6 +22911,12 @@ watchpoint scope, the watchpoint remains valid even if execution of the
inferior leaves the scope of that watchpoint.
@end defmethod
+@defmethod Breakpoint delete
+Permanently deletes the @value{GDBN} breakpoint. This also
+invalidates the Python @code{Breakpoint} object. Any further access
+to this object's attributes or methods will raise an error.
+@end defmethod
+
@defivar Breakpoint enabled
This attribute is @code{True} if the breakpoint is enabled, and
@code{False} otherwise. This attribute is writable.
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index d7d8b97..d09a377 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -325,6 +325,15 @@ no_get_frame_cfa (void *baton)
_("Support for DW_OP_call_frame_cfa is unimplemented"));
}
+/* Helper function for execute_stack_op. */
+
+static CORE_ADDR
+no_get_frame_pc (void *baton)
+{
+ internal_error (__FILE__, __LINE__,
+ _("Support for DW_OP_GNU_implicit_pointer is unimplemented"));
+}
+
static CORE_ADDR
no_get_tls_address (void *baton, CORE_ADDR offset)
{
@@ -391,6 +400,7 @@ execute_stack_op (const gdb_byte *exp, ULONGEST len, int addr_size,
ctx->read_mem = read_mem;
ctx->get_frame_base = no_get_frame_base;
ctx->get_frame_cfa = no_get_frame_cfa;
+ ctx->get_frame_pc = no_get_frame_pc;
ctx->get_tls_address = no_get_tls_address;
ctx->dwarf_call = no_dwarf_call;
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index b9ae108..29bfcf4 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -233,6 +233,11 @@ add_piece (struct dwarf_expr_context *ctx, ULONGEST size, ULONGEST offset)
p->v.mem.addr = dwarf_expr_fetch_address (ctx, 0);
p->v.mem.in_stack_memory = dwarf_expr_fetch_in_stack_memory (ctx, 0);
}
+ else if (p->location == DWARF_VALUE_IMPLICIT_POINTER)
+ {
+ p->v.ptr.die = ctx->len;
+ p->v.ptr.offset = (LONGEST) dwarf_expr_fetch (ctx, 0);
+ }
else
{
p->v.value = dwarf_expr_fetch (ctx, 0);
@@ -527,6 +532,26 @@ execute_stack_op (struct dwarf_expr_context *ctx,
dwarf_expr_require_composition (op_ptr, op_end, "DW_OP_stack_value");
goto no_push;
+ case DW_OP_GNU_implicit_pointer:
+ {
+ ULONGEST die;
+ LONGEST len;
+
+ /* The referred-to DIE. */
+ ctx->len = extract_unsigned_integer (op_ptr, ctx->addr_size,
+ byte_order);
+ op_ptr += ctx->addr_size;
+
+ /* The byte offset into the data. */
+ op_ptr = read_sleb128 (op_ptr, op_end, &len);
+ result = (ULONGEST) len;
+
+ ctx->location = DWARF_VALUE_IMPLICIT_POINTER;
+ dwarf_expr_require_composition (op_ptr, op_end,
+ "DW_OP_GNU_implicit_pointer");
+ }
+ break;
+
case DW_OP_breg0:
case DW_OP_breg1:
case DW_OP_breg2:
@@ -884,6 +909,12 @@ execute_stack_op (struct dwarf_expr_context *ctx,
no_push:;
}
+ /* To simplify our main caller, if the result is an implicit
+ pointer, then make a pieced value. This is ok because we can't
+ have implicit pointers in contexts where pieces are invalid. */
+ if (ctx->location == DWARF_VALUE_IMPLICIT_POINTER)
+ add_piece (ctx, 8 * ctx->addr_size, 0);
+
ctx->recursion_depth--;
gdb_assert (ctx->recursion_depth >= 0);
#undef sign_ext
diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h
index 61b8f00..68cc667 100644
--- a/gdb/dwarf2expr.h
+++ b/gdb/dwarf2expr.h
@@ -41,7 +41,10 @@ enum dwarf_value_location
DWARF_VALUE_LITERAL,
/* The piece was optimized out. */
- DWARF_VALUE_OPTIMIZED_OUT
+ DWARF_VALUE_OPTIMIZED_OUT,
+
+ /* The piece is an implicit pointer. */
+ DWARF_VALUE_IMPLICIT_POINTER
};
/* The dwarf expression stack. */
@@ -96,6 +99,9 @@ struct dwarf_expr_context
/* Return the CFA for the frame. */
CORE_ADDR (*get_frame_cfa) (void *baton);
+ /* Return the PC for the frame. */
+ CORE_ADDR (*get_frame_pc) (void *baton);
+
/* Return the thread-local storage address for
DW_OP_GNU_push_tls_address. */
CORE_ADDR (*get_tls_address) (void *baton, CORE_ADDR offset);
@@ -120,8 +126,9 @@ struct dwarf_expr_context
/* Location of the value. */
enum dwarf_value_location location;
- /* For VALUE_LITERAL, a the current literal value's length and
- data. */
+ /* For DWARF_VALUE_LITERAL, a the current literal value's length and
+ data. For DWARF_VALUE_IMPLICIT_POINTER, LEN is the offset of the
+ target DIE. */
ULONGEST len;
const gdb_byte *data;
@@ -185,6 +192,15 @@ struct dwarf_expr_piece
/* The length of the available data. */
ULONGEST length;
} literal;
+
+ /* Used for DWARF_VALUE_IMPLICIT_POINTER. */
+ struct
+ {
+ /* The referent DIE from DW_OP_GNU_implicit_pointer. */
+ ULONGEST die;
+ /* The byte offset into the resulting data. */
+ LONGEST offset;
+ } ptr;
} v;
/* The length of the piece, in bits. */
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index b2aecf2..f0e08c7 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -48,7 +48,13 @@ static void
dwarf_expr_frame_base_1 (struct symbol *framefunc, CORE_ADDR pc,
const gdb_byte **start, size_t *length);
-/* A helper function for dealing with location lists. Given a
+static struct value *
+dwarf2_evaluate_loc_desc_full (struct type *type, struct frame_info *frame,
+ const gdb_byte *data, unsigned short size,
+ struct dwarf2_per_cu_data *per_cu,
+ LONGEST byte_offset);
+
+/* A function for dealing with location lists. Given a
symbol baton (BATON) and a pc value (PC), find the appropriate
location expression, set *LOCEXPR_LENGTH, and return a pointer
to the beginning of the expression. Returns NULL on failure.
@@ -56,9 +62,9 @@ dwarf_expr_frame_base_1 (struct symbol *framefunc, CORE_ADDR pc,
For now, only return the first matching location expression; there
can be more than one in the list. */
-static const gdb_byte *
-find_location_expression (struct dwarf2_loclist_baton *baton,
- size_t *locexpr_length, CORE_ADDR pc)
+const gdb_byte *
+dwarf2_find_location_expression (struct dwarf2_loclist_baton *baton,
+ size_t *locexpr_length, CORE_ADDR pc)
{
CORE_ADDR low, high;
const gdb_byte *loc_ptr, *buf_end;
@@ -79,7 +85,7 @@ find_location_expression (struct dwarf2_loclist_baton *baton,
while (1)
{
if (buf_end - loc_ptr < 2 * addr_size)
- error (_("find_location_expression: Corrupted DWARF expression."));
+ error (_("dwarf2_find_location_expression: Corrupted DWARF expression."));
if (signed_addr_p)
low = extract_signed_integer (loc_ptr, addr_size, byte_order);
@@ -193,7 +199,7 @@ dwarf_expr_frame_base_1 (struct symbol *framefunc, CORE_ADDR pc,
struct dwarf2_loclist_baton *symbaton;
symbaton = SYMBOL_LOCATION_BATON (framefunc);
- *start = find_location_expression (symbaton, length, pc);
+ *start = dwarf2_find_location_expression (symbaton, length, pc);
}
else
{
@@ -225,6 +231,17 @@ dwarf_expr_frame_cfa (void *baton)
return dwarf2_frame_cfa (debaton->frame);
}
+/* Helper function for dwarf2_evaluate_loc_desc. Computes the PC for
+ the frame in BATON. */
+
+static CORE_ADDR
+dwarf_expr_frame_pc (void *baton)
+{
+ struct dwarf_expr_baton *debaton = (struct dwarf_expr_baton *) baton;
+
+ return get_frame_address_in_block (debaton->frame);
+}
+
/* Using the objfile specified in BATON, find the address for the
current thread's thread-local storage with offset OFFSET. */
static CORE_ADDR
@@ -241,11 +258,14 @@ dwarf_expr_tls_address (void *baton, CORE_ADDR offset)
static void
per_cu_dwarf_call (struct dwarf_expr_context *ctx, size_t die_offset,
- struct dwarf2_per_cu_data *per_cu)
+ struct dwarf2_per_cu_data *per_cu,
+ CORE_ADDR (*get_frame_pc) (void *baton),
+ void *baton)
{
struct dwarf2_locexpr_baton block;
- block = dwarf2_fetch_die_location_block (die_offset, per_cu);
+ block = dwarf2_fetch_die_location_block (die_offset, per_cu,
+ get_frame_pc, baton);
/* DW_OP_call_ref is currently not supported. */
gdb_assert (block.per_cu == per_cu);
@@ -260,7 +280,8 @@ dwarf_expr_dwarf_call (struct dwarf_expr_context *ctx, size_t die_offset)
{
struct dwarf_expr_baton *debaton = ctx->baton;
- return per_cu_dwarf_call (ctx, die_offset, debaton->per_cu);
+ return per_cu_dwarf_call (ctx, die_offset, debaton->per_cu,
+ ctx->get_frame_pc, ctx->baton);
}
struct piece_closure
@@ -268,6 +289,9 @@ struct piece_closure
/* Reference count. */
int refc;
+ /* The CU from which this closure's expression came. */
+ struct dwarf2_per_cu_data *per_cu;
+
/* The number of pieces used to describe this variable. */
int n_pieces;
@@ -282,12 +306,14 @@ struct piece_closure
PIECES. */
static struct piece_closure *
-allocate_piece_closure (int n_pieces, struct dwarf_expr_piece *pieces,
+allocate_piece_closure (struct dwarf2_per_cu_data *per_cu,
+ int n_pieces, struct dwarf_expr_piece *pieces,
int addr_size)
{
struct piece_closure *c = XZALLOC (struct piece_closure);
c->refc = 1;
+ c->per_cu = per_cu;
c->n_pieces = n_pieces;
c->addr_size = addr_size;
c->pieces = XCALLOC (n_pieces, struct dwarf_expr_piece);
@@ -622,6 +648,11 @@ read_pieced_value (struct value *v)
}
break;
+ /* These bits show up as zeros -- but do not cause the value
+ to be considered optimized-out. */
+ case DWARF_VALUE_IMPLICIT_POINTER:
+ break;
+
case DWARF_VALUE_OPTIMIZED_OUT:
set_value_optimized_out (v, 1);
break;
@@ -630,7 +661,8 @@ read_pieced_value (struct value *v)
internal_error (__FILE__, __LINE__, _("invalid location type"));
}
- if (p->location != DWARF_VALUE_OPTIMIZED_OUT)
+ if (p->location != DWARF_VALUE_OPTIMIZED_OUT
+ && p->location != DWARF_VALUE_IMPLICIT_POINTER)
copy_bitwise (contents, dest_offset_bits,
intermediate_buffer, source_offset_bits % 8,
this_size_bits, bits_big_endian);
@@ -785,13 +817,24 @@ write_pieced_value (struct value *to, struct value *from)
do_cleanups (cleanup);
}
+/* A helper function that checks bit validity in a pieced value.
+ CHECK_FOR indicates the kind of validity checking.
+ DWARF_VALUE_MEMORY means to check whether any bit is valid.
+ DWARF_VALUE_OPTIMIZED_OUT means to check whether any bit is
+ optimized out.
+ DWARF_VALUE_IMPLICIT_POINTER means to check whether the bits are an
+ implicit pointer. */
+
static int
check_pieced_value_bits (const struct value *value, int bit_offset,
- int bit_length, int validity)
+ int bit_length,
+ enum dwarf_value_location check_for)
{
struct piece_closure *c
= (struct piece_closure *) value_computed_closure (value);
int i;
+ int validity = (check_for == DWARF_VALUE_MEMORY
+ || check_for == DWARF_VALUE_IMPLICIT_POINTER);
bit_offset += 8 * value_offset (value);
if (value_bitsize (value))
@@ -816,7 +859,13 @@ check_pieced_value_bits (const struct value *value, int bit_offset,
else
bit_length -= this_size_bits;
- if (p->location == DWARF_VALUE_OPTIMIZED_OUT)
+ if (check_for == DWARF_VALUE_IMPLICIT_POINTER)
+ {
+ if (p->location != DWARF_VALUE_IMPLICIT_POINTER)
+ return 0;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-11-28 18:02 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-11-28 18:02 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via f436a264c48a1c9af4df3ce44f5a4a2b3baf9491 (commit)
via 3d2e431c087213db1819fd1f79ec6f1615bb11b2 (commit)
via 7c77df928722862f8a421fa01d7d130536fcda28 (commit)
from c1ba9992999df7398c4ecd1b5c5fd2744a94b698 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f436a264c48a1c9af4df3ce44f5a4a2b3baf9491
Merge: c1ba999 3d2e431
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Nov 28 19:01:46 2010 +0100
Merge remote branch 'gdb/master'
commit 3d2e431c087213db1819fd1f79ec6f1615bb11b2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Nov 28 04:33:45 2010 +0000
gdb/
Fix step_resume_breakpoint unsaved during an infcall.
* gdbthread.h (struct thread_control_state): Move here field
step_resume_breakpoint ...
(struct thread_info): ... from here.
* infrun.c (save_infcall_control_state): Reset
control.step_resume_breakpoint to NULL.
(restore_infcall_control_state, discard_infcall_control_state): Delete
control.step_resume_breakpoint.
* arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
the moved field.
gdb/testsuite/
Fix step_resume_breakpoint unsaved during an infcall.
* gdb.base/step-resume-infcall.exp: New file.
* gdb.base/step-resume-infcall.c: New file.
commit 7c77df928722862f8a421fa01d7d130536fcda28
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Nov 28 04:31:21 2010 +0000
gdb/
Rename and move inferior_thread_state and inferior_status.
* gdbthread.h (struct thread_control_state): New struct, move fields
step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
trap_expected, proceed_to_finish, in_infcall, step_over_calls,
stop_step and stop_bpstat here from struct thread_info.
(struct thread_suspend_state): New struct, move field stop_signal here
from struct thread_info.
(struct thread_info): Move the fields above from this struct.
* inferior.h: Move the inferior_thread_state and inferior_status
declarations comment to their definitions at infrun.c.
(struct inferior_control_state): New struct, move field stop_soon from
struct inferior here.
(struct inferior_suspend_state): New empty struct.
(struct inferior): New fields control and suspend. Move out field
stop_soon.
* infrun.c (struct inferior_thread_state): Rename to ...
(infcall_suspend_state): ... here. Replace field stop_signal by
fields thread_suspend and inferior_suspend.
(save_inferior_thread_state): Rename to ...
(save_infcall_suspend_state): ... here. New variable inf. Update the
code for new fields.
(restore_inferior_thread_state): Rename to ...
(restore_infcall_suspend_state): ... here. New variable inf. Update
the code for new fields.
(do_restore_inferior_thread_state_cleanup): Rename to ...
(do_restore_infcall_suspend_state_cleanup): ... here.
(make_cleanup_restore_inferior_thread_state): Rename to ...
(make_cleanup_restore_infcall_suspend_state): ... here.
(discard_inferior_thread_state): Rename to ...
(discard_infcall_suspend_state): ... here.
(get_inferior_thread_state_regcache): Rename to ...
(get_infcall_suspend_state_regcache): ... here.
(struct inferior_status): Rename to ...
(struct infcall_control_state): ... here. Replace fields
step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
trap_expected, proceed_to_finish, in_infcall, step_over_calls,
stop_step, stop_bpstat and stop_soon by fields thread_control and
inferior_control.
(save_inferior_status): Rename to ...
(save_infcall_control_state): ... here. Update the code for new
fields.
(restore_inferior_status): Rename to ...
(restore_infcall_control_state): ... here. Update the code for new
fields.
(do_restore_inferior_status_cleanup): Rename to ...
(do_restore_infcall_control_state_cleanup): ... here.
(make_cleanup_restore_inferior_status): Rename to ...
(make_cleanup_restore_infcall_control_state): ... here.
(discard_inferior_status): Rename to ...
(discard_infcall_control_state): ... here.
* alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
references to the moved fields and renamed functions.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 72 +++
gdb/alpha-tdep.c | 2 +-
gdb/arm-linux-tdep.c | 5 +-
gdb/breakpoint.c | 6 +-
gdb/dummy-frame.c | 13 +-
gdb/dummy-frame.h | 4 +-
gdb/exceptions.c | 5 +-
gdb/fbsd-nat.c | 4 +-
gdb/gdbthread.h | 144 ++++---
gdb/infcall.c | 41 +-
gdb/infcmd.c | 74 ++--
gdb/inferior.c | 2 +-
gdb/inferior.h | 69 ++--
gdb/infrun.c | 559 ++++++++++++------------
gdb/linux-nat.c | 12 +-
gdb/mi/mi-interp.c | 4 +-
gdb/mips-tdep.c | 2 +-
gdb/procfs.c | 4 +-
gdb/solib-irix.c | 10 +-
gdb/solib-osf.c | 10 +-
gdb/solib-spu.c | 4 +-
gdb/solib-sunos.c | 10 +-
gdb/solib-svr4.c | 10 +-
gdb/testsuite/ChangeLog | 6 +
gdb/testsuite/gdb.base/step-resume-infcall.c | 47 ++
gdb/testsuite/gdb.base/step-resume-infcall.exp | 52 +++
gdb/thread.c | 14 +-
gdb/windows-nat.c | 8 +-
28 files changed, 705 insertions(+), 488 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/step-resume-infcall.c
create mode 100644 gdb/testsuite/gdb.base/step-resume-infcall.exp
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 39abfcf..a7aa825 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,75 @@
+2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix step_resume_breakpoint unsaved during an infcall.
+ * gdbthread.h (struct thread_control_state): Move here field
+ step_resume_breakpoint ...
+ (struct thread_info): ... from here.
+ * infrun.c (save_infcall_control_state): Reset
+ control.step_resume_breakpoint to NULL.
+ (restore_infcall_control_state, discard_infcall_control_state): Delete
+ control.step_resume_breakpoint.
+ * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
+ the moved field.
+
+2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Rename and move inferior_thread_state and inferior_status.
+ * gdbthread.h (struct thread_control_state): New struct, move fields
+ step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
+ trap_expected, proceed_to_finish, in_infcall, step_over_calls,
+ stop_step and stop_bpstat here from struct thread_info.
+ (struct thread_suspend_state): New struct, move field stop_signal here
+ from struct thread_info.
+ (struct thread_info): Move the fields above from this struct.
+ * inferior.h: Move the inferior_thread_state and inferior_status
+ declarations comment to their definitions at infrun.c.
+ (struct inferior_control_state): New struct, move field stop_soon from
+ struct inferior here.
+ (struct inferior_suspend_state): New empty struct.
+ (struct inferior): New fields control and suspend. Move out field
+ stop_soon.
+ * infrun.c (struct inferior_thread_state): Rename to ...
+ (infcall_suspend_state): ... here. Replace field stop_signal by
+ fields thread_suspend and inferior_suspend.
+ (save_inferior_thread_state): Rename to ...
+ (save_infcall_suspend_state): ... here. New variable inf. Update the
+ code for new fields.
+ (restore_inferior_thread_state): Rename to ...
+ (restore_infcall_suspend_state): ... here. New variable inf. Update
+ the code for new fields.
+ (do_restore_inferior_thread_state_cleanup): Rename to ...
+ (do_restore_infcall_suspend_state_cleanup): ... here.
+ (make_cleanup_restore_inferior_thread_state): Rename to ...
+ (make_cleanup_restore_infcall_suspend_state): ... here.
+ (discard_inferior_thread_state): Rename to ...
+ (discard_infcall_suspend_state): ... here.
+ (get_inferior_thread_state_regcache): Rename to ...
+ (get_infcall_suspend_state_regcache): ... here.
+ (struct inferior_status): Rename to ...
+ (struct infcall_control_state): ... here. Replace fields
+ step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
+ trap_expected, proceed_to_finish, in_infcall, step_over_calls,
+ stop_step, stop_bpstat and stop_soon by fields thread_control and
+ inferior_control.
+ (save_inferior_status): Rename to ...
+ (save_infcall_control_state): ... here. Update the code for new
+ fields.
+ (restore_inferior_status): Rename to ...
+ (restore_infcall_control_state): ... here. Update the code for new
+ fields.
+ (do_restore_inferior_status_cleanup): Rename to ...
+ (do_restore_infcall_control_state_cleanup): ... here.
+ (make_cleanup_restore_inferior_status): Rename to ...
+ (make_cleanup_restore_infcall_control_state): ... here.
+ (discard_inferior_status): Rename to ...
+ (discard_infcall_control_state): ... here.
+ * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
+ exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
+ inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
+ mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
+ solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
+ references to the moved fields and renamed functions.
+
2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
* infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index b470470..2ce82b3 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -992,7 +992,7 @@ alpha_heuristic_proc_start (struct gdbarch *gdbarch, CORE_ADDR pc)
/* It's not clear to me why we reach this point when stopping quietly,
but with this test, at least we don't print out warnings for every
child forked (eg, on decstation). 22apr93 rich@cygnus.com. */
- if (inf->stop_soon == NO_STOP_QUIETLY)
+ if (inf->control.stop_soon == NO_STOP_QUIETLY)
{
static int blurb_printed = 0;
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index aa7d0af..4758ded 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -791,7 +791,8 @@ arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to,
fprintf_unfiltered (gdb_stdlog, "displaced: unwind pc = %lx. "
"Setting momentary breakpoint.\n", (unsigned long) return_to);
- gdb_assert (inferior_thread ()->step_resume_breakpoint == NULL);
+ gdb_assert (inferior_thread ()->control.step_resume_breakpoint
+ == NULL);
sal = find_pc_line (return_to, 0);
sal.pc = return_to;
@@ -802,7 +803,7 @@ arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to,
if (frame)
{
- inferior_thread ()->step_resume_breakpoint
+ inferior_thread ()->control.step_resume_breakpoint
= set_momentary_breakpoint (gdbarch, sal, get_frame_id (frame),
bp_step_resume);
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 2f4e10e..1d66eef 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3008,7 +3008,7 @@ breakpoint_about_to_proceed (void)
interrupt the command list. When the call finishes
successfully, the inferior will be standing at the same
breakpoint as if nothing happened. */
- if (tp->in_infcall)
+ if (tp->control.in_infcall)
return;
}
@@ -3127,7 +3127,7 @@ bpstat_do_actions (void)
and only return when it is stopped at the next breakpoint, we
keep doing breakpoint actions until it returns false to
indicate the inferior was not resumed. */
- if (!bpstat_do_actions_1 (&inferior_thread ()->stop_bpstat))
+ if (!bpstat_do_actions_1 (&inferior_thread ()->control.stop_bpstat))
break;
}
@@ -9680,7 +9680,7 @@ bpstat_remove_breakpoint_callback (struct thread_info *th, void *data)
{
struct breakpoint *bpt = data;
- bpstat_remove_bp_location (th->stop_bpstat, bpt);
+ bpstat_remove_bp_location (th->control.stop_bpstat, bpt);
return 0;
}
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c
index 66f4c8c..b3a32d2 100644
--- a/gdb/dummy-frame.c
+++ b/gdb/dummy-frame.c
@@ -43,7 +43,7 @@ struct dummy_frame
gdbarch_dummy_id. */
struct frame_id id;
/* The caller's state prior to the call. */
- struct inferior_thread_state *caller_state;
+ struct infcall_suspend_state *caller_state;
};
static struct dummy_frame *dummy_frame_stack = NULL;
@@ -86,7 +86,7 @@ deprecated_pc_in_call_dummy (struct gdbarch *gdbarch, CORE_ADDR pc)
dummy-frame stack. */
void
-dummy_frame_push (struct inferior_thread_state *caller_state,
+dummy_frame_push (struct infcall_suspend_state *caller_state,
const struct frame_id *dummy_id)
{
struct dummy_frame *dummy_frame;
@@ -106,7 +106,7 @@ remove_dummy_frame (struct dummy_frame **dummy_ptr)
struct dummy_frame *dummy = *dummy_ptr;
*dummy_ptr = dummy->next;
- discard_inferior_thread_state (dummy->caller_state);
+ discard_infcall_suspend_state (dummy->caller_state);
xfree (dummy);
}
@@ -118,9 +118,9 @@ pop_dummy_frame (struct dummy_frame **dummy_ptr)
{
struct dummy_frame *dummy;
- restore_inferior_thread_state ((*dummy_ptr)->caller_state);
+ restore_infcall_suspend_state ((*dummy_ptr)->caller_state);
- /* restore_inferior_status frees inf_state,
+ /* restore_infcall_control_state frees inf_state,
all that remains is to pop *dummy_ptr */
dummy = *dummy_ptr;
*dummy_ptr = dummy->next;
@@ -220,7 +220,8 @@ dummy_frame_sniffer (const struct frame_unwind *self,
struct dummy_frame_cache *cache;
cache = FRAME_OBSTACK_ZALLOC (struct dummy_frame_cache);
- cache->prev_regcache = get_inferior_thread_state_regcache (dummyframe->caller_state);
+ cache->prev_regcache = get_infcall_suspend_state_regcache
+ (dummyframe->caller_state);
cache->this_id = this_id;
(*this_prologue_cache) = cache;
return 1;
diff --git a/gdb/dummy-frame.h b/gdb/dummy-frame.h
index c97301c..9e633a0 100644
--- a/gdb/dummy-frame.h
+++ b/gdb/dummy-frame.h
@@ -23,7 +23,7 @@
#include "frame.h"
-struct inferior_thread_state;
+struct infcall_suspend_state;
struct frame_unwind;
/* Push the information needed to identify, and unwind from, a dummy
@@ -39,7 +39,7 @@ struct frame_unwind;
be expanded so that it knowns the lower/upper extent of the dummy
frame's code. */
-extern void dummy_frame_push (struct inferior_thread_state *caller_state,
+extern void dummy_frame_push (struct infcall_suspend_state *caller_state,
const struct frame_id *dummy_id);
/* Pop the dummy frame DUMMY_ID, restoring program state to that before the
diff --git a/gdb/exceptions.c b/gdb/exceptions.c
index ec9b9be..bf042ad 100644
--- a/gdb/exceptions.c
+++ b/gdb/exceptions.c
@@ -226,7 +226,10 @@ throw_exception (struct gdb_exception exception)
/* Perhaps it would be cleaner to do this via the cleanup chain (not sure
I can think of a reason why that is vital, though). */
if (tp != NULL)
- bpstat_clear_actions (tp->stop_bpstat); /* Clear queued breakpoint commands */
+ {
+ /* Clear queued breakpoint commands */
+ bpstat_clear_actions (tp->control.stop_bpstat);
+ }
disable_current_display ();
do_cleanups (ALL_CLEANUPS);
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 9e2f44d..a07c531 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -143,7 +143,7 @@ fbsd_find_memory_regions (find_memory_region_ftype func, void *obfd)
static int
find_signalled_thread (struct thread_info *info, void *data)
{
- if (info->stop_signal != TARGET_SIGNAL_0
+ if (info->suspend.stop_signal != TARGET_SIGNAL_0
&& ptid_get_pid (info->ptid) == ptid_get_pid (inferior_ptid))
return 1;
@@ -157,7 +157,7 @@ find_stop_signal (void)
iterate_over_threads (find_signalled_thread, NULL);
if (info)
- return info->stop_signal;
+ return info->suspend.stop_signal;
else
return TARGET_SIGNAL_0;
}
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index cd24eaf..c6a1d5c 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -29,38 +29,12 @@ struct symtab;
#include "ui-out.h"
#include "inferior.h"
-struct thread_info
-{
- struct thread_info *next;
- ptid_t ptid; /* "Actual process id";
- In fact, this may be overloaded with
- kernel thread id, etc. */
- int num; /* Convenient handle (GDB thread id) */
+/* Inferior thread specific part of `struct infcall_control_state'.
- /* Non-zero means the thread is executing. Note: this is different
- from saying that there is an active target and we are stopped at
- a breakpoint, for instance. This is a real indicator whether the
- thread is off and running. */
- /* This field is internal to thread.c. Never access it directly,
- use is_executing instead. */
- int executing_;
-
- /* Frontend view of the thread state. Note that the RUNNING/STOPPED
- states are different from EXECUTING. When the thread is stopped
- internally while handling an internal event, like a software
- single-step breakpoint, EXECUTING will be false, but running will
- still be true. As a possible future extension, this could turn
- into enum { stopped, exited, stepping, finishing, until(ling),
- running ... } */
- /* This field is internal to thread.c. Never access it directly,
- use is_running instead. */
- int state_;
-
- /* If this is > 0, then it means there's code out there that relies
- on this thread being listed. Don't delete it from the lists even
- if we detect it exiting. */
- int refcount;
+ Inferior process counterpart is `struct inferior_control_state'. */
+struct thread_control_state
+{
/* User/external stepping state. */
/* Step-resume or longjmp-resume breakpoint. */
@@ -88,17 +62,6 @@ struct thread_info
any inlined frames). */
struct frame_id step_stack_frame_id;
- int current_line;
- struct symtab *current_symtab;
-
- /* Internal stepping state. */
-
- /* Record the pc of the thread the last time it stopped. This is
- maintained by proceed and keep_going, and used in
- adjust_pc_after_break to distinguish a hardware single-step
- SIGTRAP from a breakpoint SIGTRAP. */
- CORE_ADDR prev_pc;
-
/* Nonzero if we are presently stepping over a breakpoint.
If we hit a breakpoint or watchpoint, and then continue, we need
@@ -123,6 +86,85 @@ struct thread_info
by keep_going. */
int trap_expected;
+ /* Nonzero if the thread is being proceeded for a "finish" command
+ or a similar situation when stop_registers should be saved. */
+ int proceed_to_finish;
+
+ /* Nonzero if the thread is being proceeded for an inferior function
+ call. */
+ int in_infcall;
+
+ enum step_over_calls_kind step_over_calls;
+
+ /* Nonzero if stopped due to a step command. */
+ int stop_step;
+
+ /* Chain containing status of breakpoint(s) the thread stopped
+ at. */
+ bpstat stop_bpstat;
+};
+
+/* Inferior thread specific part of `struct infcall_suspend_state'.
+
+ Inferior process counterpart is `struct inferior_suspend_state'. */
+
+struct thread_suspend_state
+{
+ /* Last signal that the inferior received (why it stopped). */
+ enum target_signal stop_signal;
+};
+
+struct thread_info
+{
+ struct thread_info *next;
+ ptid_t ptid; /* "Actual process id";
+ In fact, this may be overloaded with
+ kernel thread id, etc. */
+ int num; /* Convenient handle (GDB thread id) */
+
+ /* Non-zero means the thread is executing. Note: this is different
+ from saying that there is an active target and we are stopped at
+ a breakpoint, for instance. This is a real indicator whether the
+ thread is off and running. */
+ /* This field is internal to thread.c. Never access it directly,
+ use is_executing instead. */
+ int executing_;
+
+ /* Frontend view of the thread state. Note that the RUNNING/STOPPED
+ states are different from EXECUTING. When the thread is stopped
+ internally while handling an internal event, like a software
+ single-step breakpoint, EXECUTING will be false, but running will
+ still be true. As a possible future extension, this could turn
+ into enum { stopped, exited, stepping, finishing, until(ling),
+ running ... } */
+ /* This field is internal to thread.c. Never access it directly,
+ use is_running instead. */
+ int state_;
+
+ /* If this is > 0, then it means there's code out there that relies
+ on this thread being listed. Don't delete it from the lists even
+ if we detect it exiting. */
+ int refcount;
+
+ /* State of GDB control of inferior thread execution.
+ See `struct thread_control_state'. */
+ struct thread_control_state control;
+
+ /* State of inferior thread to restore after GDB is done with an inferior
+ call. See `struct thread_suspend_state'. */
+ struct thread_suspend_state suspend;
+
+ int current_line;
+ struct symtab *current_symtab;
+
+ /* Internal stepping state. */
+
+ /* Record the pc of the thread the last time it stopped. This is
+ maintained by proceed and keep_going, and used in
+ adjust_pc_after_break to distinguish a hardware single-step
+ SIGTRAP from a breakpoint SIGTRAP. */
+ CORE_ADDR prev_pc;
+
/* Should we step over breakpoint next time keep_going is called? */
int stepping_over_breakpoint;
@@ -153,19 +195,6 @@ struct thread_info
command. */
struct continuation *intermediate_continuations;
- /* Nonzero if the thread is being proceeded for a "finish" command
- or a similar situation when stop_registers should be saved. */
- int proceed_to_finish;
-
- /* Nonzero if the thread is being proceeded for an inferior function
- call. */
- int in_infcall;
-
- enum step_over_calls_kind step_over_calls;
-
- /* Nonzero if stopped due to a step command. */
- int stop_step;
-
/* If stepping, nonzero means step count is > 1 so don't print frame
next time inferior stops if it stops due to stepping. */
int step_multi;
@@ -175,13 +204,6 @@ struct thread_info
resume of the thread, and not immediately. */
struct target_waitstatus pending_follow;
- /* Last signal that the inferior received (why it stopped). */
- enum target_signal stop_signal;
-
- /* Chain containing status of breakpoint(s) the thread stopped
- at. */
- bpstat stop_bpstat;
-
/* True if this thread has been explicitly requested to stop. */
int stop_requested;
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 68343b8..6eb1bbf 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -360,16 +360,18 @@ run_inferior_call (struct thread_info *call_thread, CORE_ADDR real_pc)
{
volatile struct gdb_exception e;
int saved_async = 0;
- int saved_in_infcall = call_thread->in_infcall;
+ int saved_in_infcall = call_thread->control.in_infcall;
ptid_t call_thread_ptid = call_thread->ptid;
char *saved_target_shortname = xstrdup (target_shortname);
- call_thread->in_infcall = 1;
+ call_thread->control.in_infcall = 1;
clear_proceed_status ();
disable_watchpoints_before_interactive_call_start ();
- call_thread->proceed_to_finish = 1; /* We want stop_registers, please... */
+
+ /* We want stop_registers, please... */
+ call_thread->control.proceed_to_finish = 1;
if (target_can_async_p ())
saved_async = target_async_mask (0);
@@ -397,11 +399,11 @@ run_inferior_call (struct thread_info *call_thread, CORE_ADDR real_pc)
if (e.reason < 0)
{
if (call_thread != NULL)
- breakpoint_auto_delete (call_thread->stop_bpstat);
+ breakpoint_auto_delete (call_thread->control.stop_bpstat);
}
if (call_thread != NULL)
- call_thread->in_infcall = saved_in_infcall;
+ call_thread->control.in_infcall = saved_in_infcall;
xfree (saved_target_shortname);
@@ -440,9 +442,9 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
struct type *values_type, *target_values_type;
unsigned char struct_return = 0, lang_struct_return = 0;
CORE_ADDR struct_addr = 0;
- struct inferior_status *inf_status;
+ struct infcall_control_state *inf_status;
struct cleanup *inf_status_cleanup;
- struct inferior_thread_state *caller_state;
+ struct infcall_suspend_state *caller_state;
CORE_ADDR funaddr;
CORE_ADDR real_pc;
struct type *ftype = check_typedef (value_type (function));
@@ -473,16 +475,17 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
/* A cleanup for the inferior status.
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-11-28 5:41 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-11-28 5:41 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via c1ba9992999df7398c4ecd1b5c5fd2744a94b698 (commit)
via 6b6d9dcf6b372f1621d66cfac6db16446db16cc4 (commit)
via 093e1a0ee6293f32388b272727b72252d3b61434 (commit)
via a620bea1c18806dbb70d4edfc53bf2780bdd3df4 (commit)
via 35eab7192e80a85ccaabc3f0e69e818b211668dd (commit)
via 991bb59f8b9ac560375ab4c88008f93a623658ef (commit)
via 700fddc9194d10d401750892a591a40e931c0aca (commit)
via 835fbceccdda29447944bbab66776d21c6d2d0cf (commit)
via 2aba9ea677658117faded40e8f1c6fb330917ab9 (commit)
via b8e1362dfeb4d6b60a43c94fd4aa8907e213e25b (commit)
via accc40197410a941c8204c6df41567c16f0a33dc (commit)
via 177ab22bbe9f6d7bb3ae7a9cba41e72ea9ea6c93 (commit)
via 71fc13a56b65aea77ee1317df8ac83a5b86f55b8 (commit)
via f09e6dcfbbda0f7246fbf3a810e24887d1e568f0 (commit)
via 6f8883e65614cae34cc7a9eb29fb9d3528c9cc85 (commit)
via a24ff2e26f4da78f60bd5aa5b7f87df2fb11ca82 (commit)
via c86ddad3a712a517ccdfbdb6c90cc03809e8b75b (commit)
via 7adb23486304cc019107f471d8244af795b051bb (commit)
via 89d9534b624f4f720b6220d2f9ab30edae799a82 (commit)
via f7695626f4b7194ce9641c157f102c202b69925e (commit)
via 39ce3341012e276568acbd9fdf3edd24adbb0908 (commit)
via a313658be3a7cd02ace023336e5b3ea8a743aa7d (commit)
via f9a30507f9f3627079c1780d91a3e1da89f6a9a7 (commit)
via e2c83c617157ec06dc3e76751b39e013584b2dd4 (commit)
via 5cf7563464e78052c620347f938ca42545c4cf9d (commit)
via 16072ec1dd19fe5e5c617db032ba8753e0b2b386 (commit)
via e055e88cae3798e2d6b0f8e701ca2e7146d92cc9 (commit)
via 5f23ff1059b86f13a502e8bf7a4c3aab124dd3b0 (commit)
via 593e09637f44612fe086029d32d8453ba75040b5 (commit)
via b070b0107a8b4b5cb7fbacda9b7e3d089deec1e7 (commit)
via e4af494a33d4e5f578c6c0750638a350c79df2a8 (commit)
via 8b67714783a8b60c04a24d838cf6c50ddd60cf23 (commit)
via c281b56cc2d7ea0605b7923173a78f035d38ffd4 (commit)
via 3fc7d264201681748647d014da65d380d05c2dba (commit)
via 39727e36ab29517fed8cb16ed0e2aaa79cb6f6f4 (commit)
via 3e9577a3f26567026aa5586abf2bc27f0823f244 (commit)
via 04e6c5faf49a7064d59f1a0f068aee524dd022bc (commit)
via 11ac5e7119e50062f24458ad2797b25dbc4a93f6 (commit)
via 972d3868050ac286a42db710a269a4629f554e6f (commit)
via 64fc52e7842e462ad8a0366aa8302c2403f3d56b (commit)
via cf9266e4aba69774199be4c1772f42ed3f71af28 (commit)
via 583382853d3785b95f0f884613a9983d9d5976f0 (commit)
via 040e6378851e55009a384a29e3e6fd30d0b21144 (commit)
via 8644bcf4e1ea08fa10b8921abbb3e8967d618029 (commit)
via e885e909e9fdf7e467f287f26d5937346e7be972 (commit)
via b678aa61bbede33bffb21d1488c4865ea331b102 (commit)
via 855894ae790aac1e57dfc1fe8518855c2477fb9a (commit)
via 3d81451aabc6ef8a122269afdc1440d4661c1732 (commit)
via d8d0d782ba2ecf92f27a8998d1e420598d42b22f (commit)
via 23f09e1ff96133c8b9816cf74bca30c443b48275 (commit)
via de2b84a059ad39ec7e20b946c21b57e4c01a88c7 (commit)
via 615974baac8d724eabe2cfedfc3dd62699adee82 (commit)
via 6c8a0aee8c8a7ca0d12f45dbd63028bce335f4b1 (commit)
via 197ed1878baf51c6fe8d95491ad427676846fc79 (commit)
via 8c45ad8c62da1ef803ce581fb9042235f7137c93 (commit)
via bb90878e4562bd391465e507479b4fb213bd6af8 (commit)
via 4603a5b5dc15bbffcc7812b67e0ad6351b700625 (commit)
via 415f09bd7cb0725648e5466e37dd2d69ecdc0d25 (commit)
via 2f5f9b1fcdf40195d6a61f1a65821ad4b1edbbc6 (commit)
via 57a6cbb76ff935e121f9aa53a8990efaec1e7425 (commit)
via 7a11e9bd3b139eb44ee7d42768e787ef8ca78fd3 (commit)
via d1fc604b415ca3131317a756b367ea897e0429ba (commit)
via 13c4c9e3f9bc987f086d1915f390463cb0cb2694 (commit)
via 91744bbf499d9ba21d1b37c4b1f579466025c120 (commit)
via 9f2350f5bdd0bb74d9cf5bbca93bb8c629de0563 (commit)
via 346b48e584fe2f29eb42a911b7a1f75b78de76b5 (commit)
via 3bdfa178f9adcd5c17982beabd2ce29bb95ac406 (commit)
via 9fddf5efe24f5845290b57e9f5d7c6fc18cccfc8 (commit)
via b8a1b776cab8fae3c84fb81b9612be3551d40528 (commit)
via 18d38d40f28cb3f1c8b8c8c06c34686ebcbbfb03 (commit)
via 9ab5dfcc43387a69d321dc5bb7164458d70343cf (commit)
via 9616aab5db4d77f873cf23e2cbc3202aa70b13a9 (commit)
via c4428a8156c05d6d4fba4b320b1d189e3ee2f51b (commit)
via 062bf169ea520e1df44d8be481d20980a6434688 (commit)
via f1be2183671500f038d5b2f306cb679f8ed40edc (commit)
via 9111ab394243391043003312d4ffabcb32d6d9b0 (commit)
via 91ae9167fecccf168d504c0d392a12fd20b55e24 (commit)
via 4ea975cacd5fc8294f794ffe0efd3a7dcd096a5f (commit)
via 10577ce572a9daca27e01b18989adf11fa311d16 (commit)
via b34773ff57ea50fb048666b5c5911ceff63ffe2e (commit)
via 4a90afa09837546b165e96237eb1aec193d3af1f (commit)
via 027ba3cf6c89accc0b4cf2a3e879d2deb2d86d57 (commit)
via a9844f83c0d32f1c7cdb4b1b391ce1931f5df31c (commit)
via 7850396a466baacc66a0bea032a62e3292d1f45c (commit)
via b2055d0efdde2d42d0e225b8b1cf3a83bde37909 (commit)
via 92d8796f2aa0ca266ee6f1712ff36114812a68bb (commit)
via 3058f5862f1d4cd76f4274e94f0f6167753458ec (commit)
via 03fe07839e8255e7d8b167503de6098487fd8209 (commit)
via d19aa4cdcb58fcd413e52b13f2ef8d2a10f2ca07 (commit)
via 013fb3f4708bfd4abaa7d23ed7d4686e8d2b0951 (commit)
via 8cc0c2627794bae027ad150b788e54a589418414 (commit)
via a76ad177c4b4612438364ac4f469c2ef956b3ed8 (commit)
via 2ed409cb3f9525381b01e66193036f0cebe9b241 (commit)
via 6db9963f5b0883efe02478fa1bfec4c1fd2fcadf (commit)
via 187ef33d1d9eeb5f5f1ba2c0477251d5ec4c2767 (commit)
via 8e903e74ea8b8a39cb8f99dd784a95619bdb0ae6 (commit)
via fa5655a7be2021f47987cd41832e24f509cb22f2 (commit)
from fe12b092e5f0085281ce09e94c541ea2eeb8e4e4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit c1ba9992999df7398c4ecd1b5c5fd2744a94b698
Merge: fe12b09 6b6d9dc
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Nov 28 06:39:55 2010 +0100
Merge remote branch 'gdb/master'
commit 6b6d9dcf6b372f1621d66cfac6db16446db16cc4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 28 00:00:02 2010 +0000
*** empty log message ***
commit 093e1a0ee6293f32388b272727b72252d3b61434
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Nov 27 23:00:05 2010 +0000
daily update
commit a620bea1c18806dbb70d4edfc53bf2780bdd3df4
Author: Eric Botcazou <ebotcazou@libertysurf.fr>
Date: Sat Nov 27 15:55:17 2010 +0000
* bootstrap-lto.mk (BOOT_ADAFLAGS): Delete.
commit 35eab7192e80a85ccaabc3f0e69e818b211668dd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 27 00:00:02 2010 +0000
*** empty log message ***
commit 991bb59f8b9ac560375ab4c88008f93a623658ef
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Nov 26 23:00:05 2010 +0000
daily update
commit 700fddc9194d10d401750892a591a40e931c0aca
Author: Alexandre Oliva <aoliva@redhat.com>
Date: Fri Nov 26 04:56:38 2010 +0000
PR other/46020
* configure.ac (CXX_FOR_TARGET): Add -funconfigured-libstdc++-v3.
* Makefile.def (CXX_FOR_TARGET): Removed from flags_to_pass.
* Makefile.tpl (CXX_FOR_TARGET_FLAG_TO_PASS): New.
(BASE_FLAGS_TO_PASS): Use it.
* configure: Rebuilt.
* Makefile.in: Rebuilt.
commit 835fbceccdda29447944bbab66776d21c6d2d0cf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Nov 26 03:39:09 2010 +0000
gdb/
* infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
the comment.
(save_inferior_thread_state): Reset tp->stop_signal.
commit 2aba9ea677658117faded40e8f1c6fb330917ab9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Nov 26 00:33:56 2010 +0000
Fix ChangeLog entry.
commit b8e1362dfeb4d6b60a43c94fd4aa8907e213e25b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Nov 26 00:30:31 2010 +0000
gdb/
* infcall.c (caller_state_cleanup): Remove variable caller_state_cleanup.
commit accc40197410a941c8204c6df41567c16f0a33dc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 26 00:00:03 2010 +0000
*** empty log message ***
commit 177ab22bbe9f6d7bb3ae7a9cba41e72ea9ea6c93
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Thu Nov 25 23:17:30 2010 +0000
2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
PR breakpoints/12217
* breakpoint.c (is_marker_spec): Check for NULL.
commit 71fc13a56b65aea77ee1317df8ac83a5b86f55b8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Nov 25 23:00:05 2010 +0000
daily update
commit f09e6dcfbbda0f7246fbf3a810e24887d1e568f0
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Nov 25 13:10:04 2010 +0000
* breakpoint.h: No longer include python.h or python-internal.h.
(struct breakpoint_object): Forward declare.
* defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
* varobj.c (PyObject) [!HAVE_PYTHON]: Define.
* python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
PyObject pointer.
(gdbpy_breakpoint_created): Remove casts around py_bp_object
accesses.
commit 6f8883e65614cae34cc7a9eb29fb9d3528c9cc85
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Nov 25 13:10:04 2010 +0000
* breakpoint.h: No longer include python.h or python-internal.h.
(struct breakpoint_object): Forward declare.
* defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
* varobj.c (PyObject) [!HAVE_PYTHON]: Define.
* python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
PyObject pointer.
(gdbpy_breakpoint_created): Remove casts around py_bp_object
accesses.
commit a24ff2e26f4da78f60bd5aa5b7f87df2fb11ca82
Author: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Date: Thu Nov 25 09:33:50 2010 +0000
2010-11-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.c (current_cpu): Initialize with latest CPU.
(init_default_arch): Default to z/Architecture mode if CPU provides it.
Remove the check setting the CPU default.
2010-11-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* opcode/s390.h (enum s390_opcode_cpu_val): Add S390_OPCODE_MAXCPU.
commit c86ddad3a712a517ccdfbdb6c90cc03809e8b75b
Author: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Date: Thu Nov 25 09:33:50 2010 +0000
2010-11-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.c (current_cpu): Initialize with latest CPU.
(init_default_arch): Default to z/Architecture mode if CPU provides it.
Remove the check setting the CPU default.
2010-11-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* opcode/s390.h (enum s390_opcode_cpu_val): Add S390_OPCODE_MAXCPU.
commit 7adb23486304cc019107f471d8244af795b051bb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Nov 25 06:08:42 2010 +0000
Update translations
commit 89d9534b624f4f720b6220d2f9ab30edae799a82
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Nov 25 06:08:42 2010 +0000
Update translations
commit f7695626f4b7194ce9641c157f102c202b69925e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Nov 25 01:06:29 2010 +0000
Add rs6000-core.c/.o to the list of optional backend files...
This makes sure that rs6000-core.c gets recompiled whenever any of its
dependencies get changed.
bfd/ChangeLog:
* Makefile.am (OPTIONAL_BACKENDS): Add rs6000-core.lo.
(OPTIONAL_BACKENDS_CFILES): Add rs6000-core.c.
* Makefile.in: Regenerate.
commit 39ce3341012e276568acbd9fdf3edd24adbb0908
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Nov 25 00:23:38 2010 +0000
Build failure on ppc-aix (bfd_elf_get_obj_attr_int is undefined)
bfd_uses_spe_extensions should only be used when BFD has been built
with ELF support. The typical way of checking that in GDB is to use
the HAVE_ELF macro.
gdb/ChangeLog:
* rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
only if HAVE_ELF is defined.
commit a313658be3a7cd02ace023336e5b3ea8a743aa7d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 25 00:00:33 2010 +0000
*** empty log message ***
commit f9a30507f9f3627079c1780d91a3e1da89f6a9a7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Nov 24 23:00:04 2010 +0000
daily update
commit e2c83c617157ec06dc3e76751b39e013584b2dd4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Nov 24 19:08:30 2010 +0000
gdb/
Code cleanup.
* infrun.c (struct inferior_status) <stepping_over_breakpoint>
(save_inferior_status) <stepping_over_breakpoint>
(restore_inferior_status) <stepping_over_breakpoint>: Rename to
trap_expected.
(struct inferior_status) <step_resume_break_address>: Remove.
commit 5cf7563464e78052c620347f938ca42545c4cf9d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Nov 24 19:05:45 2010 +0000
gdb/
* infrun.c (struct inferior_status, save_inferior_status)
(restore_inferior_status): Group and reorder the fields, comment their
groups.
commit 16072ec1dd19fe5e5c617db032ba8753e0b2b386
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Nov 24 19:01:49 2010 +0000
gdb/
Code cleanup.
* dictionary.c
(struct dict_vector) <iter_match_first, iter_match_next>
(iter_match_first_hashed, iter_match_next_hashed)
(iter_match_first_linear, iter_match_next_linear)
(dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
(iter_match_next_hashed, iter_match_first_linear)
(iter_match_next_linear): Use symbol_compare_ftype.
* dictionary.h: Include symfile.h.
(dict_iter_match_first, dict_iter_match_next): Use
symbol_compare_ftype.
* dwarf2read.c (dw2_map_matching_symbols): Likewise.
* psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
(map_matching_symbols_psymtab): Likewise.
* symfile.h (symbol_compare_ftype): New typedef.
(struct quick_symbol_functions) <map_matching_symbols): Use
symbol_compare_ftype.
commit e055e88cae3798e2d6b0f8e701ca2e7146d92cc9
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Wed Nov 24 18:06:17 2010 +0000
2010-11-24 Edjunior Machado <emachado@br.ibm.com>
* gdb.asm/powerpc.inc: Use 'sys_exit' on gdbasm_exit0 macro.
commit 5f23ff1059b86f13a502e8bf7a4c3aab124dd3b0
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Wed Nov 24 17:57:30 2010 +0000
2010-11-24 Edjunior Machado <emachado@br.ibm.com>
* gdb.asm/asm-source.exp: Add new target "powerpc64"; expect leading `.'
on ppc64's symbols; "finish" and "return" commands must accept to
show the caller line again as well as the line after.
* gdb.asm/powerpc64.inc: New file.
commit 593e09637f44612fe086029d32d8453ba75040b5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 24 00:00:33 2010 +0000
*** empty log message ***
commit b070b0107a8b4b5cb7fbacda9b7e3d089deec1e7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 23 23:30:03 2010 +0000
PR ld/12253
* elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct
DW_EH_PE_datarel handling. Truncate .eh_frame_hdr address to
ptr_size.
commit e4af494a33d4e5f578c6c0750638a350c79df2a8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 23 23:00:04 2010 +0000
daily update
commit 8b67714783a8b60c04a24d838cf6c50ddd60cf23
Author: Doug Evans <dje@google.com>
Date: Tue Nov 23 22:25:36 2010 +0000
* lib/gdb.exp (gdb_test_sequence): New function.
(gdb_expect_list): Add verbose -log call for each pattern.
* gdb.base/signals.exp (test_handle_all_print): Call it.
Reduce timeout increment from 6 minutes to 1 minute.
* gdb.server/ext-run.exp: Call it.
commit c281b56cc2d7ea0605b7923173a78f035d38ffd4
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Tue Nov 23 20:24:32 2010 +0000
include/opcode/
* mips.h: Fix previous commit.
commit 3fc7d264201681748647d014da65d380d05c2dba
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Nov 23 18:10:12 2010 +0000
Properly check default linker.
2010-11-23 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12258
* configure.ac: Correct comments for --enable-gold/--enable-ld.
Properly check default linker.
* configure: Regnerated.
commit 39727e36ab29517fed8cb16ed0e2aaa79cb6f6f4
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Nov 23 17:04:11 2010 +0000
* mips.h (INSN_CHIP_MASK): Update according to INSN_LOONGSON_3A.
(INSN_LOONGSON_3A): Clear bit 31.
* elfxx-mips.c (mips_set_isa_flags): Move bfd_mach_loongson_3a
after bfd_mach_mips_sb1.
* config/tc-mips.c (mips_cpu_info_table): Move loongson3a after sb1.
commit 3e9577a3f26567026aa5586abf2bc27f0823f244
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Nov 23 14:39:14 2010 +0000
gdb
* configure: Rebuild.
* configure.ac (READLINE_TEXI_INCFLAG): New subst.
gdb/doc
* gdb.texinfo (Top): Check SYSTEM_READLINE.
(Editing): Likewise.
(Command History): Likewise.
(TUI Keys): Likewise.
(Bug Reporting): Conditionally include rluser.texi and
inc-history.texinfo.
* Makefile.in (READLINE_TEXI_INCFLAG): New variable.
(GDB_DOC_SOURCE_INCLUDES): Add comment.
(GDBvn.texi): Set SYSTEM_READLINE when appropriate.
(gdb.dvi): Use READLINE_TEXI_INCFLAG.
(gdb.pdf): Likewise.
(gdb.info): Likewise.
(gdb/index.html): Likewise.
commit 04e6c5faf49a7064d59f1a0f068aee524dd022bc
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Nov 23 14:37:15 2010 +0000
gdb
* Makefile.in (SUBDIRS): Add doc.
* configure: Rebuild.
* configure.ac: Don't configure in doc. Create doc/Makefile.
gdb/doc
* Makefile.in (Makefile): Run ../config.status.
(distclean): Update.
* configure: Remove.
* configure.ac: Remove.
commit 11ac5e7119e50062f24458ad2797b25dbc4a93f6
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Nov 23 13:39:56 2010 +0000
* configure.ac: For --enable-gold, handle value `default' instead of
`both*'. New configure option --{en,dis}able-ld.
ld, gold/
* configure.ac: For --enable-gold, handle value `default' instead of
`both*'. Always install ld as ld.gold, install as ld if gold is
the default.
commit 972d3868050ac286a42db710a269a4629f554e6f
Author: pmuldoon <pmuldoon>
Date: Tue Nov 23 13:33:21 2010 +0000
2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
PR python/12212
* python/py-inferior.c (find_thread_object): Check if PIDGET
returns 0.
2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
PR python/12212
* gdb.python/python.exp: Check that selected_thread raises an
error when no inferior is loaded.
commit 64fc52e7842e462ad8a0366aa8302c2403f3d56b
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Nov 23 02:48:54 2010 +0000
sim: profile: fix building with --disable-sim-profile
When the sim is configured with profile support disabled, the build fails:
./../common/sim-profile.c: In function 'profile_option_handler':
./../common/sim-profile.c:337:6: warning: implicit declaration of function 'PROFILE_PC_FREQ'
./../common/sim-profile.c:337:6: error: lvalue required as left operand of assignment
./../common/sim-profile.c:351:6: warning: implicit declaration of function 'PROFILE_PC_NR_BUCKETS'
./../common/sim-profile.c:351:6: error: lvalue required as left operand of assignment
./../common/sim-profile.c:381:6: warning: implicit declaration of function 'PROFILE_PC_SHIFT'
./../common/sim-profile.c:381:6: error: lvalue required as left operand of assignment
./../common/sim-profile.c:405:8: warning: implicit declaration of function 'PROFILE_PC_START'
./../common/sim-profile.c:405:8: error: lvalue required as left operand of assignment
./../common/sim-profile.c:406:8: warning: implicit declaration of function 'PROFILE_PC_END'
./../common/sim-profile.c:406:8: error: lvalue required as left operand of assignment
./../common/sim-profile.c: In function 'profile_uninstall':
./../common/sim-profile.c:1299:7: warning: implicit declaration of function 'PROFILE_INSN_COUNT'
./../common/sim-profile.c:1299:37: warning: comparison between pointer and integer
./../common/sim-profile.c:1300:2: warning: passing argument 1 of 'zfree' makes pointer from integer without a cast
../common/sim-utils.h:30:6: note: expected 'void *' but argument is of type 'int'
make[2]: *** [sim-profile.o] Error 1
So add some stubs similar to how some of the other subsystems are
stubbed out so things build correctly.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit cf9266e4aba69774199be4c1772f42ed3f71af28
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Nov 23 02:45:28 2010 +0000
sim: cast away hw/device differences
When building with device and hw support, the sim-core code generates a
lot of build time warnings such as:
./../common/sim-core.c: In function 'sim_core_map_attach':
./../common/sim-core.c:198:7: warning: passing argument 1 of 'device_error' from incompatible pointer type
../common/sim-core.h:347:6: note: expected 'struct device *' but argument is of type 'struct hw *'
./../common/sim-core.c:235:7: warning: passing argument 1 of 'device_error' from incompatible pointer type
../common/sim-core.h:347:6: note: expected 'struct device *' but argument is of type 'struct hw *'
In reality, these two structures get cast back and forth in the core
code already and so are "compatible". So tweak the three functions
that generate all of these warnings to include the casts automatically.
I know this isn't exactly clean, but the current device/hw ifdef
approach is full of landmines itself and I'm not entirely sure how
to unscrew it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 583382853d3785b95f0f884613a9983d9d5976f0
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 01:12:05 2010 +0000
Delete redundant variable in ada_template_to_fixed_record_type_1.
gdb/ChangeLog:
* ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
commit 040e6378851e55009a384a29e3e6fd30d0b21144
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 01:10:54 2010 +0000
[Ada] array pointers encoded as typedef to fat pointer
A recent change in check_typedef caused the following regression,
considering:
type String_Access is access String;
S1 : String_Access := null;
Trying to print S1, we get:
(gdb) print s1
$1 = (string) (null)
The type name is wrong. We were expecting:
(gdb) print s1
$1 = (string_bug.string_access) (null)
The extensive comment in this patch explains how pointers to arrays
are encoded when the array is a "fat pointer". What happened is
that the change in check_typedef broke a type-equality test that
we were performing. The test really was on the fringe, but it
turns out that, for what we're doing, we're really only interested
in the main-type portion of the type.
The patch adjust the check accordingly.
gdb/ChangeLog:
* ada-lang.c (ada_to_fixed_type): Expand function documentation.
Return the original type if the main type portions match rather
than when the type themselves match.
commit 8644bcf4e1ea08fa10b8921abbb3e8967d618029
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 01:07:22 2010 +0000
GDB SEGV while trying to print uninitialize variant record
We have a variant record whose value is defined as follow:
type Discriminant_Record (Num1, Num2,
Num3, Num4 : Natural) is record
Field1 : My_Record_Array (1 .. Num2);
Field2 : My_Record_Array (Num1 .. 10);
Field3 : My_Record_Array (Num1 .. Num2);
Field4 : My_Record_Array (Num3 .. Num2);
Field5 : My_Record_Array (Num4 .. Num2);
end record;
Dire : Discriminant_Record (1, 7, 3, 0);
However, we're trying to print "Dire" before it is elaborated.
This is common if one breaks on a function and then starts doing
"info locals" for instance.
What happens is that GDB reads bogus values for fields Num1 to
Num4, and deduces a bogus (ginormouos) size for component
"Field1". The length is so large that it then later causes
an overflow in the overall record length computation. Things
go downhill from there, because length(field1) > length(record).
So, when after we've fetched the value of the record based on
the computed size, we crash trying to access unallocated memory
when accessing field1...
The first fix we can do is to check the size of the field
against the maximum object size. If it exceeds that size,
then we know the record will also exceed that size...
gdb/ChangeLog:
* ada-lang.c (ada_template_to_fixed_record_type_1):
For dynamic fields, check the field size against the maximum
object size.
commit e885e909e9fdf7e467f287f26d5937346e7be972
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 01:06:08 2010 +0000
support for mips-irix on-stack trampolines
On mips-irix, the debugger has trouble stepping over the following
line of code:
S: Shape'Class := R; <<<<---- STOP here
Here is what happens:
(gdb) n
warning: GDB can't find the start of the function at 0x7fff2bd8.
GDB is unable to find the start of the function at 0x7fff2bd8
and thus can't determine the size of that function's stack frame.
This means that GDB may be unable to access that stack frame, or
the frames below it.
This problem is most likely caused by an invalid program counter or
stack pointer.
However, if you think GDB should simply search farther back
from 0x7fff2bd8 for code which looks like the beginning of a
function, you can increase the range of the search using the `set
heuristic-fence-post' command.
0x7fff2bd8 in ?? ()
The program does in fact jump to this code location, which is a trampoline
located on the stack (there is an implicit call to a routine internally
generated by the Ada expander). As it is on the stack, GDB is naturally
unable to find the bounds of the current function, or any debugging
information, and is thus unable to continue.
This patch adds support for this sort of trampoline.
gdb/ChangeLog:
* mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
function.
(mips_irix_n32_stack_tramp_frame): New static global.
(mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
list of unwinder.
commit b678aa61bbede33bffb21d1488c4865ea331b102
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 01:04:53 2010 +0000
[Ada/tasks] Optimize ATCB lookups
Type symbols that are used to decode the Ada task control block may be
duplicated in any unit that uses a tasking feature; an Ada lookup of
these symbols would collect all the duplicated instances and could
provoke the load of a huge amount of debug symbols in the process.
However, when decoding the task information, we are only interested in
one instance; and we have the full name of the symbol anyway. So use
a C lookup instead of an Ada lookup.
2010-11-05 Jerome Guitton <guitton@adacore.com>
* ada-tasks.c (get_tcb_types_info): Use C lookups to get
ATCB symbols.
commit 855894ae790aac1e57dfc1fe8518855c2477fb9a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 01:03:54 2010 +0000
infinite recursion with ada_check_typedef
When trying to resolve an incomplete type, if there is no complete
version of that type available, GDB can go in an infinite loop.
This is because ada_check_typedef makes a recursive call to itself,
in an attempt to make sure that the returned type is never a typedef.
However, when no complete type is found, the current logic causes us
to keep going indefinitely through the same path...
This patch fixes the problem by performing the recursive call to
ada_check_typedef only when a TYPE_CODE_TYPDEF layer needs to be
stripped.
gdb/ChangeLog:
* ada-lang.c (ada_check_typedef): Call ada_check_typedef only
if type1 is a typedef.
commit 3d81451aabc6ef8a122269afdc1440d4661c1732
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 01:01:22 2010 +0000
Add `_finalizer' to the list of known GNAT auxilary routines.
This is a new routine that is being generated by the expander in
the context of controlled types. This patch adds it to the list of such
routines so that the debugger does not show it when selecting the first
"user" frame (when switching tasks for instance).
gdb/ChangeLog:
* ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
"_finalizer" to the list.
commit d8d0d782ba2ecf92f27a8998d1e420598d42b22f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 00:59:58 2010 +0000
Remove commented-out code in symfile.c
This patch removes some code that has been `#if 0'-ed since at least
1999 or 2000...
gdb/ChangeLog:
* symfile.c: Remove all "#if 0"/"#endif" blocks.
commit 23f09e1ff96133c8b9816cf74bca30c443b48275
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 00:58:54 2010 +0000
symfile.c: Add missing second space after period.
gdb/ChangeLog:
* symfile.c: Add missing second space after period in various comments.
commit de2b84a059ad39ec7e20b946c21b57e4c01a88c7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 00:58:03 2010 +0000
Minor comment reformatting in ada-typeprint.c
gdb/ChangeLog:
* ada-typeprint.c (print_array_type): Fix formatting in comment.
(print_selected_record_field_types): Fix formatting in function
documentation.
commit 615974baac8d724eabe2cfedfc3dd62699adee82
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 00:56:52 2010 +0000
copy/paste typo when registering the `show ravenscar' prefix command
gdb/ChangeLog:
* ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
in name of "show ravenscar" prefix command name.
commit 6c8a0aee8c8a7ca0d12f45dbd63028bce335f4b1
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 00:55:50 2010 +0000
Add missing \n in `show ravenscar task-switching' output
A new-line was missing at the end of the output of the `show ravenscar
task-switching' command. For instance:
(gdb) show ravenscar task-switching
Support for Ravenscar task/thread switching is enabled(gdb)
This patch fixes it.
gdb/ChangeLog:
* ravenscar-thread.c (show_ravenscar_task_switching_command):
Add missing '\n' in output.
commit 197ed1878baf51c6fe8d95491ad427676846fc79
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 00:55:08 2010 +0000
[Ada/ravenscar] New name for active-thread symbol
The GNAT Ravenscar implementation has recently been enhanced to allow
programs using that runtime to run on multi-cpu systems. One of the
changes that were made is that the name of the symbol we use to
determine which task is the currently-running task has changed.
This patch enhances the debugger to use the new name, and fallback on
the old name if not found (this is for compatibility with older versions
of the compiler/runtime).
gdb/ChangeLog:
* ravenscar-thread.c (running_thread_name): Change value.
(read_thread_id): Remove advance declaration.
(get_running_thread_msymbol): New function.
(has_ravenscar_runtime): Use get_running_thread_msymbol to
compute msym_running_thread.
(get_running_thread_id): Renames read_thread_id. Slight modifications
to not take any argument anymore, using get_running_thread_msymbol
to determine which symbol to use instead.
(ravenscar_running_thread): Use get_running_thread_id instead of
read_thread_id.
commit 8c45ad8c62da1ef803ce581fb9042235f7137c93
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 00:34:41 2010 +0000
Move ChangeLog entry to the correct ChangeLog file.
commit bb90878e4562bd391465e507479b4fb213bd6af8
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 23 00:29:45 2010 +0000
ravenscar/sparc: cannot fetch registers from non-active thread
gdb/ChangeLog:
* ravenscar-sparc-thread.c (supply_register_at_address):
Fix passing of buf in call to regcache_raw_supply.
commit 4603a5b5dc15bbffcc7812b67e0ad6351b700625
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 23 00:00:03 2010 +0000
*** empty log message ***
commit 415f09bd7cb0725648e5466e37dd2d69ecdc0d25
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Nov 22 23:00:05 2010 +0000
daily update
commit 2f5f9b1fcdf40195d6a61f1a65821ad4b1edbbc6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Nov 22 20:35:01 2010 +0000
gdb/
* dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
commit 57a6cbb76ff935e121f9aa53a8990efaec1e7425
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Nov 22 20:30:56 2010 +0000
* Makefile.in (.PRECIOUS): Reference ada-lex.c.
commit 7a11e9bd3b139eb44ee7d42768e787ef8ca78fd3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 22 00:00:03 2010 +0000
*** empty log message ***
commit d1fc604b415ca3131317a756b367ea897e0429ba
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Nov 21 23:00:05 2010 +0000
daily update
commit 13c4c9e3f9bc987f086d1915f390463cb0cb2694
Author: DJ Delorie <dj@delorie.com>
Date: Sun Nov 21 04:01:17 2010 +0000
merge from gcc
commit 91744bbf499d9ba21d1b37c4b1f579466025c120
Author: Ian Lance Taylor <ian@airs.com>
Date: Sun Nov 21 01:56:29 2010 +0000
* configure.ac: Only disable a language library if no language needs
it. Don't let --disable-libgcj uncondtionally disable libffi.
* configure: Rebuild.
Also moved ChangeLog entry to correct file.
commit 9f2350f5bdd0bb74d9cf5bbca93bb8c629de0563
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 21 00:00:03 2010 +0000
*** empty log message ***
commit 346b48e584fe2f29eb42a911b7a1f75b78de76b5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Nov 20 23:00:08 2010 +0000
daily update
commit 3bdfa178f9adcd5c17982beabd2ce29bb95ac406
Author: Paolo Bonzini <bonzini@gnu.org>
Date: Sat Nov 20 20:31:09 2010 +0000
sync toplevel with gcc
commit 9fddf5efe24f5845290b57e9f5d7c6fc18cccfc8
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Sat Nov 20 19:37:54 2010 +0000
PR other/46202: implement install-strip.
/:
PR other/46202
* configure.ac: Fix just-built in-tree STRIP name to be
binutils/strip-new.
* configure: Regenerate.
* Makefile.def (install-strip-gcc, install-strip-binutils)
(install-strip-opcodes, install-strip-ld, install-strip-itcl)
(install-strip-sid): Mirror dependencies on non-strip variants
of these targets on the respective -strip prerequisites.
* Makefile.tpl (install-strip, install-strip-host)
(install-strip-target): New targets.
(install-strip-[+module+], install-strip-target-[+module+]):
New targets.
* Makefile.in: Regenerate.
etc/:
* Makefile.in (install-strip): New target.
libiberty/:
PR other/46202
* Makefile.in (install-strip): New phony target.
(install): Also mark as phony.
commit b8a1b776cab8fae3c84fb81b9612be3551d40528
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Nov 20 01:53:04 2010 +0000
gdb/testsuite/
* gdb.dwarf2/dw2-stack-boundary.exp: New file.
* gdb.dwarf2/dw2-stack-boundary.S: New file.
commit 18d38d40f28cb3f1c8b8c8c06c34686ebcbbfb03
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Nov 20 01:49:17 2010 +0000
gdb/testsuite/
* gdb.dwarf2/dw2-ada-ffffffff.S: New file.
* gdb.dwarf2/dw2-ada-ffffffff.exp: New file.
commit 9ab5dfcc43387a69d321dc5bb7164458d70343cf
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 20 00:00:03 2010 +0000
*** empty log message ***
commit 9616aab5db4d77f873cf23e2cbc3202aa70b13a9
Author: Keith Seitz <keiths@redhat.com>
Date: Fri Nov 19 23:36:28 2010 +0000
* data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
Remove extraneous '/' after $(DESTDIR).
(PYTHON_INSTALL_DIR): Likewise.
commit c4428a8156c05d6d4fba4b320b1d189e3ee2f51b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Nov 19 23:00:05 2010 +0000
daily update
commit 062bf169ea520e1df44d8be481d20980a6434688
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Nov 19 22:30:44 2010 +0000
gdb/
Fix stale memory references.
* elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
xfree, new comment.
commit f1be2183671500f038d5b2f306cb679f8ed40edc
Author: Ian Lance Taylor <ian@airs.com>
Date: Fri Nov 19 22:06:26 2010 +0000
Merge from gcc top-level.
./:
* configure.ac: Add target-libgo to target_libraries. Set
and substitute GOC_FOR_BUILD and GOC_FOR_TARGET.
* Makefile.tpl (BUILD_EXPORTS): Add GOC and GOCFLAGS.
(HOST_EXPORTS): Add GOC.
(BASE_TARGET_EXPORTS): Add GOC.
(GOC_FOR_BUILD, GOCFLAGS, GOC_FOR_TARGET): New variables.
(GOCFLAGS_FOR_TARGET): New variable.
(EXTRA_HOST_FLAGS): Add GOC.
(EXTRA_TARGET_FLAGS): Add GOC and GOCFLAGS.
* Makefile.def (target_modules): Add libgo.
(flags_to_pass): Add GOC_FOR_TARGET and GOCFLAGS_FOR_TARGET.
(dependencies): Add dependency from configure-target-libgo to
configure-target-libffi and all-target-libstdc++-v3. Add
dependencies from all-target-libgo to all-target-libffi.
(languages): Add go.
* configure: Rebuild.
* Makefile.in: Rebuild.
* config-ml.in: Add Go support: treat GOC and GOCFLAGS like other
compiler/flag environment variables.
* configure.ac: Check for lang_requires_boot_languages in
config-lang.in files.
* configure: Rebuild.
PR fortran/32049
* Makefile.def: Add libquadmath; build it with language=fortran.
* configure.ac: Add libquadmath.
* Makefile.tpl: Handle multiple libs in check-[+language+].
* Makefile.in: Regenerate.
* configure: Regenerate.
* configure.ac: Fix spelling in option names.
* configure: Regenerated.
PR bootstrap/39622
* configure.ac (FLAGS_FOR_TARGET): Add include-fixed path.
* configure: Regenerated.
* config/cloog.m4: Add -enable-cloog-backend=(isl|ppl|ppl-legacy) to
define the cloog backend to use. Furthermore, only pass the ppllibs to
the configure checks, if necessary.
* configure: Regenerate.
* config/cloog.m4: Use CLooG predefined macro to check for CLooG PPL.
* configure: regenerate
* config/cloog.m4: Fix typo. verison -> version.
* configure: Regenerate.
* config/cloog.m4: Pass ppl libraries to the CLooG version check.
* configure: Regenerate.
* configure.ac: Support official CLooG.org versions.
* configure: Regenerate.
* config/cloog.m4: New.
* configure.ac (*-*-darwin*): Use mh-darwin for all Darwin variants.
* configure: Regenerate.
config/:
* cloog.m4 (CLOOG_INIT_FLAGS): Fix spelling in option names.
* bootstrap-lto: Use -flto.
* mh-darwin: Renamed from mh-ppc-darwin.
commit 9111ab394243391043003312d4ffabcb32d6d9b0
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Nov 19 18:10:43 2010 +0000
2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
* Makefile.in (.y.c): Directly create $@ from YLWRAP.
(.PHONY): Remove for .y outputs.
commit 91ae9167fecccf168d504c0d392a12fd20b55e24
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Nov 19 16:35:09 2010 +0000
2010-11-19 Will Drewry <wad@google.com>
Tavis Ormandy <taviso@google.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf2read.c (decode_locdesc): Enforce location description stack
boundaries.
commit 4ea975cacd5fc8294f794ffe0efd3a7dcd096a5f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 19 00:00:02 2010 +0000
*** empty log message ***
commit 10577ce572a9daca27e01b18989adf11fa311d16
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Nov 18 23:00:05 2010 +0000
daily update
commit b34773ff57ea50fb048666b5c5911ceff63ffe2e
Author: Doug Evans <dje@google.com>
Date: Thu Nov 18 20:25:12 2010 +0000
* gdb.server/ext-run.exp: Fix intermittent failures.
commit 4a90afa09837546b165e96237eb1aec193d3af1f
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Nov 18 16:38:14 2010 +0000
* arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
instruction is found.
commit 027ba3cf6c89accc0b4cf2a3e879d2deb2d86d57
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 18 00:00:02 2010 +0000
*** empty log message ***
commit a9844f83c0d32f1c7cdb4b1b391ce1931f5df31c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Nov 17 23:00:05 2010 +0000
daily update
commit 7850396a466baacc66a0bea032a62e3292d1f45c
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Nov 17 19:53:36 2010 +0000
* value.c (value_entirely_optimized_out): Check the
'check_any_valid' field.
commit b2055d0efdde2d42d0e225b8b1cf3a83bde37909
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Nov 17 19:34:59 2010 +0000
start a gitignore
commit 92d8796f2aa0ca266ee6f1712ff36114812a68bb
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Nov 17 11:32:53 2010 +0000
2010-11-17 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (vms_write_index): Add comments.
Partially revert previous patch. Free blocks later.
commit 3058f5862f1d4cd76f4274e94f0f6167753458ec
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Nov 17 10:56:41 2010 +0000
PR ld/12161
* elf32-avr.c (elf32_avr_check_relocs): Delete.
(elf_backend_check_relocs): Delete.
commit 03fe07839e8255e7d8b167503de6098487fd8209
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Nov 17 09:32:42 2010 +0000
oops - acccidentally omitted from loongson 3a check-in.
commit d19aa4cdcb58fcd413e52b13f2ef8d2a10f2ca07
Author: DJ Delorie <dj@delorie.com>
Date: Wed Nov 17 02:03:35 2010 +0000
merge from gcc
commit 013fb3f4708bfd4abaa7d23ed7d4686e8d2b0951
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 17 00:00:02 2010 +0000
*** empty log message ***
commit 8cc0c2627794bae027ad150b788e54a589418414
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 16 23:00:04 2010 +0000
daily update
commit a76ad177c4b4612438364ac4f469c2ef956b3ed8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Nov 16 22:13:02 2010 +0000
gdb/
* ada-lang.c (modify_general_field): Remove.
(make_array_descriptor): Replace all modify_general_field calls by
modify_field.
* value.c (modify_field): Update comment. New variable bytesize.
Normalize BITPOS. Initialize BYTESIZE, use it.
commit 2ed409cb3f9525381b01e66193036f0cebe9b241
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Nov 16 22:04:51 2010 +0000
gdb/
* dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
elements after xfree.
commit 6db9963f5b0883efe02478fa1bfec4c1fd2fcadf
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Nov 16 19:10:29 2010 +0000
sim: dv-sockser: add a write buffer variant
Rather than having to bang out chunks of data one byte at a time over
the socket interface, add a write variant that accepts an arbitrarily
long buffer. This speeds things up considerably when we have many
chars to send out at once.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 187ef33d1d9eeb5f5f1ba2c0477251d5ec4c2767
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Nov 16 17:58:26 2010 +0000
Properly demangle a global constructor symbol.
2010-11-16 H.J. Lu <hongjiu.lu@intel.com>
PR other/42670
PR binutils/11137
* cp-demangle.c (d_make_demangle_mangled_name): New.
(d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
* testsuite/demangle-expected: Updated.
commit 8e903e74ea8b8a39cb8f99dd784a95619bdb0ae6
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Nov 16 17:38:34 2010 +0000
* gdb-add-index.sh: Really remove.
commit fa5655a7be2021f47987cd41832e24f509cb22f2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Nov 16 04:36:24 2010 +0000
gdb/
Code cleanup.
* dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
(init_one_comp_unit): ... this one.
(prepare_one_comp_unit): New prototype.
(dw2_require_line_header, process_psymtab_comp_unit): Use
init_one_comp_unit.
(process_psymtab_comp_unit): Use prepare_one_comp_unit.
(load_partial_comp_unit): Remove variable attr. Use
init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
(load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
prepare_one_comp_unit.
(read_signatured_type): Remove variable attr. Use init_one_comp_unit.
Use prepare_one_comp_unit.
(alloc_one_comp_unit): Rename to ...
(init_one_comp_unit): ... here and remove there calloc, new parameter
cu.
(prepare_one_comp_unit): New function.
-----------------------------------------------------------------------
Summary of changes:
.gitignore | 40 +
ChangeLog | 139 +
Makefile.def | 19 +-
Makefile.in | 2549 +++++++++++-
Makefile.tpl | 93 +-
bfd/ChangeLog | 39 +-
bfd/Makefile.am | 2 +
bfd/Makefile.in | 3 +
bfd/cpu-mips.c | 2 +
bfd/elf-eh-frame.c | 34 +-
bfd/elf32-avr.c | 43 -
bfd/elfxx-mips.c | 8 +-
bfd/po/es.po | 3994 +++++++++++++-----
bfd/po/fi.po | 4053 +++++++++++++-----
bfd/po/fr.po | 3988 +++++++++++++-----
bfd/po/ja.po | 4464 ++++++++++++++------
bfd/po/zh_CN.po | 2 +-
bfd/version.h | 2 +-
bfd/vms-lib.c | 40 +-
config-ml.in | 18 +-
config/ChangeLog | 38 +
config/bootstrap-lto.mk | 7 +-
config/cloog.m4 | 286 ++
config/{mh-ppc-darwin => mh-darwin} | 0
configure | 720 +++-
configure.ac | 235 +-
etc/ChangeLog | 4 +
etc/Makefile.in | 2 +-
gdb/ChangeLog | 248 ++
gdb/Makefile.in | 22 +-
gdb/ada-lang.c | 127 +-
gdb/ada-lang.h | 3 +-
gdb/ada-tasks.c | 19 +-
gdb/ada-typeprint.c | 7 +-
gdb/arm-tdep.c | 2 +-
gdb/breakpoint.c | 2 +-
gdb/breakpoint.h | 8 +-
gdb/configure | 11 +-
gdb/configure.ac | 7 +-
gdb/data-directory/Makefile.in | 4 +-
gdb/defs.h | 4 -
gdb/dictionary.c | 42 +-
gdb/dictionary.h | 8 +-
gdb/doc/ChangeLog | 23 +
gdb/doc/Makefile.in | 21 +-
gdb/doc/configure | 3064 --------------
gdb/doc/configure.ac | 9 -
gdb/doc/gdb.texinfo | 44 +-
gdb/dwarf2read.c | 116 +-
gdb/elfread.c | 10 +-
gdb/gdb-add-index.sh | 29 -
gdb/infcall.c | 3 +-
gdb/infrun.c | 78 +-
gdb/mips-irix-tdep.c | 40 +
gdb/psymtab.c | 19 +-
gdb/python/py-breakpoint.c | 6 +-
gdb/python/py-inferior.c | 3 +
gdb/ravenscar-sparc-thread.c | 2 +-
gdb/ravenscar-thread.c | 44 +-
gdb/rs6000-tdep.c | 2 +
gdb/symfile.c | 79 +-
gdb/symfile.h | 10 +-
gdb/testsuite/ChangeLog | 40 +
gdb/testsuite/gdb.asm/asm-source.exp | 44 +-
gdb/testsuite/gdb.asm/powerpc.inc | 6 +-
.../gdb.asm/{powerpc.inc => powerpc64.inc} | 37 +-
gdb/testsuite/gdb.base/signals.exp | 15 +-
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S | 55 +
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp | 44 +
gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S | 68 +
gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp | 52 +
gdb/testsuite/gdb.python/python.exp | 5 +
gdb/testsuite/gdb.server/ext-run.exp | 5 +-
gdb/testsuite/lib/gdb.exp | 27 +
gdb/value.c | 19 +-
gdb/varobj.c | 2 +
gdb/version.in | 2 +-
include/ChangeLog | 9 +
include/opcode/ChangeLog | 9 +
include/opcode/mips.h | 4 +-
include/opcode/s390.h | 3 +-
include/simple-object.h | 13 +-
libiberty/ChangeLog | 42 +
libiberty/Makefile.in | 3 +
libiberty/config.in | 6 +-
libiberty/configure | 24 +-
libiberty/configure.ac | 12 +-
libiberty/cp-demangle.c | 16 +-
libiberty/setproctitle.c | 4 +-
libiberty/simple-object-coff.c | 15 +-
libiberty/simple-object-common.h | 8 +-
libiberty/simple-object-elf.c | 57 +-
libiberty/simple-object-mach-o.c | 20 +-
libiberty/simple-object.c | 13 +-
libiberty/testsuite/demangle-expected | 4 +-
opcodes/ChangeLog | 9 +-
opcodes/po/es.po | 353 +-
opcodes/po/fr.po | 351 +-
opcodes/po/nl.po | 348 +-
opcodes/po/zh_CN.po | 2 +-
sim/common/ChangeLog | 17 +
sim/common/dv-sockser.c | 15 +-
sim/common/dv-sockser.h | 1 +
sim/common/sim-core.c | 3 +
sim/common/sim-profile.c | 10 +
105 files changed, 17910 insertions(+), 8822 deletions(-)
create mode 100644 .gitignore
create mode 100644 config/cloog.m4
rename config/{mh-ppc-darwin => mh-darwin} (100%)
delete mode 100755 gdb/doc/configure
delete mode 100644 gdb/doc/configure.ac
delete mode 100755 gdb/gdb-add-index.sh
copy gdb/testsuite/gdb.asm/{powerpc.inc => powerpc64.inc} (54%)
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp
First 500 lines of diff:
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..dc1bf3f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,40 @@
+*.diff
+*.patch
+*.orig
+*.rej
+
+*~
+*.a
+*.flt
+*.gdb
+*.gmo
+*.info
+*.la
+*.lo
+*.o
+*.tmp
+
+.deps
+.libs
+
+autom4te.cache
+config.cache
+config.h
+config.intl
+config.log
+config.status
+libtool
+Makefile
+stamp-*
+POTFILES
+*-POTFILES
+*/po/Makefile.in
+
+.gdbinit
+.gdb_history
+core
+
+lost+found
+
+*.log
+*.sum
diff --git a/ChangeLog b/ChangeLog
index f97c1ab..fbc94ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,147 @@
+2010-11-26 Alexandre Oliva <aoliva@redhat.com>
+
+ PR other/46020
+ * configure.ac (CXX_FOR_TARGET): Add -funconfigured-libstdc++-v3.
+ * Makefile.def (CXX_FOR_TARGET): Removed from flags_to_pass.
+ * Makefile.tpl (CXX_FOR_TARGET_FLAG_TO_PASS): New.
+ (BASE_FLAGS_TO_PASS): Use it.
+ * configure: Rebuilt.
+ * Makefile.in: Rebuilt.
+
+2010-11-23 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/12258
+ * configure.ac: Correct comments for --enable-gold/--enable-ld.
+ Properly check default linker.
+ * configure: Regnerated.
+
+2010-11-23 Matthias Klose <doko@ubuntu.com>
+
+ * configure.ac: For --enable-gold, handle value `default' instead of
+ `both*'. New configure option --{en,dis}able-ld.
+ * configure: Regenerate.
+
+2010-11-20 Ian Lance Taylor <iant@google.com>
+
+ * configure.ac: Only disable a language library if no language needs
+ it. Don't let --disable-libgcj uncondtionally disable libffi.
+ * configure: Rebuild.
+
+2010-11-20 Paolo Bonzini <bonzini@gnu.org>
+
+ * configure: Regenerate.
+
+2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ PR other/46202
+ * configure.ac: Fix just-built in-tree STRIP name to be
+ binutils/strip-new.
+ * configure: Regenerate.
+ * Makefile.def (install-strip-gcc, install-strip-binutils)
+ (install-strip-opcodes, install-strip-ld, install-strip-itcl)
+ (install-strip-sid): Mirror dependencies on non-strip variants
+ of these targets on the respective -strip prerequisites.
+ * Makefile.tpl (install-strip, install-strip-host)
+ (install-strip-target): New targets.
+ (install-strip-[+module+], install-strip-target-[+module+]):
+ New targets.
+ * Makefile.in: Regenerate.
+
+2010-11-19 Ian Lance Taylor <iant@google.com>
+ Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * configure.ac: Add target-libgo to target_libraries. Set
+ and substitute GOC_FOR_BUILD and GOC_FOR_TARGET.
+ * Makefile.tpl (BUILD_EXPORTS): Add GOC and GOCFLAGS.
+ (HOST_EXPORTS): Add GOC.
+ (BASE_TARGET_EXPORTS): Add GOC.
+ (GOC_FOR_BUILD, GOCFLAGS, GOC_FOR_TARGET): New variables.
+ (GOCFLAGS_FOR_TARGET): New variable.
+ (EXTRA_HOST_FLAGS): Add GOC.
+ (EXTRA_TARGET_FLAGS): Add GOC and GOCFLAGS.
+ * Makefile.def (target_modules): Add libgo.
+ (flags_to_pass): Add GOC_FOR_TARGET and GOCFLAGS_FOR_TARGET.
+ (dependencies): Add dependency from configure-target-libgo to
+ configure-target-libffi and all-target-libstdc++-v3. Add
+ dependencies from all-target-libgo to all-target-libffi.
+ (languages): Add go.
+ * configure: Rebuild.
+ * Makefile.in: Rebuild.
+
+2010-11-19 Ian Lance Taylor <iant@google.com>
+
+ * config-ml.in: Add Go support: treat GOC and GOCFLAGS like other
+ compiler/flag environment variables.
+
+2010-11-18 Ian Lance Taylor <iant@google.com>
+
+ * configure.ac: Check for lang_requires_boot_languages in
+ config-lang.in files.
+ * configure: Rebuild.
+
+2010-11-17 Mike Frysinger <vapier@gentoo.org>
+
+ * .gitignore: New file.
+
+2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+ Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/32049
+ * Makefile.def: Add libquadmath; build it with language=fortran.
+ * configure.ac: Add libquadmath.
+ * Makefile.tpl: Handle multiple libs in check-[+language+].
+ * Makefile.in: Regenerate.
+ * configure: Regenerate.
+
+2010-11-15 Andreas Schwab <schwab@redhat.com>
+
+ * configure.ac: Fix spelling in option names.
+ * configure: Regenerated.
+
+2010-11-13 Georg-Johann Lay <georgjohann@web.de>
+
+ PR bootstrap/39622
+ * configure.ac (FLAGS_FOR_TARGET): Add include-fixed path.
+ * configure: Regenerated.
+
+2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
+
+ * config/cloog.m4: Add -enable-cloog-backend=(isl|ppl|ppl-legacy) to
+ define the cloog backend to use. Furthermore, only pass the ppllibs to
+ the configure checks, if necessary.
+ * configure: Regenerate.
+
+2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
+
+ * config/cloog.m4: Use CLooG predefined macro to check for CLooG PPL.
+ * configure: regenerate
+
+2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
+
+ * config/cloog.m4: Fix typo. verison -> version.
+ * configure: Regenerate.
+
+2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
+
+ * config/cloog.m4: Pass ppl libraries to the CLooG version check.
+ * configure: Regenerate.
+
+2010-11-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
+
+ * configure.ac: Support official CLooG.org versions.
+ * configure: Regenerate.
+ * config/cloog.m4: New.
+
2010-11-05 Michael Eager <eager@eagercon.com>
* COPYING.LIBGLOSS: Correct typo in microblaze.
* COPYING.NEWLIB: Same.
+2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
+
+ * configure.ac (*-*-darwin*): Use mh-darwin for all Darwin variants.
+ * configure: Regenerate.
+
2010-11-03 Ian Lance Taylor <iant@google.com>
Dave Korn <dave.korn.cygwin@gmail.com>
diff --git a/Makefile.def b/Makefile.def
index 6223bf3..8eb5b03 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -155,8 +155,10 @@ target_modules = { module= libmudflap; lib_path=.libs; };
target_modules = { module= libssp; lib_path=.libs; };
target_modules = { module= newlib; };
target_modules = { module= libgcc; bootstrap=true; no_check=true; };
+target_modules = { module= libquadmath; };
target_modules = { module= libgfortran; };
target_modules = { module= libobjc; };
+target_modules = { module= libgo; };
target_modules = { module= libtermcap; no_check=true;
missing=mostlyclean;
missing=clean;
@@ -280,12 +282,13 @@ flags_to_pass = { flag= AS_FOR_TARGET ; };
flags_to_pass = { flag= CC_FOR_TARGET ; };
flags_to_pass = { flag= CFLAGS_FOR_TARGET ; };
flags_to_pass = { flag= CPPFLAGS_FOR_TARGET ; };
-flags_to_pass = { flag= CXX_FOR_TARGET ; };
flags_to_pass = { flag= CXXFLAGS_FOR_TARGET ; };
flags_to_pass = { flag= DLLTOOL_FOR_TARGET ; };
flags_to_pass = { flag= FLAGS_FOR_TARGET ; };
flags_to_pass = { flag= GCJ_FOR_TARGET ; };
flags_to_pass = { flag= GFORTRAN_FOR_TARGET ; };
+flags_to_pass = { flag= GOC_FOR_TARGET ; };
+flags_to_pass = { flag= GOCFLAGS_FOR_TARGET ; };
flags_to_pass = { flag= LD_FOR_TARGET ; };
flags_to_pass = { flag= LIPO_FOR_TARGET ; };
flags_to_pass = { flag= LDFLAGS_FOR_TARGET ; };
@@ -346,6 +349,7 @@ dependencies = { module=dvi-gcc; on=all-build-libiberty; };
dependencies = { module=pdf-gcc; on=all-build-libiberty; };
dependencies = { module=html-gcc; on=all-build-libiberty; };
dependencies = { module=install-gcc ; on=install-fixincludes; };
+dependencies = { module=install-strip-gcc ; on=install-strip-fixincludes; };
dependencies = { module=configure-libcpp; on=configure-libiberty; hard=true; };
dependencies = { module=configure-libcpp; on=configure-intl; };
@@ -407,9 +411,11 @@ dependencies = { module=all-binutils; on=all-intl; };
// binutils might be on PATH, and they might need the shared opcodes
// library.
dependencies = { module=install-binutils; on=install-opcodes; };
+dependencies = { module=install-strip-binutils; on=install-strip-opcodes; };
// libopcodes depends on libbfd
dependencies = { module=install-opcodes; on=install-bfd; };
+dependencies = { module=install-strip-opcodes; on=install-strip-bfd; };
dependencies = { module=configure-gas; on=configure-intl; };
dependencies = { module=all-gas; on=all-libiberty; };
@@ -430,6 +436,7 @@ dependencies = { module=all-ld; on=all-build-byacc; };
dependencies = { module=all-ld; on=all-build-flex; };
dependencies = { module=all-ld; on=all-intl; };
dependencies = { module=install-ld; on=install-gold; };
+dependencies = { module=install-strip-ld; on=install-strip-gold; };
dependencies = { module=configure-gold; on=configure-intl; };
dependencies = { module=all-gold; on=all-libiberty; };
dependencies = { module=all-gold; on=all-intl; };
@@ -460,6 +467,7 @@ dependencies = { module=configure-itcl; on=configure-tk; };
dependencies = { module=all-itcl; on=all-tcl; };
dependencies = { module=all-itcl; on=all-tk; };
dependencies = { module=install-itcl; on=install-tcl; };
+dependencies = { module=install-strip-itcl; on=install-strip-tcl; };
dependencies = { module=configure-tk; on=configure-tcl; };
dependencies = { module=all-tk; on=all-tcl; };
@@ -470,7 +478,9 @@ dependencies = { module=all-sid; on=all-opcodes; };
dependencies = { module=all-sid; on=all-tcl; };
dependencies = { module=all-sid; on=all-tk; };
dependencies = { module=install-sid; on=install-tcl; };
+dependencies = { module=install-strip-sid; on=install-strip-tcl; };
dependencies = { module=install-sid; on=install-tk; };
+dependencies = { module=install-strip-sid; on=install-strip-tk; };
dependencies = { module=configure-sim; on=configure-intl; };
dependencies = { module=all-sim; on=all-intl; };
@@ -538,6 +548,9 @@ dependencies = { module=configure-target-boehm-gc; on=all-target-libstdc++-v3; }
dependencies = { module=configure-target-fastjar; on=configure-target-zlib; };
dependencies = { module=all-target-fastjar; on=all-target-zlib; };
dependencies = { module=all-target-fastjar; on=all-target-libiberty; };
+dependencies = { module=configure-target-libgo; on=configure-target-libffi; };
+dependencies = { module=configure-target-libgo; on=all-target-libstdc++-v3; };
+dependencies = { module=all-target-libgo; on=all-target-libffi; };
dependencies = { module=configure-target-libjava; on=configure-target-zlib; };
dependencies = { module=configure-target-libjava; on=configure-target-boehm-gc; };
dependencies = { module=configure-target-libjava; on=configure-target-qthreads; };
@@ -571,11 +584,13 @@ dependencies = { module=configure-target-libiberty; on=all-binutils; };
dependencies = { module=configure-target-libiberty; on=all-ld; };
dependencies = { module=configure-target-newlib; on=all-binutils; };
dependencies = { module=configure-target-newlib; on=all-ld; };
+dependencies = { module=configure-target-libgfortran; on=all-target-libquadmath; };
languages = { language=c; gcc-check-target=check-gcc; };
languages = { language=c++; gcc-check-target=check-c++;
lib-check-target=check-target-libstdc++-v3; };
languages = { language=fortran; gcc-check-target=check-fortran;
+ lib-check-target=check-target-libquadmath;
lib-check-target=check-target-libgfortran; };
languages = { language=java; gcc-check-target=check-java;
lib-check-target=check-target-libjava; };
@@ -584,6 +599,8 @@ languages = { language=ada; gcc-check-target=check-ada;
languages = { language=objc; gcc-check-target=check-objc;
lib-check-target=check-target-libobjc; };
languages = { language=obj-c++; gcc-check-target=check-obj-c++; };
+languages = { language=go; gcc-check-target=check-go;
+ lib-check-target=check-target-libgo; };
// Toplevel bootstrap
bootstrap_stage = { id=1 ; };
diff --git a/Makefile.in b/Makefile.in
index aaea69d..945fc5d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -157,6 +157,8 @@ BUILD_EXPORTS = \
CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
+ GOC="$(GOC_FOR_BUILD)"; export GOC; \
+ GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \
DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
LD="$(LD_FOR_BUILD)"; export LD; \
LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
@@ -193,6 +195,7 @@ HOST_EXPORTS = \
CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
GCJ="$(GCJ)"; export GCJ; \
GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
+ GOC="$(GOC)"; export GOC; \
AR="$(AR)"; export AR; \
AS="$(AS)"; export AS; \
CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
@@ -273,6 +276,7 @@ BASE_TARGET_EXPORTS = \
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
+ GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
@@ -339,6 +343,7 @@ CXX_FOR_BUILD = @CXX_FOR_BUILD@
DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
+GOC_FOR_BUILD = @GOC_FOR_BUILD@
LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
LD_FOR_BUILD = @LD_FOR_BUILD@
NM_FOR_BUILD = @NM_FOR_BUILD@
@@ -401,6 +406,7 @@ LDFLAGS = @LDFLAGS@
LIBCFLAGS = $(CFLAGS)
CXXFLAGS = @CXXFLAGS@
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
+GOCFLAGS = $(CFLAGS)
TFLAGS =
@@ -516,6 +522,7 @@ CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
+GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
LD_FOR_TARGET=@LD_FOR_TARGET@
@@ -537,6 +544,7 @@ CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
LDFLAGS_FOR_TARGET =
+GOCFLAGS_FOR_TARGET = -O2 -g
FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
@@ -632,6 +640,26 @@ HOST_LIB_PATH_libelf = \
@endif libelf
+CXX_FOR_TARGET_FLAG_TO_PASS = \
+ "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
+@if target-libstdc++-v3
+# CXX_FOR_TARGET is tricky to get right for target libs that require a
+# functional C++ compiler. When we recurse, if we expand
+# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
+# libstdc++ include flags from the script. Instead, we get an
+# -funconfigured-* word, so that we'll get errors if this invalid C++
+# command line is used for anything, but also so that we can use the
+# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
+# don't pass it on, sub-make will use the default definition, that
+# re-expands it at the time of use, so we'll get it right when we need
+# it. One potential exception is the expansion of CXX_FOR_TARGET
+# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
+# really work, for C++ host programs can't depend on the current-stage
+# C++ target library.
+CXX_FOR_TARGET_FLAG_TO_PASS = \
+ $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
+@endif target-libstdc++-v3
+
# Flags to pass down to all sub-makes.
BASE_FLAGS_TO_PASS = \
"DESTDIR=$(DESTDIR)" \
@@ -699,12 +727,13 @@ BASE_FLAGS_TO_PASS = \
"CC_FOR_TARGET=$(CC_FOR_TARGET)" \
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
"CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
- "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
"CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
"DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
"FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
"GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
"GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
+ "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
+ "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
"LD_FOR_TARGET=$(LD_FOR_TARGET)" \
"LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
"LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
@@ -737,6 +766,7 @@ BASE_FLAGS_TO_PASS = \
"STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
"STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
"STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
+ $(CXX_FOR_TARGET_FLAG_TO_PASS) \
"TFLAGS=$(TFLAGS)" \
"CONFIG_SHELL=$(SHELL)" \
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
@@ -754,6 +784,7 @@ EXTRA_HOST_FLAGS = \
'DLLTOOL=$(DLLTOOL)' \
'GCJ=$(GCJ)' \
'GFORTRAN=$(GFORTRAN)' \
+ 'GOC=$(GOC)' \
'LD=$(LD)' \
'LIPO=$(LIPO)' \
'NM=$(NM)' \
@@ -802,6 +833,8 @@ EXTRA_TARGET_FLAGS = \
'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
+ 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
+ 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
'LD=$(COMPILER_LD_FOR_TARGET)' \
'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
@@ -926,8 +959,10 @@ configure-target: \
maybe-configure-target-libssp \
maybe-configure-target-newlib \
maybe-configure-target-libgcc \
+ maybe-configure-target-libquadmath \
maybe-configure-target-libgfortran \
maybe-configure-target-libobjc \
+ maybe-configure-target-libgo \
maybe-configure-target-libtermcap \
maybe-configure-target-winsup \
maybe-configure-target-libgloss \
@@ -1108,8 +1143,10 @@ all-target: maybe-all-target-newlib
@if target-libgcc-no-bootstrap
all-target: maybe-all-target-libgcc
@endif target-libgcc-no-bootstrap
+all-target: maybe-all-target-libquadmath
all-target: maybe-all-target-libgfortran
all-target: maybe-all-target-libobjc
+all-target: maybe-all-target-libgo
all-target: maybe-all-target-libtermcap
all-target: maybe-all-target-winsup
all-target: maybe-all-target-libgloss
@@ -1229,8 +1266,10 @@ info-target: maybe-info-target-libmudflap
info-target: maybe-info-target-libssp
info-target: maybe-info-target-newlib
info-target: maybe-info-target-libgcc
+info-target: maybe-info-target-libquadmath
info-target: maybe-info-target-libgfortran
info-target: maybe-info-target-libobjc
+info-target: maybe-info-target-libgo
info-target: maybe-info-target-libtermcap
info-target: maybe-info-target-winsup
info-target: maybe-info-target-libgloss
@@ -1343,8 +1382,10 @@ dvi-target: maybe-dvi-target-libmudflap
dvi-target: maybe-dvi-target-libssp
dvi-target: maybe-dvi-target-newlib
dvi-target: maybe-dvi-target-libgcc
+dvi-target: maybe-dvi-target-libquadmath
dvi-target: maybe-dvi-target-libgfortran
dvi-target: maybe-dvi-target-libobjc
+dvi-target: maybe-dvi-target-libgo
dvi-target: maybe-dvi-target-libtermcap
dvi-target: maybe-dvi-target-winsup
dvi-target: maybe-dvi-target-libgloss
@@ -1457,8 +1498,10 @@ pdf-target: maybe-pdf-target-libmudflap
pdf-target: maybe-pdf-target-libssp
pdf-target: maybe-pdf-target-newlib
pdf-target: maybe-pdf-target-libgcc
+pdf-target: maybe-pdf-target-libquadmath
pdf-target: maybe-pdf-target-libgfortran
pdf-target: maybe-pdf-target-libobjc
+pdf-target: maybe-pdf-target-libgo
pdf-target: maybe-pdf-target-libtermcap
pdf-target: maybe-pdf-target-winsup
pdf-target: maybe-pdf-target-libgloss
@@ -1571,8 +1614,10 @@ html-target: maybe-html-target-libmudflap
html-target: maybe-html-target-libssp
html-target: maybe-html-target-newlib
html-target: maybe-html-target-libgcc
+html-target: maybe-html-target-libquadmath
html-target: maybe-html-target-libgfortran
html-target: maybe-html-target-libobjc
+html-target: maybe-html-target-libgo
html-target: maybe-html-target-libtermcap
html-target: maybe-html-target-winsup
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-11-16 5:04 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-11-16 5:04 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via fe12b092e5f0085281ce09e94c541ea2eeb8e4e4 (commit)
via ccae871af2e5963b0b6d5467a41982f7f218875b (commit)
via 83ef38220fa6a963e11b592dc63fe5ff540fcbf1 (commit)
via b3dc839d953520a1e4b2a66425e5c589475cec4d (commit)
via f4160a60204da977af41ce5cc984af76a0b96e65 (commit)
via 35e427b76abcbcbf3faa7be78828a900777476e3 (commit)
via 479d34415d438cb903b03495d21024f7a0d2bb38 (commit)
via 4da0884073e5a4e464eed13293fb4458255d8dd7 (commit)
via dd80b3ebfaae70b2fb34cc0a92348a272e6cc848 (commit)
via 603686b32e907e5a2f6761e2633c6a3937128c07 (commit)
via 5097cdcc3758b39b213555d944e995c57531004c (commit)
via 1f3223243cb9dce65d15e485eb7b10c3c29b3e0e (commit)
via 91e77a2dadfcc2da238145c8f7538e1bf60cd893 (commit)
via 1fbfe5836f6cb33edb0d232ba145ccd52c359b7e (commit)
via 95aa50e02997e2c95e342adb6895bda63bf89bac (commit)
via 94607e51af04ec6ee708c55239cdeb78c7d41df0 (commit)
via e8b212e21800a12661936e7a943c7daa9d1088a7 (commit)
via 97060a82bac95c43b0ad497fa1313b5ca59c3d00 (commit)
via e15d3f1e9a9e0373291f0f8ca8420ca3fc749ba2 (commit)
via 1b080e5c812a10d012790f79eefbf638de75ccd1 (commit)
via 774ffe9e9d84a0ff884bb2b21d97c8f915c5152e (commit)
via 550202613b8b567107580a062f418947b689e1ed (commit)
via 787ced139be0421e8c5e0fbfe7ff5429d8b67601 (commit)
via dcca8d3dfdd4166e3192214edb8e04dca236731f (commit)
via 0c775a6234f13a97229cc0bcebeb73f0cafa9d9d (commit)
via 1afa9b4c79b59bf187f6629e31cafb85f4e445c6 (commit)
via 9f2a4c761ef976fdfb4f577965f533ece6ae5fbd (commit)
from 1cc93f904c223a595c3f41894751af0b30445e86 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit fe12b092e5f0085281ce09e94c541ea2eeb8e4e4
Merge: 1cc93f9 ccae871
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Nov 16 06:04:00 2010 +0100
Merge remote branch 'gdb/master'
commit ccae871af2e5963b0b6d5467a41982f7f218875b
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Nov 16 03:27:05 2010 +0000
gdbserver: fix warning in nommu clone
Building gdbserver for nommu targets atm fails with:
linux-low.c: In function 'linux_tracefork_child':
linux-low.c:4151: error: pointer of type 'void *' used in arithmetic
So cast the void* to a char*.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 83ef38220fa6a963e11b592dc63fe5ff540fcbf1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 16 00:00:03 2010 +0000
*** empty log message ***
commit b3dc839d953520a1e4b2a66425e5c589475cec4d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Nov 15 23:00:05 2010 +0000
daily update
commit f4160a60204da977af41ce5cc984af76a0b96e65
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Nov 15 22:30:45 2010 +0000
blackfin: add support for L1 code/data flags
Add new linker options for marking programs to load into L1 memory
at runtime. This needs new EF flag bits, so declare them.
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 35e427b76abcbcbf3faa7be78828a900777476e3
Author: Doug Evans <dje@google.com>
Date: Mon Nov 15 17:25:09 2010 +0000
revert previous patch
commit 479d34415d438cb903b03495d21024f7a0d2bb38
Author: Doug Evans <dje@google.com>
Date: Mon Nov 15 17:17:56 2010 +0000
* gdb.base/maint.exp (maint print statistics): Increase timeout for
all targets. Restore old timeout afterwards.
commit 4da0884073e5a4e464eed13293fb4458255d8dd7
Author: mgretton <mgretton>
Date: Mon Nov 15 10:03:05 2010 +0000
PR gas/12198
* gas/config/tc-arm.c (arm_arch_v6m_only): New variable.
(aeabi_set_public_attributes): Ensure we only set the Operating System
Extension when we are on an M-profile core.
* gas/testsuite/gas/arm/pr12198-1.d: New test.
* gas/testsuite/gas/arm/pr12918-1.s: Likewise.
* gas/testsuite/gas/arm/pr12198-2.d: Likewise.
* gas/testsuite/gas/arm/pr12918-2.s: Likewise.
* include/opcode/arm.h (ARM_AEXT_V6M_ONLY): New define.
(ARM_AEXT_V6M): Rewrite in terms of ARM_AEXT_V6M_ONLY.
(ARM_ARCH_V6M_ONLY): New define.
commit dd80b3ebfaae70b2fb34cc0a92348a272e6cc848
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Nov 15 08:33:59 2010 +0000
bfd: bfin: drop needless symbol flag handling imported from FRV
The Blackfin bfd merged some FRV code recently, and then removed pieces
that didn't make sense. In the FRV code, it outputs a "_gp" symbol in
its BFD whereas in the Blackfin code, we don't. So while on the FRV
side it fiddles with the "flags" variable (sometimes using it for section
flags and sometimes using it for symbol flags), we don't need any of
that. This lead to BZ 12177 where the Blackfin code is a bit confusing.
So to fix things up, remove more stuff we don't need. Shouldn't change
the behavior at all.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 603686b32e907e5a2f6761e2633c6a3937128c07
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 15 00:00:33 2010 +0000
*** empty log message ***
commit 5097cdcc3758b39b213555d944e995c57531004c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Nov 14 23:00:06 2010 +0000
daily update
commit 1f3223243cb9dce65d15e485eb7b10c3c29b3e0e
Author: DJ Delorie <dj@delorie.com>
Date: Sun Nov 14 21:42:54 2010 +0000
merge from gcc
commit 91e77a2dadfcc2da238145c8f7538e1bf60cd893
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Sun Nov 14 12:10:55 2010 +0000
* arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
possible used of uninitialized variable.
commit 1fbfe5836f6cb33edb0d232ba145ccd52c359b7e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 14 00:00:34 2010 +0000
*** empty log message ***
commit 95aa50e02997e2c95e342adb6895bda63bf89bac
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Nov 13 23:00:06 2010 +0000
daily update
commit 94607e51af04ec6ee708c55239cdeb78c7d41df0
Author: DJ Delorie <dj@delorie.com>
Date: Sat Nov 13 02:20:29 2010 +0000
merge from gcc
commit e8b212e21800a12661936e7a943c7daa9d1088a7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 13 00:00:33 2010 +0000
*** empty log message ***
commit 97060a82bac95c43b0ad497fa1313b5ca59c3d00
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Nov 12 23:00:05 2010 +0000
daily update
commit e15d3f1e9a9e0373291f0f8ca8420ca3fc749ba2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Nov 12 22:10:17 2010 +0000
Properly copy BFD_COMPRESS and BFD_DECOMPRESS to archive element.
2010-11-12 H.J. Lu <hongjiu.lu@intel.com>
* archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS and
BFD_DECOMPRESS.
(bfd_openr_next_archived_file): Revert the last change.
commit 1b080e5c812a10d012790f79eefbf638de75ccd1
Author: Nathan Froyd <froydnj@codesourcery.com>
Date: Fri Nov 12 21:54:31 2010 +0000
gdb/
* rs6000-tdep.c (bfd_uses_spe_extensions): New function.
(rs6000_gdbarch_init): Call it.
commit 774ffe9e9d84a0ff884bb2b21d97c8f915c5152e
Author: Nathan Froyd <froydnj@codesourcery.com>
Date: Fri Nov 12 21:53:09 2010 +0000
gdb/
* rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
instructions if debugging an E500 binary.
commit 550202613b8b567107580a062f418947b689e1ed
Author: Nathan Froyd <froydnj@codesourcery.com>
Date: Fri Nov 12 21:49:55 2010 +0000
gdb/testsuite/
* gdb.stabs/gdb11479.exp: Use runto_main.
commit 787ced139be0421e8c5e0fbfe7ff5429d8b67601
Author: Nathan Froyd <froydnj@codesourcery.com>
Date: Fri Nov 12 21:47:47 2010 +0000
gdb/testsuite/
* gdb.base/break-entry.exp: Skip if using a stub.
commit dcca8d3dfdd4166e3192214edb8e04dca236731f
Author: Nathan Froyd <froydnj@codesourcery.com>
Date: Fri Nov 12 21:44:48 2010 +0000
gdb/testsuite/
* gdb.python/py-inferior.exp: Pack values in target endianness.
commit 0c775a6234f13a97229cc0bcebeb73f0cafa9d9d
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Nov 12 20:49:40 2010 +0000
gdb
* varobj.c (value_get_print_value): Rearrange. Pass stream to
apply_varobj_pretty_printer.
* c-lang.c: Include exceptions.h.
(c_get_string): Throw MEMORY_ERROR when appropriate.
* python/py-prettyprint.c (enum string_repr_result): New.
(print_stack_unless_memory_error): New function.
(print_string_repr): Change return type. Use
print_stack_unless_memory_error.
(print_children): Use print_stack_unless_memory_error.
(apply_val_pretty_printer): Update. Don't print children if
string representation threw an exception.
(apply_varobj_pretty_printer): Add 'stream' argument. Use
print_stack_unless_memory_error.
* python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
globals.
(_initialize_python): Initialize them.
* python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
gdbpy_convert_exception.
(GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
(gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
(gdbpy_convert_exception): Declare.
(apply_varobj_pretty_printer): Update.
* python/py-utils.c (gdbpy_convert_exception): New function.
gdb/doc
* gdb.texinfo (Basic Python): Update. Add xref.
(Exception Handling): Document new exception classes.
(Types In Python): Update.
(Frames In Python): Update.
gdb/testsuite
* gdb.python/py-prettyprint.c (main): Add new 'ns2' local.
* gdb.python/py-prettyprint.exp (run_lang_tests): Add test for
MemoryError.
* gdb.python/python.exp (gdb_py_test_multiple): Update exception
type.
* gdb.python/py-value.exp (test_value_in_inferior): Add test for
MemoryError.
(test_subscript_regression): Update exception type.
commit 1afa9b4c79b59bf187f6629e31cafb85f4e445c6
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Fri Nov 12 18:46:42 2010 +0000
2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
* mi/mi-main.c (mi_cmd_target_detach): Accept new
thread-group id format.
commit 9f2a4c761ef976fdfb4f577965f533ece6ae5fbd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Nov 12 12:38:38 2010 +0000
gdb/
* spu-tdep.c (spu_catch_start): Fix compilation error typo.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 18 +++
bfd/archive.c | 13 +--
bfd/elf32-bfin.c | 24 +++-
bfd/version.h | 2 +-
gdb/ChangeLog | 50 +++++++++
gdb/arm-tdep.c | 1 +
gdb/c-lang.c | 15 ++-
gdb/doc/ChangeLog | 7 ++
gdb/doc/gdb.texinfo | 47 ++++++---
gdb/gdbserver/ChangeLog | 4 +
gdb/gdbserver/linux-low.c | 2 +-
gdb/mi/mi-main.c | 31 +++++-
gdb/python/py-prettyprint.c | 90 ++++++++++++----
gdb/python/py-utils.c | 19 ++++
gdb/python/python-internal.h | 18 ++--
gdb/python/python.c | 13 +++
gdb/rs6000-tdep.c | 149 ++++++++++++++++++++++++--
gdb/spu-tdep.c | 2 +-
gdb/testsuite/ChangeLog | 23 ++++
gdb/testsuite/gdb.base/break-entry.exp | 14 +++
gdb/testsuite/gdb.python/py-inferior.exp | 25 +++--
gdb/testsuite/gdb.python/py-prettyprint.c | 6 +-
gdb/testsuite/gdb.python/py-prettyprint.exp | 2 +
gdb/testsuite/gdb.python/py-value.exp | 7 +-
gdb/testsuite/gdb.python/python.exp | 4 +-
gdb/testsuite/gdb.stabs/gdb11479.exp | 6 +-
gdb/varobj.c | 16 ++-
gdb/version.in | 2 +-
include/ChangeLog | 5 +
include/elf/bfin.h | 3 +
include/opcode/ChangeLog | 7 ++
include/opcode/arm.h | 7 +-
libiberty/ChangeLog | 12 ++
libiberty/cp-demangle.c | 6 -
libiberty/simple-object-coff.c | 3 +-
libiberty/testsuite/demangle-expected | 9 ++-
36 files changed, 549 insertions(+), 113 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index aab75e9..a67868e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,21 @@
+2010-11-16 Jie Zhang <jie.zhang@analog.com>
+
+ * elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
+ (elf32_bfin_data_in_l1): New variable.
+ (elf32_bfin_final_write_processing): New.
+ (elf_backend_final_write_processing): Define.
+
+2010-11-15 Mike Frysinger <vapier@gentoo.org>
+
+ PR binutils/12177
+ * elf32-bfin.c (_bfin_create_got_section): Drop unused flags code.
+
+2010-11-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS and
+ BFD_DECOMPRESS.
+ (bfd_openr_next_archived_file): Revert the last change.
+
2010-11-11 Mingming Sun <mingm.sun@gmail.com>
* archures.c (bfd_mach_mips_loongson_3a): Defined.
diff --git a/bfd/archive.c b/bfd/archive.c
index ed40141..258c8d9 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -655,6 +655,9 @@ _bfd_get_elt_at_filepos (bfd *archive, file_ptr filepos)
n_nfd->arelt_data = new_areldata;
+ /* Copy BFD_COMPRESS and BFD_DECOMPRESS flags. */
+ n_nfd->flags |= archive->flags & (BFD_COMPRESS | BFD_DECOMPRESS);
+
if (_bfd_add_bfd_to_archive_cache (archive, filepos, n_nfd))
return n_nfd;
@@ -697,8 +700,6 @@ DESCRIPTION
bfd *
bfd_openr_next_archived_file (bfd *archive, bfd *last_file)
{
- bfd *abfd;
-
if ((bfd_get_format (archive) != bfd_archive)
|| (archive->direction == write_direction))
{
@@ -706,14 +707,8 @@ bfd_openr_next_archived_file (bfd *archive, bfd *last_file)
return NULL;
}
- abfd = BFD_SEND (archive,
+ return BFD_SEND (archive,
openr_next_archived_file, (archive, last_file));
-
- /* Copy BFD_COMPRESS and BFD_DECOMPRESS flags. */
- if (abfd)
- abfd->flags |= archive->flags & (BFD_COMPRESS | BFD_DECOMPRESS);
-
- return abfd;
}
bfd *
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c
index 237391b..56af244 100644
--- a/bfd/elf32-bfin.c
+++ b/bfd/elf32-bfin.c
@@ -1120,6 +1120,22 @@ bfin_reloc_type_lookup (bfd * abfd ATTRIBUTE_UNUSED,
return (reloc_howto_type *) NULL;
}
+/* Set by ld emulation if --code-in-l1. */
+bfd_boolean elf32_bfin_code_in_l1 = 0;
+
+/* Set by ld emulation if --data-in-l1. */
+bfd_boolean elf32_bfin_data_in_l1 = 0;
+
+static void
+elf32_bfin_final_write_processing (bfd *abfd,
+ bfd_boolean linker ATTRIBUTE_UNUSED)
+{
+ if (elf32_bfin_code_in_l1)
+ elf_elfheader (abfd)->e_flags |= EF_BFIN_CODE_IN_L1;
+ if (elf32_bfin_data_in_l1)
+ elf_elfheader (abfd)->e_flags |= EF_BFIN_DATA_IN_L1;
+}
+
/* Return TRUE if the name is a local label.
bfin local labels begin with L$. */
static bfd_boolean
@@ -3442,14 +3458,8 @@ _bfin_create_got_section (bfd *abfd, struct bfd_link_info *info)
return FALSE;
bfinfdpic_gotfixup_section (info) = s;
- flags = BSF_GLOBAL;
- }
- else
- {
- flags = BSF_GLOBAL | BSF_WEAK;
}
- flags = pltflags;
pltflags |= SEC_CODE;
if (bed->plt_not_loaded)
pltflags &= ~ (SEC_CODE | SEC_LOAD | SEC_HAS_CONTENTS);
@@ -5793,6 +5803,8 @@ struct bfd_elf_special_section const elf32_bfin_special_sections[] =
elf32_bfin_set_private_flags
#define bfd_elf32_bfd_print_private_bfd_data \
elf32_bfin_print_private_bfd_data
+#define elf_backend_final_write_processing \
+ elf32_bfin_final_write_processing
#define elf_backend_reloc_type_class elf32_bfin_reloc_type_class
#define elf_backend_can_gc_sections 1
#define elf_backend_special_sections elf32_bfin_special_sections
diff --git a/bfd/version.h b/bfd/version.h
index 653cfa1..36fbb4f 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101112
+#define BFD_VERSION_DATE 20101116
#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 2c413a3..7669965 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,53 @@
+2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
+ possible used of uninitialized variable.
+
+2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
+
+ * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
+ (rs6000_gdbarch_init): Call it.
+
+2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
+
+ * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
+ instructions if debugging an E500 binary.
+
+2010-11-12 Tom Tromey <tromey@redhat.com>
+
+ * varobj.c (value_get_print_value): Rearrange. Pass stream to
+ apply_varobj_pretty_printer.
+ * c-lang.c: Include exceptions.h.
+ (c_get_string): Throw MEMORY_ERROR when appropriate.
+ * python/py-prettyprint.c (enum string_repr_result): New.
+ (print_stack_unless_memory_error): New function.
+ (print_string_repr): Change return type. Use
+ print_stack_unless_memory_error.
+ (print_children): Use print_stack_unless_memory_error.
+ (apply_val_pretty_printer): Update. Don't print children if
+ string representation threw an exception.
+ (apply_varobj_pretty_printer): Add 'stream' argument. Use
+ print_stack_unless_memory_error.
+ * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
+ globals.
+ (_initialize_python): Initialize them.
+ * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
+ gdbpy_convert_exception.
+ (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
+ (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
+ (gdbpy_convert_exception): Declare.
+ (apply_varobj_pretty_printer): Update.
+ * python/py-utils.c (gdbpy_convert_exception): New function.
+
+2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * mi/mi-main.c (mi_cmd_target_detach): Accept new
+ thread-group id format.
+
+2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * spu-tdep.c (spu_catch_start): Fix compilation error typo.
+
2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
* python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 2df96cd..7c24d30 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -2233,6 +2233,7 @@ arm_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc)
if (pc < func_start + 4)
return 0;
+ found_stack_adjust = 0;
insn = read_memory_unsigned_integer (pc - 4, 4, byte_order_for_code);
if (bits (insn, 28, 31) != INST_NV)
{
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index 015ba16..775a6f8 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -35,6 +35,7 @@
#include "cp-support.h"
#include "gdb_obstack.h"
#include <ctype.h>
+#include "exceptions.h"
extern void _initialize_c_language (void);
@@ -698,13 +699,19 @@ c_get_string (struct value *value, gdb_byte **buffer, int *length,
}
else
{
- err = read_string (value_as_address (value), *length, width, fetchlimit,
- byte_order, buffer, length);
+ CORE_ADDR addr = value_as_address (value);
+
+ err = read_string (addr, *length, width, fetchlimit,
+ byte_order, buffer, length);
if (err)
{
xfree (*buffer);
- error (_("Error reading string from inferior: %s"),
- safe_strerror (err));
+ if (err == EIO)
+ throw_error (MEMORY_ERROR, "Address %s out of bounds",
+ paddress (get_type_arch (type), addr));
+ else
+ error (_("Error reading string from inferior: %s"),
+ safe_strerror (err));
}
}
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index d999772..75f6f70 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-12 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Basic Python): Update. Add xref.
+ (Exception Handling): Document new exception classes.
+ (Types In Python): Update.
+ (Frames In Python): Update.
+
2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Breakpoints In Python): Document "internal"
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index cf70ce4..ddc711b 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20729,8 +20729,9 @@ spaces if the parameter has a multi-part name. For example,
@samp{print object} is a valid parameter name.
If the named parameter does not exist, this function throws a
-@code{RuntimeError}. Otherwise, the parameter's value is converted to
-a Python value of the appropriate type, and returned.
+@code{gdb.error} (@pxref{Exception Handling}). Otherwise, the
+parameter's value is converted to a Python value of the appropriate
+type, and returned.
@end defun
@findex gdb.history
@@ -20741,7 +20742,7 @@ If @var{number} is negative, then @value{GDBN} will take its absolute value
and count backward from the last element (i.e., the most recent element) to
find the value to return. If @var{number} is zero, then @value{GDBN} will
return the most recent element. If the element specified by @var{number}
-doesn't exist in the value history, a @code{RuntimeError} exception will be
+doesn't exist in the value history, a @code{gdb.error} exception will be
raised.
If no exception is raised, the return value is always an instance of
@@ -20869,15 +20870,31 @@ Traceback (most recent call last):
NameError: name 'foo' is not defined
@end smallexample
-@value{GDBN} errors that happen in @value{GDBN} commands invoked by Python
-code are converted to Python @code{RuntimeError} exceptions. User
-interrupt (via @kbd{C-c} or by typing @kbd{q} at a pagination
-prompt) is translated to a Python @code{KeyboardInterrupt}
-exception. If you catch these exceptions in your Python code, your
-exception handler will see @code{RuntimeError} or
-@code{KeyboardInterrupt} as the exception type, the @value{GDBN} error
-message as its value, and the Python call stack backtrace at the
-Python statement closest to where the @value{GDBN} error occured as the
+@value{GDBN} errors that happen in @value{GDBN} commands invoked by
+Python code are converted to Python exceptions. The type of the
+Python exception depends on the error.
+
+@ftable @code
+@item gdb.error
+This is the base class for most exceptions generated by @value{GDBN}.
+It is derived from @code{RuntimeError}, for compatibility with earlier
+versions of @value{GDBN}.
+
+If an error occurring in @value{GDBN} does not fit into some more
+specific category, then the generated exception will have this type.
+
+@item gdb.MemoryError
+This is a subclass of @code{gdb.error} which is thrown when an
+operation tried to access invalid memory in the inferior.
+
+@item KeyboardInterrupt
+User interrupt (via @kbd{C-c} or by typing @kbd{q} at a pagination
+prompt) is translated to a Python @code{KeyboardInterrupt} exception.
+@end ftable
+
+In all cases, your exception handler will see the @value{GDBN} error
+message as its value and the Python call stack backtrace at the Python
+statement closest to where the @value{GDBN} error occured as the
traceback.
@findex gdb.GdbError
@@ -21242,7 +21259,7 @@ variant of this type. That is, the result is neither @code{const} nor
Return a Python @code{Tuple} object that contains two elements: the
low bound of the argument type and the high bound of that type. If
the type does not have a range, @value{GDBN} will raise a
-@code{RuntimeError} exception.
+@code{gdb.error} exception (@pxref{Exception Handling}).
@end defmethod
@defmethod Type reference
@@ -22433,8 +22450,8 @@ When the debugged program stops, @value{GDBN} is able to analyze its call
stack (@pxref{Frames,,Stack frames}). The @code{gdb.Frame} class
represents a frame in the stack. A @code{gdb.Frame} object is only valid
while its corresponding frame exists in the inferior's stack. If you try
-to use an invalid frame object, @value{GDBN} will throw a @code{RuntimeError}
-exception.
+to use an invalid frame object, @value{GDBN} will throw a @code{gdb.error}
+exception (@pxref{Exception Handling}).
Two @code{gdb.Frame} objects can be compared for equality with the @code{==}
operator, like:
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index cbee17c..656506c 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-16 Mike Frysinger <vapier@gentoo.org>
+
+ * linux-low.c (linux_tracefork_child): Add char* cast to arg.
+
2010-10-22 Jie Zhang <jie@codesourcery.com>
* Makefile.in: Add FLAGS_TO_PASS variable.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index b798c16..c65ce54 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -4148,7 +4148,7 @@ linux_tracefork_child (void *arg)
__clone2 (linux_tracefork_grandchild, arg, STACK_SIZE,
CLONE_VM | SIGCHLD, NULL);
#else
- clone (linux_tracefork_grandchild, arg + STACK_SIZE,
+ clone (linux_tracefork_grandchild, (char *) arg + STACK_SIZE,
CLONE_VM | SIGCHLD, NULL);
#endif
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 49e913e..3343c03 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -418,19 +418,40 @@ void
mi_cmd_target_detach (char *command, char **argv, int argc)
{
if (argc != 0 && argc != 1)
- error ("Usage: -target-detach [thread-group]");
+ error ("Usage: -target-detach [pid | thread-group]");
if (argc == 1)
{
struct thread_info *tp;
char *end = argv[0];
- int pid = strtol (argv[0], &end, 10);
+ int pid;
- if (*end != '\0')
- error (_("Cannot parse thread group id '%s'"), argv[0]);
+ /* First see if we are dealing with a thread-group id. */
+ if (*argv[0] == 'i')
+ {
+ struct inferior *inf;
+ int id = strtoul (argv[0] + 1, &end, 0);
+
+ if (*end != '\0')
+ error (_("Invalid syntax of thread-group id '%s'"), argv[0]);
+
+ inf = find_inferior_id (id);
+ if (!inf)
+ error (_("Non-existent thread-group id '%d'"), id);
+
+ pid = inf->pid;
+ }
+ else
+ {
+ /* We must be dealing with a pid. */
+ pid = strtol (argv[0], &end, 10);
+
+ if (*end != '\0')
+ error (_("Invalid identifier '%s'"), argv[0]);
+ }
/* Pick any thread in the desired process. Current
- target_detach deteches from the parent of inferior_ptid. */
+ target_detach detaches from the parent of inferior_ptid. */
tp = iterate_over_threads (find_thread_of_process, &pid);
if (!tp)
error (_("Thread group is empty"));
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index afe2b40..7be1409 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -29,6 +29,18 @@
#ifdef HAVE_PYTHON
#include "python-internal.h"
+/* Return type of print_string_repr. */
+
+enum string_repr_result
+ {
+ /* The string method returned None. */
+ string_repr_none,
+ /* The string method had an error. */
+ string_repr_error,
+ /* Everything ok. */
+ string_repr_ok
+ };
+
/* Helper function for find_pretty_printer which iterates over a list,
calls each function and inspects output. This will return a
printer object if one recognizes VALUE. If no printer is found, it
@@ -256,12 +268,40 @@ gdbpy_get_display_hint (PyObject *printer)
return result;
}
+/* A wrapper for gdbpy_print_stack that ignores MemoryError. */
+
+static void
+print_stack_unless_memory_error (struct ui_file *stream)
+{
+ if (PyErr_ExceptionMatches (gdbpy_gdb_memory_error))
+ {
+ struct cleanup *cleanup;
+ PyObject *type, *value, *trace;
+ char *msg;
+
+ PyErr_Fetch (&type, &value, &trace);
+ cleanup = make_cleanup_py_decref (type);
+ make_cleanup_py_decref (value);
+ make_cleanup_py_decref (trace);
+
+ msg = gdbpy_exception_to_string (type, value);
+ make_cleanup (xfree, msg);
+
+ if (msg == NULL || *msg == '\0')
+ fprintf_filtered (stream, _("<error reading variable"));
+ else
+ fprintf_filtered (stream, _("<error reading variable: %s>"), msg);
+
+ do_cleanups (cleanup);
+ }
+ else
+ gdbpy_print_stack ();
+}
+
/* Helper for apply_val_pretty_printer which calls to_string and
- formats the result. If the value returnd is Py_None, nothing is
- printed and the function returns a 1; in all other cases data is
- printed as given by the pretty printer and the function returns 0.
-*/
-static int
+ formats the result. */
+
+static enum string_repr_result
print_string_repr (PyObject *printer, const char *hint,
struct ui_file *stream, int recurse,
const struct value_print_options *options,
@@ -270,7 +310,7 @@ print_string_repr (PyObject *printer, const char *hint,
{
struct value *replacement = NULL;
PyObject *py_str = NULL;
- int is_py_none = 0;
+ enum string_repr_result result = string_repr_ok;
py_str = pretty_print_one_value (printer, &replacement);
if (py_str)
@@ -278,7 +318,7 @@ print_string_repr (PyObject *printer, const char *hint,
struct cleanup *cleanup = make_cleanup_py_decref (py_str);
if (py_str == Py_None)
- is_py_none = 1;
+ result = string_repr_none;
else if (gdbpy_is_lazy_string (py_str))
{
CORE_ADDR addr;
@@ -316,7 +356,10 @@ print_string_repr (PyObject *printer, const char *hint,
fputs_filtered (output, stream);
}
else
- gdbpy_print_stack ();
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-11-12 11:47 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-11-12 11:47 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 1cc93f904c223a595c3f41894751af0b30445e86 (commit)
via 003496e6982380db1773e30170b119c7f3620dff (commit)
via 3edd55a2b0f3444c7d37cbf003b73694e54d2bc2 (commit)
via ef713b00f2cd6a459d0a54fc135a89b037f8473b (commit)
via 7d5a91474a0cdb796031ddc25aa0d107be6eb39d (commit)
from f315c52904765d5565ca733990b4669cbdd49e9b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 1cc93f904c223a595c3f41894751af0b30445e86
Merge: f315c52 003496e
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Fri Nov 12 11:46:56 2010 +0000
Merge remote branch 'gdb/master'
commit 003496e6982380db1773e30170b119c7f3620dff
Author: DJ Delorie <dj@delorie.com>
Date: Fri Nov 12 01:01:12 2010 +0000
* rx.c (lsb_count): New.
(divu_cycles): New.
(div_cycles): New.
(decode_opcode): Fix cycle count math for div, divu, suntil, and
swhile.
commit 3edd55a2b0f3444c7d37cbf003b73694e54d2bc2
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 12 00:00:02 2010 +0000
*** empty log message ***
commit ef713b00f2cd6a459d0a54fc135a89b037f8473b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Nov 11 23:00:05 2010 +0000
daily update
commit 7d5a91474a0cdb796031ddc25aa0d107be6eb39d
Author: pmuldoon <pmuldoon>
Date: Thu Nov 11 14:11:49 2010 +0000
2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
* python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
NULL.
(BPPY_SET_REQUIRE_VALID): Ditto.
(bpnum_is_valid): Delete function.
(bppy_get_visibility): New function.
(bppy_new): Parse for, and validate internal keyword. Pass
internal keyword to breakpoint or watchpoint functions.
(build_bp_list): New function.
(gdbpy_breakpoints): Rewrite. Use build_bp_list and
iterate_over_breakpoints.
(gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
look-aside vector.
(gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
to internal breakpoint chain.
* breakpoint.c (set_breakpoint_number): New function.
(breakpoint_1): Check if breakpoint number is more than zero.
(set_raw_breakpoint_without_location): Set py_bp_object to NULL.
(create_breakpoint_sal): Take a new parameter called internal.
Call set_breakpoint_number with internal parameter. Do not
mention internal breakpoints. All callers updated.
(create_breakpoint): Ditto.
(create_breakpoints_sal): Ditto.
(watch_command_1): Ditto.
(watch_command_wrapper): Take a new parameter called internal.
All callers updated.
(rwatch_command_wrapper): Ditto.
(awatch_command_wrapper): Ditto.
(save_breakpoints): Update breakpoint save condition check.
(iterate_over_breakpoints): New function.
* breakpoint.h: Add conditional python includes. Add py_bp_object
and comment to struct breakpoint. Update all callers.
* defs.h: Add PyObject definition for GDB builds without Python.
2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Breakpoints In Python): Document "internal"
parameter, and visible attribute.
2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-breakpoint.exp: Add internal watchpoint and
breakpoint tests.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 36 ++++++
gdb/breakpoint.c | 137 +++++++++++++++++-------
gdb/breakpoint.h | 34 +++++-
gdb/defs.h | 4 +
gdb/doc/ChangeLog | 5 +
gdb/doc/gdb.texinfo | 18 +++-
gdb/mi/mi-cmd-break.c | 8 +-
gdb/python/py-breakpoint.c | 161 +++++++++++++++------------
gdb/spu-tdep.c | 3 +-
gdb/testsuite/ChangeLog | 5 +
gdb/testsuite/gdb.python/py-breakpoint.exp | 39 +++++++
gdb/varobj.c | 2 -
gdb/version.in | 2 +-
sim/rx/ChangeLog | 8 ++
sim/rx/rx.c | 93 +++++++++++++++--
16 files changed, 422 insertions(+), 135 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 7f9f32a..653cfa1 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101111
+#define BFD_VERSION_DATE 20101112
#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 8c8a5bd..2c413a3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,39 @@
+2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
+
+ * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
+ NULL.
+ (BPPY_SET_REQUIRE_VALID): Ditto.
+ (bpnum_is_valid): Delete function.
+ (bppy_get_visibility): New function.
+ (bppy_new): Parse for, and validate internal keyword. Pass
+ internal keyword to breakpoint or watchpoint functions.
+ (build_bp_list): New function.
+ (gdbpy_breakpoints): Rewrite. Use build_bp_list and
+ iterate_over_breakpoints.
+ (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
+ look-aside vector.
+ (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
+ to internal breakpoint chain.
+
+ * breakpoint.c (set_breakpoint_number): New function.
+ (breakpoint_1): Check if breakpoint number is more than zero.
+ (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
+ (create_breakpoint_sal): Take a new parameter called internal.
+ Call set_breakpoint_number with internal parameter. Do not
+ mention internal breakpoints. All callers updated.
+ (create_breakpoint): Ditto.
+ (create_breakpoints_sal): Ditto.
+ (watch_command_1): Ditto.
+ (watch_command_wrapper): Take a new parameter called internal.
+ All callers updated.
+ (rwatch_command_wrapper): Ditto.
+ (awatch_command_wrapper): Ditto.
+ (save_breakpoints): Update breakpoint save condition check.
+ (iterate_over_breakpoints): New function.
+ * breakpoint.h: Add conditional python includes. Add py_bp_object
+ and comment to struct breakpoint. Update all callers.
+ * defs.h: Add PyObject definition for GDB builds without Python.
+
2010-11-10 Doug Evans <dje@google.com>
* python/lib/gdb/command/pretty_printers.py
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ffa8c52..6b55313 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2068,6 +2068,24 @@ reattach_breakpoints (int pid)
static int internal_breakpoint_number = -1;
+/* Set the breakpoint number of B, depending on the value of INTERNAL.
+ If INTERNAL is non-zero, the breakpoint number will be populated
+ from internal_breakpoint_number and that variable decremented.
+ Otherwis the breakpoint number will be populated from
+ breakpoint_count and that value incremented. Internal breakpoints
+ do not set the internal var bpnum. */
+static void
+set_breakpoint_number (int internal, struct breakpoint *b)
+{
+ if (internal)
+ b->number = internal_breakpoint_number--;
+ else
+ {
+ set_breakpoint_count (breakpoint_count + 1);
+ b->number = breakpoint_count;
+ }
+}
+
static struct breakpoint *
create_internal_breakpoint (struct gdbarch *gdbarch,
CORE_ADDR address, enum bptype type)
@@ -4939,7 +4957,8 @@ breakpoint_1 (int bnum, int allflag, int (*filter) (const struct breakpoint *))
if (filter && !filter (b))
continue;
- if (allflag || user_settable_breakpoint (b))
+ if (allflag || (user_settable_breakpoint (b)
+ && b->number > 0))
{
int addr_bit, type_len;
@@ -5007,7 +5026,8 @@ breakpoint_1 (int bnum, int allflag, int (*filter) (const struct breakpoint *))
/* We only print out user settable breakpoints unless the
allflag is set. */
- if (allflag || user_settable_breakpoint (b))
+ if (allflag || (user_settable_breakpoint (b)
+ && b->number > 0))
print_one_breakpoint (b, &last_loc, print_address_bits, allflag);
}
}
@@ -5456,6 +5476,7 @@ set_raw_breakpoint_without_location (struct gdbarch *gdbarch,
b->syscalls_to_be_caught = NULL;
b->ops = NULL;
b->condition_not_parsed = 0;
+ b->py_bp_object = NULL;
/* Add this breakpoint to the end of the chain
so that a list of breakpoints will come out in order
@@ -6914,7 +6935,8 @@ create_breakpoint_sal (struct gdbarch *gdbarch,
char *cond_string,
enum bptype type, enum bpdisp disposition,
int thread, int task, int ignore_count,
- struct breakpoint_ops *ops, int from_tty, int enabled)
+ struct breakpoint_ops *ops, int from_tty,
+ int enabled, int internal)
{
struct breakpoint *b = NULL;
int i;
@@ -6951,8 +6973,7 @@ create_breakpoint_sal (struct gdbarch *gdbarch,
if (i == 0)
{
b = set_raw_breakpoint (gdbarch, sal, type);
- set_breakpoint_count (breakpoint_count + 1);
- b->number = breakpoint_count;
+ set_breakpoint_number (internal, b);
b->thread = thread;
b->task = task;
@@ -7034,7 +7055,12 @@ Couldn't determine the static tracepoint marker to probe"));
= xstrprintf ("*%s", paddress (b->loc->gdbarch, b->loc->address));
b->ops = ops;
- mention (b);
+ if (internal)
+ /* Do not mention breakpoints with a negative number, but do
+ notify observers. */
+ observer_notify_breakpoint_created (b->number);
+ else
+ mention (b);
}
/* Remove element at INDEX_TO_REMOVE from SAL, shifting other
@@ -7190,7 +7216,7 @@ create_breakpoints_sal (struct gdbarch *gdbarch,
enum bptype type, enum bpdisp disposition,
int thread, int task, int ignore_count,
struct breakpoint_ops *ops, int from_tty,
- int enabled)
+ int enabled, int internal)
{
int i;
@@ -7201,7 +7227,8 @@ create_breakpoints_sal (struct gdbarch *gdbarch,
create_breakpoint_sal (gdbarch, expanded, addr_string[i],
cond_string, type, disposition,
- thread, task, ignore_count, ops, from_tty, enabled);
+ thread, task, ignore_count, ops,
+ from_tty, enabled, internal);
}
}
@@ -7470,8 +7497,10 @@ decode_static_tracepoint_spec (char **arg_p)
parameter. If non-zero, the function will parse arg, extracting
breakpoint location, address and thread. Otherwise, ARG is just the
location of breakpoint, with condition and thread specified by the
- COND_STRING and THREAD parameters. Returns true if any breakpoint
- was created; false otherwise. */
+ COND_STRING and THREAD parameters. If INTERNAL is non-zero, the
+ breakpoint number will be allocated from the internal breakpoint
+ count. Returns true if any breakpoint was created; false
+ otherwise. */
int
create_breakpoint (struct gdbarch *gdbarch,
@@ -7481,8 +7510,7 @@ create_breakpoint (struct gdbarch *gdbarch,
int ignore_count,
enum auto_boolean pending_break_support,
struct breakpoint_ops *ops,
- int from_tty,
- int enabled)
+ int from_tty, int enabled, int internal)
{
struct gdb_exception e;
struct symtabs_and_lines sals;
@@ -7658,12 +7686,15 @@ create_breakpoint (struct gdbarch *gdbarch,
cond_string, type_wanted,
tempflag ? disp_del : disp_donttouch,
thread, task, ignore_count, ops,
- from_tty, enabled);
+ from_tty, enabled, internal);
do_cleanups (old_chain);
/* Get the tracepoint we just created. */
- tp = get_breakpoint (breakpoint_count);
+ if (internal)
+ tp = get_breakpoint (internal_breakpoint_number);
+ else
+ tp = get_breakpoint (breakpoint_count);
gdb_assert (tp != NULL);
/* Given that its possible to have multiple markers with
@@ -7679,7 +7710,7 @@ create_breakpoint (struct gdbarch *gdbarch,
create_breakpoints_sal (gdbarch, sals, addr_string, cond_string,
type_wanted, tempflag ? disp_del : disp_donttouch,
thread, task, ignore_count, ops, from_tty,
- enabled);
+ enabled, internal);
}
else
{
@@ -7688,8 +7719,7 @@ create_breakpoint (struct gdbarch *gdbarch,
make_cleanup (xfree, copy_arg);
b = set_raw_breakpoint_without_location (gdbarch, type_wanted);
- set_breakpoint_count (breakpoint_count + 1);
- b->number = breakpoint_count;
+ set_breakpoint_number (internal, b);
b->thread = -1;
b->addr_string = addr_string[0];
b->cond_string = NULL;
@@ -7699,13 +7729,19 @@ create_breakpoint (struct gdbarch *gdbarch,
b->ops = ops;
b->enable_state = enabled ? bp_enabled : bp_disabled;
b->pspace = current_program_space;
+ b->py_bp_object = NULL;
if (enabled && b->pspace->executing_startup
&& (b->type == bp_breakpoint
|| b->type == bp_hardware_breakpoint))
b->enable_state = bp_startup_disabled;
- mention (b);
+ if (internal)
+ /* Do not mention breakpoints with a negative number,
+ but do notify observers. */
+ observer_notify_breakpoint_created (b->number);
+ else
+ mention (b);
}
if (sals.nelts > 1)
@@ -7750,7 +7786,8 @@ break_command_1 (char *arg, int flag, int from_tty)
pending_break_support,
NULL /* breakpoint_ops */,
from_tty,
- 1 /* enabled */);
+ 1 /* enabled */,
+ 0 /* internal */);
}
@@ -8017,7 +8054,8 @@ watchpoint_exp_is_const (const struct expression *exp)
hw_read: watch read,
hw_access: watch access (read or write) */
static void
-watch_command_1 (char *arg, int accessflag, int from_tty, int just_location)
+watch_command_1 (char *arg, int accessflag, int from_tty,
+ int just_location, int internal)
{
struct breakpoint *b, *scope_breakpoint = NULL;
struct expression *exp;
@@ -8225,8 +8263,7 @@ watch_command_1 (char *arg, int accessflag, int from_tty, int just_location)
/* Now set up the breakpoint. */
b = set_raw_breakpoint_without_location (NULL, bp_type);
- set_breakpoint_count (breakpoint_count + 1);
- b->number = breakpoint_count;
+ set_breakpoint_number (internal, b);
b->thread = thread;
b->disposition = disp_donttouch;
b->exp = exp;
@@ -8285,8 +8322,12 @@ watch_command_1 (char *arg, int accessflag, int from_tty, int just_location)
/* Finally update the new watchpoint. This creates the locations
that should be inserted. */
update_watchpoint (b, 1);
-
- mention (b);
+ if (internal)
+ /* Do not mention breakpoints with a negative number, but do
+ notify observers. */
+ observer_notify_breakpoint_created (b->number);
+ else
+ mention (b);
update_global_location_list (1);
}
@@ -8370,9 +8411,9 @@ can_use_hardware_watchpoint (struct value *v)
}
void
-watch_command_wrapper (char *arg, int from_tty)
+watch_command_wrapper (char *arg, int from_tty, int internal)
{
- watch_command_1 (arg, hw_write, from_tty, 0);
+ watch_command_1 (arg, hw_write, from_tty, 0, internal);
}
/* A helper function that looks for an argument at the start of a
@@ -8408,7 +8449,7 @@ watch_maybe_just_location (char *arg, int accessflag, int from_tty)
just_location = 1;
}
- watch_command_1 (arg, accessflag, from_tty, just_location);
+ watch_command_1 (arg, accessflag, from_tty, just_location, 0);
}
static void
@@ -8418,9 +8459,9 @@ watch_command (char *arg, int from_tty)
}
void
-rwatch_command_wrapper (char *arg, int from_tty)
+rwatch_command_wrapper (char *arg, int from_tty, int internal)
{
- watch_command_1 (arg, hw_read, from_tty, 0);
+ watch_command_1 (arg, hw_read, from_tty, 0, internal);
}
static void
@@ -8430,9 +8471,9 @@ rwatch_command (char *arg, int from_tty)
}
void
-awatch_command_wrapper (char *arg, int from_tty)
+awatch_command_wrapper (char *arg, int from_tty, int internal)
{
- watch_command_1 (arg, hw_access, from_tty, 0);
+ watch_command_1 (arg, hw_access, from_tty, 0, internal);
}
static void
@@ -8790,7 +8831,8 @@ handle_gnu_v3_exceptions (int tempflag, char *cond_string,
0,
AUTO_BOOLEAN_TRUE /* pending */,
&gnu_v3_exception_catchpoint_ops, from_tty,
- 1 /* enabled */);
+ 1 /* enabled */,
+ 0 /* internal */);
return 1;
}
@@ -11010,7 +11052,8 @@ trace_command (char *arg, int from_tty)
pending_break_support,
NULL,
from_tty,
- 1 /* enabled */))
+ 1 /* enabled */,
+ 0 /* internal */))
set_tracepoint_count (breakpoint_count);
}
@@ -11026,7 +11069,8 @@ ftrace_command (char *arg, int from_tty)
pending_break_support,
NULL,
from_tty,
- 1 /* enabled */))
+ 1 /* enabled */,
+ 0 /* internal */))
set_tracepoint_count (breakpoint_count);
}
@@ -11044,7 +11088,8 @@ strace_command (char *arg, int from_tty)
pending_break_support,
NULL,
from_tty,
- 1 /* enabled */))
+ 1 /* enabled */,
+ 0 /* internal */))
set_tracepoint_count (breakpoint_count);
}
@@ -11106,7 +11151,8 @@ create_tracepoint_from_upload (struct uploaded_tp *utp)
pending_break_support,
NULL,
0 /* from_tty */,
- utp->enabled /* enabled */))
+ utp->enabled /* enabled */,
+ 0 /* internal */))
return NULL;
set_tracepoint_count (breakpoint_count);
@@ -11372,7 +11418,7 @@ save_breakpoints (char *filename, int from_tty,
ALL_BREAKPOINTS (tp)
{
/* Skip internal and momentary breakpoints. */
- if (!user_settable_breakpoint (tp))
+ if (!user_settable_breakpoint (tp) || tp->number < 0)
continue;
/* If we have a filter, only save the breakpoints it accepts. */
@@ -11410,7 +11456,7 @@ save_breakpoints (char *filename, int from_tty,
ALL_BREAKPOINTS (tp)
{
/* Skip internal and momentary breakpoints. */
- if (!user_settable_breakpoint (tp))
+ if (!user_settable_breakpoint (tp) || tp->number < 0)
continue;
/* If we have a filter, only save the breakpoints it accepts. */
@@ -11627,6 +11673,21 @@ save_command (char *arg, int from_tty)
help_list (save_cmdlist, "save ", -1, gdb_stdout);
}
+struct breakpoint *
+iterate_over_breakpoints (int (*callback) (struct breakpoint *, void *),
+ void *data)
+{
+ struct breakpoint *b, *temp;
+
+ ALL_BREAKPOINTS_SAFE (b, temp)
+ {
+ if ((*callback) (b, data))
+ return b;
+ }
+
+ return NULL;
+}
+
void
_initialize_breakpoint (void)
{
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 9f7600a..e34c2d3 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -24,6 +24,11 @@
#include "value.h"
#include "vec.h"
+#if HAVE_PYTHON
+#include "python/python.h"
+#include "python/python-internal.h"
+#endif
+
struct value;
struct block;
@@ -557,7 +562,14 @@ struct breakpoint
breakpoints, we will use this index to try to find the same
marker again. */
int static_trace_marker_id_idx;
- };
+
+ /* With a Python scripting enabled GDB, store a reference to the
+ Python object that has been associated with this breakpoint.
+ This is always NULL for a GDB that is not script enabled. It
+ can sometimes be NULL for enabled GDBs as not all breakpoint
+ types are tracked by the Python scripting API. */
+ PyObject *py_bp_object;
+};
typedef struct breakpoint *breakpoint_p;
DEF_VEC_P(breakpoint_p);
@@ -855,9 +867,9 @@ extern void break_command (char *, int);
extern void hbreak_command_wrapper (char *, int);
extern void thbreak_command_wrapper (char *, int);
extern void rbreak_command_wrapper (char *, int);
-extern void watch_command_wrapper (char *, int);
-extern void awatch_command_wrapper (char *, int);
-extern void rwatch_command_wrapper (char *, int);
+extern void watch_command_wrapper (char *, int, int);
+extern void awatch_command_wrapper (char *, int, int);
+extern void rwatch_command_wrapper (char *, int, int);
extern void tbreak_command (char *, int);
extern int create_breakpoint (struct gdbarch *gdbarch, char *arg,
@@ -868,7 +880,8 @@ extern int create_breakpoint (struct gdbarch *gdbarch, char *arg,
enum auto_boolean pending_break_support,
struct breakpoint_ops *ops,
int from_tty,
- int enabled);
+ int enabled,
+ int internal);
extern void insert_breakpoints (void);
@@ -1101,4 +1114,15 @@ extern void check_tracepoint_command (char *line, void *closure);
extern void start_rbreak_breakpoints (void);
extern void end_rbreak_breakpoints (void);
+/* Breakpoint iterator function.
+
+ Calls a callback function once for each breakpoint, so long as the
+ callback function returns false. If the callback function returns
+ true, the iteration will end and the current breakpoint will be
+ returned. This can be useful for implementing a search for a
+ breakpoint with arbitrary attributes, or for applying an operation
+ to every breakpoint. */
+extern struct breakpoint *iterate_over_breakpoints (int (*) (struct breakpoint *,
+ void *), void *);
+
#endif /* !defined (BREAKPOINT_H) */
diff --git a/gdb/defs.h b/gdb/defs.h
index 489de74..d36f7c1 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-11-11 11:39 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-11-11 11:39 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 33118 bytes --]
The branch, master has been updated
via f315c52904765d5565ca733990b4669cbdd49e9b (commit)
via 831cbee68bdbcd09f9ab019f97eaeffaab814435 (commit)
via cf320ffc8f681fe4c905b72e84cef4cfdd6c34df (commit)
via 0aef60bc38db1570f0cb8dbb911262462fa3bb9c (commit)
via d8fe843c07b52bd0fe2c6028255e9ba238872d16 (commit)
via 2d2fab1e79945baf5d0afd9b5b39e7a06e227516 (commit)
via 4d7c3dada182d003459fc58a3d9ccd007a71d829 (commit)
via 51d482007a9e846df89e68d78ef290f659a59370 (commit)
from 1cadd0709fed603af6a5ed85c3b0bad29e86f8da (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f315c52904765d5565ca733990b4669cbdd49e9b
Merge: 1cadd07 831cbee
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Thu Nov 11 11:39:29 2010 +0000
Merge remote branch 'gdb/master'
commit 831cbee68bdbcd09f9ab019f97eaeffaab814435
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Nov 11 10:23:34 2010 +0000
bfd/
* archures.c (bfd_mach_mips_loongson_3a): Defined.
* bfd-in2.h (bfd_mach_mips_loongson_3a): Defined.
* cpu-mips.c (I_loongson_3a): New add.
(arch_info_struct): Add loongson_3a.
* elfxx-mips.c (_bfd_elf_mips_mach): Add loongson_3a.
(mips_set_isa_flags): Add loongson_3a.
(mips_mach_extensions): Add loongson_3a in MIPS64 extensions.
binutils/
* readelf.c (get_machine_flags): Add loongson-3a.
gas/
* config/tc-mips.c (mips_cpu_info_table): Add loongson3a in MIPS 64.
* doc/c-mips.texi (MIPS cpu): Add loongson3a.
include/
* elf/mips.h (E_MIPS_MACH_LS3A): Defined.
* opcode/mips.h (INSN_LOONGSON_3A): Defined.
(CPU_LOONGSON_3A): Defined.
(OPCODE_IS_MEMBER): Add LOONGSON_3A.
opcodes/
* mips-dis.c (mips_arch_choices): Add loongson3a.
* mips-opc.c (IL3A): Defined as INSN_LOONGSON_3A.
(mips_builtin_opcodes): Modify some instructions' membership from
IL2F to IL2F|IL3A, since these instructions are supported by Loongson_3A.
commit cf320ffc8f681fe4c905b72e84cef4cfdd6c34df
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 11 00:00:33 2010 +0000
*** empty log message ***
commit 0aef60bc38db1570f0cb8dbb911262462fa3bb9c
Author: Doug Evans <dje@google.com>
Date: Wed Nov 10 23:44:12 2010 +0000
* python/lib/gdb/command/pretty_printers.py
(do_enable_pretty_printer_1): Handle printer.subprinters is None.
commit d8fe843c07b52bd0fe2c6028255e9ba238872d16
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Nov 10 23:00:06 2010 +0000
daily update
commit 2d2fab1e79945baf5d0afd9b5b39e7a06e227516
Author: Doug Evans <dje@google.com>
Date: Wed Nov 10 17:47:21 2010 +0000
* value.c (set_value_enclosing_type): Renamed from
value_change_enclosing_type. All callers updated.
* value.h (set_value_enclosing_type): Update.
* valops.c (value_full_object): Always return a copy if we need to
make changes to the input value.
commit 4d7c3dada182d003459fc58a3d9ccd007a71d829
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Wed Nov 10 14:54:30 2010 +0000
bfd/
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove unused
variables.
commit 51d482007a9e846df89e68d78ef290f659a59370
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Nov 10 14:39:07 2010 +0000
Updated translations.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 20 +
bfd/archures.c | 1 +
bfd/bfd-in2.h | 1 +
bfd/elf32-arm.c | 7 -
bfd/elfxx-mips.c | 8 +
bfd/po/ja.po | 308 +-
bfd/po/ru.po | 4038 ++++++++++++++++++-------
bfd/version.h | 2 +-
gdb/ChangeLog | 11 +
gdb/python/lib/gdb/command/pretty_printers.py | 3 +-
gdb/valops.c | 21 +-
gdb/value.c | 15 +-
gdb/value.h | 5 +-
gdb/version.in | 2 +-
include/elf/ChangeLog | 4 +
include/elf/mips.h | 1 +
include/opcode/ChangeLog | 6 +
include/opcode/mips.h | 5 +
opcodes/ChangeLog | 11 +
opcodes/mips-dis.c | 4 +
opcodes/mips-opc.c | 119 +-
opcodes/po/fi.po | 441 ++--
22 files changed, 3490 insertions(+), 1543 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 77d99a3..aab75e9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,23 @@
+2010-11-11 Mingming Sun <mingm.sun@gmail.com>
+
+ * archures.c (bfd_mach_mips_loongson_3a): Defined.
+ * bfd-in2.h (bfd_mach_mips_loongson_3a): Defined.
+ * cpu-mips.c (I_loongson_3a): New add.
+ (arch_info_struct): Add loongson_3a.
+ * elfxx-mips.c (_bfd_elf_mips_mach): Add loongson_3a.
+ (mips_set_isa_flags): Add loongson_3a.
+ (mips_mach_extensions): Add loongson_3a in MIPS64 extensions.
+
+2010-11-10 Richard Sandiford <richard.sandiford@linaro.org>
+
+ * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove unused
+ variables.
+
+2010-11-10 Nick Clifton <nickc@redhat.com>
+
+ * po/ja.po: Updated Japanese translation.
+ * po/ru.po: Updated Russian translation.
+
2010-11-08 Nick Clifton <nickc@redhat.com>
* po/ja.po: Updated Japanese translation.
diff --git a/bfd/archures.c b/bfd/archures.c
index 1867154..1d61ae3 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -173,6 +173,7 @@ DESCRIPTION
.#define bfd_mach_mips5 5
.#define bfd_mach_mips_loongson_2e 3001
.#define bfd_mach_mips_loongson_2f 3002
+.#define bfd_mach_mips_loongson_3a 3003
.#define bfd_mach_mips_sb1 12310201 {* octal 'SB', 01 *}
.#define bfd_mach_mips_octeon 6501
.#define bfd_mach_mips_xlr 887682 {* decimal 'XLR' *}
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index f3e2b45..e7805b6 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1860,6 +1860,7 @@ enum bfd_architecture
#define bfd_mach_mips5 5
#define bfd_mach_mips_loongson_2e 3001
#define bfd_mach_mips_loongson_2f 3002
+#define bfd_mach_mips_loongson_3a 3003
#define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */
#define bfd_mach_mips_octeon 6501
#define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 577060b..ffe8f60 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -9904,9 +9904,6 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, bfd *obfd)
{
obj_attribute *in_attr;
obj_attribute *out_attr;
- obj_attribute_list *in_list;
- obj_attribute_list *out_list;
- obj_attribute_list **out_listp;
/* Some tags have 0 = don't care, 1 = strong requirement,
2 = weak requirement. */
static const int order_021[3] = {0, 2, 1};
@@ -10417,10 +10414,6 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, bfd *obfd)
return FALSE;
/* Check for any attributes not known on ARM. */
- in_list = elf_other_obj_attributes_proc (ibfd);
- out_listp = &elf_other_obj_attributes_proc (obfd);
- out_list = *out_listp;
-
result &= _bfd_elf_merge_unknown_attribute_list (ibfd, obfd);
return result;
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 4718dd4..cfbb06e 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -5946,6 +5946,9 @@ _bfd_elf_mips_mach (flagword flags)
case E_MIPS_MACH_LS2F:
return bfd_mach_mips_loongson_2f;
+ case E_MIPS_MACH_LS3A:
+ return bfd_mach_mips_loongson_3a;
+
case E_MIPS_MACH_OCTEON:
return bfd_mach_mips_octeon;
@@ -10556,6 +10559,10 @@ mips_set_isa_flags (bfd *abfd)
val = E_MIPS_ARCH_3 | E_MIPS_MACH_LS2F;
break;
+ case bfd_mach_mips_loongson_3a:
+ val = E_MIPS_ARCH_64 | E_MIPS_MACH_LS3A;
+ break;
+
case bfd_mach_mips_sb1:
val = E_MIPS_ARCH_64 | E_MIPS_MACH_SB1;
break;
@@ -12258,6 +12265,7 @@ static const struct mips_mach_extension mips_mach_extensions[] = {
{ bfd_mach_mipsisa64r2, bfd_mach_mipsisa64 },
{ bfd_mach_mips_sb1, bfd_mach_mipsisa64 },
{ bfd_mach_mips_xlr, bfd_mach_mipsisa64 },
+ { bfd_mach_mips_loongson_3a, bfd_mach_mipsisa64 },
/* MIPS V extensions. */
{ bfd_mach_mipsisa64, bfd_mach_mips5 },
diff --git a/bfd/po/ja.po b/bfd/po/ja.po
index b855447..e3eab97 100644
--- a/bfd/po/ja.po
+++ b/bfd/po/ja.po
@@ -1,4 +1,4 @@
-# Japanese message for bfd 2.11
+# Japanese message for bfd
# This file is distributed under the same license as the binutils package.
# Copyright (C) 2001, 2010 Free Software Foundation, Inc.
# Daisuke Yamashita <yamad@mb.infoweb.ne.jp>, 2001
@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: bfd 2.20.1\n"
"Report-Msgid-Bugs-To: bug-binutils@gnu.org\n"
"POT-Creation-Date: 2010-03-03 15:03+0100\n"
-"PO-Revision-Date: 2010-11-07 20:53+0900\n"
+"PO-Revision-Date: 2010-11-09 20:28+0900\n"
"Last-Translator: Yasuaki Taniguchi <yasuakit@gmail.com>\n"
"Language-Team: Japanese <translation-team-ja@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n"
@@ -154,19 +154,19 @@ msgid "#<Invalid error code>"
msgstr "#<ä¸é©åãªã¨ã©ã¼ã³ã¼ã>"
#: bfd.c:920
-#, fuzzy, c-format
+#, c-format
msgid "BFD %s assertion fail %s:%d"
-msgstr "bfd ã¢ãµã¼ã·ã§ã³ã失æ %s:%d"
+msgstr "BFD %s ã¢ãµã¼ã·ã§ã³å¤±æ %s:%d"
#: bfd.c:932
-#, fuzzy, c-format
+#, c-format
msgid "BFD %s internal error, aborting at %s line %d in %s\n"
-msgstr "BFD å
é¨ã¨ã©ã¼ã%s ã® %d è¡ç® %s ã§ä¸æãã¾ãã\n"
+msgstr "BFD %1$s å
é¨ã¨ã©ã¼ã %4$s å
%3$d è¡ %2$s ã§ä¸æ¢ãã¾ãã\n"
#: bfd.c:936
-#, fuzzy, c-format
+#, c-format
msgid "BFD %s internal error, aborting at %s line %d\n"
-msgstr "BFD å
é¨ã¨ã©ã¼ã%s ã® %d è¡ç®ã§ä¸æãã¾ãã\n"
+msgstr "BFD %1$s å
é¨ã¨ã©ã¼ã%3$d è¡ %2$s ã§ä¸æ¢ãã¾ãã\n"
#: bfd.c:938
msgid "Please report this bug.\n"
@@ -185,7 +185,7 @@ msgstr "ããããã¾ãã: ç°å¢å¤æ°ãè¨å®ããã¦ãã¾ãã\n"
#: binary.c:284
#, c-format
msgid "Warning: Writing section `%s' to huge (ie negative) file offset 0x%lx."
-msgstr "è¦å: ã»ã¯ã·ã§ã³ `%s' 巨大(ä¾ è² æ°)ãªãã¡ã¤ã«ãªãã»ãã 0x%lx ã¸ã®æ¸è¾¼ã¿ã§ãã"
+msgstr "è¦å: ã»ã¯ã·ã§ã³ `%s' ã§å·¨å¤§ãª (ä¾: è² æ°) ãã¡ã¤ã«ãªãã»ãã 0x%lx ã¸ã®æ¸ãè¾¼ã¿ã§ã"
#: bout.c:1150 elf-m10300.c:2078 elf32-avr.c:1639 elf32-frv.c:5743
#: elfxx-sparc.c:2456 reloc.c:5386 reloc16.c:162 vms.c:1918 elf32-ia64.c:788
@@ -219,11 +219,11 @@ msgstr "è¤æ°ã® gp å¤ã使ç¨ãã¦ãã¾ã"
#: coff-alpha.c:1560
msgid "%B: unsupported relocation: ALPHA_R_GPRELHIGH"
-msgstr "%B: ãµãã¼ãããã¦ããªãåé
ç½®: ALPHA_R_GPRELHIGH"
+msgstr "%B: ãµãã¼ãããã¦ããªãåé
ç½®ã§ã: ALPHA_R_GPRELHIGH"
#: coff-alpha.c:1567
msgid "%B: unsupported relocation: ALPHA_R_GPRELLOW"
-msgstr "%B: ãµãã¼ãããã¦ããªãåé
ç½®: ALPHA_R_GPRELLOW"
+msgstr "%B: ãµãã¼ãããã¦ããªãåé
ç½®ã§ã: ALPHA_R_GPRELLOW"
#: coff-alpha.c:1574 elf32-m32r.c:2477 elf64-alpha.c:3943 elf64-alpha.c:4098
#: elf32-ia64.c:4462 elf64-ia64.c:4462
@@ -231,21 +231,23 @@ msgid "%B: unknown relocation type %d"
msgstr "%B: ä¸æãªåé
ç½®å %d ã§ã"
#: coff-arm.c:1039
-#, fuzzy, c-format
+#, c-format
msgid "%B: unable to find THUMB glue '%s' for `%s'"
-msgstr "%s: THUMB ã°ã«ã¼ '%s' (`%s' ç¨) ãè¦ã¤ãããã¾ãã"
+msgstr "%1$B: `%3$s' ã«å¯¾ãã THUMB ç³ '%2$s' ãè¦ã¤ããã¾ãã"
#: coff-arm.c:1068
-#, fuzzy, c-format
+#, c-format
msgid "%B: unable to find ARM glue '%s' for `%s'"
-msgstr "%s: ARM ã°ã«ã¼ '%s' (`%s' ç¨) ãè¦ã¤ãããã¾ãã"
+msgstr "%1$B: `%3$s' ã«å¯¾ãã ARM ç³ '%2$s' ãè¦ã¤ããã¾ãã"
#: coff-arm.c:1370 elf32-arm.c:6372
-#, fuzzy, c-format
+#, c-format
msgid ""
"%B(%s): warning: interworking not enabled.\n"
" first occurrence: %B: arm call to thumb"
-msgstr "%s(%s): è¦å: interworking ãæå¹ã§ã¯ããã¾ããã"
+msgstr ""
+"%B(%s): è¦å: ARM/THUMB å½ä»¤ç¸äºå©ç¨ãæå¹ã«ãªã£ã¦ãã¾ããã\n"
+" æåã®åºç¾ç®æ: %B: THUMB ãå¼ã³åºã ARM å½ä»¤"
#: coff-arm.c:1460
#, c-format
@@ -254,49 +256,52 @@ msgid ""
" first occurrence: %B: thumb call to arm\n"
" consider relinking with --support-old-code enabled"
msgstr ""
+"%B(%s): è¦å: ARM/THUMB å½ä»¤ç¸äºå©ç¨ãæå¹ã«ãªã£ã¦ãã¾ããã\n"
+" æåã®åºç¾ç®æ: %B: ARM ãå¼ã³åºã THUMB å½ä»¤\n"
+" --support-old-code ãæå¹ã«ãã¦åãªã³ã¯ãããã¨ãæ¤è¨ãã¦ãã ãã"
#: coff-arm.c:1755 coff-tic80.c:695 cofflink.c:3030
msgid "%B: bad reloc address 0x%lx in section `%A'"
-msgstr "%B: ä¸æ£ãªåé
ç½®ã¢ãã¬ã¹ 0x%lx ãã»ã¯ã·ã§ã³ `%s' å
ã«ããã¾ã"
+msgstr "%1$B: ã»ã¯ã·ã§ã³ `%3$A' å
ã«èª¤ã£ãåé
ç½®ã¢ãã¬ã¹ 0x%2$lx ãããã¾ã"
#: coff-arm.c:2080
msgid "%B: illegal symbol index in reloc: %d"
msgstr "%B: åé
ç½®å
ã®ã·ã³ãã«ç´¢å¼ãä¸æ£ã§ã: %d"
#: coff-arm.c:2211
-#, fuzzy, c-format
+#, c-format
msgid "error: %B is compiled for APCS-%d, whereas %B is compiled for APCS-%d"
-msgstr "ã¨ã©ã¼: %s 㯠APCS-%d ç¨ã«ã³ã³ãã¤ã«ãããã«ããããããã%s ã APCS-%d ç¨ã«ã³ã³ãã¤ã«ããã¾ãã"
+msgstr "ã¨ã©ã¼: %B 㯠APCS-%d ã«å¯¾ãã¦ã³ã³ãã¤ã«ããã¦ããã«ããããããã %B 㯠APCS-%d ã«å¯¾ãã¦ã³ã³ãã¤ã«ããã¦ãã¾ã"
#: coff-arm.c:2227 elf32-arm.c:10334
-#, fuzzy, c-format
+#, c-format
msgid "error: %B passes floats in float registers, whereas %B passes them in integer registers"
-msgstr "ã¨ã©ã¼: %s ã¯æµ®åå°æ°ã%sã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ããã«ããããããã%s ããããã%sã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ãã¾ã"
+msgstr "ã¨ã©ã¼: %B ã¯æµ®åå°æ°ãæµ®åå°æ°ã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ããã«ããããããã %B ã¯æµ®åå°æ°ãæ´æ°ã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ãã¾ã"
#: coff-arm.c:2230 elf32-arm.c:10338
-#, fuzzy, c-format
+#, c-format
msgid "error: %B passes floats in integer registers, whereas %B passes them in float registers"
-msgstr "ã¨ã©ã¼: %s ã¯æµ®åå°æ°ã%sã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ããã«ããããããã%s ããããã%sã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ãã¾ã"
+msgstr "ã¨ã©ã¼: %B ã¯æµ®åå°æ°ãæ´æ°ã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ããã«ããããããã %B ã¯æµ®åå°æ°ãæµ®åå°æ°ã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ãã¾ã"
#: coff-arm.c:2244
-#, fuzzy, c-format
+#, c-format
msgid "error: %B is compiled as position independent code, whereas target %B is absolute position"
-msgstr "%s: ã¨ã©ã¼: ä½ç½®éä¾åã³ã¼ãã¨ãã¦ã³ã³ãã¤ã«ãããã«ãããããããã¿ã¼ã²ãã %s ã¯çµ¶å¯¾ä½ç½®ã«ãªã£ã¦ãã¾ã"
+msgstr "ã¨ã©ã¼: %B ã¯ä½ç½®éä¾åã³ã¼ãã¨ãã¦ã³ã³ãã¤ã«ããã¦ããã«ãé¢ããããã¿ã¼ã²ãã %B ã¯çµ¶å¯¾ä½ç½®ã³ã¼ãã«ãªã£ã¦ãã¾ã"
#: coff-arm.c:2247
-#, fuzzy, c-format
+#, c-format
msgid "error: %B is compiled as absolute position code, whereas target %B is position independent"
-msgstr "%s: ã¨ã©ã¼: 絶対ä½ç½®ã³ã¼ãã¨ãã¦ã³ã³ãã¤ã«ãããã«ãããããããã¿ã¼ã²ãã %s ã¯ä½ç½®éä¾åã³ã¼ãã«ãªã£ã¦ãã¾ã"
+msgstr "ã¨ã©ã¼: %B ã¯çµ¶å¯¾ä½ç½®ã³ã¼ãã¨ãã¦ã³ã³ãã¤ã«ããã¦ããã«ãããããããã¿ã¼ã²ãã %B ã¯ä½ç½®éä¾åã³ã¼ãã«ãªã£ã¦ãã¾ã"
#: coff-arm.c:2275 elf32-arm.c:10403
-#, fuzzy, c-format
+#, c-format
msgid "Warning: %B supports interworking, whereas %B does not"
-msgstr "è¦å: å
¥åãã¡ã¤ã« %s ã interworking ããµãã¼ããã¦ããã«ããããããã%s ã¯ãµãã¼ããã¦ãã¾ããã"
+msgstr "è¦å: %B 㯠ARM/THUMB å½ä»¤ç¸äºå©ç¨ããµãã¼ããã¦ããã«ããããããã %B ã¯ãµãã¼ããã¦ãã¾ãã"
#: coff-arm.c:2278 elf32-arm.c:10409
-#, fuzzy, c-format
+#, c-format
msgid "Warning: %B does not support interworking, whereas %B does"
-msgstr "è¦å: å
¥åãã¡ã¤ã« %s ã interworking ããµãã¼ããã¦ããã«ããããããã%s ã¯ãµãã¼ããã¦ãã¾ãã"
+msgstr "è¦å: %B 㯠ARM/THUMB å½ä»¤ç¸äºå©ç¨ããµãã¼ããã¦ããªãã«ããããããã %B ã¯ãµãã¼ããã¦ãã¾ã"
#: coff-arm.c:2302
#, c-format
@@ -326,32 +331,32 @@ msgstr " [絶対ä½ç½®]"
#: coff-arm.c:2321
#, c-format
msgid " [interworking flag not initialised]"
-msgstr " [interworking ãã©ã°ã¯åæåããã¦ãã¾ãã]"
+msgstr " [ARM/THUMB å½ä»¤ç¸äºå©ç¨ã®ãã©ã°ã¯åæåããã¦ãã¾ãã]"
#: coff-arm.c:2323
#, c-format
msgid " [interworking supported]"
-msgstr " [interworking ããµãã¼ãããã¾ã]"
+msgstr " [ARM/THUMB å½ä»¤ç¸äºå©ç¨ããµãã¼ãããã¦ãã¾ã]"
#: coff-arm.c:2325
#, c-format
msgid " [interworking not supported]"
-msgstr " [interworking ã¯ãµãã¼ãããã¾ãã]"
+msgstr " [ARM/THUMB å½ä»¤ç¸äºå©ç¨ã¯ãµãã¼ãããã¦ãã¾ãã]"
#: coff-arm.c:2371 elf32-arm.c:9367
-#, fuzzy, c-format
+#, c-format
msgid "Warning: Not setting interworking flag of %B since it has already been specified as non-interworking"
-msgstr "è¦å: æ¢ã«é interworking ã¨æå®ããã¦ããããã%s ã® interworking ãã©ã°ãè¨å®ãã¾ãã"
+msgstr "è¦å: ARM/THUMB å½ä»¤ç¸äºå©ç¨ãããªãããã«æ¢ã«æå®ããã¦ããããã %B ã® ARM/THUMB å½ä»¤ç¸äºå©ç¨ãã©ã°ãè¨å®ãã¾ãã"
#: coff-arm.c:2375 elf32-arm.c:9371
-#, fuzzy, c-format
+#, c-format
msgid "Warning: Clearing the interworking flag of %B due to outside request"
-msgstr "è¦å: è¦æ±å¤ã®ãã %s ã® interworking ãã©ã°ãã¯ãªã¢ãã¾ã"
+msgstr "è¦å: è¦æ±å¤ã®ãã %s ã® ARM/THUMB å½ä»¤ç¸äºå©ç¨ãã©ã°ãã¯ãªã¢ãã¾ã"
#: coff-h8300.c:1122
#, c-format
msgid "cannot handle R_MEM_INDIRECT reloc when using %s output"
-msgstr ""
+msgstr "%s åºåãå©ç¨ãã¦ããæã«ã¯ R_MEM_INDIRECT åé
ç½®ãæ±ãã¾ãã"
#: coff-i860.c:147
#, c-format
@@ -360,11 +365,11 @@ msgstr "åé
ç½® `%s' ã¯ã¾ã å®è£
ããã¦ãã¾ãã\n"
#: coff-i860.c:605 coff-tic54x.c:398 coffcode.h:5143
msgid "%B: warning: illegal symbol index %ld in relocs"
-msgstr "%B: è¦å: ä¸æ£ãªã·ã³ãã«ç´¢å¼ %ld ãåé
ç½®å
ã«ããã¾ã"
+msgstr "%B: è¦å: ä¸æ£ãªã·ã³ãã«ç´¢å¼ %ld ãåé
ç½®é åå
ã«ããã¾ã"
#: coff-i960.c:143 coff-i960.c:506
msgid "uncertain calling convention for non-COFF symbol"
-msgstr "é COFF ã·ã³ãã«ç¨ã®å¼ã³åºãè¦ç´ãä¸ç¢ºå®ã§ã"
+msgstr "é COFF ã·ã³ãã«ã«å¯¾ããå¼ã³åºãè¦ç´ãä¸ç¢ºå®ã§ã"
#: coff-m68k.c:506 elf32-bfin.c:5691 elf32-cr16.c:2965 elf32-m68k.c:4615
msgid "unsupported reloc type"
@@ -372,19 +377,19 @@ msgstr "ãµãã¼ãããã¦ããªãåé
ç½®åã§ã"
#: coff-maxq.c:126
msgid "Can't Make it a Short Jump"
-msgstr ""
+msgstr "çãã¸ã£ã³ããè¡ããã¨ãã§ãã¾ãã"
#: coff-maxq.c:191
msgid "Exceeds Long Jump Range"
-msgstr ""
+msgstr "é·ãã¸ã£ã³ãã®ç¯å²ãè¶
ãã¦ãã¾ã"
#: coff-maxq.c:202 coff-maxq.c:276
msgid "Absolute address Exceeds 16 bit Range"
-msgstr ""
+msgstr "絶対ã¢ãã¬ã¹ã 16 bit ã®ç¯å²ãè¶
ãã¦ãã¾ã"
#: coff-maxq.c:240
msgid "Absolute address Exceeds 8 bit Range"
-msgstr ""
+msgstr "絶対ã¢ãã¬ã¹ã 8 bit ã®ç¯å²ãè¶
ãã¦ãã¾ã"
#: coff-maxq.c:333
msgid "Unrecognized Reloc Type"
@@ -402,7 +407,7 @@ msgstr "èªèã§ããªãåé
ç½®ã§ã"
#: coff-rs6000.c:2789
#, c-format
msgid "%s: unsupported relocation type 0x%02x"
-msgstr "%s: åé
ç½®å 0x%02x ã¯ãµãã¼ãããã¾ãã"
+msgstr "%s: åé
ç½®å 0x%02x ã¯ãµãã¼ãããã¦ãã¾ãã"
#: coff-rs6000.c:2882
#, c-format
@@ -421,7 +426,7 @@ msgstr "èªèã§ããªãåé
ç½®å 0x%x ã§ã"
#: coff-tic4x.c:240
#, c-format
msgid "%s: warning: illegal symbol index %ld in relocs"
-msgstr "%s: è¦å: ä¸æ£ãªã·ã³ãã«ç´¢å¼ %ld ãåé
ç½®å
ã«ããã¾ã"
+msgstr "%s: è¦å: ä¸æ£ãªã·ã³ãã«ç´¢å¼ %ld ãåé
ç½®é åå
ã«ããã¾ã"
#: coff-w65.c:367
#, c-format
@@ -429,20 +434,19 @@ msgid "ignoring reloc %s\n"
msgstr "åé
ç½® %s ãç¡è¦ãã¦ãã¾ã\n"
#: coffcode.h:960
-#, fuzzy
msgid "%B: warning: COMDAT symbol '%s' does not match section name '%s'"
-msgstr "è¦å: %s: å±æã·ã³ãã« `%s' ãã»ã¯ã·ã§ã³ãæã£ã¦ãã¾ãã"
+msgstr "%B: è¦å: COMDAT ã·ã³ãã« '%s' ã¯ã»ã¯ã·ã§ã³å '%s' ã«é©åãã¾ãã"
#. Generate a warning message rather using the 'unhandled'
#. variable as this will allow some .sys files generate by
#. other toolchains to be processed. See bugzilla issue 196.
#: coffcode.h:1176
msgid "%B: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section %s"
-msgstr ""
+msgstr "%B: è¦å: ã»ã¯ã·ã§ã³ %s å
ã® IMAGE_SCN_MEM_NOT_PAGED ã»ã¯ã·ã§ã³ãã©ã°ãç¡è¦ãã¦ãã¾ã"
#: coffcode.h:1240
msgid "%B (%s): Section flag %s (0x%x) ignored"
-msgstr ""
+msgstr "%B (%s): ã»ã¯ã·ã§ã³ãã©ã° %s (0x%x) ãç¡è¦ãã¾ãã"
#: coffcode.h:2382
#, c-format
@@ -455,7 +459,7 @@ msgstr "%B: åå¨ããªãã·ã³ãã«ç´¢å¼ã«å¯¾ããåé
ç½®ã§ã: %ld"
#: coffcode.h:3669
msgid "%B: section %s: string table overflow at offset %ld"
-msgstr "%B: ã»ã¯ã·ã§ã³ %s: ãªãã»ãã %ld ã§æååãã¼ãã«ããªã¼ãã¼ããã¼ãã¾ãã"
+msgstr "%B: ã»ã¯ã·ã§ã³ %s: ãªãã»ãã %ld ã§æååãã¼ãã«ã溢ãã¾ãã"
#: coffcode.h:4477
msgid "%B: warning: line number table read failed"
@@ -470,9 +474,8 @@ msgid "%B: warning: duplicate line number information for `%s'"
msgstr "%B: è¦å: `%s' ã«å¯¾ããè¡çªå·æ
å ±ãéè¤ãã¦ãã¾ã"
#: coffcode.h:4912
-#, fuzzy
msgid "%B: Unrecognized storage class %d for %s symbol `%s'"
-msgstr "%s: è¨æ¶ã¯ã©ã¹ %d (section %s, symbol `%s') ãèªèã§ãã¾ãã"
+msgstr "%1$B: %3$s ã·ã³ãã« `%4$s' ã«å¯¾ããèªèã§ããªãè¨æ¶åã¯ã©ã¹ %2$d ã§ã"
#: coffcode.h:5038
msgid "warning: %B: local symbol `%s' has no section"
@@ -487,34 +490,31 @@ msgid "%B: bad string table size %lu"
msgstr "%s: æååãã¼ãã«ãµã¤ãº %lu ã誤ã£ã¦ãã¾ã"
#: cofflink.c:513 elflink.c:4308
-#, fuzzy
msgid "Warning: type of symbol `%s' changed from %d to %d in %B"
-msgstr "è¦å: ã·ã³ãã« `%s' ã®å㯠%d ãã %d ã«å¤æ´ããã¾ãã (%s å
)"
+msgstr "è¦å: %4$B å
ã§ã·ã³ãã« `%1$s' ã®åã %2$d ãã %3$d ã«å¤æ´ããã¾ãã"
#: cofflink.c:2308
-#, fuzzy
msgid "%B: relocs in section `%A', but it has no contents"
-msgstr "%s: ã»ã¯ã·ã§ã³ `%s' å
ã®åé
ç½®é åã«å
容ãããã¾ãã"
+msgstr "%B: ã»ã¯ã·ã§ã³ `%A' ã«åé
ç½®é åãããã¾ãããä¸èº«ãããã¾ãã"
#: cofflink.c:2639 coffswap.h:826
#, c-format
msgid "%s: %s: reloc overflow: 0x%lx > 0xffff"
-msgstr "%s: %s: åé
ç½®é åããªã¼ãã¼ããã¼ãã¾ãã: 0x%lx > 0xffff"
+msgstr "%s: %s: åé
ç½®é åã溢ãã¾ãã: 0x%lx > 0xffff"
#: cofflink.c:2648 coffswap.h:812
#, c-format
msgid "%s: warning: %s: line number overflow: 0x%lx > 0xffff"
-msgstr "%s: è¦å: %s: è¡çªå·ããªã¼ãã¼ããã¼ãã¾ãã: 0x%lx > 0xffff"
+msgstr "%s: è¦å: %s: è¡çªå·ã溢ãã¾ãã: 0x%lx > 0xffff"
#: cpu-arm.c:189 cpu-arm.c:200
-#, fuzzy
msgid "error: %B is compiled for the EP9312, whereas %B is compiled for XScale"
-msgstr "ã¨ã©ã¼: %s 㯠APCS-%d ç¨ã«ã³ã³ãã¤ã«ãããã«ããããããã%s ã APCS-%d ç¨ã«ã³ã³ãã¤ã«ããã¾ãã"
+msgstr "ã¨ã©ã¼: %B 㯠EP9312 ã«å¯¾ãã¦ã³ã³ãã¤ã«ããã¦ããã«ããããããã %B 㯠XScale ã«å¯¾ãã¦ã³ã³ãã¤ã«ããã¦ãã¾ã"
#: cpu-arm.c:332
#, c-format
msgid "warning: unable to update contents of %s section in %s"
-msgstr ""
+msgstr "è¦å: %2$s å
ã«ãã %1$s ã»ã¯ã·ã§ã³ã®å
容ãæ´æ°ã§ãã¾ãã"
#: dwarf2.c:436
#, c-format
@@ -522,19 +522,19 @@ msgid "Dwarf Error: Can't find %s section."
msgstr "Dwarf ã¨ã©ã¼: %s ã»ã¯ã·ã§ã³ãè¦ã¤ããã¾ããã"
#: dwarf2.c:463
-#, fuzzy, c-format
+#, c-format
msgid "Dwarf Error: unable to decompress %s section."
-msgstr "Dwarf ã¨ã©ã¼: è¡çªå·ã»ã¯ã·ã§ã³ãå¤å½¢ããã¾ããã"
+msgstr "Dwarf ã¨ã©ã¼: %s ã»ã¯ã·ã§ã³ã伸張ã§ãã¾ããã"
#: dwarf2.c:474
-#, fuzzy, c-format
+#, c-format
msgid "Dwarf Error: Offset (%lu) greater than or equal to %s size (%lu)."
-msgstr "Dwarf ã¨ã©ã¼: line ãªãã»ãã (%u) ã line ãµã¤ãº (%u) ãã大ããã§ãã"
+msgstr "Dwarf ã¨ã©ã¼: ãªãã»ãã (%lu) ã %s ã®ãµã¤ãº (%lu) 以ä¸ã§ãã"
#: dwarf2.c:871
-#, fuzzy, c-format
+#, c-format
msgid "Dwarf Error: Invalid or unhandled FORM value: %u."
-msgstr "Dwarf ã¨ã©ã¼: FORM å¤ãä¸é©åã§ããããåãæ±ãã¾ãã: %dã"
+msgstr "Dwarf ã¨ã©ã¼: ç¡å¹ã¾ãã¯æ±ããªã FORM å¤ã§ã: %u"
#: dwarf2.c:1085
msgid "Dwarf Error: mangled line number section (bad file number)."
@@ -882,18 +882,20 @@ msgid "%B: unsupported relocation type %s"
msgstr "%s: ãµãã¼ãããã¦ããªãåé
ç½®ã¿ã¤ã %s ã§ã"
#: elf32-arm.c:3149
-#, fuzzy
msgid ""
"%B(%s): warning: interworking not enabled.\n"
" first occurrence: %B: Thumb call to ARM"
-msgstr "%s(%s): è¦å: interworking ãæå¹ã§ã¯ããã¾ããã"
+msgstr ""
+"%B(%s): è¦å: ARM/THUMB å½ä»¤ç¸äºå©ç¨ãæå¹ã§ã¯ããã¾ãã\n"
+" æåã®åºç¾ç®æ: %B: ARM ãå¼ã³åºã THUMB å½ä»¤"
#: elf32-arm.c:3190
-#, fuzzy
msgid ""
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-11-10 9:09 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-11-10 9:09 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 26670 bytes --]
The branch, master has been updated
via 1cadd0709fed603af6a5ed85c3b0bad29e86f8da (commit)
via 9c71e9c0d7209d261e25e637a353d86490ddfd95 (commit)
via 3ee415453d3877b67cfaa0c3c127af6304a8e658 (commit)
via 45159048697d9647168a2b436a312ea3d2dc7780 (commit)
via 1007825bd6b7e3b8790bf0f42485e1359aa3962b (commit)
via 3fb10e156211cbabdde596b03fea1b9780ecc679 (commit)
via 3ac4c69d2e95f5985c27c4e9287f34a8cea98ecf (commit)
via bef9f4dc3ec8d6060d7efa0a02d396ef635fb2a6 (commit)
via 1e63dae39c2da9726182d90e491049be8b05be2b (commit)
from 6405077542cc5b6325d29381059ec6da8e014489 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 1cadd0709fed603af6a5ed85c3b0bad29e86f8da
Merge: 6405077 9c71e9c
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Wed Nov 10 09:09:29 2010 +0000
Merge remote branch 'gdb/master'
commit 9c71e9c0d7209d261e25e637a353d86490ddfd95
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 10 00:00:03 2010 +0000
*** empty log message ***
commit 3ee415453d3877b67cfaa0c3c127af6304a8e658
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 9 23:00:04 2010 +0000
daily update
commit 45159048697d9647168a2b436a312ea3d2dc7780
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Nov 9 18:23:50 2010 +0000
gdb/
* breakpoint.c (watch_command_1): Get a pointer of the lazy
version of the expression's value, even if reading the value from
memory fails. When creating a -location watchpoint, get the
value's address from the lazy value pointer.
gdb/testsuite/
* gdb.base/watchpoint.exp: Test "watch -location" with an
innacessible location.
commit 1007825bd6b7e3b8790bf0f42485e1359aa3962b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Nov 9 04:44:16 2010 +0000
gdb/testsuite/
* gdb.base/maint.exp: Expect "." prefix.
* gdb.base/nodebug.exp: Expect "." Likewise.
* gdb.base/sepsymtab.exp: Expect "." Likewise.
* gdb.base/watchpoint-cond-gone.exp: Likewise.
* gdb.base/watchpoint.exp: Expect a software watch to be created for
POWER server processors.
commit 3fb10e156211cbabdde596b03fea1b9780ecc679
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 9 00:00:33 2010 +0000
*** empty log message ***
commit 3ac4c69d2e95f5985c27c4e9287f34a8cea98ecf
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Nov 8 23:00:06 2010 +0000
daily update
commit bef9f4dc3ec8d6060d7efa0a02d396ef635fb2a6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Nov 8 18:05:55 2010 +0000
gdb/testsuite/
* gdb.base/break-entry.exp: convert entry point for
ppc64 and expect leading `.' on ppc64's symbols
commit 1e63dae39c2da9726182d90e491049be8b05be2b
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Nov 8 11:37:05 2010 +0000
Updated Japanese translations.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 4 +
bfd/po/ja.po | 5006 +++++++++++++++--------
bfd/version.h | 2 +-
gdb/ChangeLog | 7 +
gdb/breakpoint.c | 6 +-
gdb/testsuite/ChangeLog | 21 +
gdb/testsuite/gdb.base/break-entry.exp | 12 +-
gdb/testsuite/gdb.base/maint.exp | 4 +-
gdb/testsuite/gdb.base/nodebug.exp | 4 +-
gdb/testsuite/gdb.base/sepsymtab.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint-cond-gone.exp | 3 +-
gdb/testsuite/gdb.base/watchpoint.exp | 13 +-
gdb/version.in | 2 +-
13 files changed, 3412 insertions(+), 1674 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index bd33568..77d99a3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-08 Nick Clifton <nickc@redhat.com>
+
+ * po/ja.po: Updated Japanese translation.
+
2010-11-08 Alan Modra <amodra@gmail.com>
* hash.c (bfd_hash_hash): Extract from..
diff --git a/bfd/po/ja.po b/bfd/po/ja.po
index 9373b27..b855447 100644
--- a/bfd/po/ja.po
+++ b/bfd/po/ja.po
@@ -1,2023 +1,3466 @@
# Japanese message for bfd 2.11
-# Copyright (C) 2001 Free Software Foundation, Inc.
+# This file is distributed under the same license as the binutils package.
+# Copyright (C) 2001, 2010 Free Software Foundation, Inc.
# Daisuke Yamashita <yamad@mb.infoweb.ne.jp>, 2001
-#
+# Yasuaki Taniguchi <yasuakit@gmail.com>, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: bfd 2.11\n"
-"POT-Creation-Date: 2002-01-31 17:07+0000\n"
-"PO-Revision-Date: 2001-12-22 13:37+0900\n"
-"Last-Translator: Daisuke Yamashita <yamad@mb.infoweb.ne.jp>\n"
-"Language-Team: Japanese <ja@li.org>\n"
+"Project-Id-Version: bfd 2.20.1\n"
+"Report-Msgid-Bugs-To: bug-binutils@gnu.org\n"
+"POT-Creation-Date: 2010-03-03 15:03+0100\n"
+"PO-Revision-Date: 2010-11-07 20:53+0900\n"
+"Last-Translator: Yasuaki Taniguchi <yasuakit@gmail.com>\n"
+"Language-Team: Japanese <translation-team-ja@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=EUC-JP\n"
+"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nulurals=1; plural=0;\n"
-#: aout-adobe.c:196
-#, c-format
-msgid "%s: Unknown section type in a.out.adobe file: %x\n"
-msgstr "%s: a.out.adobe ¥Õ¥¡¥¤¥ë¤ËÉÔÌÀ¤Ê¥»¥¯¥·¥ç¥ó·¿¤¬¤¢¤ê¤Þ¤¹: %x\n"
+#: aout-adobe.c:127
+msgid "%B: Unknown section type in a.out.adobe file: %x\n"
+msgstr "%B: a.out.adobe ãã¡ã¤ã«ã«ä¸æãªã»ã¯ã·ã§ã³åãããã¾ã: %x\n"
-#: aout-cris.c:208
+#: aout-cris.c:204
#, c-format
msgid "%s: Invalid relocation type exported: %d"
-msgstr "%s: export ¤µ¤ì¤¿ºÆÇÛÃÖ¥¿¥¤¥×¤¬ÉÔŬÀڤǤ¹: %d"
+msgstr "%s: ã¨ã¯ã¹ãã¼ããããåé
ç½®åãç¡å¹ã§ã: %d"
-#: aout-cris.c:252
-#, c-format
-msgid "%s: Invalid relocation type imported: %d"
-msgstr "%s: import ¤µ¤ì¤¿ºÆÇÛÃÖ¥¿¥¤¥×¤¬ÉÔŬÀڤǤ¹: %d"
+#: aout-cris.c:247
+msgid "%B: Invalid relocation type imported: %d"
+msgstr "%B: ã¤ã³ãã¼ããããåé
ç½®åãç¡å¹ã§ã: %d"
-#: aout-cris.c:263
-#, c-format
-msgid "%s: Bad relocation record imported: %d"
-msgstr "%s: import ¤µ¤ì¤¿ºÆÇÛÃ֥쥳¡¼¥É¤¬ÉÔÀµ¤Ç¤¹: %d"
+#: aout-cris.c:258
+msgid "%B: Bad relocation record imported: %d"
+msgstr "%B: ã¤ã³ãã¼ããããåé
ç½®ã¬ã³ã¼ãã誤ã£ã¦ãã¾ã: %d"
-#: aoutx.h:1282 aoutx.h:1699
+#: aoutx.h:1271 aoutx.h:1609
#, c-format
msgid "%s: can not represent section `%s' in a.out object file format"
-msgstr "%s: a.out ¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë·Á¼°¤Ç¤Ï¥»¥¯¥·¥ç¥ó `%s' ¤òɽ¸½¤Ç¤¤Þ¤»¤ó"
+msgstr "%s: a.out ãªãã¸ã§ã¯ããã¡ã¤ã«å½¢å¼ã§ã¯ã»ã¯ã·ã§ã³ `%s' ã表ç¾ã§ãã¾ãã"
-#: aoutx.h:1669
+#: aoutx.h:1575
#, c-format
-msgid ""
-"%s: can not represent section for symbol `%s' in a.out object file format"
-msgstr ""
-"%s: a.out ¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë·Á¼°¤Ç¤Ï¥·¥ó¥Ü¥ë `%s' ÍѤΥ»¥¯¥·¥ç¥ó¤òɽ¸½¤Ç¤"
-"¤Þ¤»¤ó"
+msgid "%s: can not represent section for symbol `%s' in a.out object file format"
+msgstr "%s: a.out ãªãã¸ã§ã¯ããã¡ã¤ã«å½¢å¼ã§ã¯ã·ã³ãã« `%s' ç¨ã®ã»ã¯ã·ã§ã³ã表ç¾ã§ãã¾ãã"
-#: aoutx.h:1671
+#: aoutx.h:1577
msgid "*unknown*"
-msgstr "*ÉÔ ÌÀ*"
+msgstr "*ä¸æ*"
+
+#: aoutx.h:3997 aoutx.h:4323
+msgid "%P: %B: unexpected relocation type\n"
+msgstr "%P: %B: äºæããªãåé
ç½®ã¿ã¤ãã§ã\n"
-#: aoutx.h:3735
+#: aoutx.h:5358
#, c-format
-msgid "%s: relocateable link from %s to %s not supported"
-msgstr "%s: %s ¤«¤é %s ¤Ø¤ÎºÆÇÛÃÖ²Äǽ¥ê¥ó¥¯¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó"
+msgid "%s: relocatable link from %s to %s not supported"
+msgstr "%s: %s ãã %s ã¸ã®åé
ç½®å¯è½ãªã³ã¯ã¯ãµãã¼ãããã¦ãã¾ãã"
-#: archive.c:1826
+#: archive.c:2057
msgid "Warning: writing archive was slow: rewriting timestamp\n"
-msgstr "·Ù¹ð: ½ñ¸Ë¤Ø¤Î½ñ¤¹þ¤ß¤¬ÃÙ¤ì¤Þ¤·¤¿: ¥¿¥¤¥à¥¹¥¿¥ó¥×¤ò½ñ¤´¹¤¨¤Þ¤¹\n"
+msgstr "è¦å: æ¸åº«ã¸ã®æ¸ãè¾¼ã¿ãé
ãã¾ãã: ã¿ã¤ã ã¹ã¿ã³ããæ¸ãæãã¾ã\n"
-#: archive.c:2093
+#: archive.c:2344
msgid "Reading archive file mod timestamp"
-msgstr "½ñ¸Ë¥Õ¥¡¥¤¥ë¤Î½¤Àµ»þ¹ïÆɹþ¤ßÃæ"
+msgstr "æ¸åº«ãã¡ã¤ã«ã®æ´æ°æ¥æãèªã¿è¾¼ãã§ãã¾ã"
-#. FIXME: bfd can't call perror.
-#: archive.c:2120
+#: archive.c:2368
msgid "Writing updated armap timestamp"
-msgstr "¹¹¿·¤µ¤ì¤¿ armap ¥¿¥¤¥à¥¹¥¿¥ó¥×½ñ¹þ¤ßÃæ"
+msgstr "æ´æ°ããã armap æ¥æãæ¸ãè¾¼ã¿ä¸ã§ã"
-#: bfd.c:274
+#: bfd.c:376
msgid "No error"
-msgstr "¥¨¥é¡¼¤Ï¤¢¤ê¤Þ¤»¤ó"
+msgstr "ã¨ã©ã¼ã¯ããã¾ãã"
-#: bfd.c:275
+#: bfd.c:377
msgid "System call error"
-msgstr "¥·¥¹¥Æ¥à¥³¡¼¥ë¥¨¥é¡¼"
+msgstr "ã·ã¹ãã ã³ã¼ã«ã¨ã©ã¼"
-#: bfd.c:276
+#: bfd.c:378
msgid "Invalid bfd target"
-msgstr "ÉÔŬÀÚ¤Ê bfd ¥¿¡¼¥²¥Ã¥È¤Ç¤¹"
+msgstr "ç¡å¹ãª bfd ã¿ã¼ã²ããã§ã"
-#: bfd.c:277
+#: bfd.c:379
msgid "File in wrong format"
-msgstr "´Ö°ã¤Ã¤¿·Á¼°¤Î¥Õ¥¡¥¤¥ë"
+msgstr "誤ã£ãå½¢å¼ã®ãã¡ã¤ã«ã§ã"
-#: bfd.c:278
-#, fuzzy
+#: bfd.c:380
msgid "Archive object file in wrong format"
-msgstr "´Ö°ã¤Ã¤¿·Á¼°¤Î¥Õ¥¡¥¤¥ë"
+msgstr "誤ã£ãå½¢å¼ã®ãªãã¸ã§ã¯ããã¡ã¤ã«æ¸åº«ã§ã"
-#: bfd.c:279
+#: bfd.c:381
msgid "Invalid operation"
-msgstr "ÉÔŬÀÚ¤ÊÁàºî"
+msgstr "ç¡å¹ãªæä½ã§ã"
-#: bfd.c:280
+#: bfd.c:382
msgid "Memory exhausted"
-msgstr "¥á¥â¥ê¤ò»È¤¤²Ì¤¿¤·¤Þ¤·¤¿"
+msgstr "ã¡ã¢ãªã使ãæããã¾ãã"
-#: bfd.c:281
+#: bfd.c:383
msgid "No symbols"
-msgstr "¥·¥ó¥Ü¥ë¤¬¤¢¤ê¤Þ¤»¤ó"
+msgstr "ã·ã³ãã«ãããã¾ãã"
-#: bfd.c:282
+#: bfd.c:384
msgid "Archive has no index; run ranlib to add one"
-msgstr ""
-"½ñ¸Ë¤Ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤¬¤¢¤ê¤Þ¤»¤ó -- Äɲ乤뤿¤á¤Ë ranlib ¤ò¼Â¹Ô¤·¤Þ¤·¤ç¤¦"
+msgstr "æ¸åº«ã«ç´¢å¼ãããã¾ããã追å ããããã« ranlib ãå®è¡ãã¦ãã ãã"
-#: bfd.c:283
+#: bfd.c:385
msgid "No more archived files"
-msgstr "¤³¤ì°Ê¾å½ñ¸Ë¥Õ¥¡¥¤¥ë¤Ï¤¢¤ê¤Þ¤»¤ó"
+msgstr "ãã以ä¸æ¸åº«ãã¡ã¤ã«ã¯ããã¾ãã"
-#: bfd.c:284
+#: bfd.c:386
msgid "Malformed archive"
-msgstr "¤ª¤«¤·¤Ê½ñ¸Ë¤Ç¤¹"
+msgstr "ä¸æ£ãªå½¢å¼ã®æ¸åº«ã§ã"
-#: bfd.c:285
+#: bfd.c:387
msgid "File format not recognized"
-msgstr "¥Õ¥¡¥¤¥ë·Á¼°¤¬Ç§¼±¤Ç¤¤Þ¤»¤ó"
+msgstr "ãã¡ã¤ã«å½¢å¼ãèªèã§ãã¾ãã"
-#: bfd.c:286
+#: bfd.c:388
msgid "File format is ambiguous"
-msgstr "¥Õ¥¡¥¤¥ë·Á¼°¤¬Û£Ëæ¤Ç¤¹"
+msgstr "ãã¡ã¤ã«å½¢å¼ãææ§ã§ã"
-#: bfd.c:287
+#: bfd.c:389
msgid "Section has no contents"
-msgstr "¥»¥¯¥·¥ç¥ó¤ËÆâÍƤ¬¤¢¤ê¤Þ¤»¤ó"
+msgstr "ã»ã¯ã·ã§ã³ã«å
容ãããã¾ãã"
-#: bfd.c:288
+#: bfd.c:390
msgid "Nonrepresentable section on output"
-msgstr "½ÐÎϤËÂбþ¤¹¤ë¥»¥¯¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤»¤ó"
+msgstr "åºåã«å¯¾å¿ããã»ã¯ã·ã§ã³ãããã¾ãã"
-#: bfd.c:289
+#: bfd.c:391
msgid "Symbol needs debug section which does not exist"
-msgstr "¸ºß¤·¤Æ¤¤¤Ê¤¤¥Ç¥Ð¥Ã¥°¥»¥¯¥·¥ç¥ó¤ò¥·¥ó¥Ü¥ë¤¬É¬ÍפȤ·¤Æ¤¤¤Þ¤¹"
+msgstr "åå¨ãã¦ããªããããã°ã»ã¯ã·ã§ã³ãã·ã³ãã«ãå¿
è¦ã¨ãã¦ãã¾ã"
-#: bfd.c:290
+#: bfd.c:392
msgid "Bad value"
-msgstr "ÉÔÀµ¤ÊÃͤǤ¹"
+msgstr "ä¸æ£ãªå¤ã§ã"
-#: bfd.c:291
+#: bfd.c:393
msgid "File truncated"
-msgstr "¥Õ¥¡¥¤¥ë¤¬ÅÓÀÚ¤ì¤Æ¤¤¤Þ¤¹"
+msgstr "ãã¡ã¤ã«ãéåãã¦ãã¾ã"
-#: bfd.c:292
+#: bfd.c:394
msgid "File too big"
-msgstr "¥Õ¥¡¥¤¥ë¤¬Â礤¹¤®¤Þ¤¹"
+msgstr "ãã¡ã¤ã«ã大ãããã¾ã"
-#: bfd.c:293
+#: bfd.c:395
+#, c-format
+msgid "Error reading %s: %s"
+msgstr "%s ãèªã¿è¾¼ã¿ä¸ã«ã¨ã©ã¼ãçºçãã¾ãã: %s"
+
+#: bfd.c:396
msgid "#<Invalid error code>"
-msgstr "#<ÉÔŬÀڤʥ¨¥é¡¼¥³¡¼¥É>"
+msgstr "#<ä¸é©åãªã¨ã©ã¼ã³ã¼ã>"
-#: bfd.c:700
+#: bfd.c:920
#, fuzzy, c-format
msgid "BFD %s assertion fail %s:%d"
-msgstr "bfd ¥¢¥µ¡¼¥·¥ç¥ó¤¬¼ºÇÔ %s:%d"
+msgstr "bfd ã¢ãµã¼ã·ã§ã³ã失æ %s:%d"
-#: bfd.c:719
+#: bfd.c:932
#, fuzzy, c-format
msgid "BFD %s internal error, aborting at %s line %d in %s\n"
-msgstr "BFD ÆâÉô¥¨¥é¡¼¡£%s ¤Î %d ¹ÔÌÜ %s ¤ÇÃæÃǤ·¤Þ¤·¤¿\n"
+msgstr "BFD å
é¨ã¨ã©ã¼ã%s ã® %d è¡ç® %s ã§ä¸æãã¾ãã\n"
-#: bfd.c:723
+#: bfd.c:936
#, fuzzy, c-format
msgid "BFD %s internal error, aborting at %s line %d\n"
-msgstr "BFD ÆâÉô¥¨¥é¡¼¡£%s ¤Î %d ¹ÔÌܤÇÃæÃǤ·¤Þ¤·¤¿\n"
+msgstr "BFD å
é¨ã¨ã©ã¼ã%s ã® %d è¡ç®ã§ä¸æãã¾ãã\n"
-#: bfd.c:725
+#: bfd.c:938
msgid "Please report this bug.\n"
-msgstr "¤³¤Î¥Ð¥°¤òÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£\n"
+msgstr "ãã®ãã°ãå ±åãã¦ãã ããã\n"
-#: binary.c:306
+#: bfdwin.c:206
#, c-format
-msgid "Warning: Writing section `%s' to huge (ie negative) file offset 0x%lx."
-msgstr ""
-"·Ù¹ð: ¥»¥¯¥·¥ç¥ó `%s' µðÂç(Îã Éé¿ô)¤Ê¥Õ¥¡¥¤¥ë¥ª¥Õ¥»¥Ã¥È 0x%lx ¤Ø¤Î½ñ¹þ¤ß¤Ç"
-"¤¹¡£"
+msgid "not mapping: data=%lx mapped=%d\n"
+msgstr "ããããã¾ãã: ãã¼ã¿=%lx ãããæ¸=%d\n"
+
+#: bfdwin.c:209
+#, c-format
+msgid "not mapping: env var not set\n"
+msgstr "ããããã¾ãã: ç°å¢å¤æ°ãè¨å®ããã¦ãã¾ãã\n"
-#: coff-a29k.c:119
-msgid "Missing IHCONST"
-msgstr "IHCONST ¤ò·ç¤¤¤Æ¤¤¤Þ¤¹"
+#: binary.c:284
+#, c-format
+msgid "Warning: Writing section `%s' to huge (ie negative) file offset 0x%lx."
+msgstr "è¦å: ã»ã¯ã·ã§ã³ `%s' 巨大(ä¾ è² æ°)ãªãã¡ã¤ã«ãªãã»ãã 0x%lx ã¸ã®æ¸è¾¼ã¿ã§ãã"
-#: coff-a29k.c:180
-msgid "Missing IHIHALF"
-msgstr "IHIHALF ¤ò·ç¤¤¤Æ¤¤¤Þ¤¹"
+#: bout.c:1150 elf-m10300.c:2078 elf32-avr.c:1639 elf32-frv.c:5743
+#: elfxx-sparc.c:2456 reloc.c:5386 reloc16.c:162 vms.c:1918 elf32-ia64.c:788
+#: elf64-ia64.c:788
+msgid "%P%F: --relax and -r may not be used together\n"
+msgstr "%P%F: --relax ããã³ -r ã¯åæã«ä½¿ç¨ã§ãã¾ãã\n"
-#: coff-a29k.c:212 coff-or32.c:228
-msgid "Unrecognized reloc"
-msgstr "ǧ¼±¤Ç¤¤Ê¤¤ºÆÇÛÃ֤Ǥ¹"
+#: cache.c:226
+msgid "reopening %B: %s\n"
+msgstr "%B ãåãªã¼ãã³ãã¦ãã¾ã: %s\n"
-#: coff-a29k.c:408
-msgid "missing IHCONST reloc"
-msgstr "IHCONST ºÆÇÛÃÖ¤ò·ç¤¤¤Æ¤¤¤Þ¤¹"
+#: coff-alpha.c:490
+msgid ""
+"%B: Cannot handle compressed Alpha binaries.\n"
+" Use compiler flags, or objZ, to generate uncompressed binaries."
+msgstr ""
+"%B: å§ç¸®ããã Alpha ãã¤ããªãæ±ããã¨ãã§ãã¾ããã\n"
+" ã³ã³ãã¤ã©ã®ãã©ã°ã¾ã㯠objZ ã§éå§ç¸®ã®ãã¤ããªãä½æãã¦ãã ããã"
-#: coff-a29k.c:498
-msgid "missing IHIHALF reloc"
-msgstr "IHIHALF ºÆÇÛÃÖ¤ò·ç¤¤¤Æ¤¤¤Þ¤¹"
+#: coff-alpha.c:647
+msgid "%B: unknown/unsupported relocation type %d"
+msgstr "%B: ä¸æ/ãµãã¼ããããªãåé
ç½®å %d ã§ã"
-#: coff-alpha.c:881 coff-alpha.c:918 coff-alpha.c:1989 coff-mips.c:1433
+#: coff-alpha.c:899 coff-alpha.c:936 coff-alpha.c:2024 coff-mips.c:1003
msgid "GP relative relocation used when GP not defined"
-msgstr "GP ¤¬Ì¤ÄêµÁ¤Î»þ¤Ë GP ´ØÏ¢ºÆÇÛÃÖ¤¬»È¤ï¤ì¤Þ¤·¤¿"
+msgstr "GP ãæªå®ç¾©ã®æã« GP é¢é£åé
ç½®ã使ããã¾ãã"
-#: coff-alpha.c:1485
+#: coff-alpha.c:1501
msgid "using multiple gp values"
-msgstr "Ê£¿ô¤Î gp Ãͤò»ÈÍѤ¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹"
+msgstr "è¤æ°ã® gp å¤ã使ç¨ãã¦ãã¾ã"
-#: coff-arm.c:1051 elf32-arm.h:285
-#, c-format
-msgid "%s: unable to find THUMB glue '%s' for `%s'"
-msgstr "%s: THUMB ¥°¥ë¡¼ '%s' (`%s' ÍÑ) ¤ò¸«¤Ä¤±¤é¤ì¤Þ¤»¤ó"
+#: coff-alpha.c:1560
+msgid "%B: unsupported relocation: ALPHA_R_GPRELHIGH"
+msgstr "%B: ãµãã¼ãããã¦ããªãåé
ç½®: ALPHA_R_GPRELHIGH"
-#: coff-arm.c:1080 elf32-arm.h:320
-#, c-format
-msgid "%s: unable to find ARM glue '%s' for `%s'"
-msgstr "%s: ARM ¥°¥ë¡¼ '%s' (`%s' ÍÑ) ¤ò¸«¤Ä¤±¤é¤ì¤Þ¤»¤ó"
+#: coff-alpha.c:1567
+msgid "%B: unsupported relocation: ALPHA_R_GPRELLOW"
+msgstr "%B: ãµãã¼ãããã¦ããªãåé
ç½®: ALPHA_R_GPRELLOW"
-#: coff-arm.c:1375 coff-arm.c:1470 elf32-arm.h:886 elf32-arm.h:990
-#, c-format
-msgid "%s(%s): warning: interworking not enabled."
-msgstr "%s(%s): ·Ù¹ð: interworking ¤¬Í¸ú¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£"
+#: coff-alpha.c:1574 elf32-m32r.c:2477 elf64-alpha.c:3943 elf64-alpha.c:4098
+#: elf32-ia64.c:4462 elf64-ia64.c:4462
+msgid "%B: unknown relocation type %d"
+msgstr "%B: ä¸æãªåé
ç½®å %d ã§ã"
-#: coff-arm.c:1379 elf32-arm.h:993
-#, c-format
-msgid " first occurrence: %s: arm call to thumb"
-msgstr " ½é²óȯÀ¸: %s: arm ¤Î thumb ¸Æ¤Ó½Ð¤·"
+#: coff-arm.c:1039
+#, fuzzy, c-format
+msgid "%B: unable to find THUMB glue '%s' for `%s'"
+msgstr "%s: THUMB ã°ã«ã¼ '%s' (`%s' ç¨) ãè¦ã¤ãããã¾ãã"
-#: coff-arm.c:1474 elf32-arm.h:889
-#, c-format
-msgid " first occurrence: %s: thumb call to arm"
-msgstr " ½é²óȯÀ¸: %s: thumb ¤Î arm ¸Æ¤Ó½Ð¤·"
+#: coff-arm.c:1068
+#, fuzzy, c-format
+msgid "%B: unable to find ARM glue '%s' for `%s'"
+msgstr "%s: ARM ã°ã«ã¼ '%s' (`%s' ç¨) ãè¦ã¤ãããã¾ãã"
-#: coff-arm.c:1477
-msgid " consider relinking with --support-old-code enabled"
-msgstr ""
-" --support-old-code ¤ò͸ú¤Ë¤·¤ÆºÆ¥ê¥ó¥¯¤¹¤ë¤³¤È¤ò¹Íθ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤"
+#: coff-arm.c:1370 elf32-arm.c:6372
+#, fuzzy, c-format
+msgid ""
+"%B(%s): warning: interworking not enabled.\n"
+" first occurrence: %B: arm call to thumb"
+msgstr "%s(%s): è¦å: interworking ãæå¹ã§ã¯ããã¾ããã"
-#: coff-arm.c:1767 coff-tic80.c:686 cofflink.c:3017
+#: coff-arm.c:1460
#, c-format
-msgid "%s: bad reloc address 0x%lx in section `%s'"
-msgstr "%s: ÉÔÀµ¤ÊºÆÇÛÃÖ¥¢¥É¥ì¥¹ 0x%lx ¤¬¥»¥¯¥·¥ç¥ó `%s' Æâ¤Ë¤¢¤ê¤Þ¤¹"
+msgid ""
+"%B(%s): warning: interworking not enabled.\n"
+" first occurrence: %B: thumb call to arm\n"
+" consider relinking with --support-old-code enabled"
+msgstr ""
-#: coff-arm.c:2107
-#, c-format
-msgid "%s: illegal symbol index in reloc: %d"
-msgstr "%s: ºÆÇÛÃÖÆâ¤Î¥·¥ó¥Ü¥ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤¬ÉÔÀµ¤Ç¤¹: %d"
+#: coff-arm.c:1755 coff-tic80.c:695 cofflink.c:3030
+msgid "%B: bad reloc address 0x%lx in section `%A'"
+msgstr "%B: ä¸æ£ãªåé
ç½®ã¢ãã¬ã¹ 0x%lx ãã»ã¯ã·ã§ã³ `%s' å
ã«ããã¾ã"
-#: coff-arm.c:2235
-#, c-format
-msgid "%s: ERROR: compiled for APCS-%d whereas target %s uses APCS-%d"
-msgstr ""
-"%s: ¥¨¥é¡¼: APCS-%d ÍѤ˥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¥¿¡¼¥²¥Ã¥È %s ¤Ë¤â¤«¤«¤ï¤é¤º APCS-%d "
-"¤ò»È¤Ã¤Æ¤¤¤Þ¤¹"
+#: coff-arm.c:2080
+msgid "%B: illegal symbol index in reloc: %d"
+msgstr "%B: åé
ç½®å
ã®ã·ã³ãã«ç´¢å¼ãä¸æ£ã§ã: %d"
-#: coff-arm.c:2250
-#, c-format
-msgid ""
-"%s: ERROR: passes floats in float registers whereas target %s uses integer "
-"registers"
-msgstr ""
-"%s: ¥¨¥é¡¼: ÉâÆ°¾®¿ô¥ì¥¸¥¹¥¿¤ËÉâÆ°¾®¿ô¤òÅϤ·¤Æ¤¤¤ë¤Ë¤â¤«¤«¤ï¤é¤º¡¢¥¿¡¼¥²¥Ã¥È "
-"%s ¤¬À°¿ô¥ì¥¸¥¹¥¿¤ò»È¤Ã¤Æ¤¤¤Þ¤¹"
+#: coff-arm.c:2211
+#, fuzzy, c-format
+msgid "error: %B is compiled for APCS-%d, whereas %B is compiled for APCS-%d"
+msgstr "ã¨ã©ã¼: %s 㯠APCS-%d ç¨ã«ã³ã³ãã¤ã«ãããã«ããããããã%s ã APCS-%d ç¨ã«ã³ã³ãã¤ã«ããã¾ãã"
-#: coff-arm.c:2253
-#, c-format
-msgid ""
-"%s: ERROR: passes floats in integer registers whereas target %s uses float "
-"registers"
-msgstr ""
-"%s: ¥¨¥é¡¼: À°¿ô¥ì¥¸¥¹¥¿¤ËÉâÆ°¾®¿ô¤òÅϤ·¤Æ¤¤¤ë¤Ë¤â¤«¤«¤ï¤é¤º¡¢¥¿¡¼¥²¥Ã¥È %s "
-"¤ÏÉâÆ°¾®¿ô¥ì¥¸¥¹¥¿¤ò»È¤Ã¤Æ¤¤¤Þ¤¹"
+#: coff-arm.c:2227 elf32-arm.c:10334
+#, fuzzy, c-format
+msgid "error: %B passes floats in float registers, whereas %B passes them in integer registers"
+msgstr "ã¨ã©ã¼: %s ã¯æµ®åå°æ°ã%sã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ããã«ããããããã%s ããããã%sã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ãã¾ã"
-#: coff-arm.c:2268
-#, c-format
-msgid ""
-"%s: ERROR: compiled as position independent code, whereas target %s is "
-"absolute position"
-msgstr ""
-"%s: ¥¨¥é¡¼: °ÌÃÖÈó°Í¸¥³¡¼¥É¤È¤·¤Æ¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¤Ë¤â¤«¤«¤ï¤é¤º¡¢¥¿¡¼¥²¥Ã¥È "
-"%s ¤ÏÀäÂаÌÃ֤ˤʤäƤ¤¤Þ¤¹"
+#: coff-arm.c:2230 elf32-arm.c:10338
+#, fuzzy, c-format
+msgid "error: %B passes floats in integer registers, whereas %B passes them in float registers"
+msgstr "ã¨ã©ã¼: %s ã¯æµ®åå°æ°ã%sã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ããã«ããããããã%s ããããã%sã¬ã¸ã¹ã¿ã«æ¸¡ãã¦ãã¾ã"
-#: coff-arm.c:2271
-#, c-format
-msgid ""
-"%s: ERROR: compiled as absolute position code, whereas target %s is position "
-"independent"
-msgstr ""
-"%s: ¥¨¥é¡¼: ÀäÂаÌÃÖ¥³¡¼¥É¤È¤·¤Æ¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¤Ë¤â¤«¤«¤ï¤é¤º¡¢¥¿¡¼¥²¥Ã¥È %"
-"s ¤Ï°ÌÃÖÈó°Í¸¥³¡¼¥É¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹"
+#: coff-arm.c:2244
+#, fuzzy, c-format
+msgid "error: %B is compiled as position independent code, whereas target %B is absolute position"
+msgstr "%s: ã¨ã©ã¼: ä½ç½®éä¾åã³ã¼ãã¨ãã¦ã³ã³ãã¤ã«ãããã«ãããããããã¿ã¼ã²ãã %s ã¯çµ¶å¯¾ä½ç½®ã«ãªã£ã¦ãã¾ã"
-#: coff-arm.c:2300
+#: coff-arm.c:2247
#, fuzzy, c-format
-msgid "Warning: %s supports interworking, whereas %s does not."
-msgstr ""
-"·Ù¹ð: ÆþÎÏ¥Õ¥¡¥¤¥ë %s ¤¬ interworking ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤Ë¤â¤«¤«¤ï¤é¤º¡¢%s ¤Ï"
-"¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¡£"
+msgid "error: %B is compiled as absolute position code, whereas target %B is position independent"
+msgstr "%s: ã¨ã©ã¼: 絶対ä½ç½®ã³ã¼ãã¨ãã¦ã³ã³ãã¤ã«ãããã«ãããããããã¿ã¼ã²ãã %s ã¯ä½ç½®éä¾åã³ã¼ãã«ãªã£ã¦ãã¾ã"
-#: coff-arm.c:2303
+#: coff-arm.c:2275 elf32-arm.c:10403
#, fuzzy, c-format
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-11-08 9:34 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-11-08 9:34 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 6405077542cc5b6325d29381059ec6da8e014489 (commit)
via 7230711e31ddbf07c57cbb2f6fa365ef1ea5fca1 (commit)
via 110f62ff8cdaafe1f62d4ccf87acbf9ec54ec8c1 (commit)
via daf877c040390d8c63871f303a8af637af29a21e (commit)
via e848cef8dfe2b3cd4064029df315f4cb3798d1c2 (commit)
from e0b23b65cc7d2632e753f4e63b15cb35a367fad3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6405077542cc5b6325d29381059ec6da8e014489
Merge: e0b23b6 7230711
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Mon Nov 8 09:34:41 2010 +0000
Merge remote branch 'gdb/master'
commit 7230711e31ddbf07c57cbb2f6fa365ef1ea5fca1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Nov 8 02:48:53 2010 +0000
bfd/
* hash.c (bfd_hash_hash): Extract from..
(bfd_hash_lookup): ..here.
(bfd_hash_rename): New function.
* section.c (bfd_rename_section): New function.
* bfd-in.h (bfd_hash_rename): Declare.
* bfd-in2.h: Regenerate.
* elf.c (_bfd_elf_make_section_from_shdr): Rename input sections
when compressing or decompressing. Don't assert name match.
* elf64-hppa.c (get_reloc_section): Don't assert name match.
* elfxx-ia64.c (get_reloc_section): Likewise.
binutils/
* objcopy.c (copy_main): No need to rename sections when compressing
or decompressing.
binutils/testsuite/
* binutils-all/objdump.W: Adjust expected result for debug section
rename.
commit 110f62ff8cdaafe1f62d4ccf87acbf9ec54ec8c1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 8 00:00:32 2010 +0000
*** empty log message ***
commit daf877c040390d8c63871f303a8af637af29a21e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Nov 7 23:00:05 2010 +0000
daily update
commit e848cef8dfe2b3cd4064029df315f4cb3798d1c2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Nov 7 22:25:15 2010 +0000
gdb/
* infrun.c (restore_inferior_thread_state): Use
discard_inferior_thread_state to free the data.
(discard_inferior_thread_state): xfree also siginfo_data.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 13 ++++++++++++
bfd/bfd-in.h | 4 +++
bfd/bfd-in2.h | 7 ++++++
bfd/elf.c | 31 ++++++++++++++++++++++++----
bfd/elf64-hppa.c | 7 ------
bfd/elfxx-ia64.c | 7 ------
bfd/hash.c | 58 +++++++++++++++++++++++++++++++++++++++++++----------
bfd/section.c | 23 +++++++++++++++++++++
bfd/version.h | 2 +-
gdb/ChangeLog | 6 +++++
gdb/infrun.c | 6 ++--
gdb/version.in | 2 +-
12 files changed, 131 insertions(+), 35 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 78b904a..bd33568 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,16 @@
+2010-11-08 Alan Modra <amodra@gmail.com>
+
+ * hash.c (bfd_hash_hash): Extract from..
+ (bfd_hash_lookup): ..here.
+ (bfd_hash_rename): New function.
+ * section.c (bfd_rename_section): New function.
+ * bfd-in.h (bfd_hash_rename): Declare.
+ * bfd-in2.h: Regenerate.
+ * elf.c (_bfd_elf_make_section_from_shdr): Rename input sections
+ when compressing or decompressing. Don't assert name match.
+ * elf64-hppa.c (get_reloc_section): Don't assert name match.
+ * elfxx-ia64.c (get_reloc_section): Likewise.
+
2010-11-05 Joseph Myers <joseph@codesourcery.com>
* elf32-tic6x.c (elf32_tic6x_obj_attrs_handle_unknown): New.
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index cfa5225..63fcdc9 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -404,6 +404,10 @@ extern struct bfd_hash_entry *bfd_hash_lookup
extern struct bfd_hash_entry *bfd_hash_insert
(struct bfd_hash_table *, const char *, unsigned long);
+/* Rename an entry in a hash table. */
+extern void bfd_hash_rename
+ (struct bfd_hash_table *, const char *, struct bfd_hash_entry *);
+
/* Replace an entry in a hash table. */
extern void bfd_hash_replace
(struct bfd_hash_table *, struct bfd_hash_entry *old,
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index c6a54b5..f3e2b45 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -411,6 +411,10 @@ extern struct bfd_hash_entry *bfd_hash_lookup
extern struct bfd_hash_entry *bfd_hash_insert
(struct bfd_hash_table *, const char *, unsigned long);
+/* Rename an entry in a hash table. */
+extern void bfd_hash_rename
+ (struct bfd_hash_table *, const char *, struct bfd_hash_entry *);
+
/* Replace an entry in a hash table. */
extern void bfd_hash_replace
(struct bfd_hash_table *, struct bfd_hash_entry *old,
@@ -1713,6 +1717,9 @@ asection *bfd_make_section (bfd *, const char *name);
bfd_boolean bfd_set_section_flags
(bfd *abfd, asection *sec, flagword flags);
+void bfd_rename_section
+ (bfd *abfd, asection *sec, const char *newname);
+
void bfd_map_over_sections
(bfd *abfd,
void (*func) (bfd *abfd, asection *sect, void *obj),
diff --git a/bfd/elf.c b/bfd/elf.c
index 4f326a7..075a668 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -822,11 +822,7 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
const struct elf_backend_data *bed;
if (hdr->bfd_section != NULL)
- {
- BFD_ASSERT (strcmp (name,
- bfd_get_section_name (abfd, hdr->bfd_section)) == 0);
- return TRUE;
- }
+ return TRUE;
newsect = bfd_make_section_anyway (abfd, name);
if (newsect == NULL)
@@ -1016,6 +1012,7 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
|| (name[1] == 'z' && name[7] == '_')))
{
enum { nothing, compress, decompress } action = nothing;
+ char *new_name;
if (bfd_is_section_compressed (abfd, newsect))
{
@@ -1030,6 +1027,7 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
action = compress;
}
+ new_name = NULL;
switch (action)
{
case nothing:
@@ -1042,6 +1040,17 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
abfd, name);
return FALSE;
}
+ if (name[1] != 'z')
+ {
+ unsigned int len = strlen (name);
+
+ new_name = bfd_alloc (abfd, len + 2);
+ if (new_name == NULL)
+ return FALSE;
+ new_name[0] = '.';
+ new_name[1] = 'z';
+ memcpy (new_name + 2, name + 1, len);
+ }
break;
case decompress:
if (!bfd_init_section_decompress_status (abfd, newsect))
@@ -1051,8 +1060,20 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
abfd, name);
return FALSE;
}
+ if (name[1] == 'z')
+ {
+ unsigned int len = strlen (name);
+
+ new_name = bfd_alloc (abfd, len);
+ if (new_name == NULL)
+ return FALSE;
+ new_name[0] = '.';
+ memcpy (new_name + 1, name + 2, len - 1);
+ }
break;
}
+ if (new_name != NULL)
+ bfd_rename_section (abfd, newsect, new_name);
}
return TRUE;
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 11289b1..d8213a0 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -411,13 +411,6 @@ get_reloc_section (bfd *abfd,
if (srel_name == NULL)
return FALSE;
- BFD_ASSERT ((CONST_STRNEQ (srel_name, ".rela")
- && strcmp (bfd_get_section_name (abfd, sec),
- srel_name + 5) == 0)
- || (CONST_STRNEQ (srel_name, ".rel")
- && strcmp (bfd_get_section_name (abfd, sec),
- srel_name + 4) == 0));
-
dynobj = hppa_info->root.dynobj;
if (!dynobj)
hppa_info->root.dynobj = dynobj = abfd;
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index 0ef1a44..d42ad89 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -2602,13 +2602,6 @@ get_reloc_section (bfd *abfd,
if (srel_name == NULL)
return NULL;
- BFD_ASSERT ((CONST_STRNEQ (srel_name, ".rela")
- && strcmp (bfd_get_section_name (abfd, sec),
- srel_name+5) == 0)
- || (CONST_STRNEQ (srel_name, ".rel")
- && strcmp (bfd_get_section_name (abfd, sec),
- srel_name+4) == 0));
-
dynobj = ia64_info->root.dynobj;
if (!dynobj)
ia64_info->root.dynobj = dynobj = abfd;
diff --git a/bfd/hash.c b/bfd/hash.c
index fc05923..e2fa3a9 100644
--- a/bfd/hash.c
+++ b/bfd/hash.c
@@ -1,6 +1,6 @@
/* hash.c -- hash table routines for BFD
Copyright 1993, 1994, 1995, 1997, 1999, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2009 Free Software Foundation, Inc.
+ 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
Written by Steve Chamberlain <sac@cygnus.com>
This file is part of BFD, the Binary File Descriptor library.
@@ -412,20 +412,13 @@ bfd_hash_table_free (struct bfd_hash_table *table)
table->memory = NULL;
}
-/* Look up a string in a hash table. */
-
-struct bfd_hash_entry *
-bfd_hash_lookup (struct bfd_hash_table *table,
- const char *string,
- bfd_boolean create,
- bfd_boolean copy)
+static inline unsigned long
+bfd_hash_hash (const char *string, unsigned int *lenp)
{
const unsigned char *s;
unsigned long hash;
- unsigned int c;
- struct bfd_hash_entry *hashp;
unsigned int len;
- unsigned int _index;
+ unsigned int c;
hash = 0;
len = 0;
@@ -438,7 +431,25 @@ bfd_hash_lookup (struct bfd_hash_table *table,
len = (s - (const unsigned char *) string) - 1;
hash += len + (len << 17);
hash ^= hash >> 2;
+ if (lenp != NULL)
+ *lenp = len;
+ return hash;
+}
+
+/* Look up a string in a hash table. */
+struct bfd_hash_entry *
+bfd_hash_lookup (struct bfd_hash_table *table,
+ const char *string,
+ bfd_boolean create,
+ bfd_boolean copy)
+{
+ unsigned long hash;
+ struct bfd_hash_entry *hashp;
+ unsigned int len;
+ unsigned int _index;
+
+ hash = bfd_hash_hash (string, &len);
_index = hash % table->size;
for (hashp = table->table[_index];
hashp != NULL;
@@ -535,6 +546,31 @@ bfd_hash_insert (struct bfd_hash_table *table,
return hashp;
}
+/* Rename an entry in a hash table. */
+
+void
+bfd_hash_rename (struct bfd_hash_table *table,
+ const char *string,
+ struct bfd_hash_entry *ent)
+{
+ unsigned int _index;
+ struct bfd_hash_entry **pph;
+
+ _index = ent->hash % table->size;
+ for (pph = &table->table[_index]; *pph != NULL; pph = &(*pph)->next)
+ if (*pph == ent)
+ break;
+ if (*pph == NULL)
+ abort ();
+
+ *pph = ent->next;
+ ent->string = string;
+ ent->hash = bfd_hash_hash (string, NULL);
+ _index = ent->hash % table->size;
+ ent->next = table->table[_index];
+ table->table[_index] = ent;
+}
+
/* Replace an entry in a hash table. */
void
diff --git a/bfd/section.c b/bfd/section.c
index 51c2196..bff8adf 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -1215,6 +1215,29 @@ bfd_set_section_flags (bfd *abfd ATTRIBUTE_UNUSED,
/*
FUNCTION
+ bfd_rename_section
+
+SYNOPSIS
+ void bfd_rename_section
+ (bfd *abfd, asection *sec, const char *newname);
+
+DESCRIPTION
+ Rename section @var{sec} in @var{abfd} to @var{newname}.
+*/
+
+void
+bfd_rename_section (bfd *abfd, sec_ptr sec, const char *newname)
+{
+ struct section_hash_entry *sh;
+
+ sh = (struct section_hash_entry *)
+ ((char *) sec - offsetof (struct section_hash_entry, section));
+ sh->section.name = newname;
+ bfd_hash_rename (&abfd->section_htab, newname, &sh->root);
+}
+
+/*
+FUNCTION
bfd_map_over_sections
SYNOPSIS
diff --git a/bfd/version.h b/bfd/version.h
index 324a3d0..090f13d 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101107
+#define BFD_VERSION_DATE 20101108
#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 e3ab178..affffde 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * infrun.c (restore_inferior_thread_state): Use
+ discard_inferior_thread_state to free the data.
+ (discard_inferior_thread_state): xfree also siginfo_data.
+
2010-11-05 Doug Evans <dje@google.com>
Make gdb.parameter("directories") work.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 240cd95..f6b00da 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -6128,9 +6128,8 @@ restore_inferior_thread_state (struct inferior_thread_state *inf_state)
if (target_has_execution)
/* NB: The register write goes through to the target. */
regcache_cpy (regcache, inf_state->registers);
- regcache_xfree (inf_state->registers);
- xfree (inf_state->siginfo_data);
- xfree (inf_state);
+
+ discard_inferior_thread_state (inf_state);
}
static void
@@ -6149,6 +6148,7 @@ void
discard_inferior_thread_state (struct inferior_thread_state *inf_state)
{
regcache_xfree (inf_state->registers);
+ xfree (inf_state->siginfo_data);
xfree (inf_state);
}
diff --git a/gdb/version.in b/gdb/version.in
index f05fdf1..ec42e11 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.50.20101107-cvs
+7.2.50.20101108-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-11-07 18:15 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-11-07 18:15 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via e0b23b65cc7d2632e753f4e63b15cb35a367fad3 (commit)
via c014cc56111333f7c8757615a06ff83467bebb3d (commit)
via dc79c9d70fd271361c1de38988c31914bf02b911 (commit)
via f2cce584e9ca6da90e08ba4ef9c5728e6d5659de (commit)
via 86f524e3bac0da140d57dcb15d50a3b85cb5f3c0 (commit)
via 4550c9db5003341e7690bbd7b4a08f6d5d49c725 (commit)
via c61e52853767278ca6a9f997dae8e4e706b745b8 (commit)
via 9500a47c33216200c084a2d186f51f89bb2842c0 (commit)
via 2601496ec3f61488f10bbba6d34e3532a2fdd11d (commit)
via 100d4cd4f6f42014c07e6acd0d9b6187d1259b2e (commit)
via 48f09c3898b89b81f693bab1389476a10ba72e2c (commit)
via a5f2975bdd252a4b851cdbf5d082a07ebebc7cd0 (commit)
via e4fc1367b43f494dd3f33c5f29b08f631809790e (commit)
via b44aa726772752492fc1721e381d09b0146156a7 (commit)
via 5d4538292daab7951fc4a816bba8b31feeaab991 (commit)
via e77390af68b6110d9ef06395c3c5055249cd2a50 (commit)
via 7feb2234cbbe936c2a48e8b442bfcaf487bb6c00 (commit)
via be5d47630b22a77813f607d9e2f8b2b843345a30 (commit)
via 8d7ba29117a77e20beba75ec5c767a801a0c4ba4 (commit)
via 9c14d06d05f4ebb7c839c8285f598c6091a35da9 (commit)
via f8d20ee4a41ea7149ac8bd4f78a0316e3ac059b4 (commit)
via 2a19fb230b8ee399551804ee86727c4d9ad31e1c (commit)
via 0e144e829308658248d5546d52ffeb28b15e2b68 (commit)
via 5ab6e655f66d692250a3fd029c2e2dd3d98c6c6e (commit)
via 165ea935fa6610ee8d21fa7a123a867acc94f3ce (commit)
via e8c38aa2bb35b5abeae940f8728661b77012aec2 (commit)
via 1dce25c761a38616931e47546359a0babbc5f88d (commit)
via 471b5dc75b242447b2ad91a069ae84874d6e30f2 (commit)
via 071518426bded225bc28d6480fd39f1891519f74 (commit)
via b7ccfa5e25fb1df62eb455e7ee234b99c70d13dc (commit)
via e56e65ba8ddc42de23477c11c8553e11edac51db (commit)
via 2c7c9e97e654779550ce5f1da513368e53852996 (commit)
via 7415f6aaa8613ca439040420347d6df75e495702 (commit)
via 0cc7114393b1d8ab9f6c58284afe4941c6d8f2f7 (commit)
via a88208defa655bd9070d1281c31a4224f6fd6db7 (commit)
via 5f5809c6ce20fce7b221e65843b18550e53203b5 (commit)
via 7b593c557d14ab9cc21638be6518e279b929cdfb (commit)
via 4b4ecb533f41287206e9eec601963c2a014b9f83 (commit)
via 583e61f90299f75322cd29483351d378c6d185c8 (commit)
via 6aa0516e6febd8d17d8d2fd49ad9061b7940b1ee (commit)
via 7eef2add1e87e2a3083c8549029d28c93df5dab4 (commit)
via 87c4cdd048cfaef8db45587bc58f06df97e992b9 (commit)
via 39f348ae3d7fcda912135ea2ef8af4a3797c5a0a (commit)
via 156555e0dd67ee54144f7877847d6a4d5b3bfb85 (commit)
via 550df216bb6d848ad393cf96c88d626d7da88505 (commit)
via 26148f25dbe24f2c22ffaaba73852172611d311b (commit)
via 8405572c5488d38c1b02fc159432eaaf7ff07eb3 (commit)
via 8d8114061768f9657f0869d2954f63a5a48c7382 (commit)
via 89cb907efc4c75ce8bfc672c69b4bc22f2c74aae (commit)
via 5062b183c190c8339d11d61aa0cac1150fe41b70 (commit)
via 00c3bfe025e9419e0a9a337e940db4f76e8ff78c (commit)
via a858b45ab08abe6362385984f9dd2999aa2df59d (commit)
via bf5cb1467d41bca799f36f4564d8f4c76476dc5b (commit)
via 98d040efa816a321cec956def2865b0372a17741 (commit)
via 12ce367e025aa650b27afb83d36eecff66ef5905 (commit)
via 874be79c426e888f67f18d96b0a837c79546a08a (commit)
via f539ba5797fa3c3a167c84d368778333bbf6e6db (commit)
via 3468845cf828e997090099c88b1735c604106d24 (commit)
via 5d5b76023ab4d796ed9eb9e3a02a02f1dd06aaa0 (commit)
via af87e42fa4e758ed82ce7cfec167ebec299e3bf9 (commit)
via 5e6f6a11bf2d5c6cdb4556d6906615d6dd64b5ff (commit)
via 9a2bd35a6fdbe385d0768e876a269c2d4fefb1f3 (commit)
via 06df7f5ccdb68654e2978554d279ed4d1b46a645 (commit)
via 774c0801b3a964a7d611102d69f9230a127f5366 (commit)
via 68c19cc2eb92a1a44b6e5b6465f9315b4e5266e0 (commit)
via 21847ae52fc7b26bee800270ba1d96abc1db07f6 (commit)
via fd50a55b1de8ccd660f7573fa677dcbf5234504f (commit)
via f4adc15f9eade09c52dc4c8815cb489597fa8e80 (commit)
via 89681dbb8411456f08a5f3b9c8a4a3d4b231daad (commit)
via d6320a093f4d297b2a0819988d4e3e6a1b1321f7 (commit)
via e42900c60c2bde6a8680c4fd260a57d173419efd (commit)
via d16905b01ec440caf9b9d0aebe1ada80b22ee281 (commit)
via 936e4250911dc3c4943783bb44a5c94a987897ed (commit)
via 91e5d44a5440bd1018028759f02fadc715f6b103 (commit)
via 5220f0051c7d9dc4e440c2f48aab5e6779bb07d0 (commit)
via dc732ab277fc738be8596790f3b6512883fad19b (commit)
via 2af78ff3212d774245864f527a442b57dc4ec736 (commit)
via b513843c81172d96f0d365ffd3f356a175b1b683 (commit)
via 8f8155235f71462c4f2e3031336131824e72e4ad (commit)
via 0b9e810b27cf59712abc905289ad134fecc8c6ce (commit)
via d552655b4fa7dcaf2b40d9e190b752df6b063036 (commit)
via 730af9f6239085f1f62a61a37612154d32f75d72 (commit)
via f8942a0d2ad1734c52e1dd3cadd3aa412de327e5 (commit)
via b612002e6aab3536b645fae3e7ac991dbc11427e (commit)
via 9af2d88c1e99cc0bf4593efe2cc25e26be7fb0a8 (commit)
via ea00e595c65960514f156a8e1639e71eef5753e4 (commit)
via ed2c7099633ddd54a58a523b6e4c377013193f94 (commit)
via 7770d2f4535f87eee0415946a675d1fb8f489303 (commit)
via 1dc2e9b312872dd2882594324b8b0dbb5cf2025a (commit)
via e675d31ff4c84d9e8e1d92d8274bd52b9c3fe80d (commit)
via 27791b32eea79646c8b96e3c6b83aeefc27bc1a1 (commit)
via c2d636362c30af59d290a2e66860143669542185 (commit)
via 8e3eeadc9e1d04a52be2b8b00578b339aabe9dcd (commit)
via b3338f3e3f76357d4ce3a649dbe7957824a82a07 (commit)
via a58b0da3c225ac304959ef6e8de56fe84d970ed0 (commit)
via 3ccd7a287fc2515525f797ee492e64d487c92708 (commit)
from 891eaafc8685002d1c8a5169053c86256f5e9ddc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit e0b23b65cc7d2632e753f4e63b15cb35a367fad3
Merge: 891eaaf c014cc5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Nov 7 19:14:51 2010 +0100
Merge remote branch 'gdb/master'
commit c014cc56111333f7c8757615a06ff83467bebb3d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 7 00:00:03 2010 +0000
*** empty log message ***
commit dc79c9d70fd271361c1de38988c31914bf02b911
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Nov 6 23:00:04 2010 +0000
daily update
commit f2cce584e9ca6da90e08ba4ef9c5728e6d5659de
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 6 00:00:03 2010 +0000
*** empty log message ***
commit 86f524e3bac0da140d57dcb15d50a3b85cb5f3c0
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Nov 5 23:00:05 2010 +0000
daily update
commit 4550c9db5003341e7690bbd7b4a08f6d5d49c725
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Nov 5 23:00:05 2010 +0000
daily update
commit c61e52853767278ca6a9f997dae8e4e706b745b8
Author: DJ Delorie <dj@delorie.com>
Date: Fri Nov 5 18:06:01 2010 +0000
merge from gcc
commit 9500a47c33216200c084a2d186f51f89bb2842c0
Author: Doug Evans <dje@google.com>
Date: Fri Nov 5 17:07:35 2010 +0000
* gdb.python/py-param.exp: Delete, contents moved to ...
* gdb.python/py-parameter.exp: ... here. New file.
Add test for gdb.parameter ("directories").
commit 2601496ec3f61488f10bbba6d34e3532a2fdd11d
Author: Doug Evans <dje@google.com>
Date: Fri Nov 5 16:55:33 2010 +0000
Make gdb.parameter("directories") work.
New command "set directories".
* NEWS: Document them.
* source.c (set_directories_command): New function.
(show_directories_1): Renamed from show_directories.
All callers updated.
(show_directories_command): New function.
(_initialize_source): Install "directories" as a set/show
variable instead of just a show command.
doc/
* gdb.texinfo (Source Path): Document "set directories".
testsuite/
* gdb.base/help.exp: Update expected output.
* gdb.python/py-parameter.exp: New file.
commit 100d4cd4f6f42014c07e6acd0d9b6187d1259b2e
Author: kwerner <kwerner>
Date: Fri Nov 5 14:31:21 2010 +0000
gdb:
* NEWS: Mention OpenCL C language support.
* Makefile.in (SFILES): Add opencl-lang.c.
(COMMON_OBS): Add opencl-lang.o.
* opencl-lang.c: New File
* defs.h (enum language): Add language_opencl.
* dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
IBM XL C OpenCL compiler.
* c-lang.h: Include "parser-defs.h".
(evaluate_subexp_c): Declare.
* c-lang.c (evaluate_subexp_c): Remove the static qualifier.
(c_op_print_tab): Add declaration.
* eval.c (binop_promote): Handle language_opencl.
* c-exp.y: Lookup the primitive types instead of referring to the
builtins.
gdb/testsuite:
* Makefile.in (ALL_SUBDIRS): Add gdb.opencl.
* configure.ac (AC_OUTPUT): Add gdb.opencl/Makefile.
* configure: Regenerate.
* gdb.opencl/Makefile.in: New File.
* gdb.opencl/datatypes.exp: Likewise.
* gdb.opencl/datatypes.cl: Likewise.
* gdb.opencl/operators.exp: Likewise.
* gdb.opencl/operators.cl: Likewise.
* gdb.opencl/vec_comps.exp: Likewise.
* gdb.opencl/vec_comps.cl: Likewise.
* gdb.opencl/convs_casts.exp: Likewise.
* gdb.opencl/convs_casts.cl: Likewise.
* lib/opencl.exp: Likewise.
* lib/opencl_hostapp.c: Likewise.
* lib/opencl_kernel.cl: Likewise.
* lib/cl_util.c: Likewise.
* lib/cl_util.c: Likewise.
* gdb.base/default.exp (set language): Add "opencl" to the list of
languages.
gdb/doc:
* gdb.texinfo: (Summary) Add mention about OpenCL C language support.
(OpenCL C): New node.
commit 48f09c3898b89b81f693bab1389476a10ba72e2c
Author: eager <eager>
Date: Fri Nov 5 14:09:24 2010 +0000
Fix typo in microblaze license.
commit a5f2975bdd252a4b851cdbf5d082a07ebebc7cd0
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Fri Nov 5 13:04:06 2010 +0000
bfd:
* elf32-tic6x.c (elf32_tic6x_obj_attrs_handle_unknown): New.
(elf32_tic6x_merge_attributes): Use
_bfd_elf_merge_unknown_attribute_low and
_bfd_elf_merge_unknown_attribute_list.
(elf_backend_obj_attrs_handle_unknown): Define.
ld/testsuite:
* ld-tic6x/attr-unknown-1.d, ld-tic6x/attr-unknown-1000-1.s,
ld-tic6x/attr-unknown-1000-2.s, ld-tic6x/attr-unknown-1024-1.s,
ld-tic6x/attr-unknown-2.d, ld-tic6x/attr-unknown-3.d,
ld-tic6x/attr-unknown-4.d, ld-tic6x/attr-unknown-5.d,
ld-tic6x/attr-unknown-54-1.s, ld-tic6x/attr-unknown-55-a.s,
ld-tic6x/attr-unknown-6.d, ld-tic6x/attr-unknown-7.d,
ld-tic6x/attr-unknown-71-a.s, ld-tic6x/attr-unknown-71-b.s: New
tests.
commit e4fc1367b43f494dd3f33c5f29b08f631809790e
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Fri Nov 5 13:02:08 2010 +0000
* elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
_bfd_elf_merge_unknown_attribute_list): Correct test for matching
string attributes.
commit b44aa726772752492fc1721e381d09b0146156a7
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Nov 5 10:25:04 2010 +0000
bfd/
2010-11-05 Tristan Gingold <gingold@adacore.com>
* po/bfd.pot: Regenerate
binutils/
2010-11-05 Tristan Gingold <gingold@adacore.com>
* po/binutils.pot: Regenerate
gas/
2010-11-05 Tristan Gingold <gingold@adacore.com>
* po/gas.pot: Regenerate
* po/POTFILES.in: Regenerate
gprof/
2010-11-05 Tristan Gingold <gingold@adacore.com>
* po/gprof.pot: Regenerate
ld/
2010-11-05 Tristan Gingold <gingold@adacore.com>
* po/ld.pot: Regenerate
* po/POTFILES.in: Regenerate
opcodes/
2010-11-05 Tristan Gingold <gingold@adacore.com>
* po/opcodes.pot: Regenerate
commit 5d4538292daab7951fc4a816bba8b31feeaab991
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Nov 5 08:58:20 2010 +0000
bfd/
2010-11-05 Tristan Gingold <gingold@adacore.com>
* configure.in: Bump version to 2.21.51
* configure: Regenerate.
commit e77390af68b6110d9ef06395c3c5055249cd2a50
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Nov 5 01:50:17 2010 +0000
gdb/
Fix configure --enable-plugins --without-python.
* configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
* configure: Regenerate.
commit 7feb2234cbbe936c2a48e8b442bfcaf487bb6c00
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Nov 5 01:40:27 2010 +0000
gdb/
* solib.c (solib_read_symbols): Call exception_fprintf even without
FROM_TTY. Print also so->so_name.
commit be5d47630b22a77813f607d9e2f8b2b843345a30
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 5 00:00:03 2010 +0000
*** empty log message ***
commit 8d7ba29117a77e20beba75ec5c767a801a0c4ba4
Author: Richard Henderson <rth@redhat.com>
Date: Thu Nov 4 23:41:20 2010 +0000
Use spawnve on cygwin.
* configure.ac (AC_CHECK_HEADERS): Add process.h.
(checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
(AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
* configure, config.in: Rebuild.
* pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
[HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
commit 9c14d06d05f4ebb7c839c8285f598c6091a35da9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Nov 4 23:00:05 2010 +0000
daily update
commit f8d20ee4a41ea7149ac8bd4f78a0316e3ac059b4
Author: swagiaal <swagiaal>
Date: Thu Nov 4 20:43:22 2010 +0000
Fix derived class overload problem.
2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
* gdbtypes.h (struct rank): Created subrank.
* gdbtypes.c: Initialized subrank for all
'BADNESS' constants.
(distance_to_ancestor): New function.
(is_ancestor): Use distance_to_ancestor.
(is_public_ancestor): Ditto.
(sum_ranks): Handle subrank.
(compare_ranks): Ditto.
(rank_one_type): Subrank base conversions.
2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/overload.exp: Added test for inheritance
overload.
* gdb.cp/overload.cc: Ditto.
* gdb.cp/oranking.exp: Removed releveant kfails.
commit 2a19fb230b8ee399551804ee86727c4d9ad31e1c
Author: swagiaal <swagiaal>
Date: Thu Nov 4 20:26:23 2010 +0000
Create and use struct rank.
2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
* gdbtypes.h: Create struct rank.
Convert all 'BADNESS' macros to const struct rank declarations.
(sum_ranks): New function.
(compare_ranks): New function.
* valops.c (find_oload_champ): Updated.
(classify_oload_match): Use compare_ranks.
Improved comments.
(compare_parameters): Use compare_ranks.
* gdbtypes.c: Initialize 'BADNESS' constants.
(sum_ranks): New function.
(compare_ranks): New function.
(compare_badness): Use compare_ranks.
(rank_function): Use global constants instead of literals.
(rank_one_type): Ditto.
Return struct rank.
Use sum_ranks.
commit 0e144e829308658248d5546d52ffeb28b15e2b68
Author: Doug Evans <dje@google.com>
Date: Thu Nov 4 20:18:37 2010 +0000
* python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
(find_pretty_printer): Fix comments.
commit 5ab6e655f66d692250a3fd029c2e2dd3d98c6c6e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Nov 4 18:52:11 2010 +0000
gdb/testsuite/
* gdb.ada/null_array.exp (print my_table): Call get_compiler_info and
check test_compiler_info.
commit 165ea935fa6610ee8d21fa7a123a867acc94f3ce
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Thu Nov 4 18:00:51 2010 +0000
PR ld/10144
* elfxx-mips.c (_bfd_mips_elf_check_relocs)
[R_MIPS_32, R_MIPS_REL32, R_MIPS_64]: Ignore relocs from
SEC_DEBUGGING sections.
commit e8c38aa2bb35b5abeae940f8728661b77012aec2
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Nov 4 16:17:42 2010 +0000
2010-11-04 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (vms_write_index): Fix thinko: reverse the loop.
Use bfd_zmalloc instead of bfd_malloc. Fix comment.
commit 1dce25c761a38616931e47546359a0babbc5f88d
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Thu Nov 4 16:03:19 2010 +0000
bfd/
2010-11-04 Kai Tietz <kai.tietz@onevision.com>
* coffcode.h (GNU_LINKONCE_WT): New.
(sec_to_styp_flags): Add handling of new debug
section.
(styp_to_sec_flags): Likewise.
ld/
010-11-04 Kai Tietz <kai.tietz@onevision.com>
* scripttempl/pe.sc (.debug_types): New.
* scripttempl/pep.sc: Likewise.
commit 471b5dc75b242447b2ad91a069ae84874d6e30f2
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Nov 4 13:51:36 2010 +0000
2010-11-04 Tristan Gingold <gingold@adacore.com>
* makefile.vms (CFLAGS): Make badalias warnings informational.
* vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
commit 071518426bded225bc28d6480fd39f1891519f74
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Thu Nov 4 11:35:00 2010 +0000
* elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
_bfd_elf_merge_unknown_attribute_list): New.
* elf-bfd.h (struct elf_backend_data): Add
obj_attrs_handle_unknown.
(_bfd_elf_merge_unknown_attribute_low,
_bfd_elf_merge_unknown_attribute_list): Declare.
* elf32-arm.c (elf32_arm_obj_attrs_handle_unknown): New. Split
out from elf32_arm_merge_eabi_attributes.
(elf32_arm_merge_eabi_attributes): Use
_bfd_elf_merge_unknown_attribute_low and
_bfd_elf_merge_unknown_attribute_list.
(elf_backend_obj_attrs_handle_unknown): Define.
* elfxx-target.h (elf_backend_obj_attrs_handle_unknown): Define.
(elfNN_bed): Update initializer.
commit b7ccfa5e25fb1df62eb455e7ee234b99c70d13dc
Author: Hui Zhu <teawater@gmail.com>
Date: Thu Nov 4 04:48:14 2010 +0000
2010-11-04 Hui Zhu <teawater@gmail.com>
* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
commit e56e65ba8ddc42de23477c11c8553e11edac51db
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 4 00:00:33 2010 +0000
*** empty log message ***
commit 2c7c9e97e654779550ce5f1da513368e53852996
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Nov 3 23:20:33 2010 +0000
[Ada] move some variables to scope where they are used
I noticed that some variables are only used inside one side of
an if/else blob. So I moved these variables inside that block for
better clarity.
gdb/ChangeLog:
* ada-valprint.c (ada_val_print_array): Move variables `eltlen'
and `len' declaration and computation inside block where they
are being used.
commit 7415f6aaa8613ca439040420347d6df75e495702
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Nov 3 23:20:11 2010 +0000
[Ada] fix warning when printing empty array
This patch should fix the following regression:
(gdb) print my_table
-$1 = ()
-(gdb) PASS: gdb.ada/null_array.exp: print my_table
+$1 = (warning: unable to get bounds of array, assuming null array
+)
+(gdb) FAIL: gdb.ada/null_array.exp: print my_table
The problem was introduced by a change in val_print_array_elements
which removed a check for the case where the array's high bound
is smaller than the array's low bound (empty array).
This change restores the check and forces the len to zero in that case.
Looking at the patch that caused the regression, I suspect that we may
have other parts that might have been broken (non-zero array low bound?).
gdb/ChangeLog:
* valprint.c (val_print_array_elements): Put back handling of
empty arrays.
commit 0cc7114393b1d8ab9f6c58284afe4941c6d8f2f7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Nov 3 23:00:06 2010 +0000
daily update
commit a88208defa655bd9070d1281c31a4224f6fd6db7
Author: Dave Korn <dave.korn@artimi.com>
Date: Wed Nov 3 14:27:05 2010 +0000
Sync from gcc/
PR lto/46273
* configure.ac: Remove libelf tests. Build lto-plugin on ELF always
and on other supported platforms whenever LTO is enabled.
* configure: Rebuild.
commit 5f5809c6ce20fce7b221e65843b18550e53203b5
Author: kwerner <kwerner>
Date: Wed Nov 3 14:21:52 2010 +0000
gdb:
* dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
DIE and set the length of the type.
* gdbtypes.h (get_array_bounds): Move here from valprint.h.
* gdbtypes.c (get_array_bounds): Move here from valprint.c and
return 0 if the corresponding bounds of the type are undefined.
* valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
* valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
(val_print_array_elements): Use get_array_bounds to compute the number
of array elements instead of dividing the length of the array by the
length of the element types.
* valarith.c (vector_binop): Likewise.
* valops.c (value_cast): Likewise.
* c-valprint.c (c_val_print): Likewise.
* c-typeprint.c (c_type_print_varspec_suffix): Likewise.
gdb/testsuite:
* gdb.base/gnu_vector.exp: Adjust expect messages.
commit 7b593c557d14ab9cc21638be6518e279b929cdfb
Author: kwerner <kwerner>
Date: Wed Nov 3 14:06:25 2010 +0000
gdb:
* valarith.c (value_pos, value_neg, value_complement): Handle
vector types.
* valops.c (value_one): Likewise.
gdb/testsuite:
* gdb.base/gnu_vector.exp: Add unary operator tests.
commit 4b4ecb533f41287206e9eec601963c2a014b9f83
Author: kwerner <kwerner>
Date: Wed Nov 3 13:49:36 2010 +0000
gdb:
* value.h (value_non_lval): Declare.
* value.c (value_non_lval): New function.
* eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
non-lvalue.
gdb/testsuite:
* gdb.base/exprs.exp: Add tests for pre-/post- in-/decrement operators.
commit 583e61f90299f75322cd29483351d378c6d185c8
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Nov 3 02:31:01 2010 +0000
Don't display bits only used for BFD in abfd->flags.
bfd/
2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
* bfd.c (BFD_FLAGS_FOR_BFD_USE_MASK): New.
* bfd-in2.h: Regenerated.
binutils/
2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
* objdump.c (dump_bfd_header): Don't display
BFD_FLAGS_FOR_BFD_USE_MASK bits in abfd->flags.
commit 6aa0516e6febd8d17d8d2fd49ad9061b7940b1ee
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 3 00:00:02 2010 +0000
*** empty log message ***
commit 7eef2add1e87e2a3083c8549029d28c93df5dab4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 2 23:00:05 2010 +0000
daily update
commit 87c4cdd048cfaef8db45587bc58f06df97e992b9
Author: Doug Evans <dje@google.com>
Date: Tue Nov 2 22:44:09 2010 +0000
New python module gdb.printing, and new commands info pretty-printer,
enable pretty-printer, disable pretty-printer.
* NEWS: Mention them.
* data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
gdb/command/__init__.py, gdb/command/pretty_printers.py.
* python/lib/gdb/__init__.py: Install pretty-printer commands.
* python/lib/gdb/printing.py: New file.
* python/lib/gdb/command/__init__.py: New file.
* python/lib/gdb/command/pretty_printers.py: New file.
doc/
* gdb.texinfo (Pretty Printing): Expand into three sections,
introduction, example, and commands.
(Python API): Delete section Disabling Pretty-Printers, merge into
Selecting Pretty-Printers.
(Writing a Pretty-Printer): New section. Move the pretty-printer
example here, and reformat to match python coding style. Add a second
example using the gdb.printing module.
(Python modules): Add gdb.printing.
testsuite/
* gdb.python/py-pp-maint.c: New file.
* gdb.python/py-pp-maint.exp: New file.
* gdb.python/py-pp-maint.py: New file.
commit 39f348ae3d7fcda912135ea2ef8af4a3797c5a0a
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Nov 2 18:55:51 2010 +0000
gdb
* NEWS: Mention Guile removal.
* defs.h (enum language) <language_scm>: Remove.
* Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
scm-valprint.c.
(HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
(COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
* scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
Remove.
gdb/testsuite
* gdb.base/default.exp: Remove "scheme" from language list.
commit 156555e0dd67ee54144f7877847d6a4d5b3bfb85
Author: Doug Evans <dje@google.com>
Date: Tue Nov 2 16:48:34 2010 +0000
* top.c: #include "python/python.h".
(gdb_init): Add a comment regarding initialize_all_files.
Call finish_python_initialization at the end.
* python/python.h (finish_python_initialization): Declare.
* python/python.c (finish_python_initialization): New function.
(_initialize_python): Move python-implemented initialization there
and call it.
(GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
commit 550df216bb6d848ad393cf96c88d626d7da88505
Author: DJ Delorie <dj@delorie.com>
Date: Tue Nov 2 15:20:40 2010 +0000
merge from gcc
commit 26148f25dbe24f2c22ffaaba73852172611d311b
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Tue Nov 2 14:36:32 2010 +0000
bfd:
* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Except for
Tag_ABI_compatibility, treat odd tags as strings and even ones as
integers.
(elf32_tic6x_obj_attrs_order, elf32_tic6x_tag_to_array_alignment,
elf32_tic6x_array_alignment_to_tag): New.
(elf32_tic6x_merge_attributes): Handle more attributes. Set type
for merged attributes.
(elf_backend_obj_attrs_order): Define.
binutils:
* readelf.c (display_tic6x_attribute): Handle more attributes.
gas:
* config/tc-tic6x.c (OPTION_MPID, OPTION_MPIC, OPTION_MNO_PIC):
New enum values.
(md_longopts): Add options mpid, mpic and mno-pic.
(tic6x_pid_type, tic6x_pid, tic6x_pic, tic6x_pid_type_table,
tic6x_pid_types, tic6x_use_pid): New.
(md_parse_option): Handle new options.
(md_show_usage): Output help text for new options.
(tic6x_set_attributes): Set PID and PIC attributes.
* doc/as.texinfo: Document -mpid=, -mpic and -mno-pic.
* doc/c-tic6x.texi (TIC6X Options): Likewise.
gas/testsuite:
* gas/tic6x/attr-array-directive-1.d,
gas/tic6x/attr-array-directive-1.s,
gas/tic6x/attr-array-directive-2.d,
gas/tic6x/attr-array-directive-2.s,
gas/tic6x/attr-array-directive-3.d,
gas/tic6x/attr-array-directive-3.s,
gas/tic6x/attr-array-directive-4.d,
gas/tic6x/attr-array-directive-4.s,
gas/tic6x/attr-conformance-directive-1.d,
gas/tic6x/attr-conformance-directive-1.s,
gas/tic6x/attr-conformance-directive-2.d,
gas/tic6x/attr-conformance-directive-2.s,
gas/tic6x/attr-pic-directive-1.d,
gas/tic6x/attr-pic-directive-1.s,
gas/tic6x/attr-pic-directive-2.d,
gas/tic6x/attr-pic-directive-2.s,
gas/tic6x/attr-pic-opts-mno-pic.d, gas/tic6x/attr-pic-opts-mpic.d,
gas/tic6x/attr-pid-directive-1.d,
gas/tic6x/attr-pid-directive-1.s,
gas/tic6x/attr-pid-directive-2.d,
gas/tic6x/attr-pid-directive-2.s,
gas/tic6x/attr-pid-opts-mpid-far.d,
gas/tic6x/attr-pid-opts-mpid-near.d,
gas/tic6x/attr-pid-opts-mpid-no.d,
gas/tic6x/attr-stack-directive-1.d,
gas/tic6x/attr-stack-directive-1.s,
gas/tic6x/attr-stack-directive-2.d,
gas/tic6x/attr-stack-directive-2.s,
gas/tic6x/attr-wchar-directive-1.d,
gas/tic6x/attr-wchar-directive-1.s,
gas/tic6x/attr-wchar-directive-2.d,
gas/tic6x/attr-wchar-directive-2.s: New tests.
include/elf:
* tic6x-attrs.h (Tag_ABI_wchar_t, Tag_ABI_stack_align_needed,
Tag_ABI_stack_align_preserved, Tag_ABI_PID, Tag_ABI_PIC,
Tag_ABI_array_object_alignment,
Tag_ABI_array_object_align_expected, Tag_ABI_conformance): Define.
ld/testsuite:
* ld-tic6x/attr-array-16-16.d, ld-tic6x/attr-array-16-4.d,
ld-tic6x/attr-array-16-416.d, ld-tic6x/attr-array-16-48.d,
ld-tic6x/attr-array-16-8.d, ld-tic6x/attr-array-16-816.d,
ld-tic6x/attr-array-16.s, ld-tic6x/attr-array-4-16.d,
ld-tic6x/attr-array-4-4.d, ld-tic6x/attr-array-4-416.d,
ld-tic6x/attr-array-4-48.d, ld-tic6x/attr-array-4-8.d,
ld-tic6x/attr-array-4-816.d, ld-tic6x/attr-array-4.s,
ld-tic6x/attr-array-416-16.d, ld-tic6x/attr-array-416-4.d,
ld-tic6x/attr-array-416-416.d, ld-tic6x/attr-array-416-48.d,
ld-tic6x/attr-array-416-8.d, ld-tic6x/attr-array-416-816.d,
ld-tic6x/attr-array-416.s, ld-tic6x/attr-array-48-16.d,
ld-tic6x/attr-array-48-4.d, ld-tic6x/attr-array-48-416.d,
ld-tic6x/attr-array-48-48.d, ld-tic6x/attr-array-48-8.d,
ld-tic6x/attr-array-48-816.d, ld-tic6x/attr-array-48.s,
ld-tic6x/attr-array-8-16.d, ld-tic6x/attr-array-8-4.d,
ld-tic6x/attr-array-8-416.d, ld-tic6x/attr-array-8-48.d,
ld-tic6x/attr-array-8-8.d, ld-tic6x/attr-array-8-816.d,
ld-tic6x/attr-array-8.s, ld-tic6x/attr-array-816-16.d,
ld-tic6x/attr-array-816-4.d, ld-tic6x/attr-array-816-416.d,
ld-tic6x/attr-array-816-48.d, ld-tic6x/attr-array-816-8.d,
ld-tic6x/attr-array-816-816.d, ld-tic6x/attr-array-816.s,
ld-tic6x/attr-conformance-10-10.d,
ld-tic6x/attr-conformance-10-11.d,
ld-tic6x/attr-conformance-10-none.d,
ld-tic6x/attr-conformance-10.s, ld-tic6x/attr-conformance-11-10.d,
ld-tic6x/attr-conformance-11-11.d,
ld-tic6x/attr-conformance-11-none.d,
ld-tic6x/attr-conformance-11.s,
ld-tic6x/attr-conformance-none-10.d,
ld-tic6x/attr-conformance-none-11.d,
ld-tic6x/attr-conformance-none-none.d,
ld-tic6x/attr-conformance-none.s, ld-tic6x/attr-pic-0.s,
ld-tic6x/attr-pic-00.d, ld-tic6x/attr-pic-01.d,
ld-tic6x/attr-pic-1.s, ld-tic6x/attr-pic-10.d,
ld-tic6x/attr-pic-11.d, ld-tic6x/attr-pid-0.s,
ld-tic6x/attr-pid-00.d, ld-tic6x/attr-pid-01.d,
ld-tic6x/attr-pid-02.d, ld-tic6x/attr-pid-1.s,
ld-tic6x/attr-pid-10.d, ld-tic6x/attr-pid-11.d,
ld-tic6x/attr-pid-12.d, ld-tic6x/attr-pid-2.s,
ld-tic6x/attr-pid-20.d, ld-tic6x/attr-pid-21.d,
ld-tic6x/attr-pid-22.d, ld-tic6x/attr-stack-16-16.d,
ld-tic6x/attr-stack-16-8.d, ld-tic6x/attr-stack-16-816.d,
ld-tic6x/attr-stack-16.s, ld-tic6x/attr-stack-8-16.d,
ld-tic6x/attr-stack-8-8.d, ld-tic6x/attr-stack-8-816.d,
ld-tic6x/attr-stack-8.s, ld-tic6x/attr-stack-816-16.d,
ld-tic6x/attr-stack-816-8.d, ld-tic6x/attr-stack-816-816.d,
ld-tic6x/attr-stack-816.s, ld-tic6x/attr-wchar-0.s,
ld-tic6x/attr-wchar-00.d, ld-tic6x/attr-wchar-01.d,
ld-tic6x/attr-wchar-02.d, ld-tic6x/attr-wchar-1.s,
ld-tic6x/attr-wchar-10.d, ld-tic6x/attr-wchar-11.d,
ld-tic6x/attr-wchar-12.d, ld-tic6x/attr-wchar-2.s,
ld-tic6x/attr-wchar-20.d, ld-tic6x/attr-wchar-21.d,
ld-tic6x/attr-wchar-22.d: New tests.
commit 8405572c5488d38c1b02fc159432eaaf7ff07eb3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Nov 2 01:37:30 2010 +0000
gdb/
Revert:
2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
Pedro Alves <pedro@codesourcery.com>
* gdbthread.h (currently_stepping): New declaration.
* infrun.c (currently_stepping): Remove the forward declaration.
(currently_stepping): Make it global.
* linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
variables tp and step, initialized them. Pass STEP to to_resume.
Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
* remote.c (currently_stepping_callback): New.
(remote_vcont_resume)
<ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
New variable tp. Call currently_stepping_callback and step such
thread.
gdb/testsuite/
Revert:
2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.threads/sigstep-threads.exp: New file.
* gdb.threads/sigstep-threads.c: New file.
commit 8d8114061768f9657f0869d2954f63a5a48c7382
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 2 00:22:10 2010 +0000
PR binutils/12110
* configure.ac: Error when source path contains spaces.
* configure: Regenerate.
commit 89cb907efc4c75ce8bfc672c69b4bc22f2c74aae
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 2 00:00:33 2010 +0000
*** empty log message ***
commit 5062b183c190c8339d11d61aa0cac1150fe41b70
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Nov 1 23:00:05 2010 +0000
daily update
commit 00c3bfe025e9419e0a9a337e940db4f76e8ff78c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Nov 1 23:00:05 2010 +0000
daily update
commit a858b45ab08abe6362385984f9dd2999aa2df59d
Author: Hui Zhu <teawater@gmail.com>
Date: Mon Nov 1 07:00:09 2010 +0000
2010-10-31 Hui Zhu <teawater@gmail.com>
* tracepoint.c (tfile_xfer_partial): Change lma to vma.
commit bf5cb1467d41bca799f36f4564d8f4c76476dc5b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 1 00:00:33 2010 +0000
*** empty log message ***
commit 98d040efa816a321cec956def2865b0372a17741
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Oct 31 23:00:06 2010 +0000
daily update
commit 12ce367e025aa650b27afb83d36eecff66ef5905
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 31 00:00:03 2010 +0000
*** empty log message ***
commit 874be79c426e888f67f18d96b0a837c79546a08a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Oct 30 23:00:05 2010 +0000
daily update
commit f539ba5797fa3c3a167c84d368778333bbf6e6db
Author: Doug Evans <dje@google.com>
Date: Sat Oct 30 04:39:47 2010 +0000
* gdb.texinfo (Python): Fix long line.
commit 3468845cf828e997090099c88b1735c604106d24
Author: DJ Delorie <dj@delorie.com>
Date: Sat Oct 30 00:01:14 2010 +0000
merge from gcc
commit 5d5b76023ab4d796ed9eb9e3a02a02f1dd06aaa0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 30 00:00:02 2010 +0000
*** empty log message ***
commit af87e42fa4e758ed82ce7cfec167ebec299e3bf9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Oct 29 23:00:04 2010 +0000
daily update
commit 5e6f6a11bf2d5c6cdb4556d6906615d6dd64b5ff
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Fri Oct 29 21:28:30 2010 +0000
* elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.
commit 9a2bd35a6fdbe385d0768e876a269c2d4fefb1f3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Oct 29 19:56:00 2010 +0000
Use uLong on compressed_size when using zlib.
2010-10-29 Pawel Sikora <pluto@pld-linux.org>
PR binutils/12075
* compress.c (bfd_compress_section_contents): Use uLong on
compressed_size.
commit 06df7f5ccdb68654e2978554d279ed4d1b46a645
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Fri Oct 29 16:47:51 2010 +0000
bfd:
* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check
Tag_ABI_compatibility not Tag_compatibility.
(elf32_tic6x_merge_attributes): Update compatibility attribute
name in comment. Return FALSE if merging common attributes fails.
binutils:
* readelf.c (display_tic6x_attribute): Use Tag_ABI_compatibility
not hardcoded 32. Display name of this attribute.
gas:
* doc/c-tic6x.texi (TIC6X Directives): Mention
Tag_ABI_compatibility.
gas/testsuite:
* gas/tic6x/attr-compatibility-directive-1.d,
gas/tic6x/attr-compatibility-directive-1.s,
gas/tic6x/attr-compatibility-directive-2.d,
gas/tic6x/attr-compatibility-directive-2.s: New tests.
include/elf:
* tic6x-attrs.h (Tag_ABI_compatibility): Define.
ld/testsuite:
* ld-tic6x/attr-compatibility-gnu-gnu.d,
ld-tic6x/attr-compatibility-gnu-other.d,
ld-tic6x/attr-compatibility-gnu.s,
ld-tic6x/attr-compatibility-other-gnu.d,
ld-tic6x/attr-compatibility-other-other.d,
ld-tic6x/attr-compatibility-other.s: New tests.
commit 774c0801b3a964a7d611102d69f9230a127f5366
Author: Nick Clifton <nickc@redhat.com>
Date: Fri Oct 29 13:20:03 2010 +0000
PR bintils/6962
* coffcode.h (handle_COMDAT): Only check the base type when
looking for a section symbol.
commit 68c19cc2eb92a1a44b6e5b6465f9315b4e5266e0
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Oct 29 12:10:19 2010 +0000
Add compressed debug section support to binutils and ld.
bfd/
2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
Cary Coutant <ccoutant@google.com>
* archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
and BFD_DECOMPRESS.
* bfd.c (BFD_COMPRESS): New.
(BFD_DECOMPRESS): Likewise.
(BFD_FLAGS_SAVED): Likewise.
(bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.
* compress.c (bfd_uncompress_section_contents): Removed.
(get_uncompressed_size): New.
(decompress_contents): Likewise.
(bfd_compress_section_contents): Likewise.
(bfd_get_full_section_contents): Likewise.
(bfd_is_section_compressed): Likewise.
(bfd_init_section_decompress_status): Likewise.
(bfd_init_section_compress_status): Likewise.
* dwarf2.c (dwarf_debug_sections): New.
(dwarf_debug_section_enum): Likewise.
(read_section): Remove section_name and compressed_section_name.
Add dwarf_debug_section_enum. Try compressed debug section.
(read_indirect_string): Updated.
(read_abbrevs): Likewise.
(decode_line_info): Likewise.
(read_debug_ranges): Likewise.
(find_line): Updated.
* ecoff.c (bfd_debug_section): Add compress_status and
compressed_size.
* elf.c (_bfd_elf_make_section_from_shdr): Call
bfd_is_section_compressed to check if a DWARF debug section is
compressed. Call bfd_init_section_compress_status or
bfd_init_section_decompress_status if needed.
* elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents
with bfd_get_full_section_contents.
* merge.c (_bfd_add_merge_section): Likewise.
* reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
* simple.c (bfd_simple_get_relocated_section_contents): Likewise.
* elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and
BFD_DECOMPRESS.
(TARGET_LITTLE_SYM): Likewise.
* libbfd-in.h (dwarf_debug_section): New.
(dwarf_debug_sections): Likewise.
* libbfd.c (_bfd_generic_get_section_contents): Issue an error
when getting contents on compressed/decompressed section.
* section.c (COMPRESS_SECTION_NONE): New.
(COMPRESS_SECTION_DONE): Likewise.
(DECOMPRESS_SECTION_SIZED): Likewise.
(BFD_FAKE_SECTION): Add compress_status and compressed_size.
(bfd_malloc_and_get_section): Replace bfd_get_section_contents
with bfd_get_full_section_contents.
* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.
binutils/
2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
* addr2line.c (process_file): Set BFD_DECOMPRESS.
* objcopy.c (do_debug_sections): New.
(OPTION_COMPRESS_DEBUG_SECTIONS): New.
(OPTION_DECOMPRESS_DEBUG_SECTIONS): Likewise.
(copy_options): Add OPTION_COMPRESS_DEBUG_SECTIONS and
OPTION_DECOMPRESS_DEBUG_SECTIONS.
(copy_usage): Add --compress-debug-sections and
--decompress-debug-sections.
(copy_file): Set BFD_COMPRESS or BFD_DECOMPRESS.
(copy_section): Replace bfd_get_section_contents with
bfd_get_full_section_contents.
(copy_main): Handle OPTION_COMPRESS_DEBUG_SECTIONS and
OPTION_DECOMPRESS_DEBUG_SECTIONS. Check do_debug_sections to
rename DWARF debug sections.
* objdump.c (load_specific_debug_section): Replace
bfd_get_section_contents with bfd_get_full_section_contents.
Remove bfd_uncompress_section_contents.
(dump_section): Replace bfd_get_section_contents with
bfd_get_full_section_contents.
(display_file): Set BFD_DECOMPRESS if needed.
* readelf.c (uncompress_section_contents): Set buffer to NULL
to indiate decompression failure.
(load_specific_debug_section): Always call
uncompress_section_contents.
* doc/binutils.texi: Document --compress-debug-sections and
--decompress-debug-sections.
binutils/testsuite/
2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/compress.exp: New.
* binutils-all/dw2-1.S: Likewise.
* binutils-all/dw2-2.S: Likewise.
* binutils-all/libdw2-compressed.out: Likewise.
* binutils-all/libdw2.out: Likewise.
gas/
2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
* write.c (compress_debug): Optimize section flags check.
gas/testsuite/
2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
* elf/dwarf2-1.s: Replace .zdebug_abbrev section with
.debug_abbrev section.
* elf/dwarf2-2.3: Likewise.
* elf/dwarf2-1.d: Pass --compress-debug-sections to assembler.
Updated.
* elf/dwarf2-2.d: Likewise.
* gas/i386/i386.exp: Remove xfail on dw2-compress-2 and
x86-64-dw2-compress-2.
ld/
2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
* ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
bfd_openr returns.
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
* scripttempl/elf.sc: Include compressed DWARF debug sections.
ld/testsuite/
2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/compress.exp: New.
* ld-elf/compress1.s: Likewise.
* ld-elf/compress1a.d: Likewise.
* ld-elf/compress1b.d: Likewise.
* ld-elf/compress1c.d: Likewise.
commit 21847ae52fc7b26bee800270ba1d96abc1db07f6
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Fri Oct 29 00:15:46 2010 +0000
bfd:
2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* elf32-tic6x.c (elf32_tic6x_merge_attributes): Check for mismatch
of DSBT attributes.
binutils:
2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* readelf.c (display_tic6x_attribute): Handle Tag_ABI_DSBT.
gas:
2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* config/tc-tic6x.c (OPTION_MDSBT, OPTION_MNO_DSBT): New enum
values.
(md_longopts): Add mdsbt and mno-dsbt.
(tic6x_dsbt): New static variable.
(md_parse_option): Handle OPTION_MDSBT and OPTION_MNO_DSBT.
(md_show_usage): Output help text for -mdsbt and -mno-dsbt.
(TAG): Add comma at the end.
(tic6x_set_attributes): Set Tag_ABI_DSBT.
* doc/as.texinfo: Document -mdsbt and -mno-dsbt.
* doc/c-tic6x.texi (TIC6X Options): Likewise.
(TIC6X Directives): Mention Tag_ABI_DSBT.
gas/testsuite:
2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* gas/tic6x/attr-dsbt-directive-1.d,
gas/tic6x/attr-dsbt-directive-1.s,
gas/tic6x/attr-dsbt-directive-2.d,
gas/tic6x/attr-dsbt-directive-2.s,
gas/tic6x/attr-dsbt-opts-mdsbt.d,
gas/tic6x/attr-dsbt-opts-mno-dsbt.d: New tests.
include/elf:
2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* tic6x-attrs.h (Tag_ABI_DSBT): New.
ld/testsuite:
2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* ld-tic6x/attr-dsbt-0.s, ld-tic6x/attr-dsbt-00.d,
ld-tic6x/attr-dsbt-01.d, ld-tic6x/attr-dsbt-1.s,
ld-tic6x/attr-dsbt-10.d, ld-tic6x/attr-dsbt-11.d: New tests.
commit fd50a55b1de8ccd660f7573fa677dcbf5234504f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 29 00:00:02 2010 +0000
*** empty log message ***
commit f4adc15f9eade09c52dc4c8815cb489597fa8e80
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Oct 28 23:00:04 2010 +0000
daily update
commit 89681dbb8411456f08a5f3b9c8a4a3d4b231daad
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Thu Oct 28 13:49:51 2010 +0000
* mips-opc.c (mips_builtin_opcodes): Fix formatting of "ld".
commit d6320a093f4d297b2a0819988d4e3e6a1b1321f7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Oct 28 11:40:25 2010 +0000
Add directory section for info document.
commit e42900c60c2bde6a8680c4fd260a57d173419efd
Author: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Date: Thu Oct 28 07:37:45 2010 +0000
2010-10-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.c (md_begin): Only add to hash table if cpu and
mode mask fit.
2010-10-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390-opc.txt: cfxr, cfdr and cfer z900 -> g5.
commit d16905b01ec440caf9b9d0aebe1ada80b22ee281
Author: Hui Zhu <teawater@gmail.com>
Date: Thu Oct 28 03:38:34 2010 +0000
2010-10-28 Hui Zhu <teawater@gmail.com>
* tracepoint.c (trace_save): Change utp->actions to
utp->step_actions.
commit 936e4250911dc3c4943783bb44a5c94a987897ed
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Oct 28 00:00:02 2010 +0000
*** empty log message ***
commit 91e5d44a5440bd1018028759f02fadc715f6b103
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Oct 27 23:00:05 2010 +0000
daily update
commit 5220f0051c7d9dc4e440c2f48aab5e6779bb07d0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Oct 27 00:00:32 2010 +0000
*** empty log message ***
commit dc732ab277fc738be8596790f3b6512883fad19b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Oct 26 23:00:04 2010 +0000
daily update
commit 2af78ff3212d774245864f527a442b57dc4ec736
Author: DJ Delorie <dj@delorie.com>
Date: Tue Oct 26 19:18:21 2010 +0000
merge from gcc
commit b513843c81172d96f0d365ffd3f356a175b1b683
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Oct 26 18:08:03 2010 +0000
fix typo in _FILE_OFFSET_BITS comment
This fixes a typo that MichaelS noticed in a patch I submitted and
forgot to fix.
gdb/ChangeLog:
* (_FILE_OFFSET_BITS): Fix typo in comment.
commit 8f8155235f71462c4f2e3031336131824e72e4ad
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Oct 26 18:06:33 2010 +0000
Fix build failures with python support on sparc-solaris
There were two types of errors, mostly compiler warnings:
1. _FILE_OFFSET_BITS being redefined in pyconfig.h;
This is a problem we're familiar with, having seen similar
issues on GNU/Linux systems. I used a similar solution.
2. GCC 4.5 complains that calls to PyEval_InitThreads and
PyEval_ReleaseLock have no effect. This is because our Python
is built without thread support, leading us to use the dummy
#define in python-internal.h which just gets replaced by `0'.
Since this function returns void (checked versions 2.4 and 2.7),
I simply removed the 0.
gdb/ChangeLog:
python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
(PyEval_InitThreads): Remove duplicate. Define as nothing.
(PyEval_ReleaseLock): Define as nothing.
commit 0b9e810b27cf59712abc905289ad134fecc8c6ce
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Oct 26 17:59:47 2010 +0000
replace strcmp by FILENAME_CMP for filename comparison
gdb/ChangeLog:
* dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
by call to FILENAME_CMP.
commit d552655b4fa7dcaf2b40d9e190b752df6b063036
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Oct 26 14:50:13 2010 +0000
avoid assignment inside if condition (dictionary.c)
This change gets rid of an ARI warning which was recently introduced
by one of our changes.
gdb/ChangeLog:
* dictionary.c (dict_hash): Move assignment out of if condition.
commit 730af9f6239085f1f62a61a37612154d32f75d72
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Oct 26 00:00:03 2010 +0000
*** empty log message ***
commit f8942a0d2ad1734c52e1dd3cadd3aa412de327e5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Oct 25 23:00:05 2010 +0000
daily update
commit b612002e6aab3536b645fae3e7ac991dbc11427e
Author: Chao-ying Fu <fu@mips.com>
Date: Mon Oct 25 18:09:10 2010 +0000
2010-10-25 Chao-ying Fu <fu@mips.com>
* mips-opc.c (madd, maddu, msub, msubu, mult, multu): Change D33 to D32.
commit 9af2d88c1e99cc0bf4593efe2cc25e26be7fb0a8
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Oct 25 15:54:13 2010 +0000
bfd/
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Always call
_bfd_clear_contents. Pass it the input section.
* libbfd-in.h (_bfd_clear_contents): Add input_section argument.
* libbfd.h: Regenerate.
* reloc.c (_bfd_clear_contents): Take input_section argument.
Use non-zero for .debug_ranges.
(bfd_generic_get_relocated_section_conten): Update _bfd_clear_contents
call.
* elf32-arm.c (elf32_arm_relocate_section): Use
RELOC_AGAINST_DISCARDED_SECTION.
* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-arm.c (elf32_arm_relocate_section): Likewise.
* elf32-avr.c (elf32_avr_relocate_section): Likewise.
* elf32-bfin.c (bfin_relocate_section): Likewise.
(bfinfdpic_relocate_section): Likewise.
* elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
* elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-crx.c (elf32_crx_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
* elf32-lm32.c (lm32_elf_relocate_section): Likewise.
* elf32-m32c.c (m32c_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-mep.c (mep_elf_relocate_section): Likewise.
* elf32-moxie.c (moxie_elf_relocate_section): Likewise.
* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
* elf32-mt.c (mt_elf_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-rx.c (rx_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
* elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
* elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
(elf64_alpha_relocate_section): Likewise.
* elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
ld/testsuite/
* ld-discard/zero-range.d, ld-discard/zero-range.s: New files.
commit ea00e595c65960514f156a8e1639e71eef5753e4
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Mon Oct 25 15:33:52 2010 +0000
bfd/
* elf32-tic6x.c: Add attribution.
gas/
* config/tc-tic6x.c: Add attribution.
opcodes/
* tic6x-dis.c: Add attribution.
commit ed2c7099633ddd54a58a523b6e4c377013193f94
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Oct 25 08:22:46 2010 +0000
* elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
var warning at -O3.
commit 7770d2f4535f87eee0415946a675d1fb8f489303
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Oct 25 07:02:19 2010 +0000
* opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
* libbfd-in.h (bfd_alloc, bfd_zalloc): Don't declare here.
* libbfd.h: Regenerate
* bfd-in2.h: Regenerate.
commit 1dc2e9b312872dd2882594324b8b0dbb5cf2025a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Oct 25 06:14:29 2010 +0000
* opncls.c (_bfd_id_counter): Rename to bfd_id_counter.
(bfd_reserved_id_counter, bfd_use_reserved_id): New vars.
(_bfd_new_bfd): Use negative id when bfd_use_reserved_id.
(bfd_create): Doc fix.
* bfd-in2.h: Regenerate.
commit e675d31ff4c84d9e8e1d92d8274bd52b9c3fe80d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Oct 25 00:00:03 2010 +0000
*** empty log message ***
commit 27791b32eea79646c8b96e3c6b83aeefc27bc1a1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Oct 24 23:00:05 2010 +0000
daily update
commit c2d636362c30af59d290a2e66860143669542185
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 24 00:00:33 2010 +0000
*** empty log message ***
commit 8e3eeadc9e1d04a52be2b8b00578b339aabe9dcd
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Oct 23 23:00:05 2010 +0000
daily update
commit b3338f3e3f76357d4ce3a649dbe7957824a82a07
Author: DJ Delorie <dj@delorie.com>
Date: Sat Oct 23 04:01:25 2010 +0000
merge from gcc
commit a58b0da3c225ac304959ef6e8de56fe84d970ed0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 23 00:00:02 2010 +0000
*** empty log message ***
commit 3ccd7a287fc2515525f797ee492e64d487c92708
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Oct 22 23:00:05 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
COPYING.LIBGLOSS | 2 +-
COPYING.NEWLIB | 2 +-
ChangeLog | 19 +
bfd/ChangeLog | 268 ++-
bfd/archive.c | 10 +-
bfd/bfd-in2.h | 56 +-
bfd/bfd.c | 17 +-
bfd/coffcode.h | 9 +-
bfd/compress.c | 396 ++-
bfd/configure | 2 +-
bfd/configure.in | 2 +-
bfd/doc/ChangeLog | 4 +
bfd/doc/bfd.texinfo | 11 +-
bfd/dwarf2.c | 174 +-
bfd/ecoff.c | 10 +-
bfd/elf-attrs.c | 111 +
bfd/elf-bfd.h | 10 +-
bfd/elf-m10200.c | 11 +-
bfd/elf-m10300.c | 11 +-
bfd/elf.c | 46 +
bfd/elf32-arm.c | 155 +-
bfd/elf32-avr.c | 11 +-
bfd/elf32-bfin.c | 22 +-
bfd/elf32-cr16.c | 11 +-
bfd/elf32-cr16c.c | 11 +-
bfd/elf32-cris.c | 11 +-
bfd/elf32-crx.c | 11 +-
bfd/elf32-d10v.c | 11 +-
bfd/elf32-fr30.c | 11 +-
bfd/elf32-frv.c | 11 +-
bfd/elf32-h8300.c | 11 +-
bfd/elf32-hppa.c | 15 +-
bfd/elf32-i370.c | 11 +-
bfd/elf32-i860.c | 11 +-
bfd/elf32-ip2k.c | 11 +-
bfd/elf32-iq2000.c | 11 +-
bfd/elf32-lm32.c | 11 +-
bfd/elf32-m32c.c | 11 +-
bfd/elf32-m32r.c | 11 +-
bfd/elf32-m68hc1x.c | 11 +-
bfd/elf32-m68k.c | 11 +-
bfd/elf32-mcore.c | 11 +-
bfd/elf32-mep.c | 11 +-
bfd/elf32-moxie.c | 11 +-
bfd/elf32-msp430.c | 11 +-
bfd/elf32-mt.c | 11 +-
bfd/elf32-openrisc.c | 11 +-
bfd/elf32-ppc.c | 6 +-
bfd/elf32-rx.c | 11 +-
bfd/elf32-s390.c | 11 +-
bfd/elf32-score.c | 11 +-
bfd/elf32-score7.c | 11 +-
bfd/elf32-sh.c | 11 +-
bfd/elf32-spu.c | 11 +-
bfd/elf32-tic6x.c | 283 ++-
bfd/elf32-v850.c | 11 +-
bfd/elf32-vax.c | 11 +-
bfd/elf32-xc16x.c | 8 +-
bfd/elf32-xstormy16.c | 11 +-
bfd/elf32-xtensa.c | 11 +-
bfd/elf64-alpha.c | 25 +-
bfd/elf64-hppa.c | 11 +-
bfd/elf64-mmix.c | 11 +-
bfd/elf64-ppc.c | 14 +-
bfd/elf64-s390.c | 11 +-
bfd/elf64-sh64.c | 11 +-
bfd/elflink.c | 4 +-
bfd/elfxx-ia64.c | 11 +-
bfd/elfxx-mips.c | 32 +-
bfd/elfxx-sparc.c | 12 +-
bfd/elfxx-target.h | 8 +-
bfd/libbfd-in.h | 16 +-
bfd/libbfd.c | 9 +
bfd/libbfd.h | 16 +-
bfd/makefile.vms | 2 +-
bfd/merge.c | 5 +-
bfd/opncls.c | 28 +-
bfd/po/bfd.pot | 3803 +++++++++++++++-----
bfd/reloc.c | 19 +-
bfd/section.c | 35 +-
bfd/simple.c | 14 +-
bfd/version.h | 2 +-
bfd/vms-lib.c | 14 +-
configure | 907 +-----
configure.ac | 159 +-
gdb/ChangeLog | 201 +
gdb/Makefile.in | 9 +-
gdb/NEWS | 21 +
gdb/ada-valprint.c | 23 +-
gdb/c-exp.y | 136 +-
gdb/c-lang.c | 2 +-
gdb/c-lang.h | 7 +
gdb/c-typeprint.c | 23 +-
gdb/c-valprint.c | 7 +-
gdb/configure | 8 +
gdb/configure.ac | 8 +
gdb/data-directory/Makefile.in | 5 +-
gdb/defs.h | 2 +-
gdb/dictionary.c | 5 +-
gdb/doc/ChangeLog | 24 +
gdb/doc/gdb.texinfo | 379 ++-
gdb/dwarf2read.c | 21 +-
gdb/eval.c | 28 +-
gdb/gdbthread.h | 2 -
gdb/gdbtypes.c | 193 +-
gdb/gdbtypes.h | 56 +-
gdb/infrun.c | 4 +-
gdb/linux-nat.c | 14 +-
gdb/opencl-lang.c | 1162 ++++++
gdb/python/lib/gdb/__init__.py | 4 +
gdb/python/lib/gdb/{ => command}/__init__.py | 2 +
gdb/python/lib/gdb/command/pretty_printers.py | 369 ++
gdb/python/lib/gdb/printing.py | 197 +
gdb/python/py-prettyprint.c | 8 +-
gdb/python/python-internal.h | 10 +-
gdb/python/python.c | 31 +-
gdb/python/python.h | 2 +
gdb/remote.c | 22 +-
gdb/scm-exp.c | 502 ---
gdb/scm-lang.c | 308 --
gdb/scm-lang.h | 77 -
gdb/scm-tags.h | 378 --
gdb/scm-valprint.c | 462 ---
gdb/solib.c | 9 +-
gdb/source.c | 62 +-
gdb/testsuite/ChangeLog | 70 +
gdb/testsuite/Makefile.in | 4 +-
gdb/testsuite/configure | 3 +-
gdb/testsuite/configure.ac | 2 +-
gdb/testsuite/gdb.ada/null_array.exp | 9 +
gdb/testsuite/gdb.base/default.exp | 2 +-
gdb/testsuite/gdb.base/exprs.exp | 9 +
gdb/testsuite/gdb.base/gnu_vector.exp | 22 +-
gdb/testsuite/gdb.base/help.exp | 2 +-
gdb/testsuite/gdb.cp/oranking.exp | 3 -
gdb/testsuite/gdb.cp/overload.cc | 18 +
gdb/testsuite/gdb.cp/overload.exp | 5 +
gdb/testsuite/gdb.opencl/Makefile.in | 17 +
.../convs_casts.cl} | 75 +-
gdb/testsuite/gdb.opencl/convs_casts.exp | 95 +
gdb/testsuite/gdb.opencl/datatypes.cl | 145 +
gdb/testsuite/gdb.opencl/datatypes.exp | 471 +++
gdb/testsuite/gdb.opencl/operators.cl | 105 +
gdb/testsuite/gdb.opencl/operators.exp | 955 +++++
gdb/testsuite/gdb.opencl/vec_comps.cl | 59 +
gdb/testsuite/gdb.opencl/vec_comps.exp | 390 ++
.../gdb.python/{py-param.exp => py-parameter.exp} | 7 +-
.../sigstep-threads.c => gdb.python/py-pp-maint.c} | 68 +-
gdb/testsuite/gdb.python/py-pp-maint.exp | 126 +
gdb/testsuite/gdb.python/py-pp-maint.py | 74 +
gdb/testsuite/gdb.threads/sigstep-threads.exp | 74 -
gdb/testsuite/lib/cl_util.c | 519 +++
gdb/testsuite/lib/cl_util.h | 88 +
gdb/testsuite/lib/opencl.exp | 83 +
gdb/testsuite/lib/opencl_hostapp.c | 168 +
gdb/testsuite/lib/opencl_kernel.cl | 5 +
gdb/top.c | 12 +
gdb/tracepoint.c | 12 +-
gdb/valarith.c | 66 +-
gdb/valops.c | 41 +-
gdb/valprint.c | 77 +-
gdb/valprint.h | 3 -
gdb/value.c | 20 +
gdb/value.h | 2 +
gdb/version.in | 2 +-
include/ChangeLog | 8 +
include/dwarf2.h | 2 +
include/elf/ChangeLog | 16 +
include/elf/tic6x-attrs.h | 10 +
include/simple-object.h | 203 ++
libdecnumber/ChangeLog | 5 +
libdecnumber/dconfig.h | 7 +-
libiberty/ChangeLog | 39 +
libiberty/Makefile.in | 48 +-
libiberty/aclocal.m4 | 49 -
libiberty/config.in | 15 +
libiberty/configure | 55 +-
libiberty/configure.ac | 15 +-
libiberty/functions.texi | 182 +-
libiberty/pex-unix.c | 201 +-
libiberty/setproctitle.c | 2 +-
libiberty/simple-object-coff.c | 804 +++++
libiberty/simple-object-common.h | 355 ++
libiberty/simple-object-elf.c | 916 +++++
libiberty/simple-object-mach-o.c | 1022 ++++++
libiberty/simple-object.c | 423 +++
libiberty/simple-object.txh | 168 +
opcodes/ChangeLog | 20 +
opcodes/mips-opc.c | 14 +-
opcodes/po/opcodes.pot | 332 +-
opcodes/s390-opc.txt | 6 +-
opcodes/tic6x-dis.c | 2 +
192 files changed, 15482 insertions(+), 5341 deletions(-)
create mode 100644 gdb/opencl-lang.c
copy gdb/python/lib/gdb/{ => command}/__init__.py (99%)
create mode 100644 gdb/python/lib/gdb/command/pretty_printers.py
create mode 100644 gdb/python/lib/gdb/printing.py
delete mode 100644 gdb/scm-exp.c
delete mode 100644 gdb/scm-lang.c
delete mode 100644 gdb/scm-lang.h
delete mode 100644 gdb/scm-tags.h
delete mode 100644 gdb/scm-valprint.c
create mode 100644 gdb/testsuite/gdb.opencl/Makefile.in
copy gdb/testsuite/{gdb.threads/sigstep-threads.c => gdb.opencl/convs_casts.cl} (52%)
create mode 100644 gdb/testsuite/gdb.opencl/convs_casts.exp
create mode 100644 gdb/testsuite/gdb.opencl/datatypes.cl
create mode 100644 gdb/testsuite/gdb.opencl/datatypes.exp
create mode 100644 gdb/testsuite/gdb.opencl/operators.cl
create mode 100644 gdb/testsuite/gdb.opencl/operators.exp
create mode 100644 gdb/testsuite/gdb.opencl/vec_comps.cl
create mode 100644 gdb/testsuite/gdb.opencl/vec_comps.exp
rename gdb/testsuite/gdb.python/{py-param.exp => py-parameter.exp} (95%)
rename gdb/testsuite/{gdb.threads/sigstep-threads.c => gdb.python/py-pp-maint.c} (54%)
create mode 100644 gdb/testsuite/gdb.python/py-pp-maint.exp
create mode 100644 gdb/testsuite/gdb.python/py-pp-maint.py
delete mode 100644 gdb/testsuite/gdb.threads/sigstep-threads.exp
create mode 100644 gdb/testsuite/lib/cl_util.c
create mode 100644 gdb/testsuite/lib/cl_util.h
create mode 100644 gdb/testsuite/lib/opencl.exp
create mode 100644 gdb/testsuite/lib/opencl_hostapp.c
create mode 100644 gdb/testsuite/lib/opencl_kernel.cl
create mode 100644 include/simple-object.h
create mode 100644 libiberty/simple-object-coff.c
create mode 100644 libiberty/simple-object-common.h
create mode 100644 libiberty/simple-object-elf.c
create mode 100644 libiberty/simple-object-mach-o.c
create mode 100644 libiberty/simple-object.c
create mode 100644 libiberty/simple-object.txh
First 500 lines of diff:
diff --git a/COPYING.LIBGLOSS b/COPYING.LIBGLOSS
index 5f02c44..403d42b 100644
--- a/COPYING.LIBGLOSS
+++ b/COPYING.LIBGLOSS
@@ -229,7 +229,7 @@ POSSIBILITY OF SUCH DAMAGE.
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-(13) - Xilinx, Inc. (micrroblaze-* and powerpc-* targets)
+(13) - Xilinx, Inc. (microblaze-* and powerpc-* targets)
Copyright (c) 2004, 2009 Xilinx, Inc. All rights reserved.
diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB
index 515fcda..59687b6 100644
--- a/COPYING.NEWLIB
+++ b/COPYING.NEWLIB
@@ -797,7 +797,7 @@ SUCH DAMAGE.
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-(36) - Xilinx, Inc. (micrroblaze-* and powerpc-* targets)
+(36) - Xilinx, Inc. (microblaze-* and powerpc-* targets)
Copyright (c) 2004, 2009 Xilinx, Inc. All rights reserved.
diff --git a/ChangeLog b/ChangeLog
index 54fb1bd..f97c1ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2010-11-05 Michael Eager <eager@eagercon.com>
+
+ * COPYING.LIBGLOSS: Correct typo in microblaze.
+ * COPYING.NEWLIB: Same.
+
+2010-11-03 Ian Lance Taylor <iant@google.com>
+ Dave Korn <dave.korn.cygwin@gmail.com>
+
+ PR lto/46273
+ * configure.ac: Remove libelf tests. Build lto-plugin on ELF always
+ and on other supported platforms whenever LTO is enabled.
+ * configure: Rebuild.
+
+2010-11-02 Alan Modra <amodra@gmail.com>
+
+ PR binutils/12110
+ * configure.ac: Error when source path contains spaces.
+ * configure: Regenerate.
+
2010-10-20 Ian Lance Taylor <iant@google.com>
* Makefile.def (target_modules): Set lib_path to src/.libs for
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f5749a9..78b904a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,267 @@
+2010-11-05 Joseph Myers <joseph@codesourcery.com>
+
+ * elf32-tic6x.c (elf32_tic6x_obj_attrs_handle_unknown): New.
+ (elf32_tic6x_merge_attributes): Use
+ _bfd_elf_merge_unknown_attribute_low and
+ _bfd_elf_merge_unknown_attribute_list.
+ (elf_backend_obj_attrs_handle_unknown): Define.
+
+2010-11-05 Joseph Myers <joseph@codesourcery.com>
+
+ * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
+ _bfd_elf_merge_unknown_attribute_list): Correct test for matching
+ string attributes.
+
+2010-11-05 Tristan Gingold <gingold@adacore.com>
+
+ * po/bfd.pot: Regenerate
+
+2010-11-05 Tristan Gingold <gingold@adacore.com>
+
+ * configure.in: Bump version to 2.21.51
+ * configure: Regenerate.
+
+2010-11-04 Maciej W. Rozycki <macro@codesourcery.com>
+
+ PR ld/10144
+ * elfxx-mips.c (_bfd_mips_elf_check_relocs)
+ [R_MIPS_32, R_MIPS_REL32, R_MIPS_64]: Ignore relocs from
+ SEC_DEBUGGING sections.
+
+2010-11-04 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (vms_write_index): Fix thinko: reverse the loop.
+ Use bfd_zmalloc instead of bfd_malloc. Fix comment.
+
+2010-11-04 Kai Tietz <kai.tietz@onevision.com>
+
+ * coffcode.h (GNU_LINKONCE_WT): New.
+ (sec_to_styp_flags): Add handling of new debug
+ section.
+ (styp_to_sec_flags): Likewise.
+
+2010-11-04 Tristan Gingold <gingold@adacore.com>
+
+ * makefile.vms (CFLAGS): Make badalias warnings informational.
+ * vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
+
+2010-11-04 Joseph Myers <joseph@codesourcery.com>
+
+ * elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
+ _bfd_elf_merge_unknown_attribute_list): New.
+ * elf-bfd.h (struct elf_backend_data): Add
+ obj_attrs_handle_unknown.
+ (_bfd_elf_merge_unknown_attribute_low,
+ _bfd_elf_merge_unknown_attribute_list): Declare.
+ * elf32-arm.c (elf32_arm_obj_attrs_handle_unknown): New. Split
+ out from elf32_arm_merge_eabi_attributes.
+ (elf32_arm_merge_eabi_attributes): Use
+ _bfd_elf_merge_unknown_attribute_low and
+ _bfd_elf_merge_unknown_attribute_list.
+ (elf_backend_obj_attrs_handle_unknown): Define.
+ * elfxx-target.h (elf_backend_obj_attrs_handle_unknown): Define.
+ (elfNN_bed): Update initializer.
+
+2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ * bfd.c (BFD_FLAGS_FOR_BFD_USE_MASK): New.
+ * bfd-in2.h: Regenerated.
+
+2010-11-02 Joseph Myers <joseph@codesourcery.com>
+
+ * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Except for
+ Tag_ABI_compatibility, treat odd tags as strings and even ones as
+ integers.
+ (elf32_tic6x_obj_attrs_order, elf32_tic6x_tag_to_array_alignment,
+ elf32_tic6x_array_alignment_to_tag): New.
+ (elf32_tic6x_merge_attributes): Handle more attributes. Set type
+ for merged attributes.
+ (elf_backend_obj_attrs_order): Define.
+
+2010-10-29 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.
+
+2010-10-29 Pawel Sikora <pluto@pld-linux.org>
+
+ PR binutils/12075
+ * compress.c (bfd_compress_section_contents): Use uLong on
+ compressed_size.
+
+2010-10-29 Joseph Myers <joseph@codesourcery.com>
+
+ * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check
+ Tag_ABI_compatibility not Tag_compatibility.
+ (elf32_tic6x_merge_attributes): Update compatibility attribute
+ name in comment. Return FALSE if merging common attributes fails.
+
+2010-10-29 Nick Clifton <nickc@redhat.com>
+
+ PR bintils/6962
+ * coffcode.h (handle_COMDAT): Only check the base type when
+ looking for a section symbol.
+
+2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
+ Cary Coutant <ccoutant@google.com>
+
+ * archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
+ and BFD_DECOMPRESS.
+
+ * bfd.c (BFD_COMPRESS): New.
+ (BFD_DECOMPRESS): Likewise.
+ (BFD_FLAGS_SAVED): Likewise.
+ (bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.
+
+ * compress.c (bfd_uncompress_section_contents): Removed.
+ (get_uncompressed_size): New.
+ (decompress_contents): Likewise.
+ (bfd_compress_section_contents): Likewise.
+ (bfd_get_full_section_contents): Likewise.
+ (bfd_is_section_compressed): Likewise.
+ (bfd_init_section_decompress_status): Likewise.
+ (bfd_init_section_compress_status): Likewise.
+
+ * dwarf2.c (dwarf_debug_sections): New.
+ (dwarf_debug_section_enum): Likewise.
+ (read_section): Remove section_name and compressed_section_name.
+ Add dwarf_debug_section_enum. Try compressed debug section.
+ (read_indirect_string): Updated.
+ (read_abbrevs): Likewise.
+ (decode_line_info): Likewise.
+ (read_debug_ranges): Likewise.
+ (find_line): Updated.
+
+ * ecoff.c (bfd_debug_section): Add compress_status and
+ compressed_size.
+
+ * elf.c (_bfd_elf_make_section_from_shdr): Call
+ bfd_is_section_compressed to check if a DWARF debug section is
+ compressed. Call bfd_init_section_compress_status or
+ bfd_init_section_decompress_status if needed.
+
+ * elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents
+ with bfd_get_full_section_contents.
+ * merge.c (_bfd_add_merge_section): Likewise.
+ * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
+ * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
+
+ * elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and
+ BFD_DECOMPRESS.
+ (TARGET_LITTLE_SYM): Likewise.
+
+ * libbfd-in.h (dwarf_debug_section): New.
+ (dwarf_debug_sections): Likewise.
+
+ * libbfd.c (_bfd_generic_get_section_contents): Issue an error
+ when getting contents on compressed/decompressed section.
+
+ * section.c (COMPRESS_SECTION_NONE): New.
+ (COMPRESS_SECTION_DONE): Likewise.
+ (DECOMPRESS_SECTION_SIZED): Likewise.
+ (BFD_FAKE_SECTION): Add compress_status and compressed_size.
+ (bfd_malloc_and_get_section): Replace bfd_get_section_contents
+ with bfd_get_full_section_contents.
+
+ * bfd-in2.h: Regenerated.
+ * libbfd.h: Likewise.
+
+2010-10-29 Bernd Schmidt <bernds@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+
+ * elf32-tic6x.c (elf32_tic6x_merge_attributes): Check for mismatch
+ of DSBT attributes.
+
+2010-10-25 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Always call
+ _bfd_clear_contents. Pass it the input section.
+ * libbfd-in.h (_bfd_clear_contents): Add input_section argument.
+ * libbfd.h: Regenerate.
+ * reloc.c (_bfd_clear_contents): Take input_section argument.
+ Use non-zero for .debug_ranges.
+ (bfd_generic_get_relocated_section_conten): Update _bfd_clear_contents
+ call.
+
+ * elf32-arm.c (elf32_arm_relocate_section): Use
+ RELOC_AGAINST_DISCARDED_SECTION.
+ * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
+ * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
+ * elf32-arm.c (elf32_arm_relocate_section): Likewise.
+ * elf32-avr.c (elf32_avr_relocate_section): Likewise.
+ * elf32-bfin.c (bfin_relocate_section): Likewise.
+ (bfinfdpic_relocate_section): Likewise.
+ * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
+ * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
+ * elf32-cris.c (cris_elf_relocate_section): Likewise.
+ * elf32-crx.c (elf32_crx_relocate_section): Likewise.
+ * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
+ * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
+ * elf32-frv.c (elf32_frv_relocate_section): Likewise.
+ * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
+ * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
+ * elf32-i370.c (i370_elf_relocate_section): Likewise.
+ * elf32-i860.c (elf32_i860_relocate_section): Likewise.
+ * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
+ * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
+ * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
+ * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
+ * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
+ * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
+ * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
+ * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
+ * elf32-mep.c (mep_elf_relocate_section): Likewise.
+ * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
+ * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
+ * elf32-mt.c (mt_elf_relocate_section): Likewise.
+ * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
+ * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
+ * elf32-rx.c (rx_elf_relocate_section): Likewise.
+ * elf32-s390.c (elf_s390_relocate_section): Likewise.
+ * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
+ * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
+ * elf32-sh.c (sh_elf_relocate_section): Likewise.
+ * elf32-spu.c (spu_elf_relocate_section): Likewise.
+ * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
+ * elf32-v850.c (v850_elf_relocate_section): Likewise.
+ * elf32-vax.c (elf_vax_relocate_section): Likewise.
+ * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
+ * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
+ * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
+ * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
+ (elf64_alpha_relocate_section): Likewise.
+ * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
+ * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
+ * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
+ * elf64-s390.c (elf_s390_relocate_section): Likewise.
+ * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
+ * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
+ * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
+ * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
+
+2010-10-25 Nathan Sidwell <nathan@codesourcery.com>
+
+ * elf32-tic6x.c: Add attribution.
+
+2010-10-25 Alan Modra <amodra@gmail.com>
+
+ * elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
+ var warning at -O3.
+
+2010-10-25 Alan Modra <amodra@gmail.com>
+
+ * opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
+ * libbfd-in.h (bfd_alloc, bfd_zalloc): Don't declare here.
+ * libbfd.h: Regenerate
+ * bfd-in2.h: Regenerate.
+
+2010-10-25 Alan Modra <amodra@gmail.com>
+
+ * opncls.c (_bfd_id_counter): Rename to bfd_id_counter.
+ (bfd_reserved_id_counter, bfd_use_reserved_id): New vars.
+ (_bfd_new_bfd): Use negative id when bfd_use_reserved_id.
+ (bfd_create): Doc fix.
+ * bfd-in2.h: Regenerate.
+
2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* elfxx-sparc.c (tpoff): Define bed, static_tls_size.
@@ -60,7 +324,7 @@
(elf_backend_static_tls_alignment): Redefine for Solaris 2.
Undef again for Intel L1OM.
-2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
+2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 6/6).
* aoutx.h (aout_link_check_ar_symbols): Take new "subsbfd" reference
@@ -189,7 +453,7 @@
Delete.
(elf32_tic6x_rel_relocation_p): Adjusted to match changes in
data structures.
- * elf32-microblaze.c (microblaze_elf_check_relocs): Use
+ * elf32-microblaze.c (microblaze_elf_check_relocs): Use
_bfd_elf_single_rel_hdr.
* elf32-ppc.c (ppc_elf_relax_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
diff --git a/bfd/archive.c b/bfd/archive.c
index 1b3f692..ed40141 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -697,6 +697,8 @@ DESCRIPTION
bfd *
bfd_openr_next_archived_file (bfd *archive, bfd *last_file)
{
+ bfd *abfd;
+
if ((bfd_get_format (archive) != bfd_archive)
|| (archive->direction == write_direction))
{
@@ -704,8 +706,14 @@ bfd_openr_next_archived_file (bfd *archive, bfd *last_file)
return NULL;
}
- return BFD_SEND (archive,
+ abfd = BFD_SEND (archive,
openr_next_archived_file, (archive, last_file));
+
+ /* Copy BFD_COMPRESS and BFD_DECOMPRESS flags. */
+ if (abfd)
+ abfd->flags |= archive->flags & (BFD_COMPRESS | BFD_DECOMPRESS);
+
+ return abfd;
}
bfd *
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 4bd47ca..c6a54b5 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -964,6 +964,7 @@ extern struct coff_comdat_info *bfd_coff_get_comdat_section
void bfd_init (void);
/* Extracted from opncls.c. */
+extern unsigned int bfd_use_reserved_id;
bfd *bfd_fopen (const char *filename, const char *target,
const char *mode, int fd);
@@ -1000,6 +1001,10 @@ bfd_boolean bfd_make_writable (bfd *abfd);
bfd_boolean bfd_make_readable (bfd *abfd);
+void *bfd_alloc (bfd *abfd, bfd_size_type wanted);
+
+void *bfd_zalloc (bfd *abfd, bfd_size_type wanted);
+
unsigned long bfd_calc_gnu_debuglink_crc32
(unsigned long crc, const unsigned char *buf, bfd_size_type len);
@@ -1348,6 +1353,12 @@ typedef struct bfd_section
/* Mark flag used by some linker backends for garbage collection. */
unsigned int gc_mark : 1;
+ /* Section compression status. */
+ unsigned int compress_status : 2;
+#define COMPRESS_SECTION_NONE 0
+#define COMPRESS_SECTION_DONE 1
+#define DECOMPRESS_SECTION_SIZED 2
+
/* The following flags are used by the ELF linker. */
/* Mark sections which have been allocated to segments. */
@@ -1404,6 +1415,9 @@ typedef struct bfd_section
section size calculated on a previous linker relaxation pass. */
bfd_size_type rawsize;
+ /* The compressed size of the section in octets. */
+ bfd_size_type compressed_size;
+
/* Relaxation table. */
struct relax_table *relax;
@@ -1637,17 +1651,17 @@ extern asection bfd_ind_section;
/* name, id, index, next, prev, flags, user_set_vma, */ \
{ NAME, IDX, 0, NULL, NULL, FLAGS, 0, \
\
- /* linker_mark, linker_has_input, gc_mark, segment_mark, */ \
+ /* linker_mark, linker_has_input, gc_mark, decompress_status, */ \
0, 0, 1, 0, \
\
- /* sec_info_type, use_rela_p, */ \
- 0, 0, \
+ /* segment_mark, sec_info_type, use_rela_p, */ \
+ 0, 0, 0, \
\
/* sec_flg0, sec_flg1, sec_flg2, sec_flg3, sec_flg4, sec_flg5, */ \
0, 0, 0, 0, 0, 0, \
\
- /* vma, lma, size, rawsize, relax, relax_count, */ \
- 0, 0, 0, 0, 0, 0, \
+ /* vma, lma, size, rawsize, compressed_size, relax, relax_count, */ \
+ 0, 0, 0, 0, 0, 0, 0, \
\
/* output_offset, output_section, alignment_power, */ \
0, (struct bfd_section *) &SEC, 0, \
@@ -5057,6 +5071,21 @@ struct bfd
will be consistent from run to run. */
#define BFD_DETERMINISTIC_OUTPUT 0x4000
+ /* Compress sections in this BFD. */
+#define BFD_COMPRESS 0x8000
+
+ /* Decompress sections in this BFD. */
+#define BFD_DECOMPRESS 0x10000
+
+ /* Flags bits to be saved in bfd_preserve_save. */
+#define BFD_FLAGS_SAVED \
+ (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS)
+
+ /* Flags bits which are for BFD use only. */
+#define BFD_FLAGS_FOR_BFD_USE_MASK \
+ (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
+ | BFD_TRADITIONAL_FORMAT | BFD_DETERMINISTIC_OUTPUT)
+
/* Currently my_archive is tested before adding origin to
anything. I believe that this can become always an add of
origin, with origin set to 0 for non archive files. */
@@ -5888,8 +5917,21 @@ bfd_byte *bfd_simple_get_relocated_section_contents
(bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table);
/* Extracted from compress.c. */
-bfd_boolean bfd_uncompress_section_contents
- (bfd_byte **buffer, bfd_size_type *size);
+bfd_boolean bfd_compress_section_contents
+ (bfd *abfd, asection *section, bfd_byte *uncompressed_buffer,
+ bfd_size_type uncompressed_size);
+
+bfd_boolean bfd_get_full_section_contents
+ (bfd *abfd, asection *section, bfd_byte **ptr);
+
+bfd_boolean bfd_is_section_compressed
+ (bfd *abfd, asection *section);
+
+bfd_boolean bfd_init_section_decompress_status
+ (bfd *abfd, asection *section);
+
+bfd_boolean bfd_init_section_compress_status
+ (bfd *abfd, asection *section);
#ifdef __cplusplus
}
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 771989b..a9ce7cc 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -151,6 +151,21 @@ CODE_FRAGMENT
. will be consistent from run to run. *}
.#define BFD_DETERMINISTIC_OUTPUT 0x4000
.
+. {* Compress sections in this BFD. *}
+.#define BFD_COMPRESS 0x8000
+.
+. {* Decompress sections in this BFD. *}
+.#define BFD_DECOMPRESS 0x10000
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-22 14:28 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-10-22 14:28 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 891eaafc8685002d1c8a5169053c86256f5e9ddc (commit)
via 859bf2bfae8e797048278bd9c195bd0cac2d7650 (commit)
via 8cc6a10b9e6f99eb81b60807d076aafecb0c0e31 (commit)
via ee5cf7d013bae34f525f169e0f3823a012a5871e (commit)
via 48a7534346e7531457ec11ec543ac839097a9fc9 (commit)
via be23213b0255aa5124ce0475ec66b113973a108a (commit)
via 33f2256080e6494abc9d63c589d3459279723b23 (commit)
via 07bb390d0d100d7a5046861d2bd9deabffae64ca (commit)
via b723d3e94bf135c3c59b7b7cafba4baae355df4a (commit)
via 0e03e762f44581936efa72e245065fe05a16ff84 (commit)
via ee9092a331d74142b74657051ceca14f36a333d4 (commit)
via e7d22f507fcee4dd8c7869e30d197e4079356d3a (commit)
via 6737b3df32e5f18e441bffa81670cad040a4e8bd (commit)
via e1eeda55629ae072081070ef7901b68576a67107 (commit)
via ab621c2d5de88a3141c9d39592e4a061136a71af (commit)
from f03cfcef631b8b709a61f9c62e980a8e9b2df1ba (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 891eaafc8685002d1c8a5169053c86256f5e9ddc
Merge: f03cfce 859bf2b
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Fri Oct 22 15:28:42 2010 +0100
Merge remote branch 'gdb/master'
commit 859bf2bfae8e797048278bd9c195bd0cac2d7650
Author: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Date: Fri Oct 22 12:08:24 2010 +0000
ld:
* emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
elf32-sparc-sol2.
* emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
elf64-sparc-sol2.
gas:
* config/tc-sparc.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define as
elf32-sparc-sol2.
(ELF64_TARGET_FORMAT): Define as elf64-sparc-sol2.
bfd:
* elfxx-sparc.c (tpoff): Define bed, static_tls_size.
Consider static_tls_alignment.
* elf32-sparc.c (TARGET_BIG_SYM): Redefine to
bfd_elf32_sparc_sol2_vec.
(TARGET_BIG_NAME): Redefine to elf32-sparc-sol2.
(elf32_bed): Redefine to elf32_sparc_sol2_bed.
(elf_backend_static_tls_alignment): Redefine to 8.
Include elf32-target.h.
(elf_backend_static_tls_alignment): Undef again for VxWorks.
* elf64-sparc.c (TARGET_BIG_SYM): Redefine to
bfd_elf64_sparc_sol2_vec.
(TARGET_BIG_NAME): Redefine to elf64-sparc-sol2.
(ELF_OSABI): Undef.
(elf64_bed): Redefine to elf64_sparc_sol2_bed.
(elf_backend_static_tls_alignment): Redefine to 16.
Include elf64-target.h.
* config.bfd (sparc-*-solaris2.[0-6]): Split from sparc-*-elf*.
Set targ_defvec to bfd_elf32_sparc_sol2_vec.
[BFD64] (sparc-*-solaris2*): Set targ_defvec to
bfd_elf32_sparc_sol2_vec.
Replace bfd_elf64_sparc_vec by bfd_elf64_sparc_sol2_vec in
targ_selvecs.
* configure.in: Handle bfd_elf32_sparc_sol2_vec,
bfd_elf64_sparc_sol2_vec.
* configure: Regenerate.
* targets.c (bfd_elf32_sparc_sol2_vec): Declare.
(bfd_elf64_sparc_sol2_vec): Declare.
(_bfd_target_vector): Add bfd_elf32_sparc_sol2_vec,
bfd_elf64_sparc_sol2_vec.
commit 8cc6a10b9e6f99eb81b60807d076aafecb0c0e31
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 22 00:00:03 2010 +0000
*** empty log message ***
commit ee5cf7d013bae34f525f169e0f3823a012a5871e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Oct 21 23:50:57 2010 +0000
* Makefile.am (CLEANFILES): Add stamp-lm32. Sort.
* Makefile.in: Regenerate.
commit 48a7534346e7531457ec11ec543ac839097a9fc9
Author: Jie Zhang <jie.zhang@analog.com>
Date: Thu Oct 21 23:50:42 2010 +0000
* Makefile.in (install): Remove dependency of install-only and
recursively invoke make for install-only.
* data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
(install): Pass FLAGS_TO_PASS when recursively make install-only.
gdbserver/
* Makefile.in: Add FLAGS_TO_PASS variable.
(install): Remove dependency of install-only and recursively
invoke make for install-only.
commit be23213b0255aa5124ce0475ec66b113973a108a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Oct 21 23:00:05 2010 +0000
daily update
commit 33f2256080e6494abc9d63c589d3459279723b23
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Thu Oct 21 21:16:49 2010 +0000
bfd:
* elf32-tic6x.c (elf32_tic6x_merge_arch_attributes): Update for
attribute renaming.
(elf_backend_obj_attrs_section): Change to ".c6xabi.attributes".
binutils:
* readelf.c (display_tic6x_attribute): Update for attribute
renaming.
gas:
* config/tc-tic6x.c (tic6x_arch_attribute, tic6x_arches,
md_assemble, tic6x_set_attributes): Update for attribute renaming.
* doc/c-tic6x.texi: Update for attribute renaming.
gas/testsuite:
* gas/tic6x/attr-arch-directive-1.d,
gas/tic6x/attr-arch-directive-2.d,
gas/tic6x/attr-arch-directive-3.d,
gas/tic6x/attr-arch-directive-4.d,
gas/tic6x/attr-arch-directive-4.s,
gas/tic6x/attr-arch-directive-5.d,
gas/tic6x/attr-arch-directive-5.s,
gas/tic6x/attr-arch-opts-c62x.d, gas/tic6x/attr-arch-opts-c64x+.d,
gas/tic6x/attr-arch-opts-c64x.d, gas/tic6x/attr-arch-opts-c674x.d,
gas/tic6x/attr-arch-opts-c67x+.d, gas/tic6x/attr-arch-opts-c67x.d,
gas/tic6x/attr-arch-opts-none-1.d,
gas/tic6x/attr-arch-opts-none-2.d,
gas/tic6x/attr-arch-opts-override-1.d,
gas/tic6x/attr-arch-opts-override-2.d: Update for attribute
renaming and renumbering.
include/elf:
* tic6x-attrs.h (Tag_C6XABI_Tag_CPU_arch): Change to Tag_ISA,
value 4.
* tic6x.h (Values for Tag_C6XABI_Tag_CPU_arch): Rename for
attribute renaming.
ld:
* emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
.c6xabi.attributes, not __TI_build_attributes.
ld/testsuite:
* ld-tic6x/attr-arch-c62x-c62x.d, ld-tic6x/attr-arch-c62x-c64x+.d,
ld-tic6x/attr-arch-c62x-c64x.d, ld-tic6x/attr-arch-c62x-c674x.d,
ld-tic6x/attr-arch-c62x-c67x+.d, ld-tic6x/attr-arch-c62x-c67x.d,
ld-tic6x/attr-arch-c64x+-c62x.d, ld-tic6x/attr-arch-c64x+-c64x+.d,
ld-tic6x/attr-arch-c64x+-c64x.d, ld-tic6x/attr-arch-c64x+-c674x.d,
ld-tic6x/attr-arch-c64x+-c67x+.d, ld-tic6x/attr-arch-c64x+-c67x.d,
ld-tic6x/attr-arch-c64x-c62x.d, ld-tic6x/attr-arch-c64x-c64x+.d,
ld-tic6x/attr-arch-c64x-c64x.d, ld-tic6x/attr-arch-c64x-c674x.d,
ld-tic6x/attr-arch-c64x-c67x+.d, ld-tic6x/attr-arch-c64x-c67x.d,
ld-tic6x/attr-arch-c674x-c62x.d, ld-tic6x/attr-arch-c674x-c64x+.d,
ld-tic6x/attr-arch-c674x-c64x.d, ld-tic6x/attr-arch-c674x-c674x.d,
ld-tic6x/attr-arch-c674x-c67x+.d, ld-tic6x/attr-arch-c674x-c67x.d,
ld-tic6x/attr-arch-c67x+-c62x.d, ld-tic6x/attr-arch-c67x+-c64x+.d,
ld-tic6x/attr-arch-c67x+-c64x.d, ld-tic6x/attr-arch-c67x+-c674x.d,
ld-tic6x/attr-arch-c67x+-c67x+.d, ld-tic6x/attr-arch-c67x+-c67x.d,
ld-tic6x/attr-arch-c67x-c62x.d, ld-tic6x/attr-arch-c67x-c64x+.d,
ld-tic6x/attr-arch-c67x-c64x.d, ld-tic6x/attr-arch-c67x-c674x.d,
ld-tic6x/attr-arch-c67x-c67x+.d, ld-tic6x/attr-arch-c67x-c67x.d:
Update for attribute renaming.
commit 07bb390d0d100d7a5046861d2bd9deabffae64ca
Author: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Date: Thu Oct 21 12:29:00 2010 +0000
* elf-bfd.h (struct elf_backend_data): New member
static_tls_alignment.
* elfxx-target.h (elf_backend_static_tls_alignment): Provide
default.
(elfNN_bed): Initialize static_tls_alignment.
* elflink.c (bfd_elf_final_link): Don't round end of TLS section
if static TLS has special alignment requirements.
* elf32-i386.c (elf_i386_tpoff): Define bed, static_tls_size.
Consider static_tls_alignment.
(elf_backend_static_tls_alignment): Redefine for Solaris 2.
Undef again for VxWorks.
* elf64-x86-64.c (elf64_x86_64_tpoff): Define bed,
static_tls_size.
Consider static_tls_alignment.
(elf_backend_static_tls_alignment): Redefine for Solaris 2.
Undef again for Intel L1OM.
commit b723d3e94bf135c3c59b7b7cafba4baae355df4a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Oct 21 00:00:03 2010 +0000
*** empty log message ***
commit 0e03e762f44581936efa72e245065fe05a16ff84
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Oct 20 23:58:06 2010 +0000
2010-10-20 Michael Snyder <msnyder@vmware.com>
* gdb.threads/fork-child-threads.exp: Don't run on remote target.
commit ee9092a331d74142b74657051ceca14f36a333d4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Oct 20 23:00:05 2010 +0000
daily update
commit e7d22f507fcee4dd8c7869e30d197e4079356d3a
Author: Doug Evans <dje@google.com>
Date: Wed Oct 20 22:53:36 2010 +0000
* gdbint.texinfo (Misc Guidelines): Renamed from Coding.
All references updated. Correct sections marked as subsections.
(Coding Standards): New chapter. Move the coding standard related
subsections here. Add section on Python coding standards.
commit 6737b3df32e5f18e441bffa81670cad040a4e8bd
Author: swagiaal <swagiaal>
Date: Wed Oct 20 18:56:09 2010 +0000
cvs add smartp.cc smartp.exp
Original changelog:
Support overloading of 'operator->'.
[...]
2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/smartp.exp: New test.
* gdb.cp/smartp.cc : New test.
commit e1eeda55629ae072081070ef7901b68576a67107
Author: Ian Lance Taylor <ian@airs.com>
Date: Wed Oct 20 15:43:39 2010 +0000
* Makefile.def (target_modules): Set lib_path to src/.libs for
libstdc++-v3 module.
* Makefile.tpl: Fix typo in TARGET_LIB_PATH comment.
* Makefile.in: Rebuild.
commit ab621c2d5de88a3141c9d39592e4a061136a71af
Author: Hui Zhu <teawater@gmail.com>
Date: Wed Oct 20 14:03:16 2010 +0000
2010-10-20 Hui Zhu <teawater@gmail.com>
* tracepoint.c (tfile_get_traceframe_address): Call
extract_signed_integer.
(tfile_trace_find): Call extract_signed_integer and
extract_unsigned_integer. Change data_size to unsigned int.
(tfile_fetch_registers): Call extract_unsigned_integer.
(tfile_xfer_partial): Ditto.
(tfile_get_trace_state_variable_value): Call
extract_signed_integer and extract_unsigned_integer.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +
Makefile.def | 2 +-
Makefile.in | 4 +-
Makefile.tpl | 2 +-
bfd/ChangeLog | 62 +++
bfd/config.bfd | 10 +-
bfd/configure | 2 +
bfd/configure.in | 2 +
bfd/elf-bfd.h | 3 +
bfd/elf32-i386.c | 13 +-
bfd/elf32-sparc.c | 20 +-
bfd/elf32-tic6x.c | 20 +-
bfd/elf64-sparc.c | 22 +-
bfd/elf64-x86-64.c | 13 +-
bfd/elflink.c | 6 +-
bfd/elfxx-sparc.c | 7 +-
bfd/elfxx-target.h | 6 +-
bfd/targets.c | 4 +
bfd/version.h | 2 +-
gdb/ChangeLog | 18 +
gdb/Makefile.in | 3 +-
gdb/data-directory/Makefile.in | 34 ++-
gdb/doc/ChangeLog | 7 +
gdb/doc/gdbint.texinfo | 456 ++++++++++++----------
gdb/gdbserver/ChangeLog | 6 +
gdb/gdbserver/Makefile.in | 36 ++-
gdb/testsuite/ChangeLog | 4 +
gdb/testsuite/gdb.cp/smartp.cc | 163 ++++++++
gdb/testsuite/gdb.cp/smartp.exp | 77 ++++
gdb/testsuite/gdb.threads/fork-child-threads.exp | 4 +
gdb/tracepoint.c | 33 ++-
gdb/version.in | 2 +-
include/elf/ChangeLog | 7 +
include/elf/tic6x-attrs.h | 2 +-
include/elf/tic6x.h | 18 +-
opcodes/ChangeLog | 5 +
opcodes/Makefile.am | 7 +-
opcodes/Makefile.in | 7 +-
38 files changed, 833 insertions(+), 263 deletions(-)
create mode 100644 gdb/testsuite/gdb.cp/smartp.cc
create mode 100644 gdb/testsuite/gdb.cp/smartp.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 5fb7b61..54fb1bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-10-20 Ian Lance Taylor <iant@google.com>
+
+ * Makefile.def (target_modules): Set lib_path to src/.libs for
+ libstdc++-v3 module.
+ * Makefile.tpl: Fix typo in TARGET_LIB_PATH comment.
+ * Makefile.in: Rebuild.
+
2010-10-08 Bernd Schmidt <bernds@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
diff --git a/Makefile.def b/Makefile.def
index 29cd1a3..6223bf3 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -149,7 +149,7 @@ host_modules= { module= lto-plugin; bootstrap=true; };
target_modules = { module= libstdc++-v3;
bootstrap=true;
- lib_path=.libs;
+ lib_path=src/.libs;
raw_cxx=true; };
target_modules = { module= libmudflap; lib_path=.libs; };
target_modules = { module= libssp; lib_path=.libs; };
diff --git a/Makefile.in b/Makefile.in
index 1d5ef9e..aaea69d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -560,11 +560,11 @@ all:
###
# This is the list of directories that may be needed in RPATH_ENVVAR
-# so that prorgams built for the target machine work.
+# so that programs built for the target machine work.
TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(HOST_LIB_PATH_gcc)
@if target-libstdc++-v3
-TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs:
+TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
@endif target-libstdc++-v3
@if target-libmudflap
diff --git a/Makefile.tpl b/Makefile.tpl
index 1f0419c..4c55ee2 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -513,7 +513,7 @@ all:
###
# This is the list of directories that may be needed in RPATH_ENVVAR
-# so that prorgams built for the target machine work.
+# so that programs built for the target machine work.
TARGET_LIB_PATH = [+ FOR target_modules +][+
IF lib_path +]$(TARGET_LIB_PATH_[+module+])[+ ENDIF lib_path +][+
ENDFOR target_modules +]$(HOST_LIB_PATH_gcc)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7981dce..f5749a9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,65 @@
+2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * elfxx-sparc.c (tpoff): Define bed, static_tls_size.
+ Consider static_tls_alignment.
+
+ * elf32-sparc.c (TARGET_BIG_SYM): Redefine to
+ bfd_elf32_sparc_sol2_vec.
+ (TARGET_BIG_NAME): Redefine to elf32-sparc-sol2.
+ (elf32_bed): Redefine to elf32_sparc_sol2_bed.
+ (elf_backend_static_tls_alignment): Redefine to 8.
+ Include elf32-target.h.
+ (elf_backend_static_tls_alignment): Undef again for VxWorks.
+
+ * elf64-sparc.c (TARGET_BIG_SYM): Redefine to
+ bfd_elf64_sparc_sol2_vec.
+ (TARGET_BIG_NAME): Redefine to elf64-sparc-sol2.
+ (ELF_OSABI): Undef.
+ (elf64_bed): Redefine to elf64_sparc_sol2_bed.
+ (elf_backend_static_tls_alignment): Redefine to 16.
+ Include elf64-target.h.
+
+ * config.bfd (sparc-*-solaris2.[0-6]): Split from sparc-*-elf*.
+ Set targ_defvec to bfd_elf32_sparc_sol2_vec.
+ [BFD64] (sparc-*-solaris2*): Set targ_defvec to
+ bfd_elf32_sparc_sol2_vec.
+ Replace bfd_elf64_sparc_vec by bfd_elf64_sparc_sol2_vec in
+ targ_selvecs.
+
+ * configure.in: Handle bfd_elf32_sparc_sol2_vec,
+ bfd_elf64_sparc_sol2_vec.
+ * configure: Regenerate.
+
+ * targets.c (bfd_elf32_sparc_sol2_vec): Declare.
+ (bfd_elf64_sparc_sol2_vec): Declare.
+ (_bfd_target_vector): Add bfd_elf32_sparc_sol2_vec,
+ bfd_elf64_sparc_sol2_vec.
+
+2010-10-21 Joseph Myers <joseph@codesourcery.com>
+
+ * elf32-tic6x.c (elf32_tic6x_merge_arch_attributes): Update for
+ attribute renaming.
+ (elf_backend_obj_attrs_section): Change to ".c6xabi.attributes".
+
+2010-10-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * elf-bfd.h (struct elf_backend_data): New member
+ static_tls_alignment.
+ * elfxx-target.h (elf_backend_static_tls_alignment): Provide
+ default.
+ (elfNN_bed): Initialize static_tls_alignment.
+ * elflink.c (bfd_elf_final_link): Don't round end of TLS section
+ if static TLS has special alignment requirements.
+ * elf32-i386.c (elf_i386_tpoff): Define bed, static_tls_size.
+ Consider static_tls_alignment.
+ (elf_backend_static_tls_alignment): Redefine for Solaris 2.
+ Undef again for VxWorks.
+ * elf64-x86-64.c (elf64_x86_64_tpoff): Define bed,
+ static_tls_size.
+ Consider static_tls_alignment.
+ (elf_backend_static_tls_alignment): Redefine for Solaris 2.
+ Undef again for Intel L1OM.
+
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 6/6).
diff --git a/bfd/config.bfd b/bfd/config.bfd
index e42535f..f0a03e3 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -1395,14 +1395,18 @@ case "${targ}" in
targ_defvec=bfd_elf32_sparc_vec
targ_selvecs=sparcnetbsd_vec
;;
- sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
+ sparc-*-elf*)
targ_defvec=bfd_elf32_sparc_vec
targ_selvecs=sunos_big_vec
;;
+ sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
+ targ_defvec=bfd_elf32_sparc_sol2_vec
+ targ_selvecs=sunos_big_vec
+ ;;
#ifdef BFD64
sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
- targ_defvec=bfd_elf32_sparc_vec
- targ_selvecs="bfd_elf64_sparc_vec sunos_big_vec"
+ targ_defvec=bfd_elf32_sparc_sol2_vec
+ targ_selvecs="bfd_elf64_sparc_sol2_vec sunos_big_vec"
want64=true
;;
#endif
diff --git a/bfd/configure b/bfd/configure
index 980711a..41009f2 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -15148,6 +15148,7 @@ do
bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
+ bfd_elf32_sparc_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
@@ -15185,6 +15186,7 @@ do
bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
+ bfd_elf64_sparc_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
diff --git a/bfd/configure.in b/bfd/configure.in
index 13fb66f..2a876bf 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -783,6 +783,7 @@ do
bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
+ bfd_elf32_sparc_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
@@ -820,6 +821,7 @@ do
bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
+ bfd_elf64_sparc_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 66dcbcd..0527bbd 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1256,6 +1256,9 @@ struct elf_backend_data
actual tag number to place in the input position. */
int (*obj_attrs_order) (int);
+ /* This is non-zero if static TLS segments require a special alignment. */
+ unsigned static_tls_alignment;
+
/* This is TRUE if the linker should act like collect and gather
global constructors and destructors by name. This is TRUE for
MIPS ELF because the Irix 5 tools can not handle the .init
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 8d8bc85..ae749c6 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -2828,11 +2828,16 @@ static bfd_vma
elf_i386_tpoff (struct bfd_link_info *info, bfd_vma address)
{
struct elf_link_hash_table *htab = elf_hash_table (info);
+ const struct elf_backend_data *bed = get_elf_backend_data (info->output_bfd);
+ bfd_vma static_tls_size;
/* If tls_sec is NULL, we should have signalled an error already. */
if (htab->tls_sec == NULL)
return 0;
- return htab->tls_size + htab->tls_sec->vma - address;
+
+ /* Consider special static TLS alignment requirements. */
+ static_tls_size = BFD_ALIGN (htab->tls_size, bed->static_tls_alignment);
+ return static_tls_size + htab->tls_sec->vma - address;
}
/* Relocate an i386 ELF section. */
@@ -4795,6 +4800,11 @@ elf_i386_fbsd_post_process_headers (bfd *abfd, struct bfd_link_info *info)
#undef elf32_bed
#define elf32_bed elf32_i386_sol2_bed
+/* The 32-bit static TLS arena size is rounded to the nearest 8-byte
+ boundary. */
+#undef elf_backend_static_tls_alignment
+#define elf_backend_static_tls_alignment 8
+
/* The Solaris 2 ABI requires a plt symbol on all platforms.
Cf. Linker and Libraries Guide, Ch. 2, Link-Editor, Generating the Output
@@ -4848,6 +4858,7 @@ elf_i386_vxworks_link_hash_table_create (bfd *abfd)
#undef elf_backend_final_write_processing
#define elf_backend_final_write_processing \
elf_vxworks_final_write_processing
+#undef elf_backend_static_tls_alignment
/* On VxWorks, we emit relocations against _PROCEDURE_LINKAGE_TABLE_, so
define it. */
diff --git a/bfd/elf32-sparc.c b/bfd/elf32-sparc.c
index adfe924..187d466 100644
--- a/bfd/elf32-sparc.c
+++ b/bfd/elf32-sparc.c
@@ -1,6 +1,6 @@
/* SPARC-specific support for 32-bit ELF
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2006, 2007, 2010 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -246,6 +246,23 @@ elf32_sparc_add_symbol_hook (bfd * abfd,
#include "elf32-target.h"
+/* Solaris 2. */
+
+#undef TARGET_BIG_SYM
+#define TARGET_BIG_SYM bfd_elf32_sparc_sol2_vec
+#undef TARGET_BIG_NAME
+#define TARGET_BIG_NAME "elf32-sparc-sol2"
+
+#undef elf32_bed
+#define elf32_bed elf32_sparc_sol2_bed
+
+/* The 32-bit static TLS arena size is rounded to the nearest 8-byte
+ boundary. */
+#undef elf_backend_static_tls_alignment
+#define elf_backend_static_tls_alignment 8
+
+#include "elf32-target.h"
+
/* A wrapper around _bfd_sparc_elf_link_hash_table_create that identifies
the target system as VxWorks. */
@@ -305,6 +322,7 @@ elf32_sparc_vxworks_final_write_processing (bfd *abfd, bfd_boolean linker)
#undef elf_backend_final_write_processing
#define elf_backend_final_write_processing \
elf32_sparc_vxworks_final_write_processing
+#undef elf_backend_static_tls_alignment
#undef elf32_bed
#define elf32_bed sparc_elf_vxworks_bed
diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c
index a570f88..7d971d8 100644
--- a/bfd/elf32-tic6x.c
+++ b/bfd/elf32-tic6x.c
@@ -1673,7 +1673,7 @@ elf32_tic6x_obj_attrs_arg_type (int tag)
return ATTR_TYPE_FLAG_INT_VAL;
}
-/* Merge the Tag_C6XABI_Tag_CPU_arch attribute values ARCH1 and ARCH2
+/* Merge the Tag_ISA attribute values ARCH1 and ARCH2
and return the merged value. At present, all merges succeed, so no
return value for errors is defined. */
@@ -1687,11 +1687,11 @@ elf32_tic6x_merge_arch_attributes (int arch1, int arch2)
/* In most cases, the numerically greatest value is the correct
merged value, but merging C64 and C67 results in C674X. */
- if ((min_arch == C6XABI_Tag_CPU_arch_C67X
- || min_arch == C6XABI_Tag_CPU_arch_C67XP)
- && (max_arch == C6XABI_Tag_CPU_arch_C64X
- || max_arch == C6XABI_Tag_CPU_arch_C64XP))
- return C6XABI_Tag_CPU_arch_C674X;
+ if ((min_arch == C6XABI_Tag_ISA_C67X
+ || min_arch == C6XABI_Tag_ISA_C67XP)
+ && (max_arch == C6XABI_Tag_ISA_C64X
+ || max_arch == C6XABI_Tag_ISA_C64XP))
+ return C6XABI_Tag_ISA_C674X;
return max_arch;
}
@@ -1724,9 +1724,9 @@ elf32_tic6x_merge_attributes (bfd *ibfd, bfd *obfd)
/* No specification yet for handling of unknown attributes, so just
ignore them and handle known ones. */
- out_attr[Tag_C6XABI_Tag_CPU_arch].i
- = elf32_tic6x_merge_arch_attributes (in_attr[Tag_C6XABI_Tag_CPU_arch].i,
- out_attr[Tag_C6XABI_Tag_CPU_arch].i);
+ out_attr[Tag_ISA].i
+ = elf32_tic6x_merge_arch_attributes (in_attr[Tag_ISA].i,
+ out_attr[Tag_ISA].i);
/* Merge Tag_compatibility attributes and any common GNU ones. */
_bfd_elf_merge_object_attributes (ibfd, obfd);
@@ -1765,7 +1765,7 @@ elf32_tic6x_merge_private_bfd_data (bfd *ibfd, bfd *obfd)
#define elf_backend_may_use_rel_p 1
#define elf_backend_may_use_rela_p 1
#define elf_backend_obj_attrs_arg_type elf32_tic6x_obj_attrs_arg_type
-#define elf_backend_obj_attrs_section "__TI_build_attributes"
+#define elf_backend_obj_attrs_section ".c6xabi.attributes"
#define elf_backend_obj_attrs_section_type SHT_C6000_ATTRIBUTES
#define elf_backend_obj_attrs_vendor "c6xabi"
#define elf_backend_rela_normal 1
diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c
index 1ad0c14..9f05b85 100644
--- a/bfd/elf64-sparc.c
+++ b/bfd/elf64-sparc.c
@@ -1,6 +1,6 @@
/* SPARC-specific support for 64-bit ELF
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -934,3 +934,23 @@ const struct elf_size_info elf64_sparc_size_info =
#include "elf64-target.h"
+/* Solaris 2. */
+
+#undef TARGET_BIG_SYM
+#define TARGET_BIG_SYM bfd_elf64_sparc_sol2_vec
+#undef TARGET_BIG_NAME
+#define TARGET_BIG_NAME "elf64-sparc-sol2"
+
+/* Restore default: we cannot use ELFOSABI_SOLARIS, otherwise ELFOSABI_NONE
+ objects won't be recognized. */
+#undef ELF_OSABI
+
+#undef elf64_bed
+#define elf64_bed elf64_sparc_sol2_bed
+
+/* The 64-bit static TLS arena size is rounded to the nearest 16-byte
+ boundary. */
+#undef elf_backend_static_tls_alignment
+#define elf_backend_static_tls_alignment 16
+
+#include "elf64-target.h"
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 677d9c4..83656ae 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -2607,11 +2607,16 @@ static bfd_vma
elf64_x86_64_tpoff (struct bfd_link_info *info, bfd_vma address)
{
struct elf_link_hash_table *htab = elf_hash_table (info);
+ const struct elf_backend_data *bed = get_elf_backend_data (info->output_bfd);
+ bfd_vma static_tls_size;
/* If tls_segment is NULL, we should have signalled an error already. */
if (htab->tls_sec == NULL)
return 0;
- return address - htab->tls_size - htab->tls_sec->vma;
+
+ /* Consider special static TLS alignment requirements. */
+ static_tls_size = BFD_ALIGN (htab->tls_size, bed->static_tls_alignment);
+ return address - static_tls_size - htab->tls_sec->vma;
}
/* Is the instruction before OFFSET in CONTENTS a 32bit relative
@@ -4565,6 +4570,11 @@ static const struct bfd_elf_special_section
#undef elf64_bed
#define elf64_bed elf64_x86_64_sol2_bed
+/* The 64-bit static TLS arena size is rounded to the nearest 16-byte
+ boundary. */
+#undef elf_backend_static_tls_alignment
+#define elf_backend_static_tls_alignment 16
+
/* The Solaris 2 ABI requires a plt symbol on all platforms.
Cf. Linker and Libraries Guide, Ch. 2, Link-Editor, Generating the Output
@@ -4603,6 +4613,7 @@ elf64_l1om_elf_object_p (bfd *abfd)
#define elf_backend_object_p elf64_l1om_elf_object_p
#undef elf_backend_post_process_headers
+#undef elf_backend_static_tls_alignment
#include "elf64-target.h"
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 6d37dc8..6726d46 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -10624,7 +10624,11 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
end = sec->vma + size;
}
base = elf_hash_table (info)->tls_sec->vma;
- end = align_power (end, elf_hash_table (info)->tls_sec->alignment_power);
+ /* Only align end of TLS section if static TLS doesn't have special
+ alignment requirements. */
+ if (bed->static_tls_alignment == 1)
+ end = align_power (end,
+ elf_hash_table (info)->tls_sec->alignment_power);
elf_hash_table (info)->tls_size = end - base;
}
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c
index 979505a..ebe040f 100644
--- a/bfd/elfxx-sparc.c
+++ b/bfd/elfxx-sparc.c
@@ -2819,11 +2819,16 @@ static bfd_vma
tpoff (struct bfd_link_info *info, bfd_vma address)
{
struct elf_link_hash_table *htab = elf_hash_table (info);
+ const struct elf_backend_data *bed = get_elf_backend_data (info->output_bfd);
+ bfd_vma static_tls_size;
/* If tls_sec is NULL, we should have signalled an error already. */
if (htab->tls_sec == NULL)
return 0;
- return address - htab->tls_size - htab->tls_sec->vma;
+
+ /* Consider special static TLS alignment requirements. */
+ static_tls_size = BFD_ALIGN (htab->tls_size, bed->static_tls_alignment);
+ return address - static_tls_size - htab->tls_sec->vma;
}
/* Return the relocation value for a %gdop relocation. */
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 00fd693..57f352c 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -1,6 +1,6 @@
/* Target definitions for NN-bit ELF
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -477,6 +477,9 @@
#ifndef elf_backend_obj_attrs_order
#define elf_backend_obj_attrs_order NULL
#endif
+#ifndef elf_backend_static_tls_alignment
+#define elf_backend_static_tls_alignment 1
+#endif
#ifndef elf_backend_post_process_headers
#define elf_backend_post_process_headers NULL
#endif
@@ -738,6 +741,7 @@ static struct elf_backend_data elfNN_bed =
elf_backend_obj_attrs_arg_type,
elf_backend_obj_attrs_section_type,
elf_backend_obj_attrs_order,
+ elf_backend_static_tls_alignment,
elf_backend_collect,
elf_backend_type_change_ok,
elf_backend_may_use_rel_p,
diff --git a/bfd/targets.c b/bfd/targets.c
index aaf7e99..3e99754 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -676,6 +676,7 @@ extern const bfd_target bfd_elf32_shlvxworks_vec;
extern const bfd_target bfd_elf32_shnbsd_vec;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-20 12:48 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-10-20 12:48 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via f03cfcef631b8b709a61f9c62e980a8e9b2df1ba (commit)
via 9822d0d65fd29fab677141058ab001c091dcb716 (commit)
via 6da47bfa006acd632167ba2eaf00b0952ab7224f (commit)
via d46a12a4692edbb95848cb8aa82ce42a0737a313 (commit)
via 1e1cb3da9c0aad73e40d3e4d0f72c97d7b15c787 (commit)
via 16f2c1eff82da476c48410b7bf1e6523e569ebe0 (commit)
via d2ec97943ab6a71a34039b90413d49c30c06611c (commit)
via dce8ebc2edaca7c4a0dafb0f56fb6d24842bf27f (commit)
via ab5fbf66c212fa7e087fd04af41b40bd347f0cf6 (commit)
via 460494aba401d8c1c06d0860da6cc0cb5cf80597 (commit)
from f27f743af7cfc6b056340ac8fceca0ea7bf8b4f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f03cfcef631b8b709a61f9c62e980a8e9b2df1ba
Merge: f27f743 9822d0d
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Wed Oct 20 13:48:14 2010 +0100
Merge remote branch 'gdb/master'
commit 9822d0d65fd29fab677141058ab001c091dcb716
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed Oct 20 09:10:46 2010 +0000
* remote.c (remote_get_threadlist): If we got empty
response, bail out immediately, and don't emit any
warnings.
commit 6da47bfa006acd632167ba2eaf00b0952ab7224f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Oct 20 00:00:33 2010 +0000
*** empty log message ***
commit d46a12a4692edbb95848cb8aa82ce42a0737a313
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Oct 19 23:00:08 2010 +0000
daily update
commit 1e1cb3da9c0aad73e40d3e4d0f72c97d7b15c787
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Tue Oct 19 21:30:53 2010 +0000
* arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
for "mov pc, REG" as well.
(thumb_instruction_changes_pc): Likewise.
commit 16f2c1eff82da476c48410b7bf1e6523e569ebe0
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Tue Oct 19 21:29:23 2010 +0000
* gdb.base/watch_thread_num.exp: Revert 2008-09-03 change.
Skip test completely if gdb,no_hardware_watchpoints.
commit d2ec97943ab6a71a34039b90413d49c30c06611c
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Tue Oct 19 21:28:33 2010 +0000
* gdb.base/foll-fork.exp: Make regexps to match catchpoint hits more
strict, but do not check for any particular function name within libc.
commit dce8ebc2edaca7c4a0dafb0f56fb6d24842bf27f
Author: swagiaal <swagiaal>
Date: Tue Oct 19 20:53:13 2010 +0000
Support overloading of 'operator->'.
2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
PR C++/11500:
* valarith.c (value_x_unop): Handle STRUCTOP_PTR.
* eval.c (evaluate_subexp_standard): Check for overload of
'operator->'.
* valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
(value_x_unop): Ditto.
* valops.c: Include "exceptions.h".
(find_overload_match): Throw NOT_FOUND_ERROR.
(value_struct_elt): Ditto.
2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/smartp.exp: New test.
* gdb.cp/smartp.cc : New test.
commit ab5fbf66c212fa7e087fd04af41b40bd347f0cf6
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Oct 19 20:11:33 2010 +0000
* python/py-cmd.c (cmdpy_function): Unreference exception state.
commit 460494aba401d8c1c06d0860da6cc0cb5cf80597
Author: swagiaal <swagiaal>
Date: Tue Oct 19 16:07:19 2010 +0000
Support pointer to bool conversion.
2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
* gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
* gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
for conversion.
Make all other conversions illegal.
2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/converts.exp: Test pointer to bool conversion.
Test pointer to long conversion.
* gdb.cp/oranking.exp: Removed relevant kfail.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 35 ++++++++++++++++++++++
gdb/arm-tdep.c | 12 +++++++
gdb/eval.c | 43 +++++++++++++++++++++++++++
gdb/gdbtypes.c | 4 +-
gdb/gdbtypes.h | 6 +--
gdb/python/py-cmd.c | 7 ++++-
gdb/remote.c | 2 +-
gdb/testsuite/ChangeLog | 21 +++++++++++++
gdb/testsuite/gdb.base/foll-fork.exp | 11 ++++---
gdb/testsuite/gdb.base/watch_thread_num.exp | 15 +++++----
gdb/testsuite/gdb.cp/converts.cc | 8 ++++-
gdb/testsuite/gdb.cp/converts.exp | 3 ++
gdb/testsuite/gdb.cp/oranking.exp | 1 -
gdb/valarith.c | 10 +++++-
gdb/valops.c | 8 ++++-
gdb/version.in | 2 +-
17 files changed, 161 insertions(+), 29 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index b32faf0..ad9dbc4 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101019
+#define BFD_VERSION_DATE 20101020
#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 bff8559..02e42da 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,38 @@
+2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
+
+ * remote.c (remote_get_threadlist): If we got empty
+ response, bail out immediately, and don't emit any
+ warnings.
+
+2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
+ for "mov pc, REG" as well.
+ (thumb_instruction_changes_pc): Likewise.
+
+2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
+
+ PR C++/11500:
+ * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
+ * eval.c (evaluate_subexp_standard): Check for overload of
+ 'operator->'.
+ * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
+ (value_x_unop): Ditto.
+ * valops.c: Include "exceptions.h".
+ (find_overload_match): Throw NOT_FOUND_ERROR.
+ (value_struct_elt): Ditto.
+
+2010-10-19 Tom Tromey <tromey@redhat.com>
+
+ * python/py-cmd.c (cmdpy_function): Unreference exception state.
+
+2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
+ * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
+ for conversion.
+ Make all other conversions illegal.
+
2010-10-18 Doug Evans <dje@google.com>
* c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 5b32b8a..2df96cd 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -537,6 +537,9 @@ thumb_instruction_changes_pc (unsigned short inst)
if ((inst & 0xff00) == 0x4700) /* bx REG, blx REG */
return 1;
+ if ((inst & 0xff87) == 0x4687) /* mov pc, REG */
+ return 1;
+
if ((inst & 0xf500) == 0xb100) /* CBNZ or CBZ. */
return 1;
@@ -3572,6 +3575,15 @@ thumb_get_next_pc_raw (struct frame_info *frame, CORE_ADDR pc, int insert_bkpt)
else
nextpc = get_frame_register_unsigned (frame, bits (inst1, 3, 6));
}
+ else if ((inst1 & 0xff87) == 0x4687) /* mov pc, REG */
+ {
+ if (bits (inst1, 3, 6) == 0x0f)
+ nextpc = pc_val;
+ else
+ nextpc = get_frame_register_unsigned (frame, bits (inst1, 3, 6));
+
+ nextpc = MAKE_THUMB_ADDR (nextpc);
+ }
else if ((inst1 & 0xf500) == 0xb100)
{
/* CBNZ or CBZ. */
diff --git a/gdb/eval.c b/gdb/eval.c
index 635db34..471dcd7 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -1510,6 +1510,28 @@ evaluate_subexp_standard (struct type *expect_type,
else
{
arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
+
+ /* Check to see if the operator '->' has been overloaded. If the operator
+ has been overloaded replace arg2 with the value returned by the custom
+ operator and continue evaluation. */
+ while (unop_user_defined_p (op, arg2))
+ {
+ volatile struct gdb_exception except;
+ struct value *value = NULL;
+ TRY_CATCH (except, RETURN_MASK_ERROR)
+ {
+ value = value_x_unop (arg2, op, noside);
+ }
+
+ if (except.reason < 0)
+ {
+ if (except.error == NOT_FOUND_ERROR)
+ break;
+ else
+ throw_exception (except);
+ }
+ arg2 = value;
+ }
}
/* Now, say which argument to start evaluating from */
tem = 2;
@@ -1898,6 +1920,27 @@ evaluate_subexp_standard (struct type *expect_type,
if (noside == EVAL_SKIP)
goto nosideret;
+ /* Check to see if operator '->' has been overloaded. If so replace
+ arg1 with the value returned by evaluating operator->(). */
+ while (unop_user_defined_p (op, arg1))
+ {
+ volatile struct gdb_exception except;
+ struct value *value = NULL;
+ TRY_CATCH (except, RETURN_MASK_ERROR)
+ {
+ value = value_x_unop (arg1, op, noside);
+ }
+
+ if (except.reason < 0)
+ {
+ if (except.error == NOT_FOUND_ERROR)
+ break;
+ else
+ throw_exception (except);
+ }
+ arg1 = value;
+ }
+
/* JYG: if print object is on we need to replace the base type
with rtti type in order to continue on with successful
lookup of member / method only available in the rtti type. */
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 204bab5..d08dbfe 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -2256,7 +2256,6 @@ rank_one_type (struct type *parm, struct type *arg)
case TYPE_CODE_CHAR:
case TYPE_CODE_RANGE:
case TYPE_CODE_BOOL:
- return POINTER_CONVERSION_BADNESS;
default:
return INCOMPATIBLE_TYPE_BADNESS;
}
@@ -2434,8 +2433,9 @@ rank_one_type (struct type *parm, struct type *arg)
case TYPE_CODE_RANGE:
case TYPE_CODE_ENUM:
case TYPE_CODE_FLT:
+ return INCOMPATIBLE_TYPE_BADNESS;
case TYPE_CODE_PTR:
- return BOOLEAN_CONVERSION_BADNESS;
+ return BOOL_PTR_CONVERSION_BADNESS;
case TYPE_CODE_BOOL:
return 0;
default:
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index e4dac49..5617a1d 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -1415,12 +1415,10 @@ extern int is_unique_ancestor (struct type *, struct value *);
#define FLOAT_CONVERSION_BADNESS 2
/* Badness of integer<->floating conversions */
#define INT_FLOAT_CONVERSION_BADNESS 2
-/* Badness of converting to a boolean */
-#define BOOLEAN_CONVERSION_BADNESS 2
-/* Badness of pointer conversion */
-#define POINTER_CONVERSION_BADNESS 2
/* Badness of conversion of pointer to void pointer */
#define VOID_PTR_CONVERSION_BADNESS 2
+/* Badness of conversion of pointer to boolean. */
+#define BOOL_PTR_CONVERSION_BADNESS 3
/* Badness of converting derived to base class */
#define BASE_CONVERSION_BADNESS 2
/* Badness of converting from non-reference to reference */
diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c
index 9f71290..e08b467 100644
--- a/gdb/python/py-cmd.c
+++ b/gdb/python/py-cmd.c
@@ -192,7 +192,12 @@ cmdpy_function (struct cmd_list_element *command, char *args, int from_tty)
error (_("Error occurred in Python command."));
}
else
- error ("%s", msg);
+ {
+ Py_XDECREF (ptype);
+ Py_XDECREF (pvalue);
+ Py_XDECREF (ptraceback);
+ error ("%s", msg);
+ }
}
Py_DECREF (result);
diff --git a/gdb/remote.c b/gdb/remote.c
index 13a9635..68e5678 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2353,7 +2353,7 @@ remote_get_threadlist (int startflag, threadref *nextthread, int result_limit,
getpkt (&rs->buf, &rs->buf_size, 0);
if (*rs->buf == '\0')
- *result_count = 0;
+ return 0;
else
*result_count =
parse_threadlist_response (rs->buf + 2, result_limit, &echo_nextthread,
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9208bb4..861cadb 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,24 @@
+2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * gdb.base/watch_thread_num.exp: Revert 2008-09-03 change.
+ Skip test completely if gdb,no_hardware_watchpoints.
+
+2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * gdb.base/foll-fork.exp: Make regexps to match catchpoint hits more
+ strict, but do not check for any particular function name within libc.
+
+2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * gdb.cp/smartp.exp: New test.
+ * gdb.cp/smartp.cc : New test.
+
+2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * gdb.cp/converts.exp: Test pointer to bool conversion.
+ Test pointer to long conversion.
+ * gdb.cp/oranking.exp: Removed relevant kfail.
+
2010-10-18 Tom Tromey <tromey@redhat.com>
* gdb.python/py-prettyprint.exp (run_lang_tests): Test encoding
diff --git a/gdb/testsuite/gdb.base/foll-fork.exp b/gdb/testsuite/gdb.base/foll-fork.exp
index 4c5e53a..891aa38 100644
--- a/gdb/testsuite/gdb.base/foll-fork.exp
+++ b/gdb/testsuite/gdb.base/foll-fork.exp
@@ -122,7 +122,7 @@ proc catch_fork_child_follow {} {
set bp_after_fork [gdb_get_line_number "set breakpoint here"]
- gdb_test "catch fork" "Catchpoint .*(fork).*" \
+ gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)" \
"explicit child follow, set catch fork"
# Verify that the catchpoint is mentioned in an "info breakpoints",
@@ -136,7 +136,7 @@ proc catch_fork_child_follow {} {
}
gdb_test "continue" \
- "Catchpoint.*(forked process.*),.*in .*(fork|__kernel_v?syscall).*" \
+ "Catchpoint \[0-9\]* \\(forked process \[0-9\]*\\),.*" \
"explicit child follow, catch fork"
# Verify that the catchpoint is mentioned in an "info breakpoints",
@@ -184,7 +184,7 @@ proc catch_fork_unpatch_child {} {
"unpatch child, set catch fork"
gdb_test "continue" \
- "Catchpoint.*\\(forked process.*\\).*,.*in .*(fork|__kernel_v?syscall).*" \
+ "Catchpoint \[0-9\]* \\(forked process \[0-9\]*\\),.*" \
"unpatch child, catch fork"
# Delete all breakpoints and catchpoints.
@@ -225,14 +225,15 @@ proc tcatch_fork_parent_follow {} {
set bp_after_fork [gdb_get_line_number "set breakpoint here"]
- gdb_test "catch fork" "Catchpoint .*(fork).*" \
+ gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)" \
"explicit parent follow, set tcatch fork"
# ??rehrauer: I don't yet know how to get the id of the tcatch
# via this script, so that I can add a -do list to it. For now,
# do the follow stuff after the catch happens.
- gdb_test "continue" "in .*(fork|__kernel_v?syscall).*" \
+ gdb_test "continue" \
+ "Catchpoint \[0-9\]* \\(forked process \[0-9\]*\\),.*" \
"explicit parent follow, tcatch fork"
gdb_test_no_output "set follow-fork parent"
diff --git a/gdb/testsuite/gdb.base/watch_thread_num.exp b/gdb/testsuite/gdb.base/watch_thread_num.exp
index 7b77c0d..e5542dd 100644
--- a/gdb/testsuite/gdb.base/watch_thread_num.exp
+++ b/gdb/testsuite/gdb.base/watch_thread_num.exp
@@ -23,6 +23,12 @@ if $tracelevel then {
strace $tracelevel
}
+# This test verifies that a watchpoint is detected in the proper thread
+# so the test is only meaningful on a system with hardware watchpoints.
+if [target_info exists gdb,no_hardware_watchpoints] {
+ return 0;
+}
+
set testfile watch_thread_num
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
@@ -47,11 +53,6 @@ if { ![runto main] } then {
return
}
-# Disable hardware watchpoints if necessary.
-if [target_info exists gdb,no_hardware_watchpoints] {
- gdb_test_no_output "set can-use-hw-watchpoints 0" ""
-}
-
gdb_test "watch shared_var thread 0" "Unknown thread 0\." "Watchpoint on invalid thread"
gdb_test "watch shared_var thread" "A syntax error in expression, near `thread'\." "Invalid watch syntax"
@@ -71,14 +72,14 @@ gdb_test_multiple "thread" "Thread command" {
set thread_num "$expect_out(1,string)"
gdb_test_no_output "disable 2" "Disable breakpoint 2"
-gdb_test "watch shared_var thread $thread_num" "atchpoint 3: shared_var" "Watchpoint on shared variable"
+gdb_test "watch shared_var thread $thread_num" "Hardware watchpoint 3: shared_var" "Watchpoint on shared variable"
gdb_test "info breakpoint 3" "stop only in thread $thread_num"
for {set i 1} {$i <= 10} {incr i 1} {
set watchpoint "Watchpoint triggered iteration $i"
set check "Check thread that triggered iteration $i"
- gdb_test "continue" "atchpoint 3: shared_var.*" $watchpoint
+ gdb_test "continue" "Hardware watchpoint 3: shared_var.*" $watchpoint
gdb_test "thread" ".*Current thread is $thread_num .*" $check
}
diff --git a/gdb/testsuite/gdb.cp/converts.cc b/gdb/testsuite/gdb.cp/converts.cc
index b5e7bde..34b6927 100644
--- a/gdb/testsuite/gdb.cp/converts.cc
+++ b/gdb/testsuite/gdb.cp/converts.cc
@@ -14,7 +14,9 @@ int foo1_2 (char[]) {return 12;}
int foo1_3 (int*) {return 13;}
int foo1_4 (A*) {return 14;}
int foo1_5 (void*) {return 15;}
-int foo1_6 (void**) {return 15;}
+int foo1_6 (void**) {return 16;}
+int foo1_7 (bool) {return 17;}
+int foo1_8 (long) {return 18;}
int foo2_1 (char** ) {return 21;}
int foo2_2 (char[][1]) {return 22;}
@@ -40,7 +42,9 @@ int main()
foo1_3 ((int*)bp); // ..pointer of wrong type
foo1_4 (bp); // ..ancestor pointer
foo1_5 (bp); // ..void pointer
- foo1_6 ((void**)bp); // ..void pointer
+ foo1_6 ((void**)bp); // ..void pointer pointer
+ foo1_7 (bp); // ..boolean
+ foo1_8 ((long)bp); // ..long int
char **b; // pointer pointer to..
char ba[1][1];
diff --git a/gdb/testsuite/gdb.cp/converts.exp b/gdb/testsuite/gdb.cp/converts.exp
index 121bcad..4e4c2ea 100644
--- a/gdb/testsuite/gdb.cp/converts.exp
+++ b/gdb/testsuite/gdb.cp/converts.exp
@@ -40,6 +40,9 @@ gdb_test "p foo1_3 (a)" "Cannot resolve.*" "pointer to pointer of wrong type"
gdb_test "p foo1_3 (bp)" "Cannot resolve.*" "pointer to pointer of wrong type"
gdb_test "p foo1_4 (bp)" "= 14" "pointer to ancestor pointer"
gdb_test "p foo1_5 (bp)" "= 15" "pointer to void pointer"
+gdb_test "p foo1_6 (bp)" "Cannot resolve.*" "pointer to void pointer pointer"
+gdb_test "p foo1_7 (bp)" "= 17" "pointer to boolean"
+gdb_test "p foo1_8 (bp)" "Using non-standard.*" "pointer to long int"
gdb_test "p foo1_5 (b)" "= 15" "pointer pointer to void pointer"
gdb_test "p foo2_1 (b)" "= 21" "pointer pointer to pointer pointer"
diff --git a/gdb/testsuite/gdb.cp/oranking.exp b/gdb/testsuite/gdb.cp/oranking.exp
index f06933a..f1efb77 100644
--- a/gdb/testsuite/gdb.cp/oranking.exp
+++ b/gdb/testsuite/gdb.cp/oranking.exp
@@ -52,7 +52,6 @@ setup_kfail "gdb/12098" *-*-*
gdb_test "p foo4(&a)" "24"
gdb_test "p test5()" "26"
-setup_kfail "gdb/12098" *-*-*
gdb_test "p foo5(c)" "26"
gdb_test "p test6()" "28"
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 554c4ff..88f1448 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -541,7 +541,8 @@ value_x_binop (struct value *arg1, struct value *arg2, enum exp_opcode op,
}
return call_function_by_hand (argvec[0], 2 - static_memfuncp, argvec + 1);
}
- error (_("member function %s not found"), tstr);
+ throw_error (NOT_FOUND_ERROR,
+ _("member function %s not found"), tstr);
#ifdef lint
return call_function_by_hand (argvec[0], 2 - static_memfuncp, argvec + 1);
#endif
@@ -616,6 +617,9 @@ value_x_unop (struct value *arg1, enum exp_opcode op, enum noside noside)
case UNOP_IND:
strcpy (ptr, "*");
break;
+ case STRUCTOP_PTR:
+ strcpy (ptr, "->");
+ break;
default:
error (_("Invalid unary operation specified."));
}
@@ -641,7 +645,9 @@ value_x_unop (struct value *arg1, enum exp_opcode op, enum noside noside)
}
return call_function_by_hand (argvec[0], nargs, argvec + 1);
}
- error (_("member function %s not found"), tstr);
+ throw_error (NOT_FOUND_ERROR,
+ _("member function %s not found"), tstr);
+
return 0; /* For lint -- never reached */
}
\f
diff --git a/gdb/valops.c b/gdb/valops.c
index fe4576e..07b62a1 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -46,6 +46,7 @@
#include "observer.h"
#include "objfiles.h"
#include "symtab.h"
+#include "exceptions.h"
extern int overload_debug;
/* Local functions. */
@@ -2215,7 +2216,8 @@ value_struct_elt (struct value **argp, struct value **args,
}
if (!v)
- error (_("Structure has no component named %s."), name);
+ throw_error (NOT_FOUND_ERROR,
+ _("Structure has no component named %s."), name);
return v;
}
@@ -2533,7 +2535,9 @@ find_overload_match (struct type **arg_types, int nargs,
/* Did we find a match ? */
if (method_oload_champ == -1 && func_oload_champ == -1)
- error (_("No symbol \"%s\" in current context."), name);
+ throw_error (NOT_FOUND_ERROR,
+ _("No symbol \"%s\" in current context."),
+ name);
/* If we have found both a method match and a function
match, find out which one is better, and calculate match
diff --git a/gdb/version.in b/gdb/version.in
index 5be57be..573c8ab 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.50.20101019-cvs
+7.2.50.20101020-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-19 16:01 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-10-19 16:01 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via f27f743af7cfc6b056340ac8fceca0ea7bf8b4f2 (commit)
via 45fd64be9998b68cca8e6da92e93cca124345b23 (commit)
via a448c547d9e1ad698f0ebe52b6206db20b63e906 (commit)
via e9246671002e0d459ed97321436c4bf44b4b1afc (commit)
via 9810479548aa51abe3bed774c5f1426d85fe9e18 (commit)
via 11dfdf56221313e0a27a1dca916e222bdce7b8c4 (commit)
via c213a7dc8e79a49263a222d1db45b2ef384ddb83 (commit)
via 5471de0bb592c0f63ac67704bf74c733ab95fc89 (commit)
via a9d3abcd79018bbaf8ed6000b8fb445936fc7fd1 (commit)
from 653d38b1806744712655bdd45d0afd85e29a6588 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f27f743af7cfc6b056340ac8fceca0ea7bf8b4f2
Merge: 653d38b 45fd64b
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Tue Oct 19 17:00:42 2010 +0100
Merge remote branch 'gdb/master'
commit 45fd64be9998b68cca8e6da92e93cca124345b23
Author: Doug Evans <dje@google.com>
Date: Tue Oct 19 04:22:16 2010 +0000
* c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
assumptions of when this case happens. Print "<unnamed typedef>".
commit a448c547d9e1ad698f0ebe52b6206db20b63e906
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Oct 19 00:00:32 2010 +0000
*** empty log message ***
commit e9246671002e0d459ed97321436c4bf44b4b1afc
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Oct 18 23:00:05 2010 +0000
daily update
commit 9810479548aa51abe3bed774c5f1426d85fe9e18
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Oct 18 19:14:01 2010 +0000
gdb
* valprint.c (val_print_string): Pass 'encoding' to
LA_PRINT_STRING.
gdb/testsuite
* gdb.python/py-prettyprint.exp (run_lang_tests): Test encoding
argument to lazy_string.
* gdb.python/py-prettyprint.py (pp_ls_encoding): New global.
(pp_ls.to_string): Use it.
* gdb.python/py-prettyprint.c (main): Move declarations to top.
Add "estring2" local.
commit 11dfdf56221313e0a27a1dca916e222bdce7b8c4
Author: DJ Delorie <dj@delorie.com>
Date: Mon Oct 18 17:08:53 2010 +0000
merge from gcc
commit c213a7dc8e79a49263a222d1db45b2ef384ddb83
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Mon Oct 18 00:15:35 2010 +0000
opcodes/
* mips-opc.c (mips_builtin_opcodes): Move M_LD_OB and M_SD_OB
macros before their corresponding MIPS III hardware instructions.
gas/
* config/tc-mips.c (macro)[M_LD_OB, M_SD_OB]: Handle 64-bit ABIs.
gas/testsuite/
* gas/mips/lineno.s: Convert to o32.
* gas/mips/lineno.d: Adjust patterns accordingly. Force the o32
ABI.
commit 5471de0bb592c0f63ac67704bf74c733ab95fc89
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Oct 18 00:00:33 2010 +0000
*** empty log message ***
commit a9d3abcd79018bbaf8ed6000b8fb445936fc7fd1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Oct 17 23:00:05 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 10 ++++++++++
gdb/c-typeprint.c | 7 +++++++
gdb/testsuite/ChangeLog | 9 +++++++++
gdb/testsuite/gdb.python/py-prettyprint.c | 8 ++++++--
gdb/testsuite/gdb.python/py-prettyprint.exp | 4 ++++
gdb/testsuite/gdb.python/py-prettyprint.py | 7 ++++++-
gdb/valprint.c | 2 +-
gdb/version.in | 2 +-
include/ChangeLog | 5 +++++
opcodes/ChangeLog | 5 +++++
opcodes/mips-opc.c | 6 ++++--
12 files changed, 59 insertions(+), 8 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index a68d523..b32faf0 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101017
+#define BFD_VERSION_DATE 20101019
#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 d1f4477..bff8559 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2010-10-18 Doug Evans <dje@google.com>
+
+ * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
+ assumptions of when this case happens. Print "<unnamed typedef>".
+
+2010-10-18 Tom Tromey <tromey@redhat.com>
+
+ * valprint.c (val_print_string): Pass 'encoding' to
+ LA_PRINT_STRING.
+
2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix the `stopped language detection' testcase for gcc-4.5.
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index 0fd077b..87f7b0d 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -707,6 +707,13 @@ c_type_print_base (struct type *type, struct ui_file *stream, int show,
switch (TYPE_CODE (type))
{
case TYPE_CODE_TYPEDEF:
+ /* If we get here, the typedef doesn't have a name, and we couldn't
+ resolve TYPE_TARGET_TYPE. Not much we can do. */
+ gdb_assert (TYPE_NAME (type) == NULL);
+ gdb_assert (TYPE_TARGET_TYPE (type) == NULL);
+ fprintf_filtered (stream, _("<unnamed typedef>"));
+ break;
+
case TYPE_CODE_ARRAY:
case TYPE_CODE_PTR:
case TYPE_CODE_MEMBERPTR:
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9254c5d..9208bb4 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2010-10-18 Tom Tromey <tromey@redhat.com>
+
+ * gdb.python/py-prettyprint.exp (run_lang_tests): Test encoding
+ argument to lazy_string.
+ * gdb.python/py-prettyprint.py (pp_ls_encoding): New global.
+ (pp_ls.to_string): Use it.
+ * gdb.python/py-prettyprint.c (main): Move declarations to top.
+ Add "estring2" local.
+
2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix s390x compatibility.
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.c b/gdb/testsuite/gdb.python/py-prettyprint.c
index 66a9014..b633111 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint.c
+++ b/gdb/testsuite/gdb.python/py-prettyprint.c
@@ -213,6 +213,9 @@ main ()
/* Clearing by being `static' could invoke an other GDB C++ bug. */
struct nullstr nullstr;
nostring_type nstype;
+ struct ns ns;
+ struct lazystring estring, estring2;
+
nstype.elements = narray;
nstype.len = 0;
@@ -225,13 +228,14 @@ main ()
init_s (&arraystruct.x[0], 23);
init_s (&arraystruct.x[1], 24);
- struct ns ns;
ns.null_str = "embedded\0null\0string";
ns.length = 20;
- struct lazystring estring;
estring.lazy_str = "embedded x\201\202\203\204" ;
+ /* Incomplete UTF-8, but ok Latin-1. */
+ estring2.lazy_str = "embedded x\302";
+
#ifdef __cplusplus
S cps;
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp
index 057443e..b8f37d3 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint.exp
+++ b/gdb/testsuite/gdb.python/py-prettyprint.exp
@@ -91,6 +91,10 @@ proc run_lang_tests {lang} {
gdb_test "print cstring" " = \"const string\""
gdb_test "print estring" "\"embedded x\\\\201\\\\202\\\\203\\\\204\""
+
+ gdb_test_no_output "python pp_ls_encoding = 'UTF-8'"
+ gdb_test "print estring2" "\"embedded \", <incomplete sequence \\\\302>"
+
gdb_test "print c" " = container \"container\" with 2 elements = {$nl *.0. = 23,$nl *.1. = 72$nl}"
gdb_test "print nstype" " = {$nl *.0. = 7,$nl *.1. = 42$nl}"
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.py b/gdb/testsuite/gdb.python/py-prettyprint.py
index 23d8271..e7a0feb 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint.py
+++ b/gdb/testsuite/gdb.python/py-prettyprint.py
@@ -139,6 +139,8 @@ class pp_ns:
def display_hint (self):
return 'string'
+pp_ls_encoding = None
+
class pp_ls:
"Print a std::basic_string of some kind"
@@ -146,7 +148,10 @@ class pp_ls:
self.val = val
def to_string(self):
- return self.val['lazy_str'].lazy_string()
+ if pp_ls_encoding is not None:
+ return self.val['lazy_str'].lazy_string(encoding = pp_ls_encoding)
+ else:
+ return self.val['lazy_str'].lazy_string()
def display_hint (self):
return 'string'
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 4b3789e..09da426 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -1489,7 +1489,7 @@ val_print_string (struct type *elttype, const char *encoding,
fputs_filtered (" ", stream);
}
LA_PRINT_STRING (stream, elttype, buffer, bytes_read / width,
- NULL, force_ellipsis, options);
+ encoding, force_ellipsis, options);
}
if (errcode != 0)
diff --git a/gdb/version.in b/gdb/version.in
index f803523..5be57be 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.50.20101017-cvs
+7.2.50.20101019-cvs
diff --git a/include/ChangeLog b/include/ChangeLog
index eba9cc3..73ccb4d 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ Sync LD plugin patch series (part 1/6) with src/include/.
+ * plugin-api.h (LDPT_GNU_LD_VERSION): New ld_plugin_tag enum member.
+
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 6/6).
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index ea0eeef..9a24e89 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-18 Maciej W. Rozycki <macro@linux-mips.org>
+
+ * mips-opc.c (mips_builtin_opcodes): Move M_LD_OB and M_SD_OB
+ macros before their corresponding MIPS III hardware instructions.
+
2010-10-16 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (cpu_flag_init): Add CpuNop to CPU_GENERIC64_FLAGS.
diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c
index 6dc615f..230d0f8 100644
--- a/opcodes/mips-opc.c
+++ b/opcodes/mips-opc.c
@@ -743,8 +743,9 @@ const struct mips_opcode mips_builtin_opcodes[] =
{"lbu", "t,o(b)", 0x90000000, 0xfc000000, LDD|RD_b|WR_t, 0, I1 },
{"lbu", "t,A(b)", 0, (int) M_LBU_AB, INSN_MACRO, 0, I1 },
{"lca", "t,A(b)", 0, (int) M_LCA_AB, INSN_MACRO, 0, I1 },
-{"ld", "t,o(b)", 0xdc000000, 0xfc000000, WR_t|RD_b, 0, I3 },
+/* The macro has to be first to handle o32 correctly. */
{"ld", "t,o(b)", 0, (int) M_LD_OB, INSN_MACRO, 0, I1 },
+{"ld", "t,o(b)", 0xdc000000, 0xfc000000, WR_t|RD_b, 0, I3 },
{"ld", "t,A(b)", 0, (int) M_LD_AB, INSN_MACRO, 0, I1 },
{"ldaddw", "t,b", 0x70000010, 0xfc00ffff, SM|RD_t|WR_t|RD_b, 0, XLR },
{"ldaddwu", "t,b", 0x70000011, 0xfc00ffff, SM|RD_t|WR_t|RD_b, 0, XLR },
@@ -1173,8 +1174,9 @@ const struct mips_opcode mips_builtin_opcodes[] =
{"sc", "t,A(b)", 0, (int) M_SC_AB, INSN_MACRO, 0, I2 },
{"scd", "t,o(b)", 0xf0000000, 0xfc000000, SM|RD_t|WR_t|RD_b, 0, I3 },
{"scd", "t,A(b)", 0, (int) M_SCD_AB, INSN_MACRO, 0, I3 },
-{"sd", "t,o(b)", 0xfc000000, 0xfc000000, SM|RD_t|RD_b, 0, I3 },
+/* The macro has to be first to handle o32 correctly. */
{"sd", "t,o(b)", 0, (int) M_SD_OB, INSN_MACRO, 0, I1 },
+{"sd", "t,o(b)", 0xfc000000, 0xfc000000, SM|RD_t|RD_b, 0, I3 },
{"sd", "t,A(b)", 0, (int) M_SD_AB, INSN_MACRO, 0, I1 },
{"sdbbp", "", 0x0000000e, 0xffffffff, TRAP, 0, G2 },
{"sdbbp", "c", 0x0000000e, 0xfc00ffff, TRAP, 0, G2 },
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-17 20:27 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-10-17 20:27 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 653d38b1806744712655bdd45d0afd85e29a6588 (commit)
via 414455fb0544ec67c3258a8673a355d208399892 (commit)
via 31401e24be886bdf460f115f7804c69aa118e5b6 (commit)
via cbca720518e5efd7761e29a995944ad1c8535ff4 (commit)
via 36d1deeb2f285dfb4f588c6c81dea897dc120899 (commit)
via 1bc4710e30694c7f0319d57ed8e1ee6c23ebd759 (commit)
via d9cf29db9c3c4c608efe3c34f6c36b7e9e2c50b7 (commit)
via 2bf6d9050c558824b2b0204d6ae18c33e81a193d (commit)
via 96d5306dea53311a18432583ca865f793a31f4f2 (commit)
via 1670b2d209b4416a5e4a8763a6d16ffa3b6710ad (commit)
via d5f4a84e0662cfa26c730eb7f81959a778591ef2 (commit)
via 06dd19c7dcc8ef5098f1b98f24b657a81f24d99c (commit)
via b2237005769b8de286894f2d8d36e9e959019c46 (commit)
via d0b8a5a2be345f831d188e55c69778a49c10264f (commit)
via 7e9d52e9df72f3dd3a925e1527104318658d8451 (commit)
from a96476131a8045900eb407d2cc1fc712bcded2bc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 653d38b1806744712655bdd45d0afd85e29a6588
Merge: a964761 414455f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Oct 17 22:27:43 2010 +0200
Merge remote branch 'gdb/master'
commit 414455fb0544ec67c3258a8673a355d208399892
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Oct 17 18:55:09 2010 +0000
gdb/testsuite/
Fix s390x compatibility.
* gdb.dwarf2/pr11465.S (DW_TAG_pointer_type): Use PTRBITS. Twice.
* gdb.dwarf2/pr11465.exp: Set ptrbits, use it for -DPTRBITS.
commit 31401e24be886bdf460f115f7804c69aa118e5b6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Oct 17 18:49:46 2010 +0000
gdb/
Fix the `stopped language detection' testcase for gcc-4.5.
* dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
* symfile.c (set_initial_language): Move variable filename to a more
inner block. Prefer LANGUAGE_OF_MAIN.
* symtab.c (language_of_main): New variable.
(set_main_name): Always reset LANGUAGE_OF_MAIN.
* symtab.h (language_of_main): New declaration.
commit cbca720518e5efd7761e29a995944ad1c8535ff4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Oct 17 18:24:46 2010 +0000
gdb/
* gdbthread.h (currently_stepping): New declaration.
* infrun.c (currently_stepping): Remove the forward declaration.
(currently_stepping): Make it global.
* linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
variables tp and step, initialized them. Pass STEP to to_resume.
Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
* remote.c (currently_stepping_callback): New.
(remote_vcont_resume)
<ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
New variable tp. Call currently_stepping_callback and step such
thread.
gdb/testsuite/
* gdb.threads/sigstep-threads.exp: New file.
* gdb.threads/sigstep-threads.c: New file.
commit 36d1deeb2f285dfb4f588c6c81dea897dc120899
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Oct 17 17:45:16 2010 +0000
gdb/
* infrun.c (follow_exec): Replace symbol_file_add_main by
symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
breakpoint_re_set.
* m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
clear_symtab_users.
* objfiles.c (free_all_objfiles): Likewise.
* remote-m32r-sdi.c (m32r_load): Likewise.
* solib-som.c (som_solib_create_inferior_hook): Likewise.
* symfile.c (new_symfile_objfile): New comment for add_flags. Call
clear_symtab_users with ADD_FLAGS.
(reread_symbols): Use parameter 0 for clear_symtab_users.
(clear_symtab_users): New parameter add_flags. Do not call
breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
(clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
* symtab.h (clear_symtab_users): New parameter add_flags.
gdb/testsuite/
* gdb.base/pie-execl.exp: New file.
* gdb.base/pie-execl.c: New file.
commit 1bc4710e30694c7f0319d57ed8e1ee6c23ebd759
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Oct 17 08:43:45 2010 +0000
gdb/
Fix GCC false warning.
* varobj.c (value_get_print_value) <str_addr>: Initialize it.
commit d9cf29db9c3c4c608efe3c34f6c36b7e9e2c50b7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 17 00:00:32 2010 +0000
*** empty log message ***
commit 2bf6d9050c558824b2b0204d6ae18c33e81a193d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Oct 16 23:00:05 2010 +0000
daily update
commit 96d5306dea53311a18432583ca865f793a31f4f2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Oct 16 21:53:16 2010 +0000
Add CpuNop to CPU_GENERIC64_FLAGS.
gas/testsuite/
2010-10-16 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run x86-64-nops-1-g64.
* gas/i386/x86-64-nops-1.d: Remove -mtune=generic64.
* gas/i386/x86-64-nops-1-g64.d: New.
opcodes/
2010-10-16 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (cpu_flag_init): Add CpuNop to CPU_GENERIC64_FLAGS.
* i386-init.h: Regenerated.
commit 1670b2d209b4416a5e4a8763a6d16ffa3b6710ad
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 16 00:00:33 2010 +0000
*** empty log message ***
commit d5f4a84e0662cfa26c730eb7f81959a778591ef2
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Oct 15 23:08:04 2010 +0000
* p-typeprint.c (pascal_type_print_method_args): Fix problem in
display of type of method arguments.
commit 06dd19c7dcc8ef5098f1b98f24b657a81f24d99c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Oct 15 23:00:05 2010 +0000
daily update
commit b2237005769b8de286894f2d8d36e9e959019c46
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Oct 15 20:44:46 2010 +0000
gas: blackfin: fix encoding of BYTEOP2M insn
The BYTEOP2M parser incorrectly calls BYTEOP2P to generate the opcode.
Once we've fixed that, it's easy to see that the disassembler also likes
to decode this insn incorrectly. So fix that and then add some tests.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit d0b8a5a2be345f831d188e55c69778a49c10264f
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Oct 15 18:54:10 2010 +0000
PR python/11948:
* varobj.c (value_get_print_value): Use val_print_string to print
lazy strings.
* python/py-prettyprint.c (print_string_repr): Use
val_print_string to print lazy strings. Fix cleanup logic.
(print_children): Likewise.
* python/python-internal.h (gdbpy_extract_lazy_string): Update.
* python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
Change return type to 'void', add 'addr' argument.
* value.h (val_print_string): Update.
* valprint.c (val_print_string): Add 'encoding' argument.
* printcmd.c (print_formatted): Update.
* p-valprint.c (pascal_val_print): Update.
* m2-valprint.c (print_unpacked_pointer): Update.
(m2_print_array_contents): Likewise.
* jv-valprint.c (java_value_print): Update.
* f-valprint.c (f_val_print): Update.
* c-valprint.c (c_val_print): Update.
* auxv.c (fprint_target_auxv): Update.
commit 7e9d52e9df72f3dd3a925e1527104318658d8451
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Oct 15 17:48:40 2010 +0000
gdb/
PR exp/12117
* gdbtypes.c (check_typedef): Clean up function comment.
Keep track of instance flags as we strip typedefs and create a new
type to preserve them if necessary.
* gdbtypes.h (type) <instance_flags>: Extend the comment.
gdb/testsuite/
PR exp/12117
* gdb.cp/ptype-cv-cp.cc: New file.
* gdb.cp/ptype-cv-cp.exp: New file.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 84 ++++++++++++++++++++
gdb/auxv.c | 2 +-
gdb/c-valprint.c | 2 +-
gdb/dwarf2read.c | 8 ++-
gdb/f-valprint.c | 4 +-
gdb/gdbthread.h | 2 +
gdb/gdbtypes.c | 87 ++++++++++++++-------
gdb/gdbtypes.h | 9 ++-
gdb/infrun.c | 17 +++-
gdb/jv-valprint.c | 3 +-
gdb/linux-nat.c | 14 +++-
gdb/m2-valprint.c | 4 +-
gdb/m32r-rom.c | 4 +-
gdb/objfiles.c | 2 +-
gdb/p-typeprint.c | 9 +-
gdb/p-valprint.c | 6 +-
gdb/printcmd.c | 2 +-
gdb/python/py-lazy-string.c | 93 ++++------------------
gdb/python/py-prettyprint.c | 105 ++++++++++++-------------
gdb/python/python-internal.h | 6 +-
gdb/remote-m32r-sdi.c | 2 +-
gdb/remote.c | 14 ++++
gdb/solib-som.c | 2 +-
gdb/symfile.c | 29 ++++---
gdb/symtab.c | 3 +
gdb/symtab.h | 3 +-
gdb/testsuite/ChangeLog | 23 ++++++
gdb/testsuite/gdb.base/pie-execl.c | 51 ++++++++++++
gdb/testsuite/gdb.base/pie-execl.exp | 100 +++++++++++++++++++++++
gdb/testsuite/gdb.cp/ptype-cv-cp.cc | 34 ++++++++
gdb/testsuite/gdb.cp/ptype-cv-cp.exp | 41 ++++++++++
gdb/testsuite/gdb.dwarf2/pr11465.S | 4 +-
gdb/testsuite/gdb.dwarf2/pr11465.exp | 8 ++-
gdb/testsuite/gdb.threads/sigstep-threads.c | 54 +++++++++++++
gdb/testsuite/gdb.threads/sigstep-threads.exp | 74 +++++++++++++++++
gdb/valprint.c | 7 +-
gdb/value.h | 3 +-
gdb/varobj.c | 42 ++++++-----
gdb/version.in | 2 +-
opcodes/ChangeLog | 10 +++
opcodes/bfin-dis.c | 16 ++--
opcodes/i386-gen.c | 2 +-
opcodes/i386-init.h | 2 +-
44 files changed, 752 insertions(+), 239 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/pie-execl.c
create mode 100644 gdb/testsuite/gdb.base/pie-execl.exp
create mode 100644 gdb/testsuite/gdb.cp/ptype-cv-cp.cc
create mode 100644 gdb/testsuite/gdb.cp/ptype-cv-cp.exp
create mode 100644 gdb/testsuite/gdb.threads/sigstep-threads.c
create mode 100644 gdb/testsuite/gdb.threads/sigstep-threads.exp
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 772627e..a68d523 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101015
+#define BFD_VERSION_DATE 20101017
#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 bcfe2b7..d1f4477 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,87 @@
+2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix the `stopped language detection' testcase for gcc-4.5.
+ * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
+ * symfile.c (set_initial_language): Move variable filename to a more
+ inner block. Prefer LANGUAGE_OF_MAIN.
+ * symtab.c (language_of_main): New variable.
+ (set_main_name): Always reset LANGUAGE_OF_MAIN.
+ * symtab.h (language_of_main): New declaration.
+
+2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ * gdbthread.h (currently_stepping): New declaration.
+ * infrun.c (currently_stepping): Remove the forward declaration.
+ (currently_stepping): Make it global.
+ * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
+ variables tp and step, initialized them. Pass STEP to to_resume.
+ Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
+ * remote.c (currently_stepping_callback): New.
+ (remote_vcont_resume)
+ <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
+ New variable tp. Call currently_stepping_callback and step such
+ thread.
+
+2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * infrun.c (follow_exec): Replace symbol_file_add_main by
+ symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
+ breakpoint_re_set.
+ * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
+ clear_symtab_users.
+ * objfiles.c (free_all_objfiles): Likewise.
+ * remote-m32r-sdi.c (m32r_load): Likewise.
+ * solib-som.c (som_solib_create_inferior_hook): Likewise.
+ * symfile.c (new_symfile_objfile): New comment for add_flags. Call
+ clear_symtab_users with ADD_FLAGS.
+ (reread_symbols): Use parameter 0 for clear_symtab_users.
+ (clear_symtab_users): New parameter add_flags. Do not call
+ breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
+ (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
+ * symtab.h (clear_symtab_users): New parameter add_flags.
+
+2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix GCC false warning.
+ * varobj.c (value_get_print_value) <str_addr>: Initialize it.
+
+2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * p-typeprint.c (pascal_type_print_method_args): Fix problem in
+ display of type of method arguments.
+
+2010-10-15 Tom Tromey <tromey@redhat.com>
+
+ PR python/11948:
+ * varobj.c (value_get_print_value): Use val_print_string to print
+ lazy strings.
+ * python/py-prettyprint.c (print_string_repr): Use
+ val_print_string to print lazy strings. Fix cleanup logic.
+ (print_children): Likewise.
+ * python/python-internal.h (gdbpy_extract_lazy_string): Update.
+ * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
+ Change return type to 'void', add 'addr' argument.
+ * value.h (val_print_string): Update.
+ * valprint.c (val_print_string): Add 'encoding' argument.
+ * printcmd.c (print_formatted): Update.
+ * p-valprint.c (pascal_val_print): Update.
+ * m2-valprint.c (print_unpacked_pointer): Update.
+ (m2_print_array_contents): Likewise.
+ * jv-valprint.c (java_value_print): Update.
+ * f-valprint.c (f_val_print): Update.
+ * c-valprint.c (c_val_print): Update.
+ * auxv.c (fprint_target_auxv): Update.
+
+2010-10-15 Doug Evans <dje@google.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR exp/12117
+ * gdbtypes.c (check_typedef): Clean up function comment.
+ Keep track of instance flags as we strip typedefs and create a new
+ type to preserve them if necessary.
+ * gdbtypes.h (type) <instance_flags>: Extend the comment.
+
2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
* p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
diff --git a/gdb/auxv.c b/gdb/auxv.c
index 593b0c8..71144dc 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -401,7 +401,7 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops)
if (opts.addressprint)
fprintf_filtered (file, "%s", paddress (target_gdbarch, val));
val_print_string (builtin_type (target_gdbarch)->builtin_char,
- val, -1, file, &opts);
+ NULL, val, -1, file, &opts);
fprintf_filtered (file, "\n");
}
break;
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 521460b..bc524bd 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -289,7 +289,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
if (c_textual_element_type (unresolved_elttype, options->format)
&& addr != 0)
{
- i = val_print_string (unresolved_elttype, addr, -1, stream,
+ i = val_print_string (unresolved_elttype, NULL, addr, -1, stream,
options);
}
else if (cp_is_vtbl_member (type))
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index e92795b..7c78454 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -8880,7 +8880,13 @@ read_partial_die (struct partial_die_info *part_die,
practice. */
if (DW_UNSND (&attr) == DW_CC_program
&& cu->language == language_fortran)
- set_main_name (part_die->name);
+ {
+ set_main_name (part_die->name);
+
+ /* As this DIE has a static linkage the name would be difficult
+ to look up later. */
+ language_of_main = language_fortran;
+ }
break;
default:
break;
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index 85f698d..e27f79e 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -299,8 +299,8 @@ f_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
&& TYPE_CODE (elttype) == TYPE_CODE_INT
&& (options->format == 0 || options->format == 's')
&& addr != 0)
- i = val_print_string (TYPE_TARGET_TYPE (type), addr, -1, stream,
- options);
+ i = val_print_string (TYPE_TARGET_TYPE (type), NULL, addr, -1,
+ stream, options);
/* Return number of characters printed, including the terminating
'\0' if we reached the end. val_print_string takes care including
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index cd24eaf..e89e88d 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -352,4 +352,6 @@ extern struct thread_info* inferior_thread (void);
extern void update_thread_list (void);
+extern int currently_stepping (struct thread_info *tp);
+
#endif /* GDBTHREAD_H */
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index e983fe7..204bab5 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -1347,7 +1347,21 @@ stub_noname_complaint (void)
complaint (&symfile_complaints, _("stub type has NULL name"));
}
-/* Added by Bryan Boreham, Kewill, Sun Sep 17 18:07:17 1989.
+/* Find the real type of TYPE. This function returns the real type,
+ after removing all layers of typedefs, and completing opaque or stub
+ types. Completion changes the TYPE argument, but stripping of
+ typedefs does not.
+
+ Instance flags (e.g. const/volatile) are preserved as typedefs are
+ stripped. If necessary a new qualified form of the underlying type
+ is created.
+
+ NOTE: This will return a typedef if TYPE_TARGET_TYPE for the typedef has
+ not been computed and we're either in the middle of reading symbols, or
+ there was no name for the typedef in the debug info.
+
+ If TYPE is a TYPE_CODE_TYPEDEF, its length is updated to the length of
+ the target type.
If this is a stubbed struct (i.e. declared as struct foo *), see if
we can find a full definition in some other file. If so, copy this
@@ -1355,26 +1369,15 @@ stub_noname_complaint (void)
(but not any code) that if we don't find a full definition, we'd
set a flag so we don't spend time in the future checking the same
type. That would be a mistake, though--we might load in more
- symbols which contain a full definition for the type.
-
- This used to be coded as a macro, but I don't think it is called
- often enough to merit such treatment.
-
- Find the real type of TYPE. This function returns the real type,
- after removing all layers of typedefs and completing opaque or stub
- types. Completion changes the TYPE argument, but stripping of
- typedefs does not.
-
- If TYPE is a TYPE_CODE_TYPEDEF, its length is (also) set to the length of
- the target type instead of zero. However, in the case of TYPE_CODE_TYPEDEF
- check_typedef can still return different type than the original TYPE
- pointer. */
+ symbols which contain a full definition for the type. */
struct type *
check_typedef (struct type *type)
{
struct type *orig_type = type;
- int is_const, is_volatile;
+ /* While we're removing typedefs, we don't want to lose qualifiers.
+ E.g., const/volatile. */
+ int instance_flags = TYPE_INSTANCE_FLAGS (type);
gdb_assert (type);
@@ -1388,7 +1391,7 @@ check_typedef (struct type *type)
/* It is dangerous to call lookup_symbol if we are currently
reading a symtab. Infinite recursion is one danger. */
if (currently_reading_symtab)
- return type;
+ return make_qualified_type (type, instance_flags, NULL);
name = type_name_no_tag (type);
/* FIXME: shouldn't we separately check the TYPE_NAME and
@@ -1398,7 +1401,7 @@ check_typedef (struct type *type)
if (name == NULL)
{
stub_noname_complaint ();
- return type;
+ return make_qualified_type (type, instance_flags, NULL);
}
sym = lookup_symbol (name, 0, STRUCT_DOMAIN, 0);
if (sym)
@@ -1407,10 +1410,33 @@ check_typedef (struct type *type)
TYPE_TARGET_TYPE (type) = alloc_type_arch (get_type_arch (type));
}
type = TYPE_TARGET_TYPE (type);
- }
- is_const = TYPE_CONST (type);
- is_volatile = TYPE_VOLATILE (type);
+ /* Preserve the instance flags as we traverse down the typedef chain.
+
+ Handling address spaces/classes is nasty, what do we do if there's a
+ conflict?
+ E.g., what if an outer typedef marks the type as class_1 and an inner
+ typedef marks the type as class_2?
+ This is the wrong place to do such error checking. We leave it to
+ the code that created the typedef in the first place to flag the
+ error. We just pick the outer address space (akin to letting the
+ outer cast in a chain of casting win), instead of assuming
+ "it can't happen". */
+ {
+ const int ALL_SPACES = (TYPE_INSTANCE_FLAG_CODE_SPACE
+ | TYPE_INSTANCE_FLAG_DATA_SPACE);
+ const int ALL_CLASSES = TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL;
+ int new_instance_flags = TYPE_INSTANCE_FLAGS (type);
+
+ /* Treat code vs data spaces and address classes separately. */
+ if ((instance_flags & ALL_SPACES) != 0)
+ new_instance_flags &= ~ALL_SPACES;
+ if ((instance_flags & ALL_CLASSES) != 0)
+ new_instance_flags &= ~ALL_CLASSES;
+
+ instance_flags |= new_instance_flags;
+ }
+ }
/* If this is a struct/class/union with no fields, then check
whether a full definition exists somewhere else. This is for
@@ -1428,7 +1454,7 @@ check_typedef (struct type *type)
if (name == NULL)
{
stub_noname_complaint ();
- return type;
+ return make_qualified_type (type, instance_flags, NULL);
}
newtype = lookup_transparent_type (name);
@@ -1445,7 +1471,9 @@ check_typedef (struct type *type)
move over any other types NEWTYPE refers to, which could
be an unbounded amount of stuff. */
if (TYPE_OBJFILE (newtype) == TYPE_OBJFILE (type))
- make_cv_type (is_const, is_volatile, newtype, &type);
+ type = make_qualified_type (newtype,
+ TYPE_INSTANCE_FLAGS (type),
+ type);
else
type = newtype;
}
@@ -1464,17 +1492,18 @@ check_typedef (struct type *type)
if (name == NULL)
{
stub_noname_complaint ();
- return type;
+ return make_qualified_type (type, instance_flags, NULL);
}
sym = lookup_symbol (name, 0, STRUCT_DOMAIN, 0);
if (sym)
{
/* Same as above for opaque types, we can replace the stub
- with the complete type only if they are int the same
+ with the complete type only if they are in the same
objfile. */
if (TYPE_OBJFILE (SYMBOL_TYPE(sym)) == TYPE_OBJFILE (type))
- make_cv_type (is_const, is_volatile,
- SYMBOL_TYPE (sym), &type);
+ type = make_qualified_type (SYMBOL_TYPE (sym),
+ TYPE_INSTANCE_FLAGS (type),
+ type);
else
type = SYMBOL_TYPE (sym);
}
@@ -1534,8 +1563,12 @@ check_typedef (struct type *type)
TYPE_TARGET_STUB (type) = 0;
}
}
+
+ type = make_qualified_type (type, instance_flags, NULL);
+
/* Cache TYPE_LENGTH for future use. */
TYPE_LENGTH (orig_type) = TYPE_LENGTH (type);
+
return type;
}
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 87defcd..e4dac49 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -623,7 +623,14 @@ struct type
struct type *chain;
/* Flags specific to this instance of the type, indicating where
- on the ring we are. */
+ on the ring we are.
+
+ For TYPE_CODE_TYPEDEF the flags of the typedef type should be binary
+ or-ed with the target type, with a special case for address class and
+ space class. For example if this typedef does not specify any new
+ qualifiers, TYPE_INSTANCE_FLAGS is 0 and the instance flags are
+ completely inherited from the target type. No qualifiers can be cleared
+ by the typedef. See also check_typedef. */
int instance_flags;
/* Length of storage for a value of this type. This is what
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 0720b31..edd4a40 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -74,8 +74,6 @@ static int follow_fork (void);
static void set_schedlock_func (char *args, int from_tty,
struct cmd_list_element *c);
-static int currently_stepping (struct thread_info *tp);
-
static int currently_stepping_or_nexting_callback (struct thread_info *tp,
void *data);
@@ -835,8 +833,15 @@ follow_exec (ptid_t pid, char *execd_pathname)
/* That a.out is now the one to use. */
exec_file_attach (execd_pathname, 0);
- /* Load the main file's symbols. */
- symbol_file_add_main (execd_pathname, 0);
+ /* SYMFILE_DEFER_BP_RESET is used as the proper displacement for PIE
+ (Position Independent Executable) main symbol file will get applied by
+ solib_create_inferior_hook below. breakpoint_re_set would fail to insert
+ the breakpoints with the zero displacement. */
+
+ symbol_file_add (execd_pathname, SYMFILE_MAINLINE | SYMFILE_DEFER_BP_RESET,
+ NULL, 0);
+
+ set_initial_language ();
#ifdef SOLIB_CREATE_INFERIOR_HOOK
SOLIB_CREATE_INFERIOR_HOOK (PIDGET (inferior_ptid));
@@ -846,6 +851,8 @@ follow_exec (ptid_t pid, char *execd_pathname)
jit_inferior_created_hook ();
+ breakpoint_re_set ();
+
/* Reinsert all breakpoints. (Those which were symbolic have
been reset to the proper address in the new a.out, thanks
to symbol_file_command...) */
@@ -4842,7 +4849,7 @@ infrun: not switching back to stepped thread, it has vanished\n");
/* Is thread TP in the middle of single-stepping? */
-static int
+int
currently_stepping (struct thread_info *tp)
{
return ((tp->step_range_end && tp->step_resume_breakpoint == NULL)
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c
index 1819b50..0a2cc53 100644
--- a/gdb/jv-valprint.c
+++ b/gdb/jv-valprint.c
@@ -239,7 +239,8 @@ java_value_print (struct value *val, struct ui_file *stream,
value_free_to_mark (mark); /* Release unnecessary values */
char_type = builtin_java_type (gdbarch)->builtin_char;
- val_print_string (char_type, data + boffset, count, stream, options);
+ val_print_string (char_type, NULL, data + boffset, count, stream,
+ options);
return 0;
}
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 0e18034..f8de481 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -1820,20 +1820,26 @@ resume_callback (struct lwp_info *lp, void *data)
}
else if (lp->stopped && lp->status == 0)
{
+ struct thread_info *tp = find_thread_ptid (lp->ptid);
+ /* lp->step may already contain a stale value. */
+ int step = tp ? currently_stepping (tp) : 0;
+
if (debug_linux_nat)
fprintf_unfiltered (gdb_stdlog,
- "RC: PTRACE_CONT %s, 0, 0 (resuming sibling)\n",
+ "RC: %s %s, 0, 0 (resuming sibling)\n",
+ step ? "PTRACE_SINGLESTEP" : "PTRACE_CONT",
target_pid_to_str (lp->ptid));
linux_ops->to_resume (linux_ops,
pid_to_ptid (GET_LWP (lp->ptid)),
- 0, TARGET_SIGNAL_0);
+ step, TARGET_SIGNAL_0);
if (debug_linux_nat)
fprintf_unfiltered (gdb_stdlog,
- "RC: PTRACE_CONT %s, 0, 0 (resume sibling)\n",
+ "RC: %s %s, 0, 0 (resume sibling)\n",
+ step ? "PTRACE_SINGLESTEP" : "PTRACE_CONT",
target_pid_to_str (lp->ptid));
lp->stopped = 0;
- lp->step = 0;
+ lp->step = step;
memset (&lp->siginfo, 0, sizeof (lp->siginfo));
lp->stopped_by_watchpoint = 0;
}
diff --git a/gdb/m2-valprint.c b/gdb/m2-valprint.c
index e27ce8c..f826ca4 100644
--- a/gdb/m2-valprint.c
+++ b/gdb/m2-valprint.c
@@ -235,7 +235,7 @@ print_unpacked_pointer (struct type *type,
&& TYPE_CODE (elttype) == TYPE_CODE_INT
&& (options->format == 0 || options->format == 's')
&& addr != 0)
- return val_print_string (TYPE_TARGET_TYPE (type), addr, -1,
+ return val_print_string (TYPE_TARGET_TYPE (type), NULL, addr, -1,
stream, options);
return 0;
@@ -296,7 +296,7 @@ m2_print_array_contents (struct type *type, const gdb_byte *valaddr,
|| ((current_language->la_language == language_m2)
&& (TYPE_CODE (type) == TYPE_CODE_CHAR)))
&& (options->format == 0 || options->format == 's'))
- val_print_string (type, address, len+1, stream, options);
+ val_print_string (type, NULL, address, len+1, stream, options);
else
{
fprintf_filtered (stream, "{");
diff --git a/gdb/m32r-rom.c b/gdb/m32r-rom.c
index 1e4e698..5f0126b 100644
--- a/gdb/m32r-rom.c
+++ b/gdb/m32r-rom.c
@@ -188,7 +188,7 @@ m32r_load (char *filename, int from_tty)
the stack may not be valid, and things would get horribly
confused... */
- clear_symtab_users ();
+ clear_symtab_users (0);
}
static void
@@ -551,7 +551,7 @@ m32r_upload_command (char *args, int from_tty)
the stack may not be valid, and things would get horribly
confused... */
- clear_symtab_users ();
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-15 17:07 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-10-15 17:07 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via a96476131a8045900eb407d2cc1fc712bcded2bc (commit)
via 6bb53786952433bfcc34ac896a90a4f124c67811 (commit)
via 0aaf3f8de1d6f477f8fb8de936f6e41b3e5c2137 (commit)
via e5fa5c23990232005caabd89bcbf666f7f63c1b1 (commit)
via 1090218768a7bc994399067ece174bcfeae86741 (commit)
via a52d33ee62cfc9b117e0c34fc98021ca8c115491 (commit)
from d8d2c40696f0b959f9a997b05f10e92646ae6997 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit a96476131a8045900eb407d2cc1fc712bcded2bc
Merge: d8d2c40 6bb5378
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Oct 15 19:06:51 2010 +0200
Merge remote branch 'gdb/master'
commit 6bb53786952433bfcc34ac896a90a4f124c67811
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Oct 15 15:42:50 2010 +0000
* p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
commit 0aaf3f8de1d6f477f8fb8de936f6e41b3e5c2137
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 15 00:00:04 2010 +0000
*** empty log message ***
commit e5fa5c23990232005caabd89bcbf666f7f63c1b1
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Oct 14 23:16:19 2010 +0000
Remove CheckRegSize from movq.
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.tbl: Remove CheckRegSize from movq.
* i386-tbl.h: Regenerated.
commit 1090218768a7bc994399067ece174bcfeae86741
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Oct 14 23:00:05 2010 +0000
daily update
commit a52d33ee62cfc9b117e0c34fc98021ca8c115491
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Oct 14 21:37:30 2010 +0000
Remove CheckRegSize from instructions with 0, 1 or fixed operands.
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.tbl: Remove CheckRegSize from instructions with
0, 1 or fixed operands.
* i386-tbl.h: Regenerated.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 4 +++
gdb/p-lang.c | 20 +++++++-------
gdb/version.in | 2 +-
opcodes/ChangeLog | 11 +++++++
opcodes/i386-opc.tbl | 72 +++++++++++++++++++++++++-------------------------
opcodes/i386-tbl.h | 72 +++++++++++++++++++++++++-------------------------
7 files changed, 99 insertions(+), 84 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 39625fd..772627e 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101014
+#define BFD_VERSION_DATE 20101015
#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 f66c343..bcfe2b7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
+
2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
* gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
diff --git a/gdb/p-lang.c b/gdb/p-lang.c
index 232ce56..444fb66 100644
--- a/gdb/p-lang.c
+++ b/gdb/p-lang.c
@@ -106,10 +106,10 @@ is_pascal_string_type (struct type *type,int *length_pos,
/* Old Borland type pascal strings from Free Pascal Compiler. */
/* Two fields: length and st. */
if (TYPE_NFIELDS (type) == 2
- && TYPE_FIELDS (type) [0].name
- && strcmp (TYPE_FIELDS (type)[0].name, "length") == 0
- && TYPE_FIELDS (type) [1].name
- && strcmp (TYPE_FIELDS (type)[1].name, "st") == 0)
+ && TYPE_FIELD_NAME (type, 0)
+ && strcmp (TYPE_FIELD_NAME (type, 0), "length") == 0
+ && TYPE_FIELD_NAME (type, 1)
+ && strcmp (TYPE_FIELD_NAME (type, 1), "st") == 0)
{
if (length_pos)
*length_pos = TYPE_FIELD_BITPOS (type, 0) / TARGET_CHAR_BIT;
@@ -120,16 +120,16 @@ is_pascal_string_type (struct type *type,int *length_pos,
if (char_type)
*char_type = TYPE_TARGET_TYPE (TYPE_FIELD_TYPE (type, 1));
if (arrayname)
- *arrayname = TYPE_FIELDS (type)[1].name;
+ *arrayname = TYPE_FIELD_NAME (type, 1);
return 2;
};
/* GNU pascal strings. */
/* Three fields: Capacity, length and schema$ or _p_schema. */
if (TYPE_NFIELDS (type) == 3
- && TYPE_FIELDS (type) [0].name
- && strcmp (TYPE_FIELDS (type)[0].name, "Capacity") == 0
- && TYPE_FIELDS (type) [1].name
- && strcmp (TYPE_FIELDS (type)[1].name, "length") == 0)
+ && TYPE_FIELD_NAME (type, 0)
+ && strcmp (TYPE_FIELD_NAME (type, 0), "Capacity") == 0
+ && TYPE_FIELD_NAME (type, 1)
+ && strcmp (TYPE_FIELD_NAME (type, 1), "length") == 0)
{
if (length_pos)
*length_pos = TYPE_FIELD_BITPOS (type, 1) / TARGET_CHAR_BIT;
@@ -146,7 +146,7 @@ is_pascal_string_type (struct type *type,int *length_pos,
*char_type = TYPE_TARGET_TYPE (*char_type);
}
if (arrayname)
- *arrayname = TYPE_FIELDS (type)[2].name;
+ *arrayname = TYPE_FIELD_NAME (type, 2);
return 3;
};
}
diff --git a/gdb/version.in b/gdb/version.in
index 0759e6f..b73cfc2 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.50.20101014-cvs
+7.2.50.20101015-cvs
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index d8f2597..668eeb7 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,16 @@
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
+ * i386-opc.tbl: Remove CheckRegSize from movq.
+ * i386-tbl.h: Regenerated.
+
+2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i386-opc.tbl: Remove CheckRegSize from instructions with
+ 0, 1 or fixed operands.
+ * i386-tbl.h: Regenerated.
+
+2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
+
* i386-gen.c (opcode_modifiers): Add CheckRegSize.
* i386-opc.h (CheckRegSize): New.
diff --git a/opcodes/i386-opc.tbl b/opcodes/i386-opc.tbl
index b171cb7..f63919e 100644
--- a/opcodes/i386-opc.tbl
+++ b/opcodes/i386-opc.tbl
@@ -29,7 +29,7 @@ mov, 2, 0x88, None, 1, 0, D|W|CheckRegSize|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|
// 64bit value.
mov, 2, 0xb0, None, 1, 0, W|CheckRegSize|ShortForm|No_sSuf|No_qSuf|No_ldSuf, { Imm8|Imm16|Imm32|Imm32S, Reg8|Reg16|Reg32 }
mov, 2, 0xc6, 0x0, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf, { Imm8|Imm16|Imm32|Imm32S, Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
-mov, 2, 0xb0, None, 1, Cpu64, W|CheckRegSize|ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf, { Imm64, Reg64 }
+mov, 2, 0xb0, None, 1, Cpu64, W|ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf, { Imm64, Reg64 }
// The segment register moves accept WordReg so that a segment register
// can be copied to a 32 bit register, and vice versa, without using a
// size prefix. When moving to a 32 bit register, the upper 16 bits
@@ -51,7 +51,7 @@ mov, 2, 0xf21, None, 2, Cpu386|CpuNo64, D|Modrm|IgnoreSize|No_bSuf|No_wSuf|No_sS
mov, 2, 0xf21, None, 2, Cpu64, D|Modrm|IgnoreSize|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|NoRex64, { Debug, Reg64|RegMem }
mov, 2, 0xf24, None, 2, Cpu386|CpuNo64, D|Modrm|IgnoreSize|No_bSuf|No_wSuf|No_sSuf|No_qSuf|No_ldSuf, { Test, Reg32|RegMem }
movabs, 2, 0xa0, None, 1, Cpu64, D|W|CheckRegSize|No_sSuf|No_ldSuf, { Disp64|Unspecified|Byte|Word|Dword|Qword, Acc|Byte|Word|Dword|Qword }
-movabs, 2, 0xb0, None, 1, Cpu64, W|CheckRegSize|ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf, { Imm64, Reg64 }
+movabs, 2, 0xb0, None, 1, Cpu64, W|ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf, { Imm64, Reg64 }
// Move after swapping the bytes
movbe, 2, 0x0f38f0, None, 3, CpuMovbe, Modrm|No_bSuf|No_sSuf|No_ldSuf, { Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg16|Reg32|Reg64 }
@@ -134,12 +134,12 @@ xchg, 2, 0x86, None, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { R
// In/out from ports.
in, 2, 0xe4, None, 1, 0, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf, { Imm8, Acc|Byte|Word|Dword }
in, 2, 0xec, None, 1, 0, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf, { InOutPortReg, Acc|Byte|Word|Dword }
-in, 1, 0xe4, None, 1, 0, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf, { Imm8 }
-in, 1, 0xec, None, 1, 0, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf, { InOutPortReg }
+in, 1, 0xe4, None, 1, 0, W|No_sSuf|No_qSuf|No_ldSuf, { Imm8 }
+in, 1, 0xec, None, 1, 0, W|No_sSuf|No_qSuf|No_ldSuf, { InOutPortReg }
out, 2, 0xe6, None, 1, 0, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf, { Acc|Byte|Word|Dword, Imm8 }
out, 2, 0xee, None, 1, 0, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf, { Acc|Byte|Word|Dword, InOutPortReg }
-out, 1, 0xe6, None, 1, 0, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf, { Imm8 }
-out, 1, 0xee, None, 1, 0, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf, { InOutPortReg }
+out, 1, 0xe6, None, 1, 0, W|No_sSuf|No_qSuf|No_ldSuf, { Imm8 }
+out, 1, 0xee, None, 1, 0, W|No_sSuf|No_qSuf|No_ldSuf, { InOutPortReg }
// Load effective address.
lea, 2, 0x8d, None, 1, 0, Modrm|No_bSuf|No_sSuf|No_ldSuf, { Anysize|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg16|Reg32|Reg64 }
@@ -174,7 +174,7 @@ add, 2, 0x4, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf, { Imm8|Imm16|Imm32|Imm
add, 2, 0x80, 0x0, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Imm8|Imm16|Imm32|Imm32S, Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
inc, 1, 0x40, None, 1, CpuNo64, ShortForm|No_bSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg16|Reg32 }
-inc, 1, 0xfe, 0x0, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+inc, 1, 0xfe, 0x0, 1, 0, W|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
sub, 2, 0x28, None, 1, 0, D|W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64, Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
sub, 2, 0x83, 0x5, 1, 0, Modrm|No_bSuf|No_sSuf|No_ldSuf|IsLockable, { Imm8S, Reg16|Reg32|Reg64|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
@@ -182,7 +182,7 @@ sub, 2, 0x2c, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf, { Imm8|Imm16|Imm32|Im
sub, 2, 0x80, 0x5, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Imm8|Imm16|Imm32|Imm32S, Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
dec, 1, 0x48, None, 1, CpuNo64, ShortForm|No_bSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg16|Reg32 }
-dec, 1, 0xfe, 0x1, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+dec, 1, 0xfe, 0x1, 1, 0, W|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
sbb, 2, 0x18, None, 1, 0, D|W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64, Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
sbb, 2, 0x83, 0x3, 1, 0, Modrm|No_bSuf|No_sSuf|No_ldSuf|IsLockable, { Imm8S, Reg16|Reg32|Reg64|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
@@ -215,15 +215,15 @@ xor, 2, 0x34, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf, { Imm8|Imm16|Imm32|Im
xor, 2, 0x80, 0x6, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Imm8|Imm16|Imm32|Imm32S, Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
// clr with 1 operand is really xor with 2 operands.
-clr, 1, 0x30, None, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|RegKludge, { Reg8|Reg16|Reg32|Reg64 }
+clr, 1, 0x30, None, 1, 0, W|Modrm|No_sSuf|No_ldSuf|RegKludge, { Reg8|Reg16|Reg32|Reg64 }
adc, 2, 0x10, None, 1, 0, D|W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64, Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
adc, 2, 0x83, 0x2, 1, 0, Modrm|No_bSuf|No_sSuf|No_ldSuf|IsLockable, { Imm8S, Reg16|Reg32|Reg64|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
adc, 2, 0x14, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf, { Imm8|Imm16|Imm32|Imm32S, Acc|Byte|Word|Dword|Qword }
adc, 2, 0x80, 0x2, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Imm8|Imm16|Imm32|Imm32S, Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
-neg, 1, 0xf6, 0x3, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
-not, 1, 0xf6, 0x2, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+neg, 1, 0xf6, 0x3, 1, 0, W|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+not, 1, 0xf6, 0x2, 1, 0, W|Modrm|No_sSuf|No_ldSuf|IsLockable, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
aaa, 0, 0x37, None, 1, CpuNo64, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { 0 }
aas, 0, 0x3f, None, 1, CpuNo64, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { 0 }
@@ -254,8 +254,8 @@ cqto, 0, 0x99, None, 1, Cpu64, Size64|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No
// expanding 64-bit multiplies, and *cannot* be selected to accomplish
// 'imul %ebx, %eax' (opcode 0x0faf must be used in this case)
// These multiplies can only be selected with single operand forms.
-mul, 1, 0xf6, 0x4, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
-imul, 1, 0xf6, 0x5, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+mul, 1, 0xf6, 0x4, 1, 0, W|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+imul, 1, 0xf6, 0x5, 1, 0, W|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
imul, 2, 0xfaf, None, 2, Cpu386, Modrm|CheckRegSize|No_bSuf|No_sSuf|No_ldSuf, { Reg16|Reg32|Reg64|Unspecified|Word|Dword|Qword|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg16|Reg32|Reg64 }
imul, 3, 0x6b, None, 1, Cpu186, Modrm|CheckRegSize|No_bSuf|No_sSuf|No_ldSuf, { Imm8S, Reg16|Reg32|Reg64|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg16|Reg32|Reg64 }
imul, 3, 0x69, None, 1, Cpu186, Modrm|CheckRegSize|No_bSuf|No_sSuf|No_ldSuf, { Imm16|Imm32|Imm32S, Reg16|Reg32|Reg64|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg16|Reg32|Reg64 }
@@ -265,9 +265,9 @@ imul, 3, 0x69, None, 1, Cpu186, Modrm|CheckRegSize|No_bSuf|No_sSuf|No_ldSuf, { I
imul, 2, 0x6b, None, 1, Cpu186, Modrm|No_bSuf|No_sSuf|No_ldSuf|RegKludge, { Imm8S, Reg16|Reg32|Reg64 }
imul, 2, 0x69, None, 1, Cpu186, Modrm|No_bSuf|No_sSuf|No_ldSuf|RegKludge, { Imm16|Imm32|Imm32S, Reg16|Reg32|Reg64 }
-div, 1, 0xf6, 0x6, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+div, 1, 0xf6, 0x6, 1, 0, W|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
div, 2, 0xf6, 0x6, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Acc|Byte|Word|Dword|Qword }
-idiv, 1, 0xf6, 0x7, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+idiv, 1, 0xf6, 0x7, 1, 0, W|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
idiv, 2, 0xf6, 0x7, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf, { Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Acc|Byte|Word|Dword|Qword }
rol, 2, 0xd0, 0x0, 1, 0, W|CheckRegSize|Modrm|No_sSuf|No_ldSuf, { Imm1, Reg8|Reg16|Reg32|Reg64|Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
@@ -441,35 +441,35 @@ setnle, 1, 0xf9f, 0x0, 2, Cpu386, Modrm|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf
setg, 1, 0xf9f, 0x0, 2, Cpu386, Modrm|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg8|Byte|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
// String manipulation.
-cmps, 0, 0xa6, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
+cmps, 0, 0xa6, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
cmps, 2, 0xa6, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg, Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
-scmp, 0, 0xa6, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
+scmp, 0, 0xa6, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
scmp, 2, 0xa6, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg, Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
-ins, 0, 0x6c, None, 1, Cpu186, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf|IsString, { 0 }
+ins, 0, 0x6c, None, 1, Cpu186, W|No_sSuf|No_qSuf|No_ldSuf|IsString, { 0 }
ins, 2, 0x6c, None, 1, Cpu186, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf|IsString, { InOutPortReg, Byte|Word|Dword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
-outs, 0, 0x6e, None, 1, Cpu186, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf|IsString, { 0 }
+outs, 0, 0x6e, None, 1, Cpu186, W|No_sSuf|No_qSuf|No_ldSuf|IsString, { 0 }
outs, 2, 0x6e, None, 1, Cpu186, W|CheckRegSize|No_sSuf|No_qSuf|No_ldSuf|IsString, { Byte|Word|Dword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, InOutPortReg }
-lods, 0, 0xac, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
-lods, 1, 0xac, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+lods, 0, 0xac, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
+lods, 1, 0xac, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
lods, 2, 0xac, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Acc|Byte|Word|Dword|Qword }
-slod, 0, 0xac, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
-slod, 1, 0xac, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
+slod, 0, 0xac, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
+slod, 1, 0xac, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
slod, 2, 0xac, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Acc|Byte|Word|Dword|Qword }
-movs, 0, 0xa4, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
+movs, 0, 0xa4, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
movs, 2, 0xa4, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
-smov, 0, 0xa4, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
+smov, 0, 0xa4, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
smov, 2, 0xa4, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S, Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
-scas, 0, 0xae, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
-scas, 1, 0xae, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
+scas, 0, 0xae, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
+scas, 1, 0xae, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
scas, 2, 0xae, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg, Acc|Byte|Word|Dword|Qword }
-ssca, 0, 0xae, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
-ssca, 1, 0xae, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
+ssca, 0, 0xae, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
+ssca, 1, 0xae, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
ssca, 2, 0xae, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg, Acc|Byte|Word|Dword|Qword }
-stos, 0, 0xaa, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
-stos, 1, 0xaa, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
+stos, 0, 0xaa, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
+stos, 1, 0xaa, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
stos, 2, 0xaa, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Acc|Byte|Word|Dword|Qword, Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
-ssto, 0, 0xaa, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { 0 }
-ssto, 1, 0xaa, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
+ssto, 0, 0xaa, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { 0 }
+ssto, 1, 0xaa, None, 1, 0, W|No_sSuf|No_ldSuf|IsString, { Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
ssto, 2, 0xaa, None, 1, 0, W|CheckRegSize|No_sSuf|No_ldSuf|IsString, { Acc|Byte|Word|Dword|Qword, Byte|Word|Dword|Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|EsSeg }
xlat, 0, 0xd7, None, 1, 0, No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|IsString, { 0 }
xlat, 1, 0xd7, None, 1, 0, No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|IsString, { Byte|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S }
@@ -956,9 +956,9 @@ movd, 2, 0xf7e, None, 2, CpuMMX|Cpu64, Modrm|IgnoreSize|No_bSuf|No_wSuf|No_lSuf|
// 64bit displacement value. We put the 64bit displacement first and
// we only mark constants larger than 32bit as Disp64.
movq, 2, 0xa0, None, 1, Cpu64, D|W|CheckRegSize|Size64|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Disp64|Unspecified|Qword, Acc|Qword }
-movq, 2, 0x88, None, 1, Cpu64, D|W|CheckRegSize|Modrm|Size64|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg64, Reg64|Unspecified|Qword|BaseIndex|Disp8|Disp32|Disp32S }
-movq, 2, 0xc6, 0x0, 1, Cpu64, W|CheckRegSize|Modrm|Size64|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Imm32S, Reg64|Qword|Unspecified|BaseIndex|Disp8|Disp32|Disp32S }
-movq, 2, 0xb0, None, 1, Cpu64, W|CheckRegSize|ShortForm|Size64|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Imm64, Reg64 }
+movq, 2, 0x88, None, 1, Cpu64, D|W|Modrm|Size64|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Reg64, Reg64|Unspecified|Qword|BaseIndex|Disp8|Disp32|Disp32S }
+movq, 2, 0xc6, 0x0, 1, Cpu64, W|Modrm|Size64|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Imm32S, Reg64|Qword|Unspecified|BaseIndex|Disp8|Disp32|Disp32S }
+movq, 2, 0xb0, None, 1, Cpu64, W|ShortForm|Size64|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { Imm64, Reg64 }
movq, 2, 0xf37e, None, 1, CpuAVX, S|Modrm|Vex=3|VexOpcode=0|VexW=1|IgnoreSize|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|NoRex64|SSE2AVX, { Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|RegXMM, RegXMM }
movq, 2, 0x66d6, None, 1, CpuAVX, Modrm|Vex=3|VexOpcode=0|VexW=1|IgnoreSize|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|NoRex64|SSE2AVX, { RegXMM, Qword|Unspecified|BaseIndex|Disp8|Disp16|Disp32|Disp32S|RegXMM }
movq, 2, 0x666e, None, 1, CpuAVX|Cpu64, Modrm|Vex=3|VexOpcode=0|IgnoreSize|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|SSE2AVX, { Reg64|Qword|Unspecified|BaseIndex|Disp8|Disp32|Disp32S, RegXMM }
diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h
index bf6787f..5c4e7e8 100644
--- a/opcodes/i386-tbl.h
+++ b/opcodes/i386-tbl.h
@@ -92,7 +92,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0, 0 } },
- { 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1,
+ { 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
@@ -287,7 +287,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0, 0 } },
- { 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1,
+ { 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
@@ -903,7 +903,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
@@ -913,7 +913,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -949,7 +949,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
@@ -959,7 +959,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1249,7 +1249,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1321,7 +1321,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1643,7 +1643,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1705,7 +1705,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1715,7 +1715,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1925,7 +1925,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1935,7 +1935,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -2016,7 +2016,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -2039,7 +2039,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3572,7 +3572,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3595,7 +3595,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3618,7 +3618,7 @@ const insn_template i386_optab[] =
{ { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3641,7 +3641,7 @@ const insn_template i386_optab[] =
{ { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3664,7 +3664,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3674,7 +3674,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3697,7 +3697,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3707,7 +3707,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3730,7 +3730,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3753,7 +3753,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
+ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -3776,7 +3776,7 @@ const insn_template i386_optab[] =
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 } },
- { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-14 20:55 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-10-14 20:55 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via d8d2c40696f0b959f9a997b05f10e92646ae6997 (commit)
via c619812c381908704dd4d385be9a7f74d2b6e49a (commit)
via 0dec04cd391afbd7848a83092d1fbfc5dfbdb0e1 (commit)
via 715c8705f637e8505d601c1ccf86fc3e00d58c95 (commit)
via c0dab19a92624ea7778c8c10a46acf2e7fa5b0a7 (commit)
via 18adfa0ebdbcf5bc5b83209a72c1bd7c112b1193 (commit)
via 8be50900be59aee3d98bfd3739efc43879ecf59d (commit)
via cee21f54f10cbc59edd243eead62003426680657 (commit)
via 1f66ce293dcf912e856512ab042685442cb1a604 (commit)
via ba4425ae906ea625835613f9152d5f0e8d4f6208 (commit)
from 6cf47741faf811d7816dd54cf838e256e32d29b9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit d8d2c40696f0b959f9a997b05f10e92646ae6997
Merge: 6cf4774 c619812
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Oct 14 22:55:38 2010 +0200
Merge remote branch 'gdb/master'
commit c619812c381908704dd4d385be9a7f74d2b6e49a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Oct 14 18:45:09 2010 +0000
Add CheckRegSize to instructions which require register size check.
gas/
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (match_template): Check checkregsize
instead of w for register size check.
gas/testsuite/
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run inval-reg.
* gas/i386/inval-reg.l: New.
* gas/i386/inval-reg.s: Likewise.
opcodes/
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (opcode_modifiers): Add CheckRegSize.
* i386-opc.h (CheckRegSize): New.
(i386_opcode_modifier): Add checkregsize.
* i386-opc.tbl: Add CheckRegSize to instructions which
require register size check.
* i386-tbl.h: Regenerated.
commit 0dec04cd391afbd7848a83092d1fbfc5dfbdb0e1
Author: swagiaal <swagiaal>
Date: Thu Oct 14 16:13:35 2010 +0000
Fixed void* vs int* overload issue (PR C++/10343).
2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
* gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
* gdbtypes.c (rank_one_type): Move type comparison code out of here
to...
(types_equal): ...here. And changed it as follows:
Outside of typedefs type must be of the same TYPE_CODE.
When compairing two pointers or references they are equal if their
targets are equal.
Correct pointer conversions.
2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/converts.cc: New test program.
* gdb.cp/converts.exp: New test.
* gdb.cp/overload.exp: Added test for void* vs int*.
* gdb.cp/overload.exp: Ditto.
* gdb.cp/oranking.exp: Removed related kfail.
commit 715c8705f637e8505d601c1ccf86fc3e00d58c95
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Oct 14 15:18:53 2010 +0000
* p-lang.c (is_pascal_string_type): Avoid crashes on structures
having fields without names.
commit c0dab19a92624ea7778c8c10a46acf2e7fa5b0a7
Author: Dave Korn <dave.korn@artimi.com>
Date: Thu Oct 14 01:31:25 2010 +0000
Applied patch series for LD plugin interface (six parts).
[PATCH] Add infrastructure for plugin API; functionality to follow.
include/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 1/6).
* plugin-api.h (LDPT_GNU_LD_VERSION): New ld_plugin_tag enum member.
ld/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 1/6).
* configure.in: Add AC_CHECKs for file io and dlfcn headers and
functions and AC_SEARCH for -ldl.
(enable_plugins): New shell variable set if above tests find dlopen
functionality.
(ENABLE_PLUGINS): Add related automake conditional.
* configure: Regenerate.
* config.in: Likewise.
* Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
on ENABLE_PLUGINS being defined.
(PLUGIN_H): Likewise for header file.
(PLUGIN_OBJECT): Likewise for object file.
(PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
(AM_CPPFLAGS): Use PLUGIN_CFLAGS.
(CFILES): Use PLUGIN_C.
(HFILES): Use PLUGIN_H.
(OFILES): Use PLUGIN_OBJECT.
(ld_new_SOURCES): Use PLUGIN_C.
(noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
(libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
for test plugin.
(libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
(libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
* Makefile.in: Regenerate.
* sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
(O_RDONLY): Supply default definition likewise to bfd's sysdep.h
(O_WRONLY): Likewise.
(O_RDWR): Likewise.
(O_ACCMODE): Likewise.
(O_BINARY): Likewise.
(SEEK_SET): Likewise.
(SEEK_CUR): Likewise.
(SEEK_END): Likewise.
* ldmisc.c (vfinfo): Make non-static. Add %p format char.
* ldmisc.h (vfinfo): Declare extern prototype.
* lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
OPTION_PLUGIN and OPTION_PLUGIN_OPT.
(ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
(parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
option parsing is complete.
* ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
after lang_finish.
* plugin.c: New source file.
* plugin.h: Likewise new header.
* testplug.c: New source file.
ld/testsuite/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 1/6).
* ld-bootstrap/bootstrap.exp: Skip static tests also if LD plugins
are enabled.
* lib/ld-lib.exp (proc regexp_diff): Extend verbose debug output.
(proc set_file_contents): Write a file with the supplied content.
(run_ld_link_tests): Add new 'ld' action to test linker output.
(proc check_plugin_api_available): Return true if linker under test
supports the plugin API.
* ld-plugin/func.c: New test source file.
* ld-plugin/main.c: Likewise.
* ld-plugin/text.c: Likewise.
* ld-plugin/plugin-1.d: New dump test output pattern script.
* ld-plugin/plugin-2.d: Likewise.
* ld-plugin/plugin-3.d: Likewise.
* ld-plugin/plugin-4.d: Likewise.
* ld-plugin/plugin-5.d: Likewise.
* ld-plugin/plugin.exp: New test control script.
---
[PATCH] Implement claim file and all symbols read hooks and add symbols callback.
ld/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 2/6).
* ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
during compat checks if they pass, instead offer any successfully
opened and accepted file to the plugin claim file hooks chain. Create
a dummy bfd to accept symbols added by the plugin, if the plugin
claims the file.
* ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
read hook chain before ldemul_after_open.
* ldlang.h (struct lang_input_statement_struct): Add new single-bit
'claimed' flag.
* plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
(IRONLY_SUFFIX_LEN): Length of the above string.
(plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
to store symbols for ir-only files.
(is_ir_dummy_bfd): New function to check if a bfd is ir-only.
(asymbol_from_plugin_symbol): New function converts symbol formats.
(add_symbols): Call it to convert plugin syms to bfd syms and add
them to the dummy bfd.
* plugin.h: Add missing include guards.
(plugin_get_ir_dummy_bfd): Add prototype.
(is_ir_dummy_bfd): Likewise.
* testplug.c (TV_MESSAGE): New helper macro.
(struct claim_file): New struct.
(claim_file_t): New typedef.
(tag_names[]): Make static and const.
(claimfiles_list): New variable.
(claimfiles_tail_chain_ptr): Likewise.
(last_claimfile): Likewise.
(record_claim_file): Record a file to claim on a singly-linked list.
(parse_symdefstr): Parse an ASCII representation of a symbol from a
plugin option into the fields of a struct ld_plugin_symbol.
(record_claimed_file_symbol): Use it to parse plugin option for
adding a symbol.
(parse_option): Parse claim file and add symbol options.
(dump_tv_tag): Use TV_MESSAGE.
(onload): Likewise.
(onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
claim and claim this file if required, adding any symbols specified.
(onall_symbols_read): Make static and use TV_MESSAGE.
(oncleanup): Likewise.
ld/testsuite/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 2/6).
* ld-plugin/plugin-3.d: Enable regexes for new functionality.
* ld-plugin/plugin-5.d: Likewise.
* ld-plugin/plugin-6.d: New testcase.
* ld-plugin/plugin-7.d: Likewise.
* ld-plugin/plugin.exp: Use 'nm' on compiled test objects to determine
whether symbols in plugin arguments need an underscore prefix. Add
new plugin-6.d and plugin-7.d testcases.
---
[PATCH] Implement get symbols callback.
ld/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 3/6).
* ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
* plugin.c (non_ironly_hash): Add new bfd hash table.
(plugin_load_plugins): Exit early if no plugins to load. If plugins
do load successfully, set notice_all flag in link info.
(get_symbols): Implement.
(plugin_load_plugins): Exit early if no plugins to load, else after
loading plugins successfully enable notice_all mode.
(init_non_ironly_hash): Lazily init non_ironly_hash table.
(plugin_notice): Record symbols referenced from non-IR files in the
non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
tracking for symbols from dummy IR bfds.
* plugin.h: Fix formatting.
(plugin_notice): Add prototype.
* testplug.c (dumpresolutions): New global var.
(parse_options): Accept "dumpresolutions".
(onall_symbols_read): Get syms and dump resolutions if it was given.
ld/testsuite/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 3/6).
* ld-plugin/plugin-8.d: New testcase.
* ld-plugin/plugin.exp: Invoke it.
---
[PATCH] Implement add input file, add input lib and set extra lib path callbacks.
ld/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 4/6).
* ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
plugin_call_all_symbols_read to before setting of gc_sym_list, and
open any new input files that may have been added during it.
* ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
plugin_multiple_definition and let it have first say over what to do
with the clashing definitions.
* plugin.c (no_more_claiming): New boolean variable.
(plugin_cached_allow_multiple_defs): Likewise.
(add_input_file): Implement.
(add_input_library): Likewise.
(set_extra_library_path): Likewise.
(plugin_call_claim_file): Don't do anything when no_more_claiming set.
(plugin_call_all_symbols_read): Set it. Disable link info
"allow_multiple_definition" flag, but cache its value.
(plugin_multiple_definition): New function.
* plugin.h (plugin_multiple_definition): Add prototype.
* testplug.c (addfile_enum_t): New enumerated typedef.
(add_file_t): New struct typedef.
(addfiles_list): New variable.
(addfiles_tail_chain_ptr): Likewise.
(record_add_file): New function.
(parse_option): Parse "add:", "lib:" and "dir:" options and call it.
(onall_symbols_read): Iterate the list of new files, libs and dirs,
adding them.
ld/testsuite/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 4/6).
* ld-plugin/plugin-9.d: New testcase.
* ld-plugin/plugin.exp: Invoke it.
---
[PATCH] Add ELF symbol visibility support to plugin interface.
ld/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 5/6).
* plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
find the elf symbol data and set the visibility in the st_other field.
ld/testsuite/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 5/6).
* ld-plugin/plugin-ignore.d: New dump test control script.
* ld-plugin/plugin-vis-1.d: Likewise.
* ld-plugin/plugin.exp: Add list of ELF-only tests and run them if
testing on an ELF target.
---
[PATCH] Add archive support to plugin interface.
bfd/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 6/6).
* aoutx.h (aout_link_check_ar_symbols): Take new "subsbfd" reference
parameter and pass it when invoking add_archive_element callback.
(aout_link_check_archive_element): Handle substitute bfd if it
was set during add_archive_element callback in the above.
* cofflink.c (coff_link_check_ar_symbols): Take new "subsbfd" reference
parameter and pass it when invoking add_archive_element callback.
(coff_link_check_archive_element): Handle substitute bfd if it
was set during add_archive_element callback in the above.
* ecoff.c (read_ext_syms_and_strs): New function holds symbol-reading
code factored-out from ecoff_link_check_archive_element.
(reread_ext_syms_and_strs): Clear old symbols and call it.
(ecoff_link_check_archive_element): Use the above. Handle substitute
BFD if one is set by add_archive_element callback.
(ecoff_link_add_archive_symbols): Likewise allow bfd substitution.
* elflink.c (elf_link_add_archive_symbols): Likewise.
* linker.c (generic_link_check_archive_element): Likewise.
* pdp11.c (aout_link_check_ar_symbols): Take new "subsbfd" reference
parameter and pass it when invoking add_archive_element callback.
(aout_link_check_archive_element): Handle substitute bfd if it was
set during add_archive_element callback in the above.
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Handle substitute
BFD if one is set by add_archive_element callback.
* xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Take new "subsbfd"
reference parameter and pass it when invoking add_archive_element
callback.
(xcoff_link_check_ar_symbols): Likewise.
(xcoff_link_check_archive_element): Handle bfd substitution if it was
set by callback in the above.
include/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 6/6).
* bfdlink.h (struct_bfd_link_callbacks): Document new argument
to add_archive_element callback used to return a replacement bfd which
is to be added to the hash table in place of the original element.
ld/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 6/6).
* ldlang.c (load_symbols): Handle bfd subsitution when calling the
add_archive_element callback.
* ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
member to the plugins and if claimed set "subsbfd" output parameter to
point to the dummy IR-only BFD.
ld/testsuite/ChangeLog:
2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
Apply LD plugin patch series (part 6/6).
* ld-plugin/plugin-10.d: New dump test control script.
* ld-plugin/plugin-11.d: Likewise.
* ld-plugin/plugin.exp: Run them.
---
commit 18adfa0ebdbcf5bc5b83209a72c1bd7c112b1193
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Oct 14 00:00:02 2010 +0000
*** empty log message ***
commit 8be50900be59aee3d98bfd3739efc43879ecf59d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Oct 13 23:00:05 2010 +0000
daily update
commit cee21f54f10cbc59edd243eead62003426680657
Author: Doug Evans <dje@google.com>
Date: Wed Oct 13 20:08:39 2010 +0000
New python module gdb.types.
* NEWS: Document it.
* data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
* python/lib/gdb/types.py: New file.
testsuite/
* lib/gdb-python.exp (gdb_check_python_config): New function.
* gdb.python/Makefile.in (EXECUTABLES): Add lib-types.
* gdb.python/lib-types.cc: New file.
* gdb.python/lib-types.exp: New file.
doc/
* gdb.texinfo (Python): Add "Python modules".
(Types in Python): Add reference to gdb.types section.
(Python modules): New node.
commit 1f66ce293dcf912e856512ab042685442cb1a604
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Oct 13 17:38:05 2010 +0000
* language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
commit ba4425ae906ea625835613f9152d5f0e8d4f6208
Author: Doug Evans <dje@google.com>
Date: Wed Oct 13 15:10:07 2010 +0000
* c-typeprint.c: Whitespace cleanup.
(cp_type_print_method_args): Remove unnecessary forward decl.
(cp_type_print_derivation_info): Ditto.
(c_type_print_varspec_prefix): Mark as static at definition.
(c_type_print_modifier): Fix arg descriptions.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 32 +
bfd/aoutx.h | 24 +-
bfd/cofflink.c | 19 +-
bfd/ecoff.c | 101 +-
bfd/elflink.c | 9 +-
bfd/linker.c | 41 +-
bfd/pdp11.c | 18 +-
bfd/version.h | 2 +-
bfd/vms-alpha.c | 11 +-
bfd/xcofflink.c | 23 +-
gdb/ChangeLog | 33 +
gdb/NEWS | 4 +
gdb/c-typeprint.c | 20 +-
gdb/data-directory/Makefile.in | 3 +-
gdb/doc/ChangeLog | 6 +
gdb/doc/gdb.texinfo | 54 +
gdb/gdbtypes.c | 94 +-
gdb/gdbtypes.h | 3 +
gdb/language.h | 2 +-
gdb/p-lang.c | 6 +-
gdb/python/lib/gdb/types.py | 91 +
gdb/testsuite/ChangeLog | 15 +
gdb/testsuite/gdb.cp/converts.cc | 53 +
gdb/testsuite/gdb.cp/converts.exp | 48 +
gdb/testsuite/gdb.cp/oranking.exp | 1 -
gdb/testsuite/gdb.cp/overload.cc | 7 +
gdb/testsuite/gdb.cp/overload.exp | 10 +
gdb/testsuite/gdb.python/Makefile.in | 2 +-
gdb/testsuite/gdb.python/lib-types.cc | 61 +
gdb/testsuite/gdb.python/lib-types.exp | 143 +
gdb/testsuite/lib/gdb-python.exp | 18 +
gdb/version.in | 2 +-
include/ChangeLog | 12 +
include/bfdlink.h | 6 +-
include/plugin-api.h | 3 +-
opcodes/ChangeLog | 11 +
opcodes/i386-gen.c | 1 +
opcodes/i386-opc.h | 3 +
opcodes/i386-opc.tbl | 368 +-
opcodes/i386-tbl.h |14834 ++++++++++++++++----------------
40 files changed, 8475 insertions(+), 7719 deletions(-)
create mode 100644 gdb/python/lib/gdb/types.py
create mode 100644 gdb/testsuite/gdb.cp/converts.cc
create mode 100644 gdb/testsuite/gdb.cp/converts.exp
create mode 100644 gdb/testsuite/gdb.python/lib-types.cc
create mode 100644 gdb/testsuite/gdb.python/lib-types.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2e18e8c..7981dce 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,35 @@
+2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ Apply LD plugin patch series (part 6/6).
+ * aoutx.h (aout_link_check_ar_symbols): Take new "subsbfd" reference
+ parameter and pass it when invoking add_archive_element callback.
+ (aout_link_check_archive_element): Handle substitute bfd if it
+ was set during add_archive_element callback in the above.
+ * cofflink.c (coff_link_check_ar_symbols): Take new "subsbfd" reference
+ parameter and pass it when invoking add_archive_element callback.
+ (coff_link_check_archive_element): Handle substitute bfd if it
+ was set during add_archive_element callback in the above.
+ * ecoff.c (read_ext_syms_and_strs): New function holds symbol-reading
+ code factored-out from ecoff_link_check_archive_element.
+ (reread_ext_syms_and_strs): Clear old symbols and call it.
+ (ecoff_link_check_archive_element): Use the above. Handle substitute
+ BFD if one is set by add_archive_element callback.
+ (ecoff_link_add_archive_symbols): Likewise allow bfd substitution.
+ * elflink.c (elf_link_add_archive_symbols): Likewise.
+ * linker.c (generic_link_check_archive_element): Likewise.
+ * pdp11.c (aout_link_check_ar_symbols): Take new "subsbfd" reference
+ parameter and pass it when invoking add_archive_element callback.
+ (aout_link_check_archive_element): Handle substitute bfd if it was
+ set during add_archive_element callback in the above.
+ * vms-alpha.c (alpha_vms_link_add_archive_symbols): Handle substitute
+ BFD if one is set by add_archive_element callback.
+ * xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Take new "subsbfd"
+ reference parameter and pass it when invoking add_archive_element
+ callback.
+ (xcoff_link_check_ar_symbols): Likewise.
+ (xcoff_link_check_archive_element): Handle bfd substitution if it was
+ set by callback in the above.
+
2010-10-11 Alan Modra <amodra@gmail.com>
* elf32-frv.c (elf32_frv_relocate_section): Set "name" for global syms.
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 11598a0..efa9d47 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -3210,7 +3210,8 @@ aout_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
static bfd_boolean
aout_link_check_ar_symbols (bfd *abfd,
struct bfd_link_info *info,
- bfd_boolean *pneeded)
+ bfd_boolean *pneeded,
+ bfd **subsbfd)
{
struct external_nlist *p;
struct external_nlist *pend;
@@ -3304,7 +3305,8 @@ aout_link_check_ar_symbols (bfd *abfd,
continue;
}
- if (! (*info->callbacks->add_archive_element) (info, abfd, name))
+ if (! (*info->callbacks->add_archive_element)
+ (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -3331,9 +3333,8 @@ aout_link_check_ar_symbols (bfd *abfd,
outside BFD. We assume that we should link
in the object file. This is done for the -u
option in the linker. */
- if (! (*info->callbacks->add_archive_element) (info,
- abfd,
- name))
+ if (! (*info->callbacks->add_archive_element)
+ (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -3381,7 +3382,8 @@ aout_link_check_ar_symbols (bfd *abfd,
it if the current link symbol is common. */
if (h->type == bfd_link_hash_undefined)
{
- if (! (*info->callbacks->add_archive_element) (info, abfd, name))
+ if (! (*info->callbacks->add_archive_element)
+ (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -3402,15 +3404,21 @@ aout_link_check_archive_element (bfd *abfd,
struct bfd_link_info *info,
bfd_boolean *pneeded)
{
+ bfd *subsbfd = NULL;
+
if (! aout_get_external_symbols (abfd))
return FALSE;
- if (! aout_link_check_ar_symbols (abfd, info, pneeded))
+ if (! aout_link_check_ar_symbols (abfd, info, pneeded, &subsbfd))
return FALSE;
if (*pneeded)
{
- if (! aout_link_add_symbols (abfd, info))
+ /* Potentially, the add_archive_element hook may have set a
+ substitute BFD for us. */
+ if (subsbfd && !aout_get_external_symbols (subsbfd))
+ return FALSE;
+ if (! aout_link_add_symbols (subsbfd ? subsbfd : abfd, info))
return FALSE;
}
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index a29b687..a28d396 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -197,7 +197,8 @@ coff_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
static bfd_boolean
coff_link_check_ar_symbols (bfd *abfd,
struct bfd_link_info *info,
- bfd_boolean *pneeded)
+ bfd_boolean *pneeded,
+ bfd **subsbfd)
{
bfd_size_type symesz;
bfd_byte *esym;
@@ -243,7 +244,8 @@ coff_link_check_ar_symbols (bfd *abfd,
if (h != (struct bfd_link_hash_entry *) NULL
&& h->type == bfd_link_hash_undefined)
{
- if (! (*info->callbacks->add_archive_element) (info, abfd, name))
+ if (! (*info->callbacks->add_archive_element)
+ (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -267,14 +269,23 @@ coff_link_check_archive_element (bfd *abfd,
struct bfd_link_info *info,
bfd_boolean *pneeded)
{
+ bfd *subsbfd = NULL;
+
if (! _bfd_coff_get_external_symbols (abfd))
return FALSE;
- if (! coff_link_check_ar_symbols (abfd, info, pneeded))
+ if (! coff_link_check_ar_symbols (abfd, info, pneeded, &subsbfd))
+ return FALSE;
+
+ /* Potentially, the add_archive_element hook may have set a
+ substitute BFD for us. */
+ if (*pneeded
+ && subsbfd
+ && ! _bfd_coff_get_external_symbols (subsbfd))
return FALSE;
if (*pneeded
- && ! coff_link_add_symbols (abfd, info))
+ && ! coff_link_add_symbols (subsbfd ? subsbfd : abfd, info))
return FALSE;
if ((! info->keep_memory || ! *pneeded)
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index af9d7d6..37003d2 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -3509,6 +3509,58 @@ ecoff_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
return FALSE;
}
+/* Factored out from ecoff_link_check_archive_element. */
+
+static bfd_boolean
+read_ext_syms_and_strs (HDRR **symhdr, bfd_size_type *external_ext_size,
+ bfd_size_type *esize, void **external_ext, char **ssext, bfd *abfd,
+ const struct ecoff_backend_data * const backend)
+{
+ if (! ecoff_slurp_symbolic_header (abfd))
+ return FALSE;
+
+ /* If there are no symbols, we don't want it. */
+ if (bfd_get_symcount (abfd) == 0)
+ return TRUE;
+
+ *symhdr = &ecoff_data (abfd)->debug_info.symbolic_header;
+
+ *external_ext_size = backend->debug_swap.external_ext_size;
+ *esize = (*symhdr)->iextMax * *external_ext_size;
+ *external_ext = bfd_malloc (*esize);
+ if (*external_ext == NULL && *esize != 0)
+ return FALSE;
+
+ if (bfd_seek (abfd, (file_ptr) (*symhdr)->cbExtOffset, SEEK_SET) != 0
+ || bfd_bread (*external_ext, *esize, abfd) != *esize)
+ return FALSE;
+
+ *ssext = (char *) bfd_malloc ((bfd_size_type) (*symhdr)->issExtMax);
+ if (*ssext == NULL && (*symhdr)->issExtMax != 0)
+ return FALSE;
+
+ if (bfd_seek (abfd, (file_ptr) (*symhdr)->cbSsExtOffset, SEEK_SET) != 0
+ || (bfd_bread (*ssext, (bfd_size_type) (*symhdr)->issExtMax, abfd)
+ != (bfd_size_type) (*symhdr)->issExtMax))
+ return FALSE;
+ return TRUE;
+}
+
+static bfd_boolean
+reread_ext_syms_and_strs (HDRR **symhdr, bfd_size_type *external_ext_size,
+ bfd_size_type *esize, void **external_ext, char **ssext, bfd *abfd,
+ const struct ecoff_backend_data * const backend)
+{
+ if (*external_ext != NULL)
+ free (*external_ext);
+ *external_ext = NULL;
+ if (*ssext != NULL)
+ free (*ssext);
+ *ssext = NULL;
+ return read_ext_syms_and_strs (symhdr, external_ext_size, esize,
+ external_ext, ssext, abfd, backend);
+}
+
/* This is called if we used _bfd_generic_link_add_archive_symbols
because we were not dealing with an ECOFF archive. */
@@ -3530,35 +3582,15 @@ ecoff_link_check_archive_element (bfd *abfd,
*pneeded = FALSE;
- if (! ecoff_slurp_symbolic_header (abfd))
+ /* Read in the external symbols and external strings. */
+ if (!read_ext_syms_and_strs (&symhdr, &external_ext_size, &esize,
+ &external_ext, &ssext, abfd, backend))
goto error_return;
/* If there are no symbols, we don't want it. */
if (bfd_get_symcount (abfd) == 0)
goto successful_return;
- symhdr = &ecoff_data (abfd)->debug_info.symbolic_header;
-
- /* Read in the external symbols and external strings. */
- external_ext_size = backend->debug_swap.external_ext_size;
- esize = symhdr->iextMax * external_ext_size;
- external_ext = bfd_malloc (esize);
- if (external_ext == NULL && esize != 0)
- goto error_return;
-
- if (bfd_seek (abfd, (file_ptr) symhdr->cbExtOffset, SEEK_SET) != 0
- || bfd_bread (external_ext, esize, abfd) != esize)
- goto error_return;
-
- ssext = (char *) bfd_malloc ((bfd_size_type) symhdr->issExtMax);
- if (ssext == NULL && symhdr->issExtMax != 0)
- goto error_return;
-
- if (bfd_seek (abfd, (file_ptr) symhdr->cbSsExtOffset, SEEK_SET) != 0
- || (bfd_bread (ssext, (bfd_size_type) symhdr->issExtMax, abfd)
- != (bfd_size_type) symhdr->issExtMax))
- goto error_return;
-
/* Look through the external symbols to see if they define some
symbol that is currently undefined. */
ext_ptr = (char *) external_ext;
@@ -3568,6 +3600,7 @@ ecoff_link_check_archive_element (bfd *abfd,
EXTR esym;
bfd_boolean def;
const char *name;
+ bfd *subsbfd;
struct bfd_link_hash_entry *h;
(*swap_ext_in) (abfd, (void *) ext_ptr, &esym);
@@ -3612,9 +3645,18 @@ ecoff_link_check_archive_element (bfd *abfd,
continue;
/* Include this element. */
- if (! (*info->callbacks->add_archive_element) (info, abfd, name))
+ subsbfd = NULL;
+ if (! (*info->callbacks->add_archive_element)
+ (info, abfd, name, &subsbfd))
+ goto error_return;
+ /* Potentially, the add_archive_element hook may have set a
+ substitute BFD for us. */
+ if (subsbfd
+ && !reread_ext_syms_and_strs (&symhdr, &external_ext_size, &esize,
+ &external_ext, &ssext, subsbfd, backend))
goto error_return;
- if (! ecoff_link_add_externals (abfd, info, external_ext, ssext))
+ if (! ecoff_link_add_externals (subsbfd ? subsbfd : abfd, info,
+ external_ext, ssext))
goto error_return;
*pneeded = TRUE;
@@ -3691,6 +3733,7 @@ ecoff_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
unsigned int file_offset;
const char *name;
bfd *element;
+ bfd *subsbfd;
h = *pundef;
@@ -3777,9 +3820,13 @@ ecoff_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
/* Unlike the generic linker, we know that this element provides
a definition for an undefined symbol and we know that we want
to include it. We don't need to check anything. */
- if (! (*info->callbacks->add_archive_element) (info, element, name))
+ subsbfd = NULL;
+ if (! (*info->callbacks->add_archive_element)
+ (info, element, name, &subsbfd))
return FALSE;
- if (! ecoff_link_add_object_symbols (element, info))
+ /* Potentially, the add_archive_element hook may have set a
+ substitute BFD for us. */
+ if (! ecoff_link_add_object_symbols (subsbfd ? subsbfd : element, info))
return FALSE;
pundef = &(*pundef)->u.undef.next;
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 41fba17..6d37dc8 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -5011,6 +5011,7 @@ elf_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
{
struct elf_link_hash_entry *h;
bfd *element;
+ bfd *subsbfd = NULL;
struct bfd_link_hash_entry *undefs_tail;
symindex mark;
@@ -5073,10 +5074,12 @@ elf_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
undefs_tail = info->hash->undefs_tail;
- if (! (*info->callbacks->add_archive_element) (info, element,
- symdef->name))
+ if (! (*info->callbacks->add_archive_element)
+ (info, element, symdef->name, &subsbfd))
goto error_return;
- if (! bfd_link_add_symbols (element, info))
+ /* Potentially, the add_archive_element hook may have set a
+ substitute BFD for us. */
+ if (! bfd_link_add_symbols (subsbfd ? subsbfd : element, info))
goto error_return;
/* If there are any new undefined symbols, we need to make
diff --git a/bfd/linker.c b/bfd/linker.c
index 76bc70a..fc52b51 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -223,7 +223,10 @@ SUBSUBSECTION
archive and decide which elements of the archive should be
included in the link. For each such element it must call the
<<add_archive_element>> linker callback, and it must add the
- symbols from the object file to the linker hash table.
+ symbols from the object file to the linker hash table. (The
+ callback may in fact indicate that a replacement BFD should be
+ used, in which case the symbols from that BFD should be added
+ to the linker hash table instead.)
@findex _bfd_generic_link_add_archive_symbols
In most cases the work of looking through the symbols in the
@@ -243,9 +246,13 @@ SUBSUBSECTION
element should be included in the link. If the element is to
be included, the <<add_archive_element>> linker callback
routine must be called with the element as an argument, and
- the elements symbols must be added to the linker hash table
+ the element's symbols must be added to the linker hash table
just as though the element had itself been passed to the
- <<_bfd_link_add_symbols>> function.
+ <<_bfd_link_add_symbols>> function. The <<add_archive_element>>
+ callback has the option to indicate that it would like to
+ replace the element archive with a substitute BFD, in which
+ case it is the symbols of that substitute BFD that must be
+ added to the linker hash table instead.
When the a.out <<_bfd_link_add_symbols>> function receives an
archive, it calls <<_bfd_generic_link_add_archive_symbols>>
@@ -257,7 +264,8 @@ SUBSUBSECTION
symbol) it calls the <<add_archive_element>> callback and then
<<aout_link_check_archive_element>> calls
<<aout_link_add_symbols>> to actually add the symbols to the
- linker hash table.
+ linker hash table - possibly those of a substitute BFD, if the
+ <<add_archive_element>> callback avails itself of that option.
The ECOFF back end is unusual in that it does not normally
call <<_bfd_generic_link_add_archive_symbols>>, because ECOFF
@@ -957,8 +965,10 @@ archive_hash_table_init
included. CHECKFN should set *PNEEDED to TRUE if the object file
should be included, and must also call the bfd_link_info
add_archive_element callback function and handle adding the symbols
- to the global hash table. CHECKFN should only return FALSE if some
- sort of error occurs.
+ to the global hash table. CHECKFN must notice if the callback
+ indicates a substitute BFD, and arrange to add those symbols instead
+ if it does so. CHECKFN should only return FALSE if some sort of
+ error occurs.
For some formats, such as a.out, it is possible to look through an
object file but not actually include it in the link. The
@@ -1213,11 +1223,20 @@ generic_link_check_archive_element (bfd *abfd,
{
bfd_size_type symcount;
asymbol **symbols;
+ bfd *subsbfd = NULL;
/* This object file defines this symbol, so pull it in. */
- if (! (*info->callbacks->add_archive_element) (info, abfd,
- bfd_asymbol_name (p)))
+ if (! (*info->callbacks->add_archive_element)
+ (info, abfd, bfd_asymbol_name (p), &subsbfd))
return FALSE;
+ /* Potentially, the add_archive_element hook may have set a
+ substitute BFD for us. */
+ if (subsbfd)
+ {
+ abfd = subsbfd;
+ if (!bfd_generic_link_read_symbols (abfd))
+ return FALSE;
+ }
symcount = _bfd_generic_link_get_symcount (abfd);
symbols = _bfd_generic_link_get_symbols (abfd);
if (! generic_link_add_symbol_list (abfd, info, symcount,
@@ -1238,12 +1257,16 @@ generic_link_check_archive_element (bfd *abfd,
symbfd = h->u.undef.abfd;
if (symbfd == NULL)
{
+ bfd *subsbfd = NULL;
/* This symbol was created as undefined from outside
BFD. We assume that we should link in the object
file. This is for the -u option in the linker. */
if (! (*info->callbacks->add_archive_element)
- (info, abfd, bfd_asymbol_name (p)))
+ (info, abfd, bfd_asymbol_name (p), &subsbfd))
return FALSE;
+ /* Potentially, the add_archive_element hook may have set a
+ substitute BFD for us. But no symbols are going to get
+ registered by anything we're returning to from here. */
*pneeded = TRUE;
return TRUE;
}
diff --git a/bfd/pdp11.c b/bfd/pdp11.c
index 1a7694c..5f4d28c 100644
--- a/bfd/pdp11.c
+++ b/bfd/pdp11.c
@@ -2545,7 +2545,8 @@ aout_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
static bfd_boolean
aout_link_check_ar_symbols (bfd *abfd,
struct bfd_link_info *info,
- bfd_boolean *pneeded)
+ bfd_boolean *pneeded,
+ bfd **subsbfd)
{
struct external_nlist *p;
struct external_nlist *pend;
@@ -2600,7 +2601,8 @@ aout_link_check_ar_symbols (bfd *abfd,
but not if it is defined in the .text section. That
seems a bit crazy to me, and I haven't implemented it.
However, it might be correct. */
- if (! (*info->callbacks->add_archive_element) (info, abfd, name))
+ if (! (*info->callbacks->add_archive_element)
+ (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -2628,7 +2630,7 @@ aout_link_check_ar_symbols (bfd *abfd,
in the object file. This is done for the -u
option in the linker. */
if (! (*info->callbacks->add_archive_element)
- (info, abfd, name))
+ (info, abfd, name, subsbfd))
return FALSE;
*pneeded = TRUE;
return TRUE;
@@ -2680,15 +2682,21 @@ aout_link_check_archive_element (bfd *abfd,
struct bfd_link_info *info,
bfd_boolean *pneeded)
{
+ bfd *subsbfd = NULL;
+
if (! aout_get_external_symbols (abfd))
return FALSE;
- if (! aout_link_check_ar_symbols (abfd, info, pneeded))
+ if (! aout_link_check_ar_symbols (abfd, info, pneeded, &subsbfd))
return FALSE;
if (*pneeded)
{
- if (! aout_link_add_symbols (abfd, info))
+ /* Potentially, the add_archive_element hook may have set a
+ substitute BFD for us. */
+ if (subsbfd && ! aout_get_external_symbols (subsbfd))
+ return FALSE;
+ if (! aout_link_add_symbols (subsbfd ? subsbfd : abfd, info))
return FALSE;
}
diff --git a/bfd/version.h b/bfd/version.h
index 6ec0248..39625fd 100644
--- a/bfd/version.h
+++ b/bfd/version.h
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-13 15:06 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-10-13 15:06 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 6cf47741faf811d7816dd54cf838e256e32d29b9 (commit)
via 2d72b617c4080b4f6ad82c0212ecedd90042a289 (commit)
via d66549fedb7aba7ab755452e068cc3cdb3525739 (commit)
via 4272775a1eff21ac17a90a5b3b11e3de0554dd73 (commit)
via cca862e1eb7d8a3f1a6f16dee3bfd953ad0e23f9 (commit)
via 0ae6e883ffabbbd3ebc60d59e3e6aa0d4eecf383 (commit)
via 539f158bf0dd3e9ebaad971f40998fde44a679fb (commit)
via 656eeed366db725765eb1bbba41387595b2f3910 (commit)
via 44cad9ebe5f8f69251216948bd7b0f1719cd417b (commit)
from 38dc720f9b66df1122f4d63b96a866a00386816a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6cf47741faf811d7816dd54cf838e256e32d29b9
Merge: 38dc720 2d72b61
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Oct 13 17:06:47 2010 +0200
Merge remote branch 'gdb/master'
commit 2d72b617c4080b4f6ad82c0212ecedd90042a289
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Oct 13 13:24:36 2010 +0000
gdb/
* python/py-breakpoint.c (bppy_set_condition): New comment.
* python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
failed PyUnicode_Decode.
(cmdpy_completer): Skip element for failed
python_string_to_host_string.
(cmdpy_init): Return -1 on failed python_string_to_host_string.
* python/py-frame.c (frapy_read_var): Extend the function comment.
* python/py-function.c (fnpy_init): Return -1 on failed
python_string_to_host_string.
* python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
the function comment.
(infpy_search_memory): Extend the function comment. Remove the
PyErr_SetString call on already set error state.
* python/py-param.c (set_parameter_value): Extend the function
comment. Return -1 on failed python_string_to_host_string, twice.
(set_attr): Extend the function comment.
(compute_enum_values): Extend the function comment. New variable
back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
failed python_string_to_host_string.
(get_doc_string): Call gdbpy_print_stack on failed
python_string_to_host_string.
(parmpy_init): Extend the function comment.
* python/py-prettyprint.c (pretty_print_one_value): Likewise.
(gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
failed python_string_to_host_string.
* python/py-value.c (valpy_new, valpy_getitem, valpy_call)
(valpy_binop, valpy_richcompare): Extend the function comment.
* python/python.c
(struct python_env) <error_type, error_value, error_traceback>: New
fields.
(restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
(ensure_python_env): Call PyErr_Fetch.
* varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
failed convert_value_from_python.
(value_get_print_value): Call gdbpy_print_stack on failed
python_string_to_target_python_string.
gdb/testsuite/
* gdb.python/py-error.exp: New file.
* gdb.python/py-error.py: New file.
commit d66549fedb7aba7ab755452e068cc3cdb3525739
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Oct 13 00:00:33 2010 +0000
*** empty log message ***
commit 4272775a1eff21ac17a90a5b3b11e3de0554dd73
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Oct 12 23:00:04 2010 +0000
daily update
commit cca862e1eb7d8a3f1a6f16dee3bfd953ad0e23f9
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Oct 12 22:44:18 2010 +0000
* python/py-prettyprint.c (search_pp_list): Fix error checking.
commit 0ae6e883ffabbbd3ebc60d59e3e6aa0d4eecf383
Author: swagiaal <swagiaal>
Date: Tue Oct 12 20:58:15 2010 +0000
Eliminate 'is_ancestor' redundant code.
2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
* gdbtypes.c (do_is_ancestor): New function.
(is_ancestor): Use do_is_ancestor.
(is_public_ancestor): Use do_is_ancestor.
commit 539f158bf0dd3e9ebaad971f40998fde44a679fb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Oct 12 18:41:05 2010 +0000
gdb/testsuite/
* gdb.base/break-interp.exp (test_ld): Replace gdb_expect by
gdb_test_multiple.
commit 656eeed366db725765eb1bbba41387595b2f3910
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Oct 12 18:12:48 2010 +0000
gdb/testsuite/
* gdb.base/break-interp.exp: Use ldlags for linking flags.
* gdb.base/prelink.exp: Likewise.
* gdb.base/solib-nodir.exp: Likewise.
* lib/gdb.exp (gdb_compile) <*-*-openbsd*>
(gdb_compile) <shlib_load>: Use ldlags for linking flags.
* lib/prelink-support.exp (build_executable_own_libs): Likewise.
commit 44cad9ebe5f8f69251216948bd7b0f1719cd417b
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Tue Oct 12 17:17:35 2010 +0000
* break-interp.exp (test_ld): Use two separate gdb_expect statements
for the "info files" test to avoid timeouts on slow machines.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 49 +++++++++++++++++++++++++++
gdb/gdbtypes.c | 48 +++++++++++++--------------
gdb/python/py-breakpoint.c | 3 ++
gdb/python/py-cmd.c | 21 ++++++++++-
gdb/python/py-frame.c | 3 +-
gdb/python/py-function.c | 9 ++++-
gdb/python/py-inferior.c | 16 ++++-----
gdb/python/py-param.c | 52 ++++++++++++++++++++++-------
gdb/python/py-prettyprint.c | 32 ++++++++++++++----
gdb/python/py-value.c | 13 ++++---
gdb/python/python.c | 14 ++++++++
gdb/testsuite/ChangeLog | 24 +++++++++++++
gdb/testsuite/gdb.base/break-interp.exp | 15 ++++++--
gdb/testsuite/gdb.base/prelink.exp | 4 +-
gdb/testsuite/gdb.base/solib-nodir.exp | 2 +-
gdb/testsuite/gdb.python/py-error.exp | 56 +++++++++++++++++++++++++++++++
gdb/testsuite/gdb.python/py-error.py | 25 ++++++++++++++
gdb/testsuite/lib/gdb.exp | 4 +-
gdb/testsuite/lib/prelink-support.exp | 2 +-
gdb/varobj.c | 4 ++
gdb/version.in | 2 +-
22 files changed, 326 insertions(+), 74 deletions(-)
create mode 100644 gdb/testsuite/gdb.python/py-error.exp
create mode 100644 gdb/testsuite/gdb.python/py-error.py
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 4baa4cd..6ec0248 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101012
+#define BFD_VERSION_DATE 20101013
#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 a0765cd..0f35473 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,52 @@
+2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * python/py-breakpoint.c (bppy_set_condition): New comment.
+ * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
+ failed PyUnicode_Decode.
+ (cmdpy_completer): Skip element for failed
+ python_string_to_host_string.
+ (cmdpy_init): Return -1 on failed python_string_to_host_string.
+ * python/py-frame.c (frapy_read_var): Extend the function comment.
+ * python/py-function.c (fnpy_init): Return -1 on failed
+ python_string_to_host_string.
+ * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
+ the function comment.
+ (infpy_search_memory): Extend the function comment. Remove the
+ PyErr_SetString call on already set error state.
+ * python/py-param.c (set_parameter_value): Extend the function
+ comment. Return -1 on failed python_string_to_host_string, twice.
+ (set_attr): Extend the function comment.
+ (compute_enum_values): Extend the function comment. New variable
+ back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
+ failed python_string_to_host_string.
+ (get_doc_string): Call gdbpy_print_stack on failed
+ python_string_to_host_string.
+ (parmpy_init): Extend the function comment.
+ * python/py-prettyprint.c (pretty_print_one_value): Likewise.
+ (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
+ failed python_string_to_host_string.
+ * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
+ (valpy_binop, valpy_richcompare): Extend the function comment.
+ * python/python.c
+ (struct python_env) <error_type, error_value, error_traceback>: New
+ fields.
+ (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
+ (ensure_python_env): Call PyErr_Fetch.
+ * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
+ failed convert_value_from_python.
+ (value_get_print_value): Call gdbpy_print_stack on failed
+ python_string_to_target_python_string.
+
+2010-10-12 Tom Tromey <tromey@redhat.com>
+
+ * python/py-prettyprint.c (search_pp_list): Fix error checking.
+
+2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * gdbtypes.c (do_is_ancestor): New function.
+ (is_ancestor): Use do_is_ancestor.
+ (is_public_ancestor): Use do_is_ancestor.
+
2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
* ser-go32.c (struct dos_ops): Add missing fdopen field.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index af28ca1..b4f3b77 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -1868,14 +1868,13 @@ class_types_same_p (const struct type *a, const struct type *b)
&& !strcmp (TYPE_NAME (a), TYPE_NAME (b))));
}
-/* Check whether BASE is an ancestor or base class or DCLASS
- Return 1 if so, and 0 if not.
- Note: callers may want to check for identity of the types before
- calling this function -- identical types are considered to satisfy
- the ancestor relationship even if they're identical. */
+/* Check whether BASE is an ancestor or base class of DCLASS
+ Return 1 if so, and 0 if not. If PUBLIC is 1 then only public
+ ancestors are considered, and the function returns 1 only if
+ BASE is a public ancestor of DCLASS. */
-int
-is_ancestor (struct type *base, struct type *dclass)
+static int
+do_is_ancestor (struct type *base, struct type *dclass, int public)
{
int i;
@@ -1887,36 +1886,35 @@ is_ancestor (struct type *base, struct type *dclass)
for (i = 0; i < TYPE_N_BASECLASSES (dclass); i++)
{
- if (is_ancestor (base, TYPE_BASECLASS (dclass, i)))
+ if (public && ! BASETYPE_VIA_PUBLIC (dclass, i))
+ continue;
+
+ if (do_is_ancestor (base, TYPE_BASECLASS (dclass, i), public))
return 1;
}
return 0;
}
+/* Check whether BASE is an ancestor or base class or DCLASS
+ Return 1 if so, and 0 if not.
+ Note: If BASE and DCLASS are of the same type, this function
+ will return 1. So for some class A, is_ancestor (A, A) will
+ return 1. */
+
+int
+is_ancestor (struct type *base, struct type *dclass)
+{
+ return do_is_ancestor (base, dclass, 0);
+}
+
/* Like is_ancestor, but only returns true when BASE is a public
ancestor of DCLASS. */
int
is_public_ancestor (struct type *base, struct type *dclass)
{
- int i;
-
- CHECK_TYPEDEF (base);
- CHECK_TYPEDEF (dclass);
-
- if (class_types_same_p (base, dclass))
- return 1;
-
- for (i = 0; i < TYPE_N_BASECLASSES (dclass); ++i)
- {
- if (! BASETYPE_VIA_PUBLIC (dclass, i))
- continue;
- if (is_public_ancestor (base, TYPE_BASECLASS (dclass, i)))
- return 1;
- }
-
- return 0;
+ return do_is_ancestor (base, dclass, 1);
}
/* A helper function for is_unique_ancestor. */
diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c
index 0c70cbf..b18f7f3 100644
--- a/gdb/python/py-breakpoint.c
+++ b/gdb/python/py-breakpoint.c
@@ -420,6 +420,9 @@ bppy_get_condition (PyObject *self, void *closure)
return PyString_Decode (str, strlen (str), host_charset (), NULL);
}
+/* Returns 0 on success. Returns -1 on error, with a python exception set.
+ */
+
static int
bppy_set_condition (PyObject *self, PyObject *newvalue, void *closure)
{
diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c
index 2cff4ba..9f71290 100644
--- a/gdb/python/py-cmd.c
+++ b/gdb/python/py-cmd.c
@@ -139,7 +139,10 @@ cmdpy_function (struct cmd_list_element *command, char *args, int from_tty)
args = "";
argobj = PyUnicode_Decode (args, strlen (args), host_charset (), NULL);
if (! argobj)
- error (_("Could not convert arguments to Python string."));
+ {
+ gdbpy_print_stack ();
+ error (_("Could not convert arguments to Python string."));
+ }
ttyobj = from_tty ? Py_True : Py_False;
Py_INCREF (ttyobj);
@@ -256,6 +259,12 @@ cmdpy_completer (struct cmd_list_element *command, char *text, char *word)
continue;
}
result[out] = python_string_to_host_string (elt);
+ if (result[out] == NULL)
+ {
+ /* Skip problem elements. */
+ PyErr_Clear ();
+ continue;
+ }
++out;
}
result[out] = NULL;
@@ -466,7 +475,15 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw)
PyObject *ds_obj = PyObject_GetAttr (self, gdbpy_doc_cst);
if (ds_obj && gdbpy_is_string (ds_obj))
- docstring = python_string_to_host_string (ds_obj);
+ {
+ docstring = python_string_to_host_string (ds_obj);
+ if (docstring == NULL)
+ {
+ xfree (cmd_name);
+ xfree (pfx_name);
+ return -1;
+ }
+ }
}
if (! docstring)
docstring = xstrdup (_("This command is not documented."));
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c
index bb82903..1d3152c 100644
--- a/gdb/python/py-frame.c
+++ b/gdb/python/py-frame.c
@@ -385,7 +385,8 @@ frapy_find_sal (PyObject *self, PyObject *args)
start the search from that block, otherwise search from the frame's
current block (determined by examining the resume address of the
frame). The variable argument must be a string or an instance of a
- gdb.Symbol. The block argument must be an instance of gdb.Block. */
+ gdb.Symbol. The block argument must be an instance of gdb.Block. Returns
+ NULL on error, with a python exception set. */
static PyObject *
frapy_read_var (PyObject *self, PyObject *args)
{
diff --git a/gdb/python/py-function.c b/gdb/python/py-function.c
index f09c6b4..762eb35 100644
--- a/gdb/python/py-function.c
+++ b/gdb/python/py-function.c
@@ -113,7 +113,14 @@ fnpy_init (PyObject *self, PyObject *args, PyObject *kwds)
{
PyObject *ds_obj = PyObject_GetAttrString (self, "__doc__");
if (ds_obj && gdbpy_is_string (ds_obj))
- docstring = python_string_to_host_string (ds_obj);
+ {
+ docstring = python_string_to_host_string (ds_obj);
+ if (docstring == NULL)
+ {
+ Py_DECREF (self);
+ return -1;
+ }
+ }
}
if (! docstring)
docstring = xstrdup (_("This function is not documented."));
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c
index 3a0feab..b1ddb168 100644
--- a/gdb/python/py-inferior.c
+++ b/gdb/python/py-inferior.c
@@ -293,7 +293,8 @@ gdbpy_inferiors (PyObject *unused, PyObject *unused2)
/* Implementation of gdb.read_memory (address, length).
Returns a Python buffer object with LENGTH bytes of the inferior's
- memory at ADDRESS. Both arguments are integers. */
+ memory at ADDRESS. Both arguments are integers. Returns NULL on error,
+ with a python exception set. */
static PyObject *
infpy_read_memory (PyObject *self, PyObject *args, PyObject *kw)
{
@@ -361,7 +362,8 @@ infpy_read_memory (PyObject *self, PyObject *args, PyObject *kw)
Writes the contents of BUFFER (a Python object supporting the read
buffer protocol) at ADDRESS in the inferior's memory. Write LENGTH
bytes from BUFFER, or its entire contents if the argument is not
- provided. The function returns nothing. */
+ provided. The function returns nothing. Returns NULL on error, with
+ a python exception set. */
static PyObject *
infpy_write_memory (PyObject *self, PyObject *args, PyObject *kw)
{
@@ -473,7 +475,8 @@ get_char_buffer (PyObject *self, Py_ssize_t segment, char **ptrptr)
search from ADDRESS. PATTERN is the pattern to search for (and
must be a Python object supporting the buffer protocol).
Returns a Python Long object holding the address where the pattern
- was located, or if the pattern was not found, returns None. */
+ was located, or if the pattern was not found, returns None. Returns NULL
+ on error, with a python exception set. */
static PyObject *
infpy_search_memory (PyObject *self, PyObject *args, PyObject *kw)
{
@@ -511,12 +514,7 @@ infpy_search_memory (PyObject *self, PyObject *args, PyObject *kw)
}
}
else
- {
- PyErr_SetString (PyExc_RuntimeError,
- _("Cannot get search address/range from Python."));
-
- return NULL;
- }
+ return NULL;
if (!PyObject_CheckReadBuffer (pattern))
{
diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c
index 5596eb7..b8eb447 100644
--- a/gdb/python/py-param.c
+++ b/gdb/python/py-param.c
@@ -110,8 +110,8 @@ get_attr (PyObject *obj, PyObject *attr_name)
return PyObject_GenericGetAttr (obj, attr_name);
}
-/* Set a parameter value from a Python value. Return 0 on success, -1
- on failure. */
+/* Set a parameter value from a Python value. Return 0 on success. Returns
+ -1 on error, with a python exception set. */
static int
set_parameter_value (parmpy_object *self, PyObject *value)
{
@@ -132,17 +132,25 @@ set_parameter_value (parmpy_object *self, PyObject *value)
return -1;
}
- if (self->value.stringval)
- xfree (self->value.stringval);
if (value == Py_None)
{
+ xfree (self->value.stringval);
if (self->type == var_optional_filename)
self->value.stringval = xstrdup ("");
else
self->value.stringval = NULL;
}
else
- self->value.stringval = python_string_to_host_string (value);
+ {
+ char *string;
+
+ string = python_string_to_host_string (value);
+ if (string == NULL)
+ return -1;
+
+ xfree (self->value.stringval);
+ self->value.stringval = string;
+ }
break;
case var_enum:
@@ -158,6 +166,8 @@ set_parameter_value (parmpy_object *self, PyObject *value)
}
str = python_string_to_host_string (value);
+ if (str == NULL)
+ return -1;
for (i = 0; self->enumeration[i]; ++i)
if (! strcmp (self->enumeration[i], str))
break;
@@ -258,7 +268,7 @@ set_parameter_value (parmpy_object *self, PyObject *value)
return 0;
}
-/* Set an attribute. */
+/* Set an attribute. Returns -1 on error, with a python exception set. */
static int
set_attr (PyObject *obj, PyObject *attr_name, PyObject *val)
{
@@ -358,12 +368,13 @@ add_setshow_generic (int parmclass, enum command_class cmdclass,
}
}
-/* A helper which computes enum values. Returns 1 on success, 0 on
- error. */
+/* A helper which computes enum values. Returns 1 on success. Returns 0 on
+ error, with a python exception set. */
static int
compute_enum_values (parmpy_object *self, PyObject *enum_values)
{
Py_ssize_t size, i;
+ struct cleanup *back_to;
if (! enum_values)
{
@@ -390,6 +401,7 @@ compute_enum_values (parmpy_object *self, PyObject *enum_values)
}
self->enumeration = xmalloc ((size + 1) * sizeof (char *));
+ back_to = make_cleanup (free_current_contents, &self->enumeration);
memset (self->enumeration, 0, (size + 1) * sizeof (char *));
for (i = 0; i < size; ++i)
@@ -397,16 +409,27 @@ compute_enum_values (parmpy_object *self, PyObject *enum_values)
PyObject *item = PySequence_GetItem (enum_values, i);
if (! item)
- return 0;
+ {
+ do_cleanups (back_to);
+ return 0;
+ }
if (! gdbpy_is_string (item))
{
+ do_cleanups (back_to);
PyErr_SetString (PyExc_RuntimeError,
_("The enumeration item not a string."));
return 0;
}
self->enumeration[i] = python_string_to_host_string (item);
+ if (self->enumeration[i] == NULL)
+ {
+ do_cleanups (back_to);
+ return 0;
+ }
+ make_cleanup (xfree, (char *) self->enumeration[i]);
}
+ discard_cleanups (back_to);
return 1;
}
@@ -422,7 +445,11 @@ get_doc_string (PyObject *object, PyObject *attr)
PyObject *ds_obj = PyObject_GetAttr (object, attr);
if (ds_obj && gdbpy_is_string (ds_obj))
- result = python_string_to_host_string (ds_obj);
+ {
+ result = python_string_to_host_string (ds_obj);
+ if (result == NULL)
+ gdbpy_print_stack ();
+ }
}
if (! result)
result = xstrdup (_("This command is not documented."));
@@ -449,8 +476,9 @@ get_doc_string (PyObject *object, PyObject *attr)
The documentation for the parameter is taken from the doc string
for the python class.
-
-*/
+
+ Returns -1 on error, with a python exception set. */
+
static int
parmpy_init (PyObject *self, PyObject *args, PyObject *kwds)
{
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index 434c8a5..cc6a346 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -49,9 +49,20 @@ search_pp_list (PyObject *list, PyObject *value)
return NULL;
/* Skip if disabled. */
- if (PyObject_HasAttr (function, gdbpy_enabled_cst)
- && ! PyObject_IsTrue (PyObject_GetAttr (function, gdbpy_enabled_cst)))
- continue;
+ if (PyObject_HasAttr (function, gdbpy_enabled_cst))
+ {
+ PyObject *attr = PyObject_GetAttr (function, gdbpy_enabled_cst);
+ int cmp;
+
+ if (!attr)
+ return NULL;
+ cmp = PyObject_IsTrue (attr);
+ if (cmp == -1)
+ return NULL;
+
+ if (!cmp)
+ continue;
+ }
printer = PyObject_CallFunctionObjArgs (function, value, NULL);
if (! printer)
@@ -185,8 +196,8 @@ find_pretty_printer (PyObject *value)
is returned. If the function returns Py_NONE that means the pretty
printer returned the Python None as a value. Otherwise, if the
function returns a value, *OUT_VALUE is set to the value, and NULL
- is returned. On error, *OUT_VALUE is set to NULL, and NULL is
- returned. */
+ is returned. On error, *OUT_VALUE is set to NULL, NULL is
+ returned, with a python exception set. */
static PyObject *
pretty_print_one_value (PyObject *printer, struct value **out_value)
@@ -232,7 +243,11 @@ gdbpy_get_display_hint (PyObject *printer)
if (hint)
{
if (gdbpy_is_string (hint))
- result = python_string_to_host_string (hint);
+ {
+ result = python_string_to_host_string (hint);
+ if (result == NULL)
+ gdbpy_print_stack ();
+ }
Py_DECREF (hint);
}
else
@@ -555,7 +570,10 @@ print_children (PyObject *printer, const char *hint,
else
{
output = python_string_to_host_string (py_v);
- fputs_filtered (output, stream);
+ if (!output)
+ gdbpy_print_stack ();
+ else
+ fputs_filtered (output, stream);
xfree (output);
}
}
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c
index 0aeea7c..4445655 100644
--- a/gdb/python/py-value.c
+++ b/gdb/python/py-value.c
@@ -119,7 +119,8 @@ note_value (value_object *value_obj)
values_in_python = value_obj;
}
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-12 16:45 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-10-12 16:45 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 38dc720f9b66df1122f4d63b96a866a00386816a (commit)
via a4c2a2ca7166bff825e4806197e040374c854c92 (commit)
via d2a8b4a4c7e8c1ae5ecf3935644514eff6e2077c (commit)
via f2af4777c54d5b99a30890a0bdb6e5cb2c2a0920 (commit)
via 75eefffd1a0359b2e38bcd703b63d6232209144c (commit)
via a2964f7ce24fabe1e4357e82ea457b9252c550a7 (commit)
via bfa490e2a62d2330775c3354a2bb4a10b1ce9f94 (commit)
via b9fec5b4ee3a77a1d49e9c6f55ced129f43b8006 (commit)
via 13b68f3e84043a7be14dfaf4e48456c589ada73b (commit)
via e5b782fb1908e3bdb9950489aa0a1b84460ea73c (commit)
via 86a26289bc9d7f8b26115134a36044748095a9de (commit)
from b59c334f41d4a793352df0563f6d7ba0f1166342 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 38dc720f9b66df1122f4d63b96a866a00386816a
Merge: b59c334 a4c2a2c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Oct 12 18:45:39 2010 +0200
Merge remote branch 'gdb/master'
commit a4c2a2ca7166bff825e4806197e040374c854c92
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Oct 12 15:40:03 2010 +0000
* ser-go32.c (struct dos_ops): Add missing fdopen field.
commit d2a8b4a4c7e8c1ae5ecf3935644514eff6e2077c
Author: mgretton <mgretton>
Date: Tue Oct 12 08:46:15 2010 +0000
* gdb/arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
commit f2af4777c54d5b99a30890a0bdb6e5cb2c2a0920
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Oct 12 00:00:02 2010 +0000
*** empty log message ***
commit 75eefffd1a0359b2e38bcd703b63d6232209144c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Oct 11 23:00:05 2010 +0000
daily update
commit a2964f7ce24fabe1e4357e82ea457b9252c550a7
Author: Andreas Schwab <schwab@suse.de>
Date: Mon Oct 11 22:18:42 2010 +0000
binutils/:
* binutils-all/m68k/objdump.exp: Add fnop test.
* binutils-all/m68k/fnop.s: New file.
opcodes/:
* m68k-opc.c (m68k_opcodes): Move fnop before fbf.
commit bfa490e2a62d2330775c3354a2bb4a10b1ce9f94
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Oct 11 21:36:25 2010 +0000
gdb/testsuite/
* gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME.
(main): Make openlib dummy call.
commit b9fec5b4ee3a77a1d49e9c6f55ced129f43b8006
Author: Doug Evans <dje@google.com>
Date: Mon Oct 11 19:24:49 2010 +0000
* c-typeprint.c (c_type_print_modifier): Add note that this prints
the address space id too.
commit 13b68f3e84043a7be14dfaf4e48456c589ada73b
Author: Doug Evans <dje@google.com>
Date: Mon Oct 11 15:46:09 2010 +0000
* gdb.texinfo (Values From Inferior): Add reference to "Types in
Python" from gdb.Value.type description.
commit e5b782fb1908e3bdb9950489aa0a1b84460ea73c
Author: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Date: Mon Oct 11 11:56:53 2010 +0000
2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390-opc.c: Make the instruction masks for the load/store on
condition instructions to cover the condition code mask as well.
* s390-opc.txt: lgoc -> locg and stgoc -> stocg.
2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gas/s390/zarch-z196.d: Adjust the load/store on condition
instructions.
* gas/s390/zarch-z196.s: Likewise.
commit 86a26289bc9d7f8b26115134a36044748095a9de
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Oct 11 09:11:33 2010 +0000
* elf32-frv.c (elf32_frv_relocate_section): Set "name" for global syms.
(elf32_frvfdpic_finish_dynamic_sections): Don't crash on
__ROFIXUP_END__ defined in shared lib.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 6 ++++++
bfd/elf32-frv.c | 9 ++++++---
bfd/version.h | 2 +-
gdb/ChangeLog | 13 +++++++++++++
gdb/arm-tdep.c | 3 ++-
gdb/c-typeprint.c | 3 ++-
gdb/doc/ChangeLog | 5 +++++
gdb/doc/gdb.texinfo | 2 +-
gdb/ser-go32.c | 1 +
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.cp/infcall-dlopen.cc | 6 ++++++
gdb/version.in | 2 +-
opcodes/ChangeLog | 10 ++++++++++
opcodes/m68k-opc.c | 7 ++++---
opcodes/s390-opc.c | 2 +-
opcodes/s390-opc.txt | 8 ++++----
16 files changed, 68 insertions(+), 16 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fcfa945..2e18e8c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-11 Alan Modra <amodra@gmail.com>
+
+ * elf32-frv.c (elf32_frv_relocate_section): Set "name" for global syms.
+ (elf32_frvfdpic_finish_dynamic_sections): Don't crash on
+ __ROFIXUP_END__ defined in shared lib.
+
2010-10-11 Thomas Schwinge <thomas@codesourcery.com>
* elf32-arm.c (elf32_arm_final_link_relocate)
diff --git a/bfd/elf32-frv.c b/bfd/elf32-frv.c
index 2acc917..f6975f3 100644
--- a/bfd/elf32-frv.c
+++ b/bfd/elf32-frv.c
@@ -2770,7 +2770,7 @@ elf32_frv_relocate_section (output_bfd, info, input_bfd, input_section,
struct elf_link_hash_entry *h;
bfd_vma relocation;
bfd_reloc_status_type r;
- const char * name = NULL;
+ const char *name;
int r_type;
asection *osec;
struct frvfdpic_relocs_info *picrel;
@@ -2796,7 +2796,8 @@ elf32_frv_relocate_section (output_bfd, info, input_bfd, input_section,
name = bfd_elf_string_from_elf_section
(input_bfd, symtab_hdr->sh_link, sym->st_name);
- name = (name == NULL) ? bfd_section_name (input_bfd, sec) : name;
+ if (name == NULL || name[0] == 0)
+ name = bfd_section_name (input_bfd, sec);
}
else
{
@@ -2808,6 +2809,7 @@ elf32_frv_relocate_section (output_bfd, info, input_bfd, input_section,
h, sec, relocation,
unresolved_reloc, warned);
osec = sec;
+ name = h->root.root.string;
}
if (sec != NULL && elf_discarded_section (sec))
@@ -5896,7 +5898,8 @@ elf32_frvfdpic_finish_dynamic_sections (bfd *output_bfd,
FALSE, FALSE, TRUE);
if (hend
&& (hend->type == bfd_link_hash_defined
- || hend->type == bfd_link_hash_defweak))
+ || hend->type == bfd_link_hash_defweak)
+ && hend->u.def.section->output_section != NULL)
{
bfd_vma value =
frvfdpic_gotfixup_section (info)->output_section->vma
diff --git a/bfd/version.h b/bfd/version.h
index 3332bf6..4baa4cd 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20101011
+#define BFD_VERSION_DATE 20101012
#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 5f3b259..a0765cd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,16 @@
+2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * ser-go32.c (struct dos_ops): Add missing fdopen field.
+
+2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
+
+2010-10-11 Doug Evans <dje@google.com>
+
+ * c-typeprint.c (c_type_print_modifier): Add note that this prints
+ the address space id too.
+
2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix attaching to re-prelinked executables on ppc64.
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 19b9c85..5b32b8a 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -124,7 +124,8 @@ static const char *arm_mode_strings[] =
{
"auto",
"arm",
- "thumb"
+ "thumb",
+ NULL
};
static const char *arm_fallback_mode_string = "auto";
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index 926ae2f..c7cadc0 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -321,7 +321,8 @@ c_type_print_varspec_prefix (struct type *type, struct ui_file *stream,
}
}
-/* Print out "const" and "volatile" attributes.
+/* Print out "const" and "volatile" attributes,
+ and address space id if present.
TYPE is a pointer to the type being printed out.
STREAM is the output destination.
NEED_SPACE = 1 indicates an initial white space is needed */
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index a967bd7..e2b435e 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-11 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (Values From Inferior): Add reference to "Types in
+ Python" from gdb.Value.type description.
+
2010-09-28 Joel Brobecker <brobecker@adacore.com>
* gdb.texinfo (Ravenscar Profile): New node.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 0b24718..c73e2f3 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20789,7 +20789,7 @@ this value, thus it is not available for fetching from the inferior.
@defivar Value type
The type of this @code{gdb.Value}. The value of this attribute is a
-@code{gdb.Type} object.
+@code{gdb.Type} object (@pxref{Types In Python}).
@end defivar
@defivar Value dynamic_type
diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c
index d9003b8..a9141d0 100644
--- a/gdb/ser-go32.c
+++ b/gdb/ser-go32.c
@@ -843,6 +843,7 @@ static struct serial_ops dos_ops =
0,
dos_open,
dos_close,
+ NULL, /* fdopen, not implemented */
dos_readchar,
dos_write,
dos_noop, /* flush output */
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 865568c..3340523 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME.
+ (main): Make openlib dummy call.
+
+2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
Fix missing _start PIE relocation on ppc64 due to stop on dl_main.
* break-interp.exp (reach): Move the core body ...
(reach_1): ... here. Use stop-on-solib-events for _dl_debug_state.
diff --git a/gdb/testsuite/gdb.cp/infcall-dlopen.cc b/gdb/testsuite/gdb.cp/infcall-dlopen.cc
index 1e389e6..7fb204c 100644
--- a/gdb/testsuite/gdb.cp/infcall-dlopen.cc
+++ b/gdb/testsuite/gdb.cp/infcall-dlopen.cc
@@ -23,6 +23,9 @@ openlib (const char *filename)
{
void *h = dlopen (filename, RTLD_LAZY);
+ if (filename == NULL)
+ return 0;
+
if (h == NULL)
return 0;
if (dlclose (h) != 0)
@@ -33,5 +36,8 @@ openlib (const char *filename)
int
main (void)
{
+ /* Dummy call to get the function always compiled in. */
+ openlib (NULL);
+
return 0;
}
diff --git a/gdb/version.in b/gdb/version.in
index b50a7c4..4db0407 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.50.20101011-cvs
+7.2.50.20101012-cvs
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 5336e46..43a585d 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,13 @@
+2010-10-12 Andreas Schwab <schwab@linux-m68k.org>
+
+ * m68k-opc.c (m68k_opcodes): Move fnop before fbf.
+
+2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
+
+ * s390-opc.c: Make the instruction masks for the load/store on
+ condition instructions to cover the condition code mask as well.
+ * s390-opc.txt: lgoc -> locg and stgoc -> stocg.
+
2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
Jiang Jilin <freephp@gmail.com>
diff --git a/opcodes/m68k-opc.c b/opcodes/m68k-opc.c
index 71e712e..0f6852f 100644
--- a/opcodes/m68k-opc.c
+++ b/opcodes/m68k-opc.c
@@ -1,6 +1,6 @@
/* Opcode table for m680[012346]0/m6888[12]/m68851/mcf5200.
Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2009
+ 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2009, 2010
Free Software Foundation, Inc.
This file is part of the GNU opcodes library.
@@ -529,6 +529,9 @@ const struct m68k_opcode m68k_opcodes[] =
{"fatanhx", 4, two(0xF000, 0x480D), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
{"fatanhx", 4, two(0xF000, 0x000D), two(0xF1C0, 0xE07F), "IiFt", mfloat },
+/* This is the same as `fbf .+2'. */
+{"fnop", 4, two(0xF280, 0x0000), two(0xFFFF, 0xFFFF), "Ii", mfloat | cfloat },
+
{"fbeq", 2, one(0xF081), one(0xF1FF), "IdBW", mfloat | cfloat },
{"fbf", 2, one(0xF080), one(0xF1FF), "IdBW", mfloat | cfloat },
{"fbge", 2, one(0xF093), one(0xF1FF), "IdBW", mfloat | cfloat },
@@ -1084,8 +1087,6 @@ const struct m68k_opcode m68k_opcodes[] =
{"fdnegx", 4, two(0xF000, 0x485E), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
{"fdnegx", 4, two(0xF000, 0x005E), two(0xF1C0, 0xE07F), "IiFt", m68040up },
-{"fnop", 4, two(0xF280, 0x0000), two(0xFFFF, 0xFFFF), "Ii", mfloat | cfloat },
-
{"fremb", 4, two(0xF000, 0x5825), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
{"fremd", 4, two(0xF000, 0x5425), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
{"freml", 4, two(0xF000, 0x4025), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
diff --git a/opcodes/s390-opc.c b/opcodes/s390-opc.c
index fea838e..2f1487d 100644
--- a/opcodes/s390-opc.c
+++ b/opcodes/s390-opc.c
@@ -426,7 +426,7 @@ const struct s390_operand s390_operands[] =
#define MASK_RSY_AARD { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
#define MASK_RSY_CCRD { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
#define MASK_RSY_RDRM { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
-#define MASK_RSY_RDR0 { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff }
+#define MASK_RSY_RDR0 { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff }
#define MASK_RXE_FRRD { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
#define MASK_RXE_RRRD { 0xff, 0x00, 0x00, 0x00, 0xff, 0xff }
#define MASK_RXF_FRRDF { 0xff, 0x00, 0x00, 0x00, 0x0f, 0xff }
diff --git a/opcodes/s390-opc.txt b/opcodes/s390-opc.txt
index 9393ba4..e9b6ffc 100644
--- a/opcodes/s390-opc.txt
+++ b/opcodes/s390-opc.txt
@@ -1008,12 +1008,12 @@ b9e2 locgr RRF_U0RR "load on condition 64 bit" z196 zarch
b9e200000000 locgr*16 RRF_00RR "load on condition 64 bit" z196 zarch
eb00000000f2 loc RSY_RDRM "load on condition 32 bit" z196 zarch
eb00000000f2 loc*12 RSY_RDR0 "load on condition 32 bit" z196 zarch
-eb00000000e2 lgoc RSY_RDRM "load on condition 64 bit" z196 zarch
-eb00000000e2 lgoc*12 RSY_RDR0 "load on condition 64 bit" z196 zarch
+eb00000000e2 locg RSY_RDRM "load on condition 64 bit" z196 zarch
+eb00000000e2 locg*12 RSY_RDR0 "load on condition 64 bit" z196 zarch
eb00000000f3 stoc RSY_RDRM "store on condition 32 bit" z196 zarch
eb00000000f3 stoc*12 RSY_RDR0 "store on condition 32 bit" z196 zarch
-eb00000000e3 stgoc RSY_RDRM "store on condition 64 bit" z196 zarch
-eb00000000e3 stgoc*12 RSY_RDR0 "store on condition 64 bit" z196 zarch
+eb00000000e3 stocg RSY_RDRM "store on condition 64 bit" z196 zarch
+eb00000000e3 stocg*12 RSY_RDR0 "store on condition 64 bit" z196 zarch
b9f8 ark RRF_R0RR2 "add 3 operands 32 bit" z196 zarch
b9e8 agrk RRF_R0RR2 "add 3 operands 64 bit" z196 zarch
ec00000000d8 ahik RIE_RRI0 "add immediate 3 operands 32 bit" z196 zarch
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-11 9:21 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-10-11 9:21 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via b59c334f41d4a793352df0563f6d7ba0f1166342 (commit)
via ce9ec74d6dc0539f7f0a1dde42718831fbecd7db (commit)
via 12dec400fbd5feede3977ccafe6c7d8e75852f89 (commit)
via 0cde3f1656516b8d4932048b214702faa4628aeb (commit)
from d2970815195013ac303585ae4272b721d168e367 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit b59c334f41d4a793352df0563f6d7ba0f1166342
Merge: d297081 ce9ec74
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Oct 11 11:21:48 2010 +0200
Merge remote branch 'gdb/master'
commit ce9ec74d6dc0539f7f0a1dde42718831fbecd7db
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Oct 11 08:50:28 2010 +0000
gdb/
Fix attaching to re-prelinked executables on ppc64.
* solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
initialize it, try to adjust FILESZ field by it.
commit 12dec400fbd5feede3977ccafe6c7d8e75852f89
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Oct 11 08:47:47 2010 +0000
gdb/testsuite/
Fix missing _start PIE relocation on ppc64 due to stop on dl_main.
* break-interp.exp (reach): Move the core body ...
(reach_1): ... here. Use stop-on-solib-events for _dl_debug_state.
(test_ld): Provide always real argument, even to the linker. Replace
dl_main by _dl_debug_state.
commit 0cde3f1656516b8d4932048b214702faa4628aeb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Oct 11 08:45:11 2010 +0000
gdb/testsuite/
Fix results of prelinked PIEs on ppc*.
* gdb.base/break-interp.exp (reach, test_core, test_attach_gdb):
Accept also DISPLACEMENT "PRESENT".
(main): Replace "ZERO" displacements by "PRESENT".
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 6 ++
gdb/solib-svr4.c | 58 ++++++++++++++
gdb/testsuite/ChangeLog | 15 ++++
gdb/testsuite/gdb.base/break-interp.exp | 132 ++++++++++++++++++++++---------
4 files changed, 174 insertions(+), 37 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7341c92..5f3b259 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix attaching to re-prelinked executables on ppc64.
+ * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
+ initialize it, try to adjust FILESZ field by it.
+
2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
* tracepoint.c (merge_uploaded_trace_state_variables): Only print
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 9ad67fb..db21360 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -1844,6 +1844,7 @@ svr4_exec_displacement (CORE_ADDR *displacementp)
Elf32_External_Phdr *phdr2p;
gdb_byte *buf_vaddr_p, *buf_paddr_p;
CORE_ADDR vaddr, paddr;
+ asection *plt2_asect;
phdrp = &((Elf32_External_Phdr *) buf)[i];
buf_vaddr_p = (gdb_byte *) &phdrp->p_vaddr;
@@ -1869,6 +1870,34 @@ svr4_exec_displacement (CORE_ADDR *displacementp)
if (memcmp (phdrp, phdr2p, sizeof (*phdrp)) == 0)
continue;
+ /* prelink can convert .plt SHT_NOBITS to SHT_PROGBITS. */
+ plt2_asect = bfd_get_section_by_name (exec_bfd, ".plt");
+ if (plt2_asect)
+ {
+ int content2;
+ gdb_byte *buf_filesz_p = (gdb_byte *) &phdrp->p_filesz;
+ CORE_ADDR filesz;
+
+ content2 = (bfd_get_section_flags (exec_bfd, plt2_asect)
+ & SEC_HAS_CONTENTS) != 0;
+
+ filesz = extract_unsigned_integer (buf_filesz_p, 4,
+ byte_order);
+
+ /* PLT2_ASECT is from on-disk file (exec_bfd) while
+ FILESZ is from the in-memory image. */
+ if (content2)
+ filesz += bfd_get_section_size (plt2_asect);
+ else
+ filesz -= bfd_get_section_size (plt2_asect);
+
+ store_unsigned_integer (buf_filesz_p, 4, byte_order,
+ filesz);
+
+ if (memcmp (phdrp, phdr2p, sizeof (*phdrp)) == 0)
+ continue;
+ }
+
ok = 0;
break;
}
@@ -1921,6 +1950,7 @@ svr4_exec_displacement (CORE_ADDR *displacementp)
Elf64_External_Phdr *phdr2p;
gdb_byte *buf_vaddr_p, *buf_paddr_p;
CORE_ADDR vaddr, paddr;
+ asection *plt2_asect;
phdrp = &((Elf64_External_Phdr *) buf)[i];
buf_vaddr_p = (gdb_byte *) &phdrp->p_vaddr;
@@ -1946,6 +1976,34 @@ svr4_exec_displacement (CORE_ADDR *displacementp)
if (memcmp (phdrp, phdr2p, sizeof (*phdrp)) == 0)
continue;
+ /* prelink can convert .plt SHT_NOBITS to SHT_PROGBITS. */
+ plt2_asect = bfd_get_section_by_name (exec_bfd, ".plt");
+ if (plt2_asect)
+ {
+ int content2;
+ gdb_byte *buf_filesz_p = (gdb_byte *) &phdrp->p_filesz;
+ CORE_ADDR filesz;
+
+ content2 = (bfd_get_section_flags (exec_bfd, plt2_asect)
+ & SEC_HAS_CONTENTS) != 0;
+
+ filesz = extract_unsigned_integer (buf_filesz_p, 8,
+ byte_order);
+
+ /* PLT2_ASECT is from on-disk file (exec_bfd) while
+ FILESZ is from the in-memory image. */
+ if (content2)
+ filesz += bfd_get_section_size (plt2_asect);
+ else
+ filesz -= bfd_get_section_size (plt2_asect);
+
+ store_unsigned_integer (buf_filesz_p, 8, byte_order,
+ filesz);
+
+ if (memcmp (phdrp, phdr2p, sizeof (*phdrp)) == 0)
+ continue;
+ }
+
ok = 0;
break;
}
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9b34199..865568c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,18 @@
+2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix missing _start PIE relocation on ppc64 due to stop on dl_main.
+ * break-interp.exp (reach): Move the core body ...
+ (reach_1): ... here. Use stop-on-solib-events for _dl_debug_state.
+ (test_ld): Provide always real argument, even to the linker. Replace
+ dl_main by _dl_debug_state.
+
+2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix results of prelinked PIEs on ppc*.
+ * gdb.base/break-interp.exp (reach, test_core, test_attach_gdb):
+ Accept also DISPLACEMENT "PRESENT".
+ (main): Replace "ZERO" displacements by "PRESENT".
+
2010-10-08 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/oranking.exp: New test.
diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp
index 6566baa..4025083 100644
--- a/gdb/testsuite/gdb.base/break-interp.exp
+++ b/gdb/testsuite/gdb.base/break-interp.exp
@@ -108,45 +108,87 @@ proc strip_debug {dest} {
}
}
-# `runto' does not check we stopped really at the function we specified.
-# DISPLACEMENT can be "NONE", "ZERO" or "NONZERO"
-proc reach {func command displacement} {
+# Implementation of reach.
+
+proc reach_1 {func command displacement} {
global gdb_prompt expect_out
- global pf_prefix
- set old_ldprefix $pf_prefix
- lappend pf_prefix "reach-$func:"
+ if {$func == "_dl_debug_state"} {
+ # Breakpoint on _dl_debug_state can have problems due to its overlap
+ # with the existing internal breakpoint from GDB.
+ gdb_test_no_output "set stop-on-solib-events 1"
+ } elseif {! [gdb_breakpoint $func allow-pending]} {
+ return
+ }
- if [gdb_breakpoint $func allow-pending] {
- set test "reach"
- set test_displacement "seen displacement message as $displacement"
- gdb_test_multiple $command $test {
- -re "Using PIE \\(Position Independent Executable\\) displacement (0x\[0-9a-f\]+) " {
- # Missing "$gdb_prompt $" is intentional.
- if {$expect_out(1,string) == "0x0"} {
- set case "ZERO"
- } else {
- set case "NONZERO"
- }
- if {$displacement == $case} {
- pass $test_displacement
- set displacement "FOUND-$displacement"
- } else {
- fail $test_displacement
- }
- exp_continue
+ set test "reach"
+ set test_displacement "seen displacement message as $displacement"
+ set debug_state_count 0
+ gdb_test_multiple $command $test {
+ -re "Using PIE \\(Position Independent Executable\\) displacement (0x\[0-9a-f\]+) " {
+ # Missing "$gdb_prompt $" is intentional.
+ if {$expect_out(1,string) == "0x0"} {
+ set case "ZERO"
+ } else {
+ set case "NONZERO"
+ }
+ if {$displacement == $case || $displacement == "PRESENT"} {
+ pass $test_displacement
+ set displacement "FOUND-$displacement"
+ } else {
+ fail $test_displacement
}
- -re "Breakpoint \[0-9\]+, \\.?$func \\(.*\\) at .*:\[0-9\]+\r\n.*$gdb_prompt $" {
+ exp_continue
+ }
+ -re "Breakpoint \[0-9\]+, \\.?$func \\(.*\\) at .*:\[0-9\]+\r\n.*$gdb_prompt $" {
+ if {$func == "_dl_debug_state"} {
+ fail $test
+ } else {
pass $test
}
- -re "Breakpoint \[0-9\]+, \[0-9xa-f\]+ in \\.?$func \\(\\).*\r\n$gdb_prompt $" {
+ }
+ -re "Breakpoint \[0-9\]+, \[0-9xa-f\]+ in \\.?$func \\(\\).*\r\n$gdb_prompt $" {
+ if {$func == "_dl_debug_state"} {
+ fail $test
+ } else {
pass $test
}
}
- if ![regexp {^(NONE|FOUND-.*)$} $displacement] {
- fail $test_displacement
+ -re "Stopped due to shared library event\r\n$gdb_prompt $" {
+ if {$func == "_dl_debug_state"} {
+ if {$debug_state_count == 0} {
+ # First stop does not yet relocate the _start function
+ # descriptor on ppc64.
+ set debug_state_count 1
+ send_gdb "continue\n"
+ exp_continue
+ } else {
+ pass $test
+ }
+ } else {
+ fail $test
+ }
}
}
+ if ![regexp {^(NONE|FOUND-.*)$} $displacement] {
+ fail $test_displacement
+ }
+
+ if {$func == "_dl_debug_state"} {
+ gdb_test_no_output "set stop-on-solib-events 0"
+ }
+}
+
+# `runto' does not check we stopped really at the function we specified.
+# DISPLACEMENT can be "NONE" for no message to be present, "ZERO" for
+# displacement of 0 bytes to be present, "NONZERO" for displacement of non-0
+# bytes to be present and "PRESENT" if both "ZERO" and "NONZERO" are valid.
+proc reach {func command displacement} {
+ global pf_prefix
+ set old_ldprefix $pf_prefix
+ lappend pf_prefix "reach-$func:"
+
+ reach_1 $func $command $displacement
set pf_prefix $old_ldprefix
}
@@ -184,7 +226,7 @@ proc test_core {file displacement} {
} else {
set case "NONZERO"
}
- if {$displacement == $case} {
+ if {$displacement == $case || $displacement == "PRESENT"} {
pass $test_displacement
set displacement "FOUND-$displacement"
} else {
@@ -241,7 +283,7 @@ proc test_attach_gdb {file pid displacement prefix} {
} else {
set case "NONZERO"
}
- if {$displacement == $case} {
+ if {$displacement == $case || $displacement == "PRESENT"} {
pass $test_displacement
set displacement "FOUND-$displacement"
} else {
@@ -342,9 +384,18 @@ proc test_ld {file ifmain trynosym displacement} {
# prevents that from happening. So turn it off.
gdb_test "set disable-randomization off"
- reach "dl_main" "run segv" $displacement
+ if $ifmain {
+ gdb_test_no_output "set args segv"
+ } else {
+ global objdir binfile_test
+
+ # ld.so needs some executable to run to reach _dl_debug_state.
+ gdb_test_no_output "set args ${objdir}/${subdir}/$binfile_test"
+ }
+
+ reach "_dl_debug_state" "run" $displacement
- gdb_test "bt" "#0 +\[^\r\n\]*\\mdl_main\\M.*" "dl bt"
+ gdb_test "bt" "#0 +\[^\r\n\]*\\m_dl_debug_state\\M.*" "dl bt"
if $ifmain {
reach "main" continue "NONE"
@@ -356,7 +407,7 @@ proc test_ld {file ifmain trynosym displacement} {
# Try re-run if the new PIE displacement takes effect.
gdb_test "kill" "" "kill" {Kill the program being debugged\? \(y or n\) } "y"
- reach "dl_main" "run segv" $displacement
+ reach "_dl_debug_state" "run" $displacement
if $ifmain {
test_core $file $displacement
@@ -389,7 +440,7 @@ proc test_ld {file ifmain trynosym displacement} {
gdb_test "exec-file $file" "exec-file $escapedfile" "load"
if $ifmain {
- reach "dl_main" run $displacement
+ reach "_dl_debug_state" run $displacement
set test "info files"
set entrynohex ""
@@ -428,7 +479,7 @@ proc test_ld {file ifmain trynosym displacement} {
} else {
set case "NONZERO"
}
- if {$displacement == $case} {
+ if {$displacement == $case || $displacement == "PRESENT"} {
pass $test_displacement
set displacement "FOUND-$displacement"
} else {
@@ -533,7 +584,10 @@ foreach ldprelink {NO YES} {
if {$ldprelink == "NO"} {
set displacement "NONZERO"
} else {
- set displacement "ZERO"
+ # x86* kernel loads prelinked PIE binary at its prelinked address
+ # but ppc* kernel loads it at a random address. prelink normally
+ # skips PIE binaries during the system scan.
+ set displacement "PRESENT"
}
test_ld $interp 0 [expr {$ldsepdebug == "NO"}] $displacement
@@ -582,7 +636,11 @@ foreach ldprelink {NO YES} {
} elseif {$binprelink == "NO"} {
set displacement "NONZERO"
} else {
- set displacement "ZERO"
+ # x86* kernel loads prelinked PIE binary at its
+ # prelinked address but ppc* kernel loads it at
+ # a random address. prelink normally skips PIE
+ # binaries during the system scan.
+ set displacement "PRESENT"
}
if {[prelink$binprelink $relink_args [file tail $exec]]
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-11 8:47 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-10-11 8:47 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via d2970815195013ac303585ae4272b721d168e367 (commit)
via 271cfeec5a425c90aa90583dcaf6bf988695a047 (commit)
via df5ec02eb8b23a7706f93d40e1fb48b0428629fb (commit)
via d336ad88e4c37d54669dbef15636e110ca353008 (commit)
via da68190916ac987538f5c86a3775bffc13e2768e (commit)
via dcc7e051e31667b6788b8bf42165a3f9cdcd25ba (commit)
via e61b7c14491a0e4018c58e4e61887488108d1a7d (commit)
via 97ef8570a549af75a57816e94d6bd1a36c8dd220 (commit)
via 3831d7e6a2f9dddb67c40b21ed1582a2afbc45fa (commit)
via 225a0a1ee6f15f73619d42820036f9fb7f899598 (commit)
via 5b2ee1fb0fc1fd0064f3a70062996be8dfa835de (commit)
via f05040bf6e7ece806da2ba0943598312e8187c99 (commit)
via bba6cada1d513421728b04c5a9078bd0066186e0 (commit)
via 3f08e6e0e30cc27608f8c257e9e3adc55cee9f33 (commit)
via cf96b9465bb8c84fa4e12b8116cfad216b130f13 (commit)
via 77a7b168d109e1a85571130cea413017adf7ebf9 (commit)
via 8be941b9ba9ef001a45aed2349dd0cc619a2024f (commit)
via d01f999fb76e39c651b8cc9ec0e9a54ce204041f (commit)
via c0db44e3c62db256f853445359619b52f6f916d4 (commit)
via 326a8778de585aa8bf8358409e735c253e53e613 (commit)
via dd27d5c2d16490fdaaec82a6b242ae29229d6e47 (commit)
via 2b95718c85fe50547c0ac1670c3f53d64020dd00 (commit)
via b036112d2e8202b627404901bdf7d81152d394d9 (commit)
via 7cf0f2402656595e50a390bcdf78dad3bc30f537 (commit)
via 18fb65f478a4e8288bd9513728ae1e806a519e5c (commit)
via 7d08342da7ff47c7a075e31af843927b93cefa73 (commit)
via b7ea7aba0499438dd4d230cc6577f9d2f108a294 (commit)
via 6f62fad7e30dbb269e40bd71957e88e35e4c1d90 (commit)
via 0e7a75f6f7e3894d9574bb5e3b0fe9ca5e2ea0e6 (commit)
via 43f222f67cc4a0aeeb966c7a9f190eea20459f54 (commit)
via 15ef70c19bfe9f903856764776e031ba6c3bb6fa (commit)
via c0ba854aa9cbdfa8f19402938771525fc9a6f62c (commit)
via 53ccce96816da4cc81a751df4cb23e1cdda68674 (commit)
via 943f2dab3dd994445a06e31fed55d3465bb5ed6b (commit)
via 7330bf514b8675bd531eb2be35436e20454eddf4 (commit)
via 526ef4cbd8c9d81b03e3959a6e39b428563cc09e (commit)
via b43844688379a4524c11ae351dce0720089b7444 (commit)
via 4df22d322881d57e16ad4cbee187d0d7487f20df (commit)
via 423f54f27c6911e87cb6a35fbce794d307fe7cf5 (commit)
via ebd0153e90ab7856539a14827aeda9a74473a4b9 (commit)
via c89aa7b89cf6270eeabf351018a0cd429b6f0320 (commit)
via af056d0eca88e1065dae3727d5e66e7d2612dc3d (commit)
via c03747ba4ff28b09249912ccf718dedb8287e8f8 (commit)
via 0c27c473ae34636414ea12e3d7431663a10a0d75 (commit)
via 1ec52b975c4c261732902aa97a89b26f6870302b (commit)
via b1244daa8637c7d9eaaf551f5c999945762f97f1 (commit)
from 367f20d2bdb4049fd4d6a129d64a9efb01dc3054 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit d2970815195013ac303585ae4272b721d168e367
Merge: 367f20d 271cfee
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Mon Oct 11 09:47:27 2010 +0100
Merge remote branch 'gdb/master'
commit 271cfeec5a425c90aa90583dcaf6bf988695a047
Author: tschwinge <tschwinge>
Date: Mon Oct 11 07:38:51 2010 +0000
* elf32-arm.c (elf32_arm_final_link_relocate)
(elf32_arm_relocate_section): Handle relocations against STN_UNDEF.
commit df5ec02eb8b23a7706f93d40e1fb48b0428629fb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Oct 11 06:10:35 2010 +0000
opcodes/
* Makefile.am (libopcodes_a_SOURCES): New as empty.
* Makefile.in: Regenerate.
commit d336ad88e4c37d54669dbef15636e110ca353008
Author: Dave Korn <dave.korn@artimi.com>
Date: Mon Oct 11 00:21:44 2010 +0000
* elflink.c (_bfd_elf_link_output_relocs): Delete unused variable
"output_rel_hdr".
commit da68190916ac987538f5c86a3775bffc13e2768e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Oct 11 00:00:33 2010 +0000
*** empty log message ***
commit dcc7e051e31667b6788b8bf42165a3f9cdcd25ba
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Oct 10 23:00:06 2010 +0000
daily update
commit e61b7c14491a0e4018c58e4e61887488108d1a7d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 10 00:00:33 2010 +0000
*** empty log message ***
commit 97ef8570a549af75a57816e94d6bd1a36c8dd220
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Oct 9 23:00:05 2010 +0000
daily update
commit 3831d7e6a2f9dddb67c40b21ed1582a2afbc45fa
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Oct 9 07:56:18 2010 +0000
Regenerate for bool -> bool_ change
commit 225a0a1ee6f15f73619d42820036f9fb7f899598
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Oct 9 06:50:21 2010 +0000
cgen/
* utils-cgen.scm (gen-attr-accessors): Rename bool attribute to bool_.
* cpu/mep.opc (mep_cgen_insn_supported): Ditto.
include/opcode/
* cgen.h (CGEN_ATTR, CGEN_ATTR_TYPE): Rename bool attribute to bool_.
(CGEN_ATTR_BOOLS, CGEN_ATTR_CGEN_INSN_ALIAS_VALUE): Likewise.
opcodes/
* fr30-desc.h: Regenerate.
* frv-desc.h: Regenerate.
* ip2k-desc.h: Regenerate.
* iq2000-desc.h: Regenerate.
* lm32-desc.h: Regenerate.
* m32c-desc.h: Regenerate.
* m32r-desc.h: Regenerate.
* mep-desc.h: Regenerate.
* mep-opc.c: Regenerate.
* mt-desc.h: Regenerate.
* openrisc-desc.h: Regenerate.
* xc16x-desc.h: Regenerate.
* xstormy16-desc.h: Regenerate.
commit 5b2ee1fb0fc1fd0064f3a70062996be8dfa835de
Author: Jeff Johnston <jjohnstn@redhat.com>
Date: Sat Oct 9 02:29:34 2010 +0000
2010-10-08 Bernd Schmidt <bernds@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* COPYING.LIBGLOSS: Add National Semiconductor and CodeSourcery
notices.
* COPYING.NEWLIB: Add Texas Instruments notice.
commit f05040bf6e7ece806da2ba0943598312e8187c99
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 9 00:00:32 2010 +0000
*** empty log message ***
commit bba6cada1d513421728b04c5a9078bd0066186e0
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Oct 8 23:00:05 2010 +0000
daily update
commit 3f08e6e0e30cc27608f8c257e9e3adc55cee9f33
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Oct 8 22:34:35 2010 +0000
* reloc.c (BFD_RELOC_ARM_HVC): Add.
* libbfd.h: Regenerate.
commit cf96b9465bb8c84fa4e12b8116cfad216b130f13
Author: Daniel Jacobowitz <dan@debian.org>
Date: Fri Oct 8 20:45:20 2010 +0000
* tracepoint.c (merge_uploaded_trace_state_variables): Only print
messages if info_verbose.
commit 77a7b168d109e1a85571130cea413017adf7ebf9
Author: swagiaal <swagiaal>
Date: Fri Oct 8 18:28:46 2010 +0000
Test case for unimplemented overload cases.
2010-10-08 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/oranking.exp: New test.
* gdb.cp/oranking.cc: New test program.
commit 8be941b9ba9ef001a45aed2349dd0cc619a2024f
Author: kwerner <kwerner>
Date: Fri Oct 8 16:50:51 2010 +0000
gdb:
* valops.c (value_cast): Handle vector types.
* valarith.c (value_binop): Widen scalar to vector if appropriate.
gdb/testsuite:
* gdb.base/gnu_vector.c (ia, ib, fa, fb): New variables.
* gdb.base/gnu_vector.exp: Add tests for scalar to vector widening.
commit d01f999fb76e39c651b8cc9ec0e9a54ce204041f
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Fri Oct 8 15:54:17 2010 +0000
2010-10-08 Kai Tietz <kai.tietz@onevision.com>
* pei-x86_64.c (find_next_xdata_or_end): Removed.
(pex64_dump_xdata): Remove arguments stop, onaline,
and pdata. New argument endx. Print term "none"
instead of misleading "CFA".
(sort_xdata_arr): New function.
(pex64_bfd_print_pdata): Use binary search/sort for unwind-RVAs
instead of searching quadratic.
commit c0db44e3c62db256f853445359619b52f6f916d4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Oct 8 14:00:44 2010 +0000
Fix build with -DDEBUG=7
commit 326a8778de585aa8bf8358409e735c253e53e613
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Oct 8 13:31:07 2010 +0000
* arm-tdep.c (thumb_expand_immediate): New function.
(thumb_instruction_changes_pc): Likewise.
(thumb2_instruction_changes_pc): Likewise.
(thumb_analyze_prologue): Handle 32-bit Thumb instructions during
prologue parsing. Improved support for optimized code.
(thumb_scan_prologue): Do not reply on line-number information,
use same heuristics as arm_scan_prologue insead.
(skip_prologue_function): Accept functions
"__tls_get_addr" and "__aeabi_read_tp".
commit dd27d5c2d16490fdaaec82a6b242ae29229d6e47
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Oct 8 13:24:53 2010 +0000
2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
Daniel Jacobowitz <dan@codesourcery.com>
* arm-tdep.c (thumb_in_function_epilogue_p)
(arm_in_function_epilogue_p): New.
(arm_gdbarch_init): Install arm_in_function_epilogue_p as
gdbarch_in_function_epilogue_p callback.
commit 2b95718c85fe50547c0ac1670c3f53d64020dd00
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 8 00:00:32 2010 +0000
*** empty log message ***
commit b036112d2e8202b627404901bdf7d81152d394d9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Oct 7 23:00:05 2010 +0000
daily update
commit 7cf0f2402656595e50a390bcdf78dad3bc30f537
Author: Dave Korn <dave.korn@artimi.com>
Date: Thu Oct 7 20:50:01 2010 +0000
* configure.ac (build_lto_plugin): New shell variable.
(--enable-lto): Turn on by default for all non-ELF platforms that
have had LTO support added so far. Set build_lto_plugin appropriately
for both ELF and non-ELF.
(configdirs): Add lto-plugin or not based on build_lto_plugin.
* configure: Regenerate.
commit 18fb65f478a4e8288bd9513728ae1e806a519e5c
Author: Doug Evans <dje@google.com>
Date: Thu Oct 7 19:34:51 2010 +0000
* cc-with-index.sh (output_file): Default to a.out.
commit 7d08342da7ff47c7a075e31af843927b93cefa73
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Thu Oct 7 19:25:44 2010 +0000
Add missing ChangeLog entry for toplevel configure from 2010-07-26.
commit b7ea7aba0499438dd4d230cc6577f9d2f108a294
Author: Doug Evans <dje@google.com>
Date: Thu Oct 7 17:23:28 2010 +0000
* dwarf2read.c (mapped_index): Rename member index_table to
symbol_table and index_table_slots to symbol_table_slots.
All uses updated.
(create_symbol_hash_table): Renamed from create_index_table.
All callers updated.
(add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
(write_hash_table): Rename local index_table to symbol_hash_table.
commit 6f62fad7e30dbb269e40bd71957e88e35e4c1d90
Author: Doug Evans <dje@google.com>
Date: Thu Oct 7 17:02:06 2010 +0000
* addrmap.h (addrmap_foreach_fn): New typedef.
(addrmap_foreach): Declare.
* addrmap.c (struct addrmap_funcs): New member foreach.
(addrmap_foreach): New function.
(addrmap_fixed_foreach): New function.
(addrmap_fixed_funcs): Update.
(struct mutable_foreach_data): New struct.
(addrmap_mutable_foreach_worker): New function.
(addrmap_mutable_foreach): New function.
(addrmap_mutable_funcs): Update.
commit 0e7a75f6f7e3894d9574bb5e3b0fe9ca5e2ea0e6
Author: DJ Delorie <dj@delorie.com>
Date: Thu Oct 7 16:20:35 2010 +0000
merge from gcc
commit 43f222f67cc4a0aeeb966c7a9f190eea20459f54
Author: Bernd Schmidt <bernd.schmidt@analog.com>
Date: Thu Oct 7 11:28:49 2010 +0000
gas/
* config/tc-tic6x.c (tic6x_try_encode): Correct encoding of fstg field
in SPKERNEL instructions.
opcodes/
* tic6x-dis.c (print_insn_tic6x): Correct decoding of fstg field
in SPKERNEL instructions.
gas/testsuite/
* gas/tic6x/insns-c674x-sploop.d: Add two more sploop/spkernel tests.
* gas/tic6x/insns-c674x-sploop.s: Likewise.
commit 15ef70c19bfe9f903856764776e031ba6c3bb6fa
Author: Paul N. Hilfinger <hilfinger@adacore.com>
Date: Thu Oct 7 08:32:36 2010 +0000
Correct dict_hash to our most recent version.
Several changes to dict_hash from Adacore's local version were inadvertantly
left out of the last change to that function. These changes conservatively
cause dict_hash to revert to msymbol_hash_iw in more cases where the symbol
being hashed is known not to be Ada-encoded. This avoids a few cases where
the function hashes large groups of names with similar prefixes to the same
value.
Changelog:
gdb/
* dictionary.c (dict_hash): Revert to msymbol_hash_iw in
more cases.
commit c0ba854aa9cbdfa8f19402938771525fc9a6f62c
Author: Paul N. Hilfinger <hilfinger@adacore.com>
Date: Thu Oct 7 07:13:49 2010 +0000
Rework symbol searches to move Ada-specific stuff to ada-lang.c.
This is a clean-up of some of our symbol-lookup machinery to pull some
kludgy Ada-specific definitions out of psymtab.c. In place of
map_ada_symtabs and ada_lookup_partial_symbol, we have a method
map_matching_symbols, which searches through all symbol tables and
partial symbol tables looking for a symbol that matches according to
a matching function that is passed as a parameter. This requires some
care, because partial symbol tables speed up searches by binary search,
while full symbol tables use hashing. To call map_matching_symbols, therefore,
you may need to supply both a matching function that is compatible with the
dictionary hash function and an ordering relation that is compatible with
strcmp_iw, which is used to order partial symbol tables.
Having added this general routine to psymtab.c, we use it in ada-lang.c
to rework add_non_local_symbols (now renamed add_nonlocal_symbols).
Changelog:
gdb/
* ada-lang.c (full_match): Declare.
(ada_match_name): Rename to match_name (we should avoid prefixing static
symbols with "ada_").
(match_name): New name for ada_match_name.
(struct ada_psym_data): Remove and replace with...
(struct match_data): User data for map_matching_symbols.
(ada_add_psyms): Remove.
(aux_add_nonlocal_symbols): New function, used as callback for
map_matching_symbols.
(compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
symbols.
(ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
(add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
Rework to use map_matching_symbols instead of map_ada_symtabs.
(ada_lookup_symbol_list): Use add_nonlocal_symbols.
* psymtab.c: Include dependency on dictionary.h.
(match_partial_symbol): New function.
(ada_lookup_partial_symbol): Remove.
(map_block): New function, auxiliary to map_matching_symbols_psymtab.
(map_matching_symbols_psymtab): New function.
(psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
* symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
commit 53ccce96816da4cc81a751df4cb23e1cdda68674
Author: Paul N. Hilfinger <hilfinger@adacore.com>
Date: Thu Oct 7 06:53:42 2010 +0000
Extend hashed symbol dictionaries to work with Ada
This patch allows Ada to speed up symbol lookup by using the facilities
in dictionary.[ch] for hashed lookups. First, we generalize dictionary
search to allow clients to specify any matching function compatible with
the hashing function. Next, we modify the hashing algorithm so that symbols
that wild-match a name hash to the same value. Finally, we modify Ada
symbol lookup to use these facilities.
Because this patch touches on a hashing algorithm used by other
languages, I took the precaution of doing a speed test on a list of
about 12000 identifiers (repeatedly inserting all of them into a table
and then doing a lookup on a million names at random, thus testing the
speed of the hashing algorithm and how well it distributed names).
There was actually a slight speedup, probably as a result of open-
coding some of the tests in msymbol_hash_iw. By design, the revised
hashing algorithm produces the same results as the original on most
"normal" C identifiers.
We considered augmenting the dictionary interface still further by allowing
different hashing algorithms for different dictionaries, based on the
(supposed) language of the symbols in that dictionary. While this produced
better isolation of the changes to Ada programs, the additional flexibility
also complicated the dictionary interface. I'd prefer to keep things
simple for now.
Tested w/o regressions on Linux i686.
ChangeLog:
gdb/
* ada-lang.c (ada_match_name): Use new API for wild_match.
(wild_match): Change API to be consistent with that of strcmp_iw;
return 0 for a match, and switch operand order.
(full_match): New function.
(ada_add_block_symbols): Use dict_iter_match_{first,next} for
matching to allow use of hashing.
* dictionary.c (struct dict_vector): Generalize iter_name_first,
iter_name_next ot iter_match_first, iter_match_next.
(iter_name_first_hashed): Replace with iter_match_first_hashed.
(iter_name_next_hashed): Replace with iter_match_next_hashed.
(iter_name_first_linear): Replace with iter_match_first_linear.
(iter_name_next_linear): Replace with iter_match_next_linear.
(dict_iter_name_first): Re-implement to use dict_iter_match_first.
(dict_iter_name_next): Re-implement to use dict_iter_match_next.
(dict_iter_match_first): New function.
(dict_iter_match_next): New function.
(dict_hash): New function.
* dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
* psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
commit 943f2dab3dd994445a06e31fed55d3465bb5ed6b
Author: Doug Evans <dje@google.com>
Date: Thu Oct 7 00:18:19 2010 +0000
* data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
commit 7330bf514b8675bd531eb2be35436e20454eddf4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Oct 7 00:00:02 2010 +0000
*** empty log message ***
commit 526ef4cbd8c9d81b03e3959a6e39b428563cc09e
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Wed Oct 6 23:45:44 2010 +0000
* callback.c (os_lseek): Call wrap on lseek result.
commit b43844688379a4524c11ae351dce0720089b7444
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Wed Oct 6 23:44:33 2010 +0000
* traps.c (cris_break_13_handler): Pass lseek
offset parameter as sign-extended.
commit 4df22d322881d57e16ad4cbee187d0d7487f20df
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Wed Oct 6 23:41:20 2010 +0000
* sim/cris/c/seek3.c, sim/cris/c/seek4.c: New tests.
commit 423f54f27c6911e87cb6a35fbce794d307fe7cf5
Author: DJ Delorie <dj@delorie.com>
Date: Wed Oct 6 23:01:23 2010 +0000
merge from gcc
commit ebd0153e90ab7856539a14827aeda9a74473a4b9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Oct 6 23:00:05 2010 +0000
daily update
commit c89aa7b89cf6270eeabf351018a0cd429b6f0320
Author: Doug Evans <dje@google.com>
Date: Wed Oct 6 16:46:12 2010 +0000
* Makefile.in (REQUIRED_SUBDIRS): New var.
(subdir_do): Verify required subdir Makefiles exist.
commit af056d0eca88e1065dae3727d5e66e7d2612dc3d
Author: kwerner <kwerner>
Date: Wed Oct 6 16:13:34 2010 +0000
gdb:
* dwarf2read.c (read_tag_const_type): Handle const arrays.
gdb/testsuite:
* gdb.base/constvars.c (logical, lugged, luck, lunar, lumen, lurk,
lush, lynx) New constant.
* gdb.base/constvars.exp: Test const array types.
* gdb.dwarf2/dw2-strp.exp: Add const qualifier for ptype tests.
commit c03747ba4ff28b09249912ccf718dedb8287e8f8
Author: Doug Evans <dje@google.com>
Date: Wed Oct 6 16:02:42 2010 +0000
Create subdir data-directory.
* Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
data-directory/Makefile.in.
(SUBDIRS): Add data-directory.
(all): Remove xml-syscall-copy dependency.
(xml-syscall-copy): Moved to data-directory/Makefile.in as
stamp-syscalls.
(xml-syscall-install): Moved to data-directory/Makefile.in as
install-syscalls.
(install-only): Remove xml-syscall-install dependency.
(all-data-directory): New rule.
(data-directory/Makefile): New rule.
* configure.ac (AC_OUTPUT): Add data-directory/Makefile.
* configure: Regenerate.
* data-directory/Makefile.in: New file.
* python/lib/gdb/__init__.py: New file.
testsuite/
* gdb.base/catch-syscall.exp (do_syscall_tests): Update location
of syscall staging area.
commit 0c27c473ae34636414ea12e3d7431663a10a0d75
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Oct 6 15:24:37 2010 +0000
[Ada] Fix ARI warnings in advance_wild_match
gdb/ChangeLog:
* ada-lang.c (advance_wild_match): Delete local variable t2.
Adjust code accordingly. Minor reformatting.
commit 1ec52b975c4c261732902aa97a89b26f6870302b
Author: Paolo Bonzini <bonzini@gnu.org>
Date: Wed Oct 6 08:48:22 2010 +0000
really sync config/ChangeLog
commit b1244daa8637c7d9eaaf551f5c999945762f97f1
Author: kwerner <kwerner>
Date: Wed Oct 6 08:44:13 2010 +0000
gdb:
* gdbtypes.h (struct main_type): Remove flag_nottext.
(enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
(enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
(TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
* gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
of TYPE_FLAG_NOTTEXT.
(init_type): Remove the initialization of the flag_nottext field.
(gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
TYPE_FLAG_NOTTEXT.
* c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
gdb/testsuite:
* gdb.base/gnu_vector.c: Add variable c4.
* gdb.base/gnu_vector.exp: Add tests for character vector printing.
* gdb.arch/altivec-abi.exp: Fix expect pattern of character vectors.
-----------------------------------------------------------------------
Summary of changes:
COPYING.LIBGLOSS | 42 ++
COPYING.NEWLIB | 34 ++
ChangeLog | 21 +
bfd/ChangeLog | 40 ++-
bfd/elf.c | 5 +-
bfd/elf32-arm.c | 8 +-
bfd/elf32-rx.c | 4 +-
bfd/elf32-xtensa.c | 2 +-
bfd/elflink.c | 12 +-
bfd/libbfd.h | 1 +
bfd/pei-x86_64.c | 93 +++--
bfd/reloc.c | 2 +
bfd/version.h | 2 +-
config/ChangeLog | 19 +
configure | 13 +-
configure.ac | 13 +-
cpu/ChangeLog | 4 +
cpu/frv.opc | 3 +
gdb/ChangeLog | 154 ++++++++
gdb/Makefile.in | 70 ++--
gdb/ada-lang.c | 203 +++++++---
gdb/addrmap.c | 66 +++-
gdb/addrmap.h | 11 +
gdb/arm-tdep.c | 634 ++++++++++++++++++++++++++++--
gdb/c-valprint.c | 3 +-
gdb/cc-with-index.sh | 1 +
gdb/configure | 3 +-
gdb/configure.ac | 2 +-
gdb/data-directory/Makefile.in | 182 +++++++++
gdb/dictionary.c | 178 +++++++--
gdb/dictionary.h | 25 ++
gdb/dwarf2read.c | 100 +++--
gdb/gdbtypes.c | 10 +-
gdb/gdbtypes.h | 29 +-
gdb/psymtab.c | 286 +++++++-------
gdb/python/lib/gdb/__init__.py | 14 +
gdb/symfile.h | 40 ++-
gdb/testsuite/ChangeLog | 28 ++
gdb/testsuite/gdb.arch/altivec-abi.exp | 2 +-
gdb/testsuite/gdb.base/catch-syscall.exp | 2 +-
gdb/testsuite/gdb.base/constvars.c | 10 +
gdb/testsuite/gdb.base/constvars.exp | 17 +
gdb/testsuite/gdb.base/gnu_vector.c | 33 ++-
gdb/testsuite/gdb.base/gnu_vector.exp | 38 ++-
gdb/testsuite/gdb.cp/oranking.cc | 207 ++++++++++
gdb/testsuite/gdb.cp/oranking.exp | 100 +++++
gdb/testsuite/gdb.dwarf2/dw2-strp.exp | 4 +-
gdb/tracepoint.c | 12 +-
gdb/valarith.c | 30 ++-
gdb/valops.c | 23 +-
gdb/version.in | 2 +-
include/ChangeLog | 4 +
include/libiberty.h | 3 +
include/opcode/ChangeLog | 7 +-
include/opcode/cgen.h | 8 +-
libiberty/ChangeLog | 16 +
libiberty/Makefile.in | 13 +-
libiberty/config.in | 16 +-
libiberty/configure | 26 ++-
libiberty/configure.ac | 14 +-
libiberty/functions.texi | 10 +-
libiberty/setproctitle.c | 47 +++
opcodes/ChangeLog | 38 ++-
opcodes/Makefile.am | 1 +
opcodes/Makefile.in | 8 +-
opcodes/fr30-desc.h | 60 ++--
opcodes/frv-desc.h | 70 ++--
opcodes/frv-opc.c | 3 +
opcodes/ip2k-desc.h | 60 ++--
opcodes/iq2000-desc.h | 72 ++--
opcodes/lm32-desc.h | 56 ++--
opcodes/m32c-desc.h | 56 ++--
opcodes/m32r-desc.h | 68 ++--
opcodes/mep-desc.h | 104 +++---
opcodes/mep-opc.c | 2 +-
opcodes/mt-desc.h | 78 ++--
opcodes/openrisc-desc.h | 58 ++--
opcodes/or32-dis.c | 20 +-
opcodes/or32-opc.c | 6 +-
opcodes/tic6x-dis.c | 6 +-
opcodes/xc16x-desc.h | 72 ++--
opcodes/xstormy16-desc.h | 56 ++--
sim/common/ChangeLog | 4 +
sim/common/callback.c | 2 +-
sim/cris/ChangeLog | 9 +
sim/cris/cris-desc.h | 56 ++--
sim/cris/traps.c | 8 +
sim/sh64/ChangeLog | 4 +
sim/sh64/sh-desc.h | 62 ++--
sim/testsuite/ChangeLog | 4 +
sim/testsuite/sim/cris/c/seek3.c | 49 +++
sim/testsuite/sim/cris/c/seek4.c | 44 ++
92 files changed, 3134 insertions(+), 1003 deletions(-)
create mode 100644 gdb/data-directory/Makefile.in
create mode 100644 gdb/python/lib/gdb/__init__.py
create mode 100644 gdb/testsuite/gdb.cp/oranking.cc
create mode 100644 gdb/testsuite/gdb.cp/oranking.exp
create mode 100644 libiberty/setproctitle.c
create mode 100644 sim/testsuite/sim/cris/c/seek3.c
create mode 100644 sim/testsuite/sim/cris/c/seek4.c
First 500 lines of diff:
diff --git a/COPYING.LIBGLOSS b/COPYING.LIBGLOSS
index ebd2e71..5f02c44 100644
--- a/COPYING.LIBGLOSS
+++ b/COPYING.LIBGLOSS
@@ -260,3 +260,45 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+(14) - National Semiconductor Corporation
+
+Copyright (c) 2004 National Semiconductor Corporation
+
+The authors hereby grant permission to use, copy, modify, distribute,
+and license this software and its documentation for any purpose, provided
+that existing copyright notices are retained in all copies and that this
+notice is included verbatim in any distributions. No written agreement,
+license, or royalty fee is required for any of the authorized uses.
+Modifications to this software may be copyrighted by their authors
+and need not follow the licensing terms described here, provided that
+the new terms are clearly indicated on the first page of each file where
+they apply.
+
+
+(15) - CodeSourcery, Inc. (tic6x-* targets)
+
+Copyright (c) 2010 CodeSourcery, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of CodeSourcery nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY CODESOURCERY, INC. ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL CODESOURCERY BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB
index cf903b5..515fcda 100644
--- a/COPYING.NEWLIB
+++ b/COPYING.NEWLIB
@@ -828,3 +828,37 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+(37) Texas Instruments Incorporated (tic6x-* targets)
+
+Copyright (c) 1996-2010 Texas Instruments Incorporated
+http://www.ti.com/
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ Neither the name of Texas Instruments Incorporated nor the names
+ of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written
+ permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/ChangeLog b/ChangeLog
index 4285361..5fb7b61 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2010-10-08 Bernd Schmidt <bernds@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+
+ * COPYING.LIBGLOSS: Add National Semiconductor and CodeSourcery
+ notices.
+ * COPYING.NEWLIB: Add Texas Instruments notice.
+
+2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ * configure.ac (build_lto_plugin): New shell variable.
+ (--enable-lto): Turn on by default for all non-ELF platforms that
+ have had LTO support added so far. Set build_lto_plugin appropriately
+ for both ELF and non-ELF.
+ (configdirs): Add lto-plugin or not based on build_lto_plugin.
+ * configure: Regenerate.
+
2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR bootstrap/45326
@@ -51,6 +67,11 @@
* configure.ac: Fix unportable shell quoting.
* configure: Regenerate.
+2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
+
+ * configure.ac: Support all v850 targets.
+ * configure: Regenerate.
+
2010-07-17 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/44862
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c21a0f9..fcfa945 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,6 +1,43 @@
+2010-10-11 Thomas Schwinge <thomas@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_final_link_relocate)
+ (elf32_arm_relocate_section): Handle relocations against STN_UNDEF.
+
+2010-10-11 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ * elflink.c (_bfd_elf_link_output_relocs): Delete unused variable
+ "output_rel_hdr".
+
+2010-10-09 John Tytgat <john@bass-software.com>
+
+ * reloc.c (BFD_RELOC_ARM_HVC): Add.
+ * libbfd.h: Regenerate.
+
+2010-10-08 Kai Tietz <kai.tietz@onevision.com>
+
+ * pei-x86_64.c (find_next_xdata_or_end): Removed.
+ (pex64_dump_xdata): Remove arguments stop, onaline,
+ and pdata. New argument endx. Print term "none"
+ instead of misleading "CFA".
+ (sort_xdata_arr): New function.
+ (pex64_bfd_print_pdata): Use binary search/sort for unwind-RVAs
+ instead of searching quadratic.
+
+2010-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
+ Alan Modra <amodra@gmail.com>
+
+ Fix build with -DDEBUG=7
+ * elf.c (_bfd_elf_symbol_from_bfd_symbol): Remove call
+ to deleted function elf_symbol_flags. Add typecast to avoid warning.
+ * elf32-rx.c (dump_symbol) : Rename to..
+ (rx_dump_symbol): ..this to avoid link errors.
+ * elflink.c (elf_link_input_bfd): Add typecast to avoid warnings.
+ (bfd_elf_perform_complex_relocation): Likewise.
+ * elf32-xtensa.c (print_action_list): Likewise.
+
2010-10-06 Nathan Sidwell <nathan@codesourcery.com>
- * elf32-arm.c (elf32_arm_stub_long_branch_any_arm_pic,
+ * elf32-arm.c (elf32_arm_stub_long_branch_any_arm_pic,
elf32_arm_stub_long_branch_any_arm_pic): Use a consistent name for
ip/r12.
(arm_type_of_stub): Remove superfluous braces.
@@ -240,7 +277,6 @@
2010-09-09 Bernd Schmidt <bernds@codesourcery.com>
- bfd/
* elflink.c (bfd_elf_final_link): Correct calculation of
max_external_reloc_size.
diff --git a/bfd/elf.c b/bfd/elf.c
index 85d4c18..4df0007 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -5217,9 +5217,8 @@ _bfd_elf_symbol_from_bfd_symbol (bfd *abfd, asymbol **asym_ptr_ptr)
#if DEBUG & 4
{
fprintf (stderr,
- "elf_symbol_from_bfd_symbol 0x%.8lx, name = %s, sym num = %d, flags = 0x%.8lx%s\n",
- (long) asym_ptr, asym_ptr->name, idx, flags,
- elf_symbol_flags (flags));
+ "elf_symbol_from_bfd_symbol 0x%.8lx, name = %s, sym num = %d, flags = 0x%.8lx\n",
+ (long) asym_ptr, asym_ptr->name, idx, (long) flags);
fflush (stderr);
}
#endif
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 8728949..9fce4b0 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -7229,12 +7229,12 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
/* A branch to an undefined weak symbol is turned into a jump to
the next instruction unless a PLT entry will be created.
- Do the same for local undefined symbols.
+ Do the same for local undefined symbols (but not for STN_UNDEF).
The jump to the next instruction is optimized as a NOP depending
on the architecture. */
if (h ? (h->root.type == bfd_link_hash_undefweak
&& !(splt != NULL && h->plt.offset != (bfd_vma) -1))
- : bfd_is_und_section (sym_sec))
+ : r_symndx != STN_UNDEF && bfd_is_und_section (sym_sec))
{
value = (bfd_get_32 (input_bfd, hit_data) & 0xf0000000);
@@ -8908,9 +8908,11 @@ elf32_arm_relocate_section (bfd * output_bfd,
undefined symbol. This is a daft object file, but we
should at least do something about it. V4BX & NONE
relocations do not use the symbol and are explicitly
- allowed to use the undefined symbol, so allow those. */
+ allowed to use the undefined symbol, so allow those.
+ Likewise for relocations against STN_UNDEF. */
if (r_type != R_ARM_V4BX
&& r_type != R_ARM_NONE
+ && r_symndx != STN_UNDEF
&& bfd_is_und_section (sec)
&& ELF_ST_BIND (sym->st_info) != STB_WEAK)
{
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index 7d9dbc1..4b31a35 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -29,7 +29,7 @@
#ifdef DEBUG
char * rx_get_reloc (long);
-void dump_symtab (bfd *, void *, void *);
+void rx_dump_symtab (bfd *, void *, void *);
#endif
#define RXREL(n,sz,bit,shift,complain,pcrel) \
@@ -2962,7 +2962,7 @@ rx_elf_object_p (bfd * abfd)
#ifdef DEBUG
void
-dump_symtab (bfd * abfd, void * internal_syms, void * external_syms)
+rx_dump_symtab (bfd * abfd, void * internal_syms, void * external_syms)
{
size_t locsymcount;
Elf_Internal_Sym * isymbuf;
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index f9ecde5..6cd396a 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -5710,7 +5710,7 @@ print_action_list (FILE *fp, text_action_list *action_list)
fprintf (fp, "%s: %s[0x%lx] \"%s\" %d\n",
r->sec->owner->filename,
- r->sec->name, r->offset, t, r->removed_bytes);
+ r->sec->name, (unsigned long) r->offset, t, r->removed_bytes);
}
}
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 2c45649..41fba17 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -2341,14 +2341,12 @@ _bfd_elf_link_output_relocs (bfd *output_bfd,
Elf_Internal_Rela *irelaend;
bfd_byte *erel;
struct bfd_elf_section_reloc_data *output_reldata;
- Elf_Internal_Shdr *output_rel_hdr;
asection *output_section;
const struct elf_backend_data *bed;
void (*swap_out) (bfd *, const Elf_Internal_Rela *, bfd_byte *);
struct bfd_elf_section_data *esdo;
output_section = input_section->output_section;
- output_rel_hdr = NULL;
bed = get_elf_backend_data (output_bfd);
esdo = elf_section_data (output_section);
@@ -7884,7 +7882,8 @@ bfd_elf_perform_complex_relocation (bfd *input_bfd,
"chunksz %ld, start %ld, len %ld, oplen %ld\n"
" dest: %8.8lx, mask: %8.8lx, reloc: %8.8lx\n",
lsb0_p, signed_p, trunc_p, wordsz, chunksz, start, len,
- oplen, x, mask, relocation);
+ oplen, (unsigned long) x, (unsigned long) mask,
+ (unsigned long) relocation);
#endif
r = bfd_reloc_ok;
@@ -7904,8 +7903,8 @@ bfd_elf_perform_complex_relocation (bfd *input_bfd,
" shifted mask: %8.8lx\n"
" shifted/masked reloc: %8.8lx\n"
" result: %8.8lx\n",
- relocation, (mask << shift),
- ((relocation & mask) << shift), x);
+ (unsigned long) relocation, (unsigned long) (mask << shift),
+ (unsigned long) ((relocation & mask) << shift), (unsigned long) x);
#endif
/* FIXME: octets_per_byte. */
put_value (wordsz, chunksz, input_bfd, x, contents + rel->r_offset);
@@ -9464,7 +9463,8 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
#ifdef DEBUG
printf ("Encountered a complex symbol!");
printf (" (input_bfd %s, section %s, reloc %ld\n",
- input_bfd->filename, o->name, rel - internal_relocs);
+ input_bfd->filename, o->name,
+ (long) (rel - internal_relocs));
printf (" symbol: idx %8.8lx, name %s\n",
r_symndx, sym_name);
printf (" reloc : info %8.8lx, addr %8.8lx\n",
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index fb95c40..fb16333 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -1408,6 +1408,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_ARM_T32_ADD_PC12",
"BFD_RELOC_ARM_SHIFT_IMM",
"BFD_RELOC_ARM_SMC",
+ "BFD_RELOC_ARM_HVC",
"BFD_RELOC_ARM_SWI",
"BFD_RELOC_ARM_MULTI",
"BFD_RELOC_ARM_CP_OFF_IMM",
diff --git a/bfd/pei-x86_64.c b/bfd/pei-x86_64.c
index 76009f3..fdc6205 100644
--- a/bfd/pei-x86_64.c
+++ b/bfd/pei-x86_64.c
@@ -303,41 +303,9 @@ pex64_get_section_by_rva (bfd *abfd, bfd_vma addr, const char *sec_name)
return section;
}
-static bfd_vma
-find_next_xdata_or_end (bfd *abfd, bfd_byte *pdata, bfd_size_type stop,
- int onaline, bfd_vma cur_address, bfd_vma max_size)
-{
- bfd_size_type i;
- bfd_vma ret = 0;
-
- for (i = 0; i < stop; i += onaline)
- {
- struct pex64_runtime_function rf;
-
- if (i + PDATA_ROW_SIZE > stop)
- break;
- pex64_get_runtime_function (abfd, &rf, &pdata[i]);
-
- if (rf.rva_BeginAddress == 0 && rf.rva_EndAddress == 0
- && rf.rva_UnwindData == 0)
- /* We are probably into the padding of the section now. */
- break;
- if (rf.rva_UnwindData != 0 && !rf.isChained)
- {
- if (!ret && rf.rva_UnwindData > cur_address)
- ret = rf.rva_UnwindData;
- else if (rf.rva_UnwindData > cur_address && ret > rf.rva_UnwindData)
- ret = rf.rva_UnwindData;
- }
- }
- if (!ret)
- return max_size;
- return ret;
-}
-
static void
pex64_dump_xdata (FILE *file, bfd *abfd, bfd_vma addr, bfd_vma pc_addr,
- bfd_size_type stop, int onaline, bfd_byte *pdata)
+ bfd_vma *endx)
{
asection *section = pex64_get_section_by_rva (abfd, addr, ".rdata");
bfd_vma vsize;
@@ -364,10 +332,11 @@ pex64_dump_xdata (FILE *file, bfd *abfd, bfd_vma addr, bfd_vma pc_addr,
vsize = section->vma - pe_data (abfd)->pe_opthdr.ImageBase;
addr -= vsize;
- end_addr = find_next_xdata_or_end (abfd, pdata, stop, onaline, addr + vsize,
- vsize + (section->rawsize != 0 ? section->rawsize : section->size));
+ if (endx)
+ end_addr = endx[0] - vsize;
+ else
+ end_addr = (section->rawsize != 0 ? section->rawsize : section->size);
- end_addr -= vsize;
if (bfd_malloc_and_get_section (abfd, section, &data))
{
struct pex64_unwind_info ui;
@@ -411,7 +380,7 @@ pex64_dump_xdata (FILE *file, bfd *abfd, bfd_vma addr, bfd_vma pc_addr,
fprintf (file, "\tPrologue size: %u, Frame offset = 0x%x.\n",
(unsigned int) ui.SizeOfPrologue, (unsigned int) ui.FrameOffset);
fprintf (file, "\tFrame register is %s.\n",
- ui.FrameRegister == 0 ? "CFA"
+ ui.FrameRegister == 0 ? "none"
: pex_regs[(unsigned int) ui.FrameRegister]);
pex64_xdata_print_uwd_codes (file, &ui, pc_addr);
@@ -438,6 +407,17 @@ pex64_dump_xdata (FILE *file, bfd *abfd, bfd_vma addr, bfd_vma pc_addr,
free (data);
}
+static int
+sort_xdata_arr (const void *l, const void *r)
+{
+ const bfd_vma *lp = (const bfd_vma *) l;
+ const bfd_vma *rp = (const bfd_vma *) r;
+
+ if (*lp == *rp)
+ return 0;
+ return (*lp < *rp ? -1 : 1);
+}
+
static bfd_boolean
pex64_bfd_print_pdata (bfd *abfd, void *vfile)
{
@@ -450,6 +430,8 @@ pex64_bfd_print_pdata (bfd *abfd, void *vfile)
bfd_vma prev_beginaddress = 0;
int onaline = PDATA_ROW_SIZE;
int seen_error = 0;
+ bfd_vma *xdata_arr;
+ int xdata_arr_cnt;
if (section == NULL
|| coff_section_data (abfd, section) == NULL
@@ -478,6 +460,8 @@ pex64_bfd_print_pdata (bfd *abfd, void *vfile)
return FALSE;
}
+ xdata_arr = (bfd_vma *) xmalloc (sizeof (bfd_vma) * ((stop / onaline) + 1));
+ xdata_arr_cnt = 0;
/* Do sanity check of pdata. */
for (i = 0; i < stop; i += onaline)
{
@@ -523,14 +507,26 @@ pex64_bfd_print_pdata (bfd *abfd, void *vfile)
seen_error = 1;
fprintf (file, " has negative unwind address\n");
}
+ if (rf.rva_UnwindData && !rf.isChained)
+ xdata_arr[xdata_arr_cnt++] = rf.rva_UnwindData;
}
if (seen_error)
{
free (data);
+ free (xdata_arr);
return TRUE;
}
+
+ /* Add end of list marker. */
+ xdata_arr[xdata_arr_cnt++] = ~((bfd_vma) 0);
+
+ /* Sort start RVAs of xdata. */
+ if (xdata_arr_cnt > 1)
+ qsort (xdata_arr, (size_t) xdata_arr_cnt, sizeof (bfd_vma),
+ sort_xdata_arr);
+
/* Do dump of pdata related xdata. */
for (i = 0; i < stop; i += onaline)
@@ -563,12 +559,31 @@ pex64_bfd_print_pdata (bfd *abfd, void *vfile)
fprintf (file, ".\n");
}
else
- pex64_dump_xdata (file, abfd, rf.rva_UnwindData, rf.rva_BeginAddress,
- stop, onaline, data);
+ {
+ bfd_vma *p;
+
+ /* Search for the current entry in the sorted array. */
+ p = (bfd_vma *)
+ bsearch (&rf.rva_UnwindData, xdata_arr,
+ (size_t) xdata_arr_cnt, sizeof (bfd_vma),
+ sort_xdata_arr);
+
+ /* Advance to the next pointer into the xdata section. We may
+ have shared xdata entries, which will result in a string of
+ identical pointers in the array; advance past all of them. */
+ while (p[0] <= rf.rva_UnwindData)
+ ++p;
+ if (p[0] == ~((bfd_vma) 0))
+ p = NULL;
+
+ pex64_dump_xdata (file, abfd, rf.rva_UnwindData,
+ rf.rva_BeginAddress, p);
+ }
}
}
free (data);
+ free (xdata_arr);
return TRUE;
}
diff --git a/bfd/reloc.c b/bfd/reloc.c
index e7210eb..65aa3cb 100644
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-10-06 9:00 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-10-06 9:00 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 367f20d2bdb4049fd4d6a129d64a9efb01dc3054 (commit)
via fb77fd60a4e632be4d12f0bcea04acf4c61ababa (commit)
via 92618ab86dce541adcb5aa596e4a9b5e3501f9aa (commit)
via 880e5eca29b94d95154b150fe1cbed905cef968b (commit)
via e16fa69b0506536ac45ebd53e821e4a9c31c56c3 (commit)
via 4f57f20b4f467e411b761d0abbe5698afad1150c (commit)
via edca47c2e236a4ffd2f7a52029aa28d3e6dc1f2c (commit)
via 6805ac1075724135e072dd95288eb8754db13313 (commit)
via 329d2d0460d108444ea178ef45a82d2d0b433822 (commit)
via a7bc7a97afa95f553a3908b21b6ca230eb4b0ca1 (commit)
via 15ae69b92ef1be627a37f5889c2e041379d926bb (commit)
via 95d32c21a9edd56f10731f2b121f6a00a271761e (commit)
via 4df5723d3d1f3ac8e5ad69db48938d6062f1b837 (commit)
via 1d12b35d8847fe309096c6f6ff47384e27ff975e (commit)
via ec4e8e11bd4cc3ed3301ceadc4f218b9ce7ea237 (commit)
via 0dc46e7eb62878252cadac52882e12a1449a84c4 (commit)
via 549516ee264dd9aadfe620a6a1a126ebd31b63f6 (commit)
via 773fb0dac9329b4d4884149a0c385c89f1264207 (commit)
via 85d53a5da81016bdcf8f59e660d598b67733b686 (commit)
via 62c607d7b91baa4d108f1aea59c47b5926fd941f (commit)
via 382e7d7d333508b51b3bdeb90a38fff105b900da (commit)
via 20caee832f9f4047243f181b9a8f7dfe055f06a5 (commit)
via 9bb468270551fd6bba0d1668a4161b1652055466 (commit)
via ac56403f3f75e1a731b91ed669791f7c04024b00 (commit)
via 71280c7d4bd0486db7100f49c87ff5211890f1ff (commit)
via e227a3b67ba0cf7aad90a2cc7d3664dc64cf0174 (commit)
via ed5c19665ba26348c2f51e257c8667cf21d0df9b (commit)
via 4b12592f127621657a422b51d53186ccd44b9ad4 (commit)
via ea83a2707ca7adb87e4af37ae66221140ec758e4 (commit)
via 7f73b16f0a7f617c01443fa12d9c0f4073ba7079 (commit)
via 47967cc493d79ef2b574677c9da5afec3df775f4 (commit)
via ad20e5eb15d037a31e3b484e9f57542dc927c0a9 (commit)
via aec03eb8ae5e9ebf62daa1c2f1135bd0b23720cc (commit)
via 72a52a75035eea0e41eacad35b61a8ef8d25ed72 (commit)
via cecc659ff339f09009a48032672292883263a4ab (commit)
via 1f36c401a948ba088da26b8f66002552e90421b6 (commit)
via eb6c1ad80260feec29bc4fec1ef0228ad7e383d9 (commit)
via d0af2bdde055ad7df65790f5725a926f2b6c5a44 (commit)
via e8a090b3384454f09c5f191ffa954f368c76d10a (commit)
via f436e12c656a8bbd93ef8948928322c089128eda (commit)
via 8d7231636f77e0631d4232d79b7e57ec69ae4c09 (commit)
via 4b8866f58d981ccfc841070c8a366661338db128 (commit)
via 58beeed5ce32cac71f4abde3b190984f9dbe0664 (commit)
via c290e784cf9943779c0531a3e9f6d7aa7c22cb9c (commit)
via f6fcc8796498fc0136a2e7493a8ae0ddd29b4018 (commit)
via 11a94fad08f146f52ea4bfc34f194ceefc85e2e5 (commit)
via 5cadd780e2909d24cb41b9a1b48b16385c834639 (commit)
from 7c59491f02de02410c8bccf525b7447a5a0594df (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 367f20d2bdb4049fd4d6a129d64a9efb01dc3054
Merge: 7c59491 fb77fd6
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Wed Oct 6 09:59:52 2010 +0100
Merge remote branch 'gdb/master'
commit fb77fd60a4e632be4d12f0bcea04acf4c61ababa
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Wed Oct 6 08:22:19 2010 +0000
bfd/
* elf32-arm.c (elf32_arm_stub_long_branch_any_arm_pic,
elf32_arm_stub_long_branch_any_arm_pic): Use a consistent name for
ip/r12.
(arm_type_of_stub): Remove superfluous braces.
gas/
* config/tc-arm.c (encode_branch): Remove superfluous braces.
(do_t_branch): Move reloc setting to end of routine.
commit 92618ab86dce541adcb5aa596e4a9b5e3501f9aa
Author: Paolo Bonzini <bonzini@gnu.org>
Date: Wed Oct 6 07:41:26 2010 +0000
sync config/ChangeLog
commit 880e5eca29b94d95154b150fe1cbed905cef968b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Oct 6 00:00:33 2010 +0000
*** empty log message ***
commit e16fa69b0506536ac45ebd53e821e4a9c31c56c3
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Oct 5 23:00:04 2010 +0000
daily update
commit 4f57f20b4f467e411b761d0abbe5698afad1150c
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Tue Oct 5 20:38:01 2010 +0000
* gdb.arch/altivec-abi.exp: Fix a typo.
commit edca47c2e236a4ffd2f7a52029aa28d3e6dc1f2c
Author: Doug Evans <dje@google.com>
Date: Tue Oct 5 04:28:12 2010 +0000
* cc-with-index.sh: New file.
commit 6805ac1075724135e072dd95288eb8754db13313
Author: Doug Evans <dje@google.com>
Date: Tue Oct 5 03:10:28 2010 +0000
* dwarf2read.c (hash_strtab_entry): Insert blank line after
function comment.
(eq_strtab_entry, create_strtab, add_string): Ditto.
(hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
(create_index_table, create_mapped_symtab, find_slot): Ditto.
(hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
(write_hash_table, add_address_entry, write_psymbols): Ditto.
(write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
(write_psymtabs_to_index): Ditto.
commit 329d2d0460d108444ea178ef45a82d2d0b433822
Author: Doug Evans <dje@google.com>
Date: Tue Oct 5 02:56:35 2010 +0000
* dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
function comment.
(dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
(create_cus_from_index, create_addrmap_from_index): Ditto.
(mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
(dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
(dw2_do_expand_symtabs_matching): Ditto.
commit a7bc7a97afa95f553a3908b21b6ca230eb4b0ca1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Oct 5 00:00:33 2010 +0000
*** empty log message ***
commit 15ae69b92ef1be627a37f5889c2e041379d926bb
Author: Doug Evans <dje@google.com>
Date: Mon Oct 4 23:32:39 2010 +0000
* Makefile.in (uninstall): Use $(DESTDIR).
commit 95d32c21a9edd56f10731f2b121f6a00a271761e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Oct 4 23:00:07 2010 +0000
daily update
commit 4df5723d3d1f3ac8e5ad69db48938d6062f1b837
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Oct 4 22:32:27 2010 +0000
[Ada/funcalls] do not coerce fat pointers on the stack
When one of the parameter values in a subprogram calls is an array
whose value does not come from inferior memory, the debugger first
copies the array value in inferior memory. Up to now, the memory
used to hold that copy was taken from the stack (just below the SP),
but this is causing problems on SPARC v9.
So the immediate fix is to follow what C does with arrays and strings,
which is allocate memory on the heap.
gdb/ChangeLog:
* ada-lang.c: #include "value.h".
(ensure_lval): Delete advance declaration. Remove gdbarch and sp
arguments. Implement using value_allocate_space_in_inferior
instead of allocating memory from the stack.
(make_array_descriptor): Remove gdbarch and sp parameters. Update
calls to ensure_lval.
(ada_convert_actual): Remove gdbarch and sp parameters. Update
calls to make_array_descriptor and ensure_lval.
* ada-lang.h (ada_convert_actual): Update declaration.
* infcall.c (value_arg_coerce): Update call to ada_convert_actual.
commit 1d12b35d8847fe309096c6f6ff47384e27ff975e
Author: Doug Evans <dje@google.com>
Date: Mon Oct 4 15:30:19 2010 +0000
* python/python.c (_initialize_python): Define new function
GdbSetPythonDirectory in python. Use it to update sys.path and
gdb.__path__.
commit ec4e8e11bd4cc3ed3301ceadc4f218b9ce7ea237
Author: Bernd Schmidt <bernd.schmidt@analog.com>
Date: Mon Oct 4 14:13:08 2010 +0000
bfd/
* elf-bfd.h (struct bfd_elf_section_reloc_data): New structure.
(struct bfd_elf_section_data): New members REL and RELA; delete
members REL_HDR, REL_HDR2, REL_COUNT, REL_COUNT2, REL_IDX,
REL_IDX2, REL_HASHES.
(_bfd_elf_init_reloc_shdr): Adjust declaration.
(_bfd_elf_single_rel_hdr): Declare.
(RELOC_AGAINST_DISCARDED_SECTION): Use it.
* elf.c (bfd_section_from_shdr): Adjusted to match changes in
data structures.
(_bfd_elf_init_reloc_shdr): New arg RELDATA. Remove arg REL_HDR.
All callers changed. Allocate memory for the Elf_Internal_Shdr
structure.
(_bfd_elf_single_rel_hdr): New function.
(struct fake_section_arg): New structure.
(elf_fake_section): Expect to see a pointer to it in the third
argument. If doing a relocatable link, allocate both REL and RELA
sections as needed.
(assign_section_numbers): Adjusted to match changes in
data structures.
(_bfd_elf_compute_section_file_positions): Call elf_fake_sections
with a struct fake_section_args argument.
* elfcode.h (elf_write_relocs): Adjusted to match changes in
data structures.
(elf_slurp_reloc_table): Likewise.
* elflink.c (_bfd_elf_link_read_relocs): Likewise.
(_bfd_elf_link_size_reloc_section): Remove arg REL_HDR, replace with
RELDATA. Remove argument O. All callers changed. Remove code to
discover the right rel_hdr and count.
(_bfd_elf_link_output_relocs): Adjusted to match changes in
data structures.
(elf_link_adjust_relocs): Remove args REL_HDR, COUNT and REL_HASH;
replace with RELDATA. All callers changed.
(elf_link_input_bfd): Correctly generate rel_hash data when both
REL and RELA sections are present.
(elf_reloc_link_order): Adjusted to match changes in
data structures.
(bfd_elf_final_link): Simplify code to count relocs. Free the
hashes array for both REL and RELA.
(get_dynamic_reloc_section_name): Use _bfd_elf_single_reloc_hdr
* elf32-m32r.c (m32r_elf_fake_sections, elf_backend_fake_sections):
Delete.
* elf32-tic6x.c (elf32_tic6x_fake_sections, elf_backend_fake_sections):
Delete.
(elf32_tic6x_rel_relocation_p): Adjusted to match changes in
data structures.
* elf32-microblaze.c (microblaze_elf_check_relocs): Use
_bfd_elf_single_rel_hdr.
* elf32-ppc.c (ppc_elf_relax_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-hppa.c (get_reloc_section): Likewise.
* elf64-mips.c (mips_elf64_slurp_reloc_table): Adjusted to match
changes in data structures.
(mips_elf64_write_relocs): Use _bfd_elf_single_rel_hdr.
* elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
(ppc64_elf_edit_toc): Likewise.
(get_relocs): Adjusted to match changes in data structures.
Allocate an Elf_Internal_Shdr structure if necessary.
(ppc64_elf_finish_dynamic_sections): Use _bfd_elf_single_rel_hdr.
* elf64-sparc.c (elf64_sparc_slurp_reloc_table): Adjusted to match
changes in data structures.
* elfxx-ia64.c (get_reloc_section): Use _bfd_elf_single_rel_hdr.
* elfxx-mips.c (MIPS_RELOC_RELA_P): Remove macro.
(mips_elf_rel_relocation_p): Adjusted to match changes in data
structures.
(_bfd_mips_elf_relocate_section): Use mips_elf_rel_relocation_p rather
than MIPS_RELOC_RELOCA_P.
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use
_bfd_elf_single_rel_hdr.
(_bfd_sparc_elf_relocate_section): Likewise.
ld/
* emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
_bfd_elf_single_rel_hdr.
commit 0dc46e7eb62878252cadac52882e12a1449a84c4
Author: Paul N. Hilfinger <hilfinger@adacore.com>
Date: Mon Oct 4 06:37:53 2010 +0000
Have ptype handle types declared pragma Unchecked_Variants.
When a type is marked with pragma Unchecked_Variants, ptype did not print
variants having a single component, since the compiler produces incorrect
debugging output for such cases. With this patch, we special-case these
components so that they print.
Changelog:
* gdb/ada-typeprint.c (print_selected_record_field_types): New function,
incorporating and generalizing print_record_field_types.
(print_record_field_types): Change return value and update comment.
Re-implement using print_selected_record_field_types.
(print_choices): Print "=>" here.
Handle case of unencoded variant branch.
(print_variant_clauses): Reformat comment.
Special-case unencoded variant branch.
commit 549516ee264dd9aadfe620a6a1a126ebd31b63f6
Author: Paul N. Hilfinger <hilfinger@adacore.com>
Date: Mon Oct 4 06:34:37 2010 +0000
Replace wild_match with faster version and modify its interface.
This new version of wild_match is comparable in speed to strcmp_iw, and has
the same signature and same return value for equal names.
gdb/ChangeLog:
* ada-lang.c (wild_match): Reimplement.
Change API to eliminate unused length argument, reverse arguments and
make 0 the 'true' return value.
(advance_wild_match): New auxiliary function for wild_match to improve
readability.
(ada_match_name, ada_add_block_symbols): Use new API for wild_match.
* psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
API for wild_match.
* symfile.h (map_ada_symtabs): Modify declaration to use new API for
wild_match.
* dwarf2read.c (dw2_map_ada_symtabs): Ditto.
commit 773fb0dac9329b4d4884149a0c385c89f1264207
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Oct 4 00:00:33 2010 +0000
*** empty log message ***
commit 85d53a5da81016bdcf8f59e660d598b67733b686
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Oct 3 23:00:05 2010 +0000
daily update
commit 62c607d7b91baa4d108f1aea59c47b5926fd941f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 3 00:00:02 2010 +0000
*** empty log message ***
commit 382e7d7d333508b51b3bdeb90a38fff105b900da
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Oct 2 23:00:05 2010 +0000
daily update
commit 20caee832f9f4047243f181b9a8f7dfe055f06a5
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Sat Oct 2 17:48:21 2010 +0000
* lib/mi-support.exp (thread_selected_re): Correct pattern used
to match a thread ID.
commit 9bb468270551fd6bba0d1668a4161b1652055466
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Sat Oct 2 14:54:05 2010 +0000
Allow to pass separate configure arguments for build, host and target.
/:
PR bootstrap/45326
PR bootstrap/45174
* configure.ac: Honor initial values of $build_configargs,
$host_configargs, $target_configargs. Mark the precious, so
environment settings get recorded.
* configure: Regenerate.
commit ac56403f3f75e1a731b91ed669791f7c04024b00
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Sat Oct 2 14:42:47 2010 +0000
Sync toplevel and config from GCC.
/:
Sync from GCC:
2010-09-30 Michael Eager <eager@eagercon.com>
* configure.ac (microblaze): Add target-libssp to noconfigdirs.
* configure: Regenerate.
2010-09-21 Iain Sandoe <iains@gcc.gnu.org>
* configure.ac (enable-lto): Add Darwin to the list of supported lto
targets and amend comment.
* configure: Regenerate.
2010-09-03 Jack Howarth <howarth@bromo.med.uc.edu>
* configure.ac: Enable LTO by default on Darwin.
* configure: Regenerate.
2010-07-23 Marc Glisse <marc.glisse@normalesup.org>
PR bootstrap/44455
* configure.ac (extra_mpfr_configure_flags): Copy from
extra_mpc_gmp_configure_flags.
* configure: Re-generated.
config/:
Sync from GCC:
2010-09-10 Jonathan Yong <jon_y@users.sourceforge.net>
* dfp.m4: Enable decimal float for i?86 cygwin
and mingw, and for x86_64 mingw.
commit 71280c7d4bd0486db7100f49c87ff5211890f1ff
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Oct 2 13:31:47 2010 +0000
gdb/testsuite/
Fix s390x testcase compatibility.
* gdb.dwarf2/dw2-double-set-die-type.S: Use .2byte, not .value.
commit e227a3b67ba0cf7aad90a2cc7d3664dc64cf0174
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Oct 2 07:04:07 2010 +0000
Remove duplicated RMAL.
2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12076
* i386-dis.c (RMAL): Remove duplicate.
commit ed5c19665ba26348c2f51e257c8667cf21d0df9b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 2 00:00:33 2010 +0000
*** empty log message ***
commit 4b12592f127621657a422b51d53186ccd44b9ad4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Oct 2 00:00:05 2010 +0000
daily update
commit ea83a2707ca7adb87e4af37ae66221140ec758e4
Author: Doug Evans <dje@google.com>
Date: Fri Oct 1 20:47:44 2010 +0000
* dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
for `save gdb-index' command.
commit 7f73b16f0a7f617c01443fa12d9c0f4073ba7079
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Oct 1 20:26:06 2010 +0000
* symfile.h (allocate_symtab): Update.
* symfile.c (allocate_symtab): Make 'filename' const.
* psymtab.c (add_psymbol_to_bcache): Make 'name' const.
(add_psymbol_to_list): Likewise.
* psympriv.h (struct partial_symtab) <filename, dirname>: Now
const.
(add_psymbol_to_list): Update.
* mdebugread.c (new_symtab): Make 'name' const.
(psymtab_to_symtab_1): Make 'filename' const.
* elfread.c (elfstab_offset_sections): Update.
* dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
(dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
(psymtab_include_file_name): Update.
* dbxread.c (find_stab_function_addr): Make 'filename' const.
* buildsym.h (start_subfile): Update.
* buildsym.c (start_subfile): Make arguments const.
commit 47967cc493d79ef2b574677c9da5afec3df775f4
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Oct 1 17:35:27 2010 +0000
2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
* fork-child.c (breakup_args): Fix crash if shell forking is
disabled at compile time.
commit ad20e5eb15d037a31e3b484e9f57542dc927c0a9
Author: Doug Evans <dje@google.com>
Date: Fri Oct 1 17:03:49 2010 +0000
* lib/gdb-python.exp: New file.
* gdb.python/py-block.exp: Use it.
* gdb.python/py-breakpoint.exp: Ditto.
* gdb.python/py-frame.exp: Ditto.
* gdb.python/py-inferior.exp: Ditto.
* gdb.python/py-param.exp: Ditto.
* gdb.python/py-prettyprint.exp: Ditto.
* gdb.python/py-shared.exp: Ditto.
* gdb.python/py-symbol.exp: Ditto.
* gdb.python/py-symtab.exp: Ditto.
* gdb.python/py-type.exp: Ditto.
* gdb.python/py-value.exp: Ditto.
* gdb.python/python.exp: Ditto.
commit aec03eb8ae5e9ebf62daa1c2f1135bd0b23720cc
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Oct 1 16:25:00 2010 +0000
[Ada] array and bounds in fat pointer can be a stub
This patch adds handling of the case when a fat pointer has the
P_ARRAY and/or P_BOUNDS fields defined as a stub. In that case,
this stub needs to be resolved.
There are two issues:
. First, making sure that the resolution takes place itself.
That's the change to ada_check_typedef.
. Make sure that the type returned after resolution is not itself
a typedef. This is the change to ada_check_typedef.
gdb/ChangeLog (Jerome Guitton, Joel Brobecker):
* ada-lang.c (desc_bounds): Add handling of the case where
the P_BOUNDS field is a pointer to a stub.
(desc_data_target_type): Same for P_ARRAY field.
(ada_check_typedef): Strip the typedef layers from the type
found by ada_find_any_type.
commit 72a52a75035eea0e41eacad35b61a8ef8d25ed72
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Oct 1 15:55:12 2010 +0000
[sparc] inferior SEGV while calling Ada subprogram
gdb/ChangeLog:
* sparc-tdep.c (sparc32_frame_align): New function.
(sparc32_gdbarch_init): Set the frame_align gdbarch method.
* sparc64-tdep.c (sparc64_frame_align): New function.
(sparc64_gdbarch_init): Set the frame_align gdbarch method.
commit cecc659ff339f09009a48032672292883263a4ab
Author: tschwinge <tschwinge>
Date: Fri Oct 1 11:22:40 2010 +0000
2010-10-01 Thomas Schwinge <thomas@codesourcery.com>
* elf32-arm.c (elf32_arm_size_stubs): Don't choke on local symbols in
SHN_UNDEF, SHN_ABS, SHN_COMMON.
commit 1f36c401a948ba088da26b8f66002552e90421b6
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Oct 1 04:28:01 2010 +0000
Clear non_elf on ELF linker defined symbols.
2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11812
* elf32-i386.c (elf_i386_size_dynamic_sections): Don't
allocate .got.plt section if there are no GOT nor PLT
entries and there is no refeence to _GLOBAL_OFFSET_TABLE_.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Li.kewise.
* elflink.c (_bfd_elf_define_linkage_sym): Clear non_elf.
commit eb6c1ad80260feec29bc4fec1ef0228ad7e383d9
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Oct 1 00:43:40 2010 +0000
Set MAX_REGISTER_SIZE to 64.
2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
* defs.h (MAX_REGISTER_SIZE): Set to 64.
commit d0af2bdde055ad7df65790f5725a926f2b6c5a44
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 1 00:00:32 2010 +0000
*** empty log message ***
commit e8a090b3384454f09c5f191ffa954f368c76d10a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Oct 1 00:00:04 2010 +0000
daily update
commit f436e12c656a8bbd93ef8948928322c089128eda
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Thu Sep 30 21:55:13 2010 +0000
build: info-gcc, dvi-gcc etc work from unbuilt configured tree.
/:
Sync from GCC:
PR bootstrap/45796
* Makefile.def (info-gcc, dvi-gcc, pdf-gcc, html-gcc):
Depend on all-build-libiberty.
* Makefile.in: Regenerate.
commit 8d7231636f77e0631d4232d79b7e57ec69ae4c09
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Sep 30 19:14:29 2010 +0000
* symfile.h (struct sym_fns) <next>: Remove.
(add_symtab_fns): Update.
* symfile.c (sym_fns_ptr): New typedef.
(symtab_fns): Now a VEC.
(add_symtab_fns): Update. Change argument type.
(find_sym_fns): Update. Change return type.
(get_symfile_segment_data): Update.
* objfiles.h (struct objfile) <sf>: Now const.
* somread.c (som_sym_fns): Now const. Update.
* xcoffread.c (xcoff_sym_fns): Now const. Update.
* mipsread.c (ecoff_sym_fns): Now const. Update.
* machoread.c (macho_sym_fns): Now const. Update.
* elfread.c (elf_sym_fns): Now const. Update.
(elf_sym_fns_gdb_index): Likewise.
* dbxread.c (aout_sym_fns): Now const. Update.
* coffread.c (coff_sym_fns): Now const. Update.
commit 4b8866f58d981ccfc841070c8a366661338db128
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Sep 30 18:58:06 2010 +0000
gdb
* value.c (value_primitive_field): Take 'offset' into account for
packed field.
gdb/testsuite
* gdb.base/anon.exp: New file.
* gdb.base/anon.c: New file.
commit 58beeed5ce32cac71f4abde3b190984f9dbe0664
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Sep 30 17:51:34 2010 +0000
gdb
* completer.c (count_struct_fields): Handle anonymous structs and
unions.
(add_struct_fields): Likewise.
gdb/testsuite
* gdb.base/completion.exp: Test completion through anonymous
union.
* gdb.base/break1.c (struct some_struct): Add anonymous union.
commit c290e784cf9943779c0531a3e9f6d7aa7c22cb9c
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Sep 30 16:02:34 2010 +0000
* s390-mkopc.c (main): Exit with error 1 if sscanf fails
to parse all 6 parameters.
commit f6fcc8796498fc0136a2e7493a8ae0ddd29b4018
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Sep 30 11:32:15 2010 +0000
* s390-mkopc.c (main): Change description array size to 80.
Add maximum length of 79 to description parsing.
commit 11a94fad08f146f52ea4bfc34f194ceefc85e2e5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Sep 30 10:28:59 2010 +0000
gdb/
Fix printing parameters of inlined functions.
* ada-lang.c (is_known_support_routine)
(ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
for find_frame_funname.
* python/py-frame.c (frapy_name): Likewise.
* stack.c (find_frame_funname): New parameter funcp. Update the
function comment. Fill it in.
(print_frame): New variable func. Initialize it by
find_frame_funname. Print arguments only if FUNC is not NULL. Use
FUNC as the parameter of print_args_stub.
* stack.h (find_frame_funname): New parameter funcp. Remove the
function declaration comment.
gdb/testsuite/
Fix printing parameters of inlined functions.
* gdb.dwarf2/dw2-inline-param.exp: New file.
* gdb.dwarf2/dw2-inline-param-main.c: New file.
* gdb.dwarf2/dw2-inline-param.S: New file.
commit 5cadd780e2909d24cb41b9a1b48b16385c834639
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Sep 30 10:24:39 2010 +0000
gdb/
PR corefiles/12071.
* inferior.c (have_live_inferiors): New variables old_chain, inf and
tp. Iterate INFERIOR_LIST and call target_has_execution.
gdb/testsuite/
PR corefiles/12071.
* gdb.base/corefile.exp (quit with a process, no question: load core)
(quit with a core file): New tests.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 47 +++-
Makefile.def | 4 +
Makefile.in | 32 ++
bfd/ChangeLog | 95 ++++++
bfd/elf-bfd.h | 52 ++--
bfd/elf.c | 176 +++++++----
bfd/elf32-arm.c | 21 +-
bfd/elf32-i386.c | 13 +-
bfd/elf32-m32r.c | 34 --
bfd/elf32-microblaze.c | 2 +-
bfd/elf32-ppc.c | 5 +-
bfd/elf32-spu.c | 2 +-
bfd/elf32-tic6x.c | 39 +--
bfd/elf64-alpha.c | 2 +-
bfd/elf64-hppa.c | 2 +-
bfd/elf64-mips.c | 33 +-
bfd/elf64-ppc.c | 27 +-
bfd/elf64-sparc.c | 13 +-
bfd/elf64-x86-64.c | 13 +-
bfd/elfcode.h | 23 +-
bfd/elflink.c | 326 +++++++++-----------
bfd/elfxx-ia64.c | 2 +-
bfd/elfxx-mips.c | 41 +--
bfd/elfxx-sparc.c | 4 +-
bfd/version.h | 2 +-
config/ChangeLog | 14 -
config/dfp.m4 | 4 +-
configure | 44 ++-
configure.ac | 32 ++-
gdb/ChangeLog | 163 ++++++++++
gdb/ada-lang.c | 189 +++++++-----
gdb/ada-lang.h | 4 +-
gdb/ada-typeprint.c | 98 ++++--
gdb/buildsym.c | 2 +-
gdb/buildsym.h | 2 +-
gdb/cc-with-index.sh | 122 ++++++++
gdb/coffread.c | 5 +-
gdb/completer.c | 29 ++-
gdb/dbxread.c | 7 +-
gdb/defs.h | 2 +-
gdb/dwarf2read.c | 61 +++-
gdb/elfread.c | 14 +-
gdb/fork-child.c | 15 +-
gdb/gdbserver/ChangeLog | 4 +
gdb/gdbserver/Makefile.in | 2 +-
gdb/infcall.c | 2 +-
gdb/inferior.c | 29 ++-
gdb/machoread.c | 5 +-
gdb/mdebugread.c | 8 +-
gdb/mipsread.c | 5 +-
gdb/objfiles.h | 2 +-
gdb/psympriv.h | 6 +-
gdb/psymtab.c | 10 +-
gdb/python/py-frame.c | 2 +-
gdb/python/python.c | 50 +++-
gdb/somread.c | 5 +-
gdb/sparc-tdep.c | 8 +
gdb/sparc64-tdep.c | 8 +
gdb/stack.c | 16 +-
gdb/stack.h | 4 +-
gdb/symfile.c | 23 +-
gdb/symfile.h | 14 +-
gdb/testsuite/ChangeLog | 54 ++++
gdb/testsuite/gdb.arch/altivec-abi.exp | 4 +-
gdb/testsuite/gdb.base/anon.c | 32 ++
gdb/testsuite/gdb.base/anon.exp | 32 ++
gdb/testsuite/gdb.base/break1.c | 1 +
gdb/testsuite/gdb.base/completion.exp | 4 +
gdb/testsuite/gdb.base/corefile.exp | 25 ++
gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inline-param-main.c | 42 +++
gdb/testsuite/gdb.dwarf2/dw2-inline-param.S | 152 +++++++++
gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp | 65 ++++
gdb/testsuite/gdb.python/py-block.exp | 13 +-
gdb/testsuite/gdb.python/py-breakpoint.exp | 13 +-
gdb/testsuite/gdb.python/py-frame.exp | 13 +-
gdb/testsuite/gdb.python/py-inferior.exp | 11 +-
gdb/testsuite/gdb.python/py-param.exp | 29 +--
gdb/testsuite/gdb.python/py-prettyprint.exp | 13 +-
gdb/testsuite/gdb.python/py-shared.exp | 13 +-
gdb/testsuite/gdb.python/py-symbol.exp | 13 +-
gdb/testsuite/gdb.python/py-symtab.exp | 13 +-
gdb/testsuite/gdb.python/py-type.exp | 13 +-
gdb/testsuite/gdb.python/py-value.exp | 31 +--
gdb/testsuite/gdb.python/python.exp | 13 +-
gdb/testsuite/lib/gdb-python.exp | 47 +++
gdb/testsuite/lib/mi-support.exp | 2 +-
gdb/value.c | 5 +-
gdb/version.in | 2 +-
gdb/xcoffread.c | 5 +-
opcodes/ChangeLog | 15 +
opcodes/i386-dis.c | 1 -
opcodes/s390-mkopc.c | 9 +-
93 files changed, 1838 insertions(+), 869 deletions(-)
create mode 100644 gdb/cc-with-index.sh
create mode 100644 gdb/testsuite/gdb.base/anon.c
create mode 100644 gdb/testsuite/gdb.base/anon.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-inline-param-main.c
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-inline-param.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
create mode 100644 gdb/testsuite/lib/gdb-python.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 263c1f7..4285361 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,49 @@
-2010-06-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ PR bootstrap/45326
+ PR bootstrap/45174
+ * configure.ac: Honor initial values of $build_configargs,
+ $host_configargs, $target_configargs. Mark the precious, so
+ environment settings get recorded.
+ * configure: Regenerate.
+
+2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Sync from GCC:
+
+ 2010-09-30 Michael Eager <eager@eagercon.com>
+
+ * configure.ac (microblaze): Add target-libssp to noconfigdirs.
+ * configure: Regenerate.
+
+ 2010-09-21 Iain Sandoe <iains@gcc.gnu.org>
+
+ * configure.ac (enable-lto): Add Darwin to the list of supported lto
+ targets and amend comment.
+ * configure: Regenerate.
+
+ 2010-09-03 Jack Howarth <howarth@bromo.med.uc.edu>
+
+ * configure.ac: Enable LTO by default on Darwin.
+ * configure: Regenerate.
+
+ 2010-07-23 Marc Glisse <marc.glisse@normalesup.org>
+
+ PR bootstrap/44455
+ * configure.ac (extra_mpfr_configure_flags): Copy from
+ extra_mpc_gmp_configure_flags.
+ * configure: Re-generated.
+
+2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Sync from GCC:
+
+ PR bootstrap/45796
+ * Makefile.def (info-gcc, dvi-gcc, pdf-gcc, html-gcc):
+ Depend on all-build-libiberty.
+ * Makefile.in: Regenerate.
+
+2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Sync from GCC:
diff --git a/Makefile.def b/Makefile.def
index ccc23f6..29cd1a3 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -341,6 +341,10 @@ dependencies = { module=all-gcc; on=all-libcpp; hard=true; };
dependencies = { module=all-gcc; on=all-libdecnumber; hard=true; };
dependencies = { module=all-gcc; on=all-libiberty; };
dependencies = { module=all-gcc; on=all-fixincludes; };
+dependencies = { module=info-gcc; on=all-build-libiberty; };
+dependencies = { module=dvi-gcc; on=all-build-libiberty; };
+dependencies = { module=pdf-gcc; on=all-build-libiberty; };
+dependencies = { module=html-gcc; on=all-build-libiberty; };
dependencies = { module=install-gcc ; on=install-fixincludes; };
dependencies = { module=configure-libcpp; on=configure-libiberty; hard=true; };
diff --git a/Makefile.in b/Makefile.in
index 3268a30..1d5ef9e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -57909,6 +57909,38 @@ all-stage4-gcc: maybe-all-stage4-libiberty
all-stageprofile-gcc: maybe-all-stageprofile-libiberty
all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
all-gcc: maybe-all-fixincludes
+info-gcc: maybe-all-build-libiberty
+
+info-stage1-gcc: maybe-all-build-libiberty
+info-stage2-gcc: maybe-all-build-libiberty
+info-stage3-gcc: maybe-all-build-libiberty
+info-stage4-gcc: maybe-all-build-libiberty
+info-stageprofile-gcc: maybe-all-build-libiberty
+info-stagefeedback-gcc: maybe-all-build-libiberty
+dvi-gcc: maybe-all-build-libiberty
+
+dvi-stage1-gcc: maybe-all-build-libiberty
+dvi-stage2-gcc: maybe-all-build-libiberty
+dvi-stage3-gcc: maybe-all-build-libiberty
+dvi-stage4-gcc: maybe-all-build-libiberty
+dvi-stageprofile-gcc: maybe-all-build-libiberty
+dvi-stagefeedback-gcc: maybe-all-build-libiberty
+pdf-gcc: maybe-all-build-libiberty
+
+pdf-stage1-gcc: maybe-all-build-libiberty
+pdf-stage2-gcc: maybe-all-build-libiberty
+pdf-stage3-gcc: maybe-all-build-libiberty
+pdf-stage4-gcc: maybe-all-build-libiberty
+pdf-stageprofile-gcc: maybe-all-build-libiberty
+pdf-stagefeedback-gcc: maybe-all-build-libiberty
+html-gcc: maybe-all-build-libiberty
+
+html-stage1-gcc: maybe-all-build-libiberty
+html-stage2-gcc: maybe-all-build-libiberty
+html-stage3-gcc: maybe-all-build-libiberty
+html-stage4-gcc: maybe-all-build-libiberty
+html-stageprofile-gcc: maybe-all-build-libiberty
+html-stagefeedback-gcc: maybe-all-build-libiberty
install-gcc: maybe-install-fixincludes
configure-libcpp: configure-libiberty
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8068c4c..c21a0f9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,98 @@
+2010-10-06 Nathan Sidwell <nathan@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_stub_long_branch_any_arm_pic,
+ elf32_arm_stub_long_branch_any_arm_pic): Use a consistent name for
+ ip/r12.
+ (arm_type_of_stub): Remove superfluous braces.
+
+2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
+
+ * elf-bfd.h (struct bfd_elf_section_reloc_data): New structure.
+ (struct bfd_elf_section_data): New members REL and RELA; delete
+ members REL_HDR, REL_HDR2, REL_COUNT, REL_COUNT2, REL_IDX,
+ REL_IDX2, REL_HASHES.
+ (_bfd_elf_init_reloc_shdr): Adjust declaration.
+ (_bfd_elf_single_rel_hdr): Declare.
+ (RELOC_AGAINST_DISCARDED_SECTION): Use it.
+ * elf.c (bfd_section_from_shdr): Adjusted to match changes in
+ data structures.
+ (_bfd_elf_init_reloc_shdr): New arg RELDATA. Remove arg REL_HDR.
+ All callers changed. Allocate memory for the Elf_Internal_Shdr
+ structure.
+ (_bfd_elf_single_rel_hdr): New function.
+ (struct fake_section_arg): New structure.
+ (elf_fake_section): Expect to see a pointer to it in the third
+ argument. If doing a relocatable link, allocate both REL and RELA
+ sections as needed.
+ (assign_section_numbers): Adjusted to match changes in
+ data structures.
+ (_bfd_elf_compute_section_file_positions): Call elf_fake_sections
+ with a struct fake_section_args argument.
+ * elfcode.h (elf_write_relocs): Adjusted to match changes in
+ data structures.
+ (elf_slurp_reloc_table): Likewise.
+ * elflink.c (_bfd_elf_link_read_relocs): Likewise.
+ (_bfd_elf_link_size_reloc_section): Remove arg REL_HDR, replace with
+ RELDATA. Remove argument O. All callers changed. Remove code to
+ discover the right rel_hdr and count.
+ (_bfd_elf_link_output_relocs): Adjusted to match changes in
+ data structures.
+ (elf_link_adjust_relocs): Remove args REL_HDR, COUNT and REL_HASH;
+ replace with RELDATA. All callers changed.
+ (elf_link_input_bfd): Correctly generate rel_hash data when both
+ REL and RELA sections are present.
+ (elf_reloc_link_order): Adjusted to match changes in
+ data structures.
+ (bfd_elf_final_link): Simplify code to count relocs. Free the
+ hashes array for both REL and RELA.
+ (get_dynamic_reloc_section_name): Use _bfd_elf_single_reloc_hdr
+ * elf32-m32r.c (m32r_elf_fake_sections, elf_backend_fake_sections):
+ Delete.
+ * elf32-tic6x.c (elf32_tic6x_fake_sections, elf_backend_fake_sections):
+ Delete.
+ (elf32_tic6x_rel_relocation_p): Adjusted to match changes in
+ data structures.
+ * elf32-microblaze.c (microblaze_elf_check_relocs): Use
+ _bfd_elf_single_rel_hdr.
+ * elf32-ppc.c (ppc_elf_relax_section): Likewise.
+ * elf32-spu.c (spu_elf_relocate_section): Likewise.
+ * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
+ * elf64-hppa.c (get_reloc_section): Likewise.
+ * elf64-mips.c (mips_elf64_slurp_reloc_table): Adjusted to match
+ changes in data structures.
+ (mips_elf64_write_relocs): Use _bfd_elf_single_rel_hdr.
+ * elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
+ (ppc64_elf_edit_toc): Likewise.
+ (get_relocs): Adjusted to match changes in data structures.
+ Allocate an Elf_Internal_Shdr structure if necessary.
+ (ppc64_elf_finish_dynamic_sections): Use _bfd_elf_single_rel_hdr.
+ * elf64-sparc.c (elf64_sparc_slurp_reloc_table): Adjusted to match
+ changes in data structures.
+ * elfxx-ia64.c (get_reloc_section): Use _bfd_elf_single_rel_hdr.
+ * elfxx-mips.c (MIPS_RELOC_RELA_P): Remove macro.
+ (mips_elf_rel_relocation_p): Adjusted to match changes in data
+ structures.
+ (_bfd_mips_elf_relocate_section): Use mips_elf_rel_relocation_p rather
+ than MIPS_RELOC_RELOCA_P.
+ * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use
+ _bfd_elf_single_rel_hdr.
+ (_bfd_sparc_elf_relocate_section): Likewise.
+
+2010-10-01 Thomas Schwinge <thomas@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_size_stubs): Don't choke on local symbols in
+ SHN_UNDEF, SHN_ABS, SHN_COMMON.
+
+2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11812
+ * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
+ allocate .got.plt section if there are no GOT nor PLT
+ entries and there is no refeence to _GLOBAL_OFFSET_TABLE_.
+ * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Li.kewise.
+
+ * elflink.c (_bfd_elf_define_linkage_sym): Clear non_elf.
+
2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure: Regenerate.
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index dbcebd2..66dcbcd 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1319,6 +1319,23 @@ struct elf_backend_data
unsigned default_execstack : 1;
};
+/* Information about reloc sections associated with a bfd_elf_section_data
+ structure. */
+struct bfd_elf_section_reloc_data
+{
+ /* The ELF header for the reloc section associated with this
+ section, if any. */
+ Elf_Internal_Shdr *hdr;
+ /* The number of relocations currently assigned to HDR. */
+ unsigned int count;
+ /* The ELF section number of the reloc section. Only used for an
+ output file. */
+ int idx;
+ /* Used by the backend linker to store the symbol hash table entries
+ associated with relocs against global symbols. */
+ struct elf_link_hash_entry **hashes;
+};
+
/* Information stored for each BFD section in an ELF file. This
structure is allocated by elf_new_section_hook. */
@@ -1327,31 +1344,13 @@ struct bfd_elf_section_data
/* The ELF header for this section. */
Elf_Internal_Shdr this_hdr;
- /* The ELF header for the reloc section associated with this
- section, if any. */
- Elf_Internal_Shdr rel_hdr;
-
- /* If there is a second reloc section associated with this section,
- as can happen on Irix 6, this field points to the header. */
- Elf_Internal_Shdr *rel_hdr2;
-
- /* The number of relocations currently assigned to REL_HDR. */
- unsigned int rel_count;
-
- /* The number of relocations currently assigned to REL_HDR2. */
- unsigned int rel_count2;
+ /* Information about the REL and RELA reloc sections associated
+ with this section, if any. */
+ struct bfd_elf_section_reloc_data rel, rela;
/* The ELF section number of this section. */
int this_idx;
- /* The ELF section number of the reloc section indicated by
- REL_HDR if any. Only used for an output file. */
- int rel_idx;
-
- /* The ELF section number of the reloc section indicated by
- REL_HDR2 if any. Only used for an output file. */
- int rel_idx2;
-
/* Used by the backend linker when generating a shared library to
record the dynamic symbol index for a section symbol
corresponding to this section. A value of 0 means that there is
@@ -1361,10 +1360,6 @@ struct bfd_elf_section_data
/* A pointer to the linked-to section for SHF_LINK_ORDER. */
asection *linked_to;
- /* Used by the backend linker to store the symbol hash table entries
- associated with relocs against global symbols. */
- struct elf_link_hash_entry **rel_hashes;
-
/* A pointer to the swapped relocs. If the section uses REL relocs,
rather than RELA, all the r_addend fields will be zero. This
pointer may be NULL. It is used by the backend linker. */
@@ -1852,7 +1847,7 @@ extern int _bfd_elf_sizeof_headers
extern bfd_boolean _bfd_elf_new_section_hook
(bfd *, asection *);
extern bfd_boolean _bfd_elf_init_reloc_shdr
- (bfd *, Elf_Internal_Shdr *, asection *, bfd_boolean);
+ (bfd *, struct bfd_elf_section_reloc_data *, asection *, bfd_boolean);
extern const struct bfd_elf_special_section *_bfd_elf_get_special_section
(const char *, const struct bfd_elf_special_section *, unsigned int);
extern const struct bfd_elf_special_section *_bfd_elf_get_sec_type_attr
@@ -2237,6 +2232,7 @@ extern void _bfd_elf_copy_obj_attributes (bfd *, bfd *);
extern int _bfd_elf_obj_attrs_arg_type (bfd *, int, int);
extern void _bfd_elf_parse_attributes (bfd *, Elf_Internal_Shdr *);
extern bfd_boolean _bfd_elf_merge_object_attributes (bfd *, bfd *);
+extern Elf_Internal_Shdr *_bfd_elf_single_rel_hdr (asection *sec);
/* The linker may needs to keep track of the number of relocs that it
decides to copy as dynamic relocs in check_relocs for each symbol.
@@ -2363,13 +2359,13 @@ extern asection _bfd_elf_large_com_section;
sections may require relocations. */ \
Elf_Internal_Shdr *rel_hdr; \
\
- rel_hdr = &elf_section_data (input_section->output_section)->rel_hdr; \
+ rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); \
\
/* Avoid empty output section. */ \
if (rel_hdr->sh_size > rel_hdr->sh_entsize) \
{ \
rel_hdr->sh_size -= rel_hdr->sh_entsize; \
- rel_hdr = &elf_section_data (input_section)->rel_hdr; \
+ rel_hdr = _bfd_elf_single_rel_hdr (input_section); \
rel_hdr->sh_size -= rel_hdr->sh_entsize; \
\
memmove (rel, rel + 1, (relend - rel) * sizeof (*rel)); \
diff --git a/bfd/elf.c b/bfd/elf.c
index fe5f19f..85d4c18 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1710,8 +1710,10 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
/* *These* do a lot of work -- but build no sections! */
{
asection *target_sect;
- Elf_Internal_Shdr *hdr2;
+ Elf_Internal_Shdr *hdr2, **p_hdr;
unsigned int num_sec = elf_numsections (abfd);
+ struct bfd_elf_section_data *esdt;
+ bfd_size_type amt;
if (hdr->sh_entsize
!= (bfd_size_type) (hdr->sh_type == SHT_REL
@@ -1790,20 +1792,19 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
if (target_sect == NULL)
return FALSE;
- if ((target_sect->flags & SEC_RELOC) == 0
- || target_sect->reloc_count == 0)
- hdr2 = &elf_section_data (target_sect)->rel_hdr;
+ esdt = elf_section_data (target_sect);
+ if (hdr->sh_type == SHT_RELA)
+ p_hdr = &esdt->rela.hdr;
else
- {
- bfd_size_type amt;
- BFD_ASSERT (elf_section_data (target_sect)->rel_hdr2 == NULL);
- amt = sizeof (*hdr2);
- hdr2 = (Elf_Internal_Shdr *) bfd_alloc (abfd, amt);
- if (hdr2 == NULL)
- return FALSE;
- elf_section_data (target_sect)->rel_hdr2 = hdr2;
- }
+ p_hdr = &esdt->rel.hdr;
+
+ BFD_ASSERT (*p_hdr == NULL);
+ amt = sizeof (*hdr2);
+ hdr2 = (Elf_Internal_Shdr *) bfd_alloc (abfd, amt);
+ if (hdr2 == NULL)
+ return FALSE;
*hdr2 = *hdr;
+ *p_hdr = hdr2;
elf_elfsections (abfd)[shindex] = hdr2;
target_sect->reloc_count += NUM_SHDR_ENTRIES (hdr);
target_sect->flags |= SEC_RELOC;
@@ -1812,7 +1813,10 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
/* In the section to which the relocations apply, mark whether
its relocations are of the REL or RELA variety. */
if (hdr->sh_size != 0)
- target_sect->use_rela_p = hdr->sh_type == SHT_RELA;
+ {
+ if (hdr->sh_type == SHT_RELA)
+ target_sect->use_rela_p = 1;
+ }
abfd->flags |= HAS_RELOC;
return TRUE;
}
@@ -2410,20 +2414,43 @@ bfd_section_from_phdr (bfd *abfd, Elf_Internal_Phdr *hdr, int hdr_index)
}
}
-/* Initialize REL_HDR, the section-header for new section, containing
- relocations against ASECT. If USE_RELA_P is TRUE, we use RELA
- relocations; otherwise, we use REL relocations. */
+/* Return the REL_HDR for SEC, assuming there is only a single one, either
+ REL or RELA. */
+
+Elf_Internal_Shdr *
+_bfd_elf_single_rel_hdr (asection *sec)
+{
+ if (elf_section_data (sec)->rel.hdr)
+ {
+ BFD_ASSERT (elf_section_data (sec)->rela.hdr == NULL);
+ return elf_section_data (sec)->rel.hdr;
+ }
+ else
+ return elf_section_data (sec)->rela.hdr;
+}
+
+/* Allocate and initialize a section-header for a new reloc section,
+ containing relocations against ASECT. It is stored in RELDATA. If
+ USE_RELA_P is TRUE, we use RELA relocations; otherwise, we use REL
+ relocations. */
bfd_boolean
_bfd_elf_init_reloc_shdr (bfd *abfd,
- Elf_Internal_Shdr *rel_hdr,
+ struct bfd_elf_section_reloc_data *reldata,
asection *asect,
bfd_boolean use_rela_p)
{
+ Elf_Internal_Shdr *rel_hdr;
char *name;
const struct elf_backend_data *bed = get_elf_backend_data (abfd);
- bfd_size_type amt = sizeof ".rela" + strlen (asect->name);
+ bfd_size_type amt;
+
+ amt = sizeof (Elf_Internal_Shdr);
+ BFD_ASSERT (reldata->hdr == NULL);
+ rel_hdr = bfd_zalloc (abfd, amt);
+ reldata->hdr = rel_hdr;
+ amt = sizeof ".rela" + strlen (asect->name);
name = (char *) bfd_alloc (abfd, amt);
if (name == NULL)
return FALSE;
@@ -2457,30 +2484,37 @@ bfd_elf_get_default_section_type (flagword flags)
return SHT_PROGBITS;
}
+struct fake_section_arg
+{
+ struct bfd_link_info *link_info;
+ bfd_boolean failed;
+};
+
/* Set up an ELF internal section header for a section. */
static void
-elf_fake_sections (bfd *abfd, asection *asect, void *failedptrarg)
+elf_fake_sections (bfd *abfd, asection *asect, void *fsarg)
{
+ struct fake_section_arg *arg = (struct fake_section_arg *)fsarg;
const struct elf_backend_data *bed = get_elf_backend_data (abfd);
- bfd_boolean *failedptr = (bfd_boolean *) failedptrarg;
+ struct bfd_elf_section_data *esd = elf_section_data (asect);
Elf_Internal_Shdr *this_hdr;
unsigned int sh_type;
- if (*failedptr)
+ if (arg->failed)
{
/* We already failed; just get out of the bfd_map_over_sections
loop. */
return;
}
- this_hdr = &elf_section_data (asect)->this_hdr;
+ this_hdr = &esd->this_hdr;
this_hdr->sh_name = (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd),
asect->name, FALSE);
if (this_hdr->sh_name == (unsigned int) -1)
{
- *failedptr = TRUE;
+ arg->failed = TRUE;
return;
}
@@ -2632,11 +2666,45 @@ elf_fake_sections (bfd *abfd, asection *asect, void *failedptrarg)
if ((asect->flags & (SEC_GROUP | SEC_EXCLUDE)) == SEC_EXCLUDE)
this_hdr->sh_flags |= SHF_EXCLUDE;
+ /* If the section has relocs, set up a section header for the
+ SHT_REL[A] section. If two relocation sections are required for
+ this section, it is up to the processor-specific back-end to
+ create the other. */
+ if ((asect->flags & SEC_RELOC) != 0)
+ {
+ /* When doing a relocatable link, create both REL and RELA sections if
+ needed. */
+ if (arg->link_info
+ /* Do the normal setup if we wouldn't create any sections here. */
+ && esd->rel.count + esd->rela.count > 0
+ && (arg->link_info->relocatable || arg->link_info->emitrelocations))
+ {
+ if (esd->rel.count && esd->rel.hdr == NULL
+ && !_bfd_elf_init_reloc_shdr (abfd, &esd->rel, asect, FALSE))
+ {
+ arg->failed = TRUE;
+ return;
+ }
+ if (esd->rela.count && esd->rela.hdr == NULL
+ && !_bfd_elf_init_reloc_shdr (abfd, &esd->rela, asect, TRUE))
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-09-30 8:56 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-09-30 8:56 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 7c59491f02de02410c8bccf525b7447a5a0594df (commit)
via 1010a27d3706b299aa9958e82667d57f01f58204 (commit)
via 42ffc82f732aa73bf565f4a51ed6e509955c8462 (commit)
via 0c3e0e15aeb2029e8d7841d289c7be7d38572850 (commit)
via b82ddc1f796104420a19b08ee50d72316782bcd2 (commit)
via 1ee0c33c426de06c97c75bfdf5e5f990c2f42261 (commit)
via 617f69caa31b60b5c838f8a1a76cec1becfa7dff (commit)
via 55b9f5fe55d30ef96cd98b9458b7ea7b870e6976 (commit)
via 7abd9bc8b37cb4244f85a743f237f017d03a2366 (commit)
via 56164c7ec53e3836f3bf25c8627580c6521b4a23 (commit)
via 27a709284e8419d78ee042ec78fda19e11a94017 (commit)
via 9e580aa51107b206d0e1306f126996dd8db71dcf (commit)
via 734274a9a8c5041fa4dcefe9d72fc0b0d697b2a3 (commit)
via 41d92efc2bba2bf24b8c0ed8d98eb3b90825fdd9 (commit)
via d3eb7e583b5ba36bc96cabd529031df5140d504f (commit)
via 953b1cda13c595456aa3690205b0f520bad6c78d (commit)
via 422dd49c10741028349fee7fe3587767226eb032 (commit)
via 8bf055c94d7fe0c58e5c0fdd724d0fcce6dcf2a0 (commit)
via 8f12d6cd84773dc22d1e7b3ec36c0e8d91fcd188 (commit)
via 497c3ac470e706d65f8c27931b29e9069163fafe (commit)
via 40d6506dc236659cffbad1e37c7bd4ddeb37860f (commit)
via 261511b8209b641461fab0f0e942c4d1aaf77068 (commit)
via f2647fd1f2c72d6264c497637bfab87a23a854df (commit)
via d6e7ea1bfef1184826601afb3668b73c4e23840f (commit)
via 3e28ee57dc62c171355315a6924c07e9463923b4 (commit)
from 0e71db4d2ee3a8c168c6ef5476a36fabd58c7c11 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 7c59491f02de02410c8bccf525b7447a5a0594df
Merge: 0e71db4 1010a27
Author: Phil Muldoon <pmuldoon@localhost.localdomain>
Date: Thu Sep 30 09:56:14 2010 +0100
Merge remote branch 'gdb/master'
commit 1010a27d3706b299aa9958e82667d57f01f58204
Author: Kevin Buettner <kevinb@redhat.com>
Date: Thu Sep 30 00:03:23 2010 +0000
* mem.c (rx_mem_ptr): When invalidating the decode cache, account
for the fact that the instruction decoder never uses swapped
addresses.
commit 42ffc82f732aa73bf565f4a51ed6e509955c8462
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 30 00:01:03 2010 +0000
*** empty log message ***
commit 0c3e0e15aeb2029e8d7841d289c7be7d38572850
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Sep 30 00:00:05 2010 +0000
daily update
commit b82ddc1f796104420a19b08ee50d72316782bcd2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Sep 29 22:32:48 2010 +0000
gdb/
Fix GDB crash on inferior calls with self-referencing classes.
* gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
member fields.
gdb/testsuite/
Fix GDB crash on inferior calls with self-referencing classes.
* gdb.dwarf2/dw2-cp-infcall-ref-static.exp: New file.
* gdb.dwarf2/dw2-cp-infcall-ref-static-main.c: New file.
* gdb.dwarf2/dw2-cp-infcall-ref-static.S: New file.
commit 1ee0c33c426de06c97c75bfdf5e5f990c2f42261
Author: Doug Evans <dje@google.com>
Date: Wed Sep 29 16:41:20 2010 +0000
Workaround for gcc/45682.
* dwarf2read.c (partial_die_info): New fields fixup_called,
linkage_name.
(guess_partial_die_structure_name): Renamed from guess_structure_name.
Move definition next to use. Use linkage_name to determine if class
is in a namespace. All callers updated.
(fixup_partial_die): Return early if already called.
Set fixup_called when done.
(guess_full_die_structure_name): New function.
(determine_prefix): Call it for class/struct/union dies if c++ and
.debug_types section is present and parent is DW_TAG_compile_unit.
commit 617f69caa31b60b5c838f8a1a76cec1becfa7dff
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Sep 29 15:47:45 2010 +0000
* rx.c (decode_opcode: RXO_int): Only break out of the emulation
loop if rx_syscall() does not return a RX_STEPPED result.
commit 55b9f5fe55d30ef96cd98b9458b7ea7b870e6976
Author: Bernd Schmidt <bernd.schmidt@analog.com>
Date: Wed Sep 29 10:14:02 2010 +0000
include/
* opcode/tic6x-control-registers.h (tscl): Now read_write.
gas/testsuite/
* gas/tic6x/insns-bad-1.s: Remove test for readonly tscl.
* gas/tic6x/insns-bad-1.l: Likewise.
* gas/tic6x/insns-c674x.d: Add test for writeable tscl.
* gas/tic6x/insns-c674x.s: Likewise.
commit 7abd9bc8b37cb4244f85a743f237f017d03a2366
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 29 00:00:33 2010 +0000
*** empty log message ***
commit 56164c7ec53e3836f3bf25c8627580c6521b4a23
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Sep 29 00:00:05 2010 +0000
daily update
commit 27a709284e8419d78ee042ec78fda19e11a94017
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Sep 28 21:46:09 2010 +0000
Add a sparc simulator with the sparc bareboard target.
gdb/ChangeLog:
* configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
(sparc-*-rtems*): Delete, now redundant with the sparc-*-* case.
commit 9e580aa51107b206d0e1306f126996dd8db71dcf
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Sep 28 21:40:22 2010 +0000
[doco] document support for Ravenscar profile
This announces the support for debugging Ada programs using
the Ravenscar Profile, as well as documents the new commands
introduced as part of this effort.
gdb/ChangeLog:
* NEWS: Announce Ravenscar Profile support.
gdb/doc/ChangeLog:
* gdb.texinfo (Ravenscar Profile): New node.
commit 734274a9a8c5041fa4dcefe9d72fc0b0d697b2a3
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Sep 28 21:39:31 2010 +0000
Add support for GNAT Ravenscar run-time library.
gdb/ChangeLog (Jerome Guitton, Joel Brobecker):
* ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
New files.
* configure.tgt (sparc-*-*): Add ravenscar-thread.o and
ravenscar-sparc-thread.o to gdb_target_obs.
commit 41d92efc2bba2bf24b8c0ed8d98eb3b90825fdd9
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Sep 28 21:39:03 2010 +0000
[Ada] Add ada-tasks.c:iterate_over_live_ada_tasks
This new function is needed by the ravenscar-thread layer.
gdb/ChangeLog:
* ada-tasks.c (iterate_over_live_ada_tasks): New function.
* ada-lang.h (iterate_over_live_ada_tasks): Declare.
commit d3eb7e583b5ba36bc96cabd529031df5140d504f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Sep 28 00:00:33 2010 +0000
*** empty log message ***
commit 953b1cda13c595456aa3690205b0f520bad6c78d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Sep 28 00:00:06 2010 +0000
daily update
commit 422dd49c10741028349fee7fe3587767226eb032
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Sep 27 22:05:40 2010 +0000
* amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
(amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
skip_main_prologue method.
commit 8bf055c94d7fe0c58e5c0fdd724d0fcce6dcf2a0
Author: DJ Delorie <dj@delorie.com>
Date: Mon Sep 27 21:01:11 2010 +0000
merge from gcc
commit 8f12d6cd84773dc22d1e7b3ec36c0e8d91fcd188
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Mon Sep 27 20:22:45 2010 +0000
Fix unportable shell quoting.
/:
Sync from GCC:
PR bootstrap/44621
* configure.ac: Fix unportable shell quoting.
* configure: Regenerate.
config/:
* po.m4 (AM_PO_SUBDIRS): Fix unportable shell quoting.
bfd/:
* configure: Regenerate.
gas/:
* configure: Regenerate.
gold/:
* configure: Regenerate.
intl/:
* configure: Regenerate.
ld/:
* configure: Regenerate.
opcodes/:
* configure: Regenerate.
binutils/:
* configure: Regenerate.
gprof/:
* configure: Regenerate.
commit 497c3ac470e706d65f8c27931b29e9069163fafe
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Sep 27 18:42:35 2010 +0000
* dwarf2read.c (dwarf2_read_index): Only allow version 3.
(write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
Only emit a given psymbol once.
(struct signatured_type_index_data) <psyms_seen>: New field.
(write_one_signatured_type): Update.
(cleanup_htab): New function.
(write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
version to 3.
(save_gdb_index_command): Update index documentation.
commit 40d6506dc236659cffbad1e37c7bd4ddeb37860f
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Sep 27 17:41:35 2010 +0000
* bcache.c (expand_hash_table): Use hash_function, not hash.
commit 261511b8209b641461fab0f0e942c4d1aaf77068
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Sep 27 17:28:47 2010 +0000
* gdb_wchar.h: Change minimum libiconv to 0x108.
commit f2647fd1f2c72d6264c497637bfab87a23a854df
Author: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Date: Mon Sep 27 13:36:48 2010 +0000
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390-mkopc.c (enum s390_opcde_cpu_val): Add S390_OPCODE_Z196.
(main): Recognize the new CPU string.
* s390-opc.c: Add new instruction formats and masks.
* s390-opc.txt: Add new z196 instructions.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* opcode/s390.h: Add S390_OPCODE_Z196 to enum s390_opcode_cpu_val.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.c: (md_parse_option): New option -march=z196.
* doc/c-s390.texi: Document new option.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gas/s390/s390.exp: Run the zarch-z196 test.
* gas/s390/zarch-z196.d: Add new instructions.
* gas/s390/zarch-z196.s: Likewise.
* gas/s390/zarch-z9-109.d: Likewise.
* gas/s390/zarch-z9-109.s: Likewise.
commit d6e7ea1bfef1184826601afb3668b73c4e23840f
Author: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Date: Mon Sep 27 13:33:00 2010 +0000
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390-dis.c (print_insn_s390): Pick instruction with most
specific mask.
* s390-opc.c: Add unused bits to the insn mask.
* s390-opc.txt: Reorder some instructions to prefer more recent
versions.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gas/s390/esa-g5.d: Adjust serveral instructions.
* gas/s390/esa-reloc.d: Likewise.
* gas/s390/esa-z990.d: Likewise.
* gas/s390/zarch-reloc.d: Likewise.
* gas/s390/zarch-z10.d: Likewise.
* gas/s390/zarch-z9-ec.d: Likewise.
* gas/s390/zarch-z900.d: Likewise.
2010-09-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* ld-s390/tlsbin.dd: bcr 0,%r7 -> nopr %r7.
* ld-s390/tlsbin_64.dd: Likewise.
* ld-s390/tlspic.dd: Likewise.
* ld-s390/tlspic_64.dd: Likewise.
commit 3e28ee57dc62c171355315a6924c07e9463923b4
Author: mgretton <mgretton>
Date: Mon Sep 27 09:47:04 2010 +0000
2010-09-27 Tejas Belagod <tejas.belagod@arm.com>
* gas/config/tc-arm.c (do_neon_ldr_str): Deprecate ARM-mode PC-relative
VSTR, issue an error in THUMB mode.
* opcodes/arm_dis.c (print_insn_coprocessor): Apply off-by-alignment
correction to unaligned PCs while printing comment.
* gas/testsuite/gas/arm/vldr.s: New test for pc-relative VLDR disassembly comment.
* gas/testsuite/gas/arm/vldr.d: Likewise.
* gas/testsuite/gas/arm/vstr-bad.s: New test for PC-relative VSTR.
* gas/testsuite/gas/arm/vstr-thumb-bad.l: Likewise.
* gas/testsuite/gas/arm/vstr-thumb-bad.d: Likewise.
* gas/testsuite/gas/arm/vstr-arm-bad.l: Likewise.
* gas/testsuite/gas/arm/vstr-arm-bad.d: Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 +
bfd/ChangeLog | 4 +
bfd/configure | 2 +-
bfd/version.h | 2 +-
config/ChangeLog | 4 +
config/po.m4 | 2 +-
configure | 2 +-
configure.ac | 2 +-
gdb/ChangeLog | 68 +++
gdb/NEWS | 5 +
gdb/ada-lang.h | 4 +
gdb/ada-tasks.c | 21 +
gdb/amd64-windows-tdep.c | 33 ++
gdb/bcache.c | 3 +-
gdb/configure.tgt | 9 +-
gdb/doc/ChangeLog | 4 +
gdb/doc/gdb.texinfo | 32 ++
gdb/dwarf2read.c | 329 +++++++++++----
gdb/gdb_wchar.h | 9 +-
gdb/gnu-v3-abi.c | 5 +-
gdb/ravenscar-sparc-thread.c | 185 +++++++++
gdb/ravenscar-thread.c | 434 ++++++++++++++++++++
gdb/ravenscar-thread.h | 41 ++
gdb/testsuite/ChangeLog | 7 +
.../gdb.dwarf2/dw2-cp-infcall-ref-static-main.c | 51 +++
.../gdb.dwarf2/dw2-cp-infcall-ref-static.S | 115 ++++++
.../gdb.dwarf2/dw2-cp-infcall-ref-static.exp | 49 +++
gdb/version.in | 2 +-
include/ChangeLog | 8 +
include/opcode/s390.h | 3 +-
include/opcode/tic6x-control-registers.h | 4 +-
intl/ChangeLog | 5 +
intl/configure | 2 +-
libiberty/ChangeLog | 33 +--
libiberty/cplus-dem.c | 200 ++++++---
libiberty/testsuite/demangle-expected | 30 ++
opcodes/ChangeLog | 24 ++
opcodes/arm-dis.c | 8 +-
opcodes/configure | 2 +-
opcodes/s390-dis.c | 25 ++
opcodes/s390-mkopc.c | 5 +-
opcodes/s390-opc.c | 36 ++-
opcodes/s390-opc.txt | 149 +++++++-
sim/rx/ChangeLog | 11 +
sim/rx/mem.c | 12 +-
sim/rx/rx.c | 4 +-
46 files changed, 1773 insertions(+), 220 deletions(-)
create mode 100644 gdb/ravenscar-sparc-thread.c
create mode 100644 gdb/ravenscar-thread.c
create mode 100644 gdb/ravenscar-thread.h
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static-main.c
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 2bfa992..263c1f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-06-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Sync from GCC:
+
+ PR bootstrap/44621
+ * configure.ac: Fix unportable shell quoting.
+ * configure: Regenerate.
+
2010-07-17 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/44862
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b281a04..8068c4c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * configure: Regenerate.
+
2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
* elf32-arm.c, elf32-cris.c, elf32-hppa.c, elf32-i370.c, elf32-m32r.c,
diff --git a/bfd/configure b/bfd/configure
index e1ea93b..980711a 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -18067,7 +18067,7 @@ _LT_EOF
case "$ac_file" in */Makefile.in)
# Adjust a relative srcdir.
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
- ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
+ ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
# In autoconf-2.13 it is called $ac_given_srcdir.
# In autoconf-2.50 it is called $srcdir.
diff --git a/bfd/version.h b/bfd/version.h
index ebaa451..93b309b 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100927
+#define BFD_VERSION_DATE 20100930
#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/config/ChangeLog b/config/ChangeLog
index 6fdf36c..4b5a427 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * po.m4 (AM_PO_SUBDIRS): Fix unportable shell quoting.
+
2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
PR target/45524
diff --git a/config/po.m4 b/config/po.m4
index 861e3de..2edd5a7 100644
--- a/config/po.m4
+++ b/config/po.m4
@@ -96,7 +96,7 @@ AC_DEFUN([AM_PO_SUBDIRS],
case "$ac_file" in */Makefile.in)
# Adjust a relative srcdir.
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
- ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
+ ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
# In autoconf-2.13 it is called $ac_given_srcdir.
# In autoconf-2.50 it is called $srcdir.
diff --git a/configure b/configure
index 0904ffb..47f732f 100755
--- a/configure
+++ b/configure
@@ -3108,7 +3108,7 @@ fi
configdirs="$configdirs gold"
;;
*)
- configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
+ configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
;;
esac
ENABLE_GOLD=yes
diff --git a/configure.ac b/configure.ac
index 2d39219..eca08fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -351,7 +351,7 @@ ENABLE_GOLD=no)
configdirs="$configdirs gold"
;;
*)
- configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
+ configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
;;
esac
ENABLE_GOLD=yes
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 55b1d88..fc02717 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,71 @@
+2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix GDB crash on inferior calls with self-referencing classes.
+ * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
+ member fields.
+
+2010-09-29 Doug Evans <dje@google.com>
+
+ Workaround for gcc/45682.
+ * dwarf2read.c (partial_die_info): New fields fixup_called,
+ linkage_name.
+ (guess_partial_die_structure_name): Renamed from guess_structure_name.
+ Move definition next to use. Use linkage_name to determine if class
+ is in a namespace. All callers updated.
+ (fixup_partial_die): Return early if already called.
+ Set fixup_called when done.
+ (guess_full_die_structure_name): New function.
+ (determine_prefix): Call it for class/struct/union dies if c++ and
+ .debug_types section is present and parent is DW_TAG_compile_unit.
+
+2010-09-28 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
+ (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
+
+2010-09-28 Joel Brobecker <brobecker@adacore.com>
+
+ * NEWS: Announce Ravenscar Profile support.
+
+2010-09-28 Joel Brobecker <brobecker@adacore.com>
+ Jerome Guitton <guitton@adacore.com>
+
+ * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
+ New files.
+ * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
+ ravenscar-sparc-thread.o to gdb_target_obs.
+
+2010-09-28 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-tasks.c (iterate_over_live_ada_tasks): New function.
+ * ada-lang.h (iterate_over_live_ada_tasks): Declare.
+
+2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
+ (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
+ skip_main_prologue method.
+
+2010-09-27 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (dwarf2_read_index): Only allow version 3.
+ (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
+ Only emit a given psymbol once.
+ (struct signatured_type_index_data) <psyms_seen>: New field.
+ (write_one_signatured_type): Update.
+ (cleanup_htab): New function.
+ (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
+ version to 3.
+ (save_gdb_index_command): Update index documentation.
+
+2010-09-27 Tom Tromey <tromey@redhat.com>
+
+ * bcache.c (expand_hash_table): Use hash_function, not hash.
+
+2010-09-27 Tom Tromey <tromey@redhat.com>
+
+ * gdb_wchar.h: Change minimum libiconv to 0x108.
+
2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix lost siginfo_t for inferior calls.
diff --git a/gdb/NEWS b/gdb/NEWS
index 01d2f46..85059c6 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -67,6 +67,11 @@
** GDBserver is now supported on PowerPC LynxOS (versions 4.x and 5.x),
and i686 LynxOS (version 5.x).
+* Ada task switching is now supported on sparc-elf targets when
+ debugging a program using the Ravenscar Profile. For more information,
+ see the "Tasking Support when using the Ravenscar Profile" section
+ in the GDB user manual.
+
*** Changes in GDB 7.2
* Shared library support for remote targets by default
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index d1e8ca5..935c2e1 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -378,6 +378,10 @@ extern int valid_task_id (int);
extern int ada_get_task_number (ptid_t);
+typedef void (ada_task_list_iterator_ftype) (struct ada_task_info *task);
+extern void iterate_over_live_ada_tasks
+ (ada_task_list_iterator_ftype *iterator);
+
extern int ada_build_task_list (int warn_if_null);
extern int ada_exception_catchpoint_p (struct breakpoint *b);
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 8e42252..3cbcc4f 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -212,6 +212,27 @@ ada_task_is_alive (struct ada_task_info *task_info)
return (task_info->state != Terminated);
}
+/* Call the ITERATOR function once for each Ada task that hasn't been
+ terminated yet. */
+
+void
+iterate_over_live_ada_tasks (ada_task_list_iterator_ftype *iterator)
+{
+ int i, nb_tasks;
+ struct ada_task_info *task;
+
+ ada_build_task_list (0);
+ nb_tasks = VEC_length (ada_task_info_s, task_list);
+
+ for (i = 0; i < nb_tasks; i++)
+ {
+ task = VEC_index (ada_task_info_s, task_list, i);
+ if (!ada_task_is_alive (task))
+ continue;
+ iterator (task);
+ }
+}
+
/* Extract the contents of the value as a string whose length is LENGTH,
and store the result in DEST. */
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index 05d0824..0a44562 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -122,6 +122,38 @@ amd64_windows_return_value (struct gdbarch *gdbarch, struct type *func_type,
}
}
+/* Check that the code pointed to by PC corresponds to a call to
+ __main, skip it if so. Return PC otherwise. */
+
+static CORE_ADDR
+amd64_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
+{
+ enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
+ gdb_byte op;
+
+ target_read_memory (pc, &op, 1);
+ if (op == 0xe8)
+ {
+ gdb_byte buf[4];
+
+ if (target_read_memory (pc + 1, buf, sizeof buf) == 0)
+ {
+ struct minimal_symbol *s;
+ CORE_ADDR call_dest;
+
+ call_dest = pc + 5 + extract_signed_integer (buf, 4, byte_order);
+ s = lookup_minimal_symbol_by_pc (call_dest);
+ if (s != NULL
+ && SYMBOL_LINKAGE_NAME (s) != NULL
+ && strcmp (SYMBOL_LINKAGE_NAME (s), "__main") == 0)
+ pc += 5;
+ }
+ }
+
+ return pc;
+}
+
+
static void
amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
@@ -140,6 +172,7 @@ amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->memory_args_by_pointer = 1;
tdep->integer_param_regs_saved_in_caller_frame = 1;
set_gdbarch_return_value (gdbarch, amd64_windows_return_value);
+ set_gdbarch_skip_main_prologue (gdbarch, amd64_skip_main_prologue);
set_solib_ops (gdbarch, &solib_target_so_ops);
}
diff --git a/gdb/bcache.c b/gdb/bcache.c
index 653d6fb..e6ca06c 100644
--- a/gdb/bcache.c
+++ b/gdb/bcache.c
@@ -184,7 +184,8 @@ expand_hash_table (struct bcache *bcache)
struct bstring **new_bucket;
next = s->next;
- new_bucket = &new_buckets[(hash (&s->d.data, s->length)
+ new_bucket = &new_buckets[(bcache->hash_function (&s->d.data,
+ s->length)
% new_num_buckets)];
s->next = *new_bucket;
*new_bucket = s;
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index 0b44005..24a6bf9 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -514,14 +514,11 @@ sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
sparc-sol2-tdep.o sol2-tdep.o solib.o solib-svr4.o"
;;
-sparc-*-rtems*)
- # Target: SPARC embedded with simulator
- gdb_target_obs="sparc-tdep.o"
- gdb_sim=../sim/erc32/libsim.a
- ;;
sparc-*-*)
# Target: SPARC
- gdb_target_obs="sparc-tdep.o"
+ gdb_target_obs="sparc-tdep.o ravenscar-thread.o \
+ ravenscar-sparc-thread.o"
+ gdb_sim=../sim/erc32/libsim.a
;;
sparc64-*-*)
# Target: UltraSPARC
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 5a99342..a967bd7 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-28 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.texinfo (Ravenscar Profile): New node.
+
2010-09-22 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Values From Inferior): Mention Value.__init__.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 07f9ad6..0b24718 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -12861,6 +12861,8 @@ to be difficult.
* Stopping Before Main Program:: Debugging the program during elaboration.
* Ada Tasks:: Listing and setting breakpoints in tasks.
* Ada Tasks and Core Files:: Tasking Support when Debugging Core Files
+* Ravenscar Profile:: Tasking Support when using the Ravenscar
+ Profile
* Ada Glitches:: Known peculiarities of Ada mode.
@end menu
@@ -13411,6 +13413,36 @@ privileges, using the command @samp{"set write on"} (@pxref{Patching}).
Under these circumstances, you should make a backup copy of the core
file before inspecting it with @value{GDBN}.
+@node Ravenscar Profile
+@subsubsection Tasking Support when using the Ravenscar Profile
+@cindex Ravenscar Profile
+
+The @dfn{Ravenscar Profile} is a subset of the Ada tasking features,
+specifically designed for systems with safety-critical real-time
+requirements.
+
+@table @code
+@kindex set ravenscar task-switching on
+@cindex task switching with program using Ravenscar Profile
+@item set ravenscar task-switching on
+Allows task switching when debugging a program that uses the Ravenscar
+Profile. This is the default.
+
+@kindex set ravenscar task-switching off
+@item set ravenscar task-switching off
+Turn off task switching when debugging a program that uses the Ravenscar
+Profile. This is mostly intended to disable the code that adds support
+for the Ravenscar Profile, in case a bug in either @value{GDBN} or in
+the Ravenscar runtime is preventing @value{GDBN} from working properly.
+To be effective, this command should be run before the program is started.
+
+@kindex show ravenscar task-switching
+@item show ravenscar task-switching
+Show whether it is possible to switch from task to task in a program
+using the Ravenscar Profile.
+
+@end table
+
@node Ada Glitches
@subsubsection Known Peculiarities of Ada Mode
@cindex Ada, problems
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index c407b10..743ba89 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -577,10 +577,16 @@ struct partial_die_info
/* Flag set if any of the DIE's children are template arguments. */
unsigned int has_template_arguments : 1;
+ /* Flag set if fixup_partial_die has been called on this die. */
+ unsigned int fixup_called : 1;
+
/* The name of this DIE. Normally the value of DW_AT_name, but
sometimes a default name for unnamed DIEs. */
char *name;
+ /* The linkage name, if present. */
+ const char *linkage_name;
+
/* The scope to prepend to our children. This is generally
allocated on the comp_unit_obstack, so will disappear
when this compilation unit leaves the cache. */
@@ -595,6 +601,8 @@ struct partial_die_info
/* Pointer into the info_buffer (or types_buffer) pointing at the target of
DW_AT_sibling, if any. */
+ /* NOTE: This member isn't strictly necessary, read_partial_die could
+ return DW_AT_sibling values to its caller load_partial_dies. */
gdb_byte *sibling;
/* If HAS_SPECIFICATION, the offset of the DIE referred to by
@@ -1915,15 +1923,10 @@ dwarf2_read_index (struct objfile *objfile)
addr = dwarf2_per_objfile->gdb_index.buffer;
/* Version check. */
version = MAYBE_SWAP (*(offset_type *) addr);
- if (version == 1)
- {
- /* Index version 1 neglected to account for .debug_types. So,
- if we see .debug_types, we cannot use this index. */
- if (dwarf2_per_objfile->types.asection != NULL
- && dwarf2_per_objfile->types.size != 0)
- return 0;
- }
- else if (version != 2)
+ /* Versions earlier than 3 emitted every copy of a psymbol. This
+ causes the index to behave very poorly for certain requests. So,
+ it seems better to just ignore such indices. */
+ if (version < 3)
return 0;
map = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct mapped_index);
@@ -1937,14 +1940,11 @@ dwarf2_read_index (struct objfile *objfile)
/ 8);
++i;
- if (version == 2)
- {
- types_list = addr + MAYBE_SWAP (metadata[i]);
- types_list_elements = ((MAYBE_SWAP (metadata[i + 1])
- - MAYBE_SWAP (metadata[i]))
- / 8);
- ++i;
- }
+ types_list = addr + MAYBE_SWAP (metadata[i]);
+ types_list_elements = ((MAYBE_SWAP (metadata[i + 1])
+ - MAYBE_SWAP (metadata[i]))
+ / 8);
+ ++i;
map->address_table = addr + MAYBE_SWAP (metadata[i]);
map->address_table_size = (MAYBE_SWAP (metadata[i + 1])
@@ -1962,8 +1962,7 @@ dwarf2_read_index (struct objfile *objfile)
if (!create_cus_from_index (objfile, cu_list, cu_list_elements))
return 0;
- if (version == 2
- && types_list_elements
+ if (types_list_elements
&& !create_signatured_type_table_from_index (objfile, types_list,
types_list_elements))
return 0;
@@ -3912,40 +3911,6 @@ add_partial_subprogram (struct partial_die_info *pdi,
}
}
-/* See if we can figure out if the class lives in a namespace. We do
- this by looking for a member function; its demangled name will
- contain namespace info, if there is any. */
-
-static void
-guess_structure_name (struct partial_die_info *struct_pdi,
- struct dwarf2_cu *cu)
-{
- if ((cu->language == language_cplus
- || cu->language == language_java)
- && cu->has_namespace_info == 0
- && struct_pdi->has_children)
- {
- /* NOTE: carlton/2003-10-07: Getting the info this way changes
- what template types look like, because the demangler
- frequently doesn't give the same name as the debug info. We
- could fix this by only using the demangled name to get the
- prefix (but see comment in read_structure_type). */
-
- struct partial_die_info *real_pdi;
-
- /* If this DIE (this DIE's specification, if any) has a parent, then
- we should not do this. We'll prepend the parent's fully qualified
- name when we create the partial symbol. */
-
- real_pdi = struct_pdi;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-09-27 9:48 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-09-27 9:48 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 0e71db4d2ee3a8c168c6ef5476a36fabd58c7c11 (commit)
via 7bf5255da5694eff7632e8464e44f3299217034d (commit)
via 5e8450e4a974ea0d04bb46dadd4cac674e374d22 (commit)
via aa639c6329ec493e3e9f123a4a845bed859507e8 (commit)
via ee293fdd5ff3486bef65e4f872b463f6d92932d9 (commit)
via acc8af847d83213abc69174e5a2cdc9b5b9eeecf (commit)
via 52dbb162613f7cb7cf4e414b86d507052c63bc21 (commit)
via 567c55d94fe7bce0dd3d82618b3ee7f910319e1a (commit)
via b2bdd4ec26d7368c66530c89e0e9d04584f23ac2 (commit)
via 5ce5693ba8da81ee0afa7b743e80daf4b735abe4 (commit)
via 6aceb3f76551c9332a1fc12a7ba4cbb6fbd9a52e (commit)
via c35d4b17866d95f88dfec12539acd6714bdb7061 (commit)
via 31754a9dc78c7d283677b7e5e3d68dff891371b6 (commit)
via 475c0e4dc2b66e2025dbc862155a55fd8b04466c (commit)
via 328d04710b395061e65b4c9d3e063ff4ff9d5117 (commit)
via 120873b176cfac0958e0378feec2c46139890545 (commit)
via d53f48c3a270300ec7a3620e2270d9c7d6a0fca4 (commit)
via bceafcae973da3cf59458e425f39c46fac613997 (commit)
via fa51fc3bc5c3b8781a058b5917e15ca09c5ff2db (commit)
via 1c2ae3626f38f87861a6f0eb0fb3063023cb3fd7 (commit)
via 5c7709b71724f8b8371506d280a07660d58ca8cf (commit)
via 6fcc496fec7b750793c85da4fd70470e8d176cfa (commit)
via 56b89e1f162465abef29b960fd88b7ae574e70fa (commit)
via 23c304e2a4ba1b02530f4cc2d5da8c17a5bec27f (commit)
via 6febdbdd2647bf02802d4f051d37dd312ffdda85 (commit)
via 07d01a4532b79e258289dc72905ac3725d420baf (commit)
via b61a5fe0940352717a42426aec70e4844e8654fc (commit)
via c6fa80a910f4e2c12c70869510b04356a93cc009 (commit)
via ba4510b656b08751f72d4741b93c4596ad8eeaff (commit)
via 09f7409a10f0506560e3567be4c15b49ac5396fa (commit)
via 0b6be011a6eaa679b9a25f623c98f72c625807c4 (commit)
via ae35288a9e046b50754df56422e61ca7179e325c (commit)
via 9f3ac352623ece6d170a6f94b3413ee532528c29 (commit)
via c6a5f5560402451d3ebd0f559d4f891151cc96a6 (commit)
via cd120c49a12d5ea43939991a64438b337d9e5c7e (commit)
via 405e18f17fbc5a62ce6c17b0d2749883de095673 (commit)
via 8f8c824eac3c205b015bc4a4c3bd4b6e4f17d57c (commit)
via 5a239fd6b354ceb8a4883cadb007b10ea2996065 (commit)
via 9df2cd6d9d166bc17e3251e41b1118b76976336a (commit)
via 365f0a0b6b629c3f8e5001d10b55c83963f08d35 (commit)
via 0cc328604bb680d93e600926a5da3797e93f41d0 (commit)
via df0e1413b3a179a86e8e207174902999acdafbb2 (commit)
via 713e5270b64c38eec2661edd46ac9b29443e21d8 (commit)
via 016bf22e98cd670562662c2917badf3ba0517f1d (commit)
via da5fd72707e1f19dab343c9de9c51d4cf48eba61 (commit)
via 5911a53fbef58ea324bac00ffc64dc9d6deb8df7 (commit)
via 519e1f7c53a6d0add495fa08c5eccedbc24a1d3e (commit)
via c408df2d80e5def5fc57fff7bc2dcf9e79f6d15a (commit)
via 3c608a850b8c35416d1dfef6875af62adf62f076 (commit)
via 0d21ec3bc7edce96ad959d5e9fd2fd8bc0b8e307 (commit)
via 5354be2515b24e1f451606218fed990039ed3591 (commit)
via a94d3393376ef0fd2b60292ad33100ca830c2df0 (commit)
via 8ce2c9ced8485dc64edd4c274007d9252061521d (commit)
via 6a4a712ca215ea1fea95fe64e73d92ec7bb8305b (commit)
via efe1b362417c1cd51b6a0ca00bcf21a3fb797cd5 (commit)
via 01a3616d4397e5cc80e024d1583e966706b66854 (commit)
via 59c9593474be8bba278d9361a689ebad4013e314 (commit)
via 132173fd8d416c8f2f2f71410a51a5db5d322f50 (commit)
via f6333da5a82280bea786876098c03afcc2b0cce7 (commit)
via 71fe0f1709007d0d57fb8d72cba05522eaa74ff1 (commit)
via 3e6d829c6e8ff5fa42e0fddee02b35289b923192 (commit)
via 542a3569b097c18cf0022684ff7a86fe29d55901 (commit)
via 573c1119b57082cf461812195dda577cea7b0bb8 (commit)
via f521e4e01ae86e32bf3372c62c2f1a0d4c18be96 (commit)
from 537e20cf693b1dc7723d036d85fbc014cfa2cad8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 0e71db4d2ee3a8c168c6ef5476a36fabd58c7c11
Merge: 537e20c 7bf5255
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Sep 27 11:48:38 2010 +0200
Merge remote branch 'gdb/master'
commit 7bf5255da5694eff7632e8464e44f3299217034d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Sep 27 00:00:33 2010 +0000
*** empty log message ***
commit 5e8450e4a974ea0d04bb46dadd4cac674e374d22
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Sep 27 00:00:05 2010 +0000
daily update
commit aa639c6329ec493e3e9f123a4a845bed859507e8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Sep 26 00:00:33 2010 +0000
*** empty log message ***
commit ee293fdd5ff3486bef65e4f872b463f6d92932d9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Sep 26 00:00:05 2010 +0000
daily update
commit acc8af847d83213abc69174e5a2cdc9b5b9eeecf
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Sep 25 00:00:33 2010 +0000
*** empty log message ***
commit 52dbb162613f7cb7cf4e414b86d507052c63bc21
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Sep 25 00:00:05 2010 +0000
daily update
commit 567c55d94fe7bce0dd3d82618b3ee7f910319e1a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Sep 24 18:35:20 2010 +0000
gdb/
Fix lost siginfo_t for inferior calls.
* infrun.c
(struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
(save_inferior_thread_state): New variables regcache, gdbarch and
siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
using REGCACHE.
(restore_inferior_thread_state): New variables regcache and gdbarch.
Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
REGCACHE. Free also SIGINFO_DATA.
gdb/testsuite/
Fix lost siginfo_t for inferior calls.
* gdb.base/siginfo-infcall.exp: New file.
* gdb.base/siginfo-infcall.c: New file.
commit b2bdd4ec26d7368c66530c89e0e9d04584f23ac2
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Sep 24 16:11:44 2010 +0000
* dwarf2read.c (dw2_expand_symtabs_matching): Add missing
MAYBE_SWAPs.
(dw2_map_symbol_names): Likewise.
commit 5ce5693ba8da81ee0afa7b743e80daf4b735abe4
Author: swagiaal <swagiaal>
Date: Fri Sep 24 14:47:52 2010 +0000
Fix find_oload_champ_namespace_loop memory leak.
2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
* valops.c (find_oload_champ_namespace_loop): replace incorrect
discard_cleanups do_cleanups.
commit 6aceb3f76551c9332a1fc12a7ba4cbb6fbd9a52e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Sep 24 13:44:00 2010 +0000
PR gdb/11842
gdb/
* amd64-linux-nat.c (compat_siginfo_from_siginfo)
(siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
si_code is < 0. Check for si_code == SI_TIMER before checking for
si_code < 0.
gdb/gdbserver/
* linux-x86-low.c (compat_siginfo_from_siginfo)
(siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
si_code is < 0. Check for si_code == SI_TIMER before checking for
si_code < 0.
commit c35d4b17866d95f88dfec12539acd6714bdb7061
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Sep 24 13:41:42 2010 +0000
gdb/
* amd64-linux-nat.c (compat_siginfo_from_siginfo)
(siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
si_code is < 0. Check for si_code == SI_TIMER before checking for
si_code < 0.
gdb/gdbserver/
* linux-x86-low.c (compat_siginfo_from_siginfo)
(siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
si_code is < 0. Check for si_code == SI_TIMER before checking for
si_code < 0.
commit 31754a9dc78c7d283677b7e5e3d68dff891371b6
Author: tschwinge <tschwinge>
Date: Fri Sep 24 12:14:23 2010 +0000
2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
* elf32-arm.c, elf32-cris.c, elf32-hppa.c, elf32-i370.c, elf32-m32r.c,
elf32-m68k.c, elf32-microblaze.c, elf32-ppc.c, elf32-score.c,
elf32-score7.c, elf32-sh.c, elf32-vax.c, elf32-xtensa.c, elf64-alpha.c,
elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-sparc.c, elfcode.h,
elflink.c, elfxx-ia64.c, elfxx-mips.c: Use STN_UNDEF when referring to
the zero symbol index.
commit 475c0e4dc2b66e2025dbc862155a55fd8b04466c
Author: tschwinge <tschwinge>
Date: Fri Sep 24 11:59:18 2010 +0000
2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
* elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index
to STN_UNDEF, not SHN_UNDEF.
commit 328d04710b395061e65b4c9d3e063ff4ff9d5117
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Sep 24 11:15:51 2010 +0000
* objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
commit 120873b176cfac0958e0378feec2c46139890545
Author: Kevin Buettner <kevinb@redhat.com>
Date: Fri Sep 24 05:18:23 2010 +0000
* rx.c (decode_opcode): Add cycle information for RXO_smovu.
commit d53f48c3a270300ec7a3620e2270d9c7d6a0fca4
Author: Kevin Buettner <kevinb@redhat.com>
Date: Fri Sep 24 04:45:08 2010 +0000
Fix typo in ChangeLog entry.
commit bceafcae973da3cf59458e425f39c46fac613997
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Sep 24 00:00:33 2010 +0000
*** empty log message ***
commit fa51fc3bc5c3b8781a058b5917e15ca09c5ff2db
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Sep 24 00:00:05 2010 +0000
daily update
commit 1c2ae3626f38f87861a6f0eb0fb3063023cb3fd7
Author: Kevin Buettner <kevinb@redhat.com>
Date: Thu Sep 23 23:42:53 2010 +0000
* cpu.h (reset_decoder): Declare.
* load.c (rx_load): Call `reset_decoder'.
* rx.c (reset_decoder): New function.
commit 5c7709b71724f8b8371506d280a07660d58ca8cf
Author: Kevin Buettner <kevinb@redhat.com>
Date: Thu Sep 23 23:26:42 2010 +0000
* rx.c (decode_opcode): Declare `rx' as unsigned.
commit 6fcc496fec7b750793c85da4fd70470e8d176cfa
Author: Kevin Buettner <kevinb@redhat.com>
Date: Thu Sep 23 23:05:27 2010 +0000
* fpu.c, gdb-if.c, load.c, misc.c, syscalls.c (config.h): Include.
commit 56b89e1f162465abef29b960fd88b7ae574e70fa
Author: Bernd Schmidt <bernd.schmidt@analog.com>
Date: Thu Sep 23 16:16:37 2010 +0000
bfd/
* elf32-tic6x.c (elf32_tic6x_fake_sections): New function.
(elf_backend_fake_sections): Define.
ld/testsuite/
* ld-tic6x/pcrel-reloc-local-r-rel-rela.d: New test.
commit 23c304e2a4ba1b02530f4cc2d5da8c17a5bec27f
Author: mgretton <mgretton>
Date: Thu Sep 23 15:52:19 2010 +0000
* bfd/bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
* gas/config/tc-arm.c (arm_ext_virt): New variable.
(arm_reg_type): Add REG_TYPE_RNB for banked registers.
(reg_entry): Allow registers to be larger than a byte.
(reg_alias): Fix type warning.
(parse_operands): Parse banked registers when appropriate.
(do_mrs): Add support for Virtualization Extensions.
(do_hvc): New function.
(do_t_mrs): Add support for Virtualization Extensions.
(do_t_msr): Likewise.
(do_t_hvc): New function.
(SPLRBANK): New define.
(reg_names): Add banked registers.
(insns): Add support for Virtualization Extensions.
(md_apply_fixup): Likewise.
(arm_cpus): -mcpu=cortex-a15 implies the Virtualization Extensions.
(arm_extensions): Add 'virt' extension.
(aeabi_set_public_attributes): Add support for Virtualization
Extensions.
* gas/doc/c-arm.texi: Document 'virt' extension.
* gas/testsuite/gas/arm/armv7-a+virt.d: New test.
* gas/testsuite/gas/arm/armv7-a+virt.s: Likewise.
* gas/testsuite/gas/arm/attr-march-all.d: Update for Virtualization Extensions.
* gas/testsuite/gas/arm/attr-march-armv7-a+sec+virt.d: New test.
* gas/testsuite/gas/arm/attr-march-armv7-a+virt.d: Likewise.
* include/opcode/arm.h (ARM_EXT_VIRT): New define.
(ARM_ARCH_V7A_IDIV_MP_SEC): Rename...
(ARM_ARCH_V7A_IDIV_MP_SEC_VIRT): ...to this and include Virtualization
Extensions.
* opcodes/arm-dis.c (arm_opcodes): Add Virtualiztion Extensions support.
(thumb32_opcodes): Likewise.
(banked_regname): New function.
(print_insn_arm): Add Virtualization Extensions support.
(print_insn_thumb32): Likewise.
commit 6febdbdd2647bf02802d4f051d37dd312ffdda85
Author: mgretton <mgretton>
Date: Thu Sep 23 15:37:45 2010 +0000
* gas/config/tc-arm.c (arm_ext_adiv): New variable.
(do_div): New function.
(insns): Accept UDIV and SDIV in ARM state.
(arm_cpus): The cortex-a15 option has all current v7-A extensions.
(arm_extensions): Add 'idiv' extension.
(aeabi_set_public_attributes): Update Tag_DIV_use values for the
Integer Divide extension.
* gas/doc/c-arm.texi: Document the idiv extension.
* gas/testsuite/gas/arm/armv7-a+idiv.d: New test.
* gas/testsuite/gas/arm/armv7-a+idiv.s: Likewise.
* gas/testsuite/gas/arm/attr-march-all.d: Update for Integer divide extension.
* gas/testsuite/gas/arm/attr-march-armv7-a+idiv.d: New test.
* include/opcode/arm.h (ARM_AEXT_ADIV): New define.
(ARM_ARCH_V7A_IDIV_MP_SEC): Likewise.
* opcodes/arm-dis.c (arm_opcodes): Support disassembly of UDIV and SDIV in
ARM state.
commit 07d01a4532b79e258289dc72905ac3725d420baf
Author: mgretton <mgretton>
Date: Thu Sep 23 15:31:34 2010 +0000
* config/tc-arm.c (arm_ext_v6m): New variable.
(arm_ext_m): Add support for OS extension.
(arm_ext_os): New variable.
(do_t_swi): In v6-M ensure we have the OS extension.
(arm_cpus): The cortex-m1 and cortex-m0 options have the OS
extension by default.
(arm_archs): Add armv6s-m.
(arm_extensions): Add 'os' extension.
(cpu_arch_ver): Add support for v6S-M.
* gas/doc/c-arm.texi: Document the OS Extension, and v6-m and v6s-m
architecture options.
* gas/testsuite/gas/arm/archv6s-m-bad.d: New test.
* gas/testsuite/gas/arm/archv6s-m-bad.l: Likewise.
* gas/testsuite/gas/arm/archv6s-m.d: Likewise.
* gas/testsuite/gas/arm/archv6s-m.s: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6-m+os.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6s-m.d: Likewise.
* include/opcode/arm.h (ARM_EXT_OS): New define.
(ARM_AEXT_V6SM): Likewise.
(ARM_ARCH_V6SM): Likewise.
commit b61a5fe0940352717a42426aec70e4844e8654fc
Author: mgretton <mgretton>
Date: Thu Sep 23 15:26:23 2010 +0000
* gas/config/tc-arm.c (arm_ext_v6z): Remove.
(arm_ext_sec): New variable.
(do_t_smc): In Thumb state SMC requires v7-A.
(insns): Make SMC depend on Security Extensions.
(arm_cpus): All -mcpu=cortex-a* options have the Security Extensions.
(arm_extensions): Add 'sec' extension.
(cpu_arch_ver): Reorder.
(aeabi_set_public_attributes): Emit Tag_Virtualization_use as
appropriate.
* gas/doc/c-arm.texi: Document Security Extensions.
* gas/testsuite/gas/arm/attr-march-all.d: Update for Security Extensions..
* gas/testsuite/gas/arm/attr-march-armv6k+sec.d: New test.
* gas/testsuite/gas/arm/attr-march-armv6z.d: Update for Security Extensions.
* gas/testsuite/gas/arm/attr-march-armv6zk.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6zkt2.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv6zt2.d: Likewise.
* gas/testsuite/gas/arm/attr-march-armv7-a+sec.d: New test.
* gas/testsuite/gas/arm/attr-mcpu.d: Update for Security Extensions.
* gas/testsuite/gas/arm/thumb32.d: Likewise.
* gas/testsuite/gas/arm/thumb32.s: Likewise.
* include/opcode/arm.h (ARM_EXT_V6Z): Remove.
(ARM_EXT_SEC): New define.
(ARM_AEXT_V6Z): Use Security Extensions.
(ARM_AEXT_V6ZK): Likeiwse.
(ARM_AEXT_V6ZT2): Likewise.
(ARM_AEXT_V6ZKT2): Likewise.
(ARM_AEXT_V7_ARM): Base v7 does not have Security Extensions.
(ARM_ARCH_V7A_SEC): New define.
(ARM_ARCH_V7A_MP): Rename...
(ARM_ARCH_V7A_MP_SEC): ...to this and add Security Extensions.
* ld/testsuite/ld-arm/attr-merge-6.attr: Update for Security Extensions.
* ld/testsuite/ld-arm/attr-merge-7.attr: Likewise.
* opcodes/arm-dis.c (arm_opcodes): SMC implies Security Extensions.
(thumb32_opcodes): Likewise.
commit c6fa80a910f4e2c12c70869510b04356a93cc009
Author: mgretton <mgretton>
Date: Thu Sep 23 15:18:18 2010 +0000
* gas/config/tc-arm.c (arm_ext_mp): Add.
(do_pld): Update comment.
(insns): Add support for pldw.
(arm_cpus): Update cortex-a5, cortex-a9, and cortex-a15 to support
MP extension.
(arm_extensions): Add 'mp' extension.
(aeabi_set_public_attributes): Emit correct build attribute when
MP extension is enabled.
* gas/doc/c-arm.texi: Update for MP extensions.
* gas/testsuite/gas/arm/arch7a-mp.d: Add.
* gas/testsuite/gas/arm/arch7ar-mp.s: Likewise.
* gas/testsuite/gas/arm/arch7r-mp.d: Likewise.
* gas/testsuite/gas/arm/armv2-mp-bad.d: Likewise.
* gas/testsuite/gas/arm/armv2-mp-bad.l: Likewise.
* gas/testsuite/gas/arm/attr-march-all.d: Update for MP extension.
* gas/testsuite/gas/arm/attr-march-armv7-a+mp.d: Add.
* gas/testsuite/gas/arm/attr-march-armv7-r+mp.d: Likewise.
* include/opcode/arm.h (ARM_EXT_MP): Add.
(ARM_ARCH_V7A_MP): Likewise.
* opcodes/arm-dis.c (arm_opcodes): Add support for pldw.
(thumb32_opcodes): Likewise.
commit ba4510b656b08751f72d4741b93c4596ad8eeaff
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Sep 23 11:55:00 2010 +0000
* cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.
commit 09f7409a10f0506560e3567be4c15b49ac5396fa
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Sep 23 11:40:05 2010 +0000
ld/
* ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
to output section on a final link.
bfd/
* elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
difference between input and output section.
commit 0b6be011a6eaa679b9a25f623c98f72c625807c4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 23 00:00:33 2010 +0000
*** empty log message ***
commit ae35288a9e046b50754df56422e61ca7179e325c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Sep 23 00:00:04 2010 +0000
daily update
commit 9f3ac352623ece6d170a6f94b3413ee532528c29
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 22 22:50:52 2010 +0000
[Ada] Do not compute task ptid when debugging core file
After thread support over core files was added for GNU/Linux was added,
we started noticing the following type of crash when trying to perform
task switches (this is a bit accademic, since task switching is not
supported when debugging core files - this is what our testcase was
verifying).
(please check out the comment inside ada-tasks.c:task_command for
more details on this topic)
The reason for the crash comes from the fact that the GNU/Linux thread
layer now gets pushed on the target stack, causing the associated
to_get_ada_task_ptid target method to be activated. This routine
makes the assumption that, for all threads, the private area is not
NULL. This is incorrect in the case of core files, as the core layer
creates some threads with no private data.
But, taking a step back, we don't need to try to compute the task ptid,
as we'll never be using it anyways (we only use it for task switching).
So the fix is to avoid the ptid computation altogether when debugging
a core file.
gdb/ChangeLog:
* ada-tasks.c (read_atcb): Do not compute the task ptid when
debugging a core file.
commit c6a5f5560402451d3ebd0f559d4f891151cc96a6
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 21:55:17 2010 +0000
opcodes: blackfin: fix decoding of 32bit addresses on 64bit systems
The Blackfin ISA is very exact with regards to address truncation when
under/over flowing its 32bit range. On a 32bit system, things work the
same and so addresses are decoded properly. On a 64bit system though,
the decoded addresses may include the bits that are supposed to have
been truncated. So force a 32bit truncation after the address has been
calculated.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit cd120c49a12d5ea43939991a64438b337d9e5c7e
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 21:54:33 2010 +0000
opcodes: blackfin: fix decoding of all register move insns
Many register move insns were not being decoded properly, so rewrite
the whole function to be a bit more manageable in terms of valid
combinations.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 405e18f17fbc5a62ce6c17b0d2749883de095673
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 21:53:46 2010 +0000
opcodes: blackfin: fix decoding of many invalid insns
The Blackfin disassembler was originally based on the premise of parsing
valid opcodes all the time, so some of the opcode checking can be a bit
fuzzy. This is exemplified in decoding of parallel insns where many
times things are decoded as invalid when in reality, they may not be
used in parallel combinations. So add parallel checking to most insn
decoding routines so we see ILLEGAL and not just whatever insn happens
to be close to a valid mnemonic, as well as some additional sub-opcode
checks.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 8f8c824eac3c205b015bc4a4c3bd4b6e4f17d57c
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 21:53:14 2010 +0000
opcodes: blackfin: mark push/pop insns with a P6/P7 range as illegal
The push/pop multiple insn has a 3 bit field for the P register range,
but only values of 0...5 are valid (P0 - P5). There is no such P6 or
P7 register, so mark these insns as illegal.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 5a239fd6b354ceb8a4883cadb007b10ea2996065
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 21:41:39 2010 +0000
opcodes: blackfin: fix decoding of vector shift insn w/saturation
The saturation bit was missed when decoding a vector shift insn
leading to the output looking the same as the non-saturating insn.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 9df2cd6d9d166bc17e3251e41b1118b76976336a
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 21:39:08 2010 +0000
opcodes: blackfin: decode all ASTAT bits
All ASTAT bits work in the hardware even though they aren't part of the
official Blackfin ISA. So decode every ASTAT field to make the output
a bit nicer when working with hand generated opcodes.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 365f0a0b6b629c3f8e5001d10b55c83963f08d35
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 21:38:20 2010 +0000
opcodes: blackfin: decode insns with invalid register as illegal
Sometimes the encoding in the opcode is a 4 bit field which defines a
register number. However, register numbers are only 0-7, so make sure
we call illegal for when the opcode register number is greater than 8.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 0cc328604bb680d93e600926a5da3797e93f41d0
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 21:26:13 2010 +0000
gas: blackfin: fix DBG/DBGCMPLX insn encoding
Some extended registers when given to the DBG/DBGCMPLX pseudo insns are
not encoded properly. So fix them, fix the display of them when being
disassembled, and add testcases.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit df0e1413b3a179a86e8e207174902999acdafbb2
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 21:05:03 2010 +0000
opcodes/gas: blackfin: handle more ASTAT flags
Support a few more ASTAT bits with the standard insns that operate on
ASTAT bits directly.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 713e5270b64c38eec2661edd46ac9b29443e21d8
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 20:59:00 2010 +0000
opcodes/gas: blackfin: support OUTC debug insn
The disassembler has partial (but incomplete/broken) support already for
the pseudo debug insn OUTC, so let's fix it up and finish it. And now
that the disassembler can handle it, make sure our assembler can output
it too.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 016bf22e98cd670562662c2917badf3ba0517f1d
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 20:37:23 2010 +0000
opcodes: blackfin: fix decoding of LSHIFT insns
The Blackfin ISA does not have a "SHIFT" insn, it has either LSHIFT,
ASHIFT, or BXORSHIFT. So be specific when disassembling.
As fall out of this change, we need to update some assembler tests.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit da5fd72707e1f19dab343c9de9c51d4cf48eba61
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Sep 22 20:32:40 2010 +0000
opcodes: blackfin: constify formatting related structures
No need for these local structures related to formatting of output to
be writable, so constify the whole shebang.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 5911a53fbef58ea324bac00ffc64dc9d6deb8df7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 22 20:08:04 2010 +0000
Fix order of ChangeLog entries.
(entry added at wrong location by patch).
commit 519e1f7c53a6d0add495fa08c5eccedbc24a1d3e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 22 20:06:58 2010 +0000
preserve columnar alignment.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-const.S: Minor (space) reformatting.
commit c408df2d80e5def5fc57fff7bc2dcf9e79f6d15a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Sep 22 20:00:52 2010 +0000
gdb/
Code cleanup.
* objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
(free_objfile) <objfile->name != NULL>: Remove the conditional around
xfree.
* objfiles.h (struct objfile) <name>: New comment it is never NULL.
* python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
Remove.
* python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
Remove the conditional.
* python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
commit 3c608a850b8c35416d1dfef6875af62adf62f076
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Sep 22 19:59:11 2010 +0000
gdb/
* main.c: Include objfiles.h.
(captured_main): New variable objfile. Call
load_auto_scripts_for_objfile for ALL_OBJFILES.
commit 0d21ec3bc7edce96ad959d5e9fd2fd8bc0b8e307
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Sep 22 19:22:43 2010 +0000
gdb/
* dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
DW_TAG_constant.
gdb/testsuite/
* gdb.fortran/module.exp (fully qualified name of DW_TAG_constant):
New test.
* gdb.fortran/module.f90 (mod1) <var_const>: New constant.
commit 5354be2515b24e1f451606218fed990039ed3591
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 22 19:13:40 2010 +0000
[testsuite] dw2-const.S: fix type reference size on 64bit platforms.
The testcase was failing on various 64bit platforms, because the
debugging info said that the target type for a const type is a
4-byte reference. In the asm file, I used a .long directive, but
the size of .long is of course dependent on the platform. This
replaces this .long by a .4byte directive.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-const.S: Use .4byte to reference the target
type of our const type.
commit a94d3393376ef0fd2b60292ad33100ca830c2df0
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 22 16:15:33 2010 +0000
DWARF: Add support for DW_TAG_constant DIEs
gdb/ChangeLog:
* dwarf2read.c (scan_partial_symbols): Add handling of
DW_TAG_constant DIEs.
(add_partial_symbol, load_partial_dies, new_symbol): Likewise.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-const.S, gdb.dwarf2/dw2-const.exp: New files.
commit 8ce2c9ced8485dc64edd4c274007d9252061521d
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 22 16:14:53 2010 +0000
Allow disabling of gdbserver build (--enable-gdbserver=yes/no/auto).
This patch adds a new --enable-gdbserver=yes/no/auto command-line switch
in gdb/configure. The primary purpose is to allow a user to disable the
build & install of gdbserver when not desired. It also allows the user
to request gdbserver in which case the configure script will abort if
automatic building of gdbserver is not supported for that configuration.
The default keeps things as is: We automatically build gdbserver if
building for a native configuration and if gdbserver is supported for
that configuration.
gdb/ChangeLog:
* configure.ac: Add support for --enable-gdbserver.
* configure: Regenerate.
At AdaCore, this is mostly intended for ia64-linux, where we currently
do not want to distribute gdbserver. This will be useful in the context
of I417-033, where we are now using "make install" to determine what
needs to be packaged inside the GNAT Pro package.
commit 6a4a712ca215ea1fea95fe64e73d92ec7bb8305b
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Sep 22 15:51:43 2010 +0000
* gdb.texinfo (Values From Inferior): Mention Value.__init__.
commit efe1b362417c1cd51b6a0ca00bcf21a3fb797cd5
Author: swagiaal <swagiaal>
Date: Wed Sep 22 15:48:55 2010 +0000
Fix PR 12028: "GDB crashes on a double free during overload resolution "
2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
PR C++/12028
* valops.c (find_oload_champ_namespace_loop): removed incorrect
'old_cleanups' reassignment.
2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/pr12028.cc: New.
* gdb.cp/pr12028.exp: New.
commit 01a3616d4397e5cc80e024d1583e966706b66854
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Wed Sep 22 14:19:34 2010 +0000
2010-09-22 Kai Tietz <kai.tietz@onevision.com>
* coffcode.h (sec_to_styp_flags): Adjust debug
sections to be conform to pe-coff specification
and avoid marking them as excluded.
(styp_to_sec_flags): Doing reverse mapping.
commit 59c9593474be8bba278d9361a689ebad4013e314
Author: Eli Zaretskii <eliz@gnu.org>
Date: Wed Sep 22 09:13:30 2010 +0000
gdb.texinfo (Values From Inferior): Clarify that
value.dynamic_type works only in C++ programs with RTTI.
commit 132173fd8d416c8f2f2f71410a51a5db5d322f50
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Wed Sep 22 08:01:54 2010 +0000
2010-09-22 Kai Tietz <kai.tietz@onevision.com>
* peXXigen.c (_bfd_XXi_final_link_postscript):
Add handling for setting IAT directory entry.
commit f6333da5a82280bea786876098c03afcc2b0cce7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 22 00:00:33 2010 +0000
*** empty log message ***
commit 71fe0f1709007d0d57fb8d72cba05522eaa74ff1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Sep 22 00:00:06 2010 +0000
daily update
commit 3e6d829c6e8ff5fa42e0fddee02b35289b923192
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Sep 21 06:04:21 2010 +0000
opcodes: blackfin: strip trailing whitespace
commit 542a3569b097c18cf0022684ff7a86fe29d55901
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Sep 21 00:00:33 2010 +0000
*** empty log message ***
commit 573c1119b57082cf461812195dda577cea7b0bb8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Sep 21 00:00:05 2010 +0000
daily update
commit f521e4e01ae86e32bf3372c62c2f1a0d4c18be96
Author: Richard Henderson <rth@redhat.com>
Date: Mon Sep 20 16:08:59 2010 +0000
Use bfd_elf_generic_reloc for alpha-elf.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 44 ++++
bfd/bfd-in2.h | 1 +
bfd/coffcode.h | 45 +++--
bfd/cpu-d10v.c | 20 +-
bfd/elf.c | 2 +-
bfd/elf32-arm.c | 4 +-
bfd/elf32-cris.c | 2 +-
bfd/elf32-hppa.c | 4 +-
bfd/elf32-i370.c | 2 +-
bfd/elf32-m32r.c | 2 +-
bfd/elf32-m68k.c | 4 +-
bfd/elf32-microblaze.c | 4 +-
bfd/elf32-ppc.c | 10 +-
bfd/elf32-score.c | 6 +-
bfd/elf32-score7.c | 6 +-
bfd/elf32-sh.c | 2 +-
bfd/elf32-tic6x.c | 26 +++
bfd/elf32-vax.c | 2 +-
bfd/elf32-xtensa.c | 2 +-
bfd/elf64-alpha.c | 74 ++++----
bfd/elf64-hppa.c | 2 +-
bfd/elf64-mips.c | 2 +-
bfd/elf64-ppc.c | 14 +-
bfd/elf64-sparc.c | 2 +-
bfd/elfcode.h | 2 +-
bfd/elflink.c | 14 +-
bfd/elfxx-ia64.c | 4 +-
bfd/elfxx-mips.c | 8 +-
bfd/peXXigen.c | 43 ++++
bfd/version.h | 2 +-
gdb/ChangeLog | 83 ++++++++
gdb/ada-tasks.c | 15 +-
gdb/amd64-linux-nat.c | 20 +-
gdb/configure | 26 ++-
gdb/configure.ac | 20 ++-
gdb/doc/ChangeLog | 9 +
gdb/doc/gdb.texinfo | 53 ++++-
gdb/dwarf2read.c | 48 +++--
gdb/gdbserver/ChangeLog | 9 +
gdb/gdbserver/linux-x86-low.c | 20 +-
gdb/infrun.c | 58 +++++-
gdb/main.c | 6 +-
gdb/objfiles.c | 9 +-
gdb/objfiles.h | 45 ++++-
gdb/python/py-auto-load.c | 2 -
gdb/python/py-objfile.c | 2 +-
gdb/python/py-progspace.c | 2 +-
gdb/testsuite/ChangeLog | 30 +++
gdb/testsuite/gdb.base/siginfo-infcall.c | 79 +++++++
gdb/testsuite/gdb.base/siginfo-infcall.exp | 47 ++++
gdb/testsuite/gdb.cp/pr12028.cc | 21 ++
gdb/testsuite/gdb.cp/pr12028.exp | 29 +++
gdb/testsuite/gdb.dwarf2/dw2-const.S | 224 ++++++++++++++++++++
gdb/testsuite/gdb.dwarf2/dw2-const.exp | 46 ++++
gdb/testsuite/gdb.fortran/module.exp | 2 +
gdb/testsuite/gdb.fortran/module.f90 | 2 +
gdb/valops.c | 4 +-
gdb/version.in | 2 +-
include/ChangeLog | 13 ++
include/opcode/ChangeLog | 31 +++
include/opcode/arm.h | 31 +++-
include/opcode/bfin.h | 170 +++++++++------
opcodes/ChangeLog | 103 +++++++++
opcodes/arm-dis.c | 177 ++++++++++++++--
opcodes/bfin-dis.c | 317 ++++++++++++++++++++--------
sim/rx/ChangeLog | 14 ++
sim/rx/cpu.h | 1 +
sim/rx/fpu.c | 1 +
sim/rx/gdb-if.c | 1 +
sim/rx/load.c | 3 +
sim/rx/misc.c | 1 +
sim/rx/rx.c | 14 ++-
sim/rx/syscalls.c | 1 +
73 files changed, 1781 insertions(+), 365 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/siginfo-infcall.c
create mode 100644 gdb/testsuite/gdb.base/siginfo-infcall.exp
create mode 100644 gdb/testsuite/gdb.cp/pr12028.cc
create mode 100644 gdb/testsuite/gdb.cp/pr12028.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-const.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-const.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 545c603..b281a04 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,47 @@
+2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
+
+ * elf32-arm.c, elf32-cris.c, elf32-hppa.c, elf32-i370.c, elf32-m32r.c,
+ elf32-m68k.c, elf32-microblaze.c, elf32-ppc.c, elf32-score.c,
+ elf32-score7.c, elf32-sh.c, elf32-vax.c, elf32-xtensa.c, elf64-alpha.c,
+ elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-sparc.c, elfcode.h,
+ elflink.c, elfxx-ia64.c, elfxx-mips.c: Use STN_UNDEF when referring to
+ the zero symbol index.
+
+ * elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index
+ to STN_UNDEF, not SHN_UNDEF.
+
+2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
+
+ * elf32-tic6x.c (elf32_tic6x_fake_sections): New function.
+ (elf_backend_fake_sections): Define.
+
+2010-09-23 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.
+
+2010-09-23 Alan Modra <amodra@gmail.com>
+
+ * cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.
+
+2010-09-23 Alan Modra <amodra@gmail.com>
+
+ * elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
+ difference between input and output section.
+
+2010-09-22 Kai Tietz <kai.tietz@onevision.com>
+
+ * coffcode.h (sec_to_styp_flags): Adjust debug
+ sections to be conform to pe-coff specification
+ and avoid marking them as excluded.
+ (styp_to_sec_flags): Doing reverse mapping.
+
+ * peXXigen.c (_bfd_XXi_final_link_postscript): Add handling for
+ setting IAT directory entry.
+
+2010-09-20 Richard Henderson <rth@redhat.com>
+
+ * elf64-alpha.c (elf64_alpha_howto_table): Use bfd_elf_generic_reloc.
+
2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
* elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 0e7b337..4bd47ca 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3166,6 +3166,7 @@ pc-relative or some form of GOT-indirect relocation. */
BFD_RELOC_ARM_T32_ADD_PC12,
BFD_RELOC_ARM_SHIFT_IMM,
BFD_RELOC_ARM_SMC,
+ BFD_RELOC_ARM_HVC,
BFD_RELOC_ARM_SWI,
BFD_RELOC_ARM_MULTI,
BFD_RELOC_ARM_CP_OFF_IMM,
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 790908a..ff69704 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -636,6 +636,14 @@ static long
sec_to_styp_flags (const char *sec_name, flagword sec_flags)
{
long styp_flags = 0;
+ bfd_boolean is_dbg = FALSE;
+
+ if (CONST_STRNEQ (sec_name, DOT_DEBUG)
+#ifdef COFF_LONG_SECTION_NAMES
+ || CONST_STRNEQ (sec_name, GNU_LINKONCE_WI)
+#endif
+ || CONST_STRNEQ (sec_name, ".stab"))
+ is_dbg = TRUE;
/* caution: there are at least three groups of symbols that have
very similar bits and meanings: IMAGE_SCN*, SEC_*, and STYP_*.
@@ -646,16 +654,15 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
but there are more IMAGE_SCN_* flags. */
/* FIXME: There is no gas syntax to specify the debug section flag. */
- if (CONST_STRNEQ (sec_name, DOT_DEBUG)
- || CONST_STRNEQ (sec_name, GNU_LINKONCE_WI))
- sec_flags = SEC_DEBUGGING | SEC_READONLY;
+ if (is_dbg)
+ sec_flags = SEC_DEBUGGING | SEC_READONLY;
/* skip LOAD */
/* READONLY later */
/* skip RELOC */
if ((sec_flags & SEC_CODE) != 0)
styp_flags |= IMAGE_SCN_CNT_CODE;
- if ((sec_flags & SEC_DATA) != 0)
+ if ((sec_flags & (SEC_DATA | SEC_DEBUGGING)) != 0)
styp_flags |= IMAGE_SCN_CNT_INITIALIZED_DATA;
if ((sec_flags & SEC_ALLOC) != 0 && (sec_flags & SEC_LOAD) == 0)
styp_flags |= IMAGE_SCN_CNT_UNINITIALIZED_DATA; /* ==STYP_BSS */
@@ -666,9 +673,9 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
styp_flags |= IMAGE_SCN_LNK_COMDAT;
if ((sec_flags & SEC_DEBUGGING) != 0)
styp_flags |= IMAGE_SCN_MEM_DISCARDABLE;
- if ((sec_flags & SEC_EXCLUDE) != 0)
+ if ((sec_flags & SEC_EXCLUDE) != 0 && !is_dbg)
styp_flags |= IMAGE_SCN_LNK_REMOVE;
- if ((sec_flags & SEC_NEVER_LOAD) != 0)
+ if ((sec_flags & SEC_NEVER_LOAD) != 0 && !is_dbg)
styp_flags |= IMAGE_SCN_LNK_REMOVE;
/* skip IN_MEMORY */
/* skip SORT */
@@ -1120,7 +1127,14 @@ styp_to_sec_flags (bfd *abfd,
long styp_flags = internal_s->s_flags;
flagword sec_flags;
bfd_boolean result = TRUE;
+ bfd_boolean is_dbg = FALSE;
+ if (CONST_STRNEQ (name, DOT_DEBUG)
+#ifdef COFF_LONG_SECTION_NAMES
+ || CONST_STRNEQ (name, GNU_LINKONCE_WI)
+#endif
+ || CONST_STRNEQ (name, ".stab"))
+ is_dbg = TRUE;
/* Assume read only unless IMAGE_SCN_MEM_WRITE is specified. */
sec_flags = SEC_READONLY;
@@ -1190,27 +1204,30 @@ styp_to_sec_flags (bfd *abfd,
mean that a given section contains debug information. Thus
we only set the SEC_DEBUGGING flag on sections that we
recognise as containing debug information. */
- if (CONST_STRNEQ (name, DOT_DEBUG)
+ if (is_dbg
#ifdef _COMMENT
|| strcmp (name, _COMMENT) == 0
#endif
-#ifdef COFF_LONG_SECTION_NAMES
- || CONST_STRNEQ (name, GNU_LINKONCE_WI)
-#endif
- || CONST_STRNEQ (name, ".stab"))
- sec_flags |= SEC_DEBUGGING;
+ )
+ {
+ sec_flags |= SEC_DEBUGGING | SEC_READONLY;
+ }
break;
case IMAGE_SCN_MEM_SHARED:
sec_flags |= SEC_COFF_SHARED;
break;
case IMAGE_SCN_LNK_REMOVE:
- sec_flags |= SEC_EXCLUDE;
+ if (!is_dbg)
+ sec_flags |= SEC_EXCLUDE;
break;
case IMAGE_SCN_CNT_CODE:
sec_flags |= SEC_CODE | SEC_ALLOC | SEC_LOAD;
break;
case IMAGE_SCN_CNT_INITIALIZED_DATA:
- sec_flags |= SEC_DATA | SEC_ALLOC | SEC_LOAD;
+ if (is_dbg)
+ sec_flags |= SEC_DEBUGGING;
+ else
+ sec_flags |= SEC_DATA | SEC_ALLOC | SEC_LOAD;
break;
case IMAGE_SCN_CNT_UNINITIALIZED_DATA:
sec_flags |= SEC_ALLOC;
diff --git a/bfd/cpu-d10v.c b/bfd/cpu-d10v.c
index b69e840..b161115 100644
--- a/bfd/cpu-d10v.c
+++ b/bfd/cpu-d10v.c
@@ -1,5 +1,5 @@
/* BFD support for the D10V processor
- Copyright 1996, 1999, 2000, 2002, 2005, 2007
+ Copyright 1996, 1999, 2000, 2002, 2005, 2007, 2010
Free Software Foundation, Inc.
Contributed by Martin Hunt (hunt@cygnus.com).
@@ -27,7 +27,7 @@
static const bfd_arch_info_type d10v_ts3_info =
{
16, /* 16 bits in a word. */
- 16, /* 16 bits in an address. */
+ 18, /* really 16 bits in an address, but code has 18 bit range. */
8, /* 8 bits in a byte. */
bfd_arch_d10v,
bfd_mach_d10v_ts3,
@@ -42,14 +42,14 @@ static const bfd_arch_info_type d10v_ts3_info =
static const bfd_arch_info_type d10v_ts2_info =
{
- 16, /* 16 bits in a word. */
- 16, /* 16 bits in an address. */
- 8, /* 8 bits in a byte. */
+ 16,
+ 18,
+ 8,
bfd_arch_d10v,
bfd_mach_d10v_ts2,
"d10v",
"d10v:ts2",
- 4, /* Section alignment power. */
+ 4,
FALSE,
bfd_default_compatible,
bfd_default_scan,
@@ -58,14 +58,14 @@ static const bfd_arch_info_type d10v_ts2_info =
const bfd_arch_info_type bfd_d10v_arch =
{
- 16, /* 16 bits in a word. */
- 16, /* 16 bits in an address. */
- 8, /* 8 bits in a byte. */
+ 16,
+ 18,
+ 8,
bfd_arch_d10v,
bfd_mach_d10v,
"d10v",
"d10v",
- 4, /* Section alignment power. */
+ 4,
TRUE,
bfd_default_compatible,
bfd_default_scan,
diff --git a/bfd/elf.c b/bfd/elf.c
index 5ec92e9..fe5f19f 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6110,7 +6110,7 @@ _bfd_elf_init_private_section_data (bfd *ibfd,
&& (osec->flags == isec->flags
|| (final_link
&& ((osec->flags ^ isec->flags)
- & ~ (SEC_LINK_ONCE | SEC_LINK_DUPLICATES)) == 0)))
+ & ~(SEC_LINK_ONCE | SEC_LINK_DUPLICATES | SEC_RELOC)) == 0)))
elf_section_type (osec) = elf_section_type (isec);
/* FIXME: Is this correct for all OS/PROC specific flags? */
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 74fb855..2125582 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -9063,7 +9063,7 @@ elf32_arm_relocate_section (bfd * output_bfd,
name = bfd_section_name (input_bfd, sec);
}
- if (r_symndx != 0
+ if (r_symndx != STN_UNDEF
&& r_type != R_ARM_NONE
&& (h == NULL
|| h->root.type == bfd_link_hash_defined
@@ -10902,7 +10902,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
/* PR 9934: It is possible to have relocations that do not
refer to symbols, thus it is also possible to have an
object file containing relocations but no symbol table. */
- && (r_symndx > 0 || nsyms > 0))
+ && (r_symndx > STN_UNDEF || nsyms > 0))
{
(*_bfd_error_handler) (_("%B: bad symbol index: %d"), abfd,
r_symndx);
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index 71634c9..f3ed80d 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -1493,7 +1493,7 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
case R_CRIS_16:
case R_CRIS_32:
if (info->shared
- && r_symndx != 0
+ && r_symndx != STN_UNDEF
&& (input_section->flags & SEC_ALLOC) != 0
&& ((r_type != R_CRIS_8_PCREL
&& r_type != R_CRIS_16_PCREL
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index 1a6fef8..3a3a355 100644
--- a/bfd/elf32-hppa.c
+++ b/bfd/elf32-hppa.c
@@ -4472,7 +4472,7 @@ static enum elf_reloc_type_class
elf32_hppa_reloc_type_class (const Elf_Internal_Rela *rela)
{
/* Handle TLS relocs first; we don't want them to be marked
- relative by the "if (ELF32_R_SYM (rela->r_info) == 0)"
+ relative by the "if (ELF32_R_SYM (rela->r_info) == STN_UNDEF)"
check below. */
switch ((int) ELF32_R_TYPE (rela->r_info))
{
@@ -4482,7 +4482,7 @@ elf32_hppa_reloc_type_class (const Elf_Internal_Rela *rela)
return reloc_class_normal;
}
- if (ELF32_R_SYM (rela->r_info) == 0)
+ if (ELF32_R_SYM (rela->r_info) == STN_UNDEF)
return reloc_class_relative;
switch ((int) ELF32_R_TYPE (rela->r_info))
diff --git a/bfd/elf32-i370.c b/bfd/elf32-i370.c
index 67e6598..01f9fb8 100644
--- a/bfd/elf32-i370.c
+++ b/bfd/elf32-i370.c
@@ -1183,7 +1183,7 @@ i370_elf_relocate_section (bfd *output_bfd,
case (int) R_I370_ADDR31:
case (int) R_I370_ADDR16:
if (info->shared
- && r_symndx != 0)
+ && r_symndx != STN_UNDEF)
{
Elf_Internal_Rela outrel;
bfd_byte *loc;
diff --git a/bfd/elf32-m32r.c b/bfd/elf32-m32r.c
index 28eff76..3df6add 100644
--- a/bfd/elf32-m32r.c
+++ b/bfd/elf32-m32r.c
@@ -2897,7 +2897,7 @@ m32r_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
case R_M32R_HI16_ULO_RELA:
case R_M32R_LO16_RELA:
if (info->shared
- && r_symndx != 0
+ && r_symndx != STN_UNDEF
&& (input_section->flags & SEC_ALLOC) != 0
&& (( r_type != R_M32R_10_PCREL_RELA
&& r_type != R_M32R_18_PCREL_RELA
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c
index 7323612..8d1ee7f 100644
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -4034,7 +4034,7 @@ elf_m68k_relocate_section (output_bfd, info, input_bfd, input_section,
case R_68K_PC16:
case R_68K_PC32:
if (info->shared
- && r_symndx != 0
+ && r_symndx != STN_UNDEF
&& (input_section->flags & SEC_ALLOC) != 0
&& (h == NULL
|| ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
@@ -4169,7 +4169,7 @@ elf_m68k_relocate_section (output_bfd, info, input_bfd, input_section,
return FALSE;
}
- if (r_symndx != 0
+ if (r_symndx != STN_UNDEF
&& r_type != R_68K_NONE
&& (h == NULL
|| h->root.type == bfd_link_hash_defined
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
index a64926a..e260c55 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -1067,10 +1067,10 @@ microblaze_elf_relocate_section (bfd *output_bfd,
case (int) R_MICROBLAZE_64:
case (int) R_MICROBLAZE_32:
{
- /* r_symndx will be zero only for relocs against symbols
+ /* r_symndx will be STN_UNDEF (zero) only for relocs against symbols
from removed linkonce sections, or sections discarded by
a linker script. */
- if (r_symndx == 0 || (input_section->flags & SEC_ALLOC) == 0)
+ if (r_symndx == STN_UNDEF || (input_section->flags & SEC_ALLOC) == 0)
{
relocation += addend;
if (r_type == R_MICROBLAZE_32)
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index ef0e159..2b457d6 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -6985,9 +6985,9 @@ ppc_elf_relocate_section (bfd *output_bfd,
if (local_sections[r_symndx] == sec)
break;
if (r_symndx >= symtab_hdr->sh_info)
- r_symndx = 0;
+ r_symndx = STN_UNDEF;
rel->r_addend = htab->elf.tls_sec->vma + DTP_OFFSET;
- if (r_symndx != 0)
+ if (r_symndx != STN_UNDEF)
rel->r_addend -= (local_syms[r_symndx].st_value
+ sec->output_offset
+ sec->output_section->vma);
@@ -7053,9 +7053,9 @@ ppc_elf_relocate_section (bfd *output_bfd,
if (local_sections[r_symndx] == sec)
break;
if (r_symndx >= symtab_hdr->sh_info)
- r_symndx = 0;
+ r_symndx = STN_UNDEF;
rel->r_addend = htab->elf.tls_sec->vma + DTP_OFFSET;
- if (r_symndx != 0)
+ if (r_symndx != STN_UNDEF)
rel->r_addend -= (local_syms[r_symndx].st_value
+ sec->output_offset
+ sec->output_section->vma);
@@ -7658,7 +7658,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
sym_name);
ret = FALSE;
}
- else if (r_symndx == 0 || bfd_is_abs_section (sec))
+ else if (r_symndx == STN_UNDEF || bfd_is_abs_section (sec))
;
else if (sec == NULL || sec->owner == NULL)
{
diff --git a/bfd/elf32-score.c b/bfd/elf32-score.c
index f1f1aae..fec177a 100644
--- a/bfd/elf32-score.c
+++ b/bfd/elf32-score.c
@@ -2126,7 +2126,7 @@ score_elf_final_link_relocate (reloc_howto_type *howto,
&& h != NULL
&& h->root.def_dynamic
&& !h->root.def_regular))
- && r_symndx != 0
+ && r_symndx != STN_UNDEF
&& (input_section->flags & SEC_ALLOC) != 0)
{
/* If we're creating a shared library, or this relocation is against a symbol
@@ -2139,8 +2139,8 @@ score_elf_final_link_relocate (reloc_howto_type *howto,
input_section))
return bfd_reloc_undefined;
}
- else if (r_symndx == 0)
- /* r_symndx will be zero only for relocs against symbols
+ else if (r_symndx == STN_UNDEF)
+ /* r_symndx will be STN_UNDEF (zero) only for relocs against symbols
from removed linkonce sections, or sections discarded by
a linker script. */
value = 0;
diff --git a/bfd/elf32-score7.c b/bfd/elf32-score7.c
index 85ce236..f780e56 100644
--- a/bfd/elf32-score7.c
+++ b/bfd/elf32-score7.c
@@ -2025,7 +2025,7 @@ score_elf_final_link_relocate (reloc_howto_type *howto,
&& h != NULL
&& h->root.def_dynamic
&& !h->root.def_regular))
- && r_symndx != 0
+ && r_symndx != STN_UNDEF
&& (input_section->flags & SEC_ALLOC) != 0)
{
/* If we're creating a shared library, or this relocation is against a symbol
@@ -2038,8 +2038,8 @@ score_elf_final_link_relocate (reloc_howto_type *howto,
input_section))
return bfd_reloc_undefined;
}
- else if (r_symndx == 0)
- /* r_symndx will be zero only for relocs against symbols
+ else if (r_symndx == STN_UNDEF)
+ /* r_symndx will be STN_UNDEF (zero) only for relocs against symbols
from removed linkonce sections, or sections discarded by
a linker script. */
value = 0;
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index 023ed7e..4937643 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -4405,7 +4405,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
&& (h == NULL
|| ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
|| h->root.type != bfd_link_hash_undefweak)
- && r_symndx != 0
+ && r_symndx != STN_UNDEF
&& (input_section->flags & SEC_ALLOC) != 0
&& !is_vxworks_tls
&& (r_type == R_SH_DIR32
diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c
index 3815ff1..ed3d3d9 100644
--- a/bfd/elf32-tic6x.c
+++ b/bfd/elf32-tic6x.c
@@ -1348,6 +1348,31 @@ elf32_tic6x_set_use_rela_p (bfd *abfd, bfd_boolean use_rela_p)
}
static bfd_boolean
+elf32_tic6x_fake_sections (bfd *abfd,
+ Elf_Internal_Shdr *hdr ATTRIBUTE_UNUSED,
+ asection *sec)
+{
+ /* The generic elf_fake_sections will set up REL_HDR using the
+ default kind of relocations. But, we may actually need both
+ kinds of relocations, so we set up the second header here. */
+ if ((sec->flags & SEC_RELOC) != 0)
+ {
+ struct bfd_elf_section_data *esd;
+ bfd_size_type amt = sizeof (Elf_Internal_Shdr);
+
+ esd = elf_section_data (sec);
+ BFD_ASSERT (esd->rel_hdr2 == NULL);
+ esd->rel_hdr2 = bfd_zalloc (abfd, amt);
+ if (!esd->rel_hdr2)
+ return FALSE;
+ _bfd_elf_init_reloc_shdr (abfd, esd->rel_hdr2, sec,
+ !sec->use_rela_p);
+ }
+
+ return TRUE;
+}
+
+static bfd_boolean
elf32_tic6x_mkobject (bfd *abfd)
{
bfd_boolean ret;
@@ -1765,6 +1790,7 @@ elf32_tic6x_merge_private_bfd_data (bfd *ibfd, bfd *obfd)
#define elf_backend_default_use_rela_p 1
#define elf_backend_may_use_rel_p 1
#define elf_backend_may_use_rela_p 1
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-09-20 12:34 pmuldoon
0 siblings, 0 replies; 120+ messages in thread
From: pmuldoon @ 2010-09-20 12:34 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 537e20cf693b1dc7723d036d85fbc014cfa2cad8 (commit)
via 998a835316aca40a3df80a9991fd73b802cbe50f (commit)
via 7b7b712ff734469249d45c6cc98146f10d45a16a (commit)
via 8365ae81b6bc04f6aa0f6b159324ad410fcde9e1 (commit)
via c7465b74e0390c3561c74222075347b70b656e80 (commit)
via 8fc8ce88b9e5d37fd7d56d6316befe8d0b34934e (commit)
via 6bf0f2b7d2a68e073be94bea605df7d8de208e7e (commit)
via ba28cdd5101969ea7cfd37beb751ba4b16cd9b5d (commit)
via b14ca9d327450399370cd8eed3443feeb1373de5 (commit)
via cb6b882dbc1402600f7d5d651ff3e1df151de886 (commit)
via 780f02f612dece92f3f88fbccf30b6cd4762da2c (commit)
via b3be260c7c271e8040c28f1ef613f8b17b2558d6 (commit)
via 8d61ca616c147122a84210098a56d5ccc717fd20 (commit)
via 0a4da4bd5cb49f922ecc723bfdd6d5fd654e17cb (commit)
from cf7b7b38fd5f32865f0c91d1b6f929c08e04ff0a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 537e20cf693b1dc7723d036d85fbc014cfa2cad8
Merge: cf7b7b3 998a835
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Mon Sep 20 13:33:59 2010 +0100
Merge remote branch 'gdb/master'
commit 998a835316aca40a3df80a9991fd73b802cbe50f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Sep 20 00:00:32 2010 +0000
*** empty log message ***
commit 7b7b712ff734469249d45c6cc98146f10d45a16a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Sep 20 00:00:05 2010 +0000
daily update
commit 8365ae81b6bc04f6aa0f6b159324ad410fcde9e1
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Sun Sep 19 10:52:17 2010 +0000
bfd/
* elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls.
(mips_elf_link_hash_newfunc): Initialize it.
(mips_elf_record_global_got_symbol): Add a for_call parameter.
(mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather
than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls.
Try to remove .got entries in favour of .got.plt entries on VxWorks.
(_bfd_mips_elf_check_relocs): Do not try to avoid allocating
a global GOT entry for VxWorks calls. Update uses of
mips_elf_record_global_got_symbol.
(allocate_dynrelocs): Set got_only_for_calls to false if the GOT
entry is used for dynamic relocations.
commit c7465b74e0390c3561c74222075347b70b656e80
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Sun Sep 19 10:26:27 2010 +0000
bfd/
* elfxx-mips.c (mips_got_entry): Adjust commentary.
(mips_elf_create_local_got_entry): If given a symbol, check that it
has been assigned to the local part of the GOT.
(mips_elf_count_got_symbols): Take the bfd_link_info as argument
instead of the master GOT. Put all locally-binding symbols in
the local area.
(mips_elf_make_got_per_bfd): Use global_got_area to decide whether
a symbol lives in the local or global area.
(mips_elf_local_relocation_p): Remove check_forced argument and
retain only the !check_forced behavior.
(mips_elf_calculate_relocation): Adjust call accordingly.
Use global_got_area to decide whether an output relocation
should be local or global. Explicitly decay R_MIPS_GOT_PAGE
into R_MIPS_GOT_DISP where appropriate. Fix selection of
local vs. global semantics for R_MIPS*_26. Remove redundant
reevaluation of what is stored in was_local_p.
(mips_elf_create_dynamic_relocation): Use global_got_area to decide
whether the relocation should be against a global or local symbol.
(mips_elf_lay_out_got): Update the GOT traversal after the above
change to mips_elf_count_got_symbols.
(mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p.
(_bfd_mips_elf_relocate_section): Likewise.
(_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide
whether the symbol has a global got entry.
(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
ld/testsuite/
* ld-mips-elf/elf-rel-got-n32.d: Swap two local GOT entries
and remove some duplication between the global and local GOT
entries. Adjust GP offsets accordingly.
* ld-mips-elf/elf-rel-got-n64-linux.d: Likewise.
* ld-mips-elf/elf-rel-xgot-n32.d: Reorder GOT entries and update
GP offsets accordingly.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
* ld-mips-elf/mips16-pic-1.gd: Move all global GOT entries to
the local GOT.
* ld-mips-elf/mips16-pic-1.dd: Update GP offsets accordingly.
* ld-mips-elf/multi-got-no-shared.d: Adjust GP setup for
smaller GOT sizes.
commit 8fc8ce88b9e5d37fd7d56d6316befe8d0b34934e
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Sun Sep 19 10:07:30 2010 +0000
bfd/
* elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols
to the global GOT on VxWorks.
commit 6bf0f2b7d2a68e073be94bea605df7d8de208e7e
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Sun Sep 19 10:03:28 2010 +0000
bfd/
* elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks,
exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning
about HI/LO relocations in shared objects.
commit ba28cdd5101969ea7cfd37beb751ba4b16cd9b5d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Sep 19 00:00:34 2010 +0000
*** empty log message ***
commit b14ca9d327450399370cd8eed3443feeb1373de5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Sep 19 00:00:06 2010 +0000
daily update
commit cb6b882dbc1402600f7d5d651ff3e1df151de886
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Sep 18 00:00:05 2010 +0000
daily update
commit 780f02f612dece92f3f88fbccf30b6cd4762da2c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Sep 18 00:00:03 2010 +0000
*** empty log message ***
commit b3be260c7c271e8040c28f1ef613f8b17b2558d6
Author: mgretton <mgretton>
Date: Fri Sep 17 10:13:40 2010 +0000
2010-09-17 Tejas Belagod <tejas.belagod@arm.com>
* config/tc-arm.c (insns): Change MRC entry to accept APSR_RR instead
of just RR.
2010-09-17 Tejas Belagod <tejas.belagod@arm.com>
* gas/arm/copro.s: Add test for APSR_nzcv as a MRC operand.
* gas/arm/copro.d: Change pc in MRC to disassemble as APSR_nzcv. Also
add disassembly for test added in copro.s
2010-09-17 Tejas Belagod <tejas.belagod@arm.com>
* arm_dis.c (coprocessor_opcodes): Add MRC entry for APSR_nzcv.
commit 8d61ca616c147122a84210098a56d5ccc717fd20
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Sep 17 00:00:32 2010 +0000
*** empty log message ***
commit 0a4da4bd5cb49f922ecc723bfdd6d5fd654e17cb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Sep 17 00:00:04 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 53 ++++++++++++++
bfd/elfxx-mips.c | 198 ++++++++++++++++++++++++++++-------------------------
bfd/version.h | 2 +-
gdb/version.in | 2 +-
opcodes/ChangeLog | 4 +
opcodes/arm-dis.c | 1 +
6 files changed, 164 insertions(+), 96 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2627e77..545c603 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,56 @@
+2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls.
+ (mips_elf_link_hash_newfunc): Initialize it.
+ (mips_elf_record_global_got_symbol): Add a for_call parameter.
+ (mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather
+ than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls.
+ Try to remove .got entries in favour of .got.plt entries on VxWorks.
+ (_bfd_mips_elf_check_relocs): Do not try to avoid allocating
+ a global GOT entry for VxWorks calls. Update uses of
+ mips_elf_record_global_got_symbol.
+ (allocate_dynrelocs): Set got_only_for_calls to false if the GOT
+ entry is used for dynamic relocations.
+
+2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elfxx-mips.c (mips_got_entry): Adjust commentary.
+ (mips_elf_create_local_got_entry): If given a symbol, check that it
+ has been assigned to the local part of the GOT.
+ (mips_elf_count_got_symbols): Take the bfd_link_info as argument
+ instead of the master GOT. Put all locally-binding symbols in
+ the local area.
+ (mips_elf_make_got_per_bfd): Use global_got_area to decide whether
+ a symbol lives in the local or global area.
+ (mips_elf_local_relocation_p): Remove check_forced argument and
+ retain only the !check_forced behavior.
+ (mips_elf_calculate_relocation): Adjust call accordingly.
+ Use global_got_area to decide whether an output relocation
+ should be local or global. Explicitly decay R_MIPS_GOT_PAGE
+ into R_MIPS_GOT_DISP where appropriate. Fix selection of
+ local vs. global semantics for R_MIPS*_26. Remove redundant
+ reevaluation of what is stored in was_local_p.
+ (mips_elf_create_dynamic_relocation): Use global_got_area to decide
+ whether the relocation should be against a global or local symbol.
+ (mips_elf_lay_out_got): Update the GOT traversal after the above
+ change to mips_elf_count_got_symbols.
+ (mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p.
+ (_bfd_mips_elf_relocate_section): Likewise.
+ (_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide
+ whether the symbol has a global got entry.
+ (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
+
+2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols
+ to the global GOT on VxWorks.
+
+2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks,
+ exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning
+ about HI/LO relocations in shared objects.
+
2010-09-16 Alan Modra <amodra@gmail.com>
* elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 78f96c1..1ee9289 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -53,7 +53,7 @@
(abfd == NULL)
(2) SYMBOL + OFFSET addresses, where SYMBOL is local to an input bfd
(abfd != NULL, symndx >= 0)
- (3) global and forced-local symbols
+ (3) SYMBOL addresses, where SYMBOL is not local to an input bfd
(abfd != NULL, symndx == -1)
Type (3) entries are treated differently for different types of GOT.
@@ -94,8 +94,9 @@ struct mips_got_entry
that should be added to the symbol value. */
bfd_vma addend;
/* If abfd != NULL && symndx == -1, the hash table entry
- corresponding to a global symbol in the got (or, local, if
- h->forced_local). */
+ corresponding to symbol in the GOT. The symbol's entry
+ is in the local area if h->global_got_area is GGA_NONE,
+ otherwise it is in the global area. */
struct mips_elf_link_hash_entry *h;
} d;
@@ -373,6 +374,11 @@ struct mips_elf_link_hash_entry
/* The highest GGA_* value that satisfies all references to this symbol. */
unsigned int global_got_area : 2;
+ /* True if all GOT relocations against this symbol are for calls. This is
+ a looser condition than no_fn_stub below, because there may be other
+ non-call non-GOT relocations against the symbol. */
+ unsigned int got_only_for_calls : 1;
+
/* True if one of the relocations described by possibly_dynamic_relocs
is against a readonly section. */
unsigned int readonly_reloc : 1;
@@ -1072,6 +1078,7 @@ mips_elf_link_hash_newfunc (struct bfd_hash_entry *entry,
ret->call_fp_stub = NULL;
ret->tls_type = GOT_NORMAL;
ret->global_got_area = GGA_NONE;
+ ret->got_only_for_calls = TRUE;
ret->readonly_reloc = FALSE;
ret->has_static_relocs = FALSE;
ret->no_fn_stub = FALSE;
@@ -3202,8 +3209,8 @@ mips_elf_got_page (bfd *abfd, bfd *ibfd, struct bfd_link_info *info,
}
/* Find a local GOT entry for an R_MIPS*_GOT16 relocation against VALUE.
- EXTERNAL is true if the relocation was against a global symbol
- that has been forced local. */
+ EXTERNAL is true if the relocation was originally against a global
+ symbol that binds locally. */
static bfd_vma
mips_elf_got16_entry (bfd *abfd, bfd *ibfd, struct bfd_link_info *info,
@@ -3281,11 +3288,9 @@ mips_elf_create_local_got_entry (bfd *abfd, struct bfd_link_info *info,
BFD_ASSERT (g != NULL);
}
- /* We might have a symbol, H, if it has been forced local. Use the
- global entry then. It doesn't matter whether an entry is local
- or global for TLS, since the dynamic linker does not
- automatically relocate TLS GOT entries. */
- BFD_ASSERT (h == NULL || h->root.forced_local);
+ /* This function shouldn't be called for symbols that live in the global
+ area of the GOT. */
+ BFD_ASSERT (h == NULL || h->global_got_area == GGA_NONE);
if (TLS_RELOC_P (r_type))
{
struct mips_got_entry *p;
@@ -3478,11 +3483,13 @@ mips_elf_sort_hash_table_f (struct mips_elf_link_hash_entry *h, void *data)
/* If H is a symbol that needs a global GOT entry, but has a dynamic
symbol table index lower than any we've seen to date, record it for
- posterity. */
+ posterity. FOR_CALL is true if the caller is only interested in
+ using the GOT entry for calls. */
static bfd_boolean
mips_elf_record_global_got_symbol (struct elf_link_hash_entry *h,
bfd *abfd, struct bfd_link_info *info,
+ bfd_boolean for_call,
unsigned char tls_flag)
{
struct mips_elf_link_hash_table *htab;
@@ -3494,6 +3501,8 @@ mips_elf_record_global_got_symbol (struct elf_link_hash_entry *h,
BFD_ASSERT (htab != NULL);
hmips = (struct mips_elf_link_hash_entry *) h;
+ if (!for_call)
+ hmips->got_only_for_calls = FALSE;
/* A global symbol in the GOT must also be in the dynamic symbol
table. */
@@ -3850,25 +3859,49 @@ mips_elf_resolve_final_got_entries (struct mips_got_info *g)
}
/* A mips_elf_link_hash_traverse callback for which DATA points
- to a mips_got_info. Count the number of type (3) entries. */
+ to the link_info structure. Count the number of type (3) entries
+ in the master GOT. */
static int
mips_elf_count_got_symbols (struct mips_elf_link_hash_entry *h, void *data)
{
+ struct bfd_link_info *info;
+ struct mips_elf_link_hash_table *htab;
struct mips_got_info *g;
- g = (struct mips_got_info *) data;
+ info = (struct bfd_link_info *) data;
+ htab = mips_elf_hash_table (info);
+ g = htab->got_info;
if (h->global_got_area != GGA_NONE)
{
- if (h->root.forced_local || h->root.dynindx == -1)
- {
- /* We no longer need this entry if it was only used for
- relocations; those relocations will be against the
- null or section symbol instead of H. */
+ /* Make a final decision about whether the symbol belongs in the
+ local or global GOT. Symbols that bind locally can (and in the
+ case of forced-local symbols, must) live in the local GOT.
+ Those that are aren't in the dynamic symbol table must also
+ live in the local GOT.
+
+ Note that the former condition does not always imply the
+ latter: symbols do not bind locally if they are completely
+ undefined. We'll report undefined symbols later if appropriate. */
+ if (h->root.dynindx == -1
+ || (h->got_only_for_calls
+ ? SYMBOL_CALLS_LOCAL (info, &h->root)
+ : SYMBOL_REFERENCES_LOCAL (info, &h->root)))
+ {
+ /* The symbol belongs in the local GOT. We no longer need this
+ entry if it was only used for relocations; those relocations
+ will be against the null or section symbol instead of H. */
if (h->global_got_area != GGA_RELOC_ONLY)
g->local_gotno++;
h->global_got_area = GGA_NONE;
}
+ else if (htab->is_vxworks
+ && h->got_only_for_calls
+ && h->root.plt.offset != MINUS_ONE)
+ /* On VxWorks, calls can refer directly to the .got.plt entry;
+ they don't need entries in the regular GOT. .got.plt entries
+ will be allocated by _bfd_mips_elf_adjust_dynamic_symbol. */
+ h->global_got_area = GGA_NONE;
else
{
g->global_gotno++;
@@ -4010,7 +4043,7 @@ mips_elf_make_got_per_bfd (void **entryp, void *p)
if (entry->tls_type & GOT_TLS_IE)
g->tls_gotno += 1;
}
- else if (entry->symndx >= 0 || entry->d.h->root.forced_local)
+ else if (entry->symndx >= 0 || entry->d.h->global_got_area == GGA_NONE)
++g->local_gotno;
else
++g->global_gotno;
@@ -4557,17 +4590,15 @@ mips_elf_next_relocation (bfd *abfd ATTRIBUTE_UNUSED, unsigned int r_type,
return NULL;
}
-/* Return whether a relocation is against a local symbol. */
+/* Return whether an input relocation is against a local symbol. */
static bfd_boolean
mips_elf_local_relocation_p (bfd *input_bfd,
const Elf_Internal_Rela *relocation,
- asection **local_sections,
- bfd_boolean check_forced)
+ asection **local_sections)
{
unsigned long r_symndx;
Elf_Internal_Shdr *symtab_hdr;
- struct mips_elf_link_hash_entry *h;
size_t extsymoff;
r_symndx = ELF_R_SYM (input_bfd, relocation->r_info);
@@ -4579,20 +4610,6 @@ mips_elf_local_relocation_p (bfd *input_bfd,
if (elf_bad_symtab (input_bfd) && local_sections[r_symndx] != NULL)
return TRUE;
- if (check_forced)
- {
- /* Look up the hash table to check whether the symbol
- was forced local. */
- h = (struct mips_elf_link_hash_entry *)
- elf_sym_hashes (input_bfd) [r_symndx - extsymoff];
- /* Find the real hash-table entry for this symbol. */
- while (h->root.root.type == bfd_link_hash_indirect
- || h->root.root.type == bfd_link_hash_warning)
- h = (struct mips_elf_link_hash_entry *) h->root.root.u.i.link;
- if (h->root.forced_local)
- return TRUE;
- }
-
return FALSE;
}
\f
@@ -4900,7 +4917,7 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
used in the array of hash table entries. */
symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
local_p = mips_elf_local_relocation_p (input_bfd, relocation,
- local_sections, FALSE);
+ local_sections);
was_local_p = local_p;
if (! elf_bad_symtab (input_bfd))
extsymoff = symtab_hdr->sh_info;
@@ -5134,8 +5151,7 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
|| ((r_type == R_MIPS_26 || r_type == R_MIPS_JALR)
&& target_is_16_bit_code_p));
- local_p = mips_elf_local_relocation_p (input_bfd, relocation,
- local_sections, TRUE);
+ local_p = h == NULL || SYMBOL_REFERENCES_LOCAL (info, &h->root);
gp0 = _bfd_get_gp_value (input_bfd);
gp = _bfd_get_gp_value (abfd);
@@ -5145,19 +5161,18 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
if (gnu_local_gp_p)
symbol = gp;
+ /* Global R_MIPS_GOT_PAGE relocations are equivalent to R_MIPS_GOT_DISP.
+ The addend is applied by the corresponding R_MIPS_GOT_OFST. */
+ if (r_type == R_MIPS_GOT_PAGE && !local_p)
+ {
+ r_type = R_MIPS_GOT_DISP;
+ addend = 0;
+ }
+
/* If we haven't already determined the GOT offset, oand we're going
to need it, get it now. */
switch (r_type)
{
- case R_MIPS_GOT_PAGE:
- case R_MIPS_GOT_OFST:
- /* We need to decay to GOT_DISP/addend if the symbol doesn't
- bind locally. */
- local_p = local_p || _bfd_elf_symbol_refs_local_p (&h->root, info, 1);
- if (local_p || r_type == R_MIPS_GOT_OFST)
- break;
- /* Fall through. */
-
case R_MIPS16_CALL16:
case R_MIPS16_GOT16:
case R_MIPS_CALL16:
@@ -5193,21 +5208,12 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
}
else
{
- /* GOT_PAGE may take a non-zero addend, that is ignored in a
- GOT_PAGE relocation that decays to GOT_DISP because the
- symbol turns out to be global. The addend is then added
- as GOT_OFST. */
- BFD_ASSERT (addend == 0 || r_type == R_MIPS_GOT_PAGE);
+ BFD_ASSERT (addend == 0);
g = mips_elf_global_got_index (dynobj, input_bfd,
&h->root, r_type, info);
if (h->tls_type == GOT_NORMAL
- && (! elf_hash_table(info)->dynamic_sections_created
- || (info->shared
- && (info->symbolic || h->root.forced_local)
- && h->root.def_regular)))
- /* This is a static link or a -Bsymbolic link. The
- symbol is defined locally, or was forced to be local.
- We must initialize this entry in the GOT. */
+ && !elf_hash_table (info)->dynamic_sections_created)
+ /* This is a static link. We must initialize the GOT entry. */
MIPS_ELF_PUT_WORD (dynobj, symbol, htab->sgot->contents + g);
}
}
@@ -5321,7 +5327,7 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
mips_elf_perform_relocation. So, we just fall through to the
R_MIPS_26 case here. */
case R_MIPS_26:
- if (local_p)
+ if (was_local_p)
value = ((addend | ((p + 4) & 0xf0000000)) + symbol) >> 2;
else
{
@@ -5447,12 +5453,8 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
R_MIPS*_GOT16; every relocation evaluates to "G". */
if (!htab->is_vxworks && local_p)
{
- bfd_boolean forced;
-
- forced = ! mips_elf_local_relocation_p (input_bfd, relocation,
- local_sections, FALSE);
value = mips_elf_got16_entry (abfd, input_bfd, info,
- symbol + addend, forced);
+ symbol + addend, !was_local_p);
if (value == MINUS_ONE)
return bfd_reloc_outofrange;
value
@@ -5467,7 +5469,6 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
case R_MIPS_TLS_GOTTPREL:
case R_MIPS_TLS_LDM:
case R_MIPS_GOT_DISP:
- got_disp:
value = g;
overflowed_p = mips_elf_overflow_p (value, 16);
break;
@@ -5502,11 +5503,6 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
break;
case R_MIPS_GOT_PAGE:
- /* GOT_PAGE relocations that reference non-local symbols decay
- to GOT_DISP. The corresponding GOT_OFST relocation decays to
- 0. */
- if (! local_p)
- goto got_disp;
value = mips_elf_got_page (abfd, input_bfd, info, symbol + addend, NULL);
if (value == MINUS_ONE)
return bfd_reloc_outofrange;
@@ -5757,6 +5753,7 @@ mips_elf_create_dynamic_relocation (bfd *output_bfd,
in the relocation. */
if (h != NULL && ! SYMBOL_REFERENCES_LOCAL (info, &h->root))
{
+ BFD_ASSERT (htab->is_vxworks || h->global_got_area != GGA_NONE);
indx = h->root.dynindx;
if (SGI_COMPAT (output_bfd))
defined_p = h->root.def_regular;
@@ -7679,11 +7676,10 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
case R_MIPS_CALL_LO16:
if (h != NULL)
{
- /* VxWorks call relocations point at the function's .got.plt
- entry, which will be allocated by adjust_dynamic_symbol.
- Otherwise, this symbol requires a global GOT entry. */
- if ((!htab->is_vxworks || h->forced_local)
- && !mips_elf_record_global_got_symbol (h, abfd, info, 0))
+ /* Make sure there is room in the regular GOT to hold the
+ function's address. We may eliminate it in favour of
+ a .got.plt entry later; see mips_elf_count_got_symbols. */
+ if (!mips_elf_record_global_got_symbol (h, abfd, info, TRUE, 0))
return FALSE;
/* We need a stub, not a plt entry for the undefined
@@ -7743,7 +7739,8 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
/* Fall through. */
case R_MIPS_GOT_DISP:
- if (h && !mips_elf_record_global_got_symbol (h, abfd, info, 0))
+ if (h && !mips_elf_record_global_got_symbol (h, abfd, info,
+ FALSE, 0))
return FALSE;
break;
@@ -7775,8 +7772,8 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
(struct mips_elf_link_hash_entry *) h;
hmips->tls_type |= flag;
- if (h && !mips_elf_record_global_got_symbol (h, abfd,
- info, flag))
+ if (h && !mips_elf_record_global_got_symbol (h, abfd, info,
+ FALSE, flag))
return FALSE;
}
else
@@ -7930,6 +7927,10 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
&& strcmp (h->root.root.string, "_gp_disp") == 0)
break;
+ /* Likewise __GOTT_BASE__ and __GOTT_INDEX__ on VxWorks. */
+ if (is_gott_symbol (info, h))
+ break;
+
/* FALLTHROUGH */
case R_MIPS16_26:
@@ -8168,10 +8169,19 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
if (do_copy)
{
/* Even though we don't directly need a GOT entry for this symbol,
- a symbol must have a dynamic symbol table index greater that
- DT_MIPS_GOTSYM if there are dynamic relocations against it. */
- if (hmips->global_got_area > GGA_RELOC_ONLY)
- hmips->global_got_area = GGA_RELOC_ONLY;
+ the SVR4 psABI requires it to have a dynamic symbol table
+ index greater that DT_MIPS_GOTSYM if there are dynamic
+ relocations against it.
+
+ VxWorks does not enforce the same mapping between the GOT
+ and the symbol table, so the same requirement does not
+ apply there. */
+ if (!htab->is_vxworks)
+ {
+ if (hmips->global_got_area > GGA_RELOC_ONLY)
+ hmips->global_got_area = GGA_RELOC_ONLY;
+ hmips->got_only_for_calls = FALSE;
+ }
mips_elf_allocate_dynamic_relocations
(dynobj, info, hmips->possibly_dynamic_relocs);
@@ -8454,7 +8464,7 @@ mips_elf_lay_out_got (bfd *output_bfd, struct bfd_link_info *info)
return FALSE;
/* Count the number of GOT symbols. */
- mips_elf_link_hash_traverse (htab, mips_elf_count_got_symbols, g);
+ mips_elf_link_hash_traverse (htab, mips_elf_count_got_symbols, info);
/* Calculate the total loadable size of the output. That
will give us the maximum number of GOT_PAGE entries
@@ -8913,7 +8923,7 @@ mips_elf_adjust_addend (bfd *output_bfd, struct bfd_link_info *info,
Elf_Internal_Sym *sym;
asection *sec;
- if (mips_elf_local_relocation_p (input_bfd, rel, local_sections, FALSE))
+ if (mips_elf_local_relocation_p (input_bfd, rel, local_sections))
{
r_type = ELF_R_TYPE (output_bfd, rel->r_info);
if (r_type == R_MIPS16_GPREL
@@ -8983,7 +8993,7 @@ _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
r_symndx = ELF_R_SYM (input_bfd, rel->r_info);
symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
- if (mips_elf_local_relocation_p (input_bfd, rel, local_sections, FALSE))
+ if (mips_elf_local_relocation_p (input_bfd, rel, local_sections))
{
sec = local_sections[r_symndx];
h = NULL;
@@ -9048,7 +9058,7 @@ _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (hi16_reloc_p (r_type)
|| (got16_reloc_p (r_type)
&& mips_elf_local_relocation_p (input_bfd, rel,
- local_sections, FALSE)))
+ local_sections)))
{
if (!mips_elf_add_lo16_rel_addend (input_bfd, rel, relend,
contents, &addend))
@@ -9574,8 +9584,7 @@ _bfd_mips_elf_finish_dynamic_symbol (bfd *output_bfd,
/* Run through the global symbol table, creating GOT entries for all
the symbols that need them. */
- if (g->global_gotsym != NULL
- && h->dynindx >= g->global_gotsym->dynindx)
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-09-16 20:49 ratmice
0 siblings, 0 replies; 120+ messages in thread
From: ratmice @ 2010-09-16 20:49 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via cf7b7b38fd5f32865f0c91d1b6f929c08e04ff0a (commit)
via e884cc5b62f170280dd49a35793bb516d95e7d8d (commit)
via 6ab8c51073a44168a14e41f7c5d590096d1e595d (commit)
via 7ec6b44ca25a6d438e2d7e0afed2c60dc3c4a6e7 (commit)
via b286d112086a57f79a8f99f35603ad8d1ec941e4 (commit)
via 97b83d6b602057bc8f7a19deb9f73ca79bc360ac (commit)
via 6b2534a30ca06e71cce484bce81b81deca7fb961 (commit)
via cf7740d1f850789e09a5721f5346b0c728afb0e6 (commit)
via a5ca68f1382731e7116470550bf72ea41b0ad29c (commit)
via 562fabbaa40fe9e601eddc2e0ab3c8cc615cf9a3 (commit)
via 8e041785876903fcba2a5b910364355418e20080 (commit)
via 9952a7464b8327d03c12dd338e95abff0f020675 (commit)
via 2b79a82a5aeff8a7bff82c4b87cf0cfc93f65fef (commit)
via 7928c19c95e1b231d54b54a9d7f1561351a896d4 (commit)
via 2b30eb2c73bd6e3e90395810f7cec50eab0e3924 (commit)
via c150a650f5dca644a1429021bc1383a41729a21a (commit)
via 7af29a1c682299ffdbc0fe45bdf3e8cb452ca40b (commit)
via 95043b5295b1c6a3d9ddae522c555abb5a9eaf63 (commit)
via 80e7c8457cb26d08bc9666bd2c8ea6345ebfde06 (commit)
via 064df19323c9f55c65f71212acc36fc0ca96d922 (commit)
via af8bd20c28872e99508947450db56881d94477e9 (commit)
via 21e870a935598a2731a54fbfeb57293a15dd4c76 (commit)
via d6e3db8d9c3ede1e602885a843d8ada8a94ad498 (commit)
via 2ffd25c5ace6a94e958467bbf04fbd7e81ca7373 (commit)
via dde65f0a6260392383d4026ea333ae9b3d78f785 (commit)
via 8da7c5d9803d592e1c8cd7d2ef0c1f98aac85653 (commit)
via 794d06ab231d8e817263d3a150537be5ee7b4e08 (commit)
via 8621e6dd5d4e09a1135bed0422589940ff698e98 (commit)
via 2a02d41a75e820ac0b188ce1cac5d6d3b839a829 (commit)
via 78cca33bcd7e04a61989f45d06b400c9e7738a5e (commit)
via c98c00243d8e75b8d2270fb498a3e67051703cd5 (commit)
via 75340462b9828c45502f4f32ca2b85569c4dc596 (commit)
via 0beaf39b06501a444f7889f6faf111328d4bff50 (commit)
via f9323c693b69235720f629a3362839ed03e2c812 (commit)
via a4b255aef270c6827d402671b1869e43e77623b7 (commit)
via c29c1e6bd34573233b7a0f511f12a9b0f3a6f5b1 (commit)
via 649178bdab0fb4110252339e1ed18d238a94596b (commit)
via 1eac8800a137cb937257b2d9bce01d943eb68378 (commit)
via efcb744ec1fabfcde357b03f0e202b7c323c3145 (commit)
via 58eb7227e73fcad96dc7ba7359b733bcaab8eb10 (commit)
via b13bd6996bbef8e41187ce35d9e4df3e735104d6 (commit)
via 4931291da074cb6c3fefe875856d6d4df8b2ff9b (commit)
via a32c9b2b5d7ea3f6e41d5f511c784bd42589e83f (commit)
via b7b39aa45195dea276d2452fcae2ccd3f6107345 (commit)
via e5d232941da2c8502b1c9d3541bc40df84ec5132 (commit)
via b42ed799fa280967003c0abff633b8c5d9921353 (commit)
via eca57139b5a7c4619021c0f0610ecf252721cee8 (commit)
via 63af819489d07814068aa2b1aa60ca728345807e (commit)
via 81333092777154d9253a19b8a921438d6947e51b (commit)
via 4eb54660ebf77c7400240600845a6193c11822ec (commit)
via f0693f918e2626ad6f0aadec0178a72b6cc1eac5 (commit)
via 172fd2400ce2a6e40daf416d344bcd8b97b4467c (commit)
via b2147050b6428dfc5d36e198f89fdc370209edf8 (commit)
via fae9ee2010239a1bbf1faa12113213c2b3cfc054 (commit)
via dfba873caef40585f45ed92a91697335fde0b853 (commit)
via 5ffd042d12b93325b2c6b82b8743a1111c6f8e5b (commit)
via 6bf40536020ec51fdb58f03f738f88644ab3fdf4 (commit)
via b6c7ffa5df5c5e34d4497dfc1e40483f5afab455 (commit)
via 78cd501a87590d746bda84811532749d49a67562 (commit)
via 2af34d77acf96a4cb2951fdda1b9b4864c4ff733 (commit)
via a1a754aea707cfb6148fdcff3ae78ebeb005006f (commit)
via f5be9a8466d0499543f3756e825faf9494497ba6 (commit)
via e522eaf70046621bc29e6b30ccbf203280becc88 (commit)
via 53ba8685cc752ac2066ba194125ad2d8939c3cc5 (commit)
via 22ad12f7f90df1c90b8280c4e9ffb9ac21dd789f (commit)
via afe3ce56dd48efa8966e98e0ffa2db2b0427f78e (commit)
via 2bdb5783033a1325f694b0c01be7b4caa1f493bf (commit)
via 56354196db007fccf3eed8e9c9403159c55be0e0 (commit)
via 747f7e9df785f444a167e2752939089b05401bab (commit)
via 80edb32c43e8e9654a16ffc3ffd84f1b8e0411dc (commit)
via b9bf903b95ab949bd703aea23f84cbd18e7bd2db (commit)
via 22c20a83d07c1603b4ee955f6c2a0f3d57bb4fcc (commit)
via 0895467655dce00f8bf0fb6620f50b84fa1b918b (commit)
via 0abde5838f2d334c9b49fc7206ad20dcdd1a49de (commit)
via 126951c7ed7dc1eef4ce9a24b1515e1c5c1d3d0a (commit)
via 4629f9eb136fc5d1f2804c5ff6759e67408c538d (commit)
via a9baaa9fc07d5682a8079889a3d42cd1caa17519 (commit)
via 05b3e3b5f9dffb34f8e6fe18ab082a4da58168ac (commit)
via da56528adb0ef748d7e7759ec239b9e1b4673830 (commit)
via 7d5da991c5d3790da730efc51ec51d71bcd495a8 (commit)
via 7d0505f3d58ccee53fafafe6da66a3ed26b82445 (commit)
via 6dfd9363589fcd4133fc30cc0b9f2e079b32089f (commit)
via 73db14c7fe07a0f844624b8d1996faed42be0366 (commit)
via ec14aa826e7db7b536b2d6e82cfa665b181919a2 (commit)
via 24389a4f7a09961589500df6f35245abe07a8f75 (commit)
via 08bcb2306f779b29b70a9cafa22a484c69b1f856 (commit)
via 7696d299cfda2989a7f1433a78177e76c790598d (commit)
via cc41ac37eb8ed6f04c33ec58106bbfd650aea076 (commit)
via 67c667d0c2f0d08be7fc9b36812c5e7ca250ab49 (commit)
via 9cf83751346a81e36ebcb92135dbd027f8b0b7b5 (commit)
via 4fdce7c6d4d6f6b4dfdbe97316bc78a90ed4b9d4 (commit)
via 270ec63e582ad67c85a25643b2ebbe8877cd0ffd (commit)
via 6f8fa8a818f3cc7ca3e31afdef8e6deefce5adea (commit)
via 1f292c13c2599afe7bec2ccdb043c68bdd266273 (commit)
via 6b9b9329b3b8fb99fc3f5e28e9f2b183e3ee4152 (commit)
via 848579dd6ecd525cdc3fd65c85877053a5c433f1 (commit)
via d08e665b36015ad641b0f2abb9ef4239962a4b4b (commit)
via 251b6e1a7421a6dc44ab00893d0830c5afdef675 (commit)
from 61f0884b46ba2d3f8775995ec5433328a6d2e5cd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit cf7b7b38fd5f32865f0c91d1b6f929c08e04ff0a
Merge: 61f0884 e884cc5
Author: matt rice <ratmice@gmail.com>
Date: Thu Sep 16 13:48:30 2010 -0700
Merge remote branch 'gdb/master'
commit e884cc5b62f170280dd49a35793bb516d95e7d8d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Sep 16 19:20:50 2010 +0000
gdb/
* charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
characters.
commit 6ab8c51073a44168a14e41f7c5d590096d1e595d
Author: pmuldoon <pmuldoon>
Date: Thu Sep 16 13:47:51 2010 +0000
2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
PR mi/11407
* mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
read_var_value and common_val_print and print a warning.
2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
PR mi/11407
* gdb.mi/dw2-ref-missing-frame-func.c: New File.
* gdb.mi/dw2-ref-missing-frame-main.c New File.
* gdb.mi/dw2-ref-missing-frame.S New File.
* gdb.mi/dw2-ref-missing-frame.exp New File.
commit 7ec6b44ca25a6d438e2d7e0afed2c60dc3c4a6e7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Sep 16 10:35:58 2010 +0000
* elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
sections.
(spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and
set dynobj.
(spu_elf_finish_dynamic_sections): New function.
(elf_backend_finish_dynamic_sections): Define.
commit b286d112086a57f79a8f99f35603ad8d1ec941e4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Sep 16 00:06:10 2010 +0000
bfd/
* elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
* elflink.c (elf_link_input_bfd): Likewise.
ld/
* ld.texinfo (NOLOAD): Do not erroneously state that contents will
appear in output file.
* ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
unless SEC_COFF_SHARED_LIBRARY.
(map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
output sections.
(lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
to update dot in region. Ditto when setting SEC_ALLOC if dot
advanced due to assignment.
* ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
commit 97b83d6b602057bc8f7a19deb9f73ca79bc360ac
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 16 00:00:33 2010 +0000
*** empty log message ***
commit 6b2534a30ca06e71cce484bce81b81deca7fb961
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Sep 16 00:00:04 2010 +0000
daily update
commit cf7740d1f850789e09a5721f5346b0c728afb0e6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Sep 15 22:53:53 2010 +0000
gdb/
* MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
keep the list in alphabetical order. Use longer e-mail address.
commit a5ca68f1382731e7116470550bf72ea41b0ad29c
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Sep 15 22:26:24 2010 +0000
* MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
commit 562fabbaa40fe9e601eddc2e0ab3c8cc615cf9a3
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Sep 15 20:18:46 2010 +0000
* charset.c (iconv_open): New define.
(iconv): Likewise.
(iconv_close): Likewise.
(phony_iconv_open): Add "phony_" prefix.
(phony_iconv_close): Likewise.
(phony_iconv): Likewise.
* gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
Change how INTERMEDIATE_ENCODING is defined.
commit 8e041785876903fcba2a5b910364355418e20080
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Sep 15 19:31:59 2010 +0000
2010-09-15 Paul Bolle <pebolle@tiscali.nl>
* gdb.texinfo (Character Sets): Correctly reference host-charset
in example.
commit 9952a7464b8327d03c12dd338e95abff0f020675
Author: Doug Evans <dje@google.com>
Date: Wed Sep 15 18:14:45 2010 +0000
* dwarf2read.c (struct die_info): Fix comment.
commit 2b79a82a5aeff8a7bff82c4b87cf0cfc93f65fef
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Wed Sep 15 17:27:27 2010 +0000
2010-09-15 Kai Tietz <kai.tietz@onevision.com>
* pei-x86_64.c (pex64_get_unwind_info): Reorgnized.
(pex64_get_scope_entry): Removed.
(find_next_xdata_or_end): New helper.
(pex64_dump_xdata): Reworked.
(pex64_bfd_print_pdata): Add checking for
valid pdata sorting and values. Reworked
output.
commit 7928c19c95e1b231d54b54a9d7f1561351a896d4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Sep 15 17:12:53 2010 +0000
Handle NULL iostream in bfd_plugin_object_p.
2010-09-15 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12004
* plugin.c (bfd_plugin_object_p): Handle NULL iostream.
commit 2b30eb2c73bd6e3e90395810f7cec50eab0e3924
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Sep 15 03:30:29 2010 +0000
PR 4606
* gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
than setting SEC_NEVER_LOAD on sections that need not be copied.
commit c150a650f5dca644a1429021bc1383a41729a21a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 15 00:00:33 2010 +0000
*** empty log message ***
commit 7af29a1c682299ffdbc0fe45bdf3e8cb452ca40b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Sep 15 00:00:05 2010 +0000
daily update
commit 95043b5295b1c6a3d9ddae522c555abb5a9eaf63
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Tue Sep 14 23:49:03 2010 +0000
opcodes/
* mips-opc.c (mips_builtin_opcodes): Add "sync_acquire",
"sync_mb", "sync_release", "sync_rmb" and "sync_wmb".
gas/testsuite/
* gas/mips/mips32r2-sync.d: New test for MIPS32r2 "sync"
instruction variants.
* gas/mips/octeon@mips32r2-sync.d: Likewise, Octeon version.
* gas/mips/mips32r2-sync.s: Source for the new test.
* gas/mips/mips.exp: Run the new test.
commit 80e7c8457cb26d08bc9666bd2c8ea6345ebfde06
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Sep 14 22:50:28 2010 +0000
* psympriv.h (add_psymbol_to_list, init_psymbol_list)
(start_psymtab_common, allocate_psymtab, discard_psymtab):
Declare.
* symfile.h (extend_psymbol_list): Remove.
(add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
(allocate_psymtab, discard_psymtab): Move to psympriv.h.
* psymtab.c (extend_psymbol_list): Move earlier. Now static.
commit 064df19323c9f55c65f71212acc36fc0ca96d922
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Sep 14 21:28:52 2010 +0000
gdb/
* dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
Update the comment.
commit af8bd20c28872e99508947450db56881d94477e9
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Tue Sep 14 20:40:38 2010 +0000
2010-09-14 Kai Tietz <kai.tietz@onevision.com>
* pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
.rdata, .data, and .text partial matched section names.
* pei-x86_64.c: Likewise.
commit 21e870a935598a2731a54fbfeb57293a15dd4c76
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Tue Sep 14 20:25:33 2010 +0000
2010-09-14 Kai Tietz <kai.tietz@onevision.com>
* peXXigen.c (sort_x64_pdata): New helper.
(_bfd_XXi_final_link_postscript): Do pdata sorting.
commit d6e3db8d9c3ede1e602885a843d8ada8a94ad498
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Sep 14 19:39:58 2010 +0000
gdb
PR symtab/8399:
* dwarf2loc.c (locexpr_describe_location_piece): Don't call error
for unrecognized frame base expression.
gdb/testsuite
PR symtab/8399:
* gdb.threads/tls.exp: Remove kfail. Update expected output.
commit 2ffd25c5ace6a94e958467bbf04fbd7e81ca7373
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Sep 14 19:08:29 2010 +0000
gdb
PR exp/11803:
* value.c (value_static_field): Use value_of_variable.
gdb/testsuite
PR exp/11803:
* gdb.threads/tls.exp: Use C++.
(check_thread_local): Use K::another_thread_local.
* gdb.threads/tls.c (class K): New.
(another_thread_local): Now a member of K.
(spin): Update. No longer K&R C.
commit dde65f0a6260392383d4026ea333ae9b3d78f785
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Sep 14 08:01:09 2010 +0000
* m32r-rom.c: Replace winsock.h with winsock2.h header.
* remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
commit 8da7c5d9803d592e1c8cd7d2ef0c1f98aac85653
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Sep 14 00:00:05 2010 +0000
daily update
commit 794d06ab231d8e817263d3a150537be5ee7b4e08
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Sep 14 00:00:03 2010 +0000
*** empty log message ***
commit 8621e6dd5d4e09a1135bed0422589940ff698e98
Author: swagiaal <swagiaal>
Date: Mon Sep 13 20:41:04 2010 +0000
Fix PR 11992: C++ 'this' scope sometimes does not work
2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
PR symtab/11992:
* c-exp.y (classify_name): Check is_a_member_of_this before returning
UNKNOWN_CPP_NAME.
2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/koenig.cc: created class for testing member lookup.
* gdb.cp/koenig.exp: Added test for member lookup.
commit 2a02d41a75e820ac0b188ce1cac5d6d3b839a829
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Sep 13 20:37:32 2010 +0000
[NEWS] Announce gdbserver support for x86-lynxos
This patch adjusts the NEWS entry for the LynxOS gdbserver to include
x86-lynxos to the list of supported platforms.
gdb/ChangeLog:
* NEWS: Add x86-lynxos to the list of platforms supported by
gdbserver.
commit 78cca33bcd7e04a61989f45d06b400c9e7738a5e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Sep 13 20:05:03 2010 +0000
gdb/testsuite/
Fix false FAILs on sourcetree topdir directory containing "kill".
* gdb.base/sigall.exp (test_one_sig) <advance to $nextsig>: Extend the
source line matching regexp.
commit c98c00243d8e75b8d2270fb498a3e67051703cd5
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Sep 13 19:11:03 2010 +0000
Add support for x86 LynxOS
This patch adds support for x86 LynxOS (tested on LynxOS 5.0).
gdb/gdbserver/ChangeLog:
* lynx-i386-low.c: New file.
* configure.srv: Add handling of i[34567]86-*-lynxos* targets.
commit 75340462b9828c45502f4f32ca2b85569c4dc596
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Sep 13 19:10:44 2010 +0000
[NEWS] Announce support for PowerPC LynxOS 5.x.
This adjusts the news entry about ppc-lynxos to add version 5.x
of the OS to the list of supported versions...
gdb/ChangeLog:
* NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
commit 0beaf39b06501a444f7889f6faf111328d4bff50
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Sep 13 19:10:30 2010 +0000
[LynxOS] Remove handling of PTRACE_* values removed in Lynx5.
Some of the PTRACE_ macros/values were removed in LynxOS 5.x.
Since we have not use them so far, the chances that we will use them
one day are very small. So I decided to delete them.
gdb/gdbserver/ChangeLog:
* lynx-low.c (ptrace_request_to_str): Remove handling for
request values that have been removed in LynxOS 5.x.
commit f9323c693b69235720f629a3362839ed03e2c812
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Sep 13 19:10:19 2010 +0000
[LynxOS] Include sys/ptrace.h instead of ptrace.h.
This is one of the changes needed in order to build gdbserver on
LynxOS 5.x.
Really interesting: On LynxOS 4.x, there is a #warning when sys/ptrace.h
is used (explaining that ptrace.h will be used instead), whereas this
file was removed from LynxOS 5.x. The contents of sys/ptrace.h on 4.x
(or at least the meat of it):
#if defined(__GNUC__) || defined(__GNUG__)
#if !defined(__NO_INCLUDE_WARN__)
#warning Using <ptrace.h> instead of <sys/ptrace.h>
#endif /* defined(__NO_INCLUDE_WARN__) */
#endif /* defined(__GNUC__) || defined(__GNUG__) */
#include <ptrace.h>
The fix I went for, for now, is to just include <sys/ptrace.h>
unconditionally. I could have done some configury, but we already
have to build with -D__NO_INCLUDE_WARN__ to avoid the warnings
anyway, and that's unvoidable, due to system includes themselves
including the "wrong" header file.
Since <sys/ptrace.h> seems to be the choice that was made for LynxOS,
and since it works to include it on LynxOS 4.x, I think that's the simplest
solution.
gdb/gdbserver/ChangeLog:
* lynx-low.c, lynx-ppc-low.c: Include <sys/ptrace.h> instead of
<ptrace.h>
commit a4b255aef270c6827d402671b1869e43e77623b7
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Sep 13 18:27:04 2010 +0000
* gdb.texinfo (GDB/MI Stack Manipulation) <-stack-list-frames>:
Document "fullname" and "from".
commit c29c1e6bd34573233b7a0f511f12a9b0f3a6f5b1
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Sep 13 17:59:58 2010 +0000
* Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
commit 649178bdab0fb4110252339e1ed18d238a94596b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Sep 13 17:39:46 2010 +0000
Set 256bit vector type name to builtin_type_vec256i.
2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
* i386-tdep.c (i386_ymm_type): Set type name to
builtin_type_vec256i.
commit 1eac8800a137cb937257b2d9bce01d943eb68378
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Sep 13 00:00:33 2010 +0000
*** empty log message ***
commit efcb744ec1fabfcde357b03f0e202b7c323c3145
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Sep 13 00:00:05 2010 +0000
daily update
commit 58eb7227e73fcad96dc7ba7359b733bcaab8eb10
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun Sep 12 21:49:40 2010 +0000
2010-09-12 Michael Snyder <msnyder@vmware.com>
* i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
commit b13bd6996bbef8e41187ce35d9e4df3e735104d6
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Sep 12 18:33:15 2010 +0000
Fix typo in comments.
2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
* i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
commit 4931291da074cb6c3fefe875856d6d4df8b2ff9b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Sep 12 00:00:33 2010 +0000
*** empty log message ***
commit a32c9b2b5d7ea3f6e41d5f511c784bd42589e83f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Sep 12 00:00:05 2010 +0000
daily update
commit b7b39aa45195dea276d2452fcae2ccd3f6107345
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Sep 11 19:09:33 2010 +0000
Remove amd64_register_name.
2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
* amd64-tdep.c (amd64_register_name): Removed.
(amd64_init_abi): Don't call set_gdbarch_register_name.
* i386-tdep.c (i386_ymmh_regnum_p): Make it static.
* i386-tdep.h (i386_ymmh_regnum_p): Removed.
commit e5d232941da2c8502b1c9d3541bc40df84ec5132
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Sep 11 16:00:20 2010 +0000
gdb/
Redirect also uiout and stdtarg{,err} in execute_command_to_string.
* cli-logging.c (struct saved_output_files) <targerr>: New.
(set_logging_redirect, pop_output_files, handle_redirections):
Redirect also gdb_stdtargerr.
* defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
declarations.
* event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
also gdb_stdtargerr.
* top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
* tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
* utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
New functions.
gdb/testsuite/
* gdb.python/python.exp (set height 0, collect help from uiout)
(verify help to uiout): New tests.
commit b42ed799fa280967003c0abff633b8c5d9921353
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Sep 11 00:00:05 2010 +0000
daily update
commit eca57139b5a7c4619021c0f0610ecf252721cee8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Sep 11 00:00:03 2010 +0000
*** empty log message ***
commit 63af819489d07814068aa2b1aa60ca728345807e
Author: DJ Delorie <dj@delorie.com>
Date: Fri Sep 10 23:17:28 2010 +0000
merge from gcc
commit 81333092777154d9253a19b8a921438d6947e51b
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Sep 10 22:42:04 2010 +0000
2010-09-10 James Lyon <jameslyon0@googlemail.com>
http://sourceware.org/bugzilla/show_bug.cgi?id=11572
* cp-demangle.c (d_find_pack): Add case for
DEMANGLE_COMPONENT_LAMBDA.
* testsuite/demangle-expected: Add regression test.
commit 4eb54660ebf77c7400240600845a6193c11822ec
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Sep 10 20:29:25 2010 +0000
gdb/testsuite/
* gdb.base/break-interp.exp (test_ld) <istarget powerpc64-*>: Add
is_lp64_target to check 64bit target.
commit f0693f918e2626ad6f0aadec0178a72b6cc1eac5
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Sep 10 16:17:11 2010 +0000
* hppa-tdep.c (unwind_command): Use host_address_to_string function
to display a host address.
* monitor.c (monitor_read_memory): Likewise.
* xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
commit 172fd2400ce2a6e40daf416d344bcd8b97b4467c
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Sep 10 16:12:20 2010 +0000
* coffread.c (struct coff_symbol): Change c_value type from `long' to
`CORE_ADDRESS' as it might contain target addresses.
commit b2147050b6428dfc5d36e198f89fdc370209edf8
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Sep 10 16:04:58 2010 +0000
* alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
before cast to pointer to avoid warning.
commit fae9ee2010239a1bbf1faa12113213c2b3cfc054
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Sep 10 13:00:54 2010 +0000
* src/opcodes/dlx-dis.c (print_insn_dlx): Use dlx_insn type for
dlx_insn_type array.
commit dfba873caef40585f45ed92a91697335fde0b853
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Sep 10 00:00:34 2010 +0000
*** empty log message ***
commit 5ffd042d12b93325b2c6b82b8743a1111c6f8e5b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Sep 10 00:00:05 2010 +0000
daily update
commit 6bf40536020ec51fdb58f03f738f88644ab3fdf4
Author: Kevin Buettner <kevinb@redhat.com>
Date: Thu Sep 9 23:04:46 2010 +0000
* v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
type to be signed.
commit b6c7ffa5df5c5e34d4497dfc1e40483f5afab455
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Sep 9 20:00:48 2010 +0000
gdb/testsuite/
* gdb.base/break-interp.exp (reach): Permit leading . for ppc64.
(test_ld) <powerpc64-*>: New.
commit 78cd501a87590d746bda84811532749d49a67562
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Sep 9 19:22:25 2010 +0000
Don't warn zero LMA adjustment.
bfd/
2010-09-09 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11998
* elf.c (assign_file_positions_for_load_sections): Don't warn
zero LMA adjustment.
ld/testsuite/
2010-09-09 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11998
* ld-scripts/rgn-at5.d: New.
* ld-scripts/rgn-at5.s: Likewise.
* ld-scripts/rgn-at5.t: Likewise.
commit 2af34d77acf96a4cb2951fdda1b9b4864c4ff733
Author: DJ Delorie <dj@delorie.com>
Date: Thu Sep 9 17:39:47 2010 +0000
merge from gcc
commit a1a754aea707cfb6148fdcff3ae78ebeb005006f
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Thu Sep 9 16:42:07 2010 +0000
* dwarf2read.c (fixup_partial_die): Do not set dummy name for
anonymous class partial DIEs.
commit f5be9a8466d0499543f3756e825faf9494497ba6
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Thu Sep 9 13:16:38 2010 +0000
* configure.ac: Add --enable-inprocess-agent option.
* configure: Rebuilt.
commit e522eaf70046621bc29e6b30ccbf203280becc88
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu Sep 9 10:18:12 2010 +0000
* dwarf.h (debug_info): Add offset_info and dwarf_version fields.
* dwarf.c (decode_location_expression): Add offset_size and
dwarf_version arguments. Prefix DIE offset with 0x for
DW_OP_call{2,4,_ref}. Fix up DW_OP_call_ref operand size,
complain if in frame info section. Handle
DW_OP_GNU_implicit_pointer.
(read_and_display_attr_value, display_debug_loc,
display_debug_frames): Adjust decode_location_expression callers.
(process_debug_info): Save offset_size and dwarf_version values
into debug_information array.
* dwarf2.h (DW_OP_GNU_implicit_pointer): New.
commit 53ba8685cc752ac2066ba194125ad2d8939c3cc5
Author: Bernd Schmidt <bernd.schmidt@analog.com>
Date: Thu Sep 9 09:55:00 2010 +0000
* elflink.c (bfd_elf_final_link): Correct calculation of
max_external_reloc_size.
commit 22ad12f7f90df1c90b8280c4e9ffb9ac21dd789f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 9 00:00:33 2010 +0000
*** empty log message ***
commit afe3ce56dd48efa8966e98e0ffa2db2b0427f78e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Sep 9 00:00:04 2010 +0000
daily update
commit 2bdb5783033a1325f694b0c01be7b4caa1f493bf
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Sep 8 23:41:39 2010 +0000
* gdb.cp/templates.exp (test_template_args): Allow "struct".
commit 56354196db007fccf3eed8e9c9403159c55be0e0
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Sep 8 23:34:11 2010 +0000
* dwarf2read.c (dwarf2_compute_name): Check that the first
argument is a pointer.
commit 747f7e9df785f444a167e2752939089b05401bab
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Sep 8 23:14:52 2010 +0000
* dwarf2read.c (read_func_scope, read_structure_type)
(read_common_block): Check for a NULL return from new_symbol.
commit 80edb32c43e8e9654a16ffc3ffd84f1b8e0411dc
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Sep 8 19:49:28 2010 +0000
gdb/
* dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
commit b9bf903b95ab949bd703aea23f84cbd18e7bd2db
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Sep 8 19:09:42 2010 +0000
gdb/
* dwarf2read.c (read_structure_type): Move processing of
fields and member functions from here...
(process_structure_scope): ... to here.
gdb/testsuite/
* gdb.cp/templates.cc (Empty, FunctionArg): New classes.
(FunctionArg::method): New function.
(empty, arg): New variables.
(main): Call arg.method.
* gdb.cp/templates.exp (test_template_args): New function.
(do_tests): Call it.
commit 22c20a83d07c1603b4ee955f6c2a0f3d57bb4fcc
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Sep 8 18:53:33 2010 +0000
* gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
the domain type.
(gnuv3_make_method_ptr): Likewise.
commit 0895467655dce00f8bf0fb6620f50b84fa1b918b
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Sep 8 18:05:39 2010 +0000
* breakpoint.c (create_breakpoint): Add missing _().
commit 0abde5838f2d334c9b49fc7206ad20dcdd1a49de
Author: Doug Evans <dje@google.com>
Date: Wed Sep 8 17:52:48 2010 +0000
* dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
commit 126951c7ed7dc1eef4ce9a24b1515e1c5c1d3d0a
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Wed Sep 8 17:49:53 2010 +0000
* gdb.threads/threxit-hop-specific.exp: Use "continue" instead
of "next" to proceed over pthread_exit call.
commit 4629f9eb136fc5d1f2804c5ff6759e67408c538d
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Wed Sep 8 17:22:26 2010 +0000
* gdb.base/maint.exp: Avoid wildcards against potentially very long
"maint print statistics" output to prevent expect timeouts.
commit a9baaa9fc07d5682a8079889a3d42cd1caa17519
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Sep 8 17:17:41 2010 +0000
Revert:
2010-09-01 Tom Tromey <tromey@redhat.com>
* dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
symtab.h: Revert earlier change.
commit 05b3e3b5f9dffb34f8e6fe18ab082a4da58168ac
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 8 00:00:33 2010 +0000
*** empty log message ***
commit da56528adb0ef748d7e7759ec239b9e1b4673830
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Sep 8 00:00:05 2010 +0000
daily update
commit 7d5da991c5d3790da730efc51ec51d71bcd495a8
Author: DJ Delorie <dj@delorie.com>
Date: Tue Sep 7 19:28:00 2010 +0000
merge from gcc
commit 7d0505f3d58ccee53fafafe6da66a3ed26b82445
Author: swagiaal <swagiaal>
Date: Tue Sep 7 14:59:50 2010 +0000
Fix custom bcache hash regression.
2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
* psymtab.c (add_psymbol_to_bcache): Initialize
obj_section.
memset psymbol.ginfo.value to 0.
commit 6dfd9363589fcd4133fc30cc0b9f2e079b32089f
Author: swagiaal <swagiaal>
Date: Tue Sep 7 14:59:50 2010 +0000
Fix custom bcache hash regression.
2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
* psymtab.c (add_psymbol_to_bcache): Initialize
obj_section.
memset psymbol.ginfo.value to 0.
commit 73db14c7fe07a0f844624b8d1996faed42be0366
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Sep 7 00:00:34 2010 +0000
*** empty log message ***
commit ec14aa826e7db7b536b2d6e82cfa665b181919a2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Sep 7 00:00:04 2010 +0000
daily update
commit 24389a4f7a09961589500df6f35245abe07a8f75
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Sep 6 23:55:09 2010 +0000
* peXXigen.c: Whitespace.
(pe_print_idata): Correct section limit calculations. Tidy array
indexing.
(_bfd_XX_print_ce_compressed_pdata): Don't leak memory.
commit 08bcb2306f779b29b70a9cafa22a484c69b1f856
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Sep 6 15:48:34 2010 +0000
gdb/testsuite/
* gdb.base/printcmds.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
* gdb.java/jv-print.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
* gdb.objc/print.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
* gdb.pascal/print.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
commit 7696d299cfda2989a7f1433a78177e76c790598d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Sep 6 15:46:08 2010 +0000
Sync bootstrap-lto.mk and dfp.m4 with gcc.
commit cc41ac37eb8ed6f04c33ec58106bbfd650aea076
Author: qiyao <qiyao>
Date: Mon Sep 6 15:15:50 2010 +0000
2010-09-06 Yao Qi <yao@codesourcery.com>
* linux-low.c (linux_kill): Remove unused variable.
(linux_stabilize_threads): Likewise.
* server.c (start_inferior): Likewise.
(queue_stop_reply_callback): Likewise.
* tracepoint.c (do_action_at_tracepoint): Likewise.
commit 67c667d0c2f0d08be7fc9b36812c5e7ca250ab49
Author: qiyao <qiyao>
Date: Mon Sep 6 15:10:15 2010 +0000
2010-09-06 Yao Qi <yao@codesourcery.com>
* linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
on return.
commit 9cf83751346a81e36ebcb92135dbd027f8b0b7b5
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Sep 6 14:22:07 2010 +0000
* infrun.c (resume): Extend comment on ignoring single-step
requests on vfork parents waiting for a vfork-done.
commit 4fdce7c6d4d6f6b4dfdbe97316bc78a90ed4b9d4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Sep 6 13:59:00 2010 +0000
gdb/
* corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
is NULL.
* fork-child.c (startup_inferior) <resume_signal>: Use enum
target_signal type.
* linux-nat.c (linux_nat_resume): Use target_signal_to_host before
calling strsignal. Use enum target_signal type for saved_signo.
(linux_handle_extended_wait) <signo>: Use enum target_signal type.
(linux_nat_wait_1): Use enum target_signal type for signo. Use
target_signal_to_host before calling strsignal.
* remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
TARGET_SIGNAL_0.
gdb/gdbserver/
* target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
commit 270ec63e582ad67c85a25643b2ebbe8877cd0ffd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Sep 6 13:34:01 2010 +0000
gdb/
* common/signals.c (ANY): Remove.
(SET): No longer use ANY.
include/gdb/
* signals.def: Replace all ANY uses by SET with specific numbers.
* signals.h (ANY): Remove.
commit 6f8fa8a818f3cc7ca3e31afdef8e6deefce5adea
Author: qiyao <qiyao>
Date: Mon Sep 6 13:10:27 2010 +0000
2010-09-06 Yao Qi <yao@codesourcery.com>
* infrunc(resume): When inferior is waiting_for_vfork_done,
clear step and don't use displaced stepping.
commit 1f292c13c2599afe7bec2ccdb043c68bdd266273
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Sep 6 10:43:58 2010 +0000
* Makefile.in (install-only): Replace $IPA_DEPFILES with
"$(IPA_DEPFILES)".
commit 6b9b9329b3b8fb99fc3f5e28e9f2b183e3ee4152
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Sep 6 00:00:05 2010 +0000
daily update
commit 848579dd6ecd525cdc3fd65c85877053a5c433f1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Sep 6 00:00:03 2010 +0000
*** empty log message ***
commit d08e665b36015ad641b0f2abb9ef4239962a4b4b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Sep 5 00:00:33 2010 +0000
*** empty log message ***
commit 251b6e1a7421a6dc44ab00893d0830c5afdef675
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Sep 5 00:00:05 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 58 ++++
bfd/elf.c | 8 +-
bfd/elf32-spu.c | 20 +-
bfd/elflink.c | 8 +-
bfd/pe-x86_64.c | 6 +-
bfd/peXXigen.c | 143 +++++----
bfd/pei-x86_64.c | 201 +++++++-----
bfd/plugin.c | 25 +-
bfd/version.h | 2 +-
config/ChangeLog | 15 +
config/bootstrap-lto.mk | 4 +-
config/dfp.m4 | 9 +-
gdb/ChangeLog | 236 ++++++++++++++
gdb/MAINTAINERS | 1 +
gdb/Makefile.in | 2 +-
gdb/NEWS | 3 +-
gdb/alpha-mdebug-tdep.c | 2 +-
gdb/amd64-tdep.c | 15 -
gdb/breakpoint.c | 2 +-
gdb/c-exp.y | 1 +
gdb/charset.c | 20 +-
gdb/cli/cli-logging.c | 6 +
gdb/coffread.c | 2 +-
gdb/common/signals.c | 4 +-
gdb/corelow.c | 21 +-
gdb/defs.h | 4 +
gdb/doc/ChangeLog | 10 +
gdb/doc/gdb.texinfo | 7 +-
gdb/dwarf2-frame.h | 4 -
gdb/dwarf2loc.c | 7 +-
gdb/dwarf2read.c | 136 ++++-----
gdb/event-top.c | 2 +
gdb/fork-child.c | 2 +-
gdb/gcore.c | 3 +-
gdb/gdb_wchar.h | 58 +++-
gdb/gdbserver/ChangeLog | 42 +++
gdb/gdbserver/Makefile.in | 2 +-
gdb/gdbserver/configure | 34 ++-
gdb/gdbserver/configure.ac | 28 ++-
gdb/gdbserver/configure.srv | 4 +
gdb/gdbserver/linux-low.c | 8 +-
gdb/gdbserver/lynx-i386-low.c | 319 +++++++++++++++++++
gdb/gdbserver/lynx-low.c | 42 +---
gdb/gdbserver/lynx-ppc-low.c | 2 +-
gdb/gdbserver/server.c | 8 +-
gdb/gdbserver/target.c | 2 +-
gdb/gdbserver/tracepoint.c | 3 -
gdb/gdbtypes.c | 2 +-
gdb/gnu-v3-abi.c | 6 +-
gdb/hppa-tdep.c | 2 +-
gdb/i386-tdep.c | 10 +-
gdb/i386-tdep.h | 1 -
gdb/infrun.c | 28 ++-
gdb/linux-nat.c | 16 +-
gdb/m32r-rom.c | 2 +-
gdb/mi/mi-cmd-stack.c | 54 +++-
gdb/monitor.c | 8 +-
gdb/psympriv.h | 26 ++-
gdb/psymtab.c | 82 +++---
gdb/remote-m32r-sdi.c | 6 +-
gdb/symfile.h | 54 +---
gdb/symtab.c | 167 ++---------
gdb/symtab.h | 4 -
gdb/testsuite/ChangeLog | 87 +++++
gdb/testsuite/gdb.base/break-interp.exp | 15 +-
gdb/testsuite/gdb.base/maint.exp | 18 +-
gdb/testsuite/gdb.base/printcmds.exp | 15 +-
gdb/testsuite/gdb.base/sigall.exp | 4 +-
gdb/testsuite/gdb.cp/koenig.cc | 14 +
gdb/testsuite/gdb.cp/koenig.exp | 11 +
gdb/testsuite/gdb.cp/templates.cc | 32 ++-
gdb/testsuite/gdb.cp/templates.exp | 11 +
gdb/testsuite/gdb.java/jv-print.exp | 17 +-
gdb/testsuite/gdb.mi/dw2-ref-missing-frame-func.c | 54 ++++
gdb/testsuite/gdb.mi/dw2-ref-missing-frame-main.c | 40 +++
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S | 165 ++++++++++
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp | 77 +++++
gdb/testsuite/gdb.objc/print.exp | 17 +-
gdb/testsuite/gdb.pascal/print.exp | 17 +-
gdb/testsuite/gdb.python/python.exp | 6 +
gdb/testsuite/gdb.threads/threxit-hop-specific.exp | 2 +-
gdb/testsuite/gdb.threads/tls.c | 20 +-
gdb/testsuite/gdb.threads/tls.exp | 10 +-
gdb/top.c | 13 +-
gdb/tui/tui-io.c | 2 +
gdb/utils.c | 20 ++
gdb/v850-tdep.c | 2 +-
gdb/value.c | 12 +-
gdb/version.in | 2 +-
gdb/xtensa-tdep.c | 9 +-
include/ChangeLog | 4 +
include/dwarf2.h | 1 +
include/gdb/ChangeLog | 5 +
include/gdb/signals.def | 150 +++++-----
include/gdb/signals.h | 3 -
libdecnumber/ChangeLog | 25 ++
libdecnumber/Makefile.in | 31 +-
libdecnumber/configure | 16 +-
libdecnumber/configure.ac | 3 +
libiberty/ChangeLog | 44 +++
libiberty/Makefile.in | 330 ++++++++++----------
libiberty/configure | 8 +-
libiberty/configure.ac | 8 +-
libiberty/cp-demangle.c | 1 +
libiberty/maint-tool | 4 +-
libiberty/testsuite/demangle-expected | 5 +
opcodes/ChangeLog | 10 +
opcodes/dlx-dis.c | 22 +-
opcodes/mips-opc.c | 5 +
109 files changed, 2385 insertions(+), 991 deletions(-)
create mode 100644 gdb/gdbserver/lynx-i386-low.c
create mode 100644 gdb/testsuite/gdb.mi/dw2-ref-missing-frame-func.c
create mode 100644 gdb/testsuite/gdb.mi/dw2-ref-missing-frame-main.c
create mode 100644 gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S
create mode 100644 gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 26d45ff..2627e77 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,61 @@
+2010-09-16 Alan Modra <amodra@gmail.com>
+
+ * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
+ sections.
+ (spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and
+ set dynobj.
+ (spu_elf_finish_dynamic_sections): New function.
+ (elf_backend_finish_dynamic_sections): Define.
+
+2010-09-16 Alan Modra <amodra@gmail.com>
+
+ * elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
+ * elflink.c (elf_link_input_bfd): Likewise.
+
+2010-09-15 Kai Tietz <kai.tietz@onevision.com>
+
+ * pei-x86_64.c (pex64_get_unwind_info): Reorgnized.
+ (pex64_get_scope_entry): Removed.
+ (find_next_xdata_or_end): New helper.
+ (pex64_dump_xdata): Reworked.
+ (pex64_bfd_print_pdata): Add checking for
+ valid pdata sorting and values. Reworked
+ output.
+
+2010-09-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/12004
+ * plugin.c (bfd_plugin_object_p): Handle NULL iostream.
+
+2010-09-14 Kai Tietz <kai.tietz@onevision.com>
+
+ * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
+ .rdata, .data, and .text partial matched section names.
+ * pei-x86_64.c: Likewise.
+
+ * peXXigen.c (sort_x64_pdata): New helper.
+ (_bfd_XXi_final_link_postscript): Do pdata sorting.
+
+2010-09-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11998
+ * elf.c (assign_file_positions_for_load_sections): Don't warn
+ zero LMA adjustment.
+
+2010-09-09 Bernd Schmidt <bernds@codesourcery.com>
+
+ bfd/
+ * elflink.c (bfd_elf_final_link): Correct calculation of
+ max_external_reloc_size.
+
+2010-09-07 Alan Modra <amodra@gmail.com>
+ Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
+
+ * peXXigen.c: Whitespace.
+ (pe_print_idata): Correct section limit calculations. Tidy array
+ indexing.
+ (_bfd_XX_print_ce_compressed_pdata): Don't leak memory.
+
2010-09-02 Richard Henderson <rth@redhat.com>
* config.bfd (x86_64-*-mingw*): Select 32-bit pei vectors too.
diff --git a/bfd/elf.c b/bfd/elf.c
index c9e9fab..5ec92e9 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2452,8 +2452,7 @@ int
bfd_elf_get_default_section_type (flagword flags)
{
if ((flags & SEC_ALLOC) != 0
- && ((flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0
- || (flags & SEC_NEVER_LOAD) != 0))
+ && (flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0)
return SHT_NOBITS;
return SHT_PROGBITS;
}
@@ -4481,8 +4480,9 @@ assign_file_positions_for_load_sections (bfd *abfd,
bfd_vma s_start = sec->lma;
bfd_vma adjust = s_start - p_end;
- if (s_start < p_end
- || p_end < p_start)
+ if (adjust != 0
+ && (s_start < p_end
+ || p_end < p_start))
{
(*_bfd_error_handler)
(_("%B: section %A lma %#lx adjusted to %#lx"), abfd, sec,
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index 8615e46..b1ea43c 100644
--- a/bfd/elf32-spu.c
+++ b/bfd/elf32-spu.c
@@ -602,9 +602,12 @@ spu_elf_create_sections (struct bfd_link_info *info)
{
asection *s;
flagword flags;
- ibfd = info->input_bfds;
- flags = SEC_LOAD | SEC_ALLOC | SEC_READONLY | SEC_HAS_CONTENTS
- | SEC_IN_MEMORY;
+
+ if (htab->elf.dynobj == NULL)
+ htab->elf.dynobj = ibfd;
+ ibfd = htab->elf.dynobj;
+ flags = (SEC_LOAD | SEC_ALLOC | SEC_READONLY | SEC_HAS_CONTENTS
+ | SEC_IN_MEMORY | SEC_LINKER_CREATED);
s = bfd_make_section_anyway_with_flags (ibfd, ".fixup", flags);
if (s == NULL || !bfd_set_section_alignment (ibfd, s, 2))
return FALSE;
@@ -5096,6 +5099,13 @@ spu_elf_relocate_section (bfd *output_bfd,
return ret;
}
+static bfd_boolean
+spu_elf_finish_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
+ struct bfd_link_info *info ATTRIBUTE_UNUSED)
+{
+ return TRUE;
+}
+
/* Adjust _SPUEAR_ syms to point at their overlay stubs. */
static int
@@ -5402,7 +5412,8 @@ spu_elf_size_sections (bfd * output_bfd, struct bfd_link_info *info)
/* If there aren't any relocs, then there's nothing more
to do. */
- if ((isec->flags & SEC_RELOC) == 0
+ if ((isec->flags & SEC_ALLOC) == 0
+ || (isec->flags & SEC_RELOC) == 0
|| isec->reloc_count == 0)
continue;
@@ -5457,6 +5468,7 @@ spu_elf_size_sections (bfd * output_bfd, struct bfd_link_info *info)
#define elf_info_to_howto spu_elf_info_to_howto
#define elf_backend_count_relocs spu_elf_count_relocs
#define elf_backend_relocate_section spu_elf_relocate_section
+#define elf_backend_finish_dynamic_sections spu_elf_finish_dynamic_sections
#define elf_backend_symbol_processing spu_elf_backend_symbol_processing
#define elf_backend_link_output_symbol_hook spu_elf_output_symbol_hook
#define elf_backend_object_p spu_elf_object_p
diff --git a/bfd/elflink.c b/bfd/elflink.c
index dd48c74..4351e28 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -2829,7 +2829,7 @@ _bfd_elf_dynamic_symbol_p (struct elf_link_hash_entry *h,
/* Return true if the symbol referred to by H should be considered
to resolve local to the current module, and false otherwise. Differs
from (the inverse of) _bfd_elf_dynamic_symbol_p in the treatment of
- undefined symbols. The two functions are vitually identical except
+ undefined symbols. The two functions are virtually identical except
for the place where forced_local and dynindx == -1 are tested. If
either of those tests are true, _bfd_elf_dynamic_symbol_p will say
the symbol is local, while _bfd_elf_symbol_refs_local_p will say
@@ -9843,7 +9843,6 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
{
/* FIXME: octets_per_byte. */
if (! (o->flags & SEC_EXCLUDE)
- && ! (o->output_section->flags & SEC_NEVER_LOAD)
&& ! bfd_set_section_contents (output_bfd, o->output_section,
contents,
(file_ptr) o->output_offset,
@@ -10360,7 +10359,10 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
{
size_t ext_size;
- ext_size = elf_section_data (sec)->rel_hdr.sh_size;
+ ext_size = esdi->rel_hdr.sh_size;
+ if (esdi->rel_hdr2 != NULL)
+ ext_size += esdi->rel_hdr2->sh_size;
+
if (ext_size > max_external_reloc_size)
max_external_reloc_size = ext_size;
if (sec->reloc_count > max_internal_reloc_count)
diff --git a/bfd/pe-x86_64.c b/bfd/pe-x86_64.c
index 76fc7c7..b739cc4 100644
--- a/bfd/pe-x86_64.c
+++ b/bfd/pe-x86_64.c
@@ -40,11 +40,11 @@
#define COFF_SECTION_ALIGNMENT_ENTRIES \
{ COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".data"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".data"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".rdata"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".text"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".text"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
{ COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index d023dc8..8f351ba 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -550,7 +550,7 @@ _bfd_XXi_swap_aouthdr_out (bfd * abfd, void * in, void * out)
PEAOUTHDR *aouthdr_out = (PEAOUTHDR *) out;
bfd_vma sa, fa, ib;
IMAGE_DATA_DIRECTORY idata2, idata5, tls;
-
+
sa = extra->SectionAlignment;
fa = extra->FileAlignment;
ib = extra->ImageBase;
@@ -558,7 +558,7 @@ _bfd_XXi_swap_aouthdr_out (bfd * abfd, void * in, void * out)
idata2 = pe->pe_opthdr.DataDirectory[PE_IMPORT_TABLE];
idata5 = pe->pe_opthdr.DataDirectory[PE_IMPORT_ADDRESS_TABLE];
tls = pe->pe_opthdr.DataDirectory[PE_TLS_TABLE];
-
+
if (aouthdr_in->tsize)
{
aouthdr_in->text_start -= ib;
@@ -615,7 +615,7 @@ _bfd_XXi_swap_aouthdr_out (bfd * abfd, void * in, void * out)
/* Until other .idata fixes are made (pending patch), the entry for
.idata is needed for backwards compatibility. FIXME. */
add_data_entry (abfd, extra, 1, ".idata", ib);
-
+
/* For some reason, the virtual size (which is what's set by
add_data_entry) for .reloc is not the same as the size recorded
in this slot by MSVC; it doesn't seem to cause problems (so far),
@@ -926,7 +926,7 @@ _bfd_XXi_swap_scnhdr_out (bfd * abfd, void * in, void * out)
(0x02000000). Also, the resource data should also be read and
writable. */
- /* FIXME: Alignment is also encoded in this field, at least on PPC and
+ /* FIXME: Alignment is also encoded in this field, at least on PPC and
ARM-WINCE. Although - how do we get the original alignment field
back ? */
@@ -936,7 +936,7 @@ _bfd_XXi_swap_scnhdr_out (bfd * abfd, void * in, void * out)
unsigned long must_have;
}
pe_required_section_flags;
-
+
pe_required_section_flags known_sections [] =
{
{ ".arch", IMAGE_SCN_MEM_READ | IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_MEM_DISCARDABLE | IMAGE_SCN_ALIGN_8BYTES },
@@ -1110,7 +1110,6 @@ pe_print_idata (bfd * abfd, void * vfile)
section->name, (unsigned long) addr);
dataoff = addr - section->vma;
- datasize -= dataoff;
#ifdef POWERPC_LE_PE
if (rel_section != 0 && rel_section->size != 0)
@@ -1183,7 +1182,7 @@ pe_print_idata (bfd * abfd, void * vfile)
adj = section->vma - extra->ImageBase;
/* Print all image import descriptors. */
- for (i = 0; i < datasize; i += onaline)
+ for (i = dataoff; i + onaline <= datasize; i += onaline)
{
bfd_vma hint_addr;
bfd_vma time_stamp;
@@ -1195,12 +1194,12 @@ pe_print_idata (bfd * abfd, void * vfile)
char *dll;
/* Print (i + extra->DataDirectory[PE_IMPORT_TABLE].VirtualAddress). */
- fprintf (file, " %08lx\t", (unsigned long) (i + adj + dataoff));
- hint_addr = bfd_get_32 (abfd, data + i + dataoff);
- time_stamp = bfd_get_32 (abfd, data + i + 4 + dataoff);
- forward_chain = bfd_get_32 (abfd, data + i + 8 + dataoff);
- dll_name = bfd_get_32 (abfd, data + i + 12 + dataoff);
- first_thunk = bfd_get_32 (abfd, data + i + 16 + dataoff);
+ fprintf (file, " %08lx\t", (unsigned long) (i + adj));
+ hint_addr = bfd_get_32 (abfd, data + i);
+ time_stamp = bfd_get_32 (abfd, data + i + 4);
+ forward_chain = bfd_get_32 (abfd, data + i + 8);
+ dll_name = bfd_get_32 (abfd, data + i + 12);
+ first_thunk = bfd_get_32 (abfd, data + i + 16);
fprintf (file, "%08lx %08lx %08lx %08lx %08lx\n",
(unsigned long) hint_addr,
@@ -1225,16 +1224,17 @@ pe_print_idata (bfd * abfd, void * vfile)
bfd_vma ft_addr;
bfd_size_type ft_datasize;
int ft_idx;
- int ft_allocated = 0;
+ int ft_allocated;
fprintf (file, _("\tvma: Hint/Ord Member-Name Bound-To\n"));
idx = hint_addr - adj;
-
+
ft_addr = first_thunk + extra->ImageBase;
- ft_data = data;
ft_idx = first_thunk - adj;
- ft_allocated = 0;
+ ft_data = data + ft_idx;
+ ft_datasize = datasize - ft_idx;
+ ft_allocated = 0;
if (first_thunk != hint_addr)
{
@@ -1243,9 +1243,8 @@ pe_print_idata (bfd * abfd, void * vfile)
ft_section != NULL;
ft_section = ft_section->next)
{
- ft_datasize = ft_section->size;
if (ft_addr >= ft_section->vma
- && ft_addr < ft_section->vma + ft_datasize)
+ && ft_addr < ft_section->vma + ft_section->size)
break;
}
@@ -1258,34 +1257,28 @@ pe_print_idata (bfd * abfd, void * vfile)
/* Now check to see if this section is the same as our current
section. If it is not then we will have to load its data in. */
- if (ft_section == section)
- {
- ft_data = data;
- ft_idx = first_thunk - adj;
- }
- else
+ if (ft_section != section)
{
ft_idx = first_thunk - (ft_section->vma - extra->ImageBase);
- ft_data = (bfd_byte *) bfd_malloc (datasize);
+ ft_datasize = ft_section->size - ft_idx;
+ ft_data = (bfd_byte *) bfd_malloc (ft_datasize);
if (ft_data == NULL)
continue;
- /* Read datasize bfd_bytes starting at offset ft_idx. */
- if (! bfd_get_section_contents
- (abfd, ft_section, ft_data, (bfd_vma) ft_idx, datasize))
+ /* Read ft_datasize bytes starting at offset ft_idx. */
+ if (!bfd_get_section_contents (abfd, ft_section, ft_data,
+ (bfd_vma) ft_idx, ft_datasize))
{
free (ft_data);
continue;
}
-
- ft_idx = 0;
ft_allocated = 1;
}
}
/* Print HintName vector entries. */
#ifdef COFF_WITH_pex64
- for (j = 0; j < datasize; j += 8)
+ for (j = 0; idx + j + 8 <= datasize; j += 8)
{
unsigned long member = bfd_get_32 (abfd, data + idx + j);
unsigned long member_high = bfd_get_32 (abfd, data + idx + j + 4);
@@ -1310,17 +1303,18 @@ pe_print_idata (bfd * abfd, void * vfile)
table holds actual addresses. */
if (time_stamp != 0
&& first_thunk != 0
- && first_thunk != hint_addr)
+ && first_thunk != hint_addr
+ && j + 4 <= ft_datasize)
fprintf (file, "\t%04lx",
- (unsigned long) bfd_get_32 (abfd, ft_data + ft_idx + j));
+ (unsigned long) bfd_get_32 (abfd, ft_data + j));
fprintf (file, "\n");
}
#else
- for (j = 0; j < datasize; j += 4)
+ for (j = 0; idx + j + 4 <= datasize; j += 4)
{
unsigned long member = bfd_get_32 (abfd, data + idx + j);
- /* Print single IMAGE_IMPORT_BY_NAME vector. */
+ /* Print single IMAGE_IMPORT_BY_NAME vector. */
if (member == 0)
break;
@@ -1342,9 +1336,10 @@ pe_print_idata (bfd * abfd, void * vfile)
table holds actual addresses. */
if (time_stamp != 0
&& first_thunk != 0
- && first_thunk != hint_addr)
+ && first_thunk != hint_addr
+ && j + 4 <= ft_datasize)
fprintf (file, "\t%04lx",
- (unsigned long) bfd_get_32 (abfd, ft_data + ft_idx + j));
+ (unsigned long) bfd_get_32 (abfd, ft_data + j));
fprintf (file, "\n");
}
@@ -1583,7 +1578,7 @@ pe_print_edata (bfd * abfd, void * vfile)
/* This really is architecture dependent. On IA-64, a .pdata entry
consists of three dwords containing relative virtual addresses that
specify the start and end address of the code range the entry
- covers and the address of the corresponding unwind info data.
+ covers and the address of the corresponding unwind info data.
On ARM and SH-4, a compressed PDATA structure is used :
_IMAGE_CE_RUNTIME_FUNCTION_ENTRY, whereas MIPS is documented to use
@@ -1828,7 +1823,6 @@ _bfd_XX_print_ce_compressed_pdata (bfd * abfd, void * vfile)
bfd_vma other_data;
bfd_vma prolog_length, function_length;
int flag32bit, exception_flag;
- bfd_byte *tdata = 0;
asection *tsection;
if (i + PDATA_ROW_SIZE > stop)
@@ -1860,12 +1854,13 @@ _bfd_XX_print_ce_compressed_pdata (bfd * abfd, void * vfile)
if (tsection && coff_section_data (abfd, tsection)
&& pei_section_data (abfd, tsection))
{
- if (bfd_malloc_and_get_section (abfd, tsection, & tdata))
- {
- int xx = (begin_addr - 8) - tsection->vma;
+ bfd_vma eh_off = (begin_addr - 8) - tsection->vma;
+ bfd_byte *tdata;
- tdata = (bfd_byte *) bfd_malloc (8);
- if (bfd_get_section_contents (abfd, tsection, tdata, (bfd_vma) xx, 8))
+ tdata = (bfd_byte *) bfd_malloc (8);
+ if (tdata)
+ {
+ if (bfd_get_section_contents (abfd, tsection, tdata, eh_off, 8))
{
bfd_vma eh, eh_data;
@@ -1883,11 +1878,6 @@ _bfd_XX_print_ce_compressed_pdata (bfd * abfd, void * vfile)
}
free (tdata);
}
- else
- {
- if (tdata)
- free (tdata);
- }
}
fprintf (file, "\n");
@@ -2194,7 +2184,7 @@ _bfd_XX_bfd_copy_private_bfd_data_common (bfd * ibfd, bfd * obfd)
ipe = pe_data (ibfd);
ope = pe_data (obfd);
-
+
/* pe_opthdr is copied in copy_object. */
ope->dll = ipe->dll;
@@ -2266,6 +2256,21 @@ _bfd_XX_get_symbol_info (bfd * abfd, asymbol *symbol, symbol_info *ret)
coff_get_symbol_info (abfd, symbol, ret);
}
+#if !defined(COFF_WITH_pep) && defined(COFF_WITH_pex64)
+static int
+sort_x64_pdata (const void *l, const void *r)
+{
+ const char *lp = (const char *) l;
+ const char *rp = (const char *) r;
+ bfd_vma vl, vr;
+ vl = bfd_getl32 (lp); vr = bfd_getl32 (rp);
+ if (vl != vr)
+ return (vl < vr ? -1 : 1);
+ /* We compare just begin address. */
+ return 0;
+}
+#endif
+
/* Handle the .idata section and other things that need symbol table
access. */
@@ -2288,7 +2293,7 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo)
".idata$2", FALSE, FALSE, TRUE);
if (h1 != NULL)
{
- /* PR ld/2729: We cannot rely upon all the output sections having been
+ /* PR ld/2729: We cannot rely upon all the output sections having been
created properly, so check before referencing them. Issue a warning
message for any sections tht could not be found. */
if ((h1->root.type == bfd_link_hash_defined
@@ -2302,7 +2307,7 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo)
else
{
_bfd_error_handler
- (_("%B: unable to fill in DataDictionary[1] because .idata$2 is missing"),
+ (_("%B: unable to fill in DataDictionary[1] because .idata$2 is missing"),
abfd);
result = FALSE;
}
@@ -2322,7 +2327,7 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo)
else
{
_bfd_error_handler
- (_("%B: unable to fill in DataDictionary[1] because .idata$4 is missing"),
+ (_("%B: unable to fill in DataDictionary[1] because .idata$4 is missing"),
abfd);
result = FALSE;
}
@@ -2343,7 +2348,7 @@ _bfd_XXi_final_link_postscript (bfd * abfd, struct coff_final_link_info *pfinfo)
else
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-09-04 19:59 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-09-04 19:59 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 61f0884b46ba2d3f8775995ec5433328a6d2e5cd (commit)
via 2ccd65e25123e680eea9e47a645e2b6d2fa50c79 (commit)
via 8fc361860682f78b8c1342b84c0f3920b6a26c81 (commit)
via c4b8673aa65273a6308f68e7ab43865d71832488 (commit)
via a31d2450deff59c1a13a5e75fb83c3cde5fa8ad0 (commit)
via 4dd6838b3744148a9f02e8f501247833cf972738 (commit)
via 058124e05ac6c31ad258e30ef0e7cea23b39c2e5 (commit)
from 9ab6c083f5f3d8b2c2bc6239bac45a3944283d04 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 61f0884b46ba2d3f8775995ec5433328a6d2e5cd
Merge: 9ab6c08 2ccd65e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Sep 4 21:58:54 2010 +0200
Merge remote branch 'gdb/master'
commit 2ccd65e25123e680eea9e47a645e2b6d2fa50c79
Author: Daniel Jacobowitz <dan@debian.org>
Date: Sat Sep 4 15:30:00 2010 +0000
* breakpoint.c (can_use_hardware_watchpoint): Handle the first
value specially.
testsuite/
* gdb.base/watchpoint.exp: Call test_inaccessible_watchpoint
before disabling hardware watchpoints.
(test_inaccessible_watchpoint): Check that hardware watchpoints
are used. Test for watchpoints on a constant address.
commit 8fc361860682f78b8c1342b84c0f3920b6a26c81
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Sep 4 14:27:43 2010 +0000
gdb/
Code cleanup - split print_stop_reason.
* infrun.c (enum inferior_stop_reason): Remove.
(print_stop_reason): Remove by splitting into ...
(print_exited_reason, print_signal_exited_reason)
(print_no_history_reason, print_signal_received_reason)
(print_end_stepping_range_reason): ... these new functions. Update
the preceding comment.
(handle_inferior_event): Change the calls to print_exited_reason,
print_signal_exited_reason, print_no_history_reason,
print_signal_received_reason, print_end_stepping_range_reason.
(handle_step_into_function, handle_step_into_function_backward):
Change the calls to print_end_stepping_range_reason.
commit c4b8673aa65273a6308f68e7ab43865d71832488
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Sep 4 00:00:33 2010 +0000
*** empty log message ***
commit a31d2450deff59c1a13a5e75fb83c3cde5fa8ad0
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Sep 4 00:00:05 2010 +0000
daily update
commit 4dd6838b3744148a9f02e8f501247833cf972738
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Sep 3 15:41:59 2010 +0000
gdb/
* breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
* cli-out.c: Include vec.h.
(cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
variable stream, initialize it, use it.
(cli_redirect): New function comment. Replace the stream and
original_stream fields by the new streams field. Remove the
original_stream != NULL conditional, assert error on NULL instead.
(out_field_fmt, field_separator): New variable stream, initialize it, use it.
(cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
original_stream fields by the new streams field.
(cli_out_set_stream): Replace the stream field by the new streams
field.
* cli-out.h: Include vec.h.
(ui_filep): New typedef, call DEF_VEC_P for it.
(struct cli_ui_out_data): Replace the stream and original_stream
fields by the new streams field.
* cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
NULL first. Extend the comment.
(handle_redirections): Call ui_out_redirect with output.
* python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
calls outside of the TRY_CATCH block.
gdb/testsuite/
* gdb.base/ui-redirect.exp: New file.
commit 058124e05ac6c31ad258e30ef0e7cea23b39c2e5
Author: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Date: Fri Sep 3 13:30:58 2010 +0000
libdecnumber/
2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
* Makefile.in: Add aclocal.m4 dependency to dfp.m4.
* configure: Regenerate.
* aclocal.m4: Regenerate.
config/
2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* dfp.m4: New file.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
config/ChangeLog | 4 +
config/dfp.m4 | 53 +++++++
gdb/ChangeLog | 44 ++++++
gdb/breakpoint.c | 12 +-
gdb/cli-out.c | 60 +++++---
gdb/cli-out.h | 9 +-
gdb/cli/cli-logging.c | 11 +-
gdb/infrun.c | 257 ++++++++++++++++----------------
gdb/python/py-breakpoint.c | 4 +-
gdb/testsuite/ChangeLog | 11 ++
gdb/testsuite/gdb.base/ui-redirect.exp | 41 +++++
gdb/testsuite/gdb.base/watchpoint.exp | 27 +++-
gdb/version.in | 2 +-
libdecnumber/ChangeLog | 7 +
libdecnumber/Makefile.in | 1 +
libdecnumber/aclocal.m4 | 1 +
libdecnumber/configure | 38 +++--
libdecnumber/configure.ac | 38 +-----
19 files changed, 406 insertions(+), 216 deletions(-)
create mode 100644 config/dfp.m4
create mode 100644 gdb/testsuite/gdb.base/ui-redirect.exp
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index d722d8e..df375d0 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100903
+#define BFD_VERSION_DATE 20100904
#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/config/ChangeLog b/config/ChangeLog
index 22a3641..af06955 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
+
+ * dfp.m4: New file.
+
2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR target/45084
diff --git a/config/dfp.m4 b/config/dfp.m4
new file mode 100644
index 0000000..4cace76
--- /dev/null
+++ b/config/dfp.m4
@@ -0,0 +1,53 @@
+dnl @synopsis GCC_AC_ENABLE_DECIMAL_FLOAT([target triplet])
+dnl
+dnl Enable C extension for decimal float if target supports it.
+dnl
+dnl @author Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
+
+AC_DEFUN([GCC_AC_ENABLE_DECIMAL_FLOAT],
+[
+AC_ARG_ENABLE(decimal-float,
+[ --enable-decimal-float={no,yes,bid,dpd}
+ enable decimal float extension to C. Selecting 'bid'
+ or 'dpd' choses which decimal floating point format
+ to use],
+[
+ case $enable_decimal_float in
+ yes | no | bid | dpd) ;;
+ *) AC_MSG_ERROR(['$enable_decimal_float' is an invalid value for --enable-decimal-float.
+Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
+ esac
+],
+[
+ case $1 in
+ powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux*)
+ enable_decimal_float=yes
+ ;;
+ *)
+ AC_MSG_WARN(decimal float is not supported for this target, ignored)
+ enable_decimal_float=no
+ ;;
+ esac
+])
+
+# x86's use BID format instead of DPD
+case x$enable_decimal_float in
+ xyes)
+ case $1 in
+ i?86*-*-* | x86_64*-*-*)
+ enable_decimal_float=bid
+ ;;
+ *)
+ enable_decimal_float=dpd
+ ;;
+ esac
+ ;;
+ xno)
+ # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
+ # dependency on libdecnumber.
+ enable_decimal_float=dpd
+ ;;
+esac
+AC_SUBST(enable_decimal_float)
+
+])
\ No newline at end of file
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1650031..f569efa 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,47 @@
+2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * breakpoint.c (can_use_hardware_watchpoint): Handle the first
+ value specially.
+
+2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup - split print_stop_reason.
+ * infrun.c (enum inferior_stop_reason): Remove.
+ (print_stop_reason): Remove by splitting into ...
+ (print_exited_reason, print_signal_exited_reason)
+ (print_no_history_reason, print_signal_received_reason)
+ (print_end_stepping_range_reason): ... these new functions. Update
+ the preceding comment.
+ (handle_inferior_event): Change the calls to print_exited_reason,
+ print_signal_exited_reason, print_no_history_reason,
+ print_signal_received_reason, print_end_stepping_range_reason.
+ (handle_step_into_function, handle_step_into_function_backward):
+ Change the calls to print_end_stepping_range_reason.
+
+2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
+ * cli-out.c: Include vec.h.
+ (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
+ variable stream, initialize it, use it.
+ (cli_redirect): New function comment. Replace the stream and
+ original_stream fields by the new streams field. Remove the
+ original_stream != NULL conditional, assert error on NULL instead.
+ (out_field_fmt, field_separator): New variable stream, initialize it, use it.
+ (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
+ original_stream fields by the new streams field.
+ (cli_out_set_stream): Replace the stream field by the new streams
+ field.
+ * cli-out.h: Include vec.h.
+ (ui_filep): New typedef, call DEF_VEC_P for it.
+ (struct cli_ui_out_data): Replace the stream and original_stream
+ fields by the new streams field.
+ * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
+ NULL first. Extend the comment.
+ (handle_redirections): Call ui_out_redirect with output.
+ * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
+ calls outside of the TRY_CATCH block.
+
2010-09-03 Joel Brobecker <brobecker@adacore.com>
GDB 7.2 released.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index a034d6a..1d3f7fc 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -8327,10 +8327,12 @@ can_use_hardware_watchpoint (struct value *v)
{
if (VALUE_LVAL (v) == lval_memory)
{
- if (value_lazy (v))
- /* A lazy memory lvalue is one that GDB never needed to fetch;
- we either just used its address (e.g., `a' in `a.b') or
- we never needed it at all (e.g., `a' in `a,b'). */
+ if (v != head && value_lazy (v))
+ /* A lazy memory lvalue in the chain is one that GDB never
+ needed to fetch; we either just used its address (e.g.,
+ `a' in `a.b') or we never needed it at all (e.g., `a'
+ in `a,b'). This doesn't apply to HEAD; if that is
+ lazy then it was not readable, but watch it anyway. */
;
else
{
@@ -11487,7 +11489,7 @@ save_breakpoints (char *filename, int from_tty,
fprintf_unfiltered (fp, " commands\n");
ui_out_redirect (uiout, fp);
- TRY_CATCH (ex, RETURN_MASK_ERROR)
+ TRY_CATCH (ex, RETURN_MASK_ALL)
{
print_command_lines (uiout, tp->commands->commands, 2);
}
diff --git a/gdb/cli-out.c b/gdb/cli-out.c
index de0559f..7867311 100644
--- a/gdb/cli-out.c
+++ b/gdb/cli-out.c
@@ -26,6 +26,7 @@
#include "cli-out.h"
#include "gdb_string.h"
#include "gdb_assert.h"
+#include "vec.h"
typedef struct cli_ui_out_data cli_out_data;
@@ -224,11 +225,13 @@ cli_field_fmt (struct ui_out *uiout, int fldno,
va_list args)
{
cli_out_data *data = ui_out_data (uiout);
+ struct ui_file *stream;
if (data->suppress_output)
return;
- vfprintf_filtered (data->stream, format, args);
+ stream = VEC_last (ui_filep, data->streams);
+ vfprintf_filtered (stream, format, args);
if (align != ui_noalign)
field_separator ();
@@ -238,20 +241,26 @@ static void
cli_spaces (struct ui_out *uiout, int numspaces)
{
cli_out_data *data = ui_out_data (uiout);
+ struct ui_file *stream;
if (data->suppress_output)
return;
- print_spaces_filtered (numspaces, data->stream);
+
+ stream = VEC_last (ui_filep, data->streams);
+ print_spaces_filtered (numspaces, stream);
}
static void
cli_text (struct ui_out *uiout, const char *string)
{
cli_out_data *data = ui_out_data (uiout);
+ struct ui_file *stream;
if (data->suppress_output)
return;
- fputs_filtered (string, data->stream);
+
+ stream = VEC_last (ui_filep, data->streams);
+ fputs_filtered (string, stream);
}
static void ATTRIBUTE_PRINTF (3, 0)
@@ -262,8 +271,13 @@ cli_message (struct ui_out *uiout, int verbosity,
if (data->suppress_output)
return;
+
if (ui_out_get_verblvl (uiout) >= verbosity)
- vfprintf_unfiltered (data->stream, format, args);
+ {
+ struct ui_file *stream = VEC_last (ui_filep, data->streams);
+
+ vfprintf_unfiltered (stream, format, args);
+ }
}
static void
@@ -280,25 +294,24 @@ static void
cli_flush (struct ui_out *uiout)
{
cli_out_data *data = ui_out_data (uiout);
+ struct ui_file *stream = VEC_last (ui_filep, data->streams);
- gdb_flush (data->stream);
+ gdb_flush (stream);
}
+/* OUTSTREAM as non-NULL will push OUTSTREAM on the stack of output streams
+ and make it therefore active. OUTSTREAM as NULL will pop the last pushed
+ output stream; it is an internal error if it does not exist. */
+
static int
cli_redirect (struct ui_out *uiout, struct ui_file *outstream)
{
cli_out_data *data = ui_out_data (uiout);
if (outstream != NULL)
- {
- data->original_stream = data->stream;
- data->stream = outstream;
- }
- else if (data->original_stream != NULL)
- {
- data->stream = data->original_stream;
- data->original_stream = NULL;
- }
+ VEC_safe_push (ui_filep, data->streams, outstream);
+ else
+ VEC_pop (ui_filep, data->streams);
return 0;
}
@@ -315,10 +328,11 @@ out_field_fmt (struct ui_out *uiout, int fldno,
const char *format,...)
{
cli_out_data *data = ui_out_data (uiout);
+ struct ui_file *stream = VEC_last (ui_filep, data->streams);
va_list args;
va_start (args, format);
- vfprintf_filtered (data->stream, format, args);
+ vfprintf_filtered (stream, format, args);
va_end (args);
}
@@ -329,8 +343,9 @@ static void
field_separator (void)
{
cli_out_data *data = ui_out_data (uiout);
+ struct ui_file *stream = VEC_last (ui_filep, data->streams);
- fputc_filtered (' ', data->stream);
+ fputc_filtered (' ', stream);
}
/* This is the CLI ui-out implementation functions vector */
@@ -364,8 +379,11 @@ struct ui_out_impl cli_ui_out_impl =
void
cli_out_data_ctor (cli_out_data *self, struct ui_file *stream)
{
- self->stream = stream;
- self->original_stream = NULL;
+ gdb_assert (stream != NULL);
+
+ self->streams = NULL;
+ VEC_safe_push (ui_filep, self->streams, stream);
+
self->suppress_output = 0;
}
@@ -385,8 +403,10 @@ struct ui_file *
cli_out_set_stream (struct ui_out *uiout, struct ui_file *stream)
{
cli_out_data *data = ui_out_data (uiout);
- struct ui_file *old = data->stream;
+ struct ui_file *old;
+
+ old = VEC_pop (ui_filep, data->streams);
+ VEC_quick_push (ui_filep, data->streams, stream);
- data->stream = stream;
return old;
}
diff --git a/gdb/cli-out.h b/gdb/cli-out.h
index b4cdd82..75875c4 100644
--- a/gdb/cli-out.h
+++ b/gdb/cli-out.h
@@ -22,14 +22,19 @@
#define CLI_OUT_H
#include "ui-out.h"
+#include "vec.h"
+
+/* Used for cli_ui_out_data->streams. */
+
+typedef struct ui_file *ui_filep;
+DEF_VEC_P (ui_filep);
/* These are exported so that they can be extended by other `ui_out'
implementations, like TUI's. */
struct cli_ui_out_data
{
- struct ui_file *stream;
- struct ui_file *original_stream;
+ VEC (ui_filep) *streams;
int suppress_output;
};
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index aa53523..fc486d3 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -118,8 +118,13 @@ set_logging_redirect (char *args, int from_tty, struct cmd_list_element *c)
gdb_stdtarg = output;
logging_no_redirect_file = new_logging_no_redirect_file;
- /* It should not happen, the redirection has been already setup. */
- if (ui_out_redirect (uiout, output) < 0)
+ /* There is a former output pushed on the ui_out_redirect stack. We want to
+ replace it by OUTPUT so we must pop the former value first. We should
+ either do both the pop and push or to do neither of it. At least do not
+ try to push OUTPUT if the pop already failed. */
+
+ if (ui_out_redirect (uiout, NULL) < 0
+ || ui_out_redirect (uiout, output) < 0)
warning (_("Current output protocol does not support redirection"));
if (logging_redirect != 0)
@@ -212,7 +217,7 @@ handle_redirections (int from_tty)
gdb_stdlog = output;
gdb_stdtarg = output;
- if (ui_out_redirect (uiout, gdb_stdout) < 0)
+ if (ui_out_redirect (uiout, output) < 0)
warning (_("Current output protocol does not support redirection"));
}
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 8b1f82a..0315446 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -83,6 +83,16 @@ static void xdb_handle_command (char *args, int from_tty);
static int prepare_to_proceed (int);
+static void print_exited_reason (int exitstatus);
+
+static void print_signal_exited_reason (enum target_signal siggnal);
+
+static void print_no_history_reason (void);
+
+static void print_signal_received_reason (enum target_signal siggnal);
+
+static void print_end_stepping_range_reason (void);
+
void _initialize_infrun (void);
void nullify_last_target_wait_ptid (void);
@@ -2139,22 +2149,6 @@ enum infwait_states
infwait_nonstep_watch_state
};
-/* Why did the inferior stop? Used to print the appropriate messages
- to the interface from within handle_inferior_event(). */
-enum inferior_stop_reason
-{
- /* Step, next, nexti, stepi finished. */
- END_STEPPING_RANGE,
- /* Inferior terminated by signal. */
- SIGNAL_EXITED,
- /* Inferior exited. */
- EXITED,
- /* Inferior received signal, and user asked to be notified. */
- SIGNAL_RECEIVED,
- /* Reverse execution -- target ran out of history info. */
- NO_HISTORY
-};
-
/* The PTID we'll do a target_wait on.*/
ptid_t waiton_ptid;
@@ -2195,8 +2189,6 @@ static void insert_longjmp_resume_breakpoint (struct gdbarch *, CORE_ADDR);
static void stop_stepping (struct execution_control_state *ecs);
static void prepare_to_wait (struct execution_control_state *ecs);
static void keep_going (struct execution_control_state *ecs);
-static void print_stop_reason (enum inferior_stop_reason stop_reason,
- int stop_info);
/* Callback for iterate over threads. If the thread is stopped, but
the user/frontend doesn't know about that yet, go through
@@ -3157,7 +3149,7 @@ handle_inferior_event (struct execution_control_state *ecs)
set_current_program_space (current_inferior ()->pspace);
handle_vfork_child_exec_or_exit (0);
target_terminal_ours (); /* Must do this before mourn anyway */
- print_stop_reason (EXITED, ecs->ws.value.integer);
+ print_exited_reason (ecs->ws.value.integer);
/* Record the exit code in the convenience variable $_exitcode, so
that the user can inspect this again later. */
@@ -3188,7 +3180,7 @@ handle_inferior_event (struct execution_control_state *ecs)
may be needed. */
target_mourn_inferior ();
- print_stop_reason (SIGNAL_EXITED, ecs->ws.value.sig);
+ print_signal_exited_reason (ecs->ws.value.sig);
singlestep_breakpoints_inserted_p = 0;
cancel_single_step_breakpoints ();
stop_stepping (ecs);
@@ -3388,7 +3380,7 @@ handle_inferior_event (struct execution_control_state *ecs)
case TARGET_WAITKIND_NO_HISTORY:
/* Reverse execution: target ran out of history info. */
stop_pc = regcache_read_pc (get_thread_regcache (ecs->ptid));
- print_stop_reason (NO_HISTORY, 0);
+ print_no_history_reason ();
stop_stepping (ecs);
return;
}
@@ -3962,7 +3954,7 @@ process_event_stop_test:
{
printed = 1;
target_terminal_ours_for_output ();
- print_stop_reason (SIGNAL_RECEIVED, ecs->event_thread->stop_signal);
+ print_signal_received_reason (ecs->event_thread->stop_signal);
}
/* Always stop on signals if we're either just gaining control
of the program, or the user explicitly requested this thread
@@ -4106,7 +4098,7 @@ infrun: BPSTAT_WHAT_SET_LONGJMP_RESUME (!gdbarch_get_longjmp_target)\n");
delete_step_resume_breakpoint (ecs->event_thread);
ecs->event_thread->stop_step = 1;
- print_stop_reason (END_STEPPING_RANGE, 0);
+ print_end_stepping_range_reason ();
stop_stepping (ecs);
return;
@@ -4336,7 +4328,7 @@ infrun: not switching back to stepped thread, it has vanished\n");
&& execution_direction == EXEC_REVERSE)
{
ecs->event_thread->stop_step = 1;
- print_stop_reason (END_STEPPING_RANGE, 0);
+ print_end_stepping_range_reason ();
stop_stepping (ecs);
}
else
@@ -4446,7 +4438,7 @@ infrun: not switching back to stepped thread, it has vanished\n");
well. FENN */
/* And this works the same backward as frontward. MVS */
ecs->event_thread->stop_step = 1;
- print_stop_reason (END_STEPPING_RANGE, 0);
+ print_end_stepping_range_reason ();
stop_stepping (ecs);
return;
}
@@ -4552,7 +4544,7 @@ infrun: not switching back to stepped thread, it has vanished\n");
&& step_stop_if_no_debug)
{
ecs->event_thread->stop_step = 1;
- print_stop_reason (END_STEPPING_RANGE, 0);
+ print_end_stepping_range_reason ();
stop_stepping (ecs);
return;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-09-03 7:26 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-09-03 7:26 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 9ab6c083f5f3d8b2c2bc6239bac45a3944283d04 (commit)
via 8e178d050f8a4a3d75f0dbfe4329009c3bcf6982 (commit)
via b791ba7ae4d0e38ac1a13f944c8a4a2b4f118b6a (commit)
via 5196fb1be55974acdcb603bf7e142c5f6e808574 (commit)
via 57d1b0d41f1acbc4c140c49b66301040cad3fc43 (commit)
via a902f2ad39ee4c1d82b093a3e2093fa21a157220 (commit)
via bc54c3d8368d52bb0218c64afc5632fd2f6c8509 (commit)
via 5c05b641346f70bd4884766ad38b67735618fbe2 (commit)
via 812ad48c254399696c0aa73e92753e5b40929c1b (commit)
via 68a15546475fe0162e39a7aed6866bd3f7692c06 (commit)
from 4892da0975fd1d63ec6f4b94939bc867096b1dc7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 9ab6c083f5f3d8b2c2bc6239bac45a3944283d04
Merge: 4892da0 8e178d0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Sep 3 09:25:58 2010 +0200
Merge remote branch 'gdb/master'
commit 8e178d050f8a4a3d75f0dbfe4329009c3bcf6982
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Sep 3 01:29:09 2010 +0000
GDB 7.2 released.
commit b791ba7ae4d0e38ac1a13f944c8a4a2b4f118b6a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Sep 3 00:00:05 2010 +0000
daily update
commit 5196fb1be55974acdcb603bf7e142c5f6e808574
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Sep 3 00:00:03 2010 +0000
*** empty log message ***
commit 57d1b0d41f1acbc4c140c49b66301040cad3fc43
Author: Richard Henderson <rth@redhat.com>
Date: Thu Sep 2 22:54:41 2010 +0000
Select 32-bit pei for 64-bit pei configurations.
commit a902f2ad39ee4c1d82b093a3e2093fa21a157220
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Sep 2 22:52:05 2010 +0000
Back out the change introducing the "record pic" feature.
gdb/ChangeLog:
Back out the following change:
| 2010-06-29 Hui Zhu <teawater@gmail.com>
| * record.c (set_record_pic_cmdlist,
| show_record_pic_cmdlist): New variables.
| (set_record_pic_command,
| show_record_pic_command): New functions.
| (record_pic_function, record_pic_line, record_pic_enum,
| set_record_pic_type, record_pic_hide_nofunction,
| record_pic_hide_nosource, record_pic_hide_same): New variables.
| (record_pic_fputs): New function.
| (function_list, node_list, edge_list): New struct.
| (function_list, node_list, edge_list): New variables.
| (record_pic_cleanups, record_pic_node,
| record_pic_edge, cmd_record_pic): New functions.
| (_initialize_record): Add new commands for record pic.
commit bc54c3d8368d52bb0218c64afc5632fd2f6c8509
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Sep 2 18:40:12 2010 +0000
Fix ChangeLog entries cli-logging.c -> cli/cli-logging.c .
commit 5c05b641346f70bd4884766ad38b67735618fbe2
Author: Daniel Jacobowitz <dan@debian.org>
Date: Thu Sep 2 17:12:32 2010 +0000
* config.in, configure: Regenerated.
* configure.ac: Check for waitpid.
* ser-pipe.c (pipe_close): Wait for the program to exit.
commit 812ad48c254399696c0aa73e92753e5b40929c1b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Sep 2 15:42:01 2010 +0000
gdb/
* cli-logging.c: Include gdb_assert.h.
(set_logging_overwrite): New function.
(logging_redirect): New comment.
(logging_no_redirect_file, set_logging_redirect)
(pop_output_files) <logging_no_redirect_file>: New.
(handle_redirections) <!logging_redirect>: New variable
no_redirect_file. Remove file autoclose for tee_file_new. No longer
discard cleanup for the close of former OUTPUT. Set
LOGGING_NO_REDIRECT_FILE.
(handle_redirections) <logging_redirect>: gdb_assert
LOGGING_NO_REDIRECT_FILE.
(show_logging_command) <logging_redirect handling>: Adjust messages
for SAVED_FILENAME not NULL.
(_initialize_cli_logging): Install set_logging_overwrite and
set_logging_redirect.
commit 68a15546475fe0162e39a7aed6866bd3f7692c06
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Sep 2 15:19:56 2010 +0000
Add test for -file-list-exec-source-files
gdb/testsuite/ChangeLog:
* gdb.dwarf/dw2-filename.S, gdb.dwarf/dw2-filename.exp: New files.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 4 +
bfd/config.bfd | 2 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 48 +++-
gdb/cli/cli-logging.c | 114 +++++-
gdb/config.in | 3 +
gdb/configure | 2 +-
gdb/configure.ac | 2 +-
gdb/record.c | 609 -----------------------------
gdb/ser-pipe.c | 12 +-
gdb/testsuite/ChangeLog | 5 +
gdb/testsuite/gdb.dwarf2/dw2-filename.S | 53 +++
gdb/testsuite/gdb.dwarf2/dw2-filename.exp | 44 ++
gdb/version.in | 2 +-
14 files changed, 272 insertions(+), 630 deletions(-)
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-filename.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-filename.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7edf390..26d45ff 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-02 Richard Henderson <rth@redhat.com>
+
+ * config.bfd (x86_64-*-mingw*): Select 32-bit pei vectors too.
+
2010-09-01 Pedro Alves <pedro@codesourcery.com>
* netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 0bfb535..e42535f 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -634,7 +634,7 @@ case "${targ}" in
;;
x86_64-*-mingw*)
targ_defvec=x86_64pe_vec
- targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
+ targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec i386pe_vec i386pei_vec bfd_elf32_i386_vec"
want64=true
targ_underscore=no
;;
diff --git a/bfd/version.h b/bfd/version.h
index d5cb1b3..d722d8e 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100902
+#define BFD_VERSION_DATE 20100903
#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 2d2344c..1650031 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,49 @@
+2010-09-03 Joel Brobecker <brobecker@adacore.com>
+
+ GDB 7.2 released.
+
+2010-09-02 Joel Brobecker <brobecker@adacore.com>
+
+ Back out the following change:
+ | 2010-06-29 Hui Zhu <teawater@gmail.com>
+ | * record.c (set_record_pic_cmdlist,
+ | show_record_pic_cmdlist): New variables.
+ | (set_record_pic_command,
+ | show_record_pic_command): New functions.
+ | (record_pic_function, record_pic_line, record_pic_enum,
+ | set_record_pic_type, record_pic_hide_nofunction,
+ | record_pic_hide_nosource, record_pic_hide_same): New variables.
+ | (record_pic_fputs): New function.
+ | (function_list, node_list, edge_list): New struct.
+ | (function_list, node_list, edge_list): New variables.
+ | (record_pic_cleanups, record_pic_node,
+ | record_pic_edge, cmd_record_pic): New functions.
+ | (_initialize_record): Add new commands for record pic.
+
+2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * config.in, configure: Regenerated.
+ * configure.ac: Check for waitpid.
+ * ser-pipe.c (pipe_close): Wait for the program to exit.
+
+2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * cli/cli-logging.c: Include gdb_assert.h.
+ (set_logging_overwrite): New function.
+ (logging_redirect): New comment.
+ (logging_no_redirect_file, set_logging_redirect)
+ (pop_output_files) <logging_no_redirect_file>: New.
+ (handle_redirections) <!logging_redirect>: New variable
+ no_redirect_file. Remove file autoclose for tee_file_new. No longer
+ discard cleanup for the close of former OUTPUT. Set
+ LOGGING_NO_REDIRECT_FILE.
+ (handle_redirections) <logging_redirect>: gdb_assert
+ LOGGING_NO_REDIRECT_FILE.
+ (show_logging_command) <logging_redirect handling>: Adjust messages
+ for SAVED_FILENAME not NULL.
+ (_initialize_cli_logging): Install set_logging_overwrite and
+ set_logging_redirect.
+
2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
@@ -576,7 +622,7 @@
2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
- * cli-logging.c (logging_overwrite, logging_redirect): Make them
+ * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
static.
2010-08-13 Ken Werner <ken.werner@de.ibm.com>
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index af63dcc..aa53523 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -21,6 +21,7 @@
#include "defs.h"
#include "gdbcmd.h"
#include "ui-out.h"
+#include "gdb_assert.h"
#include "gdb_string.h"
@@ -46,6 +47,15 @@ show_logging_filename (struct ui_file *file, int from_tty,
}
static int logging_overwrite;
+
+static void
+set_logging_overwrite (char *args, int from_tty, struct cmd_list_element *c)
+{
+ if (saved_filename)
+ warning (_("Currently logging to %s. Turn the logging off and on to "
+ "make the new setting effective."), saved_filename);
+}
+
static void
show_logging_overwrite (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
@@ -55,7 +65,67 @@ Whether logging overwrites or appends to the log file is %s.\n"),
value);
}
+/* Value as configured by the user. */
static int logging_redirect;
+
+/* The on-disk file in use if logging is currently active together with
+ redirection turned off (and therefore using tee_file_new). For active
+ logging with redirection the on-disk file is directly in GDB_STDOUT and
+ this variable is NULL. */
+static struct ui_file *logging_no_redirect_file;
+
+static void
+set_logging_redirect (char *args, int from_tty, struct cmd_list_element *c)
+{
+ struct cleanup *cleanups = NULL;
+ struct ui_file *output, *new_logging_no_redirect_file;
+
+ if (saved_filename == NULL
+ || (logging_redirect != 0 && logging_no_redirect_file == NULL)
+ || (logging_redirect == 0 && logging_no_redirect_file != NULL))
+ return;
+
+ if (logging_redirect != 0)
+ {
+ gdb_assert (logging_no_redirect_file != NULL);
+
+ /* ui_out_redirect still has not been called for next gdb_stdout. */
+ cleanups = make_cleanup_ui_file_delete (gdb_stdout);
+
+ output = logging_no_redirect_file;
+ new_logging_no_redirect_file = NULL;
+
+ if (from_tty)
+ fprintf_unfiltered (saved_output.out, "Redirecting output to %s.\n",
+ logging_filename);
+ }
+ else
+ {
+ gdb_assert (logging_no_redirect_file == NULL);
+ output = tee_file_new (saved_output.out, 0, gdb_stdout, 0);
+ if (output == NULL)
+ perror_with_name (_("set logging"));
+ new_logging_no_redirect_file = gdb_stdout;
+
+ if (from_tty)
+ fprintf_unfiltered (saved_output.out, "Copying output to %s.\n",
+ logging_filename);
+ }
+
+ gdb_stdout = output;
+ gdb_stderr = output;
+ gdb_stdlog = output;
+ gdb_stdtarg = output;
+ logging_no_redirect_file = new_logging_no_redirect_file;
+
+ /* It should not happen, the redirection has been already setup. */
+ if (ui_out_redirect (uiout, output) < 0)
+ warning (_("Current output protocol does not support redirection"));
+
+ if (logging_redirect != 0)
+ do_cleanups (cleanups);
+}
+
static void
show_logging_redirect (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
@@ -70,6 +140,11 @@ pop_output_files (void)
/* Only delete one of the files -- they are all set to the same
value. */
ui_file_delete (gdb_stdout);
+ if (logging_no_redirect_file)
+ {
+ ui_file_delete (logging_no_redirect_file);
+ logging_no_redirect_file = NULL;
+ }
gdb_stdout = saved_output.out;
gdb_stderr = saved_output.err;
gdb_stdlog = saved_output.log;
@@ -104,18 +179,25 @@ handle_redirections (int from_tty)
/* Redirects everything to gdb_stdout while this is running. */
if (!logging_redirect)
{
- output = tee_file_new (gdb_stdout, 0, output, 1);
+ struct ui_file *no_redirect_file = output;
+
+ output = tee_file_new (gdb_stdout, 0, no_redirect_file, 0);
if (output == NULL)
perror_with_name (_("set logging"));
- discard_cleanups (cleanups);
- cleanups = make_cleanup_ui_file_delete (output);
+ make_cleanup_ui_file_delete (output);
if (from_tty)
fprintf_unfiltered (gdb_stdout, "Copying output to %s.\n",
logging_filename);
+ logging_no_redirect_file = no_redirect_file;
+ }
+ else
+ {
+ gdb_assert (logging_no_redirect_file == NULL);
+
+ if (from_tty)
+ fprintf_unfiltered (gdb_stdout, "Redirecting output to %s.\n",
+ logging_filename);
}
- else if (from_tty)
- fprintf_unfiltered (gdb_stdout, "Redirecting output to %s.\n",
- logging_filename);
discard_cleanups (cleanups);
@@ -187,10 +269,20 @@ show_logging_command (char *args, int from_tty)
else
printf_unfiltered (_("Logs will be appended to the log file.\n"));
- if (logging_redirect)
- printf_unfiltered (_("Output will be sent only to the log file.\n"));
+ if (saved_filename)
+ {
+ if (logging_redirect)
+ printf_unfiltered (_("Output is being sent only to the log file.\n"));
+ else
+ printf_unfiltered (_("Output is being logged and displayed.\n"));
+ }
else
- printf_unfiltered (_("Output will be logged and displayed.\n"));
+ {
+ if (logging_redirect)
+ printf_unfiltered (_("Output will be sent only to the log file.\n"));
+ else
+ printf_unfiltered (_("Output will be logged and displayed.\n"));
+ }
}
/* Provide a prototype to silence -Wmissing-prototypes. */
@@ -211,7 +303,7 @@ _initialize_cli_logging (void)
Set whether logging overwrites or appends to the log file."), _("\
Show whether logging overwrites or appends to the log file."), _("\
If set, logging overrides the log file."),
- NULL,
+ set_logging_overwrite,
show_logging_overwrite,
&set_logging_cmdlist, &show_logging_cmdlist);
add_setshow_boolean_cmd ("redirect", class_support, &logging_redirect, _("\
@@ -219,7 +311,7 @@ Set the logging output mode."), _("\
Show the logging output mode."), _("\
If redirect is off, output will go to both the screen and the log file.\n\
If redirect is on, output will go only to the log file."),
- NULL,
+ set_logging_redirect,
show_logging_redirect,
&set_logging_cmdlist, &show_logging_cmdlist);
add_setshow_filename_cmd ("file", class_support, &logging_filename, _("\
diff --git a/gdb/config.in b/gdb/config.in
index 7659181..173cd3d 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -676,6 +676,9 @@
/* Define to 1 if you have the <vfork.h> header file. */
#undef HAVE_VFORK_H
+/* Define to 1 if you have the `waitpid' function. */
+#undef HAVE_WAITPID
+
/* Define to 1 if you have the <wait.h> header file. */
#undef HAVE_WAIT_H
diff --git a/gdb/configure b/gdb/configure
index 5563bae..2c7db68 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -12550,7 +12550,7 @@ for ac_func in canonicalize_file_name realpath getrusage getuid \
getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
sigaction sigprocmask sigsetmask socketpair syscall \
ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
- setrlimit getrlimit posix_madvise
+ setrlimit getrlimit posix_madvise waitpid
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 4b779aa..2f8090e 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -962,7 +962,7 @@ AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid \
getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
sigaction sigprocmask sigsetmask socketpair syscall \
ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
- setrlimit getrlimit posix_madvise])
+ setrlimit getrlimit posix_madvise waitpid])
AM_LANGINFO_CODESET
# Check the return and argument types of ptrace. No canned test for
diff --git a/gdb/record.c b/gdb/record.c
index 89a2d6b..3d423a5 100644
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -2603,555 +2603,6 @@ cmd_record_save (char *args, int from_tty)
recfilename);
}
-/* For "record pic" command. */
-
-static struct cmd_list_element *set_record_pic_cmdlist,
- *show_record_pic_cmdlist;
-
-static void
-set_record_pic_command (char *args, int from_tty)
-{
- printf_unfiltered (_("\
-\"set record pic\" must be followed by an apporpriate subcommand.\n"));
- help_list (set_record_cmdlist, "set record pic ", all_commands, gdb_stdout);
-}
-
-static void
-show_record_pic_command (char *args, int from_tty)
-{
- cmd_show_list (show_record_pic_cmdlist, from_tty, "");
-}
-
-static const char record_pic_function[] = "function";
-static const char record_pic_line[] = "line";
-static const char *record_pic_enum[] =
-{
- record_pic_function,
- record_pic_line,
- NULL,
-};
-static const char *set_record_pic_type = record_pic_line;
-
-static int record_pic_hide_nofunction = 1;
-static int record_pic_hide_nosource = 1;
-static int record_pic_hide_same = 1;
-
-static void
-record_pic_fputs (FILE *fp, const char *buf)
-{
- if (fputs (buf, fp) == EOF)
- error (_("Write to file error."));
-}
-
-struct function_list
-{
- struct function_list *next;
- CORE_ADDR addr;
- int fid;
-};
-struct node_list
-{
- struct node_list *next;
- int count;
- CORE_ADDR addr;
- int showall;
- struct symtab *symtab;
- int line;
- struct minimal_symbol *function;
- int fid;
-};
-struct edge_list
-{
- struct edge_list *next;
- int count;
- struct node_list *s;
- struct node_list *t;
- int frame_diff;
- int is_return;
-};
-struct function_list *function_list = NULL;
-struct node_list *node_list = NULL;
-struct edge_list *edge_list = NULL;
-
-static void
-record_pic_cleanups (void *data)
-{
- FILE *fp = data;
- struct function_list *fl, *fl2;
- struct node_list *nl, *nl2;
- struct edge_list *el, *el2;
-
- fl = function_list;
- while (fl)
- {
- fl2 = fl;
- fl = fl->next;
- xfree (fl2);
- }
- function_list = NULL;
-
- nl = node_list;
- while (nl)
- {
- nl2 = nl;
- nl = nl->next;
- xfree (nl2);
- }
- node_list = NULL;
-
- el = edge_list;
- while (el)
- {
- el2 = el;
- el = el->next;
- xfree (el2);
- }
- edge_list = NULL;
-
- fclose (fp);
-}
-
-static void
-record_pic_node (char *buf, int buf_max, struct gdbarch *gdbarch,
- const char *type, struct node_list *nlp)
-{
- if (type == record_pic_function)
- {
- snprintf (buf, buf_max, "%s %s %s",
- (nlp->symtab) ? nlp->symtab->filename : "",
- (nlp->function) ? SYMBOL_LINKAGE_NAME (nlp->function) : "",
- (!nlp->function) ? paddress (gdbarch, nlp->addr) : "");
- }
- else
- {
- if (nlp->showall)
- {
- snprintf (buf, buf_max, "%s:%d %s %s", nlp->symtab->filename,
- nlp->line,
- (nlp->function) ? SYMBOL_LINKAGE_NAME (nlp->function) : "",
- paddress (gdbarch, nlp->addr));
- }
- else
- {
- if (nlp->symtab)
- snprintf (buf, buf_max, "%s %d %s",
- (nlp->function) ? SYMBOL_LINKAGE_NAME (nlp->function) : "",
- nlp->line, paddress (gdbarch, nlp->addr));
- else
- snprintf (buf, buf_max, "%s %s",
- (nlp->function) ? SYMBOL_LINKAGE_NAME (nlp->function) : "",
- paddress (gdbarch, nlp->addr));
- }
- }
-}
-
-static void
-record_pic_edge (char *buf, int buf_max, struct edge_list *elp,
- char *node, char *prev_node)
-{
- if (elp->frame_diff)
- {
- if (elp->is_return)
- snprintf (buf, buf_max, "edge: {color:blue sourcename: \"%s\" "
- "targetname: \"%s\"",
- prev_node, node);
- else
- snprintf (buf, buf_max, "edge: {color:red sourcename: \"%s\" "
- "targetname: \"%s\"",
- prev_node, node);
- }
- else
- snprintf (buf, buf_max,
- "edge: {sourcename: \"%s\" targetname: \"%s\"",
- prev_node, node);
-}
-
-/* Save the execution log to a vcg file. */
-
-static void
-cmd_record_pic (char *args, int from_tty)
-{
- char *recfilename, recfilename_buffer[40];
- FILE *fp;
- struct cleanup *old_cleanups, *set_cleanups;
- struct regcache *regcache;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-09-02 15:04 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-09-02 15:04 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 4892da0975fd1d63ec6f4b94939bc867096b1dc7 (commit)
via 92a98e9bd3dc86157989fdaae235bed2c0e1a298 (commit)
via ea8ab67e3cc2acf9a3343fb090de7b92a88fddaf (commit)
via 22f4ce363e1585bf159c060d8363e6dd6ba77a10 (commit)
via d981de405a15a04135d2f34570770d9ad89e0f54 (commit)
via 3ed98b6a4c91ae26c42b22177b9f6800c251eb81 (commit)
via 8f83e95a50017fac2f6623663697545083bf0f44 (commit)
via f05c8cbcb247f29797e88a729847c9b845efd379 (commit)
via b5f9d7639137510dbffffb6d4e9b95836d3b38a0 (commit)
via 9e9968a29fc6df4362519082c1a4d450205b74af (commit)
via 2af0c7bd475faa74426bdff5a731c5ea63445951 (commit)
via 79c1dad565481ee19bc8cd1caf2ab6fe1caf41cb (commit)
via 2f9ac29ce98919de5f01257407f53876aeb79b76 (commit)
via 5d784f0d560e0d9c2cc49ed2755bd6becf648e1c (commit)
from 11e5303a1692a63cd2e17604abc7742561388af6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 4892da0975fd1d63ec6f4b94939bc867096b1dc7
Merge: 11e5303 92a98e9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Sep 2 17:04:30 2010 +0200
Merge remote branch 'gdb/master'
commit 92a98e9bd3dc86157989fdaae235bed2c0e1a298
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Sep 2 14:00:21 2010 +0000
gdb/
* iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
commit ea8ab67e3cc2acf9a3343fb090de7b92a88fddaf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Sep 2 13:58:04 2010 +0000
gdb/
* Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
(monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
add $(GDB_WARN_CFLAGS_NO_FORMAT).
(printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
commit 22f4ce363e1585bf159c060d8363e6dd6ba77a10
Author: qiyao <qiyao>
Date: Thu Sep 2 01:19:31 2010 +0000
2010-09-02 Yao Qi <yao@codesourcery.com>
* linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
number from a WIFSIGNALED status.
commit d981de405a15a04135d2f34570770d9ad89e0f54
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 2 00:00:33 2010 +0000
*** empty log message ***
commit 3ed98b6a4c91ae26c42b22177b9f6800c251eb81
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Sep 2 00:00:06 2010 +0000
daily update
commit 8f83e95a50017fac2f6623663697545083bf0f44
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Sep 1 21:50:24 2010 +0000
* symtab.h (lookup_type_symbol): Declare.
* symtab.c (lookup_symbol_in_language_full): Rename from
lookup_symbol_in_language. Add 'for_type' argument.
(lookup_symbol_in_language): New function.
(lookup_type_symbol): Likewise.
(lookup_symbol_aux): Add 'for_type' argument.
(match_symbol_aux): New function.
(lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
(match_transparent_type): New function.
(basic_lookup_transparent_type): Use expand_one_symtab_matching.
* symfile.h (struct quick_symbol_functions)
<pre_expand_symtabs_matching>: Remove.
<expand_one_symtab_matching>: New field.
* psymtab.c (expand_one_symtab_matching_psymtabs): New function.
(pre_expand_symtabs_matching_psymtabs): Remove.
(psym_functions): Update.
* gdbtypes.c (lookup_typename): Use lookup_type_symbol.
* dwarf2read.c (dw2_lookup_symbol): Update comment.
(dw2_pre_expand_symtabs_matching): Remove.
(dw2_expand_one_symtab_matching): New function.
(dwarf2_gdb_index_functions): Update.
commit f05c8cbcb247f29797e88a729847c9b845efd379
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 1 20:47:01 2010 +0000
[NEWS] powerpc-lynxos gdbserver support
This adds an entry in the NEWS file announcing the GDBserver support
on powerpc-lynxos.
gdb/ChangeLog:
* NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
commit b5f9d7639137510dbffffb6d4e9b95836d3b38a0
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Wed Sep 1 19:03:51 2010 +0000
* mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
as a feature reported by -list-target-features.
* gdb.texinfo (GDB/MI Miscellaneous Commands): Document new
feature `reverse' output by -list-target-features.
commit 9e9968a29fc6df4362519082c1a4d450205b74af
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 1 18:57:12 2010 +0000
gdbserver support for powerpc-lynxos (4.x)
This patch adds support for powerpc-lynxos.
gdbserver/ChangeLog:
* gdbserver/lynx-low.c, gdbserver/lynx-low.h,
gdbserver/lynx-ppc-low.c: New files.
* Makefile.in (lynx_low_h): New variable.
(lynx-low.o, lynx-ppc-low.o): New rules.
* configure.ac: On LynxOS, link with -lnetinet.
* configure.srv: Add handling of powerpc-*-lynxos* targets.
* configure: regenerate.
commit 2af0c7bd475faa74426bdff5a731c5ea63445951
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 1 18:56:45 2010 +0000
Import vsnprintf from libiberty if not available.
vasprintf and vsnprintf are not available on LynxOS, at least not on
version 4.0.0. This patch updates the configury to import them from
libiberty if not available out of the box.
gdbserver/
* Makefile.in (vasprintf.o, vsnprintf.o): New rules.
* configure.ac: Add check for vasprintf and vsnprintf.
* configure, config.in: Regenerate.
* server.h (vasprintf, vsnprintf): Add conditional declarations.
commit 79c1dad565481ee19bc8cd1caf2ab6fe1caf41cb
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Sep 1 18:56:34 2010 +0000
Generate regformats/rs6000/powerpc-32.dat
I will need this description for the ppc-lynxos debugger where, AFAICT,
we only have access to the core GP and FP registers. So this adds
powerpc-32 to the list of targets for which a .dat file needs to be
generated.
2010-04-30 Joel Brobecker <brobecker@adacore.com>
* features/Makefile (WHICH): Add rs6000/powerpc-32.
(powerpc-32.o, powerpc-32.c): New rules.
(clean): Also remove powerpc-32.c.
* regformats/rs6000/powerpc-32.dat: Generate.
commit 2f9ac29ce98919de5f01257407f53876aeb79b76
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 1 17:29:32 2010 +0000
[gdbserver] Move malloc.h include to server.h.
This patch moves all includes of malloc.h, which were introduced
purely to get access to alloca's declaration, to server.h, next
to the include of alloca.h.
There is one exception: gdbreplay.c, which does not include server.h.
In this case, the include of alloca.h was simply moved up a bit, next
to the include of malloc.h.
gdb/gdbserver/ChangeLog:
* gdbreplay.c: Move include of alloca.h up, next to include of
malloc.h.
* server.h: Add include of malloc.h.
* mem-break.c: Remove include of malloc.h.
* server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
commit 5d784f0d560e0d9c2cc49ed2755bd6becf648e1c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 1 17:27:48 2010 +0000
Put ChangeLog entries in the right ChangeLog file.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 58 ++-
gdb/Makefile.in | 10 +-
gdb/NEWS | 4 +
gdb/doc/ChangeLog | 5 +
gdb/doc/gdb.texinfo | 4 +
gdb/dwarf2read.c | 48 ++-
gdb/features/Makefile | 1 +
gdb/gdbserver/ChangeLog | 43 ++
gdb/gdbserver/Makefile.in | 18 +-
gdb/gdbserver/config.in | 14 +
gdb/gdbserver/configure | 32 ++-
gdb/gdbserver/configure.ac | 6 +-
gdb/gdbserver/configure.srv | 4 +
gdb/gdbserver/gdbreplay.c | 6 +-
gdb/gdbserver/lynx-low.c | 810 ++++++++++++++++++++++++++++++++++
gdb/gdbserver/lynx-low.h | 52 +++
gdb/gdbserver/lynx-ppc-low.c | 186 ++++++++
gdb/gdbserver/mem-break.c | 3 -
gdb/gdbserver/server.c | 3 -
gdb/gdbserver/server.h | 12 +
gdb/gdbserver/tracepoint.c | 3 -
gdb/gdbserver/utils.c | 3 -
gdb/gdbserver/win32-low.c | 1 -
gdb/gdbtypes.c | 2 +-
gdb/iq2000-tdep.c | 2 +
gdb/linux-nat.c | 2 +-
gdb/mi/mi-main.c | 2 +
gdb/psymtab.c | 18 +-
gdb/regformats/rs6000/powerpc-32.dat | 75 ++++
gdb/symfile.h | 27 +-
gdb/symtab.c | 167 ++++++--
gdb/symtab.h | 4 +
gdb/version.in | 2 +-
34 files changed, 1540 insertions(+), 89 deletions(-)
create mode 100644 gdb/gdbserver/lynx-low.c
create mode 100644 gdb/gdbserver/lynx-low.h
create mode 100644 gdb/gdbserver/lynx-ppc-low.c
create mode 100644 gdb/regformats/rs6000/powerpc-32.dat
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 0a35e10..d5cb1b3 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100901
+#define BFD_VERSION_DATE 20100902
#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 25127af..2d2344c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,20 +1,58 @@
-2010-09-01 Joel Brobecker <brobecker@adacore.com>
+2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
+
+2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
+ (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
+ add $(GDB_WARN_CFLAGS_NO_FORMAT).
+ (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
+
+2010-09-02 Yao Qi <yao@codesourcery.com>
+
+ * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
+ number from a WIFSIGNALED status.
- * Makefile.in (memmem.o): Build with -Wno-error.
+2010-09-01 Tom Tromey <tromey@redhat.com>
+
+ * symtab.h (lookup_type_symbol): Declare.
+ * symtab.c (lookup_symbol_in_language_full): Rename from
+ lookup_symbol_in_language. Add 'for_type' argument.
+ (lookup_symbol_in_language): New function.
+ (lookup_type_symbol): Likewise.
+ (lookup_symbol_aux): Add 'for_type' argument.
+ (match_symbol_aux): New function.
+ (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
+ (match_transparent_type): New function.
+ (basic_lookup_transparent_type): Use expand_one_symtab_matching.
+ * symfile.h (struct quick_symbol_functions)
+ <pre_expand_symtabs_matching>: Remove.
+ <expand_one_symtab_matching>: New field.
+ * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
+ (pre_expand_symtabs_matching_psymtabs): Remove.
+ (psym_functions): Update.
+ * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
+ * dwarf2read.c (dw2_lookup_symbol): Update comment.
+ (dw2_pre_expand_symtabs_matching): Remove.
+ (dw2_expand_one_symtab_matching): New function.
+ (dwarf2_gdb_index_functions): Update.
2010-09-01 Joel Brobecker <brobecker@adacore.com>
- * utils.c (xsnprintf): Make non-static.
- * server.h: Add xsnprintf declaration.
- * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
- replace calls to snprintf by calls to xsnprintf throughout.
+ * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
+
+2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
+ as a feature reported by -list-target-features.
2010-09-01 Joel Brobecker <brobecker@adacore.com>
- * configure.ac: Add configure check for alloca.
- * configure, config.in: Regenerate.
- * server.h: Include alloca.h if it exists.
- * gdbreplay.c: Include alloca.h if it exists.
+ * features/Makefile (WHICH): Add rs6000/powerpc-32.
+ (powerpc-32.o, powerpc-32.c): New rules.
+ (clean): Also remove powerpc-32.c.
+ * regformats/rs6000/powerpc-32.dat: Generate.
2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index f07bc8b..e5eee06 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -155,7 +155,8 @@ WERROR_CFLAGS = @WERROR_CFLAGS@
GDB_WARN_CFLAGS = $(WARN_CFLAGS)
GDB_WERROR_CFLAGS = $(WERROR_CFLAGS)
-GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " | sed "s/ -Wformat-nonliteral / /g"`
+GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " \
+ | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"`
RDYNAMIC = @RDYNAMIC@
@@ -1531,14 +1532,15 @@ main.o: $(srcdir)/main.c
# definitly will not work. "monitor.c" needs to be rewritten so that
# it doesn't use format strings and instead uses callbacks.
monitor.o: $(srcdir)/monitor.c
- $(COMPILE.pre) $(INTERNAL_WARN_CFLAGS) $(COMPILE.post) $(srcdir)/monitor.c
+ $(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_FORMAT) \
+ $(COMPILE.post) $(srcdir)/monitor.c
$(POSTCOMPILE)
# Do not try to build "printcmd.c" with -Wformat-nonliteral. It manually
# checks format strings.
printcmd.o: $(srcdir)/printcmd.c
- $(COMPILE.pre) $(INTERNAL_CFLAGS_BASE) $(GDB_WARN_CFLAGS_NO_FORMAT) \
- $(GDB_WERROR_CFLAGS) $(COMPILE.post) $(srcdir)/printcmd.c
+ $(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_FORMAT) \
+ $(COMPILE.post) $(srcdir)/printcmd.c
$(POSTCOMPILE)
# Message files. Based on code in gcc/Makefile.in.
diff --git a/gdb/NEWS b/gdb/NEWS
index b383998..37613aa 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -62,6 +62,10 @@
libthread_db library with the "set libthread-db-search-path"
command. See the user manual for more details on this command.
+* New features in the GDB remote stub, GDBserver
+
+ ** GDBserver is now supported on PowerPC LynxOS 4.x.
+
*** Changes in GDB 7.2
* Shared library support for remote targets by default
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 368e763..e892e39 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * gdb.texinfo (GDB/MI Miscellaneous Commands): Document new
+ feature `reverse' output by -list-target-features.
+
2010-08-31 H.J. Lu <hongjiu.lu@intel.com>
* gdb.texinfo (i386 Features): Remove an extra "@item".
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index f0b06ef..36552e2 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -29030,6 +29030,10 @@ Indicates that the target is capable of asynchronous command
execution, which means that @value{GDBN} will accept further commands
while the target is running.
+@item reverse
+Indicates that the target is capable of reverse execution.
+@xref{Reverse Execution}, for more information.
+
@end table
@subheading The @code{-list-thread-groups} Command
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index c531864..5b58a5b 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2198,7 +2198,7 @@ static struct symtab *
dw2_lookup_symbol (struct objfile *objfile, int block_index,
const char *name, domain_enum domain)
{
- /* We do all the work in the pre_expand_symtabs_matching hook
+ /* We do all the work in the expand_one_symtab_matching hook
instead. */
return NULL;
}
@@ -2229,12 +2229,46 @@ dw2_do_expand_symtabs_matching (struct objfile *objfile, const char *name)
}
}
-static void
-dw2_pre_expand_symtabs_matching (struct objfile *objfile,
- int kind, const char *name,
- domain_enum domain)
+static struct symbol *
+dw2_expand_one_symtab_matching (struct objfile *objfile,
+ int kind, const char *name,
+ domain_enum domain,
+ struct symbol *(*matcher) (struct symtab *,
+ int,
+ const char *,
+ domain_enum,
+ void *),
+ void *data)
{
- dw2_do_expand_symtabs_matching (objfile, name);
+ dw2_setup (objfile);
+
+ if (dwarf2_per_objfile->index_table)
+ {
+ offset_type *vec;
+
+ if (find_slot_in_mapped_hash (dwarf2_per_objfile->index_table,
+ name, &vec))
+ {
+ offset_type i, len = MAYBE_SWAP (*vec);
+ for (i = 0; i < len; ++i)
+ {
+ offset_type cu_index = MAYBE_SWAP (vec[i + 1]);
+ struct dwarf2_per_cu_data *cu = dw2_get_cu (cu_index);
+ struct symtab *symtab;
+ struct symbol *sym;
+
+ if (cu->v.quick->symtab)
+ continue;
+
+ symtab = dw2_instantiate_symtab (objfile, cu);
+ sym = matcher (symtab, kind, name, domain, data);
+ if (sym)
+ return sym;
+ }
+ }
+ }
+
+ return NULL;
}
static void
@@ -2538,7 +2572,7 @@ const struct quick_symbol_functions dwarf2_gdb_index_functions =
dw2_forget_cached_source_info,
dw2_lookup_symtab,
dw2_lookup_symbol,
- dw2_pre_expand_symtabs_matching,
+ dw2_expand_one_symtab_matching,
dw2_print_stats,
dw2_dump,
dw2_relocate,
diff --git a/gdb/features/Makefile b/gdb/features/Makefile
index 987854b..13e0ea6 100644
--- a/gdb/features/Makefile
+++ b/gdb/features/Makefile
@@ -37,6 +37,7 @@ WHICH = arm-with-iwmmxt arm-with-vfpv2 arm-with-vfpv3 arm-with-neon \
i386/i386-avx i386/i386-avx-linux \
i386/amd64-avx i386/amd64-avx-linux \
mips-linux mips64-linux \
+ rs6000/powerpc-32 \
rs6000/powerpc-32l rs6000/powerpc-altivec32l rs6000/powerpc-e500l \
rs6000/powerpc-64l rs6000/powerpc-altivec64l rs6000/powerpc-vsx32l \
rs6000/powerpc-vsx64l rs6000/powerpc-cell32l rs6000/powerpc-cell64l \
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 65e6b78..37f0686 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,46 @@
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
+ gdbserver/lynx-ppc-low.c: New files.
+ * Makefile.in (lynx_low_h): New variable.
+ (lynx-low.o, lynx-ppc-low.o): New rules.
+ * configure.ac: On LynxOS, link with -lnetinet.
+ * configure.srv: Add handling of powerpc-*-lynxos* targets.
+ * configure: regenerate.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
+ * configure.ac: Add check for vasprintf and vsnprintf.
+ * configure, config.in: Regenerate.
+ * server.h (vasprintf, vsnprintf): Add conditional declarations.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * gdbreplay.c: Move include of alloca.h up, next to include of
+ malloc.h.
+ * server.h: Add include of malloc.h.
+ * mem-break.c: Remove include of malloc.h.
+ * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * Makefile.in (memmem.o): Build with -Wno-error.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * utils.c (xsnprintf): Make non-static.
+ * server.h: Add xsnprintf declaration.
+ * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
+ replace calls to snprintf by calls to xsnprintf throughout.
+
+2010-09-01 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.ac: Add configure check for alloca.
+ * configure, config.in: Regenerate.
+ * server.h: Include alloca.h if it exists.
+ * gdbreplay.c: Include alloca.h if it exists.
+
2010-08-28 Pedro Alves <pedro@codesourcery.com>
* linux-low.c (__SIGRTMIN): Define if not already defined.
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index ffbb14a..fa6c102 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -235,7 +235,7 @@ clean:
rm -f arm-with-iwmmxt.c
rm -f arm-with-vfpv2.c arm-with-vfpv3.c arm-with-neon.c
rm -f mips-linux.c mips64-linux.c
- rm -f powerpc-32l.c powerpc-64l.c powerpc-e500l.c
+ rm -f powerpc-32.c powerpc-32l.c powerpc-64l.c powerpc-e500l.c
rm -f powerpc-altivec32l.c powerpc-cell32l.c powerpc-vsx32l.c
rm -f powerpc-altivec64l.c powerpc-cell64l.c powerpc-vsx64l.c
rm -f powerpc-isa205-32l.c powerpc-isa205-64l.c
@@ -303,6 +303,8 @@ server_h = $(srcdir)/server.h $(regcache_h) config.h $(srcdir)/target.h \
linux_low_h = $(srcdir)/linux-low.h
+lynx_low_h = $(srcdir)/lynx-low.h $(srcdir)/server.h
+
nto_low_h = $(srcdir)/nto-low.h
UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
@@ -357,6 +359,15 @@ signals.o: ../common/signals.c $(server_h) $(signals_def)
memmem.o: ../gnulib/memmem.c
$(CC) -o memmem.o -c $(CPPFLAGS) $(INTERNAL_WARN_CFLAGS) $<
+# We build vasprintf with -DHAVE_CONFIG_H because we want that unit to
+# include our config.h file. Otherwise, some system headers do not get
+# included, and the compiler emits a warning about implicitly defined
+# functions (missing declaration).
+vasprintf.o: $(srcdir)/../../libiberty/vasprintf.c
+ $(CC) -o vasprintf.o -c $(CPPFLAGS) $(INTERNAL_CFLAGS) -DHAVE_CONFIG_H $<
+vsnprintf.o: $(srcdir)/../../libiberty/vsnprintf.c
+ $(CC) -o vsnprintf.o -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $<
+
i386_low_h = $(srcdir)/i386-low.h
i386-low.o: i386-low.c $(i386_low_h) $(server_h) $(target_h)
@@ -381,6 +392,8 @@ linux-x86-low.o: linux-x86-low.c $(linux_low_h) $(server_h) \
$(gdb_proc_service_h) $(i386_low_h)
linux-xtensa-low.o: linux-xtensa-low.c xtensa-xtregs.c $(linux_low_h) $(server_h)
+lynx-low.o: lynx-low.c $(server_h) $(target_h) $(lynx_low_h)
+lynx-ppc-low.o: lynx-ppc-low.c $(server_h) $(lynx_low_h)
nto-low.o: nto-low.c $(server_h) $(nto_low_h)
nto-x86-low.o: nto-x86-low.c $(server_h) $(nto_low_h) $(regdef_h) $(regcache_h)
@@ -450,6 +463,9 @@ mips-linux.c : $(srcdir)/../regformats/mips-linux.dat $(regdat_sh)
mips64-linux.o : mips64-linux.c $(regdef_h)
mips64-linux.c : $(srcdir)/../regformats/mips64-linux.dat $(regdat_sh)
$(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-linux.dat mips64-linux.c
+powerpc-32.o : powerpc-32.c $(regdef_h)
+powerpc-32.c : $(srcdir)/../regformats/rs6000/powerpc-32.dat $(regdat_sh)
+ $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32.dat powerpc-32.c
powerpc-32l.o : powerpc-32l.c $(regdef_h)
powerpc-32l.c : $(srcdir)/../regformats/rs6000/powerpc-32l.dat $(regdat_sh)
$(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32l.dat powerpc-32l.c
diff --git a/gdb/gdbserver/config.in b/gdb/gdbserver/config.in
index a6a9704..909dcb9 100644
--- a/gdb/gdbserver/config.in
+++ b/gdb/gdbserver/config.in
@@ -30,6 +30,14 @@
don't. */
#undef HAVE_DECL_STRERROR
+/* Define to 1 if you have the declaration of `vasprintf', and to 0 if you
+ don't. */
+#undef HAVE_DECL_VASPRINTF
+
+/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you
+ don't. */
+#undef HAVE_DECL_VSNPRINTF
+
/* Define to 1 if you have the `dladdr' function. */
#undef HAVE_DLADDR
@@ -172,6 +180,12 @@
/* Define if UST is available */
#undef HAVE_UST
+/* Define to 1 if you have the `vasprintf' function. */
+#undef HAVE_VASPRINTF
+
+/* Define to 1 if you have the `vsnprintf' function. */
+#undef HAVE_VSNPRINTF
+
/* Checking if errno must be defined */
#undef MUST_DEFINE_ERRNO
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 05a4eba..556cbb3 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -4014,12 +4014,14 @@ _ACEOF
fi
done
-for ac_func in memmem
+for ac_func in memmem vasprintf vsnprintf
do :
- ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
-if test "x$ac_cv_func_memmem" = x""yes; then :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+eval as_val=\$$as_ac_var
+ if test "x$as_val" = x""yes; then :
cat >>confdefs.h <<_ACEOF
-#define HAVE_MEMMEM 1
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
else
@@ -4274,6 +4276,26 @@ fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_MEMMEM $ac_have_decl
_ACEOF
+ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
+if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_VASPRINTF $ac_have_decl
+_ACEOF
+ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
+if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_VSNPRINTF $ac_have_decl
+_ACEOF
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
@@ -4417,6 +4439,8 @@ elif test "${srv_mingw}" = "yes"; then
LIBS="$LIBS -lws2_32"
elif test "${srv_qnx}" = "yes"; then
LIBS="$LIBS -lsocket"
+elif test "${srv_lynxos}" = "yes"; then
+ LIBS="$LIBS -lnetinet"
fi
if test "${srv_mingw}" = "yes"; then
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac
index bc3bb11..85b1a7b 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdb/gdbserver/configure.ac
@@ -44,7 +44,7 @@ AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl
sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl
netinet/tcp.h arpa/inet.h sys/wait.h)
AC_CHECK_FUNCS(pread pwrite pread64)
-AC_REPLACE_FUNCS(memmem)
+AC_REPLACE_FUNCS(memmem vasprintf vsnprintf)
# Check for UST
ustlibs=""
@@ -161,7 +161,7 @@ AC_TRY_LINK([
[AC_MSG_RESULT(no)])
fi
-AC_CHECK_DECLS([strerror, perror, memmem])
+AC_CHECK_DECLS([strerror, perror, memmem, vasprintf, vsnprintf])
AC_CHECK_TYPES(socklen_t, [], [],
[#include <sys/types.h>
@@ -212,6 +212,8 @@ elif test "${srv_mingw}" = "yes"; then
LIBS="$LIBS -lws2_32"
elif test "${srv_qnx}" = "yes"; then
LIBS="$LIBS -lsocket"
+elif test "${srv_lynxos}" = "yes"; then
+ LIBS="$LIBS -lnetinet"
fi
if test "${srv_mingw}" = "yes"; then
diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv
index 99187a5..8a14759 100644
--- a/gdb/gdbserver/configure.srv
+++ b/gdb/gdbserver/configure.srv
@@ -200,6 +200,10 @@ case "${target}" in
srv_linux_regsets=yes
srv_linux_thread_db=yes
;;
+ powerpc-*-lynxos*) srv_regobj="powerpc-32.o"
+ srv_tgtobj="lynx-low.o lynx-ppc-low.o"
+ srv_lynxos=yes
+ ;;
s390*-*-linux*) srv_regobj="s390-linux32.o"
srv_regobj="${srv_regobj} s390-linux64.o"
srv_regobj="${srv_regobj} s390x-linux64.o"
diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c
index 4996ffa..1f65111 100644
--- a/gdb/gdbserver/gdbreplay.c
+++ b/gdb/gdbserver/gdbreplay.c
@@ -54,15 +54,15 @@
#if HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#endif
+#if HAVE_ALLOCA_H
+#include <alloca.h>
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-09-01 15:29 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-09-01 15:29 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 11e5303a1692a63cd2e17604abc7742561388af6 (commit)
via 704aecbf881712c85309380d667f1efbb2382d2b (commit)
via 5199ead275c904353432135fbb07c7ecafe8e9a5 (commit)
via 2a8dee40e26adadd6565a0b046ae89b1d59cb8eb (commit)
via ee6f8e04736482d5a77b9b03b53e523e76b44563 (commit)
via 881fc314b01fe886c0642a0cbb1a09f78d85e1cf (commit)
via 92a09fd6ac19834a5f7c6b1b952beda46c725f0d (commit)
via abd0f09d595b12d4b7fd6912d307ec2bf31abdbc (commit)
via 5205a74e90b0a2df6371e33039f908e0cc65a101 (commit)
via 3cf2892284020e27403d7e60cee9b2654a154cc4 (commit)
via 2aff8d5fea40a80b77a1c26e866170c7acdf2051 (commit)
via a5c45328d359d9c2f67b19618b7e3b8634d5777e (commit)
via acf64e9e66d9ee7fd0cb1536fd8c9940c6728112 (commit)
via 2d1d4ca5791875896194f625d7be0261353b8730 (commit)
via 0f12b4e58217ed2d8c085cf3a0328d1d8e014e9d (commit)
via fb846e72510040325bffd8f755180ea0025108dc (commit)
via 45663fac93d772deb093c3332bb8f2486713ec06 (commit)
via cc2b6369c797e6f13b0c757a9663d591a408ea8f (commit)
via ff30927367850cba3d7cc7a061acf74c72c1fc79 (commit)
via 0c69efc4cc258a5ac7e5eae58d740cd265d45831 (commit)
via b92971c9821da313730ccdcf75cb73633f041e4d (commit)
via c74224bac8b9a09261c38227ad89db82943e61ab (commit)
via 94573bb92d84fcd2a7197eaa28ad287a63a9050f (commit)
via 906fff3db29ecc9d0ed78a5df7caa1b95eb22792 (commit)
via 18a6250849038236a8ac938dff2babf1d9b5084e (commit)
via 65bc9f860f7c7fd3f1b502a794e14f3bc4ccf5c9 (commit)
via ec4723c73bb1432c5f00453f85e4175dafae21b9 (commit)
via e4f80798d60e87ac96ad560095112670e9b301ab (commit)
via c09f2e4670399aff5b8477bf71e297de96a918df (commit)
via c77a1a1c33daca25fd78559d0235851b2d92e301 (commit)
via 2331390497b6478e779b54d1733fadd9d1b92fb8 (commit)
via a9f7dcd03f0f5914d4b30d8dd49628166e9bbe80 (commit)
via 6d770a24a208212ba657a578f0ebf0b0729d44f5 (commit)
via ed16bf299a53c403d53c35a34335495b412a01bd (commit)
via 938e334dd2164687fdfc4c6ca7269c488bf68329 (commit)
via c4fecec8501952baaa43bd270d22eb44dfa90155 (commit)
via 428448a778dec10affa5dc60f511185f5e6c5d0a (commit)
via e9b58810822847b48c0dc6e20e3c9fbe86df2c3c (commit)
via 70bcf84f9f23e660efadcb2326b3ba44864a3763 (commit)
via 9a636a895cc433584d90515e57142c5d29fd7492 (commit)
via ceb2066155b8706520e380f2c97badbef68b97ba (commit)
via ecf04df8cde7ab1a0fd92a0379640b479feb99d4 (commit)
via 529df7aae72eac86e1d5372046ec56ec6cc33145 (commit)
via 782a8d5b4b4bb12b46db983d5fe5c8950a51ab4f (commit)
via 29807fceccfd80ae6567634dfabfcd814383693e (commit)
via 11653928654450f7773cf69b7f636aba94d57a39 (commit)
via b8bf95f37125d189cd4554dfeabc331dddc907a2 (commit)
via 77164cf356e522ffa80fc3d85de62355d3feaf65 (commit)
via e52a28b29c8fe95a13a0b7a58d8e3a880ba21155 (commit)
via 8cc55d978e6804f76e49d4b1acd7d45d817155bf (commit)
via 2291236d08ee9692fd0611ee1321c309ef241f9e (commit)
via 864973e52f730c54999fabe9276f6f0b05bd4720 (commit)
via 5dc21937d50c07ec53a800a23ff5a9903c2d36ed (commit)
via 6ff6829cdd4567d4fa8e03375aa3b706ae906718 (commit)
via f69a4d66715f75f8401571c4d9a2d584edf0a8f0 (commit)
via 99bcc6f7301d7f65f6eb97b6381eeb885c7b9528 (commit)
via 937cb923ef520b63aeff0d4b971abb29af05d5b0 (commit)
via b1f8e8c83102322b4f0a234499c9849708129d9b (commit)
via 948adb64dd234f84cd29e965d5fdb048255f6ef5 (commit)
via 4751ac68d82def483f8b35eca133da78db09a12a (commit)
via ef1627ca9c43016d2da071ed5ba61fc1299505dc (commit)
via 72c9a2fc4ef8ea42ac73847865c46bae583c1c88 (commit)
via 57c1cfefed9d946b9bf5849587cca013c644ddff (commit)
via e87d6c313d172c51a3e9fb11120924ca55d4b0d7 (commit)
via fdf9046b682ee56a8f079ac0f11a31934b50f111 (commit)
via 74c37a5632d5473c7e76d73e9b6440d477e248f0 (commit)
via 53ac205615a3d401754ca890cdb88e7a26b239db (commit)
via ea31146e178b2351acba56bf3585fcd9b89456db (commit)
via 38f11f42e673260f2f3fc34746f76a45accd279c (commit)
via 62c7b831f7e55a5c3689209f65d80d119794b7e2 (commit)
via 0c069cacfdf534dc23c8b43d60364bee267e802d (commit)
via fbcdb325484fb52ccedd03b65603c3f01a0783a2 (commit)
via d0883c92e9558e179f737a08e7648ad0ab4881fe (commit)
via 908f6fdbadc2a5c22d48d350aa8799bfe4439b3d (commit)
via de14cf56e232421829aa0eddeec5cb0b12fa7eb6 (commit)
via 6a4e2f261b6af21cf465e203e2b098aba650bdb5 (commit)
via 935370feb01920208ec5c099f3130d3f1a30bbeb (commit)
via 5ffbb8cc56028dd2e4fbfff44a35e07b592b5b09 (commit)
via 815ca023125e4dc2e90938816c56e7ea1089191a (commit)
via ebc2a8081dfb5113218d1d46e74d0325988f8744 (commit)
via 90f5af282d2955c84854332e42653d5e7c26bb7f (commit)
via bae23351f8599a031ac17a6aebf44ef87038b269 (commit)
via f3e7fc895444d040bfe19f001e96bf54b753253b (commit)
from 82a33011e68dd5e799925f98b5552ac14e152fc6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 11e5303a1692a63cd2e17604abc7742561388af6
Merge: 82a3301 704aecb
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Wed Sep 1 11:29:22 2010 -0400
Merge remote branch 'gdb/master'
commit 704aecbf881712c85309380d667f1efbb2382d2b
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Sep 1 13:51:34 2010 +0000
* netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
(netbsd_core_file_pid): ... this.
commit 5199ead275c904353432135fbb07c7ecafe8e9a5
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Sep 1 07:50:47 2010 +0000
2010-09-01 Tristan Gingold <gingold@adacore.com>
* coffcode.h (coff_slurp_line_table): Add a cast.
(coff_slurp_reloc_table): Ditto.
commit 2a8dee40e26adadd6565a0b046ae89b1d59cb8eb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 1 01:56:04 2010 +0000
Compile memmem.o without -Werror.
This reproduces the same approach as in GDB to allow us to build
specific files without -Werror.
gdb/gdbserver/ChangeLog:
* Makefile.in (INTERNAL_CFLAGS_BASE): New variable. Extracted
from INTERNAL_CFLAGS.
(INTERNAL_WARN_CFLAGS): New variable.
(INTERNAL_CFLAGS): Adjust, using INTERNAL_WARN_CFLAGS.
commit ee6f8e04736482d5a77b9b03b53e523e76b44563
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 1 01:53:42 2010 +0000
use xsnprintf instead of snprintf.
snprintf is not available on LynxOS, so I changed the calls to snprintf
to calls to xsnprintf, which should be strictly equivalent.
gdb/gdbserver/ChangeLog:
* utils.c (xsnprintf): Make non-static.
* server.h: Add xsnprintf declaration.
* linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
replace calls to snprintf by calls to xsnprintf throughout.
commit 881fc314b01fe886c0642a0cbb1a09f78d85e1cf
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 1 01:51:05 2010 +0000
include alloca.h if available.
On LynxOS, alloca is defined in allocal.h. This fixes one warning that
occurs when building GDBserver for LynxOS.
gdb/gdbserver/ChangeLog:
* configure.ac: Add configure check for alloca.
* configure, config.in: Regenerate.
* server.h: Include alloca.h if it exists.
* gdbreplay.c: Include alloca.h if it exists.
commit 92a09fd6ac19834a5f7c6b1b952beda46c725f0d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 1 00:00:34 2010 +0000
*** empty log message ***
commit abd0f09d595b12d4b7fd6912d307ec2bf31abdbc
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Sep 1 00:00:05 2010 +0000
daily update
commit 5205a74e90b0a2df6371e33039f908e0cc65a101
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 31 21:56:57 2010 +0000
Fix "pushw imm16" for x86-64 disassembler.
gas/testsuite/
2010-08-31 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/11960
* gas/i386/opcode-intel.d: Updated.
* gas/i386/x86-64-opcode.d: Likewise.
* gas/i386/x86-64-opcode.s: Add a "pushw imm16" test.
opcodes/
2010-08-31 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/11960
* i386-dis.c (sIv): New.
(dis386): Replace Iq with sIv on "pushT".
(reg_table): Replace T with {T|} on callT, JcallT, jmpT and JjmpT.
(x86_64_table): Replace {T|}/{P|} with P.
(putop): Add 'w' to 'T'/'P' if needed for Intel syntax.
(OP_sI): Update v_mode. Remove w_mode.
commit 3cf2892284020e27403d7e60cee9b2654a154cc4
Author: swagiaal <swagiaal>
Date: Tue Aug 31 20:10:42 2010 +0000
Create and use a specialized bcache type for psymbols
2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
* symfile.c (reread_symbols): Use psymbol_bcache_free, and
psymbol_bcache_init.
* psymtab.h (psymbol_bcache_init): New function prototype.
(psymbol_bcache_free): New function prototype.
(psymbol_bcache_get_bcache): New function prototype.
* psymtab.c (psymbol_bcache_init): New function.
(psymbol_bcache_free): New function.
(psymbol_bcache_full): New function.
(psymbol_bcache_get_bcache): New function.
(add_psymbol_to_bcache): use psymbol_bcache_full.
* objfiles.h (psymbol_cache): Change type of psymbol_cache to
psymbol_bcache.
* symmisc.c (print_symbol_bcache_statistics): Updated.
(print_objfile_statistics): Updated.
* objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
psymbol_cache.
(free_objfile): Use psymbol_bcache_free.
commit 2aff8d5fea40a80b77a1c26e866170c7acdf2051
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Aug 31 20:03:20 2010 +0000
PR c++/11961:
* dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
Don't set TYPE_NAME on the type.
commit a5c45328d359d9c2f67b19618b7e3b8634d5777e
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue Aug 31 19:31:00 2010 +0000
2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* infrun.c (set_exec_direction_func): Error out if target does not
support reverse execution.
commit acf64e9e66d9ee7fd0cb1536fd8c9940c6728112
Author: Doug Evans <dje@google.com>
Date: Tue Aug 31 18:40:09 2010 +0000
* gdb.dwarf2/dw4-sig-types.exp: Use .x for executable name.
commit 2d1d4ca5791875896194f625d7be0261353b8730
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Aug 31 18:11:48 2010 +0000
gdb/
Make linux_get_siginfo_type `type *' unique.
* linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
(init_linux_gdbarch_data, get_linux_gdbarch_data): New.
(linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
(_initialize_linux_tdep): New.
commit 0f12b4e58217ed2d8c085cf3a0328d1d8e014e9d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Aug 31 18:08:42 2010 +0000
gdb/
Code cleanup.
* defs.h (find_memory_region_ftype): New typedef.
(exec_set_find_memory_regions): Use it.
* exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
* fbsd-nat.c (fbsd_find_memory_regions): Likewise.
* gcore.c (objfile_find_memory_regions): Likewise.
* gnu-nat.c (gnu_find_memory_regions): Likewise.
* linux-nat.c (linux_nat_find_memory_regions): Likewise.
* procfs.c (iterate_over_mappings_cb_ftype): Remove.
(iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
find_memory_region_ftype.
(insert_dbx_link_bpt_in_region): Likewise.
(iterate_over_mappings): Likewise. Drop the comment part about the
function prototype.
(find_memory_regions_callback): Use find_memory_region_ftype.
(proc_find_memory_regions): Likewise.
(info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
find_memory_region_ftype.
* target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
* target.h (struct target_ops) <to_find_memory_regions>: Likewise.
commit fb846e72510040325bffd8f755180ea0025108dc
Author: swagiaal <swagiaal>
Date: Tue Aug 31 17:26:06 2010 +0000
Enable custom bcache hash function.
2010-08-25 Sami Wagiaalla <swagiaal@redhat.com>
* psymtab.c (add_psymbol_to_bcache): Remove 'static' from
'static partial_symbol psymbol'.
(psymbol_hash): New function.
(psymbol_compare): New function.
* bcache.c (hash_continue): New.
(hash): Use hash_continue.
* bcache.c: Add hash_function and compare_function
pointers to bcache struct.
(bcache_full): Use bcache->hash_function, and
bcache->compare_function.
(bcache_compare): New function.
(bcache_xmalloc): Take hash_function and
compare_function arguments and initialize the
bcach's pointers.
Updated comment.
* objfiles.c (allocate_objfile): Updated.
* symfile.c (reread_symbols): Updated.
* python/py-type.c (typy_richcompare): Updated.
commit 45663fac93d772deb093c3332bb8f2486713ec06
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 31 14:45:41 2010 +0000
Remove an extra "@item".
2010-08-31 H.J. Lu <hongjiu.lu@intel.com>
* gdb.texinfo (i386 Features): Remove an extra "@item".
commit cc2b6369c797e6f13b0c757a9663d591a408ea8f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 31 00:00:34 2010 +0000
*** empty log message ***
commit ff30927367850cba3d7cc7a061acf74c72c1fc79
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Aug 31 00:00:05 2010 +0000
daily update
commit 0c69efc4cc258a5ac7e5eae58d740cd265d45831
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Aug 30 20:28:27 2010 +0000
gdb
2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
Tom Tromey <tromey@redhat.com>
PR python/11792:
* python/py-value.c (valpy_get_dynamic_type): New function.
(value_object_getset): Add "dynamic_type".
(valpy_get_type): Fail on error.
gdb/doc
PR python/11792:
* gdb.texinfo (Values From Inferior): Document dynamic_type.
gdb/testsuite
PR python/11792:
* gdb.python/py-value.exp (test_subscript_regression): Add
dynamic_type test.
commit b92971c9821da313730ccdcf75cb73633f041e4d
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Aug 30 17:38:10 2010 +0000
* gdb.cp/cpexprs.exp (test_breakpoint): Continue to test_function
instead of running to main. Do not test the main function.
* gdb/testsuite/gdb.cp/cpexprs.cc (main): Rename to test_function.
Add new main.
commit c74224bac8b9a09261c38227ad89db82943e61ab
Author: qiyao <qiyao>
Date: Mon Aug 30 15:26:28 2010 +0000
2010-08-30 Yao Qi <yao@codesourcery.com>
* arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
(arm_linux_syscall_next_pc): New.
(arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
(arm_linux_init_abi): Initialize syscall_next_pc.
* arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
(arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
* arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
Declare arm_frame_is_thumb.
commit 94573bb92d84fcd2a7197eaa28ad287a63a9050f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Aug 30 09:49:11 2010 +0000
gdb/
Code cleanup.
* breakpoint.c (bpstat_alloc): Remove unused prototype.
(bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
code.
(bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
calls of bpstat_alloc. Remove explicit bs chain termination.
commit 906fff3db29ecc9d0ed78a5df7caa1b95eb22792
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Aug 30 09:35:25 2010 +0000
* cisco-core.c (cisco_core_file_pid): Define.
commit 18a6250849038236a8ac938dff2babf1d9b5084e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Aug 30 06:01:19 2010 +0000
PR binutils/11953
* elf.c (copy_elf_program_header): Calculate map->header_size
from lowest_section, not first_section. Validate program
header p_paddr against section lma. Find lowest_section in
second loop over headers.
commit 65bc9f860f7c7fd3f1b502a794e14f3bc4ccf5c9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 30 00:00:34 2010 +0000
*** empty log message ***
commit ec4723c73bb1432c5f00453f85e4175dafae21b9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Aug 30 00:00:05 2010 +0000
daily update
commit e4f80798d60e87ac96ad560095112670e9b301ab
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Aug 29 00:00:06 2010 +0000
daily update
commit c09f2e4670399aff5b8477bf71e297de96a918df
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 29 00:00:03 2010 +0000
*** empty log message ***
commit c77a1a1c33daca25fd78559d0235851b2d92e301
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Aug 28 14:51:29 2010 +0000
* linux-low.c (__SIGRTMIN): Define if not already defined.
(linux_create_inferior): Check for __ANDROID__ rather than
__SIGRTMIN.
(enqueue_one_deferred_signal): Don't requeue non-RT signals that
are already deferred.
(linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
(linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
stopped and already has a pending signal to report.
(proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
a pending signal to report or is moving out of a jump pad.
(linux_init_signals): Check for __ANDROID__ rather than
__SIGRTMIN.
commit 2331390497b6478e779b54d1733fadd9d1b92fb8
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Aug 28 14:03:27 2010 +0000
* linux-low.c (linux_stabilize_threads): Wrap debug output in a
debug_threads check. Avoid a linear search when not doing debug
output.
commit a9f7dcd03f0f5914d4b30d8dd49628166e9bbe80
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Aug 28 08:38:24 2010 +0000
gdb/
Code cleanup.
* linux-nat.c (pull_pid_from_list): Rename status to statusp.
(my_waitpid): Likewise.
commit 6d770a24a208212ba657a578f0ebf0b0729d44f5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Aug 28 04:04:15 2010 +0000
* elflink.c (_bfd_elf_dynamic_symbol_p): Rename param. Make
common syms local.
(_bfd_elf_symbol_refs_local_p): Expand comment.
(elf_link_output_extsym): Fix style nit.
commit ed16bf299a53c403d53c35a34335495b412a01bd
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Aug 28 00:00:05 2010 +0000
daily update
commit 938e334dd2164687fdfc4c6ca7269c488bf68329
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Aug 28 00:00:03 2010 +0000
*** empty log message ***
commit c4fecec8501952baaa43bd270d22eb44dfa90155
Author: Doug Evans <dje@google.com>
Date: Fri Aug 27 23:09:58 2010 +0000
* dwarf2read.c (dw2_require_line_header): Read from .debug_types
as appropriate.
commit 428448a778dec10affa5dc60f511185f5e6c5d0a
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Aug 27 21:03:39 2010 +0000
* dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
TYPE_FIELD_IGNORE_BITS.
commit e9b58810822847b48c0dc6e20e3c9fbe86df2c3c
Author: Doug Evans <dje@google.com>
Date: Fri Aug 27 16:36:58 2010 +0000
* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
the order they're defined in. munmap .debug_types buffer.
commit 70bcf84f9f23e660efadcb2326b3ba44864a3763
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Aug 27 16:02:48 2010 +0000
* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
(struct gdb_event) <fd>: Change type to gdb_fildes_t.
(struct file_handler) <fd>: Change type to gdb_fildes_t.
(process_event): Change local fd's type to gdb_fildes_t.
(create_file_handler): Adjust prototype.
(delete_file_handler): Adjust prototype.
(handle_file_event): Adjust prototype. Use pfildes.
(create_file_event): Adjsut prototype.
* remote-utils.c (remote_desc, listen_desc): Change type to
gdb_fildes_t.
* server.h: New gdb_fildes_t typedef.
[USE_WIN32API]: Include winsock2.h.
(delete_file_handler, add_file_handler): Adjust prototypes.
(pfildes): Declare.
* utils.c (pfildes): New.
commit 9a636a895cc433584d90515e57142c5d29fd7492
Author: Nathan Froyd <froydnj@codesourcery.com>
Date: Fri Aug 27 13:59:55 2010 +0000
opcodes/
* ppc-opc.c (powerpc_opcodes) [lswx,lswi,stswx,stswi]: Deprecate
on E500 and E500MC.
commit ceb2066155b8706520e380f2c97badbef68b97ba
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Aug 27 12:02:17 2010 +0000
Fix whitespace, tabs/spaces.
commit ecf04df8cde7ab1a0fd92a0379640b479feb99d4
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Aug 27 10:20:07 2010 +0000
* configure.ac (build_warnings): Add -Wno-char-subscripts.
* configure: Regenerate.
commit 529df7aae72eac86e1d5372046ec56ec6cc33145
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Aug 27 00:16:48 2010 +0000
* linux-low.c (linux_unprepare_to_access_memory): Rename to ...
(linux_done_accessing_memory): ... this.
(linux_target_ops): Adjust.
* linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
* nto-low.c (nto_target_ops): Adjust comment.
* server.c (gdb_read_memory, gdb_write_memory): Adjust.
* spu-low.c (spu_target_ops): Adjust comment.
* target.h (target_ops): Rename unprepare_to_access_memory field
to done_accessing_memory.
(unprepare_to_access_memory): Rename to ...
(done_accessing_memory): ... this.
commit 782a8d5b4b4bb12b46db983d5fe5c8950a51ab4f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Aug 27 00:00:05 2010 +0000
daily update
commit 29807fceccfd80ae6567634dfabfcd814383693e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Aug 27 00:00:02 2010 +0000
*** empty log message ***
commit 11653928654450f7773cf69b7f636aba94d57a39
Author: Doug Evans <dje@google.com>
Date: Thu Aug 26 23:36:53 2010 +0000
* dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
(dw2_forget_cached_source_info): Rename local cu to per_cu.
(dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
(dw2_print_stats, dw2_expand_all_symtabs): Ditto.
(dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
(dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
(dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
(dwarf2_free_objfile, write_one_signatured_type): Ditto.
(write_psymtabs_to_index): Ditto.
commit b8bf95f37125d189cd4554dfeabc331dddc907a2
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 26 23:17:21 2010 +0000
* linux-low.c (linux_prepare_to_access_memory): New.
(linux_unprepare_to_access_memory): New.
(linux_target_ops): Install them.
* server.c (read_memory): Rename to ...
(gdb_read_memory): ... this. Use
prepare_to_access_memory/prepare_to_access_memory.
(write_memory): Rename to ...
(gdb_write_memory): ... this. Use
prepare_to_access_memory/prepare_to_access_memory.
(handle_search_memory_1): Adjust.
(process_serial_event): Adjust.
* target.h (struct target_ops): New fields
prepare_to_access_memory and unprepare_to_access_memory.
(prepare_to_access_memory, unprepare_to_access_memory): New.
* linux-x86-low.c (x86_insert_point, x86_remove_point): Use
prepare_to_access_memory/prepare_to_access_memory.
* nto-low.c (nto_target_ops): Adjust.
* spu-low.c (spu_target_ops): Adjust.
* win32-low.c (win32_target_ops): Adjust.
commit 77164cf356e522ffa80fc3d85de62355d3feaf65
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 26 19:47:22 2010 +0000
* NEWS: Mention libthread_db debugging with core files.
commit e52a28b29c8fe95a13a0b7a58d8e3a880ba21155
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 26 18:36:28 2010 +0000
* Makefile.in (WARN_CFLAGS): Get it from configure.
(WERROR_CFLAGS): New.
(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
* configure.ac: Introduce --enable-werror, which adds -Werror to
the compiler command line. Enabled by default. Disable with
--disable-werror. Add -Wdeclaration-after-statement
Wpointer-arith and -Wformat-nonliteral to warning flags.
* configure: Regenerate.
commit 8cc55d978e6804f76e49d4b1acd7d45d817155bf
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 26 18:03:02 2010 +0000
* Makefile.in (WARN_CFLAGS): Get it from configure.
(WERROR_CFLAGS): New.
(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
* configure.ac: Introduce --enable-werror, which adds -Werror to
the compiler command line. Enabled by default. Disable with
--disable-werror. Add -Wdeclaration-after-statement
Wpointer-arith and -Wformat-nonliteral to warning flags.
* configure: Regenerate.
commit 2291236d08ee9692fd0611ee1321c309ef241f9e
Author: Doug Evans <dje@google.com>
Date: Thu Aug 26 16:47:54 2010 +0000
* dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
forward decl. Pass pst->dirname to dwarf_decode_lines.
(psymtab_include_file_name): New function.
(dwarf_decode_lines): Call it. Update comments.
commit 864973e52f730c54999fabe9276f6f0b05bd4720
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 26 16:47:05 2010 +0000
* mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
commit 5dc21937d50c07ec53a800a23ff5a9903c2d36ed
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 26 16:24:41 2010 +0000
* gdbreplay.c (remote_error): New.
(gdbchar): New.
(expect): Use gdbchar. Check for error reading from GDB.
Clarify sync error output.
(play): Check for errors writing to GDB.
* linux-low.c (sigchld_handler): Really ignore `write' errors.
* remote-utils.c (getpkt): Check for errors writing to the remote
descriptor.
commit 6ff6829cdd4567d4fa8e03375aa3b706ae906718
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 26 14:53:44 2010 +0000
* gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect in
one test.
commit f69a4d66715f75f8401571c4d9a2d584edf0a8f0
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Thu Aug 26 10:32:25 2010 +0000
* elf32-arm.c (elf32_arm_final_link): Process stub sections
exactly once.
commit 99bcc6f7301d7f65f6eb97b6381eeb885c7b9528
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Aug 26 00:00:05 2010 +0000
daily update
commit 937cb923ef520b63aeff0d4b971abb29af05d5b0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Aug 26 00:00:03 2010 +0000
*** empty log message ***
commit b1f8e8c83102322b4f0a234499c9849708129d9b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Aug 25 20:35:58 2010 +0000
Don't set unique_global for non-ELF hash link table.
2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11939
* elflink.c (elf_link_add_object_symbols): Don't set
unique_global for non-ELF hash link table.
commit 948adb64dd234f84cd29e965d5fdb048255f6ef5
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Aug 25 18:20:04 2010 +0000
* dwarf2read.c (inherit_abstract_dies): Handle origin die's
compilation unit being different from target die's.
commit 4751ac68d82def483f8b35eca133da78db09a12a
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Aug 25 16:49:04 2010 +0000
* linux-low.c (linux_wait_1): Move non-debugging code out of
`debug_threads' control.
commit ef1627ca9c43016d2da071ed5ba61fc1299505dc
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Aug 25 16:27:05 2010 +0000
* linux-low.c (linux_wait_1): Don't set last_status here.
* server.c (push_event, queue_stop_reply_callback): Assert we're
not pushing a TARGET_WAITKIND_IGNORE event.
(start_inferior, start_inferior, attach_inferior, handle_v_cont)
(myresume, handle_target_event): Set the thread's last_resume_kind
and last_status from the target returned status.
commit 72c9a2fc4ef8ea42ac73847865c46bae583c1c88
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Aug 25 14:53:37 2010 +0000
Add target_id to elf_backend_data.
2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11944
* elf-bfd.h (elf_backend_data): Add target_id.
(bfd_elf_make_generic_object): Renamed to ...
(bfd_elf_make_object): This.
* elf.c (bfd_elf_make_generic_object): Removed.
(bfd_elf_make_object): New.
(bfd_elf_mkcorefile): Really treat it as an object file.
* elf-m10300.c (ELF_TARGET_ID): New.
* elf32-arm.c (ELF_TARGET_ID): Likewise.
* elf32-bfin.c (ELF_TARGET_ID): Likewise.
* elf32-cris.c (ELF_TARGET_ID): Likewise.
* elf32-frv.c (ELF_TARGET_ID): Likewise.
* elf32-i386.c (ELF_TARGET_ID): Likewise.
* elf32-lm32.c (ELF_TARGET_ID): Likewise.
* elf32-m32r.c (ELF_TARGET_ID): Likewise.
* elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
* elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
* elf32-m68k.c (ELF_TARGET_ID): Likewise.
* elf32-microblaze.c (ELF_TARGET_ID): Likewise.
* elf32-ppc.c (ELF_TARGET_ID): Likewise.
* elf32-s390.c (ELF_TARGET_ID): Likewise.
* elf32-sh.c (ELF_TARGET_ID): Likewise.
* elf32-sparc.c (ELF_TARGET_ID): Likewise.
* elf32-spu.c (ELF_TARGET_ID): Likewise.
* elf32-tic6x.c (ELF_TARGET_ID): Likewise.
* elf32-xtensa.c (ELF_TARGET_ID): Likewise.
* elf64-alpha.c (ELF_TARGET_ID): Likewise.
* elf64-hppa.c (ELF_TARGET_ID): Likewise.
* elf64-ppc.c (ELF_TARGET_ID): Likewise.
* elf64-s390.c (ELF_TARGET_ID): Likewise.
* elf64-x86-64.c (ELF_TARGET_ID): Likewise.
* elfxx-ia64.c (ELF_TARGET_ID): Likewise.
* elf32-hppa.c (elf32_hppa_mkobject): Removed.
(bfd_elf32_mkobject): Likewise.
(ELF_TARGET_ID): New.
* elf32-mips.c (ELF_TARGET_ID): New.
(bfd_elf32_mkobject): Removed.
* elf64-mips.c (ELF_TARGET_ID): New.
(bfd_elf64_mkobject): Removed.
* elfn32-mips.c (ELF_TARGET_ID): New.
(bfd_elf32_mkobject): Removed.
* elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
* elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
* elfxx-target.h (bfd_elfNN_mkobject): Default to
bfd_elf_make_object.
(ELF_TARGET_ID): New. Default to GENERIC_ELF_DATA.
(elfNN_bed): Initialize target_id.
commit 57c1cfefed9d946b9bf5849587cca013c644ddff
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Aug 25 14:40:21 2010 +0000
PR threads/10729
* linux-x86-low.c (update_debug_registers_callback): New.
(i386_dr_low_set_addr): Use it.
(i386_dr_low_get_addr): New.
(i386_dr_low_set_control): Use update_debug_registers_callback.
(i386_dr_low_get_control): New.
(i386_dr_low_get_status): Adjust.
* linux-low.c (linux_stop_lwp): New.
* linux-low.h (linux_stop_lwp): Declare.
* i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
argument instead of a i386_debug_reg_state.
(I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
a i386_debug_reg_state.
(i386_insert_aligned_watchpoint): Adjust.
(i386_remove_aligned_watchpoint): Adjust.
(i386_low_stopped_data_address): Read the debug registers from the
inferior instead of from the mirrors.
* i386-low.h (struct i386_debug_reg_state): Extend comment.
(i386_dr_low_get_addr): Declare.
(i386_dr_low_get_control): Declare.
(i386_dr_low_get_status): Change prototype.
* win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
(i386_dr_low_get_addr): New.
(i386_dr_low_get_control): New.
(i386_dr_low_get_status): Adjust prototype. Return
dr_status_mirror.
(i386_initial_stuff): Clear dr_status_mirror and
dr_control_mirror.
(i386_get_thread_context): Adjust.
(i386_set_thread_context): Adjust.
(i386_thread_added): Adjust.
commit e87d6c313d172c51a3e9fb11120924ca55d4b0d7
Author: Julian Brown <julian@codesourcery.com>
Date: Wed Aug 25 12:37:27 2010 +0000
bfd/
* elf32-arm.c (arm_stub_required_alignment): New.
(arm_build_one_stub): Use above to partition stubs.
(make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
arm_stub_a8_veneer_b_cond.
ld/testsuite/
* ld-arm/arm-elf.exp (armelftests): Add cortex-a8-fix-blx-bcond.s.
* ld-arm/cortex-a8-fix-blx-bcond.s: New.
* ld-arm/cortex-a8-fix-blx-bcond.d: New.
commit fdf9046b682ee56a8f079ac0f11a31934b50f111
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Aug 25 07:02:40 2010 +0000
* aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
* aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
* aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
* coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
* elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
* reloc.c (bfd_default_reloc_type_lookup): Likewise.
* riscix.c (riscix_reloc_type_lookup): Likewise.
commit 74c37a5632d5473c7e76d73e9b6440d477e248f0
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Aug 25 06:49:54 2010 +0000
* elf.c (_bfd_elf_map_sections_to_segments): Don't load program
headers if any loaded section wraps the address space. Simplify
~(m-1) to -m. Use lma rather than vma when determining whether
note sections are adjacent.
commit 53ac205615a3d401754ca890cdb88e7a26b239db
Author: Doug Evans <dje@google.com>
Date: Wed Aug 25 00:09:11 2010 +0000
PR symtab/11942
* dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
debug_types_type_hash.
(dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
All uses updated.
(lookup_die_type): Renamed from tag_type_to_tag. First look in
appropriate type_hash table. All callers updated.
(allocate_signatured_type_table): Renamed from
allocate_signatured_type_hash_table. All callers updated.
(create_signatured_type_table_from_index): Renamed from
create_signatured_type_hash_from_index. All callers updated.
(read_die_type): Add comment. Move actual reading to ...
(read_die_type_1): ... here. New function.
(follow_die_ref_or_sig): Tweak comment.
(set_die_type): Rewrite to use appropriate choice of
debug_info_type_hash or debug_types_type_hash.
(get_die_type_at_offset): New function.
(get_die_type): Call it.
testsuite/
PR symtab/11942
* gdb.dwarf2/dw4-sig-types.cc: New file.
* gdb.dwarf2/dw4-sig-types.h: New file.
* gdb.dwarf2/dw4-sig-types-b.cc: New file.
* gdb.dwarf2/dw4-sig-types.exp: New file.
commit ea31146e178b2351acba56bf3585fcd9b89456db
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Aug 25 00:00:34 2010 +0000
*** empty log message ***
commit 38f11f42e673260f2f3fc34746f76a45accd279c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Aug 25 00:00:05 2010 +0000
daily update
commit 62c7b831f7e55a5c3689209f65d80d119794b7e2
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Aug 24 20:13:15 2010 +0000
* linux-low.h (linux_thread_area): Delete declaration.
commit 0c069cacfdf534dc23c8b43d60364bee267e802d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Aug 24 17:24:24 2010 +0000
gdb/
* python/py-type.c (typy_richcompare): Initialize worklist.
commit fbcdb325484fb52ccedd03b65603c3f01a0783a2
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Aug 24 15:56:12 2010 +0000
* arm-tdep.c: Include features/arm-with-m.c.
(arm_psr_thumb_bit): New. Update all uses of CPSR_T to
call this function.
(arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
Check is_m after force-mode.
(arm_gdbarch_init): Check the binary before the target description.
Add check for M profile attribute. If we have an M-profile device,
but no target register description, use arm-with-m. Recognize the
new org.gnu.gdb.arm.m-profile feature and its xpsr register.
(_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
* arm-tdep.h (XPSR_T): Define.
(struct gdbarch_tdep): Add is_m member.
* features/arm-m-profile.xml, features/arm-with-m.c,
features/arm-with-m.xml: New files.
doc/
* gdb.texinfo (ARM Features): Document
org.gnu.gdb.arm.m-profile.
commit d0883c92e9558e179f737a08e7648ad0ab4881fe
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Tue Aug 24 01:14:37 2010 +0000
* sim/cris/asm/nonvcv32.ms: Neutralize changed &&-in-macro gas syntax.
commit 908f6fdbadc2a5c22d48d350aa8799bfe4439b3d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Aug 24 00:00:06 2010 +0000
daily update
commit de14cf56e232421829aa0eddeec5cb0b12fa7eb6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 24 00:00:03 2010 +0000
*** empty log message ***
commit 6a4e2f261b6af21cf465e203e2b098aba650bdb5
Author: Doug Evans <dje@google.com>
Date: Mon Aug 23 21:49:26 2010 +0000
* dwarf2read.c (set_die_type): Fix typo in comment.
commit 935370feb01920208ec5c099f3130d3f1a30bbeb
Author: Doug Evans <dje@google.com>
Date: Mon Aug 23 21:44:36 2010 +0000
* dwarf2read.c (read_structure_type): Add comment.
(read_enumeration_type): Add comment.
(process_enumeration_scope): Move definition of some locals
closer to their use.
(read_namespace_type): Add comment.
commit 5ffbb8cc56028dd2e4fbfff44a35e07b592b5b09
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Aug 23 20:29:19 2010 +0000
gdb
PR python/11145:
* python/py-value.c: Include expression.h.
(valpy_do_cast): New function.
(valpy_cast): Use it.
(valpy_dynamic_cast): New function.
(valpy_reinterpret_cast): Likewise.
(value_object_methods): Add dynamic_cast, reinterpret_cast.
gdb/doc
PR python/11145:
* gdb.texinfo (Values From Inferior): Document dynamic_cast and
reinterpret_cast methods.
gdb/testsuite
PR python/11145:
* gdb.python/py-value.c (Base, Derived): New types.
(base): New global.
* gdb.python/py-value.exp (test_subscript_regression): Add
dynamic_cast test.
commit 815ca023125e4dc2e90938816c56e7ea1089191a
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Aug 23 20:27:48 2010 +0000
PR python/11391:
* python/py-value.c (valpy_nonzero): Don't throw error for other
Value types.
commit ebc2a8081dfb5113218d1d46e74d0325988f8744
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Aug 23 20:26:09 2010 +0000
gdb
PR python/10676:
* python/py-type.c: Include bcache.h, vec.h.
(struct type_equality_entry): New.
(compare_strings): New function.
(check_types_equal): Likewise.
(check_types_worklist): Likewise.
(typy_richcompare): Likewise.
(type_object_type): Set tp_richcompare field.
gdb/testsuite
PR python/10676:
* gdb.python/py-type.exp (test_fields): Add tests for type
equality.
commit 90f5af282d2955c84854332e42653d5e7c26bb7f
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Aug 23 20:23:54 2010 +0000
PR python/10953:
* python/py-type.c (typy_fields): Call check_typedef.
(typy_template_argument): Add TRY_CATCH.
commit bae23351f8599a031ac17a6aebf44ef87038b269
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Aug 23 20:21:11 2010 +0000
gdb
PR python/11915:
* python/py-type.c (typy_array): New function.
(type_object_methods): Add "array".
gdb/doc
PR python/11915:
* gdb.texinfo (Types In Python): Document array method.
gdb/testsuite
PR python/11915:
* gdb.python/py-type.exp (test_fields): Add tests for array.
commit f3e7fc895444d040bfe19f001e96bf54b753253b
Author: Keith Seitz <keiths@redhat.com>
Date: Mon Aug 23 19:12:52 2010 +0000
* gdb.dwarf2/dw2-double-set-die-type.S: DIE 0x51f does not
have any children. Create a new abbrev for it.
Add missing terminal sequence to .debug_abbrev.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 124 +++-
bfd/aout-arm.c | 4 +-
bfd/aout-ns32k.c | 4 +-
bfd/aoutx.h | 2 +-
bfd/cisco-core.c | 3 +-
bfd/coff-arm.c | 4 +-
bfd/coffcode.h | 4 +-
bfd/elf-bfd.h | 6 +-
bfd/elf-hppa.h | 5 +-
bfd/elf-m10300.c | 1 +
bfd/elf.c | 81 ++-
bfd/elf32-arm.c | 59 ++-
bfd/elf32-avr.c | 1 +
bfd/elf32-bfin.c | 1 +
bfd/elf32-cris.c | 1 +
bfd/elf32-frv.c | 1 +
bfd/elf32-hppa.c | 11 +-
bfd/elf32-i386.c | 1 +
bfd/elf32-lm32.c | 1 +
bfd/elf32-m32r.c | 1 +
bfd/elf32-m68hc11.c | 1 +
bfd/elf32-m68hc12.c | 1 +
bfd/elf32-m68k.c | 1 +
bfd/elf32-microblaze.c | 1 +
bfd/elf32-mips.c | 2 +-
bfd/elf32-ppc.c | 1 +
bfd/elf32-s390.c | 1 +
bfd/elf32-sh.c | 1 +
bfd/elf32-sparc.c | 1 +
bfd/elf32-spu.c | 1 +
bfd/elf32-tic6x.c | 1 +
bfd/elf32-xtensa.c | 1 +
bfd/elf64-alpha.c | 1 +
bfd/elf64-hppa.c | 1 +
bfd/elf64-mips.c | 2 +-
bfd/elf64-ppc.c | 1 +
bfd/elf64-s390.c | 1 +
bfd/elf64-x86-64.c | 1 +
bfd/elflink.c | 21 +-
bfd/elfn32-mips.c | 2 +-
bfd/elfxx-ia64.c | 1 +
bfd/elfxx-mips.c | 9 -
bfd/elfxx-mips.h | 2 -
bfd/elfxx-target.h | 7 +-
bfd/netbsd-core.c | 2 +-
bfd/reloc.c | 2 +-
bfd/riscix.c | 4 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 298 +++++++-
gdb/NEWS | 25 +
gdb/arm-linux-tdep.c | 94 ++-
gdb/arm-tdep.c | 414 ++++++----
gdb/arm-tdep.h | 8 +
gdb/bcache.c | 49 +-
gdb/bcache.h | 8 +-
gdb/breakpoint.c | 31 +-
gdb/defs.h | 11 +-
gdb/doc/ChangeLog | 201 +++---
gdb/doc/gdb.texinfo | 38 +-
gdb/dwarf2read.c | 587 +++++++++-----
gdb/exec.c | 6 +-
gdb/fbsd-nat.c | 4 +-
gdb/features/arm-m-profile.xml | 27 +
gdb/features/arm-with-m.c | 35 +
gdb/features/arm-with-m.xml | 11 +
gdb/gcore.c | 4 +-
gdb/gdbserver/ChangeLog | 297 ++++++--
gdb/gdbserver/Makefile.in | 14 +-
gdb/gdbserver/config.in | 23 +
gdb/gdbserver/configure | 260 ++++++
gdb/gdbserver/configure.ac | 43 +
gdb/gdbserver/event-loop.c | 23 +-
gdb/gdbserver/gdbreplay.c | 39 +-
gdb/gdbserver/i386-low.c | 25 +-
gdb/gdbserver/i386-low.h | 16 +-
gdb/gdbserver/linux-low.c | 113 +++-
gdb/gdbserver/linux-low.h | 2 +-
gdb/gdbserver/linux-x86-low.c | 101 ++-
gdb/gdbserver/mem-break.c | 3 +
gdb/gdbserver/nto-low.c | 4 +-
gdb/gdbserver/remote-utils.c | 10 +-
gdb/gdbserver/server.c | 81 ++-
gdb/gdbserver/server.h | 18 +-
gdb/gdbserver/spu-low.c | 2 +
gdb/gdbserver/target.c | 16 +-
gdb/gdbserver/target.h | 29 +
gdb/gdbserver/thread-db.c | 4 +-
gdb/gdbserver/tracepoint.c | 8 +-
gdb/gdbserver/utils.c | 14 +-
gdb/gdbserver/win32-i386-low.c | 35 +-
gdb/gdbserver/win32-low.c | 2 +
gdb/gnu-nat.c | 6 +-
gdb/infrun.c | 5 +
gdb/linux-nat.c | 12 +-
gdb/linux-tdep.c | 33 +
gdb/objfiles.c | 8 +-
gdb/objfiles.h | 2 +-
gdb/procfs.c | 43 +-
gdb/psymtab.c | 107 +++-
gdb/psymtab.h | 8 +
gdb/python/py-type.c | 266 +++++++-
gdb/python/py-value.c | 137 +++-
gdb/symfile.c | 14 +-
gdb/symmisc.c | 6 +-
gdb/target.c | 2 +-
gdb/target.h | 6 +-
gdb/testsuite/ChangeLog | 825 +++++++++++---------
gdb/testsuite/gdb.cp/cpexprs.cc | 18 +-
gdb/testsuite/gdb.cp/cpexprs.exp | 17 +-
gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S | 22 +-
gdb/testsuite/gdb.dwarf2/dw4-sig-types-b.cc | 16 +
gdb/testsuite/gdb.dwarf2/dw4-sig-types.cc | 12 +
gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp | 43 +
gdb/testsuite/gdb.dwarf2/dw4-sig-types.h | 15 +
gdb/testsuite/gdb.mi/mi-nsmoribund.exp | 22 +-
gdb/testsuite/gdb.python/py-type.exp | 11 +
gdb/testsuite/gdb.python/py-value.c | 10 +
gdb/testsuite/gdb.python/py-value.exp | 12 +
gdb/version.in | 2 +-
opcodes/ChangeLog | 15 +
opcodes/i386-dis.c | 68 +-
opcodes/ppc-opc.c | 8 +-
sim/testsuite/ChangeLog | 4 +
sim/testsuite/sim/cris/asm/nonvcv32.ms | 8 +-
124 files changed, 3855 insertions(+), 1348 deletions(-)
create mode 100644 gdb/features/arm-m-profile.xml
create mode 100644 gdb/features/arm-with-m.c
create mode 100644 gdb/features/arm-with-m.xml
create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types-b.cc
create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types.cc
create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types.h
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7ae8300..7edf390 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,125 @@
+2010-09-01 Pedro Alves <pedro@codesourcery.com>
+
+ * netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
+ (netbsd_core_file_pid): ... this.
+
+2010-09-01 Tristan Gingold <gingold@adacore.com>
+
+ * coffcode.h (coff_slurp_line_table): Add a cast.
+ (coff_slurp_reloc_table): Ditto.
+
+2010-08-30 Gunther Nikl <gnikl@users.sourceforge.net>
+
+ * cisco-core.c (cisco_core_file_pid): Define.
+
+2010-08-30 Alan Modra <amodra@gmail.com>
+
+ PR binutils/11953
+ * elf.c (copy_elf_program_header): Calculate map->header_size
+ from lowest_section, not first_section. Validate program
+ header p_paddr against section lma. Find lowest_section in
+ second loop over headers.
+
+2010-08-28 Alan Modra <amodra@gmail.com>
+
+ * elflink.c (_bfd_elf_dynamic_symbol_p): Rename param. Make
+ common syms local.
+ (_bfd_elf_symbol_refs_local_p): Expand comment.
+ (elf_link_output_extsym): Fix style nit.
+
+2010-08-26 Nathan Sidwell <nathan@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_final_link): Process stub sections
+ exactly once.
+
+2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11939
+ * elflink.c (elf_link_add_object_symbols): Don't set
+ unique_global for non-ELF hash link table.
+
+2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11944
+ * elf-bfd.h (elf_backend_data): Add target_id.
+ (bfd_elf_make_generic_object): Renamed to ...
+ (bfd_elf_make_object): This.
+
+ * elf.c (bfd_elf_make_generic_object): Removed.
+ (bfd_elf_make_object): New.
+ (bfd_elf_mkcorefile): Really treat it as an object file.
+
+ * elf-m10300.c (ELF_TARGET_ID): New.
+ * elf32-arm.c (ELF_TARGET_ID): Likewise.
+ * elf32-bfin.c (ELF_TARGET_ID): Likewise.
+ * elf32-cris.c (ELF_TARGET_ID): Likewise.
+ * elf32-frv.c (ELF_TARGET_ID): Likewise.
+ * elf32-i386.c (ELF_TARGET_ID): Likewise.
+ * elf32-lm32.c (ELF_TARGET_ID): Likewise.
+ * elf32-m32r.c (ELF_TARGET_ID): Likewise.
+ * elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
+ * elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
+ * elf32-m68k.c (ELF_TARGET_ID): Likewise.
+ * elf32-microblaze.c (ELF_TARGET_ID): Likewise.
+ * elf32-ppc.c (ELF_TARGET_ID): Likewise.
+ * elf32-s390.c (ELF_TARGET_ID): Likewise.
+ * elf32-sh.c (ELF_TARGET_ID): Likewise.
+ * elf32-sparc.c (ELF_TARGET_ID): Likewise.
+ * elf32-spu.c (ELF_TARGET_ID): Likewise.
+ * elf32-tic6x.c (ELF_TARGET_ID): Likewise.
+ * elf32-xtensa.c (ELF_TARGET_ID): Likewise.
+ * elf64-alpha.c (ELF_TARGET_ID): Likewise.
+ * elf64-hppa.c (ELF_TARGET_ID): Likewise.
+ * elf64-ppc.c (ELF_TARGET_ID): Likewise.
+ * elf64-s390.c (ELF_TARGET_ID): Likewise.
+ * elf64-x86-64.c (ELF_TARGET_ID): Likewise.
+ * elfxx-ia64.c (ELF_TARGET_ID): Likewise.
+
+ * elf32-hppa.c (elf32_hppa_mkobject): Removed.
+ (bfd_elf32_mkobject): Likewise.
+ (ELF_TARGET_ID): New.
+
+ * elf32-mips.c (ELF_TARGET_ID): New.
+ (bfd_elf32_mkobject): Removed.
+
+ * elf64-mips.c (ELF_TARGET_ID): New.
+ (bfd_elf64_mkobject): Removed.
+
+ * elfn32-mips.c (ELF_TARGET_ID): New.
+ (bfd_elf32_mkobject): Removed.
+
+ * elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
+ * elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
+
+ * elfxx-target.h (bfd_elfNN_mkobject): Default to
+ bfd_elf_make_object.
+ (ELF_TARGET_ID): New. Default to GENERIC_ELF_DATA.
+ (elfNN_bed): Initialize target_id.
+
+2010-08-25 Julian Brown <julian@codesourcery.com>
+
+ * elf32-arm.c (arm_stub_required_alignment): New.
+ (arm_build_one_stub): Use above to partition stubs.
+ (make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
+ arm_stub_a8_veneer_b_cond.
+
+2010-08-25 Alan Modra <amodra@gmail.com>
+
+ * aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
+ * aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
+ * aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
+ * coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
+ * elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
+ * reloc.c (bfd_default_reloc_type_lookup): Likewise.
+ * riscix.c (riscix_reloc_type_lookup): Likewise.
+
+2010-08-25 Alan Modra <amodra@gmail.com>
+
+ * elf.c (_bfd_elf_map_sections_to_segments): Don't load program
+ headers if any loaded section wraps the address space. Simplify
+ ~(m-1) to -m. Use lma rather than vma when determining whether
+ note sections are adjacent.
+
2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11933
@@ -91,7 +213,7 @@
elf_tdata's core_lwpid instead of to core_pid.
* elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
-
+
* plugin.c (bfd_plugin_core_file_pid): New function.
* aout-target.h (MY_core_file_pid): Define.
* aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
diff --git a/bfd/aout-arm.c b/bfd/aout-arm.c
index 6e99b2e..9a5d155 100644
--- a/bfd/aout-arm.c
+++ b/bfd/aout-arm.c
@@ -1,6 +1,6 @@
/* BFD back-end for raw ARM a.out binaries.
Copyright 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
- 2007, 2009 Free Software Foundation, Inc.
+ 2007, 2009, 2010 Free Software Foundation, Inc.
Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
This file is part of BFD, the Binary File Descriptor library.
@@ -296,7 +296,7 @@ MY (bfd_reloc_type_lookup) (bfd *abfd,
#define ASTD(i,j) case i: return & MY (howto_table)[j]
if (code == BFD_RELOC_CTOR)
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 32:
code = BFD_RELOC_32;
diff --git a/bfd/aout-ns32k.c b/bfd/aout-ns32k.c
index ea7d8f4..9a0737d 100644
--- a/bfd/aout-ns32k.c
+++ b/bfd/aout-ns32k.c
@@ -1,6 +1,6 @@
/* BFD back-end for ns32k a.out-ish binaries.
Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
- 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
+ 2002, 2003, 2005, 2006, 2007, 2010 Free Software Foundation, Inc.
Contributed by Ian Dall (idall@eleceng.adelaide.edu.au).
This file is part of BFD, the Binary File Descriptor library.
@@ -214,7 +214,7 @@ MY (bfd_reloc_type_lookup) (bfd *abfd, bfd_reloc_code_real_type code)
BFD_ASSERT (ext == 0);
if (code == BFD_RELOC_CTOR)
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 32:
code = BFD_RELOC_32;
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index c632722..11598a0 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -269,7 +269,7 @@ NAME (aout, reloc_type_lookup) (bfd *abfd, bfd_reloc_code_real_type code)
int ext = obj_reloc_entry_size (abfd) == RELOC_EXT_SIZE;
if (code == BFD_RELOC_CTOR)
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 32:
code = BFD_RELOC_32;
diff --git a/bfd/cisco-core.c b/bfd/cisco-core.c
index 9169ed5..29a7423 100644
--- a/bfd/cisco-core.c
+++ b/bfd/cisco-core.c
@@ -1,5 +1,5 @@
/* BFD back-end for CISCO crash dumps.
- Copyright 1994, 1997, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007
+ Copyright 1994, 1997, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2010
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -77,6 +77,7 @@ static const bfd_target *cisco_core_file_p PARAMS ((bfd *));
char *cisco_core_file_failing_command PARAMS ((bfd *));
int cisco_core_file_failing_signal PARAMS ((bfd *));
#define cisco_core_file_matches_executable_p generic_core_file_matches_executable_p
+#define cisco_core_file_pid _bfd_nocore_core_file_pid
\f
/* Examine the file for a crash info struct at the offset given by
CRASH_INFO_LOC. */
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index 2e0110a..bdadfb2 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -1,6 +1,6 @@
/* BFD back-end for ARM COFF files.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -817,7 +817,7 @@ coff_arm_reloc_type_lookup (bfd * abfd, bfd_reloc_code_real_type code)
#define ASTD(i,j) case i: return aoutarm_std_reloc_howto + j
if (code == BFD_RELOC_CTOR)
- switch (bfd_get_arch_info (abfd)->bits_per_address)
+ switch (bfd_arch_bits_per_address (abfd))
{
case 32:
code = BFD_RELOC_32;
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index ad35e32..790908a 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4487,7 +4487,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect)
{
(*_bfd_error_handler)
(_("%B: warning: illegal symbol index %ld in line numbers"),
- abfd, dst.l_addr.l_symndx);
+ abfd, (long) symndx);
symndx = 0;
warned = TRUE;
}
@@ -5123,7 +5123,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols)
{
(*_bfd_error_handler)
(_("%B: warning: illegal symbol index %ld in relocs"),
- abfd, dst.r_symndx);
+ abfd, (long) dst.r_symndx);
cache_ptr->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
ptr = NULL;
}
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 2220d4d..dbcebd2 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -689,6 +689,10 @@ struct elf_backend_data
/* The architecture for this backend. */
enum bfd_architecture arch;
+ /* An identifier used to distinguish different target specific
+ extensions to elf_obj_tdata and elf_link_hash_table structures. */
+ enum elf_target_id target_id;
+
/* The ELF machine code (EM_xxxx) for this backend. */
int elf_machine_code;
@@ -1739,7 +1743,7 @@ extern bfd_reloc_status_type bfd_elf_generic_reloc
(bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
extern bfd_boolean bfd_elf_allocate_object
(bfd *, size_t, enum elf_target_id);
-extern bfd_boolean bfd_elf_make_generic_object
+extern bfd_boolean bfd_elf_make_object
(bfd *);
extern bfd_boolean bfd_elf_mkcorefile
(bfd *);
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index 51a9484..3fa9ded 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -1,5 +1,6 @@
/* Common code for PA ELF implementations.
- Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+ 2009, 2010
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -678,7 +679,7 @@ elf_hppa_reloc_final_type (bfd *abfd,
/* When in 64bit mode, a 32bit relocation is supposed to
be a section relative relocation. Dwarf2 (for example)
uses 32bit section relative relocations. */
- if (bfd_get_arch_info (abfd)->bits_per_address != 32)
+ if (bfd_arch_bits_per_address (abfd) != 32)
final_type = R_PARISC_SECREL32;
break;
case e_psel:
diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c
index f151c21..a4da9d5 100644
--- a/bfd/elf-m10300.c
+++ b/bfd/elf-m10300.c
@@ -4893,6 +4893,7 @@ _bfd_mn10300_elf_reloc_type_class (const Elf_Internal_Rela *rela)
#define TARGET_LITTLE_SYM bfd_elf32_mn10300_vec
#define TARGET_LITTLE_NAME "elf32-mn10300"
#define ELF_ARCH bfd_arch_mn10300
+#define ELF_TARGET_ID MN10300_ELF_DATA
#define ELF_MACHINE_CODE EM_MN10300
#define ELF_MACHINE_ALT1 EM_CYGNUS_MN10300
#define ELF_MAXPAGESIZE 0x1000
diff --git a/bfd/elf.c b/bfd/elf.c
index f9f2dad..c9e9fab 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -250,17 +250,18 @@ bfd_elf_allocate_object (bfd *abfd,
bfd_boolean
-bfd_elf_make_generic_object (bfd *abfd)
+bfd_elf_make_object (bfd *abfd)
{
+ const struct elf_backend_data *bed = get_elf_backend_data (abfd);
return bfd_elf_allocate_object (abfd, sizeof (struct elf_obj_tdata),
- GENERIC_ELF_DATA);
+ bed->target_id);
}
bfd_boolean
bfd_elf_mkcorefile (bfd *abfd)
{
/* I think this can be done just like an object file. */
- return bfd_elf_make_generic_object (abfd);
+ return abfd->xvec->_bfd_set_format[(int) bfd_object] (abfd);
}
static char *
@@ -3624,6 +3625,7 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
asection *first_tls = NULL;
asection *dynsec, *eh_frame_hdr;
bfd_size_type amt;
+ bfd_vma addr_mask, wrap_to = 0;
/* Select the allocated sections, and sort them. */
@@ -3632,6 +3634,12 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
if (sections == NULL)
goto error_return;
+ /* Calculate top address, avoiding undefined behaviour of shift
+ left operator when shift count is equal to size of type
+ being shifted. */
+ addr_mask = ((bfd_vma) 1 << (bfd_arch_bits_per_address (abfd) - 1)) - 1;
+ addr_mask = (addr_mask << 1) + 1;
+
i = 0;
for (s = abfd->sections; s != NULL; s = s->next)
{
@@ -3639,6 +3647,9 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
{
sections[i] = s;
++i;
+ /* A wrapping section potentially clashes with header. */
+ if (((s->lma + s->size) & addr_mask) < (s->lma & addr_mask))
+ wrap_to = (s->lma + s->size) & addr_mask;
}
}
BFD_ASSERT (i <= bfd_count_sections (abfd));
@@ -3708,8 +3719,10 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
if (phdr_size == (bfd_size_type) -1)
phdr_size = get_program_header_size (abfd, info);
if ((abfd->flags & D_PAGED) == 0
- || sections[0]->lma < phdr_size
- || sections[0]->lma % maxpagesize < phdr_size % maxpagesize)
+ || (sections[0]->lma & addr_mask) < phdr_size
+ || ((sections[0]->lma & addr_mask) % maxpagesize
+ < phdr_size % maxpagesize)
+ || (sections[0]->lma & addr_mask & -maxpagesize) < wrap_to)
phdr_in_segment = FALSE;
}
@@ -3774,9 +3787,8 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
}
else if (! writable
&& (hdr->flags & SEC_READONLY) == 0
- && (((last_hdr->lma + last_size - 1)
- & ~(maxpagesize - 1))
- != (hdr->lma & ~(maxpagesize - 1))))
+ && (((last_hdr->lma + last_size - 1) & -maxpagesize)
+ != (hdr->lma & -maxpagesize)))
{
/* We don't want to put a writable section in a read only
segment, unless they are on the same page in memory
@@ -3883,8 +3895,8 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
if (s2->next->alignment_power == 2
&& (s2->next->flags & SEC_LOAD) != 0
&& CONST_STRNEQ (s2->next->name, ".note")
- && align_power (s2->vma + s2->size, 2)
- == s2->next->vma)
+ && align_power (s2->lma + s2->size, 2)
+ == s2->next->lma)
count++;
else
break;
@@ -5858,7 +5870,7 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
bfd_size_type amt;
Elf_Internal_Shdr *this_hdr;
asection *first_section = NULL;
- asection *lowest_section = NULL;
+ asection *lowest_section;
/* Compute how many sections are in this segment. */
for (section = ibfd->sections, section_count = 0;
@@ -5868,10 +5880,8 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
this_hdr = &(elf_section_data(section)->this_hdr);
if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
{
- if (!first_section)
- first_section = lowest_section = section;
- if (section->lma < lowest_section->lma)
- lowest_section = section;
+ if (first_section == NULL)
+ first_section = section;
section_count++;
}
}
@@ -5925,17 +5935,7 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
phdr_included = TRUE;
}
- if (map->includes_filehdr && first_section)
- /* We need to keep the space used by the headers fixed. */
- map->header_size = first_section->vma - segment->p_vaddr;
-
- if (!map->includes_phdrs
- && !map->includes_filehdr
- && map->p_paddr_valid)
- /* There is some other padding before the first section. */
- map->p_vaddr_offset = ((lowest_section ? lowest_section->lma : 0)
- - segment->p_paddr);
-
+ lowest_section = first_section;
if (section_count != 0)
{
unsigned int isec = 0;
@@ -5948,12 +5948,41 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
{
map->sections[isec++] = section->output_section;
+ if (section->lma < lowest_section->lma)
+ lowest_section = section;
+ if ((section->flags & SEC_ALLOC) != 0)
+ {
+ bfd_vma seg_off;
+
+ /* Section lmas are set up from PT_LOAD header
+ p_paddr in _bfd_elf_make_section_from_shdr.
+ If this header has a p_paddr that disagrees
+ with the section lma, flag the p_paddr as
+ invalid. */
+ if ((section->flags & SEC_LOAD) != 0)
+ seg_off = this_hdr->sh_offset - segment->p_offset;
+ else
+ seg_off = this_hdr->sh_addr - segment->p_vaddr;
+ if (section->lma - segment->p_paddr != seg_off)
+ map->p_paddr_valid = FALSE;
+ }
if (isec == section_count)
break;
}
}
}
+ if (map->includes_filehdr && lowest_section != NULL)
+ /* We need to keep the space used by the headers fixed. */
+ map->header_size = lowest_section->vma - segment->p_vaddr;
+
+ if (!map->includes_phdrs
+ && !map->includes_filehdr
+ && map->p_paddr_valid)
+ /* There is some other padding before the first section. */
+ map->p_vaddr_offset = ((lowest_section ? lowest_section->lma : 0)
+ - segment->p_paddr);
+
map->count = section_count;
*pointer_to_map = map;
pointer_to_map = &map->next;
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 0cd1e64..74fb855 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -3475,6 +3475,36 @@ static bfd_reloc_status_type elf32_arm_final_link_relocate
Elf_Internal_Rela *, bfd_vma, struct bfd_link_info *, asection *,
const char *, int, struct elf_link_hash_entry *, bfd_boolean *, char **);
+static unsigned int
+arm_stub_required_alignment (enum elf32_arm_stub_type stub_type)
+{
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-08-23 13:54 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-08-23 13:54 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 82a33011e68dd5e799925f98b5552ac14e152fc6 (commit)
via 04e537a8357644a10f6ccb48e02ec5408ed42399 (commit)
via ec45ed45c51797421d2f3c29af22b0903bf7e3bd (commit)
via 7ff4961fb8778ced9278c6cac343cfbd765ade3d (commit)
via 958e73c5f68f7c8298be9a9587862662f82c4567 (commit)
via 966abcb475a1dc21aa88f9147fdefc39ea31efa4 (commit)
via 7c6ebe5837e970eb0e659192e42a45604d6bb33f (commit)
via 97d5a52aa3bb8f421d76773cc0d726e57561eed2 (commit)
via 93c0500f53bbf457e59e7e0786d42f0bd3cf8722 (commit)
via 53b78a88d37ac51a998012a0a18f494944aa6f7f (commit)
via 6b2f893c58141603b916d811944e6e1c902ffb04 (commit)
via 282b8d8b60c3b88606a3d3c89ccd4fbd56605a29 (commit)
via 4a574bb5a8f9edac8fb11da52ab93069b5055bca (commit)
via 5c66b2073343c84cb1d8ba188cc5dc6e22797b78 (commit)
via 76a171988636eddd5f3b8f742abcd76cd0b6a646 (commit)
via 68dcd8ee59a320f57f03300c6312e18430fc9a8e (commit)
via f301c45a601be6dfe2c76b277d6d7f0d1e63f6f8 (commit)
from e3d3070b314e3740b2028e887b0ca7f1145199c9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 82a33011e68dd5e799925f98b5552ac14e152fc6
Merge: e3d3070 04e537a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Aug 23 15:53:51 2010 +0200
Merge remote branch 'gdb/master'
commit 04e537a8357644a10f6ccb48e02ec5408ed42399
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Aug 23 00:00:05 2010 +0000
daily update
commit ec45ed45c51797421d2f3c29af22b0903bf7e3bd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 23 00:00:04 2010 +0000
*** empty log message ***
commit 7ff4961fb8778ced9278c6cac343cfbd765ade3d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Aug 22 19:14:23 2010 +0000
Don't check relocation if input ELF object ID doesn't match output.
bfd/
2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11933
* elflink.c (elf_link_add_object_symbols): Don't check relocation
if input ELF object ID doesn't match output.
ld/testsuite/
2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11933
* ld-x86-64/mixed1a.s: New.
* ld-x86-64/mixed1b.s: Likewise.
* ld-x86-64/mixed2a.s: Likewise.
* ld-x86-64/mixed2b.s: Likewise.
* ld-x86-64/x86-64.exp: Text mixed x86_64 and i386 inputs.
commit 958e73c5f68f7c8298be9a9587862662f82c4567
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 22 00:00:33 2010 +0000
*** empty log message ***
commit 966abcb475a1dc21aa88f9147fdefc39ea31efa4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Aug 22 00:00:05 2010 +0000
daily update
commit 7c6ebe5837e970eb0e659192e42a45604d6bb33f
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Sat Aug 21 12:34:04 2010 +0000
Fix misquoting in stdint.m4.
config/:
PR target/45084
* stdint.m4 (GCC_HEADER_STDINT): Use m4 quotes for arguments
of AC_MSG_ERROR.
libdecnumber/:
* configure: Regenerate.
bfd/:
* configure: Regenerate.
commit 97d5a52aa3bb8f421d76773cc0d726e57561eed2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Aug 21 00:00:05 2010 +0000
daily update
commit 93c0500f53bbf457e59e7e0786d42f0bd3cf8722
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Aug 21 00:00:02 2010 +0000
*** empty log message ***
commit 53b78a88d37ac51a998012a0a18f494944aa6f7f
Author: DJ Delorie <dj@delorie.com>
Date: Fri Aug 20 23:58:16 2010 +0000
merge from gcc
commit 6b2f893c58141603b916d811944e6e1c902ffb04
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 20 22:29:27 2010 +0000
Revert the last checkin on sec_merge_emit.
2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
* merge.c (sec_merge_emit): Revert the last checkin.
commit 282b8d8b60c3b88606a3d3c89ccd4fbd56605a29
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Fri Aug 20 21:15:03 2010 +0000
* elf32-sh.c (sh_elf_relocate_section): Handle non-ELF output
BFD.
commit 4a574bb5a8f9edac8fb11da52ab93069b5055bca
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Fri Aug 20 21:06:29 2010 +0000
* elf32-m68k.c (bfd_elf_m68k_set_target_options): Don't set GOT
options unless an m68k hash table has been found.
commit 5c66b2073343c84cb1d8ba188cc5dc6e22797b78
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Aug 20 18:52:11 2010 +0000
* python/python.c: Include "serial.h".
(gdbpy_event_fds): Change type to `struct serial *' a array from
int array.
(gdbpy_run_events): Change parameters. Use serial_readchar in
place of read.
(gdbpy_post_event): Use serial_write in place of write.
(gdbpy_initialize_events): Use serial_pipe instead of pipe, and
serial_async in place of add_file_handler.
commit 76a171988636eddd5f3b8f742abcd76cd0b6a646
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Aug 20 18:49:18 2010 +0000
* serial.h (gdb_pipe, serial_pipe): Declare.
* serial.c (serial_interface_lookup): Take a const char pointer.
(serial_fdopen): Rename to ...
(serial_fdopen_ops): ... this. Add an OPS parameter and use it.
Call the OPS' fdopen function if there is one.
(serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
(serial_pipe): New.
(struct serial_ops) <fdopen>: New field.
* ser-mingw.c (free_pipe_state):
(free_pipe_state): Close output on non-pex pipes.
(pipe_windows_fdopen): New.
(gdb_pipe): New.
(_initialize_ser_windows): Register pipe_windows_fdopen.
* ser-go32.c (gdb_pipe): New.
* ser-pipe.c (pipe_close): Close file descriptor even if there's
no state pointer.
(pipe_ops): Delete.
(gdb_pipe): New.
commit 68dcd8ee59a320f57f03300c6312e18430fc9a8e
Author: Keith Seitz <keiths@redhat.com>
Date: Fri Aug 20 17:16:42 2010 +0000
PR symtab/11465:
* dwarf2read.c (struct delayed_method_info): New struct.
(struct dwarf2_cu): Add vector method_list.
(scan_partial_symbols): Count methods for union, class, structure,
and interface types.
(add_to_method_list): New function.
(free_delayed_list): New function.
(compute_delayed_physnames): New function.
(process_full_comp_unit): Make a cleanup for the CU's delayed
physname list, compute the delayed physnames, and free the
the list.
(dwarf2_add_member_fn): For C++ and Java, delay the computation
of the physname until after the CU is read.
* dwarf2read.c (read_structure_type): Check if the current
DIE's type was already completed after dwarf2_full_name
was called.
commit f301c45a601be6dfe2c76b277d6d7f0d1e63f6f8
Author: Keith Seitz <keiths@redhat.com>
Date: Fri Aug 20 17:16:14 2010 +0000
PR symtab/11465:
* gdb.dwarf2/pr11465.exp: New test.
* gdb.dwarf2/pr11465.S: New file.
* gdb.dwarf2/dw2-double-set-die-type.S: New file.
* gdb.dwarf2/dw2-double-set-die-type.exp: New test.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 24 +
bfd/configure | 12 +-
bfd/elf32-m68k.c | 32 +-
bfd/elf32-sh.c | 69 ++-
bfd/elflink.c | 1 +
bfd/merge.c | 4 -
bfd/version.h | 2 +-
config/ChangeLog | 6 +
config/stdint.m4 | 8 +-
gdb/ChangeLog | 52 ++
gdb/dwarf2read.c | 122 ++++-
gdb/python/python.c | 22 +-
gdb/ser-go32.c | 7 +
gdb/ser-mingw.c | 41 ++-
gdb/ser-pipe.c | 33 +-
gdb/serial.c | 66 ++-
gdb/serial.h | 14 +
gdb/testsuite/ChangeLog | 8 +
gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S | 632 ++++++++++++++++++++
.../gdb.dwarf2/dw2-double-set-die-type.exp | 41 ++
gdb/testsuite/gdb.dwarf2/pr11465.S | 355 +++++++++++
gdb/testsuite/gdb.dwarf2/pr11465.exp | 40 ++
gdb/version.in | 2 +-
libdecnumber/ChangeLog | 4 +
libdecnumber/configure | 12 +-
libiberty/ChangeLog | 7 +
libiberty/pex-common.c | 14 +-
27 files changed, 1516 insertions(+), 114 deletions(-)
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/pr11465.S
create mode 100644 gdb/testsuite/gdb.dwarf2/pr11465.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9a52165..7ae8300 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,27 @@
+2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11933
+ * elflink.c (elf_link_add_object_symbols): Don't check relocation
+ if input ELF object ID doesn't match output.
+
+2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * configure: Regenerate.
+
+2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ * merge.c (sec_merge_emit): Revert the last checkin.
+
+2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * elf32-sh.c (sh_elf_relocate_section): Handle non-ELF output
+ BFD.
+
+2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * elf32-m68k.c (bfd_elf_m68k_set_target_options): Don't set GOT
+ options unless an m68k hash table has been found.
+
2010-08-20 Nick Clifton <nickc@redhat.com>
* merge.c (sec_merge_emit): Do not zero pad sections that do not
diff --git a/bfd/configure b/bfd/configure
index 51a4158..e1ea93b 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -13264,8 +13264,7 @@ _ACEOF
$as_echo_n "checking for type equivalent to int8_t... " >&6; }
case "$ac_cv_sizeof_char" in
1) acx_cv_type_int8_t=char ;;
- *) { as_fn_set_status please report a bug
-as_fn_error "no 8-bit type" "$LINENO" 5; }
+ *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
$as_echo "$acx_cv_type_int8_t" >&6; }
@@ -13275,8 +13274,7 @@ $as_echo_n "checking for type equivalent to int16_t... " >&6; }
case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
2:*) acx_cv_type_int16_t=int ;;
*:2) acx_cv_type_int16_t=short ;;
- *) { as_fn_set_status please report a bug
-as_fn_error "no 16-bit type" "$LINENO" 5; }
+ *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
$as_echo "$acx_cv_type_int16_t" >&6; }
@@ -13286,8 +13284,7 @@ $as_echo_n "checking for type equivalent to int32_t... " >&6; }
case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
4:*) acx_cv_type_int32_t=int ;;
*:4) acx_cv_type_int32_t=long ;;
- *) { as_fn_set_status please report a bug
-as_fn_error "no 32-bit type" "$LINENO" 5; }
+ *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
$as_echo "$acx_cv_type_int32_t" >&6; }
@@ -13314,8 +13311,7 @@ $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
2) acx_cv_type_intptr_t=int16_t ;;
4) acx_cv_type_intptr_t=int32_t ;;
8) acx_cv_type_intptr_t=int64_t ;;
- *) { as_fn_set_status please report a bug
-as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
+ *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
$as_echo "$acx_cv_type_intptr_t" >&6; }
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c
index c0a5ef1..975207f 100644
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -4745,34 +4745,44 @@ void
bfd_elf_m68k_set_target_options (struct bfd_link_info *info, int got_handling)
{
struct elf_m68k_link_hash_table *htab;
-
- htab = elf_m68k_hash_table (info);
+ bfd_boolean use_neg_got_offsets_p;
+ bfd_boolean allow_multigot_p;
+ bfd_boolean local_gp_p;
switch (got_handling)
{
case 0:
/* --got=single. */
- htab->local_gp_p = FALSE;
- htab->use_neg_got_offsets_p = FALSE;
- htab->allow_multigot_p = FALSE;
+ local_gp_p = FALSE;
+ use_neg_got_offsets_p = FALSE;
+ allow_multigot_p = FALSE;
break;
case 1:
/* --got=negative. */
- htab->local_gp_p = TRUE;
- htab->use_neg_got_offsets_p = TRUE;
- htab->allow_multigot_p = FALSE;
+ local_gp_p = TRUE;
+ use_neg_got_offsets_p = TRUE;
+ allow_multigot_p = FALSE;
break;
case 2:
/* --got=multigot. */
- htab->local_gp_p = TRUE;
- htab->use_neg_got_offsets_p = TRUE;
- htab->allow_multigot_p = TRUE;
+ local_gp_p = TRUE;
+ use_neg_got_offsets_p = TRUE;
+ allow_multigot_p = TRUE;
break;
default:
BFD_ASSERT (FALSE);
+ return;
+ }
+
+ htab = elf_m68k_hash_table (info);
+ if (htab != NULL)
+ {
+ htab->local_gp_p = local_gp_p;
+ htab->use_neg_got_offsets_p = use_neg_got_offsets_p;
+ htab->allow_multigot_p = allow_multigot_p;
}
}
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index a4fdd70..e48017e 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -3929,47 +3929,48 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
Elf_Internal_Shdr *symtab_hdr;
struct elf_link_hash_entry **sym_hashes;
Elf_Internal_Rela *rel, *relend;
- bfd *dynobj;
+ bfd *dynobj = NULL;
bfd_vma *local_got_offsets;
- asection *sgot;
- asection *sgotplt;
- asection *splt;
- asection *sreloc;
- asection *srelgot;
+ asection *sgot = NULL;
+ asection *sgotplt = NULL;
+ asection *splt = NULL;
+ asection *sreloc = NULL;
+ asection *srelgot = NULL;
bfd_boolean is_vxworks_tls;
unsigned isec_segment, got_segment, plt_segment, check_segment[2];
+ bfd_boolean fdpic_p = FALSE;
BFD_ASSERT (is_sh_elf (input_bfd));
htab = sh_elf_hash_table (info);
- if (htab == NULL)
- return FALSE;
+ if (htab != NULL)
+ {
+ dynobj = htab->root.dynobj;
+ sgot = htab->sgot;
+ sgotplt = htab->sgotplt;
+ splt = htab->splt;
+ fdpic_p = htab->fdpic_p;
+ }
symtab_hdr = &elf_symtab_hdr (input_bfd);
sym_hashes = elf_sym_hashes (input_bfd);
- dynobj = htab->root.dynobj;
local_got_offsets = elf_local_got_offsets (input_bfd);
isec_segment = sh_elf_osec_to_segment (output_bfd,
input_section->output_section);
- if (htab->fdpic_p && htab->sgot)
+ if (fdpic_p && sgot)
got_segment = sh_elf_osec_to_segment (output_bfd,
- htab->sgot->output_section);
+ sgot->output_section);
else
got_segment = -1;
- if (htab->fdpic_p && htab->splt)
+ if (fdpic_p && splt)
plt_segment = sh_elf_osec_to_segment (output_bfd,
- htab->splt->output_section);
+ splt->output_section);
else
plt_segment = -1;
- sgot = htab->sgot;
- sgotplt = htab->sgotplt;
- splt = htab->splt;
- sreloc = NULL;
- srelgot = NULL;
/* We have to handle relocations in vxworks .tls_vars sections
specially, because the dynamic loader is 'weird'. */
- is_vxworks_tls = (htab->vxworks_p && info->shared
+ is_vxworks_tls = (htab && htab->vxworks_p && info->shared
&& !strcmp (input_section->output_section->name,
".tls_vars"));
@@ -4147,7 +4148,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
{
bfd_boolean dyn;
- dyn = htab->root.dynamic_sections_created;
+ dyn = htab ? htab->root.dynamic_sections_created : FALSE;
sec = h->root.u.def.section;
/* In these cases, we don't need the relocation value.
We check specially because in some obscure cases
@@ -4461,7 +4462,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
outrel.r_addend = addend;
}
#endif
- else if (htab->fdpic_p
+ else if (fdpic_p
&& (h == NULL
|| ((info->symbolic || h->dynindx == -1)
&& h->def_regular)))
@@ -4515,12 +4516,14 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (! relocate)
continue;
}
- else if (htab->fdpic_p && !info->shared
+ else if (fdpic_p && !info->shared
&& r_type == R_SH_DIR32
&& (input_section->flags & SEC_ALLOC) != 0)
{
bfd_vma offset;
+ BFD_ASSERT (htab);
+
if (sh_elf_osec_readonly_p (output_bfd,
input_section->output_section))
{
@@ -4569,6 +4572,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
/* Relocation is to the entry for this symbol in the global
offset table extension for the procedure linkage table. */
+ BFD_ASSERT (htab);
BFD_ASSERT (sgotplt != NULL);
relocation = (sgotplt->output_offset
+ (get_plt_index (htab->plt_info, h->plt.offset)
@@ -4594,6 +4598,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
/* Relocation is to the entry for this symbol in the global
offset table. */
+ BFD_ASSERT (htab);
BFD_ASSERT (sgot != NULL);
check_segment[0] = check_segment[1] = -1;
@@ -4652,7 +4657,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
/* If we initialize the GOT entry here with a valid
symbol address, also add a fixup. */
- if (htab->fdpic_p && !info->shared
+ if (fdpic_p && !info->shared
&& sh_elf_hash_entry (h)->got_type == GOT_NORMAL
&& (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
|| h->root.type != bfd_link_hash_undefweak))
@@ -4713,7 +4718,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
outrel.r_offset = (sgot->output_section->vma
+ sgot->output_offset
+ off);
- if (htab->fdpic_p)
+ if (fdpic_p)
{
int dynindx
= elf_section_data (sec->output_section)->dynindx;
@@ -4730,7 +4735,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
loc += srelgot->reloc_count++ * sizeof (Elf32_External_Rela);
bfd_elf32_swap_reloca_out (output_bfd, &outrel, loc);
}
- else if (htab->fdpic_p
+ else if (fdpic_p
&& (sh_elf_local_got_type (input_bfd) [r_symndx]
== GOT_NORMAL))
sh_elf_add_rofixup (output_bfd, htab->srofixup,
@@ -4775,6 +4780,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
we place at the start of the .got.plt section. This is the same
as the start of the output .got section, unless there are function
descriptors in front of it. */
+ BFD_ASSERT (htab);
BFD_ASSERT (sgotplt != NULL);
check_segment[0] = got_segment;
relocation -= sgotplt->output_section->vma + sgotplt->output_offset
@@ -4875,6 +4881,8 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd_vma reloc_offset;
int reloc_type = R_SH_FUNCDESC;
+ BFD_ASSERT (htab);
+
check_segment[0] = check_segment[1] = -1;
/* FIXME: See what FRV does for global symbols in the
@@ -4892,7 +4900,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
}
else
{
- reloc_section = htab->sgot;
+ reloc_section = sgot;
if (h != NULL)
reloc_offset = h->got.offset;
@@ -5087,6 +5095,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
executable and --export-dynamic. If such symbols get
ld.so-allocated descriptors we can not use R_SH_GOTOFFFUNCDESC
for them. */
+ BFD_ASSERT (htab);
check_segment[0] = check_segment[1] = -1;
relocation = 0;
@@ -5139,8 +5148,8 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
relocation = htab->sfuncdesc->output_offset + (offset & ~1);
}
- relocation -= htab->root.hgot->root.u.def.value
- + htab->sgotplt->output_offset;
+ relocation -= (htab->root.hgot->root.u.def.value
+ + sgotplt->output_offset);
#ifdef GOT_BIAS
relocation -= GOT_BIAS;
#endif
@@ -5175,6 +5184,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
case R_SH_TLS_GD_32:
case R_SH_TLS_IE_32:
+ BFD_ASSERT (htab);
check_segment[0] = check_segment[1] = -1;
r_type = sh_elf_optimized_tls_reloc (info, r_type, h == NULL);
got_type = GOT_UNKNOWN;
@@ -5425,6 +5435,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
goto final_link_relocate;
case R_SH_TLS_LD_32:
+ BFD_ASSERT (htab);
check_segment[0] = check_segment[1] = -1;
if (! info->shared)
{
@@ -5558,7 +5569,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
}
relocation_done:
- if (htab->fdpic_p && check_segment[0] != (unsigned) -1
+ if (fdpic_p && check_segment[0] != (unsigned) -1
&& check_segment[0] != check_segment[1])
{
/* We don't want duplicate errors for undefined symbols. */
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 074229f..2f67c47 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -4791,6 +4791,7 @@ error_free_dyn:
if (! dynamic
&& is_elf_hash_table (htab)
&& bed->check_relocs != NULL
+ && elf_object_id (abfd) == elf_hash_table_id (htab)
&& (*bed->relocs_compatible) (abfd->xvec, info->output_bfd->xvec))
{
asection *o;
diff --git a/bfd/merge.c b/bfd/merge.c
index 180af26..7aa088f 100644
--- a/bfd/merge.c
+++ b/bfd/merge.c
@@ -307,9 +307,6 @@ sec_merge_emit (bfd *abfd, struct sec_merge_hash_entry *entry)
len = -off & (entry->alignment - 1);
if (len != 0)
{
- /* We should never have an entry with an alignment
- greater than the section's alignment. */
- BFD_ASSERT (len <= (bfd_size_type) (1 << alignment_power));
if (bfd_bwrite (pad, len, abfd) != len)
goto err;
off += len;
@@ -327,7 +324,6 @@ sec_merge_emit (bfd *abfd, struct sec_merge_hash_entry *entry)
/* Trailing alignment needed? */
off = sec->size - off;
if (off != 0
- && alignment_power
&& bfd_bwrite (pad, off, abfd) != off)
goto err;
diff --git a/bfd/version.h b/bfd/version.h
index c5ed0ea..8b5e999 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100820
+#define BFD_VERSION_DATE 20100823
#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/config/ChangeLog b/config/ChangeLog
index 41c66e9..22a3641 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ PR target/45084
+ * stdint.m4 (GCC_HEADER_STDINT): Use m4 quotes for arguments
+ of AC_MSG_ERROR.
+
2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gc++filt.m4: New file.
diff --git a/config/stdint.m4 b/config/stdint.m4
index d63081d..fbdd586 100644
--- a/config/stdint.m4
+++ b/config/stdint.m4
@@ -146,7 +146,7 @@ if test $acx_cv_header_stdint = stddef.h; then
AC_MSG_CHECKING(for type equivalent to int8_t)
case "$ac_cv_sizeof_char" in
1) acx_cv_type_int8_t=char ;;
- *) AC_MSG_ERROR(no 8-bit type, please report a bug)
+ *) AC_MSG_ERROR([no 8-bit type, please report a bug])
esac
AC_MSG_RESULT($acx_cv_type_int8_t)
@@ -154,7 +154,7 @@ if test $acx_cv_header_stdint = stddef.h; then
case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
2:*) acx_cv_type_int16_t=int ;;
*:2) acx_cv_type_int16_t=short ;;
- *) AC_MSG_ERROR(no 16-bit type, please report a bug)
+ *) AC_MSG_ERROR([no 16-bit type, please report a bug])
esac
AC_MSG_RESULT($acx_cv_type_int16_t)
@@ -162,7 +162,7 @@ if test $acx_cv_header_stdint = stddef.h; then
case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
4:*) acx_cv_type_int32_t=int ;;
*:4) acx_cv_type_int32_t=long ;;
- *) AC_MSG_ERROR(no 32-bit type, please report a bug)
+ *) AC_MSG_ERROR([no 32-bit type, please report a bug])
esac
AC_MSG_RESULT($acx_cv_type_int32_t)
fi
@@ -185,7 +185,7 @@ if test "$ac_cv_type_uintptr_t" != yes; then
2) acx_cv_type_intptr_t=int16_t ;;
4) acx_cv_type_intptr_t=int32_t ;;
8) acx_cv_type_intptr_t=int64_t ;;
- *) AC_MSG_ERROR(no equivalent for intptr_t, please report a bug)
+ *) AC_MSG_ERROR([no equivalent for intptr_t, please report a bug])
esac
AC_MSG_RESULT($acx_cv_type_intptr_t)
fi
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5fe8c64..e74be97 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,55 @@
+2010-08-20 Pedro Alves <pedro@codesourcery.com>
+
+ * python/python.c: Include "serial.h".
+ (gdbpy_event_fds): Change type to `struct serial *' a array from
+ int array.
+ (gdbpy_run_events): Change parameters. Use serial_readchar in
+ place of read.
+ (gdbpy_post_event): Use serial_write in place of write.
+ (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
+ serial_async in place of add_file_handler.
+
+2010-08-20 Pedro Alves <pedro@codesourcery.com>
+
+ * serial.h (gdb_pipe, serial_pipe): Declare.
+ * serial.c (serial_interface_lookup): Take a const char pointer.
+ (serial_fdopen): Rename to ...
+ (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
+ Call the OPS' fdopen function if there is one.
+ (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
+ (serial_pipe): New.
+ (struct serial_ops) <fdopen>: New field.
+
+ * ser-mingw.c (free_pipe_state):
+ (free_pipe_state): Close output on non-pex pipes.
+ (pipe_windows_fdopen): New.
+ (gdb_pipe): New.
+ (_initialize_ser_windows): Register pipe_windows_fdopen.
+ * ser-go32.c (gdb_pipe): New.
+ * ser-pipe.c (pipe_close): Close file descriptor even if there's
+ no state pointer.
+ (pipe_ops): Delete.
+ (gdb_pipe): New.
+
+2010-08-20 Keith Seitz <keiths@redhat.com>
+
+ PR symtab/11465:
+ * dwarf2read.c (struct delayed_method_info): New struct.
+ (struct dwarf2_cu): Add vector method_list.
+ (scan_partial_symbols): Count methods for union, class, structure,
+ and interface types.
+ (add_to_method_list): New function.
+ (free_delayed_list): New function.
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-08-20 17:49 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-08-20 17:49 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via e3d3070b314e3740b2028e887b0ca7f1145199c9 (commit)
via 24a68699c98d5a3d4e6f35e061bdd46051ce0ef1 (commit)
via f6cfef01ca569c76882c57b4abd5328230c25834 (commit)
via c6363eaa219db43ab9bc1a84ae0fadd15c2f81a5 (commit)
via 1432e8d74f46976512653d8799d7ed6da2e86b25 (commit)
via 671285e33baeccbd6ccc0a08871ffaf02f9c5fdd (commit)
via 8dc45a55e666af250ff5ed0217d753e16a655652 (commit)
via 4faa658db05ec40e2d1c7456596b2bb27e3d3bea (commit)
via 135ac82a029af8c6d2e5de354cd4fad68047dd8c (commit)
via 724d4482b9db1aced5ae391ad624f76877991232 (commit)
via f1dbee9626f22f5ed6433a7b3eb928e46f4c0c28 (commit)
via 105c933eb72039680ac0ee8d03508a2b218d5c88 (commit)
via 53998427eeb52f2f16bd75962f2ef2198922030f (commit)
via e9f28d52cde2d81629b2784b3782731158b8bb69 (commit)
via 5da6e2c3898d33868e57e135736fdf8a20a13de3 (commit)
via cf5764ad1be1132fcfcc6189027467f54cecadd5 (commit)
via 56ac3a0fab6bc82b7e8eeb280181cdb51f2ad1b2 (commit)
via 0a78bf390d585703fd18cfaa8a29c7cb0aa61c90 (commit)
via 932984d6160cee42e7ff478f69d3500d1caa319f (commit)
via 862e2ad21b37a4d019d6636b594c9a6dcc1f314e (commit)
via de97dcfa84c8d23d0c755988cc7676e4c14ed91f (commit)
via 5815370ed6ef1ccff78ee7fea7e25976b5b1147b (commit)
via f0d798c8797e9ed98c1174956a12ae8aa2b82012 (commit)
via 86c443d037a6c35e79dd23b3313e1eaa9b15648f (commit)
via c24602fe78164c370b84486dfcbe7ebb45f8764b (commit)
via c82ada6043ef5bb264e314a3e140da8ac7210156 (commit)
via d8ab61e63785e8c999a8ca6f5b1f7e4de155cbff (commit)
via f6759e82e98662d33afdb5b339f5ebf55ee64e69 (commit)
via d945166c000a50d6765b5fdd4d2d0e780322bdac (commit)
via 68f4600ddb7a288e31df06a3da5de7aa866f920d (commit)
via c21afd50919a0a082e44083fca4693402b6194f5 (commit)
via f8b3620a572c7afb73fd46e49d06540b0e8db597 (commit)
via 043822a615f37ecb759463136ee557720c4a9fac (commit)
via 6617d8b04045dfc090242a5e4c3e486664ce5aa9 (commit)
via ad5ca54c4186f7b7e9d72aa3c3663e43e7fc0abb (commit)
via f868031edee5a5f511c6708abdced9a9292f27b9 (commit)
via 1e88746f6532ebfdd77f59314cef8c1dbcf94130 (commit)
via 9076507f0fe9994752285c246445364c2dd3cb81 (commit)
via e265b24b8ef087a3440f8cdf1dd029a3d7000316 (commit)
via 3e06230a605ff3aa18120d86554fd9e2d679632a (commit)
via ca5a787de620fa149a6a5f2f161b6ea20bd74f4d (commit)
via 70f9e111de897927cdb841b688771a4296dd151d (commit)
via 27e2f81dc801e4c94b36a7160619350fc90fcee2 (commit)
via d24e2b1c50748d55a66b46d0b910fd751ba93cd9 (commit)
via 6144e1ba37bc8837d4cbebac933e1af8ab7acde7 (commit)
via 8c14d1ec5627bf3ad1f77ffc925c3d2a676d34f1 (commit)
via 8e890f62d09f3578a01972ab3ce630d89c4026fb (commit)
via 9598cd35f8e1939aadc6b1e4b0bda5b3a59f7864 (commit)
via 42fca9ebb9b268c5eae978c2d4a5ec4c04911aba (commit)
via 49dc52d54d94ddb7ef479f2c1a97544287d92b72 (commit)
via eb5bb75603df50cbfd31651cdebe64064d514153 (commit)
via 589b38aaab27482977d59f190db97b6e60065114 (commit)
via 2c009df0760d9d081de7dac27412a2a5007e27d8 (commit)
via b0ee4b352cead35cb4fd8f528000dbcdb502d303 (commit)
via a8450836d6b035eba242772b905fab66551b2df9 (commit)
via 7b3fbd65ce43cb0b04b247c1f9628cec61f31d85 (commit)
via a8dd3249418b044de6e8b1b791092aff4381b31b (commit)
via 39f47d3a439f6e0255b1c8007a0573cc72ac3471 (commit)
via 657d609272c806417ea6f583b882d9825830da53 (commit)
via a6fd945df789f31425f55b71c92d7a9e84c74bbd (commit)
via 4a50992f02873a9f8350be9f69f6d93b00109594 (commit)
via fc65b379db56751361debc759395a1bbeeace628 (commit)
via 81442b75d06e89b0ebd4aefc7c7bc4c7b60876b0 (commit)
via eb33c8040b5544daf145a10a4aff969ef71c4642 (commit)
from ae16d6874610a1dcb937d7cdeec82b505db7c553 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit e3d3070b314e3740b2028e887b0ca7f1145199c9
Merge: ae16d68 24a6869
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Aug 20 19:49:10 2010 +0200
Merge remote branch 'gdb/master'
commit 24a68699c98d5a3d4e6f35e061bdd46051ce0ef1
Author: Nick Clifton <nickc@redhat.com>
Date: Fri Aug 20 14:41:47 2010 +0000
* merge.c (sec_merge_emit): Do not zero pad sections that do not
have an alignment.
commit f6cfef01ca569c76882c57b4abd5328230c25834
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Aug 20 00:00:05 2010 +0000
daily update
commit c6363eaa219db43ab9bc1a84ae0fadd15c2f81a5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Aug 20 00:00:03 2010 +0000
*** empty log message ***
commit 1432e8d74f46976512653d8799d7ed6da2e86b25
Author: Stan Shebs <shebs@apple.com>
Date: Thu Aug 19 23:43:30 2010 +0000
* NEWS: Mention some additional changes.
commit 671285e33baeccbd6ccc0a08871ffaf02f9c5fdd
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Aug 19 18:40:46 2010 +0000
* Makefile.in (install-python): Add DESTDIR.
commit 8dc45a55e666af250ff5ed0217d753e16a655652
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Thu Aug 19 17:52:49 2010 +0000
* gdb.arch/vsx-regs.exp: Remove wrong comment about testing AltiVec
registers. Update data sets with the new v2_double element in the
VSX register union. Add vector_register3_vr data set for the AltiVec
registers. Use gdb_test_no_output instead of send_gdb.
commit 4faa658db05ec40e2d1c7456596b2bb27e3d3bea
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 19 17:00:56 2010 +0000
* gdb.python/py-shared.exp: New file, factored out from
python.exp.
* gdb.python/py-shared.c: New file.
* gdb.python/py-shared-sl.c: New file.
* gdb.python/python-1.c: New file.
* gdb.python/python-sl.c: Delete.
* gdb.python/python.c: Mention python-1.c.
* gdb.python/python.exp: Move shared library tests to
py-shared.exp.
* gdb.python/Makefile.in (EXECUTABLES): Add py-shared and python.
(MISCELLANEOUS): New.
(clean mostlyclean): Also remove $MISCELLANEOUS.
commit 135ac82a029af8c6d2e5de354cd4fad68047dd8c
Author: Doug Evans <dje@google.com>
Date: Thu Aug 19 13:33:10 2010 +0000
PR exp/11926
* parser-defs.h (parse_float, parse_c_float): Declare.
* parse.c (parse_float, parse_c_float): New function.
* c-exp.y (parse_number): Call parse_c_float.
* objc-exp.y (parse_number): Ditto.
* p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
* jv-exp.y (parse_number): Call parse_float, fix suffix handling.
testsuite/
* gdb.base/printcmds.exp (test_float_accepted): New function.
Move existing float tests there. Add tests for floats with suffixes.
(test_float_rejected): New function.
* gdb.java/jv-print.exp (test_float_accepted): New function.
(test_float_rejected): New function.
* gdb.objc/print.exp: New file.
* gdb.pascal/print.exp: New file.
* lib/objc.exp: New file.
commit 724d4482b9db1aced5ae391ad624f76877991232
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Aug 19 09:04:10 2010 +0000
Fix regression in -file-list-exec-source-files command.
See http://sourceware.org/ml/gdb/2010-07/msg00118.html for
a description of the problem. Namely, the file and fullname
fields are inverted in the output of the -file-list-exec-source-files
GDB/MI command:
(gdb) interpreter-exec mi -file-list-exec-source-files
^done,files=[{file="/takamaka.a/brobecke/ex/list-exec-source-files/foo.c",fullname="foo.c"},{file="/takamaka.a/brobecke/ex/list-exec-source-files/foo.c",fullname="foo.c"},{file="",fullname="init.c"},{file="",fullname="../sysdeps/x86_64/elf/start.S"},{file="",fullname="../sysdeps/x86_64/elf/start.S"}]
It turns out to be a silly thinko: The map_symbol_filenames function
calls the psymtab version of map_symbol_filenames routine, and this
version called the callback function with filename and fullname
in the wrong order (fullname/filename instead of filename/fullname).
The routine description in symfile.h confirst that expected order for
the FUN callback parameters:
/* Call a callback for every file defined in OBJFILE. FUN is the
callback. It is passed the file's name, the file's full name,
and the DATA passed to this function. */
void (*map_symbol_filenames) (struct objfile *objfile,
void (*fun) (const char *, const char *,
void *),
void *data);
Fixing this error uncovered another location where the arguments
were reversed: maybe_add_partial_symtab_filename. Once the first
error was fixed, the debugger would crash while attempting to do
completion, because it was given a NULL fullname instead of the
non-NULL filename.
gdb/ChangeLog:
* psymtab.c (map_symbol_filenames_psymtab): Call FUN with
the arguments in the correct order.
* symtab.c (maybe_add_partial_symtab_filename): Declare
the arguments in the correct order.
commit f1dbee9626f22f5ed6433a7b3eb928e46f4c0c28
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Aug 19 07:34:26 2010 +0000
gdb/
* varobj.c (varobj_create): Replace variable old_fi with old_id,
initialize it by null_frame_id, wrap its usage by get_frame_id,
frame_id_p and frame_find_by_id.
commit 105c933eb72039680ac0ee8d03508a2b218d5c88
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Aug 19 07:05:56 2010 +0000
* gdb.base/default.exp (info set): Avoid full buffer error and force
reading up to final gdb prompt.
(show): Likewise.
commit 53998427eeb52f2f16bd75962f2ef2198922030f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Aug 19 00:00:35 2010 +0000
*** empty log message ***
commit e9f28d52cde2d81629b2784b3782731158b8bb69
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Aug 19 00:00:06 2010 +0000
daily update
commit 5da6e2c3898d33868e57e135736fdf8a20a13de3
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Aug 18 22:57:45 2010 +0000
PR python/11900:
* configure: Rebuild.
* configure.ac: Add install-python to CONFIG_INSTALL.
* Makefile.in (install-python): New.
commit cf5764ad1be1132fcfcc6189027467f54cecadd5
Author: Doug Evans <dje@google.com>
Date: Wed Aug 18 19:13:32 2010 +0000
* gdb_assert.h (gdb_assert_not_reached): New macro.
(gdb_assert_fail): Fix typo in comment.
* avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
gdb_assert (0).
* darwin-nat.c (darwin_check_new_threads): Ditto.
* dwarf2read.c (dwarf2_get_section_info): Ditto.
(munmap_section_buffer): Ditto.
* m32c-tdep.c (make_types): Ditto.
(m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
* macroexp.c (get_character_constant): Ditto.
(get_string_literal): Ditto.
* mep-tdep.c (mep_pseudo_cr_size): Ditto.
(mep_pseudo_cr_index, mep_register_type): Ditto.
(mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
(mep_get_insn, mep_analyze_prologue): Ditto.
* objfiles.c (qsort_cmp): Ditto.
* prologue-value.c (pv_is_identical): Ditto.
* record.c (record_get_loc): Ditto.
* value.c (value_static_field): Ditto.
* xtensa-tdep.c (call0_track_op): Ditto.
commit 56ac3a0fab6bc82b7e8eeb280181cdb51f2ad1b2
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Aug 18 19:02:32 2010 +0000
gdb
PR symtab/11919:
* gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
* parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
name-copying lower. Document exception behavior.
* completer.c (expression_completer): Catch exceptions from
parse_field_expression.
gdb/testsuite
PR symtab/11919:
* gdb.base/completion.exp: Add test.
commit 0a78bf390d585703fd18cfaa8a29c7cb0aa61c90
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Wed Aug 18 17:58:48 2010 +0000
* gdb.texinfo (PowerPC Embedded): Mention support for the DVC register.
commit 932984d6160cee42e7ff478f69d3500d1caa319f
Author: Doug Evans <dje@google.com>
Date: Wed Aug 18 16:37:21 2010 +0000
* gdb.base/call-ar-st.exp (set_lang_c): Delete, unused.
* gdb.base/callfuncs.exp (set_lang_c): Delete, set c language directly.
* gdb.base/printcmds.exp (set_lang_c): Delete, set c language directly.
Simplify, early exit if runto_main fails.
* gdb.fortran/exprs.exp: load_lib fortran.exp.
(set_lang_fortran): Moved to lib/fortran.exp.
* gdb.fortran/types.exp: load_lib fortran.exp.
(set_lang_fortran): Moved to lib/fortran.exp.
* gdb.java/jmisc.exp (set_lang_java): Moved to lib/java.exp.
* gdb.java/jprint.exp (set_lang_java): Ditto.
* gdb.java/jv-exp.exp: load_lib java.exp.
If set_lang_java fails, issue a warning instead of failure to be
consistent with other set_lang_foo uses.
(set_lang_java): Moved to lib/java.exp.
* gdb.java/jv-print.exp (set_lang_java): Moved to lib/java.exp.
If set_lang_java fails, issue a warning instead of failure to be
consistent with other set_lang_foo uses.
* gdb.pascal/types.exp: load_lib pascal.exp.
(set_lang_pascal): Moved to lib/pascal.exp.
* lib/fortran.exp: New file.
* lib/java.exp (set_lang_java): New function.
* lib/pascal.exp (set_lang_pascal): New function.
commit 862e2ad21b37a4d019d6636b594c9a6dcc1f314e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Aug 18 12:25:48 2010 +0000
PR corefile/8210
* linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
workaround on core files.
(try_thread_db_load_1): Don't try enabling thread event reporting
on core files.
(thread_db_load): Allow thread_db on core files.
(attach_thread): Don't check thread signals on core files, nor try
really attaching to the thread, nor enabling thread event event
reporting.
(thread_db_detach): Don't try disabing thread event reporting or
removing thread event breakpoints when debugging a core file.
(find_new_threads_callback): Don't try enabling thread event
reporting on core files.
(thread_db_find_new_threads_2): Don't look for a stopped lwp when
debugging a core file.
(thread_db_find_new_threads): Don't update thread
cores (processors) when debugging a core (dump).
commit de97dcfa84c8d23d0c755988cc7676e4c14ed91f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Aug 18 12:24:02 2010 +0000
2010-08-18 Pedro Alves <pedro@codesourcery.com>
PR corefile/8210
bfd/
* bfd-in2.h: Regenerate.
* corefile.c (bfd_core_file_pid): New.
* targets.c (BFD_JUMP_TABLE_CORE): Add NAME##_core_file_pid.
(struct bfd_target) <_core_file_pid>: New.
* libbfd-in.h (_bfd_nocore_core_file_pid): Declare.
* libbfd.c (_bfd_nocore_core_file_pid): New.
* elf-bfd.h (bfd_elf32_core_file_pid, bfd_elf64_core_file_pid):
Declare.
* elfcode.h (elf_core_file_pid): New define.
* elfcore.h (elf_core_file_pid): New function.
* elf.c (elfcore_make_pid): Rewrite.
(elfcore_grok_prstatus): Only set core_pid if not set yet.
(elfcore_grok_prstatus) [!HAVE_PRSTATUS_T_PR_WHO]: Fallback to
getting the lwpid from prstat.pr_pid.
* elf64-x86-64.c (elf64_x86_64_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
(elf64_x86_64_grok_psinfo): Extract the the main process's PID,
and store it in elf_tdata's core_pid field.
* elf32-i386.c (elf_i386_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
(elf_i386_grok_psinfo): Extract the the main process's PID, and
store it in elf_tdata's core_pid field.
* elf32-am33lin.c (elf32_am33lin_grok_prstatus): Write the LWPID
to elf_tdata's core_lwpid instead of to core_pid.
* elf32-arm.c (elf32_arm_nabi_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf32-cris.c (cris_elf_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf32-frv.c (elf32_frv_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf32-hppa.c (elf32_hppa_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf32-ppc.c (ppc_elf_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf32-s390.c (elf_s390_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf32-score.c (s3_bfd_score_elf_grok_prstatus): Write the LWPID
to elf_tdata's core_lwpid instead of to core_pid.
* elf32-score7.c (s7_bfd_score_elf_grok_prstatus): Write the LWPID
to elf_tdata's core_lwpid instead of to core_pid.
* elf32-sh.c (elf32_shlin_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf32-xtensa.c (elf_xtensa_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf64-hppa.c (elf64_hppa_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf64-mips.c (elf64_mips_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elf64-ppc.c (ppc64_elf_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
elf_tdata's core_lwpid instead of to core_pid.
* plugin.c (bfd_plugin_core_file_pid): New function.
* aout-target.h (MY_core_file_pid): Define.
* aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
* coff-rs6000.c (coff_core_file_pid): New define.
(rs6000coff_vec, pmac_xcoff_vec): Use BFD_JUMP_TABLE_CORE.
* coff64-rs6000.c (coff_core_file_pid): New define.
(rs6000coff64_vec): Use BFD_JUMP_TABLE_CORE.
(xcoff64_core_file_pid): New define.
(aix5coff64_vec): Use BFD_JUMP_TABLE_CORE.
* mach-o-target.c (bfd_mach_o_core_file_pid): New define.
* aix386-core.c (aix386_core_file_pid): New define.
* hppabsd-core.c (hppabsd_core_core_file_pid): New define.
* hpux-core.c (hpux_core_core_file_pid): New define.
* irix-core.c (irix_core_core_file_pid): New define.
* lynx-core.c (lynx_core_file_pid): New define.
* osf-core.c (osf_core_core_file_pid): New define.
* ptrace-core.c (ptrace_unix_core_file_pid): New define.
* sco5-core.c (sco5_core_file_pid): New define.
* xcoff-target.h (coff_core_file_pid): New define.
* netbsd-core.c (netbsd_core_core_file_pid): New define.
gdb/
2010-08-18 Pedro Alves <pedro@codesourcery.com>
PR corefile/8210
gdb/
* corelow.c (add_to_thread_list): Don't use
gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
(get_core_register_section): Don't use
gdbarch_core_reg_section_encodes_pid.
* gdbarch.sh (core_reg_section_encodes_pid): Delete.
* gdbarch.h, gdbarch.c: Regenerate.
* amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
gdbarch_core_reg_section_encodes_pid.
* i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
* sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
* sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
commit 5815370ed6ef1ccff78ee7fea7e25976b5b1147b
Author: qiyao <qiyao>
Date: Wed Aug 18 03:20:46 2010 +0000
Forget to check in ChangeLog in my previous commit.
http://sourceware.org/ml/gdb-cvs/2010-08/msg00098.html
commit f0d798c8797e9ed98c1174956a12ae8aa2b82012
Author: qiyao <qiyao>
Date: Wed Aug 18 03:16:05 2010 +0000
In order to fix a checkin mistake in dw2-ref-missing-frame-func.c:r1.2,
revert it back, and re-apply the correct patch again.
2010-08-18 Yao Qi <yao@codesourcery.com
* gdb.dwarf2/dw2-ref-missing-frame-func.c: Add .p2align 4 for labels
func_nofb_start and func_loopfb_start, so that address of functions
is equal to these labels on Thumb.
commit 86c443d037a6c35e79dd23b3313e1eaa9b15648f
Author: qiyao <qiyao>
Date: Wed Aug 18 03:06:38 2010 +0000
revert back to previous revision
commit c24602fe78164c370b84486dfcbe7ebb45f8764b
Author: qiyao <qiyao>
Date: Wed Aug 18 02:44:01 2010 +0000
2010-08-18 Yao Qi <yao@codesourcery.com
* gdb.dwarf2/dw2-ref-missing-frame-func.c: Add .p2align 4 for labels
func_nofb_start and func_loopfb_start, so that address of functions
is equal to these labels on Thumb.
commit c82ada6043ef5bb264e314a3e140da8ac7210156
Author: qiyao <qiyao>
Date: Wed Aug 18 02:30:07 2010 +0000
2010-08-18 Yao Qi <yao@codesourcery.com>
* gdb.gdb/selftest.exp (do_steps_and_nexts): Update test case
to reflect latest c source file.
commit d8ab61e63785e8c999a8ca6f5b1f7e4de155cbff
Author: qiyao <qiyao>
Date: Wed Aug 18 02:24:47 2010 +0000
2010-08-18 Yao Qi <yao@codesourcery.com>
* MAINTAINERS : Add myself under Write After Approval.
commit f6759e82e98662d33afdb5b339f5ebf55ee64e69
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Aug 18 00:00:34 2010 +0000
*** empty log message ***
commit d945166c000a50d6765b5fdd4d2d0e780322bdac
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Aug 18 00:00:06 2010 +0000
daily update
commit 68f4600ddb7a288e31df06a3da5de7aa866f920d
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Aug 17 21:34:12 2010 +0000
* NEWS: Mention template parameter support.
commit c21afd50919a0a082e44083fca4693402b6194f5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Aug 17 21:31:12 2010 +0000
gdb/testsuite/
* gdb.cp/infcall-dlopen.exp: New file.
* gdb.cp/infcall-dlopen.cc: New file.
* gdb.cp/infcall-dlopen-lib.cc: New file.
commit f8b3620a572c7afb73fd46e49d06540b0e8db597
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Aug 17 21:12:32 2010 +0000
* breakpoint.c (decref_bp_location): Assert the reference count is
sane.
commit 043822a615f37ecb759463136ee557720c4a9fac
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Aug 17 20:59:01 2010 +0000
gdb/
2010-08-17 Pedro Alves <pedro@codesourcery.com>
PR breakpoints/11371
* breakpoint.c (breakpoint_init_inferior): Decrement the
location's reference count instead of deleting right away.
(bpstat_free): Decrement the location's reference count. Make
static.
(bpstat_copy): Increment the location's reference count.
(bpstat_find_breakpoint): Adjust.
(bpstat_num): Adjust.
(print_it_typical): Adjust. Use the breakpoint pointer in the
bpstat instead of the location's owner.
(bpstat_alloc): Remove const qualifier from the 'bl' parameter.
Adjust to record the location's owner in the bpstat.
(watchpoint_check): Use the breakpoint pointer in the bpstat
instead of the location's owner.
(bpstat_check_breakpoint_conditions): Don't handle
bp_watchpoint_scope here. Use the breakpoint pointer in the
bpstat instead of the location's owner.
(bpstat_stop_status): Defer inferior function calls to after
building the bpstat list. Handle bp_watchpoint_scope here. Use
the breakpoint pointer in the bpstat instead of the location's
owner.
(bpstat_what): Use the breakpoint pointer in the bpstat instead of
the location's owner.
(free_bp_location): Don't walk bpstats clearing locations.
(incref_bp_location): New.
(decref_bp_location): New.
(breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
instead of the location's owner.
(update_global_location_list): Clear the location's owner, and
decrement the location's reference count instead of deleting it
right away.
(breakpoint_retire_moribund): Decrement the location's reference
count instead of deleting it right away.
(bpstat_remove_bp_location): Delete.
(bpstat_remove_breakpoint): New.
(bpstat_remove_bp_location_callback): Delete.
(bpstat_remove_breakpoint_callback): New.
(delete_breakpoint): Iterate over all threads' stop_bpstat's
clearing references to the breakpoint that is being deleted.
* breakpoint.h (struct bp_location) <refc>: New field.
<owner>: Update comments.
(bpstat_free): Delete declaration.
(struct bpstats): Change the type of the breakpoint_at field to
struct breakpoint point, from struct bp_location pointer. Add new
field bp_location_at.
gdb/testsuite/
2010-08-17 Jan Kratochvil <jan.kratochvil@redhat.com>
Pedro Alves <pedro@codesourcery.com>
PR breakpoints/11371
* gdb.base/watch-cond-infcall.exp: New file.
* gdb.base/watch-cond-infcall.c: New file.
commit 6617d8b04045dfc090242a5e4c3e486664ce5aa9
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 17 20:37:26 2010 +0000
Replace Eb with Mb on prefetch and prefetchw.
2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (reg_table): Replace Eb with Mb on prefetch and
prefetchw.
commit ad5ca54c4186f7b7e9d72aa3c3663e43e7fc0abb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Aug 17 00:00:05 2010 +0000
daily update
commit f868031edee5a5f511c6708abdced9a9292f27b9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 17 00:00:03 2010 +0000
*** empty log message ***
commit 1e88746f6532ebfdd77f59314cef8c1dbcf94130
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Aug 16 21:19:29 2010 +0000
* NEWS: Fix typo.
commit 9076507f0fe9994752285c246445364c2dd3cb81
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Aug 16 21:15:46 2010 +0000
* NEWS: Mention watch -location.
commit e265b24b8ef087a3440f8cdf1dd029a3d7000316
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Aug 16 19:53:04 2010 +0000
gdb/
* breakpoint.c (update_watchpoint): Add source empty line. Prefer
EXP_STRING_REPARSE to EXP_STRING.
(watch_command_1): Set also EXP_STRING_REPARSE.
(delete_breakpoint): Free also EXP_STRING_REPARSE.
* breakpoint.h (struct breakpoint): New field exp_string_reparse.
Update comment for exp_string.
commit 3e06230a605ff3aa18120d86554fd9e2d679632a
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Aug 16 19:19:20 2010 +0000
gdb
* value.c (release_value): Clear 'next' pointer.
* breakpoint.c (watch_command_1): Add 'just_location' argument.
(watch_command_wrapper): Update.
(watch_maybe_just_location): New function.
(watch_command): Update.
(rwatch_command_wrapper): Update.
(rwatch_command): Update.
(awatch_command_wrapper): Update.
(awatch_command): Update.
(check_for_argument): New function.
(_initialize_breakpoint): Update help text.
gdb/testsuite
* gdb.base/help.exp: Update.
* gdb.base/watchpoint.exp (test_watchpoint_and_breakpoint): Delete
watchpoint.
(test_watch_location): New proc.
(test_watchpoint_in_big_blob): Delete watchpoint.
* gdb.base/watchpoint.c (func5): New function.
(main): Call it.
gdb/doc
* gdb.texinfo (Set Watchpoints): Document -location option.
commit ca5a787de620fa149a6a5f2f161b6ea20bd74f4d
Author: Doug Evans <dje@google.com>
Date: Mon Aug 16 18:01:40 2010 +0000
* gdb.python/python.exp: Fix syntax in "post event insertion" test.
commit 70f9e111de897927cdb841b688771a4296dd151d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 16 00:00:33 2010 +0000
*** empty log message ***
commit 27e2f81dc801e4c94b36a7160619350fc90fcee2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Aug 16 00:00:05 2010 +0000
daily update
commit d24e2b1c50748d55a66b46d0b910fd751ba93cd9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 15 00:00:33 2010 +0000
*** empty log message ***
commit 6144e1ba37bc8837d4cbebac933e1af8ab7acde7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Aug 15 00:00:05 2010 +0000
daily update
commit 8c14d1ec5627bf3ad1f77ffc925c3d2a676d34f1
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Sat Aug 14 00:45:38 2010 +0000
* arm-tdep.c (arm_push_dummy_call): Handle pointers to
typedef'ed function types correctly.
commit 8e890f62d09f3578a01972ab3ce630d89c4026fb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Aug 14 00:00:05 2010 +0000
daily update
commit 9598cd35f8e1939aadc6b1e4b0bda5b3a59f7864
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Aug 14 00:00:04 2010 +0000
*** empty log message ***
commit 42fca9ebb9b268c5eae978c2d4a5ec4c04911aba
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Aug 13 20:50:45 2010 +0000
* python/python-internal.h (gdbpy_get_hook_function): Don't
declare.
commit 49dc52d54d94ddb7ef479f2c1a97544287d92b72
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 13 20:50:25 2010 +0000
Check if .got.plt section is discarded before using it.
bfd/
2010-08-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11913
* elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
.got.plt section is discarded.
* elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.
ld/testsuite/
2010-08-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11913
* ld-i386/discarded1.d: New.
* ld-i386/discarded1.s: Likewise.
* ld-i386/discarded1.t: Likewise.
* ld-x86-64/discarded1.d: Likewise.
* ld-x86-64/discarded1.s: Likewise.
* ld-x86-64/discarded1.t: Likewise.
* ld-i386/i386.exp: Run discarded1.
* ld-x86-64/x86-64.exp: Likewise.
commit eb5bb75603df50cbfd31651cdebe64064d514153
Author: Doug Evans <dje@google.com>
Date: Fri Aug 13 20:39:09 2010 +0000
* gdb.texinfo (.debug_gdb_scripts section): Fix typo.
commit 589b38aaab27482977d59f190db97b6e60065114
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Aug 13 17:35:36 2010 +0000
gdb/
* cli-logging.c (logging_overwrite, logging_redirect): Make them
static.
commit 2c009df0760d9d081de7dac27412a2a5007e27d8
Author: kwerner <kwerner>
Date: Fri Aug 13 16:19:47 2010 +0000
gdb:
* python/python.c (gdbpy_solib_name): Remove the const qualifier of
the format strings to be compatible with Python 2.4.
commit b0ee4b352cead35cb4fd8f528000dbcdb502d303
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Fri Aug 13 13:22:39 2010 +0000
Easier and more stubborn MI memory read commands.
* mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
and data-write-memory-bytes.
* mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
(mi_cmd_data_write_memory_bytes): New.
* mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
(mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
New.
(mi_cmd_list_features): Add "data-read-memory-bytes" feature.
* target.c (target_read_until_error): Remove.
(read_whatever_is_readable, free_memory_read_result_vector)
(read_memory_robust): New.
* target.h (target_read_until_error): Remove.
(struct memory_read_result, free_memory_read_result_vector)
(read_memory_robust): New.
commit a8450836d6b035eba242772b905fab66551b2df9
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Fri Aug 13 13:03:44 2010 +0000
bfd/
* elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B
variant.
binutils/
* readelf.c (get_machine_flags): Detect CF ISA C and EMAC_B
variants.
commit 7b3fbd65ce43cb0b04b247c1f9628cec61f31d85
Author: Nick Clifton <nickc@redhat.com>
Date: Fri Aug 13 11:36:10 2010 +0000
* argv.c (expandargv): Limit the number of times that response
files are opened in order to prevent infinite recursion.
commit a8dd3249418b044de6e8b1b791092aff4381b31b
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Aug 13 03:14:01 2010 +0000
2010-08-13 Hui Zhu <teawater@gmail.com>
* dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
(read_comp_unit): Initialize back_to.
commit 39f47d3a439f6e0255b1c8007a0573cc72ac3471
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Aug 13 00:00:33 2010 +0000
*** empty log message ***
commit 657d609272c806417ea6f583b882d9825830da53
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Aug 13 00:00:05 2010 +0000
daily update
commit a6fd945df789f31425f55b71c92d7a9e84c74bbd
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 12 19:55:38 2010 +0000
2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
Pedro Alves <pedro@codesourcery.com>
* dwarf2read.c: Include "c-lang.h" and "valprint.h".
(struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
(struct partial_die_info) <has_template_arguments>: New field.
<num_attrs>: Change type to unsigned char.
<building_fullname>: New field.
(dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
allocate a CU if we don't have one already. Add a cleanup for the
CU.
(partial_die_full_name): Handle template arguments not in
DW_AT_name.
(dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
(load_full_comp_unit): Only allocate a CU if we don't have one
already.
(do_ui_file_peek_last): New.
(dwarf2_compute_name): Handle template parameters not in
DW_AT_name.
(read_comp_unit): Read and free abbrevs if not read yet.
(load_partial_dies): Handle template arguments not in DW_AT_name.
(find_partial_die): If we have a CU, but no a partial dies yet,
also read in the CU.
(dwarf2_const_value_attr): New, abstracted out from
dwarf2_const_value.
(dwarf2_const_value, dwarf2_const_value_data): Adjust to use
dwarf2_const_value_attr.
(determine_prefix): Detect and break loops created by RCVT's debug
info.
(maybe_queue_comp_unit): Bail out early if reading partial
symbols.
(follow_die_offset): Load full CU if we have no dies.
* dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
* dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
commit 4a50992f02873a9f8350be9f69f6d93b00109594
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 12 17:53:17 2010 +0000
Mention Makefile.in in ChangeLog.
commit fc65b379db56751361debc759395a1bbeeace628
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Aug 12 17:49:41 2010 +0000
Disable -Werror on coff-tic4x.lo and coff-tic54x.lo.
2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/11909
* Makefile.am (coff-tic4x.lo): New. Disable -Werror.
(coff-tic54x.lo): Likewise.
commit 81442b75d06e89b0ebd4aefc7c7bc4c7b60876b0
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Aug 12 16:23:30 2010 +0000
PR ld/11843
* elflink.c (compute_bucket_count): Avoid futile long searches for
the best bucket size.
commit eb33c8040b5544daf145a10a4aff969ef71c4642
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 12 15:16:12 2010 +0000
Really commit server.c bits of 2010-08-09's change...
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 116 ++++
bfd/Makefile.am | 16 +
bfd/Makefile.in | 16 +
bfd/aix386-core.c | 2 +
bfd/aout-target.h | 3 +
bfd/aout-tic30.c | 3 +
bfd/bfd-in2.h | 10 +-
bfd/coff-rs6000.c | 12 +-
bfd/coff64-rs6000.c | 14 +-
bfd/corefile.c | 25 +
bfd/elf-bfd.h | 4 +
bfd/elf.c | 22 +-
bfd/elf32-am33lin.c | 2 +-
bfd/elf32-arm.c | 2 +-
bfd/elf32-cris.c | 4 +-
bfd/elf32-frv.c | 2 +-
bfd/elf32-hppa.c | 2 +-
bfd/elf32-i386.c | 13 +-
bfd/elf32-m68k.c | 3 +
bfd/elf32-mips.c | 2 +-
bfd/elf32-ppc.c | 2 +-
bfd/elf32-s390.c | 2 +-
bfd/elf32-score.c | 2 +-
bfd/elf32-score7.c | 2 +-
bfd/elf32-sh.c | 2 +-
bfd/elf32-xtensa.c | 2 +-
bfd/elf64-hppa.c | 2 +-
bfd/elf64-mips.c | 2 +-
bfd/elf64-ppc.c | 2 +-
bfd/elf64-x86-64.c | 11 +-
bfd/elfcode.h | 1 +
bfd/elfcore.h | 6 +
bfd/elflink.c | 6 +
bfd/elfn32-mips.c | 2 +-
bfd/hppabsd-core.c | 1 +
bfd/hpux-core.c | 1 +
bfd/irix-core.c | 1 +
bfd/libbfd-in.h | 2 +
bfd/libbfd.c | 10 +
bfd/libbfd.h | 2 +
bfd/lynx-core.c | 1 +
bfd/mach-o-target.c | 1 +
bfd/merge.c | 4 +
bfd/netbsd-core.c | 1 +
bfd/osf-core.c | 1 +
bfd/plugin.c | 7 +
bfd/ptrace-core.c | 1 +
bfd/sco5-core.c | 1 +
bfd/targets.c | 4 +-
bfd/trad-core.c | 1 +
bfd/version.h | 2 +-
bfd/xcoff-target.h | 1 +
gdb/ChangeLog | 283 +++++++++
gdb/MAINTAINERS | 1 +
gdb/Makefile.in | 2 +
gdb/NEWS | 68 +++
gdb/amd64-sol2-tdep.c | 4 -
gdb/arm-tdep.c | 2 +-
gdb/avr-tdep.c | 2 +-
gdb/breakpoint.c | 354 ++++++++----
gdb/breakpoint.h | 53 ++-
gdb/c-exp.y | 39 +--
gdb/cli/cli-logging.c | 4 +-
gdb/completer.c | 11 +-
gdb/configure | 1 +
gdb/configure.ac | 1 +
gdb/corelow.c | 38 +--
gdb/darwin-nat.c | 2 +-
gdb/doc/ChangeLog | 17 +
gdb/doc/gdb.texinfo | 157 +++++-
gdb/dwarf2loc.c | 2 +-
gdb/dwarf2loc.h | 10 +
gdb/dwarf2read.c | 604 ++++++++++++++++----
gdb/gdb_assert.h | 13 +-
gdb/gdbarch.c | 23 -
gdb/gdbarch.h | 9 -
gdb/gdbarch.sh | 7 -
gdb/gdbserver/server.c | 20 +-
gdb/gdbtypes.c | 20 +-
gdb/i386-sol2-tdep.c | 4 -
gdb/jv-exp.y | 33 +-
gdb/linux-thread-db.c | 85 ++-
gdb/m32c-tdep.c | 8 +-
gdb/macroexp.c | 4 +-
gdb/mep-tdep.c | 15 +-
gdb/mi/mi-cmds.c | 2 +
gdb/mi/mi-cmds.h | 2 +
gdb/mi/mi-main.c | 127 ++++-
gdb/objc-exp.y | 22 +-
gdb/objfiles.c | 6 +-
gdb/p-exp.y | 32 +-
gdb/parse.c | 83 +++-
gdb/parser-defs.h | 6 +
gdb/prologue-value.c | 2 +-
gdb/psymtab.c | 2 +-
gdb/python/python-internal.h | 1 -
gdb/python/python.c | 5 +-
gdb/record.c | 2 +-
gdb/sparc-sol2-tdep.c | 4 -
gdb/sparc64-sol2-tdep.c | 4 -
gdb/symtab.c | 2 +-
gdb/target.c | 239 ++++++--
gdb/target.h | 21 +-
gdb/testsuite/ChangeLog | 109 ++++
gdb/testsuite/gdb.arch/vsx-regs.exp | 20 +-
gdb/testsuite/gdb.base/call-ar-st.exp | 24 -
gdb/testsuite/gdb.base/callfuncs.exp | 27 +-
gdb/testsuite/gdb.base/completion.exp | 19 +-
gdb/testsuite/gdb.base/default.exp | 57 ++-
gdb/testsuite/gdb.base/help.exp | 2 +-
gdb/testsuite/gdb.base/printcmds.exp | 120 ++--
.../python-sl.c => gdb.base/watch-cond-infcall.c} | 15 +-
gdb/testsuite/gdb.base/watch-cond-infcall.exp | 61 ++
gdb/testsuite/gdb.base/watchpoint.c | 13 +
gdb/testsuite/gdb.base/watchpoint.exp | 19 +
.../python-sl.c => gdb.cp/infcall-dlopen-lib.cc} | 10 -
.../python-sl.c => gdb.cp/infcall-dlopen.cc} | 17 +-
gdb/testsuite/gdb.cp/infcall-dlopen.exp | 46 ++
.../gdb.dwarf2/dw2-ref-missing-frame-func.c | 2 +
gdb/testsuite/gdb.fortran/exprs.exp | 20 +-
gdb/testsuite/gdb.fortran/types.exp | 20 +-
gdb/testsuite/gdb.gdb/selftest.exp | 8 +-
gdb/testsuite/gdb.java/jmisc.exp | 19 +-
gdb/testsuite/gdb.java/jprint.exp | 19 +-
gdb/testsuite/gdb.java/jv-exp.exp | 19 +-
gdb/testsuite/gdb.java/jv-print.exp | 43 +-
gdb/testsuite/gdb.objc/print.exp | 68 +++
gdb/testsuite/gdb.pascal/print.exp | 64 ++
gdb/testsuite/gdb.pascal/types.exp | 18 +-
gdb/testsuite/gdb.python/Makefile.in | 7 +-
.../gdb.python/{python-sl.c => py-shared-sl.c} | 0
gdb/testsuite/gdb.python/{python.c => py-shared.c} | 2 +-
gdb/testsuite/gdb.python/py-shared.exp | 77 +++
.../gdb.python/{python-sl.c => python-1.c} | 0
gdb/testsuite/gdb.python/python.c | 2 +-
gdb/testsuite/gdb.python/python.exp | 27 +-
gdb/testsuite/lib/fortran.exp | 30 +
gdb/testsuite/lib/java.exp | 14 +
gdb/testsuite/lib/objc.exp | 30 +
gdb/testsuite/lib/pascal.exp | 13 +
gdb/value.c | 4 +-
gdb/varobj.c | 8 +-
gdb/version.in | 2 +-
gdb/xtensa-tdep.c | 2 +-
libiberty/ChangeLog | 5 +
libiberty/argv.c | 11 +-
opcodes/ChangeLog | 5 +
opcodes/i386-dis.c | 4 +-
148 files changed, 2978 insertions(+), 941 deletions(-)
copy gdb/testsuite/{gdb.python/python-sl.c => gdb.base/watch-cond-infcall.c} (84%)
create mode 100644 gdb/testsuite/gdb.base/watch-cond-infcall.exp
copy gdb/testsuite/{gdb.python/python-sl.c => gdb.cp/infcall-dlopen-lib.cc} (92%)
copy gdb/testsuite/{gdb.python/python-sl.c => gdb.cp/infcall-dlopen.cc} (77%)
create mode 100644 gdb/testsuite/gdb.cp/infcall-dlopen.exp
create mode 100644 gdb/testsuite/gdb.objc/print.exp
create mode 100644 gdb/testsuite/gdb.pascal/print.exp
copy gdb/testsuite/gdb.python/{python-sl.c => py-shared-sl.c} (100%)
copy gdb/testsuite/gdb.python/{python.c => py-shared.c} (96%)
create mode 100644 gdb/testsuite/gdb.python/py-shared.exp
rename gdb/testsuite/gdb.python/{python-sl.c => python-1.c} (100%)
create mode 100644 gdb/testsuite/lib/fortran.exp
create mode 100644 gdb/testsuite/lib/objc.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 528fa3c..9a52165 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,119 @@
+2010-08-20 Nick Clifton <nickc@redhat.com>
+
+ * merge.c (sec_merge_emit): Do not zero pad sections that do not
+ have an alignment.
+
+2010-08-18 Pedro Alves <pedro@codesourcery.com>
+
+ PR corefile/8210
+
+ * bfd-in2.h: Regenerate.
+ * corefile.c (bfd_core_file_pid): New.
+
+ * targets.c (BFD_JUMP_TABLE_CORE): Add NAME##_core_file_pid.
+ (struct bfd_target) <_core_file_pid>: New.
+
+ * libbfd-in.h (_bfd_nocore_core_file_pid): Declare.
+ * libbfd.c (_bfd_nocore_core_file_pid): New.
+
+ * elf-bfd.h (bfd_elf32_core_file_pid, bfd_elf64_core_file_pid):
+ Declare.
+ * elfcode.h (elf_core_file_pid): New define.
+ * elfcore.h (elf_core_file_pid): New function.
+
+ * elf.c (elfcore_make_pid): Rewrite.
+ (elfcore_grok_prstatus): Only set core_pid if not set yet.
+ (elfcore_grok_prstatus) [!HAVE_PRSTATUS_T_PR_WHO]: Fallback to
+ getting the lwpid from prstat.pr_pid.
+
+ * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ (elf64_x86_64_grok_psinfo): Extract the the main process's PID,
+ and store it in elf_tdata's core_pid field.
+ * elf32-i386.c (elf_i386_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ (elf_i386_grok_psinfo): Extract the the main process's PID, and
+ store it in elf_tdata's core_pid field.
+
+ * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Write the LWPID
+ to elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-arm.c (elf32_arm_nabi_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-cris.c (cris_elf_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-frv.c (elf32_frv_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-hppa.c (elf32_hppa_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-ppc.c (ppc_elf_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-s390.c (elf_s390_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-score.c (s3_bfd_score_elf_grok_prstatus): Write the LWPID
+ to elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-score7.c (s7_bfd_score_elf_grok_prstatus): Write the LWPID
+ to elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-sh.c (elf32_shlin_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf32-xtensa.c (elf_xtensa_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf64-hppa.c (elf64_hppa_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf64-mips.c (elf64_mips_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elf64-ppc.c (ppc64_elf_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+ * elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
+ elf_tdata's core_lwpid instead of to core_pid.
+
+ * plugin.c (bfd_plugin_core_file_pid): New function.
+ * aout-target.h (MY_core_file_pid): Define.
+ * aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
+ * coff-rs6000.c (coff_core_file_pid): New define.
+ (rs6000coff_vec, pmac_xcoff_vec): Use BFD_JUMP_TABLE_CORE.
+ * coff64-rs6000.c (coff_core_file_pid): New define.
+ (rs6000coff64_vec): Use BFD_JUMP_TABLE_CORE.
+ (xcoff64_core_file_pid): New define.
+ (aix5coff64_vec): Use BFD_JUMP_TABLE_CORE.
+ * mach-o-target.c (bfd_mach_o_core_file_pid): New define.
+ * aix386-core.c (aix386_core_file_pid): New define.
+ * hppabsd-core.c (hppabsd_core_core_file_pid): New define.
+ * hpux-core.c (hpux_core_core_file_pid): New define.
+ * irix-core.c (irix_core_core_file_pid): New define.
+ * lynx-core.c (lynx_core_file_pid): New define.
+ * osf-core.c (osf_core_core_file_pid): New define.
+ * ptrace-core.c (ptrace_unix_core_file_pid): New define.
+ * sco5-core.c (sco5_core_file_pid): New define.
+ * xcoff-target.h (coff_core_file_pid): New define.
+ * netbsd-core.c (netbsd_core_core_file_pid): New define.
+
+2010-08-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11913
+ * elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
+ .got.plt section is discarded.
+ * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.
+
+2010-08-13 Nathan Sidwell <nathan@codesourcery.com>
+
+ * elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B
+ variant.
+
+2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/11909
+ * Makefile.am (coff-tic4x.lo): New. Disable -Werror.
+ (coff-tic54x.lo): Likewise.
+ * Makefile.in: Regenerated.
+
+2010-08-12 Todd Veldhuizen <todd.veldhuizen@logicblox.com>
+
+ PR ld/11843
+ * elflink.c (compute_bucket_count): Avoid futile long searches for
+ the best bucket size.
+
2010-08-09 Richard Henderson <rth@redhat.com>
PR ld/11891
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index f2ee38f..03c5fc7 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -960,3 +960,19 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in
-e "s,@report_bugs_to@,$$report_bugs_to," \
< $(srcdir)/version.h > $@; \
echo "$${bfd_soversion}" > libtool-soversion
+
+# Disable -Werror, if it has been enabled, since coffswap.h won't
+# compile with gcc 4.5 and above.
+coff-tic4x.lo: coff-tic4x.c
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
+
+coff-tic54x.lo: coff-tic54x.c
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 7f67714..7d3dfab 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -1990,6 +1990,22 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in
< $(srcdir)/version.h > $@; \
echo "$${bfd_soversion}" > libtool-soversion
+# Disable -Werror, if it has been enabled, since coffswap.h won't
+# compile with gcc 4.5 and above.
+coff-tic4x.lo: coff-tic4x.c
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
+
+coff-tic54x.lo: coff-tic54x.c
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR)
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< $(NO_WERROR)
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff --git a/bfd/aix386-core.c b/bfd/aix386-core.c
index 4438e28..634d997 100644
--- a/bfd/aix386-core.c
+++ b/bfd/aix386-core.c
@@ -211,6 +211,8 @@ aix386_core_file_failing_signal (abfd)
#define aix386_core_file_matches_executable_p generic_core_file_matches_executable_p
+#define aix386_core_file_pid _bfd_nocore_core_file_pid
+
/* If somebody calls any byte-swapping routines, shoot them. */
static void
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index fe1d66e..5162494 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -401,6 +401,9 @@ MY_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
#define MY_core_file_matches_executable_p \
_bfd_nocore_core_file_matches_executable_p
#endif
+#ifndef MY_core_file_pid
+#define MY_core_file_pid _bfd_nocore_core_file_pid
+#endif
#ifndef MY_core_file_p
#define MY_core_file_p _bfd_dummy_target
#endif
diff --git a/bfd/aout-tic30.c b/bfd/aout-tic30.c
index 05e1a80..5d5c7e2 100644
--- a/bfd/aout-tic30.c
+++ b/bfd/aout-tic30.c
@@ -859,6 +859,9 @@ tic30_aout_set_arch_mach (bfd *abfd,
#define MY_core_file_matches_executable_p \
_bfd_nocore_core_file_matches_executable_p
#endif
+#ifndef MY_core_file_pid
+#define MY_core_file_pid _bfd_nocore_core_file_pid
+#endif
#ifndef MY_core_file_p
#define MY_core_file_p _bfd_dummy_target
#endif
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 277d432..0e7b337 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1977,8 +1977,8 @@ enum bfd_architecture
#define bfd_mach_v850 1
#define bfd_mach_v850e 'E'
#define bfd_mach_v850e1 '1'
-#define bfd_mach_v850e2 0x4532 /* ('E'<<8|'2') */
-#define bfd_mach_v850e2v3 0x45325633 /* ('E'<<24|'2'<<16|'V'<<8|'3') */
+#define bfd_mach_v850e2 0x4532
+#define bfd_mach_v850e2v3 0x45325633
bfd_arch_arc, /* ARC Cores */
#define bfd_mach_arc_5 5
#define bfd_mach_arc_6 6
@@ -5412,6 +5412,8 @@ const char *bfd_core_file_failing_command (bfd *abfd);
int bfd_core_file_failing_signal (bfd *abfd);
+int bfd_core_file_pid (bfd *abfd);
+
bfd_boolean core_file_matches_executable_p
(bfd *core_bfd, bfd *exec_bfd);
@@ -5608,11 +5610,13 @@ typedef struct bfd_target
#define BFD_JUMP_TABLE_CORE(NAME) \
NAME##_core_file_failing_command, \
NAME##_core_file_failing_signal, \
- NAME##_core_file_matches_executable_p
+ NAME##_core_file_matches_executable_p, \
+ NAME##_core_file_pid
char * (*_core_file_failing_command) (bfd *);
int (*_core_file_failing_signal) (bfd *);
bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *);
+ int (*_core_file_pid) (bfd *);
/* Archive entry points. */
#define BFD_JUMP_TABLE_ARCHIVE(NAME) \
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index 37d668c..7fb20d8 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -112,6 +112,8 @@ extern int rs6000coff_core_file_failing_signal
rs6000coff_core_file_failing_signal
#define coff_core_file_matches_executable_p \
rs6000coff_core_file_matches_executable_p
+#define coff_core_file_pid \
+ _bfd_nocore_core_file_pid
#else
#define CORE_FILE_P _bfd_dummy_target
#define coff_core_file_failing_command \
@@ -120,6 +122,8 @@ extern int rs6000coff_core_file_failing_signal
_bfd_nocore_core_file_failing_signal
#define coff_core_file_matches_executable_p \
_bfd_nocore_core_file_matches_executable_p
+#define coff_core_file_pid \
+ _bfd_nocore_core_file_pid
#endif
#define coff_SWAP_sym_in _bfd_xcoff_swap_sym_in
#define coff_SWAP_sym_out _bfd_xcoff_swap_sym_out
@@ -4182,9 +4186,7 @@ const bfd_target rs6000coff_vec =
_bfd_generic_bfd_print_private_bfd_data,
/* Core */
- coff_core_file_failing_command,
- coff_core_file_failing_signal,
- coff_core_file_matches_executable_p,
+ BFD_JUMP_TABLE_CORE (coff),
/* Archive */
_bfd_xcoff_slurp_armap,
@@ -4437,9 +4439,7 @@ const bfd_target pmac_xcoff_vec =
_bfd_generic_bfd_print_private_bfd_data,
/* Core */
- coff_core_file_failing_command,
- coff_core_file_failing_signal,
- coff_core_file_matches_executable_p,
+ BFD_JUMP_TABLE_CORE (coff),
/* Archive */
_bfd_xcoff_slurp_armap,
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 99cbfb7..b154b67 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -256,6 +256,8 @@ extern int rs6000coff_core_file_failing_signal
rs6000coff_core_file_failing_signal
#define coff_core_file_matches_executable_p \
rs6000coff_core_file_matches_executable_p
+#define coff_core_file_pid \
+ _bfd_nocore_core_file_pid
#else
#define CORE_FILE_P _bfd_dummy_target
#define coff_core_file_failing_command \
@@ -264,6 +266,8 @@ extern int rs6000coff_core_file_failing_signal
_bfd_nocore_core_file_failing_signal
#define coff_core_file_matches_executable_p \
_bfd_nocore_core_file_matches_executable_p
+#define coff_core_file_pid \
+ _bfd_nocore_core_file_pid
#endif
#define coff_SWAP_sym_in _bfd_xcoff64_swap_sym_in
#define coff_SWAP_sym_out _bfd_xcoff64_swap_sym_out
@@ -2753,9 +2757,7 @@ const bfd_target rs6000coff64_vec =
_bfd_generic_bfd_print_private_bfd_data,
/* Core */
- coff_core_file_failing_command,
- coff_core_file_failing_signal,
- coff_core_file_matches_executable_p,
+ BFD_JUMP_TABLE_CORE (coff),
/* Archive */
xcoff64_slurp_armap,
@@ -2835,6 +2837,8 @@ extern char *xcoff64_core_file_failing_command
PARAMS ((bfd *));
extern int xcoff64_core_file_failing_signal
PARAMS ((bfd *));
+#define xcoff64_core_file_pid \
+ _bfd_nocore_core_file_pid
/* AIX 5 */
static const struct xcoff_backend_data_rec bfd_xcoff_aix5_backend_data =
@@ -3009,9 +3013,7 @@ const bfd_target aix5coff64_vec =
_bfd_generic_bfd_print_private_bfd_data,
/* Core */
- xcoff64_core_file_failing_command,
- xcoff64_core_file_failing_signal,
- xcoff64_core_file_matches_executable_p,
+ BFD_JUMP_TABLE_CORE (xcoff64),
/* Archive */
xcoff64_slurp_armap,
diff --git a/bfd/corefile.c b/bfd/corefile.c
index 7802a3a..605be8d 100644
--- a/bfd/corefile.c
+++ b/bfd/corefile.c
@@ -84,6 +84,31 @@ bfd_core_file_failing_signal (bfd *abfd)
/*
FUNCTION
+ bfd_core_file_pid
+
+SYNOPSIS
+ int bfd_core_file_pid (bfd *abfd);
+
+DESCRIPTION
+
+ Returns the PID of the process the core dump the BFD
+ @var{abfd} is attached to was generated from.
+*/
+
+int
+bfd_core_file_pid (bfd *abfd)
+{
+ if (abfd->format != bfd_core)
+ {
+ bfd_set_error (bfd_error_invalid_operation);
+ return 0;
+ }
+ return BFD_SEND (abfd, _core_file_pid, (abfd));
+}
+
+
+/*
+FUNCTION
core_file_matches_executable_p
SYNOPSIS
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 754e733..2220d4d 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1989,6 +1989,8 @@ extern int bfd_elf32_core_file_failing_signal
(bfd *);
extern bfd_boolean bfd_elf32_core_file_matches_executable_p
(bfd *, bfd *);
+extern int bfd_elf32_core_file_pid
+ (bfd *);
extern bfd_boolean bfd_elf32_swap_symbol_in
(bfd *, const void *, const void *, Elf_Internal_Sym *);
@@ -2033,6 +2035,8 @@ extern int bfd_elf64_core_file_failing_signal
(bfd *);
extern bfd_boolean bfd_elf64_core_file_matches_executable_p
(bfd *, bfd *);
+extern int bfd_elf64_core_file_pid
+ (bfd *);
extern bfd_boolean bfd_elf64_swap_symbol_in
(bfd *, const void *, const void *, Elf_Internal_Sym *);
diff --git a/bfd/elf.c b/bfd/elf.c
index 90fc3d1..f9f2dad 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -7519,13 +7519,19 @@ _bfd_elf_rel_vtable_reloc_fn
# include <sys/procfs.h>
#endif
-/* FIXME: this is kinda wrong, but it's what gdb wants. */
+/* Return a PID that identifies a "thread" for threaded cores, or the
+ PID of the main process for non-threaded cores. */
static int
elfcore_make_pid (bfd *abfd)
{
- return ((elf_tdata (abfd)->core_lwpid << 16)
- + (elf_tdata (abfd)->core_pid));
+ int pid;
+
+ pid = elf_tdata (abfd)->core_lwpid;
+ if (pid == 0)
+ pid = elf_tdata (abfd)->core_pid;
+
+ return pid;
}
/* If there isn't a section called NAME, make one, using
@@ -7615,7 +7621,8 @@ elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
has already been set by another thread. */
if (elf_tdata (abfd)->core_signal == 0)
elf_tdata (abfd)->core_signal = prstat.pr_cursig;
- elf_tdata (abfd)->core_pid = prstat.pr_pid;
+ if (elf_tdata (abfd)->core_pid == 0)
+ elf_tdata (abfd)->core_pid = prstat.pr_pid;
/* pr_who exists on:
solaris 2.5+
@@ -7625,6 +7632,8 @@ elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
*/
#if defined (HAVE_PRSTATUS_T_PR_WHO)
elf_tdata (abfd)->core_lwpid = prstat.pr_who;
+#else
+ elf_tdata (abfd)->core_lwpid = prstat.pr_pid;
#endif
}
#if defined (HAVE_PRSTATUS32_T)
@@ -7641,7 +7650,8 @@ elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
has already been set by another thread. */
if (elf_tdata (abfd)->core_signal == 0)
elf_tdata (abfd)->core_signal = prstat.pr_cursig;
- elf_tdata (abfd)->core_pid = prstat.pr_pid;
+ if (elf_tdata (abfd)->core_pid == 0)
+ elf_tdata (abfd)->core_pid = prstat.pr_pid;
/* pr_who exists on:
solaris 2.5+
@@ -7651,6 +7661,8 @@ elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
*/
#if defined (HAVE_PRSTATUS32_T_PR_WHO)
elf_tdata (abfd)->core_lwpid = prstat.pr_who;
+#else
+ elf_tdata (abfd)->core_lwpid = prstat.pr_pid;
#endif
}
#endif /* HAVE_PRSTATUS32_T */
diff --git a/bfd/elf32-am33lin.c b/bfd/elf32-am33lin.c
index c3ec2dc..177a714 100644
--- a/bfd/elf32-am33lin.c
+++ b/bfd/elf32-am33lin.c
@@ -55,7 +55,7 @@ elf32_am33lin_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
elf_tdata (abfd)->core_signal = bfd_get_16 (abfd, note->descdata + 12);
/* pr_pid */
- elf_tdata (abfd)->core_pid = bfd_get_32 (abfd, note->descdata + 24);
+ elf_tdata (abfd)->core_lwpid = bfd_get_32 (abfd, note->descdata + 24);
/* pr_reg */
offset = 72;
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index f6115bd..0cd1e64 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -1829,7 +1829,7 @@ elf32_arm_nabi_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
elf_tdata (abfd)->core_signal = bfd_get_16 (abfd, note->descdata + 12);
/* pr_pid */
- elf_tdata (abfd)->core_pid = bfd_get_32 (abfd, note->descdata + 24);
+ elf_tdata (abfd)->core_lwpid = bfd_get_32 (abfd, note->descdata + 24);
/* pr_reg */
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-08-12 15:19 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-08-12 15:19 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via ae16d6874610a1dcb937d7cdeec82b505db7c553 (commit)
via e6289b8a1c7c98ea327e8e37b5b23b1984a436fc (commit)
via 2a297954ffddab4bc118d1bf79109d80f96862d5 (commit)
via bb0f3541023541f65e963bee290bc9d897444e96 (commit)
via df5ba2f53ee86ef76970ba911eba3579552cd422 (commit)
via dce52b591cff325ae7ceeb6a83007f1942c52af0 (commit)
via 9ff7142623daa28d52afdcb5914e452f0bbfc9a0 (commit)
via aaa1118e085f9eceb3e30f764d08ebbe3bc356f2 (commit)
via d49f255ae070788538a2613f4378e2f6753ca513 (commit)
via 78c68293d046244aac424aec8d6b1003383c4eaa (commit)
via 3b3520da7394a69efc822c606dbecd5cbb1c0eda (commit)
via 464c124afb39a31f52f83dda48bd57697e31ef14 (commit)
via 784ff895f6aa8bc3c7d40232bd68a3f2839101b9 (commit)
via 8ca01eda577eb9639bffac4177e9743345fa3f93 (commit)
via 76d14d8e5fbdcd8381b9b89042f2a3b1e433e431 (commit)
via 3307a59dab65689ff1cad93f78a3f0ef34b7ddb0 (commit)
via 366fda02e2f8f32322ece0de3aab3d2c87941199 (commit)
via 8ab5b850b269e935d3ba4402ab080ca8e71457bb (commit)
via 5970ee527804e0b4c4cc1472301df36647843659 (commit)
via 91b551d84664b660d21baa0aaea32af06ddf35de (commit)
via 3b26cb4b133031280fa022e2a06e58f333ed5e8d (commit)
via 83e7e08c526de7376b45d6eb02c7e9e6250a1b26 (commit)
via 0de0ee388f485fed8ae6f90f03d96d51f2b70036 (commit)
via d82543f8890dccd3ff01f655ead313448937914d (commit)
via 7694d02afdc57e04b63c0fd666442875fad7e8ac (commit)
via c747c9a8c835418e407a8d8a791caedf4de6e433 (commit)
via f90097cb86890c4ea9b9061d6b71b3e5722aba05 (commit)
via af436e0ef7d573687c6137541dd9c518634db657 (commit)
via 49428f00b59787af5e0a661642bd7318f8dc7bed (commit)
via 9c29655a68cf5370184e116f7453acabfc93f1e7 (commit)
via 0275886ca90a8699f49f3620ccba1eea3e3ba900 (commit)
via d140de97724657d6871821b5a8e4703300b898dd (commit)
via 2e5bcfdef1ec3883d48c3f87a4be5c0dff25e17e (commit)
via 7177c3777ad365ae9072c2d609c34034fad52620 (commit)
via 6eee9f41a7a082b8ac53c0f85167e3a67d5c1556 (commit)
via 5990e07eee5e396c9d1a6821c0fe9aaefdfbe2f0 (commit)
from 5b754b0c5ecde4ad629f36bf61488f3f3ac3810a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ae16d6874610a1dcb937d7cdeec82b505db7c553
Merge: 5b754b0 e6289b8
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Thu Aug 12 11:19:00 2010 -0400
Merge remote branch 'gdb/master'
commit e6289b8a1c7c98ea327e8e37b5b23b1984a436fc
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Aug 12 00:00:05 2010 +0000
daily update
commit 2a297954ffddab4bc118d1bf79109d80f96862d5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Aug 12 00:00:03 2010 +0000
*** empty log message ***
commit bb0f3541023541f65e963bee290bc9d897444e96
Author: pmuldoon <pmuldoon>
Date: Wed Aug 11 20:54:09 2010 +0000
2010-08-11 Tom Tromey <tromey@redhat.com>
Phil Muldoon <pmuldoon@redhat.com>
* python/python.c (gdbpy_run_events): New function.
(gdbpy_post_event): Likewise.
(gdbpy_initialize_events): Likewise.
(_initialize_python): Call gdbpy_initialize_events.
2010-08-11 Tom Tromey <tromey@redhat.com>
Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Basic Python): Describe post_event API.
2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/python.exp (gdb_py_test_multiple): Add gdb.post_event
tests.
commit df5ba2f53ee86ef76970ba911eba3579552cd422
Author: kwerner <kwerner>
Date: Wed Aug 11 16:48:24 2010 +0000
gdb/ChangeLog:* gdb/valarith.c (vector_binop): New function.(scalar_binop): Likewise.(value_binop): Call scalar_binop or vector_binop depending on the types.* gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.(evaluate_subexp_with_coercion): Add vector check to not convert vectorsto pointers.* gdb/value.c (coerce_array): Add vector check to not coerce vectors.testsuite/ChangeLog:* gdb.base/Makefile.in (EXECUTABLES): Add gnu_vector.* gdb.base/gnu_vector.c: New File.* gdb.base/gnu_vector.exp: Likewise.
commit dce52b591cff325ae7ceeb6a83007f1942c52af0
Author: tschwinge <tschwinge>
Date: Wed Aug 11 15:53:04 2010 +0000
2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
* linux-low.c (linux_wait_1): Correctly return the ptid of the child
after its termination.
commit 9ff7142623daa28d52afdcb5914e452f0bbfc9a0
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Aug 11 15:41:37 2010 +0000
2010-08-11 Brad Roberts <braddr@puremagic.com>
* d-lang.c (extract_identifiers): Handle multiple digits.
commit aaa1118e085f9eceb3e30f764d08ebbe3bc356f2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Aug 11 13:24:31 2010 +0000
gdb/
Code cleanup.
* dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
Rename to dummy_frame_unwind.
(dummy_frame_unwind): Remove.
* dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
* frame-unwind.c (frame_unwind_init): Use address of
dummy_frame_unwind and inline_frame_unwind.
* frame.c (create_sentinel_frame): Use address of
sentinel_frame_unwind.
* inline-frame.c (inline_frame_unwinder): Rename to
inline_frame_unwind.
(inline_frame_unwind): Remove.
* inline-frame.h (inline_frame_unwind): Reference directly the struct.
* sentinel-frame.c (sentinel_frame_unwinder): Rename to
sentinel_frame_unwind.
(sentinel_frame_unwind): Remove.
* sentinel-frame.h (sentinel_frame_unwind): Reference directly the
struct.
commit d49f255ae070788538a2613f4378e2f6753ca513
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Aug 11 13:22:56 2010 +0000
gdb/
Code cleanup.
* frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
and returned value. New comment from frame-unwind.h.
* frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
Extend the comment.
* frame.c (get_frame_id, frame_unwind_register_value)
(create_new_frame, get_prev_frame_1, frame_unwinder_is)
(get_frame_type, frame_unwind_arch): Do not use the return value of
frame_unwind_find_by_frame.
commit 78c68293d046244aac424aec8d6b1003383c4eaa
Author: pmuldoon <pmuldoon>
Date: Wed Aug 11 12:48:21 2010 +0000
2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
Tom Tromey <tromey@redhat.com>
* python/python.c (gdbpy_solib_address): New function.
(gdbpy_decode_line): Likewise.
2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Basic Python): Describe solib_address and
decode_line Python APIs
2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/python.c: New File.
* gdb.python/python-sl.c: New File.
* gdb.python/python.exp: Test solib_address and decode_line
* functions.
commit 3b3520da7394a69efc822c606dbecd5cbb1c0eda
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Aug 11 00:00:05 2010 +0000
daily update
commit 464c124afb39a31f52f83dda48bd57697e31ef14
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Aug 11 00:00:04 2010 +0000
*** empty log message ***
commit 784ff895f6aa8bc3c7d40232bd68a3f2839101b9
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Aug 10 20:25:30 2010 +0000
* gdb.texinfo (Pretty Printing API): Document
gdb.default_visualizer.
commit 8ca01eda577eb9639bffac4177e9743345fa3f93
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Aug 10 18:35:50 2010 +0000
gdb
Revert gdb-add-index addition:
* Makefile.in (install-only): Don't install gdb-add-index.
* gdb-add-index.sh: Remove.
gdb/doc
Revert gdb-add-index addition:
* gdb.texinfo (Index Files): Don't document gdb-add-index.
commit 76d14d8e5fbdcd8381b9b89042f2a3b1e433e431
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Aug 10 09:50:04 2010 +0000
Remove the use of prms_id and bug_id throughout the testsuite,
as they are now on the banned variable list in lib/gdb.exp.
commit 3307a59dab65689ff1cad93f78a3f0ef34b7ddb0
Author: Kevin Buettner <kevinb@redhat.com>
Date: Tue Aug 10 04:39:24 2010 +0000
* remote-sim.c (gdbsim_xfer_inferior_memory): Replace
`target_has_execution' check with `to_has_memory' check.
(gdbsim_has_all_memory, gdbsim_has_memory): New functions.
(init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
commit 366fda02e2f8f32322ece0de3aab3d2c87941199
Author: Kevin Buettner <kevinb@redhat.com>
Date: Tue Aug 10 00:19:25 2010 +0000
* remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
(resume_siggnal, resume_step): Move these static globals...
(struct sim_inferior_data): ...into this new struct.
(sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
New static globals.
(gdb_callback, callbacks_initialized): Move these globals to
a point earlier in the file.
(check_for_duplicate_sim_descriptor, get_sim_inferior_data)
(get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
(gdbsim_close_inferior, gdbsim_resume_inferior)
(gdbsim_stop_inferior): New functions.
(SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
New constants.
(gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
(gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
(gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
(gdbsim_xfer_inferior_memory, gdbsim_files_info)
(gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
(gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
new local variable `sim_data' in each of these functions. Use
`sim_data' to reference former globals `program_loaded',
`gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
`resume_step'.
(gdbsim_open): Remove local variable `argv'. Put results of call
to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
make a cleanup for it. Free it though when a sim instance cannot
be obtained.
(gdbsim_close): Free sim_argv and null it out as appropriate.
Close sim instances in all inferiors.
(gdbsim_cntrl_c): Stop all inferiors.
(gdbsim_wait):
(_initialize_remote_sim): Initialize `sim_inferior_data_key'.
commit 8ab5b850b269e935d3ba4402ab080ca8e71457bb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 10 00:00:33 2010 +0000
*** empty log message ***
commit 5970ee527804e0b4c4cc1472301df36647843659
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Aug 10 00:00:05 2010 +0000
daily update
commit 91b551d84664b660d21baa0aaea32af06ddf35de
Author: Richard Henderson <rth@redhat.com>
Date: Mon Aug 9 23:58:51 2010 +0000
PR ld/11891
* elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Disallow relaxing
to tlshi/lo until pos0 and pos1 are adjacent. Use the destination
register from the tldgd insn.
commit 3b26cb4b133031280fa022e2a06e58f333ed5e8d
Author: swagiaal <swagiaal>
Date: Mon Aug 9 20:34:06 2010 +0000
Complete symbol construction before adding to pending list.
2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
* dwarf2read.c (new_symbol): Add symbol to variable list at end of
function after symbol construction is complete.
Do the same for template symbol addition to template_symbols list.
commit 83e7e08c526de7376b45d6eb02c7e9e6250a1b26
Author: swagiaal <swagiaal>
Date: Mon Aug 9 20:13:51 2010 +0000
Fixed stabs cplus_specific issue
2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
* symtab.c (symbol_get_demangled_name): Remove assertion and
return NULL when language_specific.cplus_specific is not initialized.
* stabsread.c (define_symbol): Set the name before calling
cp_scan_for_anonymous_namespaces.
commit 0de0ee388f485fed8ae6f90f03d96d51f2b70036
Author: Catherine Moore <clm@redhat.com>
Date: Mon Aug 9 19:54:12 2010 +0000
2010-08-09 Catherine Moore <clm@codesourcery.com>
* elfxx-mips.c (mips_elf_perform_relocation): Improve
interlinking error message.
2010-08-09 Catherine Moore <clm@codesourcery.com>
* ld-mips-elf/mode-change-error-1.d: New.
* ld-mips-elf/mode-change-error-1a.s: New.
* ld-mips-elf/mode-change-error-1b.s: New.
* ld-mips-elf/mips-elf.exp: Run new test.
commit d82543f8890dccd3ff01f655ead313448937914d
Author: swagiaal <swagiaal>
Date: Mon Aug 9 19:42:44 2010 +0000
create and use symbol_set_language.
2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
* symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
SYMBOL_SET_LANGUAGE.
(symbol_init_language_specific): Renamed to symbol_set_language.
* symtab.c (symbol_init_language_specific): Removed redundant check
for language_cplus.
Renamed to symbol_set_language.
* stabsread.c (define_symbol): Updated.
(read_enum_type): Updated
* psymtab.c (add_psymbol_to_bcache): Updated.
* minsyms.c (install_minimal_symbols): Updated.
* coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
SYMBOL_LANGUAGE to set the language.
* minsyms.c (prim_record_minimal_symbol_full): Ditto.
* mdebugread.c (new_symbol): Ditto.
* cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
* dwarf2read.c (new_symbol_full): Ditto.
* jv-lang.c (add_class_symbol): Ditto.
commit 7694d02afdc57e04b63c0fd666442875fad7e8ac
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Aug 9 14:59:23 2010 +0000
* linux-low.c (gdb_wants_lwp_stopped): Delete.
(gdb_wants_all_stopped): Delete.
(linux_wait_1): Don't call them.
* server.c (handle_v_cont): Tag all threads as want-stopped.
(gdb_wants_thread_stopped): Fix comments. Tag the thread that
stopped as "client-wants-stopped".
commit c747c9a8c835418e407a8d8a791caedf4de6e433
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Aug 9 00:00:05 2010 +0000
daily update
commit f90097cb86890c4ea9b9061d6b71b3e5722aba05
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 9 00:00:03 2010 +0000
*** empty log message ***
commit af436e0ef7d573687c6137541dd9c518634db657
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 8 00:00:34 2010 +0000
*** empty log message ***
commit 49428f00b59787af5e0a661642bd7318f8dc7bed
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Aug 8 00:00:05 2010 +0000
daily update
commit 9c29655a68cf5370184e116f7453acabfc93f1e7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Aug 7 15:00:36 2010 +0000
gdb/
* defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
(make_cleanup_restore_page_info)
(set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
* gdbcmd.h (execute_command_to_string): New declaration.
* python/python.c (struct restore_ui_file_closure, restore_ui_file)
(make_cleanup_restore_ui_file): Move to utils.c
(execute_gdb_command) <to_string>: Move ...
* top.c (execute_command_to_string): ... here. Call
set_batch_flag_and_make_cleanup_restore_page_info.
* utils.c (make_cleanup_restore_integer): New source file blank line.
(make_cleanup_restore_uinteger): New.
(struct restore_ui_file_closure, do_restore_ui_file)
(make_cleanup_restore_ui_file): Move here from python/python.c.
(init_page_info) <batch_flag>
(do_restore_page_info_cleanup, make_cleanup_restore_page_info)
(set_batch_flag_and_make_cleanup_restore_page_info): New.
gdb/testsuite/
* gdb.python/python.exp (show height, set height 10)
(verify pagination beforehand, verify pagination beforehand: q)
(gdb.execute does not page, verify pagination afterwards)
(verify pagination afterwards: q): New.
gdb/doc/
* gdb.texinfo (Mode Options) <-batch>
(Basic Python) <gdb.execute>: Describe setting width and height.
commit 0275886ca90a8699f49f3620ccba1eea3e3ba900
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Aug 7 00:00:06 2010 +0000
daily update
commit d140de97724657d6871821b5a8e4703300b898dd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Aug 7 00:00:02 2010 +0000
*** empty log message ***
commit 2e5bcfdef1ec3883d48c3f87a4be5c0dff25e17e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Aug 6 19:45:58 2010 +0000
* thread.c (add_thread_silent): Use null_ptid instead of
minus_one_ptid while getting rid of stale inferior_ptid.
commit 7177c3777ad365ae9072c2d609c34034fad52620
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Fri Aug 6 19:02:12 2010 +0000
* dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
Throughout, call read_encoded_value with ptr_size rather than addr_size.
(decode_frame_entry_1): Remove redundant setting of
addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
on examined frame section. Add comment to explain why.
* gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
comment to explain usage.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
commit 6eee9f41a7a082b8ac53c0f85167e3a67d5c1556
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 6 18:22:49 2010 +0000
Don't generate multi-byte NOPs for i686.
gas/
2010-08-06 Quentin Neill <quentin.neill@amd.com>
* config/tc-i386.c (arch_entry): Add negated bit to
disambiguate flag names starting with "no".
(cpu_arch): Add negated bit definitions. Add
".nop" CPU extension.
(i386_align_code): Use new .cpunop bit to decide
when to generate alignment using nops.
(set_cpu_arch): Use negated bit instead to decide
when to use cpu_flags or vs. cpu_flags_and_not.
(md_parse_option): Likewise.
gas/testsuite/
2010-08-06 Quentin Neill <quentin.neill@amd.com>
* gas/i386/arch-10-1.l: Add nopl instruction.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.
* gas/i386/arch-10.s: Likewise.
* gas/i386/arch-10.d: Add nopl instruction, and +nopl extension
flag to as flags.
* gas/i386/nops-5-i686.d: Change alignment code generated for
-mtune=i686.
* gas/i386/nops-5.d: Change alignment code generated for
.arch i686.
* gas/i386/x86-64-nops-5-k8.d: Likewise.
* gas/i386/x86-64-nops-5.d: Likewise.
opcodes/
2010-08-06 Quentin Neill <quentin.neill@amd.com>
* i386-gen.c (cpu_flag_init): Define CpuNop extension flag, add
to processor flags for PENTIUMPRO processors and later.
* i386-opc.h (enum): Add CpuNop.
(i386_cpu_flags): Add cpunop bit.
* i386-opc.tbl: Change nop cpu_flags.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
commit 5990e07eee5e396c9d1a6821c0fe9aaefdfbe2f0
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 6 16:33:42 2010 +0000
Fix typos in comments in i386-opc.h.
2010-08-06 Quentin Neill <quentin.neill@amd.com>
* i386-opc.h (enum): Fix typos in comments.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 12 +
bfd/elf64-alpha.c | 25 +-
bfd/elfxx-mips.c | 2 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 183 +
gdb/Makefile.in | 11 +-
gdb/coffread.c | 2 +-
gdb/cp-namespace.c | 2 +-
gdb/d-lang.c | 8 +-
gdb/defs.h | 8 +
gdb/doc/ChangeLog | 26 +
gdb/doc/gdb.texinfo | 89 +-
gdb/dummy-frame.c | 6 +-
gdb/dummy-frame.h | 2 +-
gdb/dwarf2-frame.c | 28 +-
gdb/dwarf2read.c | 75 +-
gdb/eval.c | 3 +-
gdb/frame-unwind.c | 12 +-
gdb/frame-unwind.h | 9 +-
gdb/frame.c | 19 +-
gdb/gdbarch.c | 25 +
gdb/gdbarch.h | 21 +-
gdb/gdbarch.sh | 19 +-
gdb/gdbcmd.h | 1 +
gdb/gdbserver/ChangeLog | 14 +
gdb/gdbserver/linux-low.c | 50 +-
gdb/inline-frame.c | 4 +-
gdb/inline-frame.h | 2 +-
gdb/jv-lang.c | 2 +-
gdb/mdebugread.c | 2 +-
gdb/minsyms.c | 5 +-
gdb/objfiles.c | 2 +-
gdb/psymtab.c | 2 +-
gdb/python/python.c | 304 +-
gdb/remote-sim.c | 510 ++-
gdb/sentinel-frame.c | 4 +-
gdb/sentinel-frame.h | 2 +-
gdb/stabsread.c | 9 +-
gdb/symtab.c | 14 +-
gdb/symtab.h | 10 +-
gdb/testsuite/ChangeLog | 25 +
gdb/testsuite/gdb.base/Makefile.in | 2 +-
gdb/testsuite/gdb.base/gnu_vector.c | 34 +
gdb/testsuite/gdb.base/gnu_vector.exp | 94 +
gdb/testsuite/gdb.gdbtk/ChangeLog | 367 ++
gdb/testsuite/gdb.gdbtk/browser.exp | 39 +
gdb/testsuite/gdb.gdbtk/c_variable.exp | 40 +
gdb/testsuite/gdb.gdbtk/console.exp | 40 +
gdb/testsuite/gdb.gdbtk/cpp_variable.exp | 46 +
gdb/testsuite/gdb.gdbtk/srcwin.exp | 69 +
gdb/testsuite/gdb.gdbtk/windows.exp | 39 +
gdb/testsuite/gdb.python/python-sl.c | 26 +
gdb/testsuite/gdb.python/python.c | 28 +
gdb/testsuite/gdb.python/python.exp | 118 +-
gdb/thread.c | 4 +-
gdb/top.c | 33 +
gdb/utils.c | 82 +
gdb/valarith.c | 69 +-
gdb/value.c | 2 +-
gdb/version.in | 2 +-
gdb/xstormy16-tdep.c | 1 +
opcodes/ChangeLog | 14 +
opcodes/i386-gen.c | 29 +-
opcodes/i386-init.h | 266 +-
opcodes/i386-opc.h | 15 +-
opcodes/i386-opc.tbl | 2 +-
opcodes/i386-tbl.h | 8886 +++++++++++++++---------------
67 files changed, 6967 insertions(+), 4931 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/gnu_vector.c
create mode 100644 gdb/testsuite/gdb.base/gnu_vector.exp
create mode 100644 gdb/testsuite/gdb.gdbtk/ChangeLog
create mode 100644 gdb/testsuite/gdb.gdbtk/browser.exp
create mode 100644 gdb/testsuite/gdb.gdbtk/c_variable.exp
create mode 100644 gdb/testsuite/gdb.gdbtk/console.exp
create mode 100644 gdb/testsuite/gdb.gdbtk/cpp_variable.exp
create mode 100644 gdb/testsuite/gdb.gdbtk/srcwin.exp
create mode 100644 gdb/testsuite/gdb.gdbtk/windows.exp
create mode 100644 gdb/testsuite/gdb.python/python-sl.c
create mode 100644 gdb/testsuite/gdb.python/python.c
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e79fa19..528fa3c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,15 @@
+2010-08-09 Richard Henderson <rth@redhat.com>
+
+ PR ld/11891
+ * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Disallow relaxing
+ to tlshi/lo until pos0 and pos1 are adjacent. Use the destination
+ register from the tldgd insn.
+
+2010-08-09 Catherine Moore <clm@codesourcery.com>
+
+ * elfxx-mips.c (mips_elf_perform_relocation): Improve
+ interlinking error message.
+
2010-08-06 Alan Modra <amodra@gmail.com>
* elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 649d370..083beb1 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -3382,9 +3382,9 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval,
Elf_Internal_Rela *irel, bfd_boolean is_gd)
{
bfd_byte *pos[5];
- unsigned int insn;
+ unsigned int insn, tlsgd_reg;
Elf_Internal_Rela *gpdisp, *hint;
- bfd_boolean dynamic, use_gottprel, pos1_unusable;
+ bfd_boolean dynamic, use_gottprel;
unsigned long new_symndx;
dynamic = alpha_elf_dynamic_symbol_p (&info->h->root, info->link_info);
@@ -3425,7 +3425,6 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval,
pos[2] = info->contents + irel[2].r_offset;
pos[3] = info->contents + gpdisp->r_offset;
pos[4] = pos[3] + gpdisp->r_addend;
- pos1_unusable = FALSE;
/* Generally, the positions are not allowed to be out of order, lest the
modified insn sequence have different register lifetimes. We can make
@@ -3436,8 +3435,6 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval,
pos[0] = pos[1];
pos[1] = tmp;
}
- else if (pos[1] < pos[0])
- pos1_unusable = TRUE;
if (pos[1] >= pos[2] || pos[2] >= pos[3])
return TRUE;
@@ -3495,6 +3492,14 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval,
use_gottprel = FALSE;
new_symndx = is_gd ? ELF64_R_SYM (irel->r_info) : 0;
+
+ /* Beware of the compiler hoisting part of the sequence out a loop
+ and adjusting the destination register for the TLSGD insn. If this
+ happens, there will be a move into $16 before the JSR insn, so only
+ transformations of the first insn pair should use this register. */
+ tlsgd_reg = bfd_get_32 (info->abfd, pos[0]);
+ tlsgd_reg = (tlsgd_reg >> 21) & 31;
+
switch (!dynamic && !info->link_info->shared)
{
case 1:
@@ -3508,7 +3513,7 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval,
if (disp >= -0x8000 && disp < 0x8000)
{
- insn = (OP_LDA << 26) | (16 << 21) | (31 << 16);
+ insn = (OP_LDA << 26) | (tlsgd_reg << 21) | (31 << 16);
bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]);
bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, pos[1]);
@@ -3519,11 +3524,11 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval,
}
else if (disp >= -(bfd_signed_vma) 0x80000000
&& disp < (bfd_signed_vma) 0x7fff8000
- && !pos1_unusable)
+ && pos[0] + 4 == pos[1])
{
- insn = (OP_LDAH << 26) | (16 << 21) | (31 << 16);
+ insn = (OP_LDAH << 26) | (tlsgd_reg << 21) | (31 << 16);
bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]);
- insn = (OP_LDA << 26) | (16 << 21) | (16 << 16);
+ insn = (OP_LDA << 26) | (tlsgd_reg << 21) | (tlsgd_reg << 16);
bfd_put_32 (info->abfd, (bfd_vma) insn, pos[1]);
irel[0].r_offset = pos[0] - info->contents;
@@ -3538,7 +3543,7 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval,
default:
use_gottprel = TRUE;
- insn = (OP_LDQ << 26) | (16 << 21) | (29 << 16);
+ insn = (OP_LDQ << 26) | (tlsgd_reg << 21) | (29 << 16);
bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]);
bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, pos[1]);
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 7b89a83..e9a9c27 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -5641,7 +5641,7 @@ mips_elf_perform_relocation (struct bfd_link_info *info,
if (!ok)
{
(*_bfd_error_handler)
- (_("%B: %A+0x%lx: jump to stub routine which is not jal"),
+ (_("%B: %A+0x%lx: Direct jumps between ISA modes are not allowed; consider recompiling with interlinking enabled."),
input_bfd,
input_section,
(unsigned long) relocation->r_offset);
diff --git a/bfd/version.h b/bfd/version.h
index 042ea66..3204bef 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100806
+#define BFD_VERSION_DATE 20100812
#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 f821a1f..2b548b7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,186 @@
+2010-08-11 Tom Tromey <tromey@redhat.com>
+ Phil Muldoon <pmuldoon@redhat.com>
+
+ * python/python.c (gdbpy_run_events): New function.
+ (gdbpy_post_event): Likewise.
+ (gdbpy_initialize_events): Likewise.
+ (_initialize_python): Call gdbpy_initialize_events.
+
+2010-08-11 Ken Werner <ken.werner@de.ibm.com>
+
+ * gdb/valarith.c (vector_binop): New function.
+ (scalar_binop): Likewise.
+ (value_binop): Call scalar_binop or vector_binop depending on the types.
+ * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
+ (evaluate_subexp_with_coercion): Add vector check to not convert vectors
+ to pointers.
+ * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
+
+2010-08-11 Brad Roberts <braddr@puremagic.com>
+
+ * d-lang.c (extract_identifiers): Handle multiple digits.
+
+2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup.
+ * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
+ Rename to dummy_frame_unwind.
+ (dummy_frame_unwind): Remove.
+ * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
+ * frame-unwind.c (frame_unwind_init): Use address of
+ dummy_frame_unwind and inline_frame_unwind.
+ * frame.c (create_sentinel_frame): Use address of
+ sentinel_frame_unwind.
+ * inline-frame.c (inline_frame_unwinder): Rename to
+ inline_frame_unwind.
+ (inline_frame_unwind): Remove.
+ * inline-frame.h (inline_frame_unwind): Reference directly the struct.
+ * sentinel-frame.c (sentinel_frame_unwinder): Rename to
+ sentinel_frame_unwind.
+ (sentinel_frame_unwind): Remove.
+ * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
+ struct.
+
+2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup.
+ * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
+ and returned value. New comment from frame-unwind.h.
+ * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
+ Extend the comment.
+ * frame.c (get_frame_id, frame_unwind_register_value)
+ (create_new_frame, get_prev_frame_1, frame_unwinder_is)
+ (get_frame_type, frame_unwind_arch): Do not use the return value of
+ frame_unwind_find_by_frame.
+
+2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * python/python.c (gdbpy_solib_address): New function.
+ (gdbpy_decode_line): Likewise.
+
+2010-08-10 Tom Tromey <tromey@redhat.com>
+
+ Revert gdb-add-index addition:
+ * Makefile.in (install-only): Don't install gdb-add-index.
+ * gdb-add-index.sh: Remove.
+
+2010-08-09 Kevin Buettner <kevinb@redhat.com>
+
+ * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
+ `target_has_execution' check with `to_has_memory' check.
+ (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
+ (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
+ with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
+
+2010-08-09 Kevin Buettner <kevinb@redhat.com>
+
+ * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
+ (resume_siggnal, resume_step): Move these static globals...
+ (struct sim_inferior_data): ...into this new struct.
+ (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
+ New static globals.
+ (gdb_callback, callbacks_initialized): Move these globals to
+ a point earlier in the file.
+ (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
+ (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
+ (gdbsim_close_inferior, gdbsim_resume_inferior)
+ (gdbsim_stop_inferior): New functions.
+ (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
+ New constants.
+ (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
+ (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
+ (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
+ (gdbsim_xfer_inferior_memory, gdbsim_files_info)
+ (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
+ (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
+ new local variable `sim_data' in each of these functions. Use
+ `sim_data' to reference former globals `program_loaded',
+ `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
+ `resume_step'.
+ (gdbsim_open): Remove local variable `argv'. Put results of call
+ to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
+ make a cleanup for it. Free it though when a sim instance cannot
+ be obtained.
+ (gdbsim_close): Free sim_argv and null it out as appropriate.
+ Close sim instances in all inferiors.
+ (gdbsim_cntrl_c): Stop all inferiors.
+ (gdbsim_wait):
+ (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
+
+2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * dwarf2read.c (new_symbol): Add symbol to variable list at end of
+ function after symbol construction is complete.
+ Do the same for template symbol addition to template_symbols list.
+
+2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * symtab.c (symbol_get_demangled_name): Remove assertion and
+ return NULL when language_specific.cplus_specific is not initialized.
+ * stabsread.c (define_symbol): Set the name before calling
+ cp_scan_for_anonymous_namespaces.
+
+2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
+ SYMBOL_SET_LANGUAGE.
+ (symbol_init_language_specific): Renamed to symbol_set_language.
+ * symtab.c (symbol_init_language_specific): Removed redundant check
+ for language_cplus.
+ Renamed to symbol_set_language.
+ * stabsread.c (define_symbol): Updated.
+ (read_enum_type): Updated
+ * psymtab.c (add_psymbol_to_bcache): Updated.
+ * minsyms.c (install_minimal_symbols): Updated.
+ * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
+ SYMBOL_LANGUAGE to set the language.
+ * minsyms.c (prim_record_minimal_symbol_full): Ditto.
+ * mdebugread.c (new_symbol): Ditto.
+ * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
+ * dwarf2read.c (new_symbol_full): Ditto.
+ * jv-lang.c (add_class_symbol): Ditto.
+
+2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
+ (make_cleanup_restore_page_info)
+ (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
+ * gdbcmd.h (execute_command_to_string): New declaration.
+ * python/python.c (struct restore_ui_file_closure, restore_ui_file)
+ (make_cleanup_restore_ui_file): Move to utils.c
+ (execute_gdb_command) <to_string>: Move ...
+ * top.c (execute_command_to_string): ... here. Call
+ set_batch_flag_and_make_cleanup_restore_page_info.
+ * utils.c (make_cleanup_restore_integer): New source file blank line.
+ (make_cleanup_restore_uinteger): New.
+ (struct restore_ui_file_closure, do_restore_ui_file)
+ (make_cleanup_restore_ui_file): Move here from python/python.c.
+ (init_page_info) <batch_flag>
+ (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
+ (set_batch_flag_and_make_cleanup_restore_page_info): New.
+
+2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * thread.c (add_thread_silent): Use null_ptid instead of
+ minus_one_ptid while getting rid of stale inferior_ptid.
+
+2010-08-06 Corinna Vinschen <vinschen@redhat.com>
+
+ * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
+ Throughout, call read_encoded_value with ptr_size rather than addr_size.
+ (decode_frame_entry_1): Remove redundant setting of
+ addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
+ to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
+ on examined frame section. Add comment to explain why.
+ * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
+ comment to explain usage.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Regenerate.
+
+ * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
+
2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 1d3e6a1..65eb1fe 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1018,16 +1018,7 @@ install-only: $(CONFIG_INSTALL) xml-syscall-install
$(SHELL) $(srcdir)/../mkinstalldirs \
$(DESTDIR)$(man1dir) ; \
$(INSTALL_DATA) $(srcdir)/gdb.1 \
- $(DESTDIR)$(man1dir)/$$transformed_name.1; \
- transformed_name=`t='$(program_transform_name)'; \
- echo gdb-add-index | sed -e "$$t"` ; \
- if test "x$$transformed_name" = x; then \
- transformed_name=gdb-add-index ; \
- else \
- true ; \
- fi ; \
- $(INSTALL_PROGRAM) $(srcdir)/gdb-add-index.sh \
- $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT)
+ $(DESTDIR)$(man1dir)/$$transformed_name.1
@$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
.PHONY: install-tui
install-tui:
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 52417b2..85e8140 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -1512,7 +1512,7 @@ process_coff_symbol (struct coff_symbol *cs,
memset (sym, 0, sizeof (struct symbol));
name = cs->c_name;
name = EXTERNAL_NAME (name, objfile->obfd);
- SYMBOL_LANGUAGE (sym) = current_subfile->language;
+ SYMBOL_SET_LANGUAGE (sym, current_subfile->language);
SYMBOL_SET_NAMES (sym, name, strlen (name), 1, objfile);
/* default assumptions */
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index 49ada64..16f58ca 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -938,7 +938,7 @@ check_one_possible_namespace_symbol (const char *name, int len,
sym = obstack_alloc (&objfile->objfile_obstack, sizeof (struct symbol));
memset (sym, 0, sizeof (struct symbol));
- SYMBOL_LANGUAGE (sym) = language_cplus;
+ SYMBOL_SET_LANGUAGE (sym, language_cplus);
/* Note that init_type copied the name to the objfile's
obstack. */
SYMBOL_SET_NAMES (sym, TYPE_NAME (type), len, 0, objfile);
diff --git a/gdb/d-lang.c b/gdb/d-lang.c
index 6db521b..8ef47c7 100644
--- a/gdb/d-lang.c
+++ b/gdb/d-lang.c
@@ -37,9 +37,11 @@ extract_identifiers (const char *mangled_str, struct obstack *tempbuf)
while (isdigit (*mangled_str))
{
- i = strtol (mangled_str, NULL, 10);
- mangled_str++;
- if (i <= 0 && strlen (mangled_str) < i)
+ char *end_ptr;
+
+ i = strtol (mangled_str, &end_ptr, 10);
+ mangled_str = end_ptr;
+ if (i <= 0 || strlen (mangled_str) < i)
return 0;
obstack_grow (tempbuf, mangled_str, i);
mangled_str += i;
diff --git a/gdb/defs.h b/gdb/defs.h
index c568a12..c7a5215 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -351,10 +351,14 @@ struct obstack;
extern struct cleanup *make_cleanup_obstack_free (struct obstack *obstack);
extern struct cleanup *make_cleanup_restore_integer (int *variable);
+extern struct cleanup *make_cleanup_restore_uinteger (unsigned int *variable);
struct target_ops;
extern struct cleanup *make_cleanup_unpush_target (struct target_ops *ops);
+extern struct cleanup *
+ make_cleanup_restore_ui_file (struct ui_file **variable);
+
extern struct cleanup *make_final_cleanup (make_cleanup_ftype *, void *);
extern struct cleanup *make_my_cleanup (struct cleanup **,
@@ -386,6 +390,10 @@ extern int yquery (const char *, ...) ATTRIBUTE_PRINTF (1, 2);
extern void init_page_info (void);
+extern struct cleanup *make_cleanup_restore_page_info (void);
+extern struct cleanup *
+ set_batch_flag_and_make_cleanup_restore_page_info (void);
+
extern char *gdb_realpath (const char *);
extern char *xfullpath (const char *);
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index f0f515c..5745151 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,29 @@
+2010-08-11 Tom Tromey <tromey@redhat.com>
+ Phil Muldoon <pmuldoon@redhat.com>
+
+ * gdb.texinfo (Basic Python): Describe post_event API.
+
+2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
+
+ * gdb.texinfo (Basic Python): Describe solib_address and
+ decode_line Python APIs
+
+2010-08-10 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Pretty Printing API): Document
+ gdb.default_visualizer.
+
+2010-08-10 Tom Tromey <tromey@redhat.com>
+
+ Revert gdb-add-index addition:
+ * gdb.texinfo (Index Files): Don't document gdb-add-index.
+
+2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Eli Zaretskii <eliz@gnu.org>
+
+ * gdb.texinfo (Mode Options) <-batch>
+ (Basic Python) <gdb.execute>: Describe setting width and height.
+
2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.texinfo (Threads): Document 'debug libthread-db'.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 03b59a3..ba1607c 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1031,9 +1031,9 @@ Run in batch mode. Exit with status @code{0} after processing all the
command files specified with @samp{-x} (and all commands from
initialization files, if not inhibited with @samp{-n}). Exit with
nonzero status if an error occurs in executing the @value{GDBN} commands
-in the command files. Batch mode also disables pagination;
-@pxref{Screen Size} and acts as if @kbd{set confirm off} were in
-effect (@pxref{Messages/Warnings}).
+in the command files. Batch mode also disables pagination, sets unlimited
+terminal width and height @pxref{Screen Size}, and acts as if @kbd{set confirm
+off} were in effect (@pxref{Messages/Warnings}).
Batch mode may be useful for running @value{GDBN} as a filter, for
example to download and run a program on another computer; in order to
@@ -15252,16 +15252,6 @@ There are currently some limitation on indices. They only work when
for DWARF debugging information, not stabs. And, they do not
currently work for programs using Ada.
-@pindex gdb-add-index
-@value{GDBN} comes with a program, @command{gdb-add-index}, which can
-be used to add the index to a symbol file. It takes the symbol file
-as its only argument:
-
-@smallexample
-$ gdb-add-index symfile
-@end smallexample
-
-
@node Symbol Errors
@section Errors Reading Symbol Files
@@ -20484,7 +20474,9 @@ By default, any output produced by @var{command} is sent to
@value{GDBN}'s standard output. If the @var{to_string} parameter is
@code{True}, then output will be collected by @code{gdb.execute} and
returned as a string. The default is @code{False}, in which case the
-return value is @code{None}.
+return value is @code{None}. If @var{to_string} is @code{True}, the
+@value{GDBN} virtual terminal will be temporarily set to unlimited width
+and height, and its pagination will be disabled; @pxref{Screen Size}.
@end defun
@findex gdb.breakpoints
@@ -20533,6 +20525,45 @@ compute values, for example, it is the only way to get the value of a
convenience variable (@pxref{Convenience Vars}) as a @code{gdb.Value}.
@end defun
+@findex gdb.post_event
+@defun post_event event
+Put @var{event}, a callable object taking no arguments, into
+@value{GDBN}'s internal event queue. This callable will be invoked at
+some later point, during @value{GDBN}'s event processing. Events
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-08-06 15:32 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-08-06 15:32 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 5b754b0c5ecde4ad629f36bf61488f3f3ac3810a (commit)
via bd11140051e728ef185fd9322dd43a96e080b5dd (commit)
via c9fe00dd7cdfa2341158841ef17980ff0f295178 (commit)
via 30608731f7f94255590c97fe0289bf96a5567c82 (commit)
via 9ba2c0b5686e009a6a9cc0d0a4753e73cb2001a2 (commit)
via 89c0061d208bac81215356d8b03b0db14b5a5db8 (commit)
via 1d684894695779f09511156e3a21288039455c2e (commit)
via f5d06ab3a198f4aa938812100a78f0d253baf857 (commit)
via 8f1ead0000665a7863d3a28bb75d4c41f1233367 (commit)
via 076f0c8658c809b694cd2d8d0a428ed6324b516b (commit)
via fd073fa9fcd2d7d155100e94194266b7bd7f0038 (commit)
via 90471e1b3e71d5b02993780f6c816a5ccf95545d (commit)
via 0940e93a05f0710171a88e61cfd1852f1f175845 (commit)
via bb7ebde99fca2ae3d929892de257a2aaf3377d91 (commit)
via 7050d7a7d96cbd6610d1f2e0c20589d7abab1bc0 (commit)
via eb7583bd2fd372e21fbfadcf8c3494da19579bf2 (commit)
via eb21372a731c32675acc4aeba593eda42133139f (commit)
via 80f00f55dd8b2cc15e158f52479f98a3c48832f6 (commit)
via 30e9fecd6c5e351278e4c5289b70c55ff53babe2 (commit)
via 2d852b59d5cedff13bffe866020185b0971e12b6 (commit)
via 98b780063ad6856383b0ff4cc6527a47bb4d8f75 (commit)
via b5358d6edfbeb5232e5a71aa48cfc6f20650c727 (commit)
via 8d666e4146661a8e566dc2f194f2a504e82b55d4 (commit)
via d76c658e389626b99f9f1b39b40bc5e207ba342a (commit)
via 9d52659e49ace2a98036b86d1d394cf2cf0da199 (commit)
via ba5b22a41c8e462144132305410558150debfc81 (commit)
via 386d55ad8d9245c4e811a938cf71a234ab64c480 (commit)
via 75616cce2435c0241948669191a819a2ed1dd753 (commit)
via 4ff1b7bcf47ec403e0a14273cb247b5680b15a1c (commit)
via 113cfe141be97f837886dee5af2898333195fbf4 (commit)
via 128ca4ae5a4ecd860b8945cb186bf8fe27e05c7d (commit)
via c6bfec2d81ad6cab6907c6a8179b1fa4b602ab4b (commit)
via 78342f92f21d53931f520af1f890360da4d02de9 (commit)
via 0e5d9c5d5c3d4bc1c13723bd7cd6e6192fba86e5 (commit)
via 43b50d541b3499ddb515162fb1e613ad708d3c5d (commit)
via 37bb8d3a2ecbe4d736639266d7aad73cd9ade867 (commit)
via 9a181dee68de45163a2533b9f4e1690cbfd9fba1 (commit)
via cd7a135eeebbe77a8ec9ffe3df10dea8de9b59a5 (commit)
via 59b13b3d66fa853e69b023e92004fbb23815ce4f (commit)
via ee9109c1386ab1274bdc11b79487d2b19fa14b4f (commit)
via 73d15ea2f4f1df1c0f7fc3db6b29c6aa2b42e3e1 (commit)
via 6ea518e8d1b07b2eac155bf3c1ff7df466b2d8df (commit)
via 0dd948ea2ffb5e2bfdc27956621de624596e2963 (commit)
via 1c472cb8fd43e47522838bb715188c76c55dfefc (commit)
via 53d6563dbae46b61c07db3125ab788e2a186fa55 (commit)
via a85ba451333020dd6addd7d31fbbcd360a55b7ae (commit)
via 746c1d893687d0da2faa2e99fe41fb9d92d480c4 (commit)
via 5b77dd8e3c25672ba5b213ff934d1aad5e4e1b34 (commit)
via 7c5279a5f7f3176829b537da9987657c86cf156f (commit)
via 66658cf1243b24d2e10160d2c98913047ab40b24 (commit)
via 0086acb5aedff7b2544f3ea359565b3ff3c4ce86 (commit)
via d5d07c6ba5cfbe8ba7c80658d057db74dfa58df1 (commit)
via 33ce5416b12929a09355a1d2aa8dd2ea333677e8 (commit)
via 5fc8dc941b593ce1ffb13c0e639d41dedc1d375d (commit)
via ed50f9d4d383a8518f38608a948e429e9c0c08d8 (commit)
via 0a74a47088aaebf7917c85dc0300fa593e809512 (commit)
via 27ec0c074fd59fd742be144e93ba1be68b0924db (commit)
via a5fb111f5b622facb386f77e4a6f31d14b01fa69 (commit)
via 45619ae1c98a67ffa229a9393610c51d1ff66ca0 (commit)
via c4be0ec50a5aa84dcbb0e9656162873c0acfa3fe (commit)
via 4a71f28cb169ced3d32eb12b64babd686bbe0eae (commit)
via 31e3f1830faa0858479d1d436249d0d3dea6b36b (commit)
from 3b158e5790b3fde9365605fd38bfc7aa062fb81d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 5b754b0c5ecde4ad629f36bf61488f3f3ac3810a
Merge: 3b158e5 bd11140
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Aug 6 17:32:20 2010 +0200
Merge remote branch 'gdb/master'
commit bd11140051e728ef185fd9322dd43a96e080b5dd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Aug 6 14:17:55 2010 +0000
gdb/
Code cleanup.
* varobj.c (varobj_create): Move variables fi, old_fi and block to
a more inner block.
commit c9fe00dd7cdfa2341158841ef17980ff0f295178
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Aug 6 03:59:49 2010 +0000
* disassemble.c: Formatting.
(disassemble_init_for_target <ARCH_m32c>): Comment on endian.
commit 30608731f7f94255590c97fe0289bf96a5567c82
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 6 01:03:17 2010 +0000
Add Cpu186 to ud1/ud2/ud2a/ud2b.
2010-08-05 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.tbl: Add Cpu186 to ud1/ud2/ud2a/ud2b.
* i386-tbl.h: Regenerated.
commit 9ba2c0b5686e009a6a9cc0d0a4753e73cb2001a2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Aug 6 00:52:56 2010 +0000
Add ud1 to x86.
gas/testsuite/
2010-08-05 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run arch-4.
* gas/i386/arch-4.d: New.
* gas/i386/arch-4.s: Likewise.
* gas/i386/intel.d: Replace ud2a/ud2b with ud2/ud1.
* gas/i386/opcode-intel.d: Likewise.
* gas/i386/opcode-suffix.d: Likewise.
* gas/i386/opcode.d: Likewise.
opcodes/
2010-08-05 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (dis386_twobyte): Replace ud2a/ud2b with ud2/ud1.
* i386-opc.tbl: Add ud1. Remove Cpu686 from ud2/ud2a/ud2b.
* i386-tbl.h: Regenerated.
commit 89c0061d208bac81215356d8b03b0db14b5a5db8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Aug 6 00:00:06 2010 +0000
daily update
commit 1d684894695779f09511156e3a21288039455c2e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Aug 6 00:00:03 2010 +0000
*** empty log message ***
commit f5d06ab3a198f4aa938812100a78f0d253baf857
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Aug 5 16:19:18 2010 +0000
* configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
(hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
(microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
(sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
linux-tdep.o to gdb_target_obs.
commit 8f1ead0000665a7863d3a28bb75d4c41f1233367
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Thu Aug 5 15:42:05 2010 +0000
* mi/mi-main.c (mi_cmd_remove_inferior): Properly access first argument.
commit 076f0c8658c809b694cd2d8d0a428ed6324b516b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Aug 5 14:37:29 2010 +0000
* elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
(ppc64_elf_relocate_section): Nop out high part insn of large toc
code sequence when the high part of offset is zero.
commit fd073fa9fcd2d7d155100e94194266b7bd7f0038
Author: Hui Zhu <teawater@gmail.com>
Date: Thu Aug 5 03:03:34 2010 +0000
2010-08-05 Hui Zhu <teawater@gmail.com>
* mips-linux-tdep.c(regset.h): New include.
(mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
mips_linux_regset_from_core_section): New functions.
(fetch_core_registers, regset_core_fns): Deleted.
(mips_linux_init_abi): Add mips_linux_regset_from_core_section.
Deleted regset_core_fns.
* mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
tdep->gregset64, tdep->fpregset and tdep->fpregset64.
* mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
and fpregset64.
commit 90471e1b3e71d5b02993780f6c816a5ccf95545d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Aug 5 00:00:34 2010 +0000
*** empty log message ***
commit 0940e93a05f0710171a88e61cfd1852f1f175845
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Aug 5 00:00:05 2010 +0000
daily update
commit bb7ebde99fca2ae3d929892de257a2aaf3377d91
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Aug 4 20:40:56 2010 +0000
* s390-tdep.c: Include linux-tdep.h.
(s390_gdbarch_init): Call linux_init_abi.
commit 7050d7a7d96cbd6610d1f2e0c20589d7abab1bc0
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Aug 4 15:27:54 2010 +0000
* corelow.c (core_pid_to_str): Default to using normal_pid_to_str
instead of printing "Thread" here.
* linux-tdep.c: Include inferior.h.
(linux_core_pid_to_str): New.
(linux_init_abi): New.
* linux-tdep.h (linux_init_abi): Declare.
* alpha-linux-tdep.c: Include linux-tdep.h.
(alpha_linux_init_abi): Call linux_init_abi.
* amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
* arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
* frv-linux-tdep.c: Include linux-tdep.h
(frv_linux_init_abi): Call linux_init_abi.
* hppa-linux-tdep.c: Include linux-tdep.h
(hppa_linux_init_abi): Call linux_init_abi.
* i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
* ia64-linux-tdep.c: Include linux-tdep.h.
(ia64_linux_init_abi): Call linux_init_abi.
* m32r-linux-tdep.c: Include linux-tdep.h.
(m32r_linux_init_abi): Call linux_init_abi.
* m68klinux-tdep.c: Include linux-tdep.h.
(m68k_linux_init_abi): Call linux_init_abi.
* microblaze-linux-tdep.c: Include linux-tdep.h.
(microblaze_linux_init_abi): Call linux_init_abi.
* mips-linux-tdep.c: Include linux-tdep.h.
(mips_linux_init_abi): Call linux_init_abi.
* mn10300-linux-tdep.c: Include linux-tdep.h.
(am33_linux_init_osabi): Call linux_init_abi. Rename the
'gdbinfo' parameter to 'info'.
* ppc-linux-tdep.c: Include linux-tdep.h.
(ppc_linux_init_abi): Call linux_init_abi.
* sh-linux-tdep.c: Include linux-tdep.h.
(sh_linux_init_abi): Call linux_init_abi.
* sparc-linux-tdep.c: Include linux-tdep.h.
(sparc32_linux_init_abi): Call linux_init_abi.
* sparc64-linux-tdep.c: Include linux-tdep.h.
(sparc64_linux_init_abi): Call linux_init_abi.
* xtensa-linux-tdep.c: Include linux-tdep.h.
(xtensa_linux_init_abi): Call linux_init_abi.
* i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
(i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
callback.
commit eb7583bd2fd372e21fbfadcf8c3494da19579bf2
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Aug 4 11:55:20 2010 +0000
Add a missing chunk.
commit eb21372a731c32675acc4aeba593eda42133139f
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Aug 4 10:45:51 2010 +0000
2010-08-04 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_build_fixups): Write the EICP.
(alpha_vms_bfd_final_link): Explicitly forbid relocatable links.
Clear the SEC_RELOC flag.
commit 80f00f55dd8b2cc15e158f52479f98a3c48832f6
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Aug 4 10:22:14 2010 +0000
2010-08-04 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable
sections with relocs.
(alpha_vms_add_fixup_lp): Set SEC_RELOC flag.
(alpha_vms_add_fixup_ca): Ditto.
(alpha_vms_add_fixup_qr): Ditto.
Add comments.
commit 30e9fecd6c5e351278e4c5289b70c55ff53babe2
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Aug 4 08:44:06 2010 +0000
2010-08-04 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make
CODE sections writable.
commit 2d852b59d5cedff13bffe866020185b0971e12b6
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Aug 4 08:20:57 2010 +0000
2010-08-04 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ...
(alpha_vms_add_fixup_lr): ... this for consistency.
(alpha_vms_add_qw_fixup): Removed.
Fix some comments.
(vms_get_symbol_info): Adjust type for unknown sections.
commit 98b780063ad6856383b0ff4cc6527a47bb4d8f75
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Aug 4 07:50:38 2010 +0000
2010-08-04 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute
section for any absolute section. Remove some debugging code.
commit b5358d6edfbeb5232e5a71aa48cfc6f20650c727
Author: DJ Delorie <dj@delorie.com>
Date: Wed Aug 4 03:42:45 2010 +0000
* elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.
commit 8d666e4146661a8e566dc2f194f2a504e82b55d4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Aug 4 00:00:33 2010 +0000
*** empty log message ***
commit d76c658e389626b99f9f1b39b40bc5e207ba342a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Aug 4 00:00:05 2010 +0000
daily update
commit 9d52659e49ace2a98036b86d1d394cf2cf0da199
Author: Doug Evans <dje@google.com>
Date: Tue Aug 3 22:39:06 2010 +0000
Add missing entry to previous checkin.
(bfd_lookup_symbol): Remove unnecessary forward decl.
commit ba5b22a41c8e462144132305410558150debfc81
Author: Doug Evans <dje@google.com>
Date: Tue Aug 3 22:35:38 2010 +0000
* breakpoint.c (bpdisp_text): Constify bpdisps.
* solib-svr4.c (solib_break_names): Constify.
(bkpt_names, main_name_list): Constify.
(match_main): Constify soname arg.
(bfd_lookup_symbol): Constify symname arg.
(enable_break): Constify bkpt_namep.
* symtab.c (search_symbols): Constify types, types2, types3, types4.
(symtab_symbol_info): Constify classnames.
commit 386d55ad8d9245c4e811a938cf71a234ab64c480
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Aug 3 15:18:51 2010 +0000
2010-08-03 Tristan Gingold <gingold@adacore.com>
* vms-misc.c (vms_convert_to_var): Make it static.
(_bfd_vms_convert_to_var_unix_filename): Make it public.
commit 75616cce2435c0241948669191a819a2ed1dd753
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Aug 3 14:28:56 2010 +0000
bfd/
2010-08-03 Tristan Gingold <gingold@adacore.com>
* makefile.vms (OBJS): Update list.
gas/
Index: gas/ChangeLog
2010-08-03 Tristan Gingold <gingold@adacore.com>
* makefile.vms (OBJS): Add Add compress-debug.c.
commit 4ff1b7bcf47ec403e0a14273cb247b5680b15a1c
Author: pmuldoon <pmuldoon>
Date: Tue Aug 3 09:38:13 2010 +0000
2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
* NEWS: Document Python value inferior function calls.
commit 113cfe141be97f837886dee5af2898333195fbf4
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Aug 3 09:26:30 2010 +0000
2010-08-03 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
nor SEC_RELOC for empty sections.
commit 128ca4ae5a4ecd860b8945cb186bf8fe27e05c7d
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Aug 3 09:21:09 2010 +0000
2010-08-03 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (evax_section_flags): Fix flags for absolute
section. Remove useless parenthesis.
commit c6bfec2d81ad6cab6907c6a8179b1fa4b602ab4b
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Aug 3 08:48:59 2010 +0000
2010-08-03 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
(vms_lib_bread, vms_lib_bopen): Adjust.
commit 78342f92f21d53931f520af1f890360da4d02de9
Author: Doug Evans <dje@google.com>
Date: Tue Aug 3 00:51:27 2010 +0000
* dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
commit 0e5d9c5d5c3d4bc1c13723bd7cd6e6192fba86e5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 3 00:00:06 2010 +0000
*** empty log message ***
commit 43b50d541b3499ddb515162fb1e613ad708d3c5d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Aug 3 00:00:06 2010 +0000
daily update
commit 37bb8d3a2ecbe4d736639266d7aad73cd9ade867
Author: Doug Evans <dje@google.com>
Date: Mon Aug 2 23:41:18 2010 +0000
* gdb.cp/namespace.exp: When "print ::cOtherFileClassVar" fails
because of an older gcc, change test2
"print ::C::OtherFileClass::cOtherFileClassVar" from unresolved
to unsupported.
commit 9a181dee68de45163a2533b9f4e1690cbfd9fba1
Author: Kazu Hirata <kazu@codesourcery.com>
Date: Mon Aug 2 15:07:13 2010 +0000
* gdb.base/break-always.exp: Do not expect full paths to file
names.
* gdb.base/commands.exp: Likewise.
commit cd7a135eeebbe77a8ec9ffe3df10dea8de9b59a5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Aug 2 10:08:00 2010 +0000
PR 11866
* elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
calculate off_adjust rather than first section vma.
commit 59b13b3d66fa853e69b023e92004fbb23815ce4f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 2 00:00:34 2010 +0000
*** empty log message ***
commit ee9109c1386ab1274bdc11b79487d2b19fa14b4f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Aug 2 00:00:05 2010 +0000
daily update
commit 73d15ea2f4f1df1c0f7fc3db6b29c6aa2b42e3e1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 1 00:00:33 2010 +0000
*** empty log message ***
commit 6ea518e8d1b07b2eac155bf3c1ff7df466b2d8df
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Aug 1 00:00:05 2010 +0000
daily update
commit 0dd948ea2ffb5e2bfdc27956621de624596e2963
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date: Sat Jul 31 15:34:40 2010 +0000
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.12051
diff -u -p -u -r1.12051 ChangeLog
--- ChangeLog 31 Jul 2010 04:17:42 -0000 1.12051
+++ ChangeLog 31 Jul 2010 15:27:37 -0000
@@ -1,3 +1,11 @@
+2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * linux-thread-db.c (libthread_db_debug): New variable.
+ (thread_db_find_new_threads_silently): Control verbosity with it.
+ (try_thread_db_load_1, try_thread_db_load): Likewise.
+ (find_new_threads_once): Likewise.
+ (_initialize_thread_db): Set/show it.
+
2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
* common/signals.c (signals): Move the content to signals.def.
Index: linux-thread-db.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-thread-db.c,v
retrieving revision 1.75
diff -u -p -u -r1.75 linux-thread-db.c
--- linux-thread-db.c 11 Jun 2010 12:10:12 -0000 1.75
+++ linux-thread-db.c 31 Jul 2010 15:27:37 -0000
@@ -75,6 +75,18 @@
static char *libthread_db_search_path;
+/* If non-zero, print details of libthread_db processing. */
+
+static int libthread_db_debug;
+
+static void
+show_libthread_db_debug (struct ui_file *file, int from_tty,
+ struct cmd_list_element *c, const char *value)
+{
+ fprintf_filtered (file, _("libthread-db debugging is %s.\n"), value);
+}
+
+
/* If we're running on GNU/Linux, we must explicitly attach to any new
threads. */
@@ -601,7 +613,7 @@ thread_db_find_new_threads_silently (pti
thread_db_find_new_threads_2 (ptid, 1);
}
- if (except.reason < 0 && info_verbose)
+ if (except.reason < 0 && libthread_db_debug)
{
exception_fprintf (gdb_stderr, except,
"Warning: thread_db_find_new_threads_silently: ");
@@ -658,7 +670,7 @@ try_thread_db_load_1 (struct thread_db_i
err = info->td_ta_new_p (&info->proc_handle, &info->thread_agent);
if (err != TD_OK)
{
- if (info_verbose)
+ if (libthread_db_debug)
printf_unfiltered (_("td_ta_new failed: %s\n"),
thread_db_err_str (err));
else
@@ -708,7 +720,7 @@ try_thread_db_load_1 (struct thread_db_i
printf_unfiltered (_("[Thread debugging using libthread_db enabled]\n"));
- if (info_verbose || *libthread_db_search_path)
+ if (libthread_db_debug || *libthread_db_search_path)
{
const char *library;
@@ -745,18 +757,18 @@ try_thread_db_load (const char *library)
void *handle;
struct thread_db_info *info;
- if (info_verbose)
+ if (libthread_db_debug)
printf_unfiltered (_("Trying host libthread_db library: %s.\n"),
library);
handle = dlopen (library, RTLD_NOW);
if (handle == NULL)
{
- if (info_verbose)
+ if (libthread_db_debug)
printf_unfiltered (_("dlopen failed: %s.\n"), dlerror ());
return 0;
}
- if (info_verbose && strchr (library, '/') == NULL)
+ if (libthread_db_debug && strchr (library, '/') == NULL)
{
void *td_init;
@@ -1381,7 +1393,7 @@ find_new_threads_once (struct thread_db_
TD_THR_ANY_USER_FLAGS);
}
- if (info_verbose)
+ if (libthread_db_debug)
{
if (except.reason < 0)
exception_fprintf (gdb_stderr, except,
@@ -1685,6 +1697,16 @@ gdb itself."),
NULL,
NULL,
&setlist, &showlist);
+
+ add_setshow_zinteger_cmd ("libthread-db", class_maintenance,
+ &libthread_db_debug, _("\
+Set libthread-db debugging."), _("\
+Show libthread-db debugging."), _("\
+When non-zero, libthread-db debugging is enabled."),
+ NULL,
+ show_libthread_db_debug,
+ &setdebuglist, &showdebuglist);
+
/* Add ourselves to objfile event chain. */
observer_attach_new_objfile (thread_db_new_objfile);
}
Index: doc/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/doc/ChangeLog,v
retrieving revision 1.1092
diff -u -p -u -r1.1092 ChangeLog
--- doc/ChangeLog 30 Jul 2010 20:46:34 -0000 1.1092
+++ doc/ChangeLog 31 Jul 2010 15:27:37 -0000
@@ -1,3 +1,7 @@
+2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * gdb.texinfo (Threads): Document 'debug libthread-db'.
+
2010-07-30 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Index Files): Mention gdb-add-index.
Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.746
diff -u -p -u -r1.746 gdb.texinfo
--- doc/gdb.texinfo 30 Jul 2010 20:46:34 -0000 1.746
+++ doc/gdb.texinfo 31 Jul 2010 15:27:38 -0000
@@ -2864,6 +2864,14 @@ only on some platforms.
@kindex show libthread-db-search-path
@item show libthread-db-search-path
Display current libthread_db search path.
+
+@kindex set debug libthread-db
+@kindex show debug libthread-db
+@cindex debugging @code{libthread_db}
+@item set debug libthread-db
+@itemx show debug libthread-db
+Turns on or off display of @code{libthread_db}-related events.
+Use @code{1} to enable, @code{0} to disable.
@end table
@node Forks
commit 1c472cb8fd43e47522838bb715188c76c55dfefc
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Jul 31 07:58:48 2010 +0000
* Makefile.in (signals_h): New.
(server_h): Depend on it.
(server.o): Don't depend on $(signals_def).
(signals.o): Depend on $(signals_def).
commit 53d6563dbae46b61c07db3125ab788e2a186fa55
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Jul 31 04:17:42 2010 +0000
gdb/
* common/signals.c (signals): Move the content to signals.def.
Include it. Remove the INDENT comments.
gdb/gdbserver/
* Makefile.in (signals_def): New.
(server_h): Append include/gdb/signals.h and signals_def.
(server.o): Append signals_def.
include/gdb/
* signals.h (enum target_signal): Move the content to signals.def.
Include it.
* signals.def: New file.
commit a85ba451333020dd6addd7d31fbbcd360a55b7ae
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jul 31 00:00:06 2010 +0000
daily update
commit 746c1d893687d0da2faa2e99fe41fb9d92d480c4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jul 31 00:00:03 2010 +0000
*** empty log message ***
commit 5b77dd8e3c25672ba5b213ff934d1aad5e4e1b34
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jul 30 20:46:33 2010 +0000
gdb
* Makefile.in (install-only): Install gdb-add-index.
* gdb-add-index.sh: New file.
gdb/doc
* gdb.texinfo (Index Files): Mention gdb-add-index.
commit 7c5279a5f7f3176829b537da9987657c86cf156f
Author: Doug Evans <dje@google.com>
Date: Fri Jul 30 20:12:00 2010 +0000
* gdb.cp/temargs.exp: For new tests that require newer gccs,
xfail them when run with older gccs.
commit 66658cf1243b24d2e10160d2c98913047ab40b24
Author: Doug Evans <dje@google.com>
Date: Fri Jul 30 19:59:42 2010 +0000
* lib/gdb.exp (build_executable): Forward "c++" option to
get_compiler_info.
commit 0086acb5aedff7b2544f3ea359565b3ff3c4ce86
Author: crq <crq>
Date: Fri Jul 30 19:11:26 2010 +0000
gdb/
* MAINTAINERS: Add myself for write after approval privileges.
commit d5d07c6ba5cfbe8ba7c80658d057db74dfa58df1
Author: Doug Evans <dje@google.com>
Date: Fri Jul 30 18:46:27 2010 +0000
* gdb.python/py-type.exp (test_template): Mark as xfail tests
"python print ttype.template_argument(1)" and
"python print isinstance(ttype.template_argument(1), gdb.Value)"
if using gcc 4.4 or earlier.
commit 33ce5416b12929a09355a1d2aa8dd2ea333677e8
Author: Doug Evans <dje@google.com>
Date: Fri Jul 30 17:28:07 2010 +0000
* gdb.base/valgrind-db-attach.exp: Use unique test name for
attach-to-debugger handling.
commit 5fc8dc941b593ce1ffb13c0e639d41dedc1d375d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Jul 30 16:29:56 2010 +0000
Add ATTRIBUTE_UNUSED to info in compute_bucket_count.
2010-07-30 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
commit ed50f9d4d383a8518f38608a948e429e9c0c08d8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jul 30 16:04:28 2010 +0000
gdb/
* symfile.c (addr_section_name): New function.
(addrs_section_compar): Use it.
(addr_info_make_relative): Use it. Move variable sect_name into a more
inner block. Make ".dynbss" and ".sdynbss" checks more strict.
gdb/testsuite/
* gdb.base/prelink-lib.c (copyreloc): New initialized variable.
* gdb.base/prelink.c (copyreloc, bssvar, bssvarp): New variables.
(main): Use copyreloc.
* gdb.base/prelink.exp (split debug of executable)
(.dynbss vs. .bss address shift): New tests.
commit 0a74a47088aaebf7917c85dc0300fa593e809512
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jul 30 15:59:39 2010 +0000
* configure: Rebuild.
* configure.ac: Add missing case for Python 2.7.
commit 27ec0c074fd59fd742be144e93ba1be68b0924db
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Jul 30 14:32:02 2010 +0000
2010-07-30 Hui Zhu <teawater@gmail.com>
* gdb.texinfo (Inferiors and Programs): Update the introduce of
"detach inferior" and "kill inferior".
commit a5fb111f5b622facb386f77e4a6f31d14b01fa69
Author: Anthony Green <green@redhat.com>
Date: Fri Jul 30 07:32:16 2010 +0000
Add moxie-rtems support
commit 45619ae1c98a67ffa229a9393610c51d1ff66ca0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jul 30 00:00:32 2010 +0000
*** empty log message ***
commit c4be0ec50a5aa84dcbb0e9656162873c0acfa3fe
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jul 30 00:00:05 2010 +0000
daily update
commit 4a71f28cb169ced3d32eb12b64babd686bbe0eae
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Jul 29 23:19:46 2010 +0000
* gdb.threads/pthreads.exp (check_backtraces): Consume $gdb_prompt
in gdb_test_multiple.
commit 31e3f1830faa0858479d1d436249d0d3dea6b36b
Author: DJ Delorie <dj@delorie.com>
Date: Thu Jul 29 18:41:25 2010 +0000
[include/opcode]
* rx.h (RX_Operand_Type): Add TwoReg.
(RX_Opcode_ID): Remove ediv and ediv2.
[opcodes]
* rx-decode.opc (SRR): New.
(rx_decode_opcode): Use it for movbi and movbir. Decode NOP2 (mov
r0,r0) and NOP3 (max r0,r0) special cases.
* rx-decode.c: Regenerate.
[sim/rx]
* rx.c (decode_cache_base): New.
(id_names): Remove ediv and edivu.
(optype_names): Add TwoReg.
(maybe_get_mem_page): New.
(rx_get_byte): Call it.
(get_op): Add TwoReg support.
(put_op): Likewise.
(PD, PS, PS2, GD, GS, GS2, DSZ, SSZ, S2SZ, US1, US2, OM): "opcode"
is a pointer now.
(DO_RETURN): New. We use longjmp to return an exception result.
(decode_opcode): Make opcode a pointer to the decode cache. Save
decoded opcode information and re-use. Call DO_RETURN instead of
return throughout. Remove ediv and edivu.
* mem.c (ptdc): New. Adds decode cache.
(rx_mem_ptr): Support it.
(rx_mem_decode_cache): New.
* mem.h (enum mem_ptr_action): add MPA_DECODE_CACHE.
(rx_mem_decode_cache): Declare.
* gdb-if.c (sim_resume): Add decode_opcode's setjmp logic here...
* main.c (main): ...and here. Use a fast loop if neither trace
nor disassemble is given.
* cpu.h (RX_MAKE_STEPPED, RX_MAKE_HIT_BREAK, RX_MAKE_EXITED,
RX_MAKE_STOPPED, RX_EXITED, RX_STOPPED): Adjust so that 0 is not a
valid code for anything.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 81 ++
bfd/config.bfd | 2 +-
bfd/elf.c | 2 +-
bfd/elf32-m32c.c | 2 +-
bfd/elf64-ppc.c | 65 +-
bfd/elflink.c | 2 +-
bfd/makefile.vms | 9 +-
bfd/version.h | 2 +-
bfd/vms-alpha.c | 249 +++--
bfd/vms-lib.c | 6 +-
bfd/vms-misc.c | 8 +-
gdb/ChangeLog | 138 +++
gdb/MAINTAINERS | 1 +
gdb/Makefile.in | 11 +-
gdb/NEWS | 9 +
gdb/alpha-linux-tdep.c | 4 +-
gdb/amd64-linux-tdep.c | 2 +
gdb/arm-linux-tdep.c | 2 +
gdb/breakpoint.c | 2 +-
gdb/common/signals.c | 170 +---
gdb/configure | 37 +
gdb/configure.ac | 8 +-
gdb/configure.tgt | 32 +-
gdb/corelow.c | 26 +-
gdb/doc/ChangeLog | 13 +
gdb/doc/gdb.texinfo | 25 +-
gdb/dwarf2read.c | 2 +
gdb/frv-linux-tdep.c | 4 +
.../gdb.base/break-always.exp => gdb-add-index.sh} | 30 +-
gdb/gdbserver/ChangeLog | 13 +
gdb/gdbserver/Makefile.in | 7 +-
gdb/hppa-linux-tdep.c | 4 +-
gdb/i386-cygwin-tdep.c | 18 +
gdb/i386-linux-tdep.c | 2 +
gdb/ia64-linux-tdep.c | 3 +
gdb/linux-tdep.c | 26 +
gdb/linux-tdep.h | 2 +
gdb/linux-thread-db.c | 36 +-
gdb/m32r-linux-tdep.c | 4 +
gdb/m68klinux-tdep.c | 3 +
gdb/mi/mi-main.c | 2 +-
gdb/microblaze-linux-tdep.c | 4 +-
gdb/mips-linux-tdep.c | 156 ++-
gdb/mips-tdep.c | 4 +
gdb/mips-tdep.h | 8 +
gdb/mn10300-linux-tdep.c | 5 +-
gdb/ppc-linux-tdep.c | 3 +
gdb/s390-tdep.c | 6 +-
gdb/sh-linux-tdep.c | 3 +
gdb/solib-svr4.c | 18 +-
gdb/sparc-linux-tdep.c | 3 +
gdb/sparc64-linux-tdep.c | 3 +
gdb/symfile.c | 45 +-
gdb/symtab.c | 11 +-
gdb/testsuite/ChangeLog | 42 +
gdb/testsuite/gdb.base/break-always.exp | 2 +-
gdb/testsuite/gdb.base/commands.exp | 8 +-
gdb/testsuite/gdb.base/prelink-lib.c | 2 +
gdb/testsuite/gdb.base/prelink.c | 6 +
gdb/testsuite/gdb.base/prelink.exp | 9 +
gdb/testsuite/gdb.base/valgrind-db-attach.exp | 1 +
gdb/testsuite/gdb.cp/namespace.exp | 14 +-
gdb/testsuite/gdb.cp/temargs.exp | 39 +
gdb/testsuite/gdb.python/py-type.exp | 14 +
gdb/testsuite/gdb.threads/pthreads.exp | 6 +-
gdb/testsuite/lib/gdb.exp | 6 +-
gdb/varobj.c | 6 +-
gdb/version.in | 2 +-
gdb/xtensa-linux-tdep.c | 4 +-
include/gdb/ChangeLog | 6 +
include/gdb/signals.def | 200 ++++
include/gdb/signals.h | 186 +---
include/opcode/ChangeLog | 5 +
include/opcode/rx.h | 3 +-
opcodes/ChangeLog | 24 +
opcodes/disassemble.c | 16 +-
opcodes/i386-dis.c | 4 +-
opcodes/i386-opc.tbl | 8 +-
opcodes/i386-tbl.h | 16 +-
opcodes/rx-decode.c | 1255 ++++++++++----------
opcodes/rx-decode.opc | 43 +-
sim/rx/ChangeLog | 27 +
sim/rx/cpu.h | 12 +-
sim/rx/gdb-if.c | 13 +-
sim/rx/main.c | 62 +-
sim/rx/mem.c | 28 +-
sim/rx/mem.h | 6 +-
sim/rx/rx.c | 296 ++---
88 files changed, 2240 insertions(+), 1464 deletions(-)
copy gdb/{testsuite/gdb.base/break-always.exp => gdb-add-index.sh} (52%)
mode change 100644 => 100755
create mode 100644 include/gdb/signals.def
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 81379db..e79fa19 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,84 @@
+2010-08-06 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
+ (ppc64_elf_relocate_section): Nop out high part insn of large toc
+ code sequence when the high part of offset is zero.
+
+2010-08-04 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (alpha_vms_build_fixups): Write the EICP.
+ (alpha_vms_bfd_final_link): Explicitly forbid relocatable links.
+ Clear the SEC_RELOC flag.
+
+2010-08-04 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable
+ sections with relocs.
+ (alpha_vms_add_fixup_lp): Set SEC_RELOC flag.
+ (alpha_vms_add_fixup_ca): Ditto.
+ (alpha_vms_add_fixup_qr): Ditto.
+ Add comments.
+
+2010-08-04 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make
+ CODE sections writable.
+
+2010-08-04 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ...
+ (alpha_vms_add_fixup_lr): ... this for consistency.
+ (alpha_vms_add_qw_fixup): Removed.
+ Fix some comments.
+ (vms_get_symbol_info): Adjust type for unknown sections.
+
+2010-08-04 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute
+ section for any absolute section. Remove some debugging code.
+
+2010-08-03 DJ Delorie <dj@redhat.com>
+
+ * elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.
+
+2010-08-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-misc.c (vms_convert_to_var): Make it static.
+ (_bfd_vms_convert_to_var_unix_filename): Make it public.
+
+2010-08-03 Tristan Gingold <gingold@adacore.com>
+
+ * makefile.vms (OBJS): Update list.
+
+2010-08-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
+ nor SEC_RELOC for empty sections.
+
+2010-08-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (evax_section_flags): Fix flags for absolute
+ section. Remove useless parenthesis.
+
+2010-08-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
+ (vms_lib_bread, vms_lib_bopen): Adjust.
+
+2010-08-02 Alan Modra <amodra@gmail.com>
+
+ PR 11866
+ * elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
+ calculate off_adjust rather than first section vma.
+
+2010-07-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
+
+2010-07-30 Anthony Green <green@moxielogic.com>
+
+ * config.bfd (targ_cpu): Add moxie-*-rtems support.
+
2010-07-29 Alan Modra <amodra@gmail.com>
* elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 960d4d4..0bfb535 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -418,7 +418,7 @@ case "${targ}" in
targ_selvecs=bfd_elf32_frv_vec
;;
- moxie-*-elf | moxie-*-uclinux)
+ moxie-*-elf | moxie-*-rtems | moxie-*-uclinux)
targ_defvec=bfd_elf32_moxie_vec
;;
diff --git a/bfd/elf.c b/bfd/elf.c
index e7651ba..90fc3d1 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4337,7 +4337,7 @@ assign_file_positions_for_load_sections (bfd *abfd,
break;
}
- off_adjust = vma_page_aligned_bias (m->sections[0]->vma, off, align);
+ off_adjust = vma_page_aligned_bias (p->p_vaddr, off, align);
off += off_adjust;
if (no_contents)
{
diff --git a/bfd/elf32-m32c.c b/bfd/elf32-m32c.c
index a706ac3..c9bfb64 100644
--- a/bfd/elf32-m32c.c
+++ b/bfd/elf32-m32c.c
@@ -2010,7 +2010,7 @@ _bfd_m32c_elf_eh_frame_address_size (bfd *abfd, asection *sec ATTRIBUTE_UNUSED)
#define ELF_ARCH bfd_arch_m32c
#define ELF_MACHINE_CODE EM_M32C
#define ELF_MACHINE_ALT1 EM_M32C_OLD
-#define ELF_MAXPAGESIZE 0x1000
+#define ELF_MAXPAGESIZE 0x100
#if 0
#define TARGET_BIG_SYM bfd_elf32_m32c_vec
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index f2c50d5..b6ef660 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -11397,12 +11397,14 @@ ppc64_elf_action_discarded (asection *sec)
/* REL points to a low-part reloc on a largetoc instruction sequence.
Find the matching high-part reloc instruction and verify that it
- is addis REG,r2,x. If so, return a pointer to the high-part reloc. */
+ is addis REG,x,imm. If so, set *REG to x and return a pointer to
+ the high-part reloc. */
static const Elf_Internal_Rela *
ha_reloc_match (const Elf_Internal_Rela *relocs,
const Elf_Internal_Rela *rel,
- unsigned int reg,
+ unsigned int *reg,
+ bfd_boolean match_addend,
const bfd *input_bfd,
const bfd_byte *contents)
{
@@ -11434,14 +11436,17 @@ ha_reloc_match (const Elf_Internal_Rela *relocs,
while (--rel >= relocs)
if (rel->r_info == r_info_ha
- && rel->r_addend == r_addend)
+ && (!match_addend
+ || rel->r_addend == r_addend))
{
const bfd_byte *p = contents + (rel->r_offset & ~3);
unsigned int insn = bfd_get_32 (input_bfd, p);
- if ((insn & ((0x3f << 26) | (0x1f << 16)))
- == ((15u << 26) | (2 << 16)) /* addis rt,r2,x */
- && (insn & (0x1f << 21)) == (reg << 21))
- return rel;
+ if ((insn & (0x3f << 26)) == (15u << 26) /* addis rt,x,imm */
+ && (insn & (0x1f << 21)) == (*reg << 21))
+ {
+ *reg = (insn >> 16) & 0x1f;
+ return rel;
+ }
break;
}
return NULL;
@@ -11494,7 +11499,9 @@ ppc64_elf_relocate_section (bfd *output_bfd,
Elf_Internal_Rela outrel;
bfd_byte *loc;
struct got_entry **local_got_ents;
+ unsigned char *ha_opt;
bfd_vma TOCstart;
+ bfd_boolean no_ha_opt;
bfd_boolean ret = TRUE;
bfd_boolean is_opd;
/* Disabled until we sort out how ld should choose 'y' vs 'at'. */
@@ -11520,6 +11527,8 @@ ppc64_elf_relocate_section (bfd *output_bfd,
symtab_hdr = &elf_symtab_hdr (input_bfd);
sym_hashes = elf_sym_hashes (input_bfd);
is_opd = ppc64_elf_section_data (input_section)->sec_type == sec_opd;
+ ha_opt = NULL;
+ no_ha_opt = FALSE;
rel = relocs;
relend = relocs + input_section->reloc_count;
@@ -12945,7 +12954,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
case R_PPC64_GOT_DTPREL16_HA:
case R_PPC64_GOT16_HA:
case R_PPC64_TOC16_HA:
- /* For now we don't nop out the first instruction. */
+ /* nop is done later. */
break;
case R_PPC64_GOT_TLSLD16_LO:
@@ -12980,12 +12989,31 @@ ppc64_elf_relocate_section (bfd *output_bfd,
&& ((insn & 3) == 0 || (insn & 3) == 3)))
{
unsigned int reg = (insn >> 16) & 0x1f;
- if (ha_reloc_match (relocs, rel, reg, input_bfd, contents))
+ const Elf_Internal_Rela *ha;
+ bfd_boolean match_addend;
+
+ match_addend = (sym != NULL
+ && ELF_ST_TYPE (sym->st_info) == STT_SECTION);
+ ha = ha_reloc_match (relocs, rel, ®, match_addend,
+ input_bfd, contents);
+ if (ha != NULL)
{
insn &= ~(0x1f << 16);
- insn |= 2 << 16;
+ insn |= reg << 16;
bfd_put_32 (input_bfd, insn, p);
+ if (ha_opt == NULL)
+ {
+ ha_opt = bfd_zmalloc (input_section->reloc_count);
+ if (ha_opt == NULL)
+ return FALSE;
+ }
+ ha_opt[ha - relocs] = 1;
}
+ else
+ /* If we don't find a matching high part insn,
+ something is fishy. Refuse to nop any high
+ part insn in this section. */
+ no_ha_opt = TRUE;
}
}
break;
@@ -13143,6 +13171,23 @@ ppc64_elf_relocate_section (bfd *output_bfd,
}
}
+ if (ha_opt != NULL)
+ {
+ if (!no_ha_opt)
+ {
+ unsigned char *opt = ha_opt;
+ rel = relocs;
+ relend = relocs + input_section->reloc_count;
+ for (; rel < relend; opt++, rel++)
+ if (*opt != 0)
+ {
+ bfd_byte *p = contents + (rel->r_offset & ~3);
+ bfd_put_32 (input_bfd, NOP, p);
+ }
+ }
+ free (ha_opt);
+ }
+
/* If we're emitting relocations, then shortly after this function
returns, reloc offsets and addends for this section will be
adjusted. Worse, reloc symbol indices will be for the output
diff --git a/bfd/elflink.c b/bfd/elflink.c
index f445912..e0fbc83 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -5352,7 +5352,7 @@ static const size_t elf_buckets[] =
Therefore the result is always a good payoff between few collisions
(= short chain lengths) and table size. */
static size_t
-compute_bucket_count (struct bfd_link_info *info,
+compute_bucket_count (struct bfd_link_info *info ATTRIBUTE_UNUSED,
unsigned long int *hashcodes ATTRIBUTE_UNUSED,
unsigned long int nsyms,
int gnu_hash)
diff --git a/bfd/makefile.vms b/bfd/makefile.vms
index 05c09f1..f013554 100644
--- a/bfd/makefile.vms
+++ b/bfd/makefile.vms
@@ -9,13 +9,14 @@
ifeq ($(ARCH),IA64)
HOSTFILE=alphavms.h
-OBJS:=cpu-ia64.obj,elf64-ia64.obj,elf-strtab.obj,corefile.obj,stabs.obj,\
+OBJS:=cpu-ia64.obj,elf64-ia64.obj,\
+ vms-misc.obj,vms-lib.obj,elf-strtab.obj,corefile.obj,stabs.obj,\
merge.obj,elf-eh-frame.obj,elflink.obj,elf-attrs.obj,dwarf1.obj,elf64.obj
DEFS=SELECT_VECS="&bfd_elf64_ia64_vms_vec",SELECT_ARCHITECTURES="&bfd_ia64_arch"
endif
ifeq ($(ARCH),ALPHA)
HOSTFILE=alphavms.h
-OBJS:=vms.obj,vms-hdr.obj,vms-gsd.obj,vms-tir.obj,vms-misc.obj,cpu-alpha.obj
+OBJS:=vms-alpha.obj,vms-lib.obj,vms-misc.obj,cpu-alpha.obj
DEFS=SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch"
endif
ifeq ($(ARCH),VAX)
@@ -45,10 +46,6 @@ libbfd.olb: $(OBJS)
targmatch.h: bfd.h
config.h: bfd.h
-vms.c: vms.h
-vms-mhd.c: vms.h
-vms-gsd.c: vms.h
-vms-tir.c: vms.h
vms-misc.c: vms.h
targets.c: targmatch.h
diff --git a/bfd/version.h b/bfd/version.h
index cf66abe..042ea66 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100729
+#define BFD_VERSION_DATE 20100806
#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/bfd/vms-alpha.c b/bfd/vms-alpha.c
index b1cf82d..5d38d1d 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -376,10 +376,10 @@ static void alpha_vms_add_fixup_lp (struct bfd_link_info *, bfd *, bfd *);
static void alpha_vms_add_fixup_ca (struct bfd_link_info *, bfd *, bfd *);
static void alpha_vms_add_fixup_qr (struct bfd_link_info *, bfd *, bfd *,
bfd_vma);
+static void alpha_vms_add_fixup_lr (struct bfd_link_info *, unsigned int,
+ bfd_vma);
static void alpha_vms_add_lw_reloc (struct bfd_link_info *info);
static void alpha_vms_add_qw_reloc (struct bfd_link_info *info);
-static void alpha_vms_add_lw_fixup (struct bfd_link_info *, unsigned int,
- bfd_vma);
struct vector_type
{
@@ -939,60 +939,60 @@ struct sec_flags_struct
static const struct sec_flags_struct evax_section_flags[] =
{
{ EVAX_ABS_NAME,
- (EGPS__V_SHR),
- (SEC_DATA),
- (EGPS__V_SHR),
- (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) },
+ EGPS__V_SHR,
+ 0,
+ EGPS__V_SHR,
+ 0 },
{ EVAX_CODE_NAME,
- (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_EXE),
- (SEC_CODE),
- (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_EXE),
- (SEC_CODE | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) },
+ EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_EXE,
+ SEC_CODE,
+ EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_EXE,
+ SEC_CODE | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD },
{ EVAX_LITERAL_NAME,
- (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD | EGPS__V_NOMOD),
- (SEC_DATA | SEC_READONLY),
- (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD),
- (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) },
+ EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD | EGPS__V_NOMOD,
+ SEC_DATA | SEC_READONLY,
+ EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD,
+ SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD },
{ EVAX_LINK_NAME,
- (EGPS__V_REL | EGPS__V_RD),
- (SEC_DATA | SEC_READONLY),
- (EGPS__V_REL | EGPS__V_RD),
- (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) },
+ EGPS__V_REL | EGPS__V_RD,
+ SEC_DATA | SEC_READONLY,
+ EGPS__V_REL | EGPS__V_RD,
+ SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD },
{ EVAX_DATA_NAME,
- (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD),
- (SEC_DATA),
- (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT),
- (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) },
+ EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD,
+ SEC_DATA,
+ EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT,
+ SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD },
{ EVAX_BSS_NAME,
- (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD),
- (SEC_NO_FLAGS),
- (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD),
- (SEC_ALLOC) },
+ EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD,
+ SEC_NO_FLAGS,
+ EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD,
+ SEC_ALLOC },
{ EVAX_READONLYADDR_NAME,
- (EGPS__V_PIC | EGPS__V_REL | EGPS__V_RD),
- (SEC_DATA | SEC_READONLY),
- (EGPS__V_PIC | EGPS__V_REL | EGPS__V_RD),
- (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) },
+ EGPS__V_PIC | EGPS__V_REL | EGPS__V_RD,
+ SEC_DATA | SEC_READONLY,
+ EGPS__V_PIC | EGPS__V_REL | EGPS__V_RD,
+ SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD },
{ EVAX_READONLY_NAME,
- (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD | EGPS__V_NOMOD),
- (SEC_DATA | SEC_READONLY),
- (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD),
- (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) },
+ EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD | EGPS__V_NOMOD,
+ SEC_DATA | SEC_READONLY,
+ EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD,
+ SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD },
{ EVAX_LOCAL_NAME,
- (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT),
- (SEC_DATA),
- (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT),
- (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) },
+ EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT,
+ SEC_DATA,
+ EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT,
+ SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD },
{ EVAX_LITERALS_NAME,
- (EGPS__V_PIC | EGPS__V_OVR),
- (SEC_DATA | SEC_READONLY),
- (EGPS__V_PIC | EGPS__V_OVR),
- (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) },
+ EGPS__V_PIC | EGPS__V_OVR,
+ SEC_DATA | SEC_READONLY,
+ EGPS__V_PIC | EGPS__V_OVR,
+ SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD },
{ NULL,
- (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT),
- (SEC_DATA),
- (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT),
- (SEC_IN_MEMORY | SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) }
+ EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT,
+ SEC_DATA,
+ EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT,
+ SEC_IN_MEMORY | SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD }
};
/* Retrieve BFD section flags by name and size. */
@@ -1103,12 +1103,8 @@ static bfd_boolean
_bfd_vms_slurp_egsd (bfd *abfd)
{
int gsd_type, gsd_size;
- asection *section;
unsigned char *vms_rec;
- flagword new_flags, old_flags;
- char *name;
unsigned long base_addr;
- unsigned long align_addr;
vms_debug2 ((2, "EGSD\n"));
@@ -1130,32 +1126,48 @@ _bfd_vms_slurp_egsd (bfd *abfd)
switch (gsd_type)
{
case EGSD__C_PSC:
+ /* Program section definition. */
{
- /* Program section definition. */
struct vms_egps *egps = (struct vms_egps *)vms_rec;
-
- name = _bfd_vms_save_counted_string (&egps->namlng);
- section = bfd_make_section (abfd, name);
- if (!section)
- return FALSE;
+ flagword new_flags, old_flags;
+ asection *section;
old_flags = bfd_getl16 (egps->flags);
- vms_section_data (section)->flags = old_flags;
- vms_section_data (section)->no_flags = 0;
- section->size = bfd_getl32 (egps->alloc);
- new_flags = vms_secflag_by_name (evax_section_flags, name,
- section->size > 0);
- if (!(old_flags & EGPS__V_NOMOD))
+
+ if ((old_flags & EGPS__V_REL) == 0)
{
- new_flags |= SEC_HAS_CONTENTS;
- if (old_flags & EGPS__V_REL)
- new_flags |= SEC_RELOC;
+ /* Use the global absolute section for all absolute sections. */
+ section = bfd_abs_section_ptr;
}
- if (!bfd_set_section_flags (abfd, section, new_flags))
- return FALSE;
- section->alignment_power = egps->align;
- if ((old_flags & EGPS__V_REL) != 0)
+ else
{
+ char *name;
+ unsigned long align_addr;
+
+ name = _bfd_vms_save_counted_string (&egps->namlng);
+
+ section = bfd_make_section (abfd, name);
+ if (!section)
+ return FALSE;
+
+ section->filepos = 0;
+ section->size = bfd_getl32 (egps->alloc);
+ section->alignment_power = egps->align;
+
+ vms_section_data (section)->flags = old_flags;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-07-29 19:17 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-07-29 19:17 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 3b158e5790b3fde9365605fd38bfc7aa062fb81d (commit)
via 0f597fa288350b6ba9cc075034d793c6212d0c17 (commit)
via b592dbe3d4dba7b6c738ac028c17d74d4270d8d0 (commit)
via 3358514aa7178f075cef16c396803a6411bbcb07 (commit)
via 6618ea3a99a036a40dab1e0b41777239d82b76e5 (commit)
via ebdf45cbea6689382d62487f64535e69205495ee (commit)
via 79497d9b1653855007fe8384b628bf02803165df (commit)
via 1577e7a90ac9e9c12a75472531e7f87eeb4e0cde (commit)
via d368ee72a6e0b90097a438acddcfe6b6eade4b82 (commit)
via 6a2e7ca37e12b739efe2e1f7e1d480118b8a3529 (commit)
via 25729a9b2f2618b553bb7e3c23122c8cf9ab8e24 (commit)
via 167893a158260a4899d7794670e02ed4f9d70044 (commit)
via 306c28ca57a9c458b5c1f3e8cd4d52355d2d51bd (commit)
via ff524be399d834428bbb0ab0ed2f604f8c6c527b (commit)
via 2f22c795e000ddecc31a0c31043781ec9dc400c3 (commit)
via a784c85c8628c9fd029cc40cbedb24b45e69d31f (commit)
via 281ab0938c2f8c0aeb352f145b3cce9632b787f3 (commit)
via a47132a306dc9d8ba5256b5c2dda8e6431e09e38 (commit)
via b46beb83683bd8c768bdb94f61ab7b673db10b35 (commit)
via 240d54e9507a9f69b59fe6dc8579a6459dded8b6 (commit)
via ae12049ce8f4d3df561bcbdcf87e99fc687ab382 (commit)
via a2229b21161745a8e3a134d7f585974f64c90acd (commit)
via 034fa30fdc14e32155b6f8b45861431ffb749100 (commit)
via 22062438ac3e852c7f4e16ae6935b86ecb177515 (commit)
via 0a625e37eedfdf9ab15294e6a4bc6b61655cd768 (commit)
via 3385a47878a034f1846463c3dc762b843b7622ec (commit)
via 41ca0490e75673444f196c38238b99de3c508068 (commit)
via 807c64142e3d8f889a65ab43b5b54a337023243c (commit)
via d0a9a3b021b2c575eb5bc3068b41153685d042dd (commit)
via 54ada89b5be3936d3c67202ca3d7591273f14af8 (commit)
via 127f494f61e8cb22cb3858a0e51e1264db094804 (commit)
via 0a3d0aafd216c9ead108fd884f6949ca3c093ac4 (commit)
via 863d2ec79fefeec6c809ad326a01b73b098bde46 (commit)
via 46e055dbf94f70cca454d58a9cfe280568c622e7 (commit)
via 627a10296d9924eaf6d5b82437f918d3ee1147e3 (commit)
via 5b909a306db5bf7928c2b9f1789345712a9bec71 (commit)
via 7d84bcda6efce413dd48c2c8480c97fc57fd78d3 (commit)
via 790f671028d5fbb71f79ac4947e5534b5cb96678 (commit)
via cc09084970d1cd31b0d79349b7144c77195a0336 (commit)
via 8f2b33202dadde3125fd749d96796b60746409e6 (commit)
via e6bae1821e2110c0729f51434c435d99d8e73f9f (commit)
via 8f4767c33fdac33d2e0f42d61c77c70ecca51e10 (commit)
via 504417cf7d66816fd4172a3005ec11c047005f80 (commit)
via 6c2a93bcfd0084689e9e1be9bda63527744dbebf (commit)
via 457b1d1e76ca6ed6b78183c1401de7043dd239cd (commit)
via 326905fb03804adfdece491aeaa1de2fc8eedbc6 (commit)
via 040b3ec8ba6a03e71b95360adeeccee2f6ddeb4f (commit)
via 03f540a385b3a0602e5c2d479793eda4de55cf15 (commit)
via 0237a5b0c0050cae462ce98c89b64cd92a95d75e (commit)
via b85b0aa3aeb0947ebeb409ec87f95dbd0a640f79 (commit)
via 0c5b436dee83775287a325df891187989c0f093a (commit)
via 9602d20e52e1a2291bd9edbdf98e4d82995a385e (commit)
via d34898d46a2ca579cc57fd0cc88c1030e899ccf2 (commit)
via 11655a1abab8186b0d02e3da79e1f9464496e0da (commit)
via 9777e6d891ae65d0e52d99188211d43c4e3294b3 (commit)
via da4475edb710bcf49c979a60ab7e917efb08aebf (commit)
via c5cc41c70845d68733901d111fbdb4323bf6987b (commit)
via 0e3e5bfb3afb9030ea577a84eb30046433324e62 (commit)
via 695bb929a235093a96ac8074c61d8d753146c9f8 (commit)
via 373ce0dbfb54b641898389e8d060dd127c54bcdf (commit)
via 012405a22c9fb719ea380c714b27d32df3945758 (commit)
via be6c0f53bf638f3c36e8cb7c2fb3373a0edd0c9b (commit)
via af3a1fd54a5965a856bf217baa62daa5ba43124f (commit)
via 811505a651e517d67df03c29e2949464c76ab19a (commit)
via 5e21715ada570869e5aa9eda263587015ab4830e (commit)
via 692a7dfc401f35c4a51c44783d08abe50947e06f (commit)
via 074fcaf639b2480f2eed590e30fcb2007c120986 (commit)
via 213e596721b522f45c6c58f5e1f9d7500cdb2366 (commit)
from 29fbe7188915338a2686ada9f3d97b918efef34f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 3b158e5790b3fde9365605fd38bfc7aa062fb81d
Merge: 29fbe71 0f597fa
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Thu Jul 29 15:16:59 2010 -0400
Merge remote branch 'gdb/master'
commit 0f597fa288350b6ba9cc075034d793c6212d0c17
Author: DJ Delorie <dj@delorie.com>
Date: Thu Jul 29 17:35:33 2010 +0000
* rx-tdep.c (rx_analyze_prologue): Don't require branches to have
conditions.
commit b592dbe3d4dba7b6c738ac028c17d74d4270d8d0
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Jul 29 14:48:57 2010 +0000
* PROBLEMS: Remove mention of all problems.
commit 3358514aa7178f075cef16c396803a6411bbcb07
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Jul 29 14:18:56 2010 +0000
* lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in the
environment.
commit 6618ea3a99a036a40dab1e0b41777239d82b76e5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jul 29 07:35:58 2010 +0000
* elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
.toc section, even when none are used in relocs.
commit ebdf45cbea6689382d62487f64535e69205495ee
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jul 29 00:00:32 2010 +0000
*** empty log message ***
commit 79497d9b1653855007fe8384b628bf02803165df
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jul 29 00:00:05 2010 +0000
daily update
commit 1577e7a90ac9e9c12a75472531e7f87eeb4e0cde
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jul 28 23:24:57 2010 +0000
2010-07-28 Pedro Alves <pedro@codesourcery.com>
PR build/11848
* configure.ac: Check for wresize.
* configure, config.in: Regenerate.
* tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
with HAVE_WRESIZE.
commit d368ee72a6e0b90097a438acddcfe6b6eade4b82
Author: DJ Delorie <dj@delorie.com>
Date: Wed Jul 28 22:31:09 2010 +0000
Sort *alphabetically* this time
commit 6a2e7ca37e12b739efe2e1f7e1d480118b8a3529
Author: DJ Delorie <dj@delorie.com>
Date: Wed Jul 28 21:58:22 2010 +0000
[sim/rx]
* README.txt: New.
* config.h (CYCLE_ACCURATE, CYCLE_STATS): New.
* configure.in (--enable-cycle-accurate, --enable-cycle-stats):
New. Default to enabled.
* configure: Regenerate.
* cpu.h (regs_type): Add cycle tracking info.
(reset_pipeline_stats): Declare.
(halt_pipeline_stats): Declare.
(pipeline_stats): Declare.
* main.c (done): Call pipeline_stats().
* mem.h (rx_mem_ptr): Moved to here ...
* mem.c (mem_ptr): ... from here. Rename throughout.
(mem_put_byte): Move LEDs to Port A. Add Port B to control cycle
statistics. Move UART to SCI4.
(mem_put_hi): Add TPU 1-2. TPU 1 and 2 count CPU cycles.
* reg.c (init_regs): Set Rt reg to -1 (no reg).
* rx.c: Add cycle counting and statistics throughout.
(rx_get_byte): Optimize for speed.
(decode_opcode): Likewise.
(reset_pipeline_stats): New.
(halt_pipeline_stats): New.
(pipeline_stats): New.
* trace.c (sim_disasm_one): Print cycle count.
[include/opcode]
* rx.h (RX_Opcode_ID): Add nop2 and nop3 for statistics.
commit 25729a9b2f2618b553bb7e3c23122c8cf9ab8e24
Author: DJ Delorie <dj@delorie.com>
Date: Wed Jul 28 21:56:16 2010 +0000
* MAINTAINERS: Add self as RX maintainer. Sort list.
commit 167893a158260a4899d7794670e02ed4f9d70044
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Jul 28 21:54:34 2010 +0000
Add 0F to VEX opcode enums.
2010-07-28 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c: Add 0F to VEX opcode enums.
commit 306c28ca57a9c458b5c1f3e8cd4d52355d2d51bd
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 28 20:50:15 2010 +0000
gdb
PR python/11060:
* python/py-type.c (typy_legacy_template_argument): New function,
extracted from typy_template_argument.
(typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
value when needed.
gdb/testsuite
PR python/11060:
* gdb.python/py-type.c (Temargs): New template.
(temvar): New variable.
* gdb.python/py-type.exp (test_template): New proc.
commit ff524be399d834428bbb0ab0ed2f604f8c6c527b
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 28 20:20:26 2010 +0000
2010-07-28 Oleg Nesterov <oleg@redhat.com>
* remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
commit 2f22c795e000ddecc31a0c31043781ec9dc400c3
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 28 20:05:00 2010 +0000
* dwarf2read.c (dwarf2_const_value_data): Never sign extend.
commit a784c85c8628c9fd029cc40cbedb24b45e69d31f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jul 28 19:04:07 2010 +0000
2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
gdb/
* dwarf2read.c (read_subroutine_type): Improve THIS detection,
handling DW_AT_object_pointer, and workaround GCC PR 43053.
gdb/testsuite/
* gdb.cp/member-ptr.exp, gdb.cp/printmethod.exp,
gdb.dwarf2/member-ptr-forwardref.exp: Adjust.
commit 281ab0938c2f8c0aeb352f145b3cce9632b787f3
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 28 18:32:32 2010 +0000
* Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
commit a47132a306dc9d8ba5256b5c2dda8e6431e09e38
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jul 28 18:04:18 2010 +0000
Add missing gettext markup.
gdb/ChangeLog:
* remote.c (remote_download_tracepoint): Add missing gettext markup.
* tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
commit b46beb83683bd8c768bdb94f61ab7b673db10b35
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jul 28 17:57:53 2010 +0000
[PATCH] breakpoint_re_set fails while connecting to gdbserver.
This is a problem that I noticed on GNU/Linux, when using both GDB
and GDBserver to debug an Ada program. To reproduce, use any Ada
program, built with debug info ("gnatmake -g ...").
Then start the program with gdbserver:
% gdbserver :4444 simple_main
And then insert a breakpoint using the name of an Ada function,
followed by connecting to the target server:
(gdb) b simple.test_simple
Breakpoint 1 at 0x401f28: file simple.adb, line 16.
(gdb) tar rem :4444
Remote debugging using :4444
Reading symbols from /lib64/ld-linux-x86-64.so.2...
Reading symbols from /usr/lib/debug/lib/ld-2.11.1.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
!! -> Error in re-setting breakpoint 1: Can't find member of namespace, class,
!! -> struct, or union named "simple.test_simple"
!! -> Hint: try 'simple.test_simple<TAB> or 'simple.test_simple<ESC-?>
!! -> (Note leading single quote.)
0x00007f4db3cf2af0 in _start () from /lib64/ld-linux-x86-64.so.2
Created trace state variable $trace_timestamp for target's variable 1.
The problem is related to the fact that GDB found debug symbols for
ld.so in /usr/lib/debug. For debugger configured with a prefix that
is different from /usr, one way to force the problem to reproduce is
to use:
(gdb) set debug-file-directory /usr/lib/debug
(assuming that debug info has been installed at that location).
The problem is that the wrong language is used to parse the breakpoint
location because it gets changed from under us as a side effect of
some of the code that we do in prepration for re-parsing. In particular,
breakpoint_re_set_one reads:
set_language (b->language);
input_radix = b->input_radix;
s = b->addr_string;
save_current_space_and_thread ();
switch_to_program_space_and_thread (b->pspace);
marker_spec = b->type == bp_static_tracepoint && is_marker_spec (s);
[if (marker_spec) decode_tracepoint_spec (...) else decode_line_1]
What happens in our case is that debugging information gets found
for ld.so. As a result, the current_frame language is C whereas it
would have been unknown if we did not have debugging info. And
save_current_space_and_thread() implicitly causes the current frame
to be selected, which changes the language automatically if the new
language is not uknown and the the language mode is auto.
The fix, until all parsing routines (including decode_line_1) get upgraded
to take a language, is to select the breakpoint language as late as possible.
In this case, we don't need to do that until we actually try to parse
the breakpoint addr_string.
gdb/ChangeLog:
* breakpoint.c (breakpoint_re_set_one): Move call to set_language
down, just before the block that parse the breakpoint addr_string.
commit 240d54e9507a9f69b59fe6dc8579a6459dded8b6
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 28 16:23:54 2010 +0000
gdb
PR c++/9946:
* symfile.c (reread_symbols): Clear template_symbols.
* symtab.h (struct symbol) <is_cplus_template_function>: New
field.
(SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
(struct template_symbol): New.
* symtab.c (lookup_symbol_aux_local): Use
cp_lookup_symbol_imports_or_template.
* objfiles.h (struct objfile) <template_symbols>: New field.
* objfiles.c (relocate_one_symbol): New function.
(objfile_relocate1): Use it. Relocate isolated symbols.
* gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
template_arguments>: New fields.
(TYPE_N_TEMPLATE_ARGUMENTS): New macro.
(TYPE_TEMPLATE_ARGUMENTS): Likewise.
(TYPE_TEMPLATE_ARGUMENT): Likewise.
(lookup_typename): Update.
* gdbtypes.c (lookup_typename): Constify "block" argument.
* dwarf2read.c: Include vec.h.
(symbolp): New typedef.
(read_func_scope): Read template arguments. Allocate a
template_symbol when needed.
(read_structure_type): Read template arguments.
(new_symbol_full): New function, from new_symbol. Handle
DW_TAG_template_type_param and DW_TAG_template_value_param.
(new_symbol): Rewrite as wrapper.
* cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
* cp-namespace.c: Include language.h.
(search_symbol_list): New function.
(cp_lookup_symbol_imports_or_template): Likewise.
gdb/testsuite
PR c++/9946:
* gdb.cp/temargs.exp: New file.
* gdb.cp/temargs.cc: New file.
commit ae12049ce8f4d3df561bcbdcf87e99fc687ab382
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jul 28 12:08:19 2010 +0000
2010-07-28 Balazs Kezes <rlblaster@gmail.com>
* tui/tui-win.c (make_visible_with_new_height): Resize and move
the command window to the new size and position.
commit a2229b21161745a8e3a134d7f585974f64c90acd
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jul 28 12:02:36 2010 +0000
tabs vs spaces
commit 034fa30fdc14e32155b6f8b45861431ffb749100
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jul 28 12:01:21 2010 +0000
* tui/tui-win.c (tui_resize_all): Update the locator's origin's
coordinates.
commit 22062438ac3e852c7f4e16ae6935b86ecb177515
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jul 28 11:56:30 2010 +0000
2010-07-28 Balazs Kezes <rlblaster@gmail.com>
* tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
after a detecting a resize.
* tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
call.
commit 0a625e37eedfdf9ab15294e6a4bc6b61655cd768
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jul 28 11:48:20 2010 +0000
* configure.ac: Check for resize_term.
* configure, config.in: Regenerate.
commit 3385a47878a034f1846463c3dc762b843b7622ec
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jul 28 04:09:04 2010 +0000
misordered names in Write After Approval list
This patch moves a couple of write-after-approval names up to keep
the list in alphabetical order.
2010-07-27 Joel Brobecker <brobecker@adacore.com>
* MAINTAINERS (Write After Approval): Reorder a couple of entries.
commit 41ca0490e75673444f196c38238b99de3c508068
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jul 28 04:04:17 2010 +0000
Minor (space) reformatting.
commit 807c64142e3d8f889a65ab43b5b54a337023243c
Author: DJ Delorie <dj@delorie.com>
Date: Wed Jul 28 00:36:45 2010 +0000
* rx-decode.opc (store_flags): Remove, replace with F_* macros.
(rx_decode_opcode): Likewise.
* rx-decode.c: Regenerate.
commit d0a9a3b021b2c575eb5bc3068b41153685d042dd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jul 28 00:00:33 2010 +0000
*** empty log message ***
commit 54ada89b5be3936d3c67202ca3d7591273f14af8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jul 28 00:00:05 2010 +0000
daily update
commit 127f494f61e8cb22cb3858a0e51e1264db094804
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 27 23:18:38 2010 +0000
gdb/testsuite/
* gdb.base/help.exp (help disassemble): Update the content.
commit 0a3d0aafd216c9ead108fd884f6949ca3c093ac4
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jul 27 22:26:26 2010 +0000
* dwarf2read.c (read_string): Rename to ...
(read_direct_string): ... this.
(skip_one_die, read_attribute_value, dwarf_decode_line_header)
(dwarf_decode_lines, dwarf_decode_macros): Adjust.
commit 863d2ec79fefeec6c809ad326a01b73b098bde46
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 27 21:22:07 2010 +0000
gdb/
* linux-nat.c (linux_nat_lp_status_is_event): New function.
(count_events_callback, select_event_lwp_callback)
(cancel_breakpoints_callback, linux_nat_wait_1): Use it.
commit 46e055dbf94f70cca454d58a9cfe280568c622e7
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Tue Jul 27 21:18:52 2010 +0000
* elfxx-mips.h: Include "elf/mips.h".
(gprel16_reloc_p): New static inline function.
* elfxx-mips.c (_bfd_mips_elf_check_relocs)
[R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]:
Use got16_reloc_p.
(_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use
gprel16_reloc_p.
* elf32-mips.c (mips_info_to_howto_rel): Likewise.
* elfn32-mips.c (mips_info_to_howto_rel): Likewise.
commit 627a10296d9924eaf6d5b82437f918d3ee1147e3
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Tue Jul 27 21:14:45 2010 +0000
Fix up last ChangeLog entry in gas/ and bfd/.
commit 5b909a306db5bf7928c2b9f1789345712a9bec71
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Tue Jul 27 21:08:21 2010 +0000
* elf64-mips.c (mips_elf64_howto_table_rela)
[R_MIPS_TLS_DTPMOD64]: Clear partial_inplace.
[R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
[R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
[R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise.
[R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
* elfn32-mips.c (elf_mips_howto_table_rela)
[R_MIPS_TLS_DTPMOD32]: Likewise.
[R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
[R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
[R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise.
[R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
commit 7d84bcda6efce413dd48c2c8480c97fc57fd78d3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 27 20:51:37 2010 +0000
gdb/
* ia64-linux-nat.c (ia64_linux_status_is_event): New function.
(_initialize_ia64_linux_nat): Install it.
* linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
(linux_nat_set_status_is_event): New.
(stop_wait_callback, count_events_callback, select_event_lwp_callback)
cancel_breakpoints_callback, linux_nat_filter_event)
(linux_nat_wait_1): Use linux_nat_status_is_event.
* linux-nat.h (linux_nat_set_status_is_event): New prototype.
gdb/testsuite/
* gdb.threads/ia64-sigill.exp: New file.
* gdb.threads/ia64-sigill.c: New file.
commit 790f671028d5fbb71f79ac4947e5534b5cb96678
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 27 20:44:30 2010 +0000
* NEWS: Mention labels, .gdb_index.
commit cc09084970d1cd31b0d79349b7144c77195a0336
Author: crq <crq>
Date: Tue Jul 27 20:33:39 2010 +0000
* cli/cli-cmds.c (disassemble_command): Add support of disassemble
"start,+length" form of arguments.
commit 8f2b33202dadde3125fd749d96796b60746409e6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 27 19:11:51 2010 +0000
gdb/
* top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
* utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
(fputs_maybe_filtered): Do not do filtering also on
! INPUT_FROM_TERMINAL_P.
commit e6bae1821e2110c0729f51434c435d99d8e73f9f
Author: Doug Evans <dje@google.com>
Date: Tue Jul 27 18:13:25 2010 +0000
Fix file name mentioned in this entry:
2010-07-27 Ken Werner <ken.werner@de.ibm.com>
* dwarf2read.c (dwarf2_read_index): Initialize the types_list and
types_list_elements variables.
commit 8f4767c33fdac33d2e0f42d61c77c70ecca51e10
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 27 18:08:47 2010 +0000
* gdb.opt/inline-cmds.c (ATTR): New define.
(func1): Use it.
(func2): Likewise.
(func3): Likewise.
(outer_inline1): Likewise.
(outer_inline2): Likewise.
* gdb.opt/inline-bt.c (ATTR): New define.
(func1): Use it.
(func2): Likewise.
* gdb.opt/inline-locals.c (ATTR): New define.
(func1): Use it.
(func2): Likewise.
commit 504417cf7d66816fd4172a3005ec11c047005f80
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 27 16:58:20 2010 +0000
* gdb.stabs/gdb11479.c (hack): New function.
(test): Use it.
(test2): Use it.
* gdb.python/py-inferior.c (int8_search_buf, int16_search_buf)
(int32_search_buf, int64_search_buf): No longer static.
(x): Remove.
* gdb.base/relocate.c (hack): New function.
commit 6c2a93bcfd0084689e9e1be9bda63527744dbebf
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Jul 27 16:16:32 2010 +0000
ARI fix (trailing newline in warning message).
* dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
in warning message.
commit 457b1d1e76ca6ed6b78183c1401de7043dd239cd
Author: pmuldoon <pmuldoon>
Date: Tue Jul 27 12:40:40 2010 +0000
2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
* python/py-value.c (valpy_call): New Function.
2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-value.exp (test_inferior_function_call): New function.
* gdb.python/py-value.c (func1): New function.
(func2): Likewise.
2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Values From Inferior): Add value inferior function
call description.
commit 326905fb03804adfdece491aeaa1de2fc8eedbc6
Author: kwerner <kwerner>
Date: Tue Jul 27 07:57:49 2010 +0000
* valops.c (dwarf2_read_index): Initialize the types_list and types_list_elements variables.
commit 040b3ec8ba6a03e71b95360adeeccee2f6ddeb4f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jul 27 00:00:34 2010 +0000
*** empty log message ***
commit 03f540a385b3a0602e5c2d479793eda4de55cf15
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jul 26 20:25:00 2010 +0000
* dwarf2loc.c (locexpr_describe_location_piece): Also recognize
TLS with DW_OP_const4u or DW_OP_const8u.
commit 0237a5b0c0050cae462ce98c89b64cd92a95d75e
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Mon Jul 26 17:06:24 2010 +0000
* ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
VSX registers contents.
commit b85b0aa3aeb0947ebeb409ec87f95dbd0a640f79
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Mon Jul 26 12:31:08 2010 +0000
* gdb.asm/xstormy16.inc (gdbasm_startup): Fix beginning of stack so
as not to clash with .data section.
commit 0c5b436dee83775287a325df891187989c0f093a
Author: Jerome Guitton <guitton@adacore.com>
Date: Mon Jul 26 09:38:49 2010 +0000
gdb/testsuite/
* gdb.base/code_elim.exp: New file.
* gdb.base/code_elim1.c: New file.
* gdb.base/code_elim2.c: New file.
commit 9602d20e52e1a2291bd9edbdf98e4d82995a385e
Author: Jerome Guitton <guitton@adacore.com>
Date: Mon Jul 26 09:29:59 2010 +0000
gdb/
* dwarf2read.c (add_partial_symbol): Do not add a global variable if
its adress is null. Add comment to explain why.
(new_symbol): Ditto.
commit d34898d46a2ca579cc57fd0cc88c1030e899ccf2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jul 26 00:00:05 2010 +0000
daily update
commit 11655a1abab8186b0d02e3da79e1f9464496e0da
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jul 26 00:00:03 2010 +0000
*** empty log message ***
commit 9777e6d891ae65d0e52d99188211d43c4e3294b3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Jul 25 10:15:54 2010 +0000
gdb/gdbserver/
* server.c (handle_target_event): Use target_signal_to_host for
resume_info.sig initialization.
* target.h (struct thread_resume) <sig>: New comment.
commit da4475edb710bcf49c979a60ab7e917efb08aebf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Jul 25 09:31:11 2010 +0000
gdb/
* linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
the host signal first.
commit c5cc41c70845d68733901d111fbdb4323bf6987b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jul 25 00:00:05 2010 +0000
daily update
commit 0e3e5bfb3afb9030ea577a84eb30046433324e62
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jul 25 00:00:03 2010 +0000
*** empty log message ***
commit 695bb929a235093a96ac8074c61d8d753146c9f8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jul 24 00:00:05 2010 +0000
daily update
commit 373ce0dbfb54b641898389e8d060dd127c54bcdf
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jul 24 00:00:02 2010 +0000
*** empty log message ***
commit 012405a22c9fb719ea380c714b27d32df3945758
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jul 23 22:15:13 2010 +0000
* dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
type_comp_units>: New fields.
(dw2_get_cu): New function.
(create_cus_from_index): Remove unused argument.
(create_signatured_type_hash_from_index): New function.
(create_addrmap_from_index): Update.
(dwarf2_read_index): Handle version 2.
(dw2_find_last_source_symtab, dw2_forget_cached_source_info)
(dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
(dw2_print_stats, dw2_expand_all_symtabs)
(dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
(dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
(dwarf2_initialize_objfile): Call create_debug_types_hash_table.
(allocate_signatured_type_hash_table): New function.
(add_signatured_type_cu_to_list): Likewise.
(create_debug_types_hash_table): Use them. Set type_comp_units.
(read_signatured_type): Ensure section data is available.
(add_address_entry): Don't record empty ranges.
(struct signatured_type_index_data): New.
(write_one_signatured_type): New function.
(write_psymtabs_to_index): Write type CUs.
(save_gdb_index_command): Update comment.
(process_type_comp_unit): Move inititalization of
from_debug_types...
(create_debug_types_hash_table): ... here.
commit be6c0f53bf638f3c36e8cb7c2fb3373a0edd0c9b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jul 23 21:10:54 2010 +0000
gdb/
* gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
cleanup and generating of gdb script to it.
(gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
and terminal size. Convert $tmpfile to a series of -ex-es.
commit af3a1fd54a5965a856bf217baa62daa5ba43124f
Author: Keith Seitz <keiths@redhat.com>
Date: Fri Jul 23 17:42:11 2010 +0000
* symtab.c (basic_lookup_transparent_type): Call pre-expand
hook for STATIC_BLOCK types, too.
commit 811505a651e517d67df03c29e2949464c76ab19a
Author: Nick Clifton <nickc@redhat.com>
Date: Fri Jul 23 14:52:41 2010 +0000
Add support for v850E2 and v850E2V3
commit 5e21715ada570869e5aa9eda263587015ab4830e
Author: Keith Seitz <keiths@redhat.com>
Date: Fri Jul 23 14:43:33 2010 +0000
* dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
and vector definition.
commit 692a7dfc401f35c4a51c44783d08abe50947e06f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jul 23 12:18:58 2010 +0000
gdb/
* linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
commit 074fcaf639b2480f2eed590e30fcb2007c120986
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jul 23 00:00:05 2010 +0000
daily update
commit 213e596721b522f45c6c58f5e1f9d7500cdb2366
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jul 23 00:00:04 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 70 +
bfd/archures.c | 4 +-
bfd/bfd-in2.h | 68 +
bfd/config.bfd | 8 +-
bfd/cpu-v850.c | 10 +-
bfd/elf32-mips.c | 3 +-
bfd/elf32-v850.c | 766 +++-
bfd/elf64-mips.c | 20 +-
bfd/elf64-ppc.c | 56 +-
bfd/elfn32-mips.c | 23 +-
bfd/elfxx-mips.c | 4 +-
bfd/elfxx-mips.h | 7 +
bfd/libbfd.h | 22 +
bfd/reloc.c | 88 +
bfd/version.h | 2 +-
configure | 10 +-
configure.ac | 10 +-
gdb/ChangeLog | 238 +
gdb/MAINTAINERS | 4 +-
gdb/Makefile.in | 2 +-
gdb/NEWS | 22 +-
gdb/PROBLEMS | 102 +-
gdb/breakpoint.c | 2 +-
gdb/cli/cli-cmds.c | 18 +-
gdb/config.in | 6 +
gdb/configure | 4 +-
gdb/configure.ac | 4 +-
gdb/cp-namespace.c | 90 +
gdb/cp-support.h | 6 +
gdb/doc/ChangeLog | 10 +
gdb/doc/gdb.texinfo | 44 +-
gdb/dwarf2loc.c | 14 +-
gdb/dwarf2read.c | 635 +++-
gdb/gdb_gcore.sh | 25 +-
gdb/gdbserver/ChangeLog | 6 +
gdb/gdbserver/server.c | 2 +-
gdb/gdbserver/target.h | 3 +-
gdb/gdbtypes.c | 2 +-
gdb/gdbtypes.h | 17 +-
gdb/ia64-linux-nat.c | 13 +
gdb/linux-nat.c | 68 +-
gdb/linux-nat.h | 4 +
gdb/objfiles.c | 43 +-
gdb/objfiles.h | 6 +
gdb/ppc-linux-nat.c | 2 +-
gdb/python/py-type.c | 92 +-
gdb/python/py-value.c | 50 +-
gdb/remote.c | 5 +-
gdb/rx-tdep.c | 1 -
gdb/symfile.c | 1 +
gdb/symtab.c | 27 +-
gdb/symtab.h | 26 +
gdb/testsuite/ChangeLog | 74 +
gdb/testsuite/gdb.asm/xstormy16.inc | 2 +-
gdb/testsuite/gdb.base/code_elim.exp | 173 +
.../gdb.base/{relocate.c => code_elim1.c} | 20 +-
.../gdb.base/{relocate.c => code_elim2.c} | 18 +-
gdb/testsuite/gdb.base/help.exp | 2 +-
gdb/testsuite/gdb.base/relocate.c | 7 +
gdb/testsuite/gdb.cp/member-ptr.exp | 22 +-
gdb/testsuite/gdb.cp/printmethod.exp | 4 +-
gdb/testsuite/gdb.cp/temargs.cc | 71 +
gdb/testsuite/gdb.cp/temargs.exp | 102 +
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp | 2 +-
gdb/testsuite/gdb.opt/inline-bt.c | 13 +-
gdb/testsuite/gdb.opt/inline-bt.exp | 2 +-
gdb/testsuite/gdb.opt/inline-cmds.c | 19 +-
gdb/testsuite/gdb.opt/inline-locals.c | 13 +-
gdb/testsuite/gdb.python/py-inferior.c | 10 +-
gdb/testsuite/gdb.python/py-type.c | 8 +
gdb/testsuite/gdb.python/py-type.exp | 18 +
gdb/testsuite/gdb.python/py-value.c | 16 +
gdb/testsuite/gdb.python/py-value.exp | 30 +
gdb/testsuite/gdb.stabs/gdb11479.c | 14 +-
gdb/testsuite/gdb.threads/ia64-sigill.c | 360 ++
gdb/testsuite/gdb.threads/ia64-sigill.exp | 76 +
gdb/testsuite/lib/gdb.exp | 5 +
gdb/top.c | 3 +
gdb/tracepoint.c | 2 +-
gdb/tui/tui-io.c | 1 +
gdb/tui/tui-win.c | 10 +-
gdb/utils.c | 5 +-
gdb/version.in | 2 +-
include/elf/ChangeLog | 6 +
include/elf/v850.h | 28 +
include/opcode/ChangeLog | 22 +
include/opcode/rx.h | 3 +-
include/opcode/v850.h | 94 +-
opcodes/ChangeLog | 33 +
opcodes/i386-dis.c | 4518 ++++++++++----------
opcodes/rx-decode.c | 1511 ++++----
opcodes/rx-decode.opc | 301 +-
opcodes/v850-dis.c | 609 ++-
opcodes/v850-opc.c | 1246 ++++--
sim/ChangeLog | 4 +
sim/MAINTAINERS | 3 +-
sim/rx/ChangeLog | 27 +
sim/rx/README.txt | 121 +
sim/rx/config.in | 6 +
sim/rx/configure | 3191 ++++++++------
sim/rx/configure.in | 30 +
sim/rx/cpu.h | 19 +
sim/rx/main.c | 2 +
sim/rx/mem.c | 156 +-
sim/rx/mem.h | 15 +
sim/rx/reg.c | 6 +
sim/rx/rx.c | 825 ++++-
sim/rx/trace.c | 9 +-
108 files changed, 10901 insertions(+), 5753 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/code_elim.exp
copy gdb/testsuite/gdb.base/{relocate.c => code_elim1.c} (78%)
copy gdb/testsuite/gdb.base/{relocate.c => code_elim2.c} (74%)
create mode 100644 gdb/testsuite/gdb.cp/temargs.cc
create mode 100644 gdb/testsuite/gdb.cp/temargs.exp
create mode 100644 gdb/testsuite/gdb.threads/ia64-sigill.c
create mode 100644 gdb/testsuite/gdb.threads/ia64-sigill.exp
create mode 100644 sim/rx/README.txt
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index cdbf3a0..81379db 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,73 @@
+2010-07-29 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
+ .toc section, even when none are used in relocs.
+
+2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * elfxx-mips.h: Include "elf/mips.h".
+ (gprel16_reloc_p): New static inline function.
+ * elfxx-mips.c (_bfd_mips_elf_check_relocs)
+ [R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]:
+ Use got16_reloc_p.
+ (_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use
+ gprel16_reloc_p.
+ * elf32-mips.c (mips_info_to_howto_rel): Likewise.
+ * elfn32-mips.c (mips_info_to_howto_rel): Likewise.
+
+2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * elf64-mips.c (mips_elf64_howto_table_rela)
+ [R_MIPS_TLS_DTPMOD64]: Clear partial_inplace.
+ [R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
+ [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
+ [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise.
+ [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
+ * elfn32-mips.c (elf_mips_howto_table_rela)
+ [R_MIPS_TLS_DTPMOD32]: Likewise.
+ [R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
+ [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
+ [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise.
+ [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
+
+2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
+ Ina Pandit <ina.pandit@kpitcummins.com>
+
+ * archures.c (DESCRIPTION): Define bfd_mach_v850e2 and
+ bfd_mach_v850e2v3.
+ * reloc.c (bfd_architecture): Define bfd_mach_v850e2 and
+ bfd_mach_v850e2v3.
+ (BFD_RELOC_V850_16_PCREL, BFD_RELOC_V850_17_PCREL,
+ BFD_RELOC_V850_22_PCREL, BFD_RELOC_V850_23,
+ BFD_RELOC_V850_32_PCREL, BFD_RELOC_V850_32_ABS,
+ BFD_RELOC_V850_16_SPLIT_OFFSET, BFD_RELOC_V850_16_S1,
+ BFD_RELOC_V850_LO16_SPLIT_OFFSET, BFD_RELOC_V850_SDA_15_16_OFFSET,
+ BFD_RELOC_V850_ZDA_16_16_OFFSET, BFD_RELOC_V850_CALLT_15_16_OFFSET,
+ BFD_RELOC_V850_32_GOTPCREL, BFD_RELOC_V850_16_GOT,
+ BFD_RELOC_V850_32_GOT, BFD_RELOC_V850_22_PLT_PCREL,
+ BFD_RELOC_V850_32_PLT_PCREL, BFD_RELOC_V850_COPY,
+ BFD_RELOC_V850_GLOB_DAT, BFD_RELOC_V850_JMP_SLOT,
+ BFD_RELOC_V850_RELATIVE, BFD_RELOC_V850_16_GOTOFF,
+ BFD_RELOC_V850_32_GOTOFF, BFD_RELOC_V850_CODE,
+ BFD_RELOC_V850_DATA): New relocations for V850 target.
+ * config.bfd: Match all v850 targets.
+ * cpu-v850.c (arch_info_struct): Define V850e2 and V850e2v3.
+ * elf32-v850.c (v850_elf_check_relocs): Check the newly added
+ relocations.
+ (v850_elf_perform_relocation ): Update the newly added
+ relocations.
+ (v850_elf_howto_t): Update the specifications of added
+ relocations.
+ (v850_elf_reloc_map): Update the relocation mappings.
+ (v850_elf_final_link_relocate): Maps added relocation into the
+ appropriate howto structure.
+ (v850_elf_object_p): Add support for V850E2 and V850E2V3.
+ (v850_elf_final_write_processing): Likewise.
+ (v850_elf_merge_private_bfd_data): Likewise.
+ (v850_elf_print_private_bfd_data): Likewise.
+ * libbfd.h: Regenerate.
+ * bfd-in2.h: Regenerate.
+
2010-07-23 Alan Modra <amodra@gmail.com>
* archive.c (_bfd_archive_bsd44_construct_extended_name_table):
diff --git a/bfd/archures.c b/bfd/archures.c
index 0e08571..1867154 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -310,7 +310,9 @@ DESCRIPTION
. bfd_arch_v850, {* NEC V850 *}
.#define bfd_mach_v850 1
.#define bfd_mach_v850e 'E'
-.#define bfd_mach_v850e1 '1'
+.#define bfd_mach_v850e1 '1'
+.#define bfd_mach_v850e2 0x4532
+.#define bfd_mach_v850e2v3 0x45325633
. bfd_arch_arc, {* ARC Cores *}
.#define bfd_mach_arc_5 5
.#define bfd_mach_arc_6 6
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index f97c67f..277d432 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1977,6 +1977,8 @@ enum bfd_architecture
#define bfd_mach_v850 1
#define bfd_mach_v850e 'E'
#define bfd_mach_v850e1 '1'
+#define bfd_mach_v850e2 0x4532 /* ('E'<<8|'2') */
+#define bfd_mach_v850e2v3 0x45325633 /* ('E'<<24|'2'<<16|'V'<<8|'3') */
bfd_arch_arc, /* ARC Cores */
#define bfd_mach_arc_5 5
#define bfd_mach_arc_6 6
@@ -3605,6 +3607,72 @@ bits placed non-contiguously in the instruction. */
instructions. */
BFD_RELOC_V850_LO16_SPLIT_OFFSET,
+/* This is a 16-bit reloc. */
+ BFD_RELOC_V850_16_PCREL,
+
+/* This is a 17-bit reloc. */
+ BFD_RELOC_V850_17_PCREL,
+
+/* This is a 23-bit reloc. */
+ BFD_RELOC_V850_23,
+
+/* This is a 32-bit reloc. */
+ BFD_RELOC_V850_32_PCREL,
+
+/* This is a 32-bit reloc. */
+ BFD_RELOC_V850_32_ABS,
+
+/* This is a 16-bit reloc. */
+ BFD_RELOC_V850_16_SPLIT_OFFSET,
+
+/* This is a 16-bit reloc. */
+ BFD_RELOC_V850_16_S1,
+
+/* Low 16 bits. 16 bit shifted by 1. */
+ BFD_RELOC_V850_LO16_S1,
+
+/* This is a 16 bit offset from the call table base pointer. */
+ BFD_RELOC_V850_CALLT_15_16_OFFSET,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_32_GOTPCREL,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_16_GOT,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_32_GOT,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_22_PLT_PCREL,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_32_PLT_PCREL,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_COPY,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_GLOB_DAT,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_JMP_SLOT,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_RELATIVE,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_16_GOTOFF,
+
+/* DSO relocations. */
+ BFD_RELOC_V850_32_GOTOFF,
+
+/* start code. */
+ BFD_RELOC_V850_CODE,
+
+/* start data in text. */
+ BFD_RELOC_V850_DATA,
+
/* This is a 32bit pcrel reloc for the mn10300, offset by two bytes in the
instruction. */
BFD_RELOC_MN10300_32_PCREL,
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 1015f3c..960d4d4 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -1468,13 +1468,7 @@ case "${targ}" in
targ_underscore=yes
;;
- v850-*-*)
- targ_defvec=bfd_elf32_v850_vec
- ;;
- v850e-*-*)
- targ_defvec=bfd_elf32_v850_vec
- ;;
- v850ea-*-*)
+ v850*-*-*)
targ_defvec=bfd_elf32_v850_vec
;;
diff --git a/bfd/cpu-v850.c b/bfd/cpu-v850.c
index 77ca519..6ebc96c 100644
--- a/bfd/cpu-v850.c
+++ b/bfd/cpu-v850.c
@@ -1,6 +1,6 @@
/* BFD support for the NEC V850 processor
- Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2007
- Free Software Foundation, Inc.
+ Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2007,
+ 2010 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -32,8 +32,10 @@
static const bfd_arch_info_type arch_info_struct[] =
{
- N (bfd_mach_v850e1, "v850e1", FALSE, & arch_info_struct[1]),
- N (bfd_mach_v850e, "v850e", FALSE, NULL)
+ N (bfd_mach_v850e2v3, "v850e2v3", FALSE, & arch_info_struct[1]),
+ N (bfd_mach_v850e2, "v850e2", FALSE, & arch_info_struct[2]),
+ N (bfd_mach_v850e1, "v850e1", FALSE, & arch_info_struct[3]),
+ N (bfd_mach_v850e, "v850e", FALSE, NULL)
};
#undef NEXT
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index c987ff9..5155557 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -1422,8 +1422,7 @@ mips_info_to_howto_rel (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst)
when we do the relocation, because the symbol manipulations done
by the linker may cause us to lose track of the input BFD. */
if (((*cache_ptr->sym_ptr_ptr)->flags & BSF_SECTION_SYM) != 0
- && (r_type == (unsigned int) R_MIPS_GPREL16
- || r_type == (unsigned int) R_MIPS_LITERAL))
+ && (gprel16_reloc_p (r_type) || r_type == (unsigned int) R_MIPS_LITERAL))
cache_ptr->addend = elf_gp (abfd);
}
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index 0ab7de8..e153e83 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -31,8 +31,11 @@
#include "elf/v850.h"
#include "libiberty.h"
-/* Sign-extend a 24-bit number. */
-#define SEXT24(x) ((((x) & 0xffffff) ^ 0x800000) - 0x800000)
+/* Sign-extend a 17-bit number. */
+#define SEXT17(x) ((((x) & 0x1ffff) ^ 0x10000) - 0x10000)
+
+/* Sign-extend a 22-bit number. */
+#define SEXT22(x) ((((x) & 0x3fffff) ^ 0x200000) - 0x200000)
static reloc_howto_type v850_elf_howto_table[];
@@ -89,16 +92,25 @@ v850_elf_check_relocs (bfd *abfd,
default:
case R_V850_NONE:
case R_V850_9_PCREL:
+ case R_V850_16_PCREL:
+ case R_V850_17_PCREL:
case R_V850_22_PCREL:
- case R_V850_HI16_S:
+ case R_V850_32_PCREL:
+ case R_V850_32_ABS:
case R_V850_HI16:
+ case R_V850_HI16_S:
case R_V850_LO16:
+ case R_V850_LO16_S1:
case R_V850_LO16_SPLIT_OFFSET:
+ case R_V850_23:
case R_V850_ABS32:
case R_V850_REL32:
case R_V850_16:
+ case R_V850_16_S1:
+ case R_V850_16_SPLIT_OFFSET:
case R_V850_8:
case R_V850_CALLT_6_7_OFFSET:
+ case R_V850_CALLT_15_16_OFFSET:
case R_V850_CALLT_16_16_OFFSET:
break;
@@ -132,11 +144,11 @@ v850_elf_check_relocs (bfd *abfd,
common = ".zcommon";
goto small_data_common;
- case R_V850_TDA_4_5_OFFSET:
case R_V850_TDA_4_4_OFFSET:
+ case R_V850_TDA_4_5_OFFSET:
+ case R_V850_TDA_7_7_OFFSET:
case R_V850_TDA_6_8_OFFSET:
case R_V850_TDA_7_8_OFFSET:
- case R_V850_TDA_7_7_OFFSET:
case R_V850_TDA_16_16_OFFSET:
other = V850_OTHER_TDA;
common = ".tcommon";
@@ -315,15 +327,15 @@ find_remembered_hi16s_reloc (bfd_vma addend, bfd_boolean *already_found)
will store 0 in the value fields for the MOVHI and MOVEA instructions
and addend will be the address of fred, but for these instructions:
- movhi hi( fred + 0x123456), r0, r1
- movea lo( fred + 0x123456), r1, r1
+ movhi hi( fred + 0x123456 ), r0, r1
+ movea lo( fred + 0x123456 ), r1, r1
the value stored in the MOVHI instruction will be 0x12 and the value
stored in the MOVEA instruction will be 0x3456. If however the
instructions were:
- movhi hi( fred + 0x10ffff), r0, r1
- movea lo( fred + 0x10ffff), r1, r1
+ movhi hi( fred + 0x10ffff ), r0, r1
+ movea lo( fred + 0x10ffff ), r1, r1
then the value stored in the MOVHI instruction would be 0x11 (not
0x10) and the value stored in the MOVEA instruction would be 0xffff.
@@ -332,8 +344,8 @@ find_remembered_hi16s_reloc (bfd_vma addend, bfd_boolean *already_found)
adds 0xffffffff (sign extension!) producing 0x10ffff. Similarly if
the instructions were:
- movhi hi( fred - 1), r0, r1
- movea lo( fred - 1), r1, r1
+ movhi hi( fred - 1 ), r0, r1
+ movea lo( fred - 1 ), r1, r1
then 0 is stored in the MOVHI instruction and -1 is stored in the
MOVEA instruction.
@@ -345,8 +357,8 @@ find_remembered_hi16s_reloc (bfd_vma addend, bfd_boolean *already_found)
clear, the assembler will not have added 1 to the previous HI16S reloc
to compensate for this effect. For example:
- movhi hi( fred + 0x123456), r0, r1
- movea lo( fred + 0x123456), r1, r1
+ movhi hi( fred + 0x123456 ), r0, r1
+ movea lo( fred + 0x123456 ), r1, r1
The value stored in HI16S reloc is 0x12, the value stored in the LO16
reloc is 0x3456. If we assume that the address of fred is 0x00007000
@@ -366,8 +378,8 @@ find_remembered_hi16s_reloc (bfd_vma addend, bfd_boolean *already_found)
Note that if the 15th bit was set in the value stored in the LO16
reloc, then we do not have to do anything:
- movhi hi( fred + 0x10ffff), r0, r1
- movea lo( fred + 0x10ffff), r1, r1
+ movhi hi( fred + 0x10ffff ), r0, r1
+ movea lo( fred + 0x10ffff ), r1, r1
HI16S: 0x0011 + (0x00007000 >> 16) = 0x11
LO16: 0xffff + (0x00007000 & 0xffff) = 0x6fff
@@ -387,8 +399,8 @@ find_remembered_hi16s_reloc (bfd_vma addend, bfd_boolean *already_found)
So, for example if fred is at address 0xf000:
- movhi hi( fred + 0xffff), r0, r1 [bit 15 of the offset is set]
- movea lo( fred + 0xffff), r1, r1
+ movhi hi( fred + 0xffff ), r0, r1 [bit 15 of the offset is set]
+ movea lo( fred + 0xffff ), r1, r1
HI16S: 0x0001 + (0x0000f000 >> 16) = 0x0001
LO16: 0xffff + (0x0000f000 & 0xffff) = 0xefff (carry into bit 16 is lost)
@@ -401,8 +413,8 @@ find_remembered_hi16s_reloc (bfd_vma addend, bfd_boolean *already_found)
Similarly, if the 15th bit remains clear, but overflow occurs into
the 16th bit then (assuming the address of fred is 0xf000):
- movhi hi( fred + 0x7000), r0, r1 [bit 15 of the offset is clear]
- movea lo( fred + 0x7000), r1, r1
+ movhi hi( fred + 0x7000 ), r0, r1 [bit 15 of the offset is clear]
+ movea lo( fred + 0x7000 ), r1, r1
HI16S: 0x0000 + (0x0000f000 >> 16) = 0x0000
LO16: 0x7000 + (0x0000f000 & 0xffff) = 0x6fff (carry into bit 16 is lost)
@@ -416,8 +428,8 @@ find_remembered_hi16s_reloc (bfd_vma addend, bfd_boolean *already_found)
15th bit changes its value from being set to being clear, as the HI16S
reloc will have already added in 1 to the high part for us:
- movhi hi( fred + 0xffff), r0, r1 [bit 15 of the offset is set]
- movea lo( fred + 0xffff), r1, r1
+ movhi hi( fred + 0xffff ), r0, r1 [bit 15 of the offset is set]
+ movea lo( fred + 0xffff ), r1, r1
HI16S: 0x0001 + (0x00007000 >> 16)
LO16: 0xffff + (0x00007000 & 0xffff) = 0x6fff (carry into bit 16 is lost)
@@ -430,8 +442,8 @@ find_remembered_hi16s_reloc (bfd_vma addend, bfd_boolean *already_found)
but if the 15th bit goes from being clear to being set, then we must
once again handle overflow:
- movhi hi( fred + 0x7000), r0, r1 [bit 15 of the offset is clear]
- movea lo( fred + 0x7000), r1, r1
+ movhi hi( fred + 0x7000 ), r0, r1 [bit 15 of the offset is clear]
+ movea lo( fred + 0x7000 ), r1, r1
HI16S: 0x0000 + (0x0000ffff >> 16)
LO16: 0x7000 + (0x0000ffff & 0xffff) = 0x6fff (carry into bit 16)
@@ -504,6 +516,13 @@ v850_elf_perform_relocation (bfd *abfd,
bfd_put_32 (abfd, addend, address);
return bfd_reloc_ok;
+ case R_V850_23:
+ insn = bfd_get_32 (abfd, address);
+ insn &= ~((0x7f << 4) | (0x7fff80 << (16-7)));
+ insn |= ((addend & 0x7f) << 4) | ((addend & 0x7fff80) << (16-7));
+ bfd_put_32 (abfd, (bfd_vma) insn, address);
+ return bfd_reloc_ok;
+
case R_V850_22_PCREL:
if (saddend > 0x1fffff || saddend < -0x200000)
return bfd_reloc_overflow;
@@ -517,6 +536,30 @@ v850_elf_perform_relocation (bfd *abfd,
bfd_put_32 (abfd, (bfd_vma) insn, address);
return bfd_reloc_ok;
+ case R_V850_17_PCREL:
+ if (saddend > 0xffff || saddend < -0x10000)
+ return bfd_reloc_overflow;
+
+ if ((addend % 2) != 0)
+ return bfd_reloc_dangerous;
+
+ insn = bfd_get_32 (abfd, address);
+ insn &= ~ 0xfffe0010;
+ insn |= ((addend & 0xfffe) << 16) | ((addend & 0x10000) >> (16-4));
+ break;
+
+ case R_V850_16_PCREL:
+ if ((saddend < -0xffff) || (saddend > 0))
+ return bfd_reloc_overflow;
+
+ if ((addend % 2) != 0)
+ return bfd_reloc_dangerous;
+
+ insn = bfd_get_16 (abfd, address);
+ insn &= ~0xfffe;
+ insn |= (-addend & 0xfffe);
+ break;
+
case R_V850_9_PCREL:
if (saddend > 0xff || saddend < -0x100)
return bfd_reloc_overflow;
@@ -577,6 +620,36 @@ v850_elf_perform_relocation (bfd *abfd,
insn = addend;
break;
+ case R_V850_CALLT_15_16_OFFSET:
+ insn = bfd_get_16 (abfd, address);
+
+ addend += insn & 0xfffe;;
+
+ saddend = (bfd_signed_vma) addend;
+
+ if (saddend > 0xffff || saddend < 0)
+ return bfd_reloc_overflow;
+
+ insn = (0xfffe & addend)
+ | (insn & ~0xfffe);
+ break;
+
+ case R_V850_CALLT_6_7_OFFSET:
+ insn = bfd_get_16 (abfd, address);
+ addend += ((insn & 0x3f) << 1);
+
+ saddend = (bfd_signed_vma) addend;
+
+ if (saddend > 0x7e || saddend < 0)
+ return bfd_reloc_overflow;
+
+ if (addend & 1)
+ return bfd_reloc_dangerous;
+
+ insn &= 0xff80;
+ insn |= (addend >> 1);
+ break;
+
case R_V850_16:
case R_V850_SDA_16_16_OFFSET:
case R_V850_ZDA_16_16_OFFSET:
@@ -591,6 +664,7 @@ v850_elf_perform_relocation (bfd *abfd,
insn = addend;
break;
+ case R_V850_16_S1:
case R_V850_SDA_15_16_OFFSET:
case R_V850_ZDA_15_16_OFFSET:
insn = bfd_get_16 (abfd, address);
@@ -681,6 +755,18 @@ v850_elf_perform_relocation (bfd *abfd,
insn |= addend;
break;
+ case R_V850_LO16_S1:
+ insn = bfd_get_16 (abfd, address);
+ result = insn & 0xfffe;
+ if (! v850_elf_perform_lo16_relocation (abfd, &result, addend))
+ return bfd_reloc_overflow;
+ if (result & 1)
+ return bfd_reloc_overflow;
+ insn = (result & 0xfffe)
+ | (insn & ~0xfffe);
+ bfd_put_16 (abfd, insn, address);
+ return bfd_reloc_ok;
+
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-07-22 16:57 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-07-22 16:57 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 29fbe7188915338a2686ada9f3d97b918efef34f (commit)
via f48d0e90918786c7bcda729ec069271531312f87 (commit)
from 189a12568b5adaf27adc793337208a5917245296 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 29fbe7188915338a2686ada9f3d97b918efef34f
Merge: 189a12568b5adaf27adc793337208a5917245296 f48d0e90918786c7bcda729ec069271531312f87
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jul 22 18:57:37 2010 +0200
Merge remote branch 'gdb/master'
commit f48d0e90918786c7bcda729ec069271531312f87
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jul 22 16:24:34 2010 +0000
gdb/
* dwarf2read.c: Include completer.h.
(save_gdb_index_command): Use matching usage command name.
(_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
Set filename_completer for it.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 7 +++++++
gdb/dwarf2read.c | 12 ++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 861f5b8..15bf0c8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c: Include completer.h.
+ (save_gdb_index_command): Use matching usage command name.
+ (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
+ Set filename_completer for it.
+
2010-07-22 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (create_debug_types_hash_table): Set objfile on
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 3a24e9f..0d63fe3 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -53,6 +53,7 @@
#include "psympriv.h"
#include "exceptions.h"
#include "gdb_stat.h"
+#include "completer.h"
#include <fcntl.h>
#include "gdb_string.h"
@@ -14135,7 +14136,7 @@ save_gdb_index_command (char *arg, int from_tty)
struct objfile *objfile;
if (!arg || !*arg)
- error (_("usage: maintenance save-gdb-index DIRECTORY"));
+ error (_("usage: save gdb-index DIRECTORY"));
ALL_OBJFILES (objfile)
{
@@ -14180,6 +14181,8 @@ void _initialize_dwarf2_read (void);
void
_initialize_dwarf2_read (void)
{
+ struct cmd_list_element *c;
+
dwarf2_objfile_data_key
= register_objfile_data_with_cleanup (NULL, dwarf2_per_objfile_free);
@@ -14228,7 +14231,8 @@ The value is the maximum depth to print."),
NULL,
&setdebuglist, &showdebuglist);
- add_cmd ("gdb-index", class_files, save_gdb_index_command,
- _("Save a .gdb-index file"),
- &save_cmdlist);
+ c = add_cmd ("gdb-index", class_files, save_gdb_index_command,
+ _("Save a .gdb-index file"),
+ &save_cmdlist);
+ set_cmd_completer (c, filename_completer);
}
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-07-22 16:26 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-07-22 16:26 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 189a12568b5adaf27adc793337208a5917245296 (commit)
via 2b73877481047f917a170b928b48cef2edabf85b (commit)
via dbe9ce40460eae15963f7265b2528d72d79c22b7 (commit)
via f6733df2c51a1ae1c4079dc48ae6dd465718ee8b (commit)
via 40eba23c5bec7f8dab7a95d9e45b7dc312025e87 (commit)
via 87cb721e04a308a8a8ab04e5d85af6b45a2d7cc3 (commit)
via 3337d42d5e89de6e423ad894e2554d6fe3c4d730 (commit)
via 73fb0576db6a164b318b462a09968b83e7ca02b3 (commit)
via 93716b05fbf987e193a8ee7472ca2bd78d1b38fa (commit)
via c7730817ca1a50c9dbfcee1455932ffbb3011401 (commit)
via 09585c444faac3133f5cd039898ebd56582d067e (commit)
via 33696e5c31fb0a43b309bd7bf1aa4a75b50bdadd (commit)
via 728ca2a6bf5302172d48dd236a4a9e85968b0e89 (commit)
via 36c81cbde4cc8d190931b202621951d5f48d9e1e (commit)
via be85e670ba2642dca50fd7262b3a1e22fd03267e (commit)
via aabf4a046ef1151f220f8293addc51c0a370b6b8 (commit)
from 6d89063b0f0516a9f0a2a37bc5993500657b3226 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 189a12568b5adaf27adc793337208a5917245296
Merge: 6d89063b0f0516a9f0a2a37bc5993500657b3226 2b73877481047f917a170b928b48cef2edabf85b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jul 22 18:26:08 2010 +0200
Merge remote branch 'gdb/master'
commit 2b73877481047f917a170b928b48cef2edabf85b
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Jul 22 15:53:47 2010 +0000
* dwarf2read.c (create_debug_types_hash_table): Set objfile on
type signature's per-CU data.
commit dbe9ce40460eae15963f7265b2528d72d79c22b7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jul 22 14:48:54 2010 +0000
* archive.c (_bfd_archive_bsd44_construct_extended_name_table):
Correct format specifier.
commit f6733df2c51a1ae1c4079dc48ae6dd465718ee8b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jul 22 14:29:15 2010 +0000
* ecoff.c: Don't include aout/ranlib.h.
(_bfd_ecoff_slurp_armap): Use correct struct for ardata->symdefs.
(_bfd_ecoff_write_armap): Output ar_date and ar_size using
_bfd_ar_spacepad.
commit 40eba23c5bec7f8dab7a95d9e45b7dc312025e87
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jul 22 14:07:09 2010 +0000
* aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
relocs.
commit 87cb721e04a308a8a8ab04e5d85af6b45a2d7cc3
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Jul 22 10:52:01 2010 +0000
* NEWS: Mention target reported shared libraries support by
default.
commit 3337d42d5e89de6e423ad894e2554d6fe3c4d730
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jul 22 00:00:05 2010 +0000
daily update
commit 73fb0576db6a164b318b462a09968b83e7ca02b3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jul 22 00:00:03 2010 +0000
*** empty log message ***
commit 93716b05fbf987e193a8ee7472ca2bd78d1b38fa
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jul 21 18:08:26 2010 +0000
gdb/
2010-07-21 Pedro Alves <pedro@codesourcery.com>
PR symtab/11827
Revert:
2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
* dwarf2read.c (process_die): Also allow DW_TAG_const_type
and DW_TAG_volatile_type.
(new_symbol): Likewise.
gdb/testsuite/
2010-07-21 Pedro Alves <pedro@codesourcery.com>
PR symtab/11827
* gdb.base/printcmds.c (enum some_volatile_enum): New enum.
(some_volatile_enum): New variable.
* gdb.base/printcmds.exp (test_print_enums): New.
<top level>: Call it.
commit c7730817ca1a50c9dbfcee1455932ffbb3011401
Author: DJ Delorie <dj@delorie.com>
Date: Wed Jul 21 16:08:00 2010 +0000
merge from gcc
commit 09585c444faac3133f5cd039898ebd56582d067e
Author: swagiaal <swagiaal>
Date: Wed Jul 21 14:59:04 2010 +0000
Corrected pre-overload-resolution function evaluation.
2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
* eval.c (evaluate_subexp_standard): Disabled evaluation of C++
function symbols before overload resolution.
2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/fpointer.cc: New test.
* gdb.cp/fpointer.exp: New test.
commit 33696e5c31fb0a43b309bd7bf1aa4a75b50bdadd
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jul 21 11:25:51 2010 +0000
* breakpoint.c (bptype_string): New, abstracted out from
print_one_breakpoint_location.
(print_one_breakpoint_location): Adjust.
(breakpoint_1): Adjust the type column width dynamically.
commit 728ca2a6bf5302172d48dd236a4a9e85968b0e89
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jul 21 00:00:33 2010 +0000
*** empty log message ***
commit 36c81cbde4cc8d190931b202621951d5f48d9e1e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jul 21 00:00:05 2010 +0000
daily update
commit be85e670ba2642dca50fd7262b3a1e22fd03267e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 20 22:19:06 2010 +0000
gdb/
* symfile.c (find_separate_debug_file_by_debuglink): Remove
a gdb_assert call, new comment.
gdb/testsuite/
* gdb.base/solib-nodir.exp: New file.
* lib/gdb.exp (runto): New case for a GDB internal error.
commit aabf4a046ef1151f220f8293addc51c0a370b6b8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 20 22:06:59 2010 +0000
gdb/testsuite/
* gdb.base/charset-malloc.c: New file.
* gdb.base/charset.c (malloc_stub): New prototype.
(main): Call it instead of malloc itself.
* gdb.base/charset.exp: Use only prepare_for_testing.
(binfile): Remove the variable.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 17 +++++++++
bfd/aoutx.h | 4 ++-
bfd/archive.c | 2 +-
bfd/ecoff.c | 16 ++++----
bfd/version.h | 2 +-
gdb/ChangeLog | 37 +++++++++++++++++++
gdb/NEWS | 8 ++++
gdb/breakpoint.c | 58 +++++++++++++++++++------------
gdb/dwarf2read.c | 5 +--
gdb/eval.c | 30 +++++++++++-----
gdb/symfile.c | 6 +--
gdb/testsuite/ChangeLog | 29 +++++++++++++++
gdb/testsuite/gdb.base/charset-malloc.c | 35 ++++++++++++++++++
gdb/testsuite/gdb.base/charset.c | 6 ++--
gdb/testsuite/gdb.base/charset.exp | 11 +-----
gdb/testsuite/gdb.base/printcmds.c | 6 +++
gdb/testsuite/gdb.base/printcmds.exp | 6 +++
gdb/testsuite/gdb.base/solib-nodir.exp | 54 ++++++++++++++++++++++++++++
gdb/testsuite/gdb.cp/fpointer.cc | 40 +++++++++++++++++++++
gdb/testsuite/gdb.cp/fpointer.exp | 40 +++++++++++++++++++++
gdb/testsuite/lib/gdb.exp | 5 +++
gdb/version.in | 2 +-
libiberty/ChangeLog | 4 ++
libiberty/make-temp-file.c | 7 +++-
24 files changed, 365 insertions(+), 65 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/charset-malloc.c
create mode 100644 gdb/testsuite/gdb.base/solib-nodir.exp
create mode 100644 gdb/testsuite/gdb.cp/fpointer.cc
create mode 100644 gdb/testsuite/gdb.cp/fpointer.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index aa36284..cdbf3a0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,20 @@
+2010-07-23 Alan Modra <amodra@gmail.com>
+
+ * archive.c (_bfd_archive_bsd44_construct_extended_name_table):
+ Correct format specifier.
+
+2010-07-22 Alan Modra <amodra@gmail.com>
+
+ * ecoff.c: Don't include aout/ranlib.h.
+ (_bfd_ecoff_slurp_armap): Use correct struct for ardata->symdefs.
+ (_bfd_ecoff_write_armap): Output ar_date and ar_size using
+ _bfd_ar_spacepad.
+
+2010-07-22 Alan Modra <amodra@gmail.com>
+
+ * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
+ relocs.
+
2010-07-20 Alan Modra <amodra@gmail.com>
* elf.c (assign_file_positions_for_load_sections): Check that
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index c3366b6..c632722 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -629,7 +629,9 @@ NAME (aout, some_aout_object_p) (bfd *abfd,
if (execp->a_entry != 0
|| (execp->a_entry >= obj_textsec (abfd)->vma
&& execp->a_entry < (obj_textsec (abfd)->vma
- + obj_textsec (abfd)->size)))
+ + obj_textsec (abfd)->size)
+ && execp->a_trsize == 0
+ && execp->a_drsize == 0))
abfd->flags |= EXEC_P;
#ifdef STAT_FOR_EXEC
else
diff --git a/bfd/archive.c b/bfd/archive.c
index fbe555b..1b3f692 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -1649,7 +1649,7 @@ _bfd_archive_bsd44_construct_extended_name_table (bfd *abfd,
len = (len + 3) & ~3;
arch_eltdata (current)->extra_size = len;
- _bfd_ar_spacepad (hdr->ar_name, maxname, "#1/%u", len);
+ _bfd_ar_spacepad (hdr->ar_name, maxname, "#1/%lu", len);
}
}
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index ecfc34e..af9d7d6 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -27,7 +27,6 @@
#include "bfdlink.h"
#include "libbfd.h"
#include "aout/ar.h"
-#include "aout/ranlib.h"
#include "aout/stab_gnu.h"
/* FIXME: We need the definitions of N_SET[ADTB], but aout64.h defines
@@ -2855,7 +2854,7 @@ _bfd_ecoff_slurp_armap (bfd *abfd)
struct artdata *ardata;
unsigned int count;
char *raw_ptr;
- struct symdef *symdef_ptr;
+ carsym *symdef_ptr;
char *stringbase;
bfd_size_type amt;
@@ -2975,12 +2974,12 @@ _bfd_ecoff_slurp_armap (bfd *abfd)
++ardata->symdef_count;
amt = ardata->symdef_count;
- amt *= sizeof (struct symdef);
- symdef_ptr = (struct symdef *) bfd_alloc (abfd, amt);
+ amt *= sizeof (carsym);
+ symdef_ptr = (carsym *) bfd_alloc (abfd, amt);
if (!symdef_ptr)
return FALSE;
- ardata->symdefs = (carsym *) symdef_ptr;
+ ardata->symdefs = symdef_ptr;
raw_ptr = raw_armap + 4;
for (i = 0; i < count; i++, raw_ptr += 8)
@@ -2991,7 +2990,7 @@ _bfd_ecoff_slurp_armap (bfd *abfd)
if (file_offset == 0)
continue;
name_offset = H_GET_32 (abfd, raw_ptr);
- symdef_ptr->s.name = stringbase + name_offset;
+ symdef_ptr->name = stringbase + name_offset;
symdef_ptr->file_offset = file_offset;
++symdef_ptr;
}
@@ -3063,7 +3062,8 @@ _bfd_ecoff_write_armap (bfd *abfd,
linker just checks the archive name; the GNU linker may check the
date. */
stat (abfd->filename, &statbuf);
- sprintf (hdr.ar_date, "%ld", (long) (statbuf.st_mtime + 60));
+ _bfd_ar_spacepad (hdr.ar_date, sizeof (hdr.ar_date), "%ld",
+ (long) (statbuf.st_mtime + 60));
/* The DECstation uses zeroes for the uid, gid and mode of the
armap. */
@@ -3074,7 +3074,7 @@ _bfd_ecoff_write_armap (bfd *abfd,
hdr.ar_mode[1] = '4';
hdr.ar_mode[2] = '4';
- sprintf (hdr.ar_size, "%-10d", (int) mapsize);
+ _bfd_ar_spacepad (hdr.ar_size, sizeof (hdr.ar_size), "%-10ld", mapsize);
hdr.ar_fmag[0] = '`';
hdr.ar_fmag[1] = '\012';
diff --git a/bfd/version.h b/bfd/version.h
index 56f599f..4560f53 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100720
+#define BFD_VERSION_DATE 20100722
#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 042d5f5..861f5b8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,40 @@
+2010-07-22 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (create_debug_types_hash_table): Set objfile on
+ type signature's per-CU data.
+
+2010-07-22 Pedro Alves <pedro@codesourcery.com>
+
+ * NEWS: Mention target reported shared libraries support by
+ default.
+
+2010-07-21 Pedro Alves <pedro@codesourcery.com>
+
+ PR symtab/11827
+
+ Revert:
+ 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
+ * dwarf2read.c (process_die): Also allow DW_TAG_const_type
+ and DW_TAG_volatile_type.
+ (new_symbol): Likewise.
+
+2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
+ function symbols before overload resolution.
+
+2010-07-21 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (bptype_string): New, abstracted out from
+ print_one_breakpoint_location.
+ (print_one_breakpoint_location): Adjust.
+ (breakpoint_1): Adjust the type column width dynamically.
+
+2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symfile.c (find_separate_debug_file_by_debuglink): Remove
+ a gdb_assert call, new comment.
+
2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* linux-nat.c (linux_handle_extended_wait): Handle case when
diff --git a/gdb/NEWS b/gdb/NEWS
index ea3b6b0..47f1c13 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -5,6 +5,14 @@
*** Changes in GDB 7.2
+* Shared library support for remote targets by default
+
+ When GDB is configured for a generic, non-OS specific target, like
+ for example, --target=arm-eabi or one of the many *-*-elf targets,
+ GDB now queries remote stubs for loaded shared libraries using the
+ `qXfer:libraries:read' packet. Previously, shared library support
+ was always disabled for such configurations.
+
* C++ Improvements:
** Argument Dependent Lookup (ADL)
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index a9be450..b53b515 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -4433,16 +4433,9 @@ static void print_breakpoint_location (struct breakpoint *b,
do_cleanups (old_chain);
}
-/* Print B to gdb_stdout. */
-static void
-print_one_breakpoint_location (struct breakpoint *b,
- struct bp_location *loc,
- int loc_number,
- struct bp_location **last_loc,
- int print_address_bits,
- int allflag)
+static const char *
+bptype_string (enum bptype type)
{
- struct command_line *l;
struct ep_type_description
{
enum bptype type;
@@ -4476,7 +4469,27 @@ print_one_breakpoint_location (struct breakpoint *b,
{bp_static_tracepoint, "static tracepoint"},
{bp_jit_event, "jit events"},
};
-
+
+ if (((int) type >= (sizeof (bptypes) / sizeof (bptypes[0])))
+ || ((int) type != bptypes[(int) type].type))
+ internal_error (__FILE__, __LINE__,
+ _("bptypes table does not describe type #%d."),
+ (int) type);
+
+ return bptypes[(int) type].description;
+}
+
+/* Print B to gdb_stdout. */
+
+static void
+print_one_breakpoint_location (struct breakpoint *b,
+ struct bp_location *loc,
+ int loc_number,
+ struct bp_location **last_loc,
+ int print_address_bits,
+ int allflag)
+{
+ struct command_line *l;
static char bpenables[] = "nynny";
char wrap_indent[80];
struct ui_stream *stb = ui_out_stream_new (uiout);
@@ -4521,15 +4534,8 @@ print_one_breakpoint_location (struct breakpoint *b,
annotate_field (1);
if (part_of_multiple)
ui_out_field_skip (uiout, "type");
- else
- {
- if (((int) b->type >= (sizeof (bptypes) / sizeof (bptypes[0])))
- || ((int) b->type != bptypes[(int) b->type].type))
- internal_error (__FILE__, __LINE__,
- _("bptypes table does not describe type #%d."),
- (int) b->type);
- ui_out_field_string (uiout, "type", bptypes[(int) b->type].description);
- }
+ else
+ ui_out_field_string (uiout, "type", bptype_string (b->type));
/* 3 */
annotate_field (2);
@@ -4907,7 +4913,8 @@ breakpoint_1 (int bnum, int allflag, int (*filter) (const struct breakpoint *))
struct cleanup *bkpttbl_chain;
struct value_print_options opts;
int print_address_bits = 0;
-
+ int print_type_col_width = 14;
+
get_user_print_options (&opts);
/* Compute the number of rows in the table, as well as the
@@ -4923,10 +4930,16 @@ breakpoint_1 (int bnum, int allflag, int (*filter) (const struct breakpoint *))
if (allflag || user_settable_breakpoint (b))
{
- int addr_bit = breakpoint_address_bits (b);
+ int addr_bit, type_len;
+
+ addr_bit = breakpoint_address_bits (b);
if (addr_bit > print_address_bits)
print_address_bits = addr_bit;
+ type_len = strlen (bptype_string (b->type));
+ if (type_len > print_type_col_width)
+ print_type_col_width = type_len;
+
nr_printable_breakpoints++;
}
}
@@ -4947,7 +4960,8 @@ breakpoint_1 (int bnum, int allflag, int (*filter) (const struct breakpoint *))
ui_out_table_header (uiout, 7, ui_left, "number", "Num"); /* 1 */
if (nr_printable_breakpoints > 0)
annotate_field (1);
- ui_out_table_header (uiout, 14, ui_left, "type", "Type"); /* 2 */
+ ui_out_table_header (uiout, print_type_col_width, ui_left,
+ "type", "Type"); /* 2 */
if (nr_printable_breakpoints > 0)
annotate_field (2);
ui_out_table_header (uiout, 4, ui_left, "disp", "Disp"); /* 3 */
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 288d777..3a24e9f 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2678,6 +2678,7 @@ create_debug_types_hash_table (struct objfile *objfile)
type_sig->signature = signature;
type_sig->offset = offset;
type_sig->type_offset = type_offset;
+ type_sig->per_cu.objfile = objfile;
slot = htab_find_slot (types_htab, type_sig, INSERT);
gdb_assert (slot != NULL);
@@ -4192,8 +4193,6 @@ process_die (struct die_info *die, struct dwarf2_cu *cu)
case DW_TAG_base_type:
case DW_TAG_subrange_type:
case DW_TAG_typedef:
- case DW_TAG_const_type:
- case DW_TAG_volatile_type:
/* Add a typedef symbol for the type definition, if it has a
DW_AT_name. */
new_symbol (die, read_type_die (die, cu), cu);
@@ -10001,8 +10000,6 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
break;
case DW_TAG_base_type:
case DW_TAG_subrange_type:
- case DW_TAG_const_type:
- case DW_TAG_volatile_type:
SYMBOL_CLASS (sym) = LOC_TYPEDEF;
SYMBOL_DOMAIN (sym) = VAR_DOMAIN;
add_symbol_to_list (sym, cu->list_in_scope);
diff --git a/gdb/eval.c b/gdb/eval.c
index ff17c34..2694781 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -1570,19 +1570,29 @@ evaluate_subexp_standard (struct type *expect_type,
{
/* Non-method function call */
save_pos1 = *pos;
- argvec[0] = evaluate_subexp_with_coercion (exp, pos, noside);
tem = 1;
- type = value_type (argvec[0]);
- if (type && TYPE_CODE (type) == TYPE_CODE_PTR)
- type = TYPE_TARGET_TYPE (type);
- if (type && TYPE_CODE (type) == TYPE_CODE_FUNC)
+
+ /* If this is a C++ function wait until overload resolution. */
+ if (op == OP_VAR_VALUE
+ && overload_resolution
+ && (exp->language_defn->la_language == language_cplus))
{
- for (; tem <= nargs && tem <= TYPE_NFIELDS (type); tem++)
+ (*pos) += 4; /* Skip the evaluation of the symbol. */
+ argvec[0] = NULL;
+ }
+ else
+ {
+ argvec[0] = evaluate_subexp_with_coercion (exp, pos, noside);
+ type = value_type (argvec[0]);
+ if (type && TYPE_CODE (type) == TYPE_CODE_PTR)
+ type = TYPE_TARGET_TYPE (type);
+ if (type && TYPE_CODE (type) == TYPE_CODE_FUNC)
{
- /* pai: FIXME This seems to be coercing arguments before
- * overload resolution has been done! */
- argvec[tem] = evaluate_subexp (TYPE_FIELD_TYPE (type, tem - 1),
- exp, pos, noside);
+ for (; tem <= nargs && tem <= TYPE_NFIELDS (type); tem++)
+ {
+ argvec[tem] = evaluate_subexp (TYPE_FIELD_TYPE (type, tem - 1),
+ exp, pos, noside);
+ }
}
}
}
diff --git a/gdb/symfile.c b/gdb/symfile.c
index babe9cf..371db0d 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1374,15 +1374,13 @@ find_separate_debug_file_by_debuglink (struct objfile *objfile)
dir = xstrdup (objfile->name);
/* Strip off the final filename part, leaving the directory name,
- followed by a slash. Objfile names should always be absolute and
- tilde-expanded, so there should always be a slash in there
- somewhere. */
+ followed by a slash. The directory can be relative or absolute. */
for (i = strlen(dir) - 1; i >= 0; i--)
{
if (IS_DIR_SEPARATOR (dir[i]))
break;
}
- gdb_assert (i >= 0 && IS_DIR_SEPARATOR (dir[i]));
+ /* If I is -1 then no directory is present there and DIR will be "". */
dir[i+1] = '\0';
/* Set I to max (strlen (canon_name), strlen (dir)). */
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e821f0e..0543f80 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,32 @@
+2010-07-21 Pedro Alves <pedro@codesourcery.com>
+
+ PR symtab/11827
+
+ * gdb.base/printcmds.c (enum some_volatile_enum): New enum.
+ (some_volatile_enum): New variable.
+ * gdb.base/printcmds.exp (test_print_enums): New.
+ <top level>: Call it.
+
+2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * gdb.cp/fpointer.cc: New test.
+ * gdb.cp/fpointer.exp: New test.
+
+2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.base/solib-nodir.exp: New file.
+ * lib/gdb.exp (runto): New case for a GDB internal error.
+
+2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Ulrich Weigand <uweigand@de.ibm.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * gdb.base/charset-malloc.c: New file.
+ * gdb.base/charset.c (malloc_stub): New prototype.
+ (main): Call it instead of malloc itself.
+ * gdb.base/charset.exp: Use only prepare_for_testing.
+ (binfile): Remove the variable.
+
2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
Make core files the process_stratum.
diff --git a/gdb/testsuite/gdb.base/charset-malloc.c b/gdb/testsuite/gdb.base/charset-malloc.c
new file mode 100644
index 0000000..450b7c8
--- /dev/null
+++ b/gdb/testsuite/gdb.base/charset-malloc.c
@@ -0,0 +1,35 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2010 Free Software Foundation, Inc.
+
+ Contributed by Red Hat, originally written by Jim Blandy.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ Please email any bugs, comments, and/or additions to this file to:
+ bug-gdb@gnu.org */
+
+/* charset.c file cannot use a system include file as it has its own wchar_t
+ definition which would be in a conflict. Use this separate compilation
+ unit. */
+
+#include <stdlib.h>
+
+void
+malloc_stub (void)
+{
+ /* charset.exp wants to allocate memory for constants. So make sure malloc
+ gets linked into the program. */
+ malloc (1);
+}
diff --git a/gdb/testsuite/gdb.base/charset.c b/gdb/testsuite/gdb.base/charset.c
index a7d64f2..5dafc90 100644
--- a/gdb/testsuite/gdb.base/charset.c
+++ b/gdb/testsuite/gdb.base/charset.c
@@ -114,6 +114,8 @@ init_utf32 ()
utf_32_string[i] = iso_8859_1_string[i] & 0xff;
}
+extern void malloc_stub (void);
+
int main ()
{
#ifdef usestubs
@@ -121,9 +123,7 @@ int main ()
breakpoint();
#endif
- /* charset.exp wants to allocate memory for constants. So make sure malloc
- gets linked into the program. */
- malloc (1);
+ malloc_stub ();
/* Initialize ascii_string. */
init_string (ascii_string,
diff --git a/gdb/testsuite/gdb.base/charset.exp b/gdb/testsuite/gdb.base/charset.exp
index 58418be..0639117 100644
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-07-20 18:51 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-07-20 18:51 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 50871 bytes --]
The branch, master has been updated
via 6d89063b0f0516a9f0a2a37bc5993500657b3226 (commit)
via 94da686fad1206d5fd38fa21609d190674b3415b (commit)
via 9b6b99998323938ff118d9c404f3baffc796c23f (commit)
via e7640b907487435f9d7d5ef2f925599c2eea8fbc (commit)
via 37056fbfde6270be1a3bc595025547c40c77be5b (commit)
via a45341a136e969b2a4309d07452c33e7337ca8b5 (commit)
via 9f3553be74e02172922f1bfcefc542a8c1f7d7d9 (commit)
via eba100049746bf8c553c77affa3c8a8e21c54287 (commit)
via a370fc7627bc6adf2665b85de50ea05489ae60e0 (commit)
via a9c8179039fe508e0f5fc362b083155de2f41892 (commit)
via aa2614659d7863f1afe4da2251312f7da9236ea5 (commit)
via e7a84eb6873575517586ae3df2844a35c7d031fc (commit)
via 8435b254d22a62b1a4e537b18cec010cb0b8ade6 (commit)
via 213e093d3b0fbe8b52024ad28892cab2b39a0455 (commit)
via 4e6a437edec4ba7e7cacd842609d5e135a88c1a3 (commit)
via 160e19fb73b12a2443449e6877128f24d20734c5 (commit)
via 25f71650b47bf744dbc0db9d7172d480bab70ca5 (commit)
via 7ffaaf0b44f165c6cc6fbdeff174b00fd49e6dd7 (commit)
via ed24c49cb890e7772c48fb98d7133570375d9595 (commit)
via 7f31375a50e871439e50731d07318067fb691e20 (commit)
via 1abda060264bdc93ad5b045a87db30f4dbeb9100 (commit)
via 2cc889266c1508528db63c8097804641bf5729cc (commit)
via bbd627c4c83a4c171cb8d7f0e640651895c1a22a (commit)
via d93dfc0bbbaed6bc0d11bc8578cdfafdaee467a7 (commit)
via ab1b1b96208eb40d09840b98eaadfb542bb7229c (commit)
via 50fb8ed721c25968e8ff5c3aedb5ea15683b940c (commit)
via 70874fa323b9508eaf629ebed78989a759c14e6f (commit)
via 0c81b48fed900c9641baf75f10d01c8fe4bec32e (commit)
via ade92dfc7e035dd4d0d345b2e1682fa4ba56a3f6 (commit)
via 0364c11c42693466e2db937882fc156e38f78afc (commit)
via e8010a2e92a32324b09b11654fe2b2830477c523 (commit)
via cb652f647e478b00acb7782de5a4ec9cf360f669 (commit)
via 6abd2acc51e4dfd8699be098e92c9e5285e84ecf (commit)
via b696cfffd82b61393f14a642f2bff596b24ee37a (commit)
via c7e212eda75d70cfef8f54e2b4ca6470c2672db8 (commit)
via 0cee6aca2246d89f8fbfe7310366f3ddc3f72f5e (commit)
via 69f25a38c9151df559a0c326425788bc64f393dc (commit)
via 998a2ee4eec3583a8ef31675dec8fbd880e14f64 (commit)
via 3363422556d95de01c4a262489fec8d6b5506d01 (commit)
via 28cfc710ba3d9959cedd0f345bb212666cc6890f (commit)
via cf9fe5cf2be8b76820a05c966cdca6df5c2eee24 (commit)
via 3b7149376604e22488c7cd8fa1835500f14123cb (commit)
via a75176511797cf00c5d30d1ce4de460e3a7e93e7 (commit)
via 2f4ebefb529248bd4b9342deaf725ad3850e776f (commit)
via 07c0d258de6546976d81de85ff6b838631ef79d2 (commit)
via 5996813199e48b2a39e4ee233624cf0e92afb165 (commit)
via 2162fa558a006758db2f2b2cc4e863d5cfc37a70 (commit)
via 3f5f43e44adb3cc5fd3e262c9c053888379fc106 (commit)
via f4b94fa4c6f6db0fe0d9f6a39e8ac9061e1e6952 (commit)
via 205148e7c30b927881094a02483218c8bd8df64b (commit)
via 118b5358b53238935035a69fc53b1b58146a882e (commit)
via f30af08ff7ed71e4a098a3aa0168a08e8488f43d (commit)
via f714c2bce86c209089d11c14abcb5fc809dcfc79 (commit)
via 052d997d8e842324347d84f38e1beeeb72a18d2c (commit)
via 4a73d497fc452a2e851451967dab4ac546494837 (commit)
via 63fdd5f738504701b67d5ab3567e4f9b8834f6f2 (commit)
via 76dc1f75c17730fd15e7cfb04a566374878438b9 (commit)
via 66ea253c5a0da89a2acd5994521ce3ed5cbe3368 (commit)
from 698ebd33374890ea9f5396d54d25584beec7ce4c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6d89063b0f0516a9f0a2a37bc5993500657b3226
Merge: 698ebd33374890ea9f5396d54d25584beec7ce4c 94da686fad1206d5fd38fa21609d190674b3415b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 20 20:50:52 2010 +0200
Merge remote branch 'gdb/master'
commit 94da686fad1206d5fd38fa21609d190674b3415b
Author: sezero <sezero>
Date: Tue Jul 20 18:20:27 2010 +0000
* gdb/gdbserver/server.c (handle_query): strcpy() the returned string from
paddress() instead of sprintf().
commit 9b6b99998323938ff118d9c404f3baffc796c23f
Author: sezero <sezero>
Date: Tue Jul 20 18:10:52 2010 +0000
* gdb/gdbserver/utils.c (paddress): Return phex_nz().
commit e7640b907487435f9d7d5ef2f925599c2eea8fbc
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jul 20 14:08:30 2010 +0000
include/elf/
* internal.h (ELF_TBSS_SPECIAL): New macro, extracted from..
(ELF_SECTION_SIZE): ..here.
(ELF_SECTION_IN_SEGMENT_1): Add "strict" arg.
(ELF_SECTION_IN_SEGMENT_STRICT): New macro.
bfd/
* elf.c (assign_file_positions_for_load_sections): Check that
zero size sections are allocated in segments too.
(assign_file_positions_for_non_load_sections): Warn if zero
size alloc sections are found here.
(copy_elf_program_header): Don't drop zero size sections from
segment map.
(copy_private_bfd_data): Check for changes in zero size sections.
binutils/
* readelf.c (process_program_headers): Don't ignore all zero size
sections.
ld/testsuite/
* ld-powerpc/tlsexe.r: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlsso.r: Update.
* ld-powerpc/tlstocso.r: Update.
commit 37056fbfde6270be1a3bc595025547c40c77be5b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 20 12:54:57 2010 +0000
gdb/
* linux-nat.c (linux_handle_extended_wait): Handle case when
event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
commit a45341a136e969b2a4309d07452c33e7337ca8b5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 20 12:33:29 2010 +0000
gdb/
Code cleanup.
* linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
linux_nat_wait_1. Use always LP->STATUS afterwards.
commit 9f3553be74e02172922f1bfcefc542a8c1f7d7d9
Author: Hui Zhu <teawater@gmail.com>
Date: Tue Jul 20 05:58:52 2010 +0000
2010-07-20 Hui Zhu <teawater@gmail.com>
* inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
(inf_ptrace_attach): Ditto.
commit eba100049746bf8c553c77affa3c8a8e21c54287
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jul 20 00:00:33 2010 +0000
*** empty log message ***
commit a370fc7627bc6adf2665b85de50ea05489ae60e0
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jul 20 00:00:05 2010 +0000
daily update
commit a9c8179039fe508e0f5fc362b083155de2f41892
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jul 19 18:11:31 2010 +0000
gdb/doc/
* gdb.texinfo (Active Targets): Fix wrong comma placement.
commit aa2614659d7863f1afe4da2251312f7da9236ea5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jul 19 17:51:22 2010 +0000
gdb/
Make core files the process_stratum.
* corefile.c (core_target): New variable.
(core_file_command): Remove variable t, use core_target.
* corelow.c (core_ops): Make it static.
(init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
* defs.h (make_cleanup_unpush_target): New prototype.
* gdbarch.h: Regenerate.
* gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
* gdbcore.h (core_target): New declaration.
* inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
variables ops_already_pushed and back_to. Use push_target,
make_cleanup_unpush_target and discard_cleanups calls.
* record.c (record_open): Replace core_stratum by a core_bfd check.
* target.c (target_is_pushed): New function.
(find_core_target): Remove.
* target.h (enum strata) <core_stratum>: Remove.
(target_is_pushed): New declaration.
(find_core_target): Remove declaration.
* tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
* utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
gdb/doc/
Make core files the process_stratum.
* gdb.texinfo (Active Targets): Remove core_stratum. Include
record_stratum example.
gdb/testsuite/
Make core files the process_stratum.
* gdb.base/corefile.exp (run: load core again)
(run: sanity check we see the core file, run: with core)
(run: core file is cleared, attach: load core again)
(attach: sanity check we see the core file, attach: with core)
(attach: core file is cleared): New tests.
* gdb.base/coremaker.c (main): New parameters. Implement "sleep" argv.
commit e7a84eb6873575517586ae3df2844a35c7d031fc
Author: Hui Zhu <teawater@gmail.com>
Date: Mon Jul 19 07:55:41 2010 +0000
2010-07-19 Hui Zhu <teawater@gmail.com>
* breakpoint.c (single_step_breakpoints_inserted): New
function.
* breakpoint.h (single_step_breakpoints_inserted): Extern.
* infrun.c (maybe_software_singlestep): Add check code.
* record.c (record_resume): Add code for software single step.
(record_wait): Ditto.
commit 8435b254d22a62b1a4e537b18cec010cb0b8ade6
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jul 19 00:00:05 2010 +0000
daily update
commit 213e093d3b0fbe8b52024ad28892cab2b39a0455
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jul 19 00:00:04 2010 +0000
*** empty log message ***
commit 4e6a437edec4ba7e7cacd842609d5e135a88c1a3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Jul 18 21:21:52 2010 +0000
gdb/
* linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
a more inner block. Remove its unused declaration initializer.
commit 160e19fb73b12a2443449e6877128f24d20734c5
Author: Paolo Bonzini <bonzini@gnu.org>
Date: Sun Jul 18 08:12:39 2010 +0000
2010-07-17 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/44862
* Makefile.tpl (POSTSTAGE1_CXX_EXPORT):
Provide -B option to allow for link spec %s substitutions for
libstdc++.a on darwin.
* Makefile.in: Regenerate.
commit 25f71650b47bf744dbc0db9d7172d480bab70ca5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jul 18 00:00:33 2010 +0000
*** empty log message ***
commit 7ffaaf0b44f165c6cc6fbdeff174b00fd49e6dd7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jul 18 00:00:05 2010 +0000
daily update
commit ed24c49cb890e7772c48fb98d7133570375d9595
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jul 17 03:10:49 2010 +0000
* elf.c (_bfd_elf_map_sections_to_segments): Force new segment
for sections with overlapping LMAs.
(assign_file_positions_for_load_sections): Catch overlap for
sections that wrap around the address space. Replace a
warning that duplicates ld's --check-sections error with a
warning that lma has been adjusted for overlapping sections.
commit 7f31375a50e871439e50731d07318067fb691e20
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jul 17 00:00:05 2010 +0000
daily update
commit 1abda060264bdc93ad5b045a87db30f4dbeb9100
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jul 17 00:00:03 2010 +0000
*** empty log message ***
commit 2cc889266c1508528db63c8097804641bf5729cc
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Fri Jul 16 23:19:37 2010 +0000
* NEWS: Mention support for the new ptrace interface and hardware
accelerated watchpoint conditions on powerpc-linux.
commit bbd627c4c83a4c171cb8d7f0e640651895c1a22a
Author: sezero <sezero>
Date: Fri Jul 16 20:04:41 2010 +0000
* target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
and host_address_to_string() and %s for pointers.
(debug_to_remove_breakpoint): Likewise.
(debug_to_region_ok_for_hw_watchpoint): Likewise.
(debug_to_can_accel_watchpoint_condition): Likewise.
(debug_to_stopped_data_address): Likewise.
(debug_to_watchpoint_addr_within_range): Likewise.
(debug_to_insert_hw_breakpoint): Likewise.
(debug_to_remove_hw_breakpoint): Likewise.
(debug_to_insert_watchpoint): Likewise.
(debug_to_remove_watchpoint): Likewise.
commit d93dfc0bbbaed6bc0d11bc8578cdfafdaee467a7
Author: swagiaal <swagiaal>
Date: Fri Jul 16 19:23:56 2010 +0000
Use allocated cplus_specific for cplus symbols.
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
* symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
argument.
(cplus_specific): New struct.
* symtab.c (symbol_set_demangled_name): Updated.
Use cplus_specific for cplus symbols.
(symbol_get_demangled_name): Retrive the name from the cplus_specific
struct for cplus symbols.
(symbol_init_language_specific): Set cplus_specific for cplus symbols.
(symbol_set_names): Pass objfile to symbol_set_demangled_name.
* symtab.c (symbol_init_cplus_specific): New function.
commit ab1b1b96208eb40d09840b98eaadfb542bb7229c
Author: swagiaal <swagiaal>
Date: Fri Jul 16 19:00:55 2010 +0000
Use setter and getter for demangled_name.
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
* symtab.h (symbol_set_demangled_name): New function.
(symbol_get_demangled_name): New function.
* symtab.c (symbol_set_demangled_name): New function.
(symbol_get_demangled_name): New function.
(symbol_init_language_specific): Use demangled_name setter and getter.
(symbol_set_names): Ditto.
(symbol_natural_name): Ditto.
(symbol_demangled_name): Ditto.
* dwarf2read.c (new_symbol): Ditto.
commit 50fb8ed721c25968e8ff5c3aedb5ea15683b940c
Author: swagiaal <swagiaal>
Date: Fri Jul 16 18:39:09 2010 +0000
Rename cplus_specific mangled_lang.
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
* symtab.h: Renamed cplus_specific to mangled_lang.
* symtab.c (symbol_init_language_specific): Updated.
(symbol_set_names): Updated.
(symbol_natural_name): Updated.
(symbol_demangled_name): Updated.
* ada-lang.c (ada_decode_symbol): Updated.
* dwarf2read.c (new_symbol): Updated.
commit 70874fa323b9508eaf629ebed78989a759c14e6f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jul 16 00:00:33 2010 +0000
*** empty log message ***
commit 0c81b48fed900c9641baf75f10d01c8fe4bec32e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jul 16 00:00:05 2010 +0000
daily update
commit ade92dfc7e035dd4d0d345b2e1682fa4ba56a3f6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jul 15 00:00:33 2010 +0000
*** empty log message ***
commit 0364c11c42693466e2db937882fc156e38f78afc
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jul 15 00:00:05 2010 +0000
daily update
commit e8010a2e92a32324b09b11654fe2b2830477c523
Author: Cary Coutant <ccoutant@google.com>
Date: Wed Jul 14 22:18:06 2010 +0000
PR ld/11817
* dwarf2.c (read_section): Revert patch for compressed debug sections.
(find_line): Likewise.
(read_and_uncompress_section): Remove.
commit cb652f647e478b00acb7782de5a4ec9cf360f669
Author: kwerner <kwerner>
Date: Wed Jul 14 14:54:57 2010 +0000
gdb/ChangeLog:* valops.c (value_assign): Do not call to value_coerce_to_target.(value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.gdb/testsuite/ChangeLog:* gdb.arch/altivec-abi.exp: New tests.
commit 6abd2acc51e4dfd8699be098e92c9e5285e84ecf
Author: kwerner <kwerner>
Date: Wed Jul 14 14:30:35 2010 +0000
* MAINTAINERS: Add myself for write after approval privileges.
commit b696cfffd82b61393f14a642f2bff596b24ee37a
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 14 14:13:53 2010 +0000
2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
* c-valprint.c (c_val_print): Add embedded_offset to address in
call to val_print_array_elements.
2010-07-13 Tom Tromey <tromey@redhat.com>
* gdb.python/py-prettyprint.c (struct arraystruct): New struct.
(main): Use it.
* gdb.python/py-prettyprint.exp (run_lang_tests): Add test.
commit c7e212eda75d70cfef8f54e2b4ca6470c2672db8
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Jul 14 00:30:55 2010 +0000
Don't allocate .got.plt section if there are no GOT nor PLT entries.
bfd/
2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11812
* elf32-i386.c (elf_i386_size_dynamic_sections): Don't
allocate .got.plt section if there are no GOT nor PLT
entries.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
ld/testsuite/
2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11812
* ld-elf/exclude3b.d: Don't run on ia64-*-*. Replace .got with
.dynamic.
* ld-elf/exclude3d.d: New.
* ld-i386/nogot1.d: Likewise.
* ld-i386/nogot1.s: Likewise.
* ld-x86-64/nogot1.d: Likewise.
* ld-x86-64/nogot1.s: Likewise.
* ld-i386/i386.exp: Run nogot1.
* ld-x86-64/x86-64.exp: Likewise.
commit 0cee6aca2246d89f8fbfe7310366f3ddc3f72f5e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jul 14 00:00:05 2010 +0000
daily update
commit 69f25a38c9151df559a0c326425788bc64f393dc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jul 14 00:00:03 2010 +0000
*** empty log message ***
commit 998a2ee4eec3583a8ef31675dec8fbd880e14f64
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 22:02:03 2010 +0000
* dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
commit 3363422556d95de01c4a262489fec8d6b5506d01
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 21:06:48 2010 +0000
* dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
objfile.
commit 28cfc710ba3d9959cedd0f345bb212666cc6890f
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 20:52:52 2010 +0000
* symfile.c (set_initial_language): Update.
(deduce_language_from_filename): Argument type now const.
* symtab.h (find_main_filename): Update.
(deduce_language_from_filename): Update.
* symtab.c (find_main_filename): Make result const.
* dwarf2read.c (dw2_find_symbol_file): Change return type.
* psymtab.c (find_symbol_file_from_partial): Change return type.
* symfile.h (struct quick_symbol_functions) <find_symbol_file>:
Make result const.
commit cf9fe5cf2be8b76820a05c966cdca6df5c2eee24
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 20:51:33 2010 +0000
gdb
* breakpoint.c (save_cmdlist): No longer static.
* gdbcmd.h (save_cmdlist): Declare.
* symfile.c (symbol_file_add_with_addrs_or_offsets): Set
OBJF_READNOW on objfile if readnow_symbol_files.
* elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
(elf_sym_fns_gdb_index): New global.
* dwarf2read.c: Include exceptions.h.
(offset_type): New.
(struct mapped_index): New.
(dwarf2_per_cu_data_ptr): New typedef.
(struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
New fields.
(GDB_INDEX_SECTION): New define.
(struct dwarf2_per_cu_quick_data): New.
(struct dwarf2_per_cu_data) <objfile>: New field.
<psymtab>: Removed.
<v>: New field.
(byte_swap): New function.
(MAYBE_SWAP): New macro.
(INDEX_SUFFIX): New macro.
(dw2_do_instantiate_symtab): New function.
(dw2_instantiate_symtab): Likewise.
(create_cus_from_index): Likewise.
(create_addrmap_from_index): Likewise.
(mapped_index_string_hash): Likewise.
(find_slot_in_mapped_hash): Likewise.
(dwarf2_read_index): Likewise.
(dw2_setup): Likewise.
(dw2_require_line_header): Likewise.
(dw2_require_full_path): Likewise.
(dw2_find_last_source_symtab): Likewise.
(dw2_forget_cached_source_info): Likewise.
(dw2_lookup_symtab): Likewise.
(dw2_lookup_symbol): Likewise.
(dw2_do_expand_symtabs_matching): Likewise.
(dw2_pre_expand_symtabs_matching): Likewise.
(dw2_print_stats): Likewise.
(dw2_dump): Likewise.
(dw2_relocate): Likewise.
(dw2_expand_symtabs_for_function): Likewise.
(dw2_expand_all_symtabs): Likewise.
(dw2_expand_symtabs_with_filename): Likewise.
(dw2_find_symbol_file): Likewise.
(dw2_map_ada_symtabs): Likewise.
(dw2_expand_symtabs_matching): Likewise.
(dw2_find_pc_sect_symtab): Likewise.
(dw2_map_symbol_names): Likewise.
(dw2_map_symbol_filenames): Likewise.
(dw2_has_symbols): Likewise.
(dwarf2_gdb_index_functions): New global.
(dwarf2_initialize_objfile): New function.
(process_psymtab_comp_unit): Update.
(add_partial_subprogram): Likewise.
(dwarf2_psymtab_to_symtab): Likewise.
(psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
(process_full_comp_unit): Update.
(find_file_and_directory): New function.
(read_file_scope): Use find_file_and_directory.
(dwarf2_per_cu_objfile): Update.
(dwarf2_per_cu_addr_size): Update.
(dwarf2_per_cu_offset_size): Update.
(dwarf2_free_objfile): Free the index, if needed.
(dwarf2_per_objfile_free): Unmap the index, if needed.
(struct strtab_entry): New.
(hash_strtab_entry): New function.
(eq_strtab_entry): Likewise.
(create_strtab): Likewise.
(add_string): Likewise.
(struct symtab_index_entry): New.
(struct mapped_symtab): New.
(hash_symtab_entry): New function.
(eq_symtab_entry): Likewise.
(delete_symtab_entry): Likewise.
(create_index_table): Likewise.
(create_mapped_symtab): Likewise.
(cleanup_mapped_symtab): Likewise.
(find_slot): Likewise.
(hash_expand): Likewise.
(add_index_entry): Likewise.
(add_indices_to_cpool): Likewise.
(write_hash_table): Likewise.
(add_address_entry): Likewise.
(write_psymbols): Likewise.
(write_obstack): Likewise.
(unlink_if_set): Likewise.
(write_psymtabs_to_index): Likewise.
(save_gdb_index_command): Likewise.
(_initialize_dwarf2_read): Install "save gdb-index"
command.
(create_all_comp_units): Initialize 'objfile' field of CU.
(dwarf2_locate_sections): Check for .gdb_index.
* psymtab.h (dwarf2_gdb_index_functions): Declare.
* symfile.h (dwarf2_initialize_objfile): Declare.
gdb/doc
* gdb.texinfo (Index Files): New node.
commit 3b7149376604e22488c7cd8fa1835500f14123cb
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 20:49:25 2010 +0000
* symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
(basic_lookup_transparent_type): Likewise.
* symfile.h (struct quick_symbol_functions)
<pre_expand_symtabs_matching>: New field.
* psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
(psym_functions): Update.
commit a75176511797cf00c5d30d1ce4de460e3a7e93e7
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 20:32:43 2010 +0000
* gdb.texinfo (GDB/MI Variable Objects): Remove extra 'for'.
commit 2f4ebefb529248bd4b9342deaf725ad3850e776f
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 20:07:40 2010 +0000
gdb
PR breakpoints/8357:
* symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
* linespec.c (decode_line_1): Update comment. Call decode_label.
(decode_label): New function.
(symbol_found): Handle LOC_LABEL.
* dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
domain. Call add_symbol_to_list.
gdb/doc
* gdb.texinfo (Specify Location): Document labels.
gdb/testsuite
* gdb.base/label.exp: New file.
* gdb.base/label.c: New file.
commit 07c0d258de6546976d81de85ff6b838631ef79d2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jul 13 16:59:09 2010 +0000
Support garbage collection against STT_GNU_IFUNC symbols.
bfd/
2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11791
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support
garbage collection against STT_GNU_IFUNC symbols.
* elf32-i386.c (elf_i386_get_local_sym_hash): Don't set
elf.plt.offset/elf.got.offset to -1.
(elf_i386_tls_transition): Skip TLS transition for functions.
(elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
* elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set
elf.plt.offset/elf.got.offset to -1.
(elf64_x86_64_tls_transition): Skip TLS transition for functions.
(elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
ld/testsuite/
2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11791
* ld-ifunc/ifunc-10-i386.d: New.
* ld-ifunc/ifunc-10-i386.s: Likewise.
* ld-ifunc/ifunc-10-x86-64.d: Likewise.
* ld-ifunc/ifunc-10-x86-64.s: Likewise.
* ld-ifunc/ifunc-11-i386.d: Likewise.
* ld-ifunc/ifunc-11-i386.s: Likewise.
* ld-ifunc/ifunc-11-x86-64.d: Likewise.
* ld-ifunc/ifunc-11-x86-64.s: Likewise.
commit 5996813199e48b2a39e4ee233624cf0e92afb165
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 15:09:03 2010 +0000
* dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
* dwarf2loc.c (find_location_expression): Use
dwarf2_per_cu_text_offset.
(dwarf2_evaluate_loc_desc): Likewise.
(dwarf2_loc_desc_needs_frame): Likewise.
(compile_dwarf_to_ax): Likewise.
(loclist_describe_location): Likewise.
* dwarf2read.c (dwarf2_per_cu_text_offset): New function.
(dwarf2_per_cu_objfile): Update comment.
commit 2162fa558a006758db2f2b2cc4e863d5cfc37a70
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jul 13 00:00:33 2010 +0000
*** empty log message ***
commit 3f5f43e44adb3cc5fd3e262c9c053888379fc106
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jul 13 00:00:05 2010 +0000
daily update
commit f4b94fa4c6f6db0fe0d9f6a39e8ac9061e1e6952
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jul 12 21:13:24 2010 +0000
Re-indent elf32-i386.c.
2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_check_relocs): Re-indent.
(elf_i386_relocate_section): Likewise.
commit 205148e7c30b927881094a02483218c8bd8df64b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jul 12 17:33:14 2010 +0000
Add is_ilp32_target/is_lp64_target.
2010-07-12 Ulrich Weigand <uweigand@de.ibm.com>
H.J. Lu <hongjiu.lu@intel.com>
* lib/gdb.exp (is_ilp32_target): New.
(is_lp64_target): Likewise.
* gdb.arch/amd64-byte.exp: Use is_lp64_target to check 64bit
target.
* gdb.arch/amd64-disp-step.exp: Likewise.
* gdb.arch/amd64-dword.exp: Likewise.
* gdb.arch/amd64-i386-address.exp: Likewise.
* gdb.arch/amd64-word.exp: Likewise.
* gdb.arch/i386-avx.exp: Use is_ilp32_target to check for 32bit
target.
* gdb.arch/i386-bp_permanent.exp: Likewise.
* gdb.arch/i386-byte.exp: Likewise.
* gdb.arch/i386-disp-step.exp: Likewise.
* gdb.arch/i386-gnu-cfi.exp: Likewise.
* gdb.arch/i386-prologue.exp: Likewise.
* gdb.arch/i386-size-overlap.exp: Likewise.
* gdb.arch/i386-size.exp: Likewise.
* gdb.arch/i386-sse.exp: Likewise.
* gdb.arch/i386-unwind.exp: Likewise.
* gdb.arch/i386-word.exp: Likewise.
* gdb.arch/ppc64-atomic-inst.exp: Use is_lp64_target to execute
test only when building 64-bit executables. Do not hard-code
-m64 option.
commit 118b5358b53238935035a69fc53b1b58146a882e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jul 12 17:07:10 2010 +0000
gdb/
* dwarf2read.c (read_subrange_type): Call read_subrange_type.
* p-lang.c (pascal_printstr): Likewise.
commit f30af08ff7ed71e4a098a3aa0168a08e8488f43d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jul 12 00:00:33 2010 +0000
*** empty log message ***
commit f714c2bce86c209089d11c14abcb5fc809dcfc79
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jul 12 00:00:06 2010 +0000
daily update
commit 052d997d8e842324347d84f38e1beeeb72a18d2c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jul 11 00:00:33 2010 +0000
*** empty log message ***
commit 4a73d497fc452a2e851451967dab4ac546494837
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jul 11 00:00:05 2010 +0000
daily update
commit 63fdd5f738504701b67d5ab3567e4f9b8834f6f2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jul 10 00:00:06 2010 +0000
daily update
commit 76dc1f75c17730fd15e7cfb04a566374878438b9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jul 10 00:00:03 2010 +0000
*** empty log message ***
commit 66ea253c5a0da89a2acd5994521ce3ed5cbe3368
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jul 9 20:29:56 2010 +0000
* python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
'hint' if it is NULL.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 +
Makefile.in | 1 +
Makefile.tpl | 1 +
bfd/ChangeLog | 55 +
bfd/dwarf2.c | 92 +-
bfd/elf-ifunc.c | 9 +
bfd/elf.c | 46 +-
bfd/elf32-i386.c | 64 +-
bfd/elf64-x86-64.c | 48 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 280 ++++
gdb/MAINTAINERS | 1 +
gdb/NEWS | 15 +
gdb/ada-lang.c | 2 +-
gdb/breakpoint.c | 12 +-
gdb/breakpoint.h | 1 +
gdb/c-valprint.c | 3 +-
gdb/corefile.c | 13 +-
gdb/corelow.c | 10 +-
gdb/defs.h | 3 +
gdb/doc/ChangeLog | 23 +
gdb/doc/gdb.texinfo | 91 +-
gdb/dwarf2loc.c | 17 +-
gdb/dwarf2loc.h | 10 +-
gdb/dwarf2read.c | 1720 ++++++++++++++++++++++++-
gdb/elfread.c | 29 +-
gdb/gdbarch.h | 3 +-
gdb/gdbarch.sh | 3 +-
gdb/gdbcmd.h | 4 +
gdb/gdbcore.h | 2 +
gdb/gdbserver/ChangeLog | 6 +
gdb/gdbserver/server.c | 4 +-
gdb/gdbserver/utils.c | 20 +-
gdb/inf-ptrace.c | 31 +-
gdb/infrun.c | 3 +-
gdb/linespec.c | 38 +-
gdb/linux-nat.c | 28 +-
gdb/p-lang.c | 6 +-
gdb/psymtab.c | 11 +-
gdb/psymtab.h | 4 +-
gdb/python/py-prettyprint.c | 8 +-
gdb/record.c | 66 +-
gdb/symfile.c | 9 +-
gdb/symfile.h | 12 +-
gdb/symtab.c | 135 ++-
gdb/symtab.h | 28 +-
gdb/target.c | 100 +-
gdb/target.h | 7 +-
gdb/testsuite/ChangeLog | 55 +
gdb/testsuite/gdb.arch/altivec-abi.exp | 10 +
gdb/testsuite/gdb.arch/amd64-byte.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-dword.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-i386-address.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-word.exp | 2 +-
gdb/testsuite/gdb.arch/i386-avx.exp | 2 +-
gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 2 +-
gdb/testsuite/gdb.arch/i386-byte.exp | 2 +-
gdb/testsuite/gdb.arch/i386-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/i386-gnu-cfi.exp | 2 +-
gdb/testsuite/gdb.arch/i386-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/i386-size-overlap.exp | 2 +-
gdb/testsuite/gdb.arch/i386-size.exp | 2 +-
gdb/testsuite/gdb.arch/i386-sse.exp | 2 +-
gdb/testsuite/gdb.arch/i386-unwind.exp | 2 +-
gdb/testsuite/gdb.arch/i386-word.exp | 2 +-
gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp | 6 +-
gdb/testsuite/gdb.base/corefile.exp | 59 +
gdb/testsuite/gdb.base/coremaker.c | 8 +-
gdb/testsuite/gdb.base/label.c | 21 +
gdb/testsuite/gdb.base/label.exp | 59 +
gdb/testsuite/gdb.python/py-prettyprint.c | 11 +
gdb/testsuite/gdb.python/py-prettyprint.exp | 2 +
gdb/testsuite/lib/gdb.exp | 77 ++
gdb/tracepoint.c | 2 -
gdb/utils.c | 18 +
gdb/valops.c | 6 +-
gdb/version.in | 2 +-
include/elf/ChangeLog | 7 +
include/elf/internal.h | 54 +-
80 files changed, 3127 insertions(+), 386 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/label.c
create mode 100644 gdb/testsuite/gdb.base/label.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 5759b30..2bfa992 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-07-17 Jack Howarth <howarth@bromo.med.uc.edu>
+
+ PR target/44862
+ * Makefile.tpl (POSTSTAGE1_CXX_EXPORT):
+ Provide -B option to allow for link spec %s substitutions for
+ libstdc++.a on darwin.
+ * Makefile.in: Regenerate.
+
2010-06-10 Alexandre Oliva <aoliva@redhat.com>
* Makefile.def (configure-gcc): Depend on all-libelf.
diff --git a/Makefile.in b/Makefile.in
index 22a77d2..3268a30 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -235,6 +235,7 @@ POSTSTAGE1_CXX_EXPORT = \
POSTSTAGE1_CXX_EXPORT = \
CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \
-B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
+ -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
-I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
-I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
-I$$s/libstdc++-v3/libsupc++ \
diff --git a/Makefile.tpl b/Makefile.tpl
index 98b526c..1f0419c 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -238,6 +238,7 @@ POSTSTAGE1_CXX_EXPORT = \
POSTSTAGE1_CXX_EXPORT = \
CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \
-B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
+ -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
-I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
-I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
-I$$s/libstdc++-v3/libsupc++ \
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ea86440..aa36284 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,58 @@
+2010-07-20 Alan Modra <amodra@gmail.com>
+
+ * elf.c (assign_file_positions_for_load_sections): Check that
+ zero size sections are allocated in segments too.
+ (assign_file_positions_for_non_load_sections): Warn if zero
+ size alloc sections are found here.
+ (copy_elf_program_header): Don't drop zero size sections from
+ segment map.
+ (copy_private_bfd_data): Check for changes in zero size sections.
+
+2010-07-17 Alan Modra <amodra@gmail.com>
+
+ * elf.c (_bfd_elf_map_sections_to_segments): Force new segment
+ for sections with overlapping LMAs.
+ (assign_file_positions_for_load_sections): Catch overlap for
+ sections that wrap around the address space. Replace a
+ warning that duplicates ld's --check-sections error with a
+ warning that lma has been adjusted for overlapping sections.
+
+2010-07-14 Cary Coutant <ccoutant@google.com>
+
+ PR ld/11817
+ * dwarf2.c (read_section): Revert patch for compressed debug sections.
+ (find_line): Likewise.
+ (read_and_uncompress_section): Remove.
+
+2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11812
+ * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
+ allocate .got.plt section if there are no GOT nor PLT
+ entries.
+ * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
+
+2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11791
+ * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support
+ garbage collection against STT_GNU_IFUNC symbols.
+
+ * elf32-i386.c (elf_i386_get_local_sym_hash): Don't set
+ elf.plt.offset/elf.got.offset to -1.
+ (elf_i386_tls_transition): Skip TLS transition for functions.
+ (elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
+
+ * elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set
+ elf.plt.offset/elf.got.offset to -1.
+ (elf64_x86_64_tls_transition): Skip TLS transition for functions.
+ (elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
+
+2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-i386.c (elf_i386_check_relocs): Re-indent.
+ (elf_i386_relocate_section): Likewise.
+
2010-07-06 H.J. Lu <hongjiu.lu@intel.com>
* dwarf2.c (add_line_info): Initialize prev_line.
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 6983a1c..1285833 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -405,54 +405,6 @@ lookup_info_hash_table (struct info_hash_table *hash_table, const char *key)
return entry ? entry->head : NULL;
}
-/* Read a section, uncompress it if necessary, and relocate it. */
-
-static bfd_boolean
-read_and_uncompress_section (bfd * abfd,
- asection * msec,
- bfd_boolean section_is_compressed,
- asymbol ** syms,
- bfd_byte ** section_buffer,
- bfd_size_type * section_size)
-{
- /* Get the unrelocated contents of the section. */
- *section_buffer = (bfd_byte *) bfd_malloc (*section_size);
- if (! *section_buffer)
- return FALSE;
- if (! bfd_get_section_contents (abfd, msec, *section_buffer,
- 0, *section_size))
- return FALSE;
-
- if (section_is_compressed)
- {
- if (! bfd_uncompress_section_contents (section_buffer, section_size))
- {
- (*_bfd_error_handler) (_("Dwarf Error: unable to decompress %s section."),
- bfd_get_section_name (abfd, msec));
- bfd_set_error (bfd_error_bad_value);
- return FALSE;
- }
- }
-
- if (syms)
- {
- /* We want to relocate the data we've already read (and
- decompressed), so we store a pointer to the data in
- the bfd_section, and tell it that the contents are
- already in memory. */
- BFD_ASSERT (msec->contents == NULL && (msec->flags & SEC_IN_MEMORY) == 0);
- msec->contents = *section_buffer;
- msec->flags |= SEC_IN_MEMORY;
- msec->size = *section_size;
- *section_buffer
- = bfd_simple_get_relocated_section_contents (abfd, msec, NULL, syms);
- if (! *section_buffer)
- return FALSE;
- }
-
- return TRUE;
-}
-
/* Read a section into its appropriate place in the dwarf2_debug
struct (indicated by SECTION_BUFFER and SECTION_SIZE). If SYMS is
not NULL, use bfd_simple_get_relocated_section_contents to read the
@@ -488,10 +440,32 @@ read_section (bfd * abfd,
}
*section_size = msec->rawsize ? msec->rawsize : msec->size;
+ if (syms)
+ {
+ *section_buffer
+ = bfd_simple_get_relocated_section_contents (abfd, msec, NULL, syms);
+ if (! *section_buffer)
+ return FALSE;
+ }
+ else
+ {
+ *section_buffer = (bfd_byte *) bfd_malloc (*section_size);
+ if (! *section_buffer)
+ return FALSE;
+ if (! bfd_get_section_contents (abfd, msec, *section_buffer,
+ 0, *section_size))
+ return FALSE;
+ }
- if (! read_and_uncompress_section (abfd, msec, section_is_compressed,
- syms, section_buffer, section_size))
- return FALSE;
+ if (section_is_compressed)
+ {
+ if (! bfd_uncompress_section_contents (section_buffer, section_size))
+ {
+ (*_bfd_error_handler) (_("Dwarf Error: unable to decompress %s section."), compressed_section_name);
+ bfd_set_error (bfd_error_bad_value);
+ return FALSE;
+ }
+ }
}
/* It is possible to get a bad value for the offset into the section
@@ -3269,17 +3243,23 @@ find_line (bfd *abfd,
{
bfd_size_type size = msec->size;
bfd_byte *buffer, *tmp;
- bfd_boolean is_compressed =
- strcmp (msec->name, DWARF2_COMPRESSED_DEBUG_INFO) == 0;
if (size == 0)
continue;
- if (! read_and_uncompress_section (debug_bfd, msec,
- is_compressed, symbols,
- &buffer, &size))
+ buffer = (bfd_simple_get_relocated_section_contents
+ (debug_bfd, msec, NULL, symbols));
+ if (! buffer)
goto done;
+ if (strcmp (msec->name, DWARF2_COMPRESSED_DEBUG_INFO) == 0)
+ {
+ if (! bfd_uncompress_section_contents (&buffer, &size))
+ {
+ free (buffer);
+ goto done;
+ }
+ }
tmp = (bfd_byte *) bfd_realloc (stash->info_ptr_memory,
total_size + size);
if (tmp == NULL)
diff --git a/bfd/elf-ifunc.c b/bfd/elf-ifunc.c
index 0de236f..760fc26 100644
--- a/bfd/elf-ifunc.c
+++ b/bfd/elf-ifunc.c
@@ -187,6 +187,15 @@ _bfd_elf_allocate_ifunc_dyn_relocs (struct bfd_link_info *info,
htab = elf_hash_table (info);
+ /* Support garbage collection against STT_GNU_IFUNC symbols. */
+ if (h->plt.refcount <= 0 && h->got.refcount <= 0)
+ {
+ h->got = htab->init_got_offset;
+ h->plt = htab->init_plt_offset;
+ *head = NULL;
+ return TRUE;
+ }
+
/* Return and discard space for dynamic relocations against it if
it is never referenced in a non-shared object. */
if (!h->ref_regular)
diff --git a/bfd/elf.c b/bfd/elf.c
index 0fa75d2..e7651ba 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3736,6 +3736,13 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
segment. */
new_segment = TRUE;
}
+ else if (hdr->lma < last_hdr->lma + last_size
+ || last_hdr->lma + last_size < last_hdr->lma)
+ {
+ /* If this section has a load address that makes it overlap
+ the previous section, then we need a new segment. */
+ new_segment = TRUE;
+ }
/* In the next test we have to be careful when last_hdr->lma is close
to the end of the address space. If the aligned address wraps
around to the start of the address space, then there are no more
@@ -4457,15 +4464,19 @@ assign_file_positions_for_load_sections (bfd *abfd,
&& ((this_hdr->sh_flags & SHF_TLS) == 0
|| p->p_type == PT_TLS))))
{
- bfd_vma adjust = sec->lma - (p->p_paddr + p->p_memsz);
+ bfd_vma p_start = p->p_paddr;
+ bfd_vma p_end = p_start + p->p_memsz;
+ bfd_vma s_start = sec->lma;
+ bfd_vma adjust = s_start - p_end;
- if (sec->lma < p->p_paddr + p->p_memsz)
+ if (s_start < p_end
+ || p_end < p_start)
{
(*_bfd_error_handler)
- (_("%B: section %A lma 0x%lx overlaps previous sections"),
- abfd, sec, (unsigned long) sec->lma);
+ (_("%B: section %A lma %#lx adjusted to %#lx"), abfd, sec,
+ (unsigned long) s_start, (unsigned long) p_end);
adjust = 0;
- sec->lma = p->p_paddr + p->p_memsz;
+ sec->lma = p_end;
}
p->p_memsz += adjust;
@@ -4578,8 +4589,7 @@ assign_file_positions_for_load_sections (bfd *abfd,
sec = m->sections[i];
this_hdr = &(elf_section_data(sec)->this_hdr);
- if (this_hdr->sh_size != 0
- && !ELF_SECTION_IN_SEGMENT_1 (this_hdr, p, check_vma))
+ if (!ELF_SECTION_IN_SEGMENT_1 (this_hdr, p, check_vma, 0))
{
(*_bfd_error_handler)
(_("%B: section `%A' can't be allocated in segment %d"),
@@ -4629,13 +4639,12 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
BFD_ASSERT (hdr->sh_offset == hdr->bfd_section->filepos);
else if ((hdr->sh_flags & SHF_ALLOC) != 0)
{
- if (hdr->sh_size != 0)
- ((*_bfd_error_handler)
- (_("%B: warning: allocated section `%s' not in segment"),
- abfd,
- (hdr->bfd_section == NULL
- ? "*unknown*"
- : hdr->bfd_section->name)));
+ (*_bfd_error_handler)
+ (_("%B: warning: allocated section `%s' not in segment"),
+ abfd,
+ (hdr->bfd_section == NULL
+ ? "*unknown*"
+ : hdr->bfd_section->name));
/* We don't need to page align empty sections. */
if ((abfd->flags & D_PAGED) != 0 && hdr->sh_size != 0)
off += vma_page_aligned_bias (hdr->sh_addr, off,
@@ -5857,8 +5866,7 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
section = section->next)
{
this_hdr = &(elf_section_data(section)->this_hdr);
- if (this_hdr->sh_size != 0
- && ELF_SECTION_IN_SEGMENT (this_hdr, segment))
+ if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
{
if (!first_section)
first_section = lowest_section = section;
@@ -5937,8 +5945,7 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
section = section->next)
{
this_hdr = &(elf_section_data(section)->this_hdr);
- if (this_hdr->sh_size != 0
- && ELF_SECTION_IN_SEGMENT (this_hdr, segment))
+ if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
{
map->sections[isec++] = section->output_section;
if (isec == section_count)
@@ -6015,8 +6022,7 @@ copy_private_bfd_data (bfd *ibfd, bfd *obfd)
/* Check if this section is covered by the segment. */
this_hdr = &(elf_section_data(section)->this_hdr);
- if (this_hdr->sh_size != 0
- && ELF_SECTION_IN_SEGMENT (this_hdr, segment))
+ if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
{
/* FIXME: Check if its output section is changed or
removed. What else do we need to check? */
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 7964c4f..0ff3147 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -789,8 +789,6 @@ elf_i386_get_local_sym_hash (struct elf_i386_link_hash_table *htab,
ret->elf.indx = sec->id;
ret->elf.dynstr_index = ELF32_R_SYM (rel->r_info);
ret->elf.dynindx = -1;
- ret->elf.plt.offset = (bfd_vma) -1;
- ret->elf.got.offset = (bfd_vma) -1;
*slot = ret;
}
return &ret->elf;
@@ -1162,6 +1160,12 @@ elf_i386_tls_transition (struct bfd_link_info *info, bfd *abfd,
unsigned int to_type = from_type;
bfd_boolean check = TRUE;
+ /* Skip TLS transition for functions. */
+ if (h != NULL
+ && (h->type == STT_FUNC
+ || h->type == STT_GNU_IFUNC))
+ return TRUE;
+
switch (from_type)
{
case R_386_TLS_GD:
@@ -1330,8 +1334,7 @@ elf_i386_check_relocs (bfd *abfd,
/* Check relocation against local STT_GNU_IFUNC symbol. */
if (ELF32_ST_TYPE (isym->st_info) == STT_GNU_IFUNC)
{
- h = elf_i386_get_local_sym_hash (htab, abfd, rel,
- TRUE);
+ h = elf_i386_get_local_sym_hash (htab, abfd, rel, TRUE);
if (h == NULL)
return FALSE;
@@ -1820,6 +1823,23 @@ elf_i386_gc_sweep_hook (bfd *abfd,
break;
}
}
+ else
+ {
+ /* A local symbol. */
+ Elf_Internal_Sym *isym;
+
+ isym = bfd_sym_from_r_symndx (&htab->sym_cache,
+ abfd, r_symndx);
+
+ /* Check relocation against local STT_GNU_IFUNC symbol. */
+ if (isym != NULL
+ && ELF32_ST_TYPE (isym->st_info) == STT_GNU_IFUNC)
+ {
+ h = elf_i386_get_local_sym_hash (htab, abfd, rel, FALSE);
+ if (h == NULL)
+ abort ();
+ }
+ }
r_type = ELF32_R_TYPE (rel->r_info);
if (! elf_i386_tls_transition (info, abfd, sec, NULL,
@@ -1846,6 +1866,11 @@ elf_i386_gc_sweep_hook (bfd *abfd,
{
if (h->got.refcount > 0)
h->got.refcount -= 1;
+ if (h->type == STT_GNU_IFUNC)
+ {
+ if (h->plt.refcount > 0)
+ h->plt.refcount -= 1;
+ }
}
else if (local_got_refcounts != NULL)
{
@@ -1868,6 +1893,16 @@ elf_i386_gc_sweep_hook (bfd *abfd,
}
break;
+ case R_386_GOTOFF:
+ if (h != NULL && h->type == STT_GNU_IFUNC)
+ {
+ if (h->got.refcount > 0)
+ h->got.refcount -= 1;
+ if (h->plt.refcount > 0)
+ h->plt.refcount -= 1;
+ }
+ break;
+
default:
break;
}
@@ -2520,6 +2555,23 @@ elf_i386_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
if (htab->elf.srelplt)
htab->sgotplt_jump_table_size = htab->next_tls_desc_index * 4;
+ if (htab->elf.sgotplt)
+ {
+ /* Don't allocate .got.plt section if there are no GOT nor PLT
+ entries. */
+ if ((htab->elf.sgotplt->size
+ == get_elf_backend_data (output_bfd)->got_header_size)
+ && (htab->elf.splt == NULL
+ || htab->elf.splt->size == 0)
+ && (htab->elf.sgot == NULL
+ || htab->elf.sgot->size == 0)
+ && (htab->elf.iplt == NULL
+ || htab->elf.iplt->size == 0)
+ && (htab->elf.igotplt == NULL
+ || htab->elf.igotplt->size == 0))
+ htab->elf.sgotplt->size = 0;
+ }
+
/* We now have determined the sizes of the various dynamic sections.
Allocate memory for them. */
relocs = FALSE;
@@ -2934,8 +2986,8 @@ elf_i386_relocate_section (bfd *output_bfd,
&& ELF32_ST_TYPE (sym->st_info) == STT_GNU_IFUNC)
{
/* Relocate against local STT_GNU_IFUNC symbol. */
- h = elf_i386_get_local_sym_hash (htab, input_bfd,
- rel, FALSE);
+ h = elf_i386_get_local_sym_hash (htab, input_bfd, rel,
+ FALSE);
if (h == NULL)
abort ();
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 21524fa..b0bc5c0 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -603,8 +603,6 @@ elf64_x86_64_get_local_sym_hash (struct elf64_x86_64_link_hash_table *htab,
ret->elf.indx = sec->id;
ret->elf.dynstr_index = ELF64_R_SYM (rel->r_info);
ret->elf.dynindx = -1;
- ret->elf.plt.offset = (bfd_vma) -1;
- ret->elf.got.offset = (bfd_vma) -1;
*slot = ret;
}
return &ret->elf;
@@ -951,6 +949,12 @@ elf64_x86_64_tls_transition (struct bfd_link_info *info, bfd *abfd,
unsigned int to_type = from_type;
bfd_boolean check = TRUE;
+ /* Skip TLS transition for functions. */
+ if (h != NULL
+ && (h->type == STT_FUNC
+ || h->type == STT_GNU_IFUNC))
+ return TRUE;
+
switch (from_type)
{
case R_X86_64_TLSGD:
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-07-09 8:09 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-07-09 8:09 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 698ebd33374890ea9f5396d54d25584beec7ce4c (commit)
via 2c644f5e4aa6b1fbe3f3ec42e3d17db0ff81fbd9 (commit)
via d79ff9f4d9b35b526329edea433e31fcf5a39ed5 (commit)
via 997bb920caf43942b40c098b85e8fd3d45eaeae0 (commit)
via 57d9e5d89c9e05cd1dbf4a27bb42a9f31fb77cfd (commit)
via 811ef68be3f6c2556e7542268943746af4007347 (commit)
via 2c4c184676577d4fde276a830d50bdc18f2a3af8 (commit)
via 1a564c0266f61b7efba2cf62a2643789eefad121 (commit)
via 010af67badb377719913339ef99767ecd9ed2097 (commit)
via ed1de22417b3c98afafa78658923d01e91faa4cf (commit)
via 008ed8e0ef3581f00b33252cf1622ea7798a4822 (commit)
via 3ac21d4fc1441e8f8ccf5345837ac7ca6b32cd74 (commit)
via 490f6c92b062d9209b1534e3a8f46f7e68110163 (commit)
via cd4c6c46d781fe20f1a73c9e07c0fbc05bfc8a0c (commit)
via b2f5cf460a3e550ab4032be1a90c752c0b9bdd9f (commit)
via b329bec29b7c385d9a26b227f6c4b28366ee4431 (commit)
via 7ff5b2d2dc0f62a83f7bf31d4252f51ebff75c83 (commit)
via 943837e71269999db3715f8f6d8260a30388724e (commit)
via 80d489f52b77e48078058c1200d3435ae64982d6 (commit)
via 0538030e35cd30fd2e89683a1ab06a42bb7c8460 (commit)
via 54088c4e6ef989cb143cf4aa1b9103a9cc1606eb (commit)
via bc8194cf51113205ec5bf84a0051c9978fc06248 (commit)
via 795266e6bb00d0bec74ec42b8b6da0dbc57b23f4 (commit)
via ef4ae4726524130b1cc946be6e8df9fb7747f637 (commit)
via d844331d1658deb89d66b7090cb6f4db623cd767 (commit)
via 9cf030d8ebdd5abea4a1b2862c34e8ad4f2c27f9 (commit)
via 385884ae41a427a74f720d8ab6f1d8c18733e2e5 (commit)
via 006f817c25408f2d275322d735c1d5b36f56125e (commit)
via 3f87d01c72db74b55f238af9d6f6e33c466f6657 (commit)
via 2936d2154f89268e4ac8fded79847874b9d767f7 (commit)
via 5661e6770aa640f4958c63458ece9a73d5bbc33c (commit)
via 2d0c70f88a983da2c323669fb8e2255065a25e3a (commit)
via 85a287cd504874b31bd9d57eb8a8d0f6d3aea3e0 (commit)
via 6d079327f31bf07842940fbd298f33b3dc612f78 (commit)
via 609e01e5bb93f12ee3bd461f233a9d90055fdca7 (commit)
via fb3dfdb11904958a81ac20ecd2c7c9c72ca5a056 (commit)
via 7385e8446a6b3ca1dd9bd13cea4a854c8b205104 (commit)
via 6be31f4f294358a45d209b86056413f5fc532a62 (commit)
via 2c0ac4fd42bae9b09f5b1b31f2969bb4b9d16a26 (commit)
via 589f1fbe4822c94685b309087969a7f656cb1010 (commit)
via 155330fce0994bad8cf07b8efb4d882b1c5be8f3 (commit)
via d092683dba89b303db89643f8c92cb1551ba985d (commit)
via a3a5048c9dd19c8ee3716c8f9d97ce67d8066fd3 (commit)
via 0dbe4ca01246319e815404ba0ad12ebe30c263cf (commit)
via 33570c19ddfd8f85d0422ff75bebdae46436f1cb (commit)
via 02ac16056b7acd638bdb47538d62189ae69ec336 (commit)
via 44d48438fed6d4aca4ff7acdfb6870d3b829cd44 (commit)
via 2db40f2554a8053861db0d905284b024a64f4e65 (commit)
via 080f533c201500c3ad5aa694f48a593f174a34af (commit)
via 45c47a8ca0084ca08ecdb04f8813959be7cf09b2 (commit)
via 942b34c6f472ec09bdbf845db9d6c819f6fabf1e (commit)
via fb66c970ed95c3729c73c546306156d602498d00 (commit)
via 662c99c4725e79522da390120452ffad022e8043 (commit)
via 06248e59f128f47abb9423e7289e20d6f2ca01e2 (commit)
via 66cf38b27885179355ac030e7cd1f247b4793306 (commit)
via b74acde4dc3dbe68897cf38ef4417db01c71c3ec (commit)
via 4ff5fd3585c6707dd4d7bf9b1299e99d0ccb0d38 (commit)
via e8ac61539484f092c7bbbb8eaa3d3f12c1c2ff41 (commit)
via ccf762cf14710ce9129819b244a71720b2280473 (commit)
via 8572a98ae67c6b9241297578f95d90b071f6fd6b (commit)
via 40df283ff2ab2c65742e4d364c936f09a17fc0bd (commit)
via 96c11f4a9e4b2f10c2bc51f685bfeb3a4d00c774 (commit)
via d286924130124fe30ca02d1b56728f2eb97e6840 (commit)
via 30d3e829052f4183a2ccd42672893fca3c273e6a (commit)
via 9f1228b01c6af8855ca4c5fc31d68cb53a7b2bd0 (commit)
via 8e53b7e48fadc5fd66145d4cd98e7618a78bf225 (commit)
via 5a363c4390c40cee9db4d8e2093bbd534c345e1e (commit)
via ba070da6e1eae97792cbf48b9d37ef166b655836 (commit)
via bdc421937b948479df956d567c1d1482c4b0c0f3 (commit)
via 9e032a4b4bc5a1c37b261451415e417bff304053 (commit)
via 33d0180ecce5abaeea003260ff60b2f8a2eb8c51 (commit)
via 0f0d8e88120ed0acee93f913c4f97064ba4dca9c (commit)
via e5970f838ddb66ec51c4370643ffc50b2c03f490 (commit)
via 92be17beac70a3726740b28563320461712d5ba2 (commit)
via dc454909f6e32fdb1e0c16409ffbdccf59c9e3f0 (commit)
via 32e3e99e4ef29366e88cfa46f4ed7193c4086441 (commit)
via f227b6ce5d8876bcddc4bd5867a741b25b532c5e (commit)
via 10834255fbc7eb3adc42d964cf15f195272b058b (commit)
via 0a61e21fe9092516e4c117d489c2454977119a7a (commit)
via 5a4126114560de7ff734375a538159aca88c8de9 (commit)
via 29857738ea561b4efb6c36088ca4dd3bb3a8288b (commit)
via a670d52002d32484789e621b006aaf1dffb70d5b (commit)
via bb5cda1cfc23ca2c512e4fca2daf10279fecbadd (commit)
via 9820d24797522dab2a7d04c443646192289db114 (commit)
via 6ca209864ebee27751673bf5cb360cb8f8ae53c0 (commit)
via b7cb08ea6448502ca602a464e3b0596ae0cf018c (commit)
via 5b3c163af3628c056ed17d73a66cad085f1217d2 (commit)
via 4c2a88fa287fd57fa4f9171e1b2f8def74dcab98 (commit)
via 21fea3380baa36bb7a030eb2166764e412f69cb0 (commit)
via 477c1359b217cdc052a7c9f83cae9c894396894c (commit)
via 1371a50ec70573353e400b3a0075cfff12edfe87 (commit)
via 758a1f7149cb7469c7e6bb30cb572715ee90a6e8 (commit)
via f49f91e9c3eaba847f75f5c46e77e261a76d9a9b (commit)
via e3cf5be085e831c5da91e952705e879cba4ba343 (commit)
via bb604f9e70de515b13e2a935d8ad9d2fb0290849 (commit)
via e79e3623c44e62d3755af05bf51e7c3acde34d11 (commit)
via 599fd48f1280e7b66fcae4ea304b2e2f0e32aded (commit)
via f7b6ca434c1ca8b8d3a52df9745c55db35e4a61c (commit)
via cb70ef0b6aafa641886612cdbc3946a8e109fcf9 (commit)
via 47c8c764a9be6d023eca450336e6d9de16970fc0 (commit)
via 1969a57f58c998bfbb06f08ce7bc1717178b6f54 (commit)
via 8c7cfa05ae58786e3e163e04747200b40153c7dd (commit)
via 6b41066507655605612411430a0cad56dacfbddd (commit)
via 8d87c7b31711251459b3ec61384f8c2318972294 (commit)
via 1c8b37a28ce52e38c100a822feaccae10285bc26 (commit)
via f2020f4609568a709ae79ed588d92e4c9fc650e1 (commit)
via 9bce5613c5a621b4655842d31956340af4a434d3 (commit)
via 93420a888a8f56199d7584c2c025190d389e4a5a (commit)
via a88c2e0c85d5f6750416e6595b7bf44f79193e7d (commit)
via d0a7306ab3e5f78a980660413ba68a92a5263015 (commit)
via 66f699d3eb5ba03231caea21f1b16549f2bb297a (commit)
via b88f2e554360bba59a1743795bda874298ade519 (commit)
via 7c83be0f10efcd0751f9a49a642331d73ddb7745 (commit)
via f8d8947c2e69f2eb0b22c16d7cb9bcc370c9243e (commit)
via 21877d889fab20d373169bd4aa79001e28e793a0 (commit)
via 1063b4f43e24d344806244852745336c3014183f (commit)
via 860665933966836a8018eb3b6681211a03f27345 (commit)
via fe506a79946e02011410fc31e5a8ba8fd8b96cf9 (commit)
via bd625c19b2132091c0953467d0dcc0f65c71cdee (commit)
via c2ac587653fb321551fcb56a15e0ab591bc705fb (commit)
via ddbe9d6b92aaa9b2119c144babbe191596deff6f (commit)
via 5cde5e8c872d73b8826794a0270b064cf19dd442 (commit)
via 419c318f359d94c0b7fd5b3f499a96174591c7ac (commit)
via a10079a665972963ad0960a3fdb952e0d3d33c27 (commit)
via 2d05da1f85ab98a2830aebc3d5fb4c112b6bedba (commit)
via 83fe3995184491891d36d7003a8c1b41784cfa0c (commit)
via 8b20b6281457218f475bb573ab835367459c3f6d (commit)
via 7b2ef72fd753434e9683b2416e8a7626af4d3430 (commit)
via c0acde3cde80783508b7b37dcca6967b856f89b4 (commit)
via 74937cb65e53e796a8c5f9075f2f03a2aa159787 (commit)
via f71231e76e5d47a44283212b40df03241e0d6c51 (commit)
via 598915997f43e32f648309a96f6edba27bcf1d5d (commit)
via c139b217e0d2a9dffeb9e226a0e7f4561758f91f (commit)
via 749a1620e5b5e1f23009e7bf55cf86adbcc7318f (commit)
via 9072e33f2290e1327931a3ddff7935553e86d844 (commit)
via ee36425736d7c14cc055fa6810266f52e7e83f89 (commit)
via 71bfb8113895aaa51f843a88c7a00cd18a6c75c5 (commit)
via a483c96d04a703fb71374104b4bcdc51a0e21c27 (commit)
via f59ef5e559b4f5a717fae719149f8fb6ec8f9a8b (commit)
via 4ebf1dbd04065ba463373fdee9d171bce1943818 (commit)
via 8216e4056f757073ca28f352a30908bce1684683 (commit)
from e631bbacdd0e7d2fc9f46e70b0613f5d3fdc6a9e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 698ebd33374890ea9f5396d54d25584beec7ce4c
Merge: e631bbacdd0e7d2fc9f46e70b0613f5d3fdc6a9e 2c644f5e4aa6b1fbe3f3ec42e3d17db0ff81fbd9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jul 9 10:08:58 2010 +0200
Merge remote branch 'gdb/master'
commit 2c644f5e4aa6b1fbe3f3ec42e3d17db0ff81fbd9
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Jul 9 02:39:57 2010 +0000
2010-07-04 Hui Zhu <teawater@gmail.com>
* source.c (print_source_lines_base): Add check for noprint.
commit d79ff9f4d9b35b526329edea433e31fcf5a39ed5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jul 9 00:00:34 2010 +0000
*** empty log message ***
commit 997bb920caf43942b40c098b85e8fd3d45eaeae0
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jul 9 00:00:05 2010 +0000
daily update
commit 57d9e5d89c9e05cd1dbf4a27bb42a9f31fb77cfd
Author: Richard Earnshaw <richard.earnshaw@arm.com>
Date: Thu Jul 8 22:40:27 2010 +0000
2010-07-08 Tejas Belagod <tejas.belagod@arm.com>
gas/testsuite
* gas/arm/barrier.s: New file.
* gas/arm/barrier.d: New file.
* gas/arm/barrier-thumb.s: New file.
* gas/arm/barrier-thumb.d: New file.
* gas/arm/barrier-bad.s: New file.
* gas/arm/barrier-bad.d: New file.
* gas/arm/barrier-bad.l: New file.
* gas/arm/barrier-bad-thumb.s: New file.
* gas/arm/barrier-bad-thumb.d: New file.
* gas/arm/barrier-bad-thumb.l: New file.
gas/config
* tc-arm.c (OP_oBARRIER): Remove.
(OP_oBARRIER_I15): Add.
(po_barrier_or_imm): Add macro.
(parse_operands): Improve OP_oBARRIER_I15 operand parsing.
(do_barrier): Check correct immediate range.
(do_t_barrier): Likewise.
(barrier_opt_names): Add entries for more symbolic operands.
(insns): Replace OP_oBARRIER with OP_oBARRIER_I15 for barriers.
opcodes/
* arm-dis.c (print_insn_arm): Add cases for printing more
symbolic operands.
(print_insn_thumb32): Likewise.
commit 811ef68be3f6c2556e7542268943746af4007347
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jul 8 22:12:43 2010 +0000
Resync python-config.py with Python-2.7 version.
This is just a copy of the Python 2.7 version of python-config.py.
Tested with versions 2.5 and 2.6. It's nearly identical to the
previous version, except it's written in a more pythonic way,
so it should be fine for 2.4 as well.
gdb/ChangeLog:
* python/python-config.py: Resync with Python 2.7 version of this
script.
commit 2c4c184676577d4fde276a830d50bdc18f2a3af8
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jul 8 15:41:56 2010 +0000
Fix typo in NEWS file (introduced in previous commit).
gdb/ChangeLog:
* NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
commit 1a564c0266f61b7efba2cf62a2643789eefad121
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jul 8 00:00:05 2010 +0000
daily update
commit 010af67badb377719913339ef99767ecd9ed2097
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jul 8 00:00:02 2010 +0000
*** empty log message ***
commit ed1de22417b3c98afafa78658923d01e91faa4cf
Author: Kevin Buettner <kevinb@redhat.com>
Date: Wed Jul 7 23:22:43 2010 +0000
* gdb-if.c (sim_store_register): Add case for sim_rx_acc_regnum.
commit 008ed8e0ef3581f00b33252cf1622ea7798a4822
Author: Doug Evans <dje@google.com>
Date: Wed Jul 7 18:49:50 2010 +0000
* lib/gdb.exp (gdb_test_list_exact): New function.
* gdb.base/default.exp (show convenience): Call it, add tests for
$_sdata = void, $_thread = 0.
commit 3ac21d4fc1441e8f8ccf5345837ac7ca6b32cd74
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jul 7 17:52:37 2010 +0000
* NEWS: Create a new section for the next release branch.
Rename the section of the current branch, now that it has
been cut.
commit 490f6c92b062d9209b1534e3a8f46f7e68110163
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jul 7 17:34:43 2010 +0000
Record GDB 7.2 branch creation. Bump version number to 7.2.50.20100707-cvs.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 205 +-
bfd/Makefile.am | 4 -
bfd/Makefile.in | 6 -
bfd/archures.c | 5 -
bfd/bfd-in2.h | 3 -
bfd/bout.c | 6 +-
bfd/coff-i860.c | 3 +-
bfd/coff-maxq.c | 447 --
bfd/coff-mcore.c | 7 +-
bfd/coff-ppc.c | 16 +-
bfd/coff-rs6000.c | 3 +-
bfd/coffcode.h | 37 +-
bfd/compress.c | 10 +-
bfd/config.bfd | 7 +-
bfd/configure | 19 +-
bfd/configure.in | 1 -
bfd/cpu-arm.c | 5 +-
bfd/cpu-maxq.c | 60 -
bfd/dwarf2.c | 93 +-
bfd/elf-bfd.h | 2 +
bfd/elf-m10200.c | 8 +-
bfd/elf-m10300.c | 5 -
bfd/elf32-arm.c | 25 +-
bfd/elf32-avr.c | 21 +-
bfd/elf32-bfin.c | 8 +-
bfd/elf32-cr16.c | 6 -
bfd/elf32-cr16c.c | 7 +-
bfd/elf32-cris.c | 2 -
bfd/elf32-crx.c | 8 +-
bfd/elf32-h8300.c | 9 +-
bfd/elf32-hppa.c | 2 -
bfd/elf32-i370.c | 7 +-
bfd/elf32-ip2k.c | 30 +-
bfd/elf32-lm32.c | 19 +-
bfd/elf32-m32c.c | 12 +-
bfd/elf32-m32r.c | 17 +-
bfd/elf32-m68hc11.c | 2 -
bfd/elf32-m68hc1x.c | 6 -
bfd/elf32-m68k.c | 5 -
bfd/elf32-microblaze.c | 9 +-
bfd/elf32-moxie.c | 6 +-
bfd/elf32-msp430.c | 9 +-
bfd/elf32-ppc.c | 68 +-
bfd/elf32-rx.c | 19 +-
bfd/elf32-score.c | 8 +-
bfd/elf32-score7.c | 5 +-
bfd/elf32-sh.c | 7 -
bfd/elf32-sh64.c | 5 +-
bfd/elf32-spu.c | 5 +-
bfd/elf32-v850.c | 9 +-
bfd/elf32-vax.c | 4 -
bfd/elf32-xc16x.c | 13 +-
bfd/elf32-xtensa.c | 7 -
bfd/elf64-hppa.c | 35 +-
bfd/elf64-mmix.c | 9 +-
bfd/elf64-ppc.c | 369 +-
bfd/elfxx-ia64.c | 6 -
bfd/elfxx-sparc.c | 6 +-
bfd/hp300hpux.c | 4 +-
bfd/i386lynx.c | 9 +-
bfd/ieee.c | 6 +
bfd/libbfd.h | 12 +-
bfd/mach-o.c | 2 -
bfd/mmo.c | 7 +-
bfd/nlm32-sparc.c | 6 +-
bfd/pdp11.c | 8 +-
bfd/pe-mips.c | 12 +-
bfd/peXXigen.c | 4 +
bfd/po/SRC-POTFILES.in | 13 +-
bfd/som.c | 7 +-
bfd/targets.c | 2 -
bfd/versados.c | 4 +-
bfd/version.h | 2 +-
bfd/vms-alpha.c | 144 +-
bfd/xsym.c | 4 +-
config/ChangeLog | 6 +-
config/gc++filt.m4 | 26 +
cpu/ChangeLog | 4 +
cpu/m32c.cpu | 4 +-
gdb/ChangeLog | 610 +++-
gdb/Makefile.in | 12 +
gdb/NEWS | 119 +-
gdb/amd64-linux-tdep.c | 2 +-
gdb/auxv.c | 28 +-
gdb/breakpoint.c | 861 ++-
gdb/breakpoint.h | 67 +-
gdb/c-exp.y | 2 +-
gdb/c-typeprint.c | 29 +-
gdb/c-valprint.c | 3 +-
gdb/charset.c | 2 +-
gdb/config.in | 3 +
gdb/configure | 6 +-
gdb/configure.ac | 4 +-
gdb/cp-namespace.c | 19 +-
gdb/cp-support.c | 28 +-
gdb/cp-valprint.c | 13 +-
gdb/defs.h | 6 +
gdb/doc/ChangeLog | 49 +
gdb/doc/gdb.texinfo | 420 ++-
gdb/doublest.c | 5 +-
gdb/dwarf2-frame.c | 39 +-
gdb/dwarf2expr.c | 264 +-
gdb/dwarf2expr.h | 26 +-
gdb/dwarf2loc.c | 72 +-
gdb/dwarf2read.c | 250 +-
gdb/eval.c | 79 +
gdb/event-top.c | 40 +-
gdb/filesystem.c | 14 +-
gdb/frame.c | 2 +-
gdb/gdb-gdb.py | 2 -
gdb/gdbarch.c | 47 +
gdb/gdbarch.h | 12 +-
gdb/gdbarch.sh | 8 +-
gdb/gdbserver/ChangeLog | 92 +
gdb/gdbserver/Makefile.in | 12 +-
gdb/gdbserver/config.in | 3 +
gdb/gdbserver/configure | 104 +-
gdb/gdbserver/configure.ac | 48 +
gdb/gdbserver/linux-amd64-ipa.c | 89 +
gdb/gdbserver/linux-i386-ipa.c | 77 +
gdb/gdbserver/mem-break.c | 22 +
gdb/gdbserver/mem-break.h | 11 +
gdb/gdbserver/remote-utils.c | 19 +
gdb/gdbserver/server.c | 58 +-
gdb/gdbserver/server.h | 7 +
gdb/gdbserver/tracepoint.c | 1258 +++++-
gdb/gdbtypes.c | 11 +-
gdb/gdbtypes.h | 39 +-
gdb/i386-nat.c | 6 +-
gdb/ia64-linux-nat.c | 6 +-
gdb/inf-ttrace.c | 6 +-
gdb/infcmd.c | 2 +-
gdb/inferior.h | 4 +
gdb/infrun.c | 75 +-
gdb/libunwind-frame.c | 1 -
gdb/linux-nat.c | 59 +-
gdb/main.c | 34 +-
gdb/maint.c | 12 +-
gdb/memattr.c | 6 +-
gdb/mi/mi-cmd-break.c | 15 +-
gdb/mips-linux-nat.c | 6 +-
gdb/mips-tdep.c | 2 +-
gdb/monitor.c | 2 +-
gdb/nto-procfs.c | 6 +-
gdb/ppc-linux-nat.c | 234 +-
gdb/ppc-linux-tdep.c | 66 +-
gdb/printcmd.c | 17 +-
gdb/procfs.c | 12 +-
gdb/psymtab.c | 2 +-
gdb/python/py-breakpoint.c | 2 +-
gdb/python/py-frame.c | 8 +-
gdb/python/py-inferior.c | 728 +++
gdb/python/py-infthread.c | 269 +
gdb/python/py-utils.c | 49 +
gdb/python/py-value.c | 41 +-
gdb/python/python-config.py | 61 +-
gdb/python/python-internal.h | 32 +-
gdb/python/python.c | 110 +-
gdb/record.c | 610 +++
gdb/remote-m32r-sdi.c | 6 +-
gdb/remote-mips.c | 6 +-
gdb/remote.c | 162 +-
gdb/reverse.c | 2 +-
gdb/rx-tdep.c | 18 +-
gdb/s390-nat.c | 6 +-
gdb/s390-tdep.c | 28 +-
gdb/sh64-tdep.c | 6 +-
gdb/solib-spu.c | 105 +
gdb/solib-svr4.c | 221 +-
gdb/source.c | 6 +-
gdb/spu-tdep.c | 2 +-
gdb/stack.c | 2 +-
gdb/symtab.c | 29 +-
gdb/symtab.h | 6 +
gdb/target.c | 61 +-
gdb/target.h | 56 +-
gdb/testsuite/ChangeLog | 224 +
gdb/testsuite/gdb.arch/altivec-abi.exp | 2 +-
.../attach-pie-misread.c} | 57 +-
gdb/testsuite/gdb.base/attach-pie-misread.exp | 204 +
gdb/testsuite/gdb.base/bitops.exp | 2 +-
gdb/testsuite/gdb.base/break-interp.exp | 368 +-
gdb/testsuite/gdb.base/default.exp | 13 +-
gdb/testsuite/gdb.base/help.exp | 10 +-
.../{gdb.cp/namespace1.cc => gdb.base/nostdlib.c} | 39 +-
gdb/testsuite/gdb.base/nostdlib.exp | 54 +
gdb/testsuite/gdb.base/prelink.exp | 46 +-
gdb/testsuite/gdb.cell/dwarfaddr.S | 190 +
gdb/testsuite/gdb.cell/dwarfaddr.exp | 53 +
gdb/testsuite/gdb.cp/m-static.exp | 16 +-
gdb/testsuite/gdb.cp/m-static.h | 4 +-
gdb/testsuite/gdb.cp/namespace.exp | 65 +-
gdb/testsuite/gdb.cp/namespace1.cc | 19 +
gdb/testsuite/gdb.cp/operator.cc | 16 +
gdb/testsuite/gdb.cp/operator.exp | 3 +
.../gdb.cp/{namespace1.cc => static-print-quit.cc} | 44 +-
gdb/testsuite/gdb.cp/static-print-quit.exp | 50 +
gdb/testsuite/gdb.cp/userdef.exp | 2 +-
gdb/testsuite/gdb.cp/virtbase.cc | 14 +-
gdb/testsuite/gdb.cp/virtbase.exp | 5 +
.../dw2-ref-missing-frame-func.c} | 52 +-
.../dw2-ref-missing-frame-main.c} | 42 +-
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S | 452 +-
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp | 50 +-
gdb/testsuite/gdb.gdb/selftest.exp | 4 +-
gdb/testsuite/gdb.python/Makefile.in | 2 +-
gdb/testsuite/gdb.python/py-inferior.c | 49 +
gdb/testsuite/gdb.python/py-inferior.exp | 191 +
gdb/testsuite/gdb.python/py-infthread.c | 14 +
gdb/testsuite/gdb.python/py-infthread.exp | 53 +
gdb/testsuite/gdb.python/python.exp | 4 +
gdb/testsuite/lib/gdb.exp | 57 +
gdb/testsuite/lib/prelink-support.exp | 293 +
gdb/top.c | 59 +-
gdb/tracepoint.c | 309 +-
gdb/tracepoint.h | 19 +
gdb/utils.c | 94 +
gdb/valops.c | 14 +-
gdb/value.c | 80 +-
gdb/value.h | 9 +-
gdb/version.in | 2 +-
gdb/xtensa-tdep.c | 4 +-
include/ChangeLog | 9 +
include/coff/ChangeLog | 4 +
include/coff/maxq.h | 56 -
include/dis-asm.h | 2 -
include/elf/ChangeLog | 4 +
include/elf/ppc64.h | 4 +
include/floatformat.h | 2 +
include/gdb/ChangeLog | 5 +
include/gdb/sim-rx.h | 9 +-
include/opcode/ChangeLog | 19 +
include/opcode/maxq.h | 1132 ----
include/opcode/mips.h | 6 +-
include/opcode/ppc.h | 78 +-
libiberty/ChangeLog | 5 +
libiberty/floatformat.c | 18 +-
opcodes/ChangeLog | 142 +
opcodes/Makefile.am | 1 -
opcodes/Makefile.in | 2 -
opcodes/arc-dis.c | 7 +-
opcodes/arm-dis.c | 74 +-
opcodes/bfin-dis.c | 8 +-
opcodes/cgen-asm.in | 58 +-
opcodes/configure | 19 +-
opcodes/configure.in | 1 -
opcodes/disassemble.c | 6 -
opcodes/dlx-dis.c | 4 +-
opcodes/fr30-asm.c | 58 +-
opcodes/frv-asm.c | 58 +-
opcodes/h8300-dis.c | 15 +-
opcodes/i386-dis.c | 55 +-
opcodes/i386-gen.c | 12 +
opcodes/i386-init.h | 162 +-
opcodes/i386-opc.h | 12 +
opcodes/i386-opc.tbl | 16 +
opcodes/i386-tbl.h | 5760 ++++++++++----------
opcodes/ip2k-asm.c | 58 +-
opcodes/iq2000-asm.c | 58 +-
opcodes/lm32-asm.c | 58 +-
opcodes/m32c-asm.c | 58 +-
opcodes/m32c-ibld.c | 4 +-
opcodes/m32r-asm.c | 58 +-
opcodes/maxq-dis.c | 717 ---
opcodes/mep-asm.c | 58 +-
opcodes/mep-dis.c | 5 -
opcodes/mips-dis.c | 20 +-
opcodes/mips16-opc.c | 21 +-
opcodes/msp430-dis.c | 6 +-
opcodes/mt-asm.c | 58 +-
opcodes/openrisc-asm.c | 58 +-
opcodes/po/POTFILES.in | 6 +-
opcodes/ppc-dis.c | 148 +-
opcodes/ppc-opc.c | 66 +-
opcodes/sparc-dis.c | 5 +-
opcodes/xc16x-asm.c | 58 +-
opcodes/xstormy16-asm.c | 58 +-
sim/rx/ChangeLog | 9 +
sim/rx/gdb-if.c | 11 +
279 files changed, 14583 insertions(+), 8412 deletions(-)
delete mode 100644 bfd/coff-maxq.c
delete mode 100644 bfd/cpu-maxq.c
create mode 100644 config/gc++filt.m4
create mode 100644 gdb/python/py-inferior.c
create mode 100644 gdb/python/py-infthread.c
copy gdb/testsuite/{gdb.cp/namespace1.cc => gdb.base/attach-pie-misread.c} (52%)
create mode 100644 gdb/testsuite/gdb.base/attach-pie-misread.exp
copy gdb/testsuite/{gdb.cp/namespace1.cc => gdb.base/nostdlib.c} (52%)
create mode 100644 gdb/testsuite/gdb.base/nostdlib.exp
create mode 100644 gdb/testsuite/gdb.cell/dwarfaddr.S
create mode 100644 gdb/testsuite/gdb.cell/dwarfaddr.exp
copy gdb/testsuite/gdb.cp/{namespace1.cc => static-print-quit.cc} (53%)
create mode 100644 gdb/testsuite/gdb.cp/static-print-quit.exp
copy gdb/testsuite/{gdb.cp/namespace1.cc => gdb.dwarf2/dw2-ref-missing-frame-func.c} (52%)
copy gdb/testsuite/{gdb.cp/namespace1.cc => gdb.dwarf2/dw2-ref-missing-frame-main.c} (52%)
create mode 100644 gdb/testsuite/gdb.python/py-inferior.c
create mode 100644 gdb/testsuite/gdb.python/py-inferior.exp
create mode 100644 gdb/testsuite/gdb.python/py-infthread.c
create mode 100644 gdb/testsuite/gdb.python/py-infthread.exp
create mode 100644 gdb/testsuite/lib/prelink-support.exp
delete mode 100644 include/coff/maxq.h
delete mode 100644 include/opcode/maxq.h
delete mode 100644 opcodes/maxq-dis.c
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 41b6cb9..ea86440 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,206 @@
+2010-07-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * dwarf2.c (add_line_info): Initialize prev_line.
+
+2010-07-06 Alan Modra <amodra@gmail.com>
+
+ * elf32-ppc.c (ppc_elf_relax_section): Insert branch around
+ trampolines only for .init and .fini sections.
+
+2010-07-05 Alan Modra <amodra@gmail.com>
+
+ * elf32-ppc.c: Formatting.
+ (ppc_elf_finish_dynamic_sections): Don't make plt_entry var static.
+
+2010-07-03 Cary Coutant <ccoutant@google.com>
+
+ * compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED.
+ * dwarf2.c (read_and_uncompress_section): New function.
+ (read_section): Call it.
+ (find_line): Likewise.
+
+2010-07-01 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
+ than SYMBOL_REFERENCES_LOCAL.
+ (ppc64_elf_relocate_section): Likewise.
+
+2010-07-01 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
+
+2010-06-29 Alan Modra <amodra@gmail.com>
+
+ * cpu-maxq.c: Delete file.
+ * coff-maxq.c: Delete file.
+ * Makefile.am: Remove references to maxq.
+ * archures.c: Likewise.
+ * coffcode.h: Likewise.
+ * configure.in: Likewise.
+ * targets.c: Likewise.
+ * config.bfd: Move maxq from obsolete to removed.
+ * Makefile.in: Regenerate.
+ * bfd-in2.h: Regenerate.
+ * configure: Regenerate.
+ * libbfd.h: Regenerate.
+ * po/SRC-POTFILES.in: Regenerate.
+
+2010-06-28 Alan Modra <amodra@gmail.com>
+
+ * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
+ to silence gcc warning.
+
+2010-06-27 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
+ (group_sections): Likewise.
+
+2010-06-27 Alan Modra <amodra@gmail.com>
+
+ * bout.c (aligncode): Delete set but unused variables.
+ * coff-mcore.c (coff_mcore_relocate_section): Likewise.
+ * coff-ppc.c (ppc_record_toc_entry): Likewise.
+ (coff_ppc_relocate_section): Likewise.
+ * coff-rs6000.c (xcoff_complain_overflow_bitfield_func): Likewise.
+ * elf-m10200.c (mn10200_elf_relax_delete_bytes): Likewise.
+ * elf-m10300.c (mn10300_elf_final_link_relocate): Likewise.
+ (mn10300_elf_relax_section): Likewise.
+ * elf32-arm.c (arm_build_one_stub, arm_size_one_stub): Likewise.
+ (record_vfp11_erratum_veneer): Likewise.
+ (bfd_elf32_arm_vfp11_erratum_scan): Likewise.
+ (elf32_arm_final_link_relocate): Likewise.
+ (elf32_arm_check_relocs, arm_map_one_stub): Likewise.
+ * elf32-avr.c (elf32_avr_relax_delete_bytes): Likewise.
+ (elf32_avr_relax_section): Likewise.
+ (avr_mark_stub_not_to_be_necessary): Likewise.
+ * elf32-bfin.c (_bfin_create_got_section): Likewise.
+ * elf32-cr16.c (cr16_elf_final_link_relocate): Likewise.
+ (elf32_cr16_relax_delete_bytes): Likewise.
+ * elf32-cr16c.c (cr16c_elf_final_link_relocate): Likewise.
+ * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
+ * elf32-crx.c (elf32_crx_relax_delete_bytes): Likewise.
+ * elf32-h8300.c (elf32_h8_relax_section): Likewise.
+ (elf32_h8_relax_delete_bytes): Likewise.
+ * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
+ * elf32-i370.c (i370_elf_check_relocs): Likewise.
+ (elf_relocate_section): Likewise.
+ * elf32-ip2k.c (adjust_all_relocations): Likewise.
+ (ip2k_elf_relax_section): Likewise.
+ * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
+ (lm32_elf_check_relocs): Likewise.
+ (lm32_elf_finish_dynamic_sections): Likewise.
+ (lm32_elf_finish_dynamic_symbol): Likewise.
+ * elf32-m32c.c (m32c_offset_for_reloc): Likewise.
+ (m32c_elf_relax_delete_bytes): Likewise.
+ * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
+ (m32r_elf_finish_dynamic_sections): Likewise.
+ (m32r_elf_check_relocs, m32r_elf_fake_sections): Likewise.
+ * elf32-m68hc11.c (m68hc11_elf_relax_section): Likewise.
+ * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
+ * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
+ * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
+ (microblaze_elf_check_relocs): Likewise.
+ (microblaze_elf_finish_dynamic_symbol): Likewise.
+ * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
+ * elf32-ppc.c (ppc_elf_tls_optimize): Likewise.
+ * elf32-rx.c (rx_elf_relocate_section): Likewise.
+ (elf32_rx_relax_delete_bytes, rx_offset_for_reloc): Likewise.
+ (elf32_rx_relax_section): Likewise.
+ * elf32-score.c (score_elf_got_offset_from_index): Likewise.
+ (score_elf_final_link_relocate): Likewise.
+ (s3_bfd_score_elf_relocate_section): Likewise.
+ * elf32-score7.c (score_elf_got_offset_from_index): Likewise.
+ (s7_bfd_score_elf_relocate_section): Likewise.
+ * elf32-sh.c (sh_elf_check_relocs): Likewise.
+ * elf32-spu.c (spu_elf_relocate_section): Likewise.
+ * elf32-v850.c (v850_elf_check_relocs): Likewise.
+ (find_remembered_hi16s_reloc): Likewise.
+ * elf32-vax.c (elf32_vax_merge_private_bfd_data): Likewise.
+ (elf_vax_relocate_section): Likewise.
+ * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
+ * elf32-xtensa.c (xlate_offset_with_removed_text): Likewise.
+ (move_literal): Likewise.
+ * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
+ (elf64_hppa_check_relocs): Likewise.
+ (elf64_hppa_finish_dynamic_symbol): Likewise.
+ (elf64_hppa_relocate_section): Likewise.
+ * elf64-mmix.c (mmix_elf_reloc, mmix_elf_relax_section): Likewise.
+ * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
+ (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Likewise.
+ * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
+ (elfNN_vms_section_from_shdr): Likewise.
+ * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
+ (_bfd_sparc_elf_relocate_section): Likewise.
+ * hp300hpux.c (slurp_symbol_table): Likewise.
+ * i386lynx.c (swap_std_reloc_out, swap_std_reloc_in): Likewise.
+ * mach-o.c (bfd_mach_o_write_thread): Likewise.
+ * mmo.c (mmo_scan, mmo_write_symbols_and_terminator): Likewise.
+ * nlm32-sparc.c (nlm_sparc_read_reloc): Likewise.
+ * pdp11.c (pdp11_aout_link_input_section): Likewise.
+ (aout_link_input_section, aout_link_input_bfd): Likewise.
+ * pe-mips.c (mips_swap_reloc_out): Likewise.
+ (coff_pe_mips_relocate_section): Likewise.
+ * som.c (som_bfd_ar_write_symbol_stuff): Likewise.
+ * vms-alpha.c (_bfd_vms_slurp_egsd): Likewise.
+ * xsym.c (bfd_sym_fetch_type_information_table_ent): Likewise.
+
+ * coff-i860.c (i860_reloc_processing): Avoid set but unused warning.
+ * coffcode.h (coff_compute_section_file_positions): Likewise.
+ (coff_slurp_reloc_table): Likewise.
+ * cpu-arm.c (arm_check_note): Likewise.
+ * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Likewise.
+ * elf32-avr.c (elf32_avr_relocate_section): Likewise.
+ * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Likewise.
+ * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
+ * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
+ * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
+ * elf32-sh64.c (_bfd_sh_align_load_span): Likewise.
+ * ieee.c (parse_expression): Likewise.
+ (ieee_slurp_external_symbols, drop_int): Likewise.
+ * peXXigen.c (pe_print_pdata): Likewise.
+ * versados.c (process_esd): Likewise.
+
+2010-06-25 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
+ its flags. Create an absolute section if needed.
+
+2010-06-25 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
+ sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create
+ dummy psect anymore. Adjust.
+ (_bfd_vms_write_eeom): Adjust (use target_index instead of index)
+ (_bfd_vms_write_etir): Ditto.
+ (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
+ section name. Adjust.
+
+2010-06-25 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (alpha_vms_write_exec): Set linktime field.
+
+2010-06-25 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (toc_skip_enum): Define.
+ (ppc64_elf_edit_toc): Use two low bits of skip array as markers.
+ Optimize largetoc sequences.
+ (adjust_toc_syms): Update for skip array change.
+ (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
+
+2010-06-25 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (is_static_defined): New function.
+ (get_tls_mask, ppc_type_of_stub): Use it here.
+ (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
+ (ppc64_elf_tls_setup): Typo fix.
+ (adjust_toc_syms): Correctly handle symbols defined past the end
+ of the toc. Move syms on removed entries to next entry rather
+ than to start of toc.
+ (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to
+ edit ppc64 input. Allocate one extra word in skip array.
+ Honour info->keep_memory when reading relocs if we can.
+ Adjust toc relocs after adjusting symbols.
+
2010-06-23 Nathan Sidwell <nathan@codesourcery.com>
* archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
@@ -559,7 +762,7 @@
* pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
to USE_MINGW64_LEADING_UNDERSCORES.
- * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
+ * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
* config.bfd: Change underscoring default for x64 mingw
to false.
* coffcode.h (coff_write_relocs): Add check that dereferenced
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 61e89fa..f2ee38f 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -103,7 +103,6 @@ ALL_MACHINES = \
cpu-m68hc12.lo \
cpu-m68k.lo \
cpu-m88k.lo \
- cpu-maxq.lo \
cpu-mcore.lo \
cpu-mep.lo \
cpu-microblaze.lo \
@@ -176,7 +175,6 @@ ALL_MACHINES_CFILES = \
cpu-m68hc12.c \
cpu-m68k.c \
cpu-m88k.c \
- cpu-maxq.c \
cpu-mcore.c \
cpu-mep.c \
cpu-microblaze.c \
@@ -240,7 +238,6 @@ BFD32_BACKENDS = \
coff-i960.lo \
coff-m68k.lo \
coff-m88k.lo \
- coff-maxq.lo \
coff-mips.lo \
coff-or32.lo \
coff-rs6000.lo \
@@ -422,7 +419,6 @@ BFD32_BACKENDS_CFILES = \
coff-i960.c \
coff-m68k.c \
coff-m88k.c \
- coff-maxq.c \
coff-mips.c \
coff-or32.c \
coff-rs6000.c \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 5b5c821..7f67714 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -400,7 +400,6 @@ ALL_MACHINES = \
cpu-m68hc12.lo \
cpu-m68k.lo \
cpu-m88k.lo \
- cpu-maxq.lo \
cpu-mcore.lo \
cpu-mep.lo \
cpu-microblaze.lo \
@@ -473,7 +472,6 @@ ALL_MACHINES_CFILES = \
cpu-m68hc12.c \
cpu-m68k.c \
cpu-m88k.c \
- cpu-maxq.c \
cpu-mcore.c \
cpu-mep.c \
cpu-microblaze.c \
@@ -538,7 +536,6 @@ BFD32_BACKENDS = \
coff-i960.lo \
coff-m68k.lo \
coff-m88k.lo \
- coff-maxq.lo \
coff-mips.lo \
coff-or32.lo \
coff-rs6000.lo \
@@ -720,7 +717,6 @@ BFD32_BACKENDS_CFILES = \
coff-i960.c \
coff-m68k.c \
coff-m88k.c \
- coff-maxq.c \
coff-mips.c \
coff-or32.c \
coff-rs6000.c \
@@ -1208,7 +1204,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-i960.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-m68k.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-m88k.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-maxq.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-mips.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-or32.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-rs6000.Plo@am__quote@
@@ -1265,7 +1260,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-m68hc12.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-m68k.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-m88k.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-maxq.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-mcore.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-mep.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-microblaze.Plo@am__quote@
diff --git a/bfd/archures.c b/bfd/archures.c
index a8a8b9c..0e08571 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -417,9 +417,6 @@ DESCRIPTION
.#define bfd_mach_xc16xs 3
. bfd_arch_xtensa, {* Tensilica's Xtensa cores. *}
.#define bfd_mach_xtensa 1
-. bfd_arch_maxq, {* Dallas MAXQ 10/20 *}
-.#define bfd_mach_maxq10 10
-.#define bfd_mach_maxq20 20
. bfd_arch_z80,
.#define bfd_mach_z80strict 1 {* No undocumented opcodes. *}
.#define bfd_mach_z80 3 {* With ixl, ixh, iyl, and iyh. *}
@@ -498,7 +495,6 @@ extern const bfd_arch_info_type bfd_m68hc11_arch;
extern const bfd_arch_info_type bfd_m68hc12_arch;
extern const bfd_arch_info_type bfd_m68k_arch;
extern const bfd_arch_info_type bfd_m88k_arch;
-extern const bfd_arch_info_type bfd_maxq_arch;
extern const bfd_arch_info_type bfd_mcore_arch;
extern const bfd_arch_info_type bfd_mep_arch;
extern const bfd_arch_info_type bfd_mips_arch;
@@ -576,7 +572,6 @@ static const bfd_arch_info_type * const bfd_archures_list[] =
&bfd_m68hc12_arch,
&bfd_m68k_arch,
&bfd_m88k_arch,
- &bfd_maxq_arch,
&bfd_mcore_arch,
&bfd_mep_arch,
&bfd_microblaze_arch,
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 5c42128..f97c67f 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -2083,9 +2083,6 @@ enum bfd_architecture
#define bfd_mach_xc16xs 3
bfd_arch_xtensa, /* Tensilica's Xtensa cores. */
#define bfd_mach_xtensa 1
- bfd_arch_maxq, /* Dallas MAXQ 10/20 */
-#define bfd_mach_maxq10 10
-#define bfd_mach_maxq20 20
bfd_arch_z80,
#define bfd_mach_z80strict 1 /* No undocumented opcodes. */
#define bfd_mach_z80 3 /* With ixl, ixh, iyl, and iyh. */
diff --git a/bfd/bout.c b/bfd/bout.c
index ad53d8f..34c1a6b 100644
--- a/bfd/bout.c
+++ b/bfd/bout.c
@@ -1,6 +1,6 @@
/* BFD back-end for Intel 960 b.out binaries.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -1094,7 +1094,6 @@ aligncode (bfd *abfd,
unsigned int shrink)
{
bfd_vma dot = output_addr (input_section) + r->address;
- bfd_vma gap;
bfd_vma old_end;
bfd_vma new_end;
unsigned int shrink_delta;
@@ -1110,9 +1109,6 @@ aligncode (bfd *abfd,
than we used to be. */
new_end = ((dot - shrink + size) & ~size);
- /* This is the new end. */
- gap = old_end - ((dot + size) & ~size);
-
shrink_delta = (old_end - new_end) - shrink;
if (shrink_delta)
diff --git a/bfd/coff-i860.c b/bfd/coff-i860.c
index e5ca0c1..b7ada16 100644
--- a/bfd/coff-i860.c
+++ b/bfd/coff-i860.c
@@ -1,6 +1,6 @@
/* BFD back-end for Intel i860 COFF files.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2007, 2008, 2010 Free Software Foundation, Inc.
Created mostly by substituting "860" for "386" in coff-i386.c
Harry Dolan <dolan@ssd.intel.com>, October 1995
@@ -629,6 +629,7 @@ i860_reloc_processing (arelent *cache_ptr, struct internal_reloc *dst,
/* Calculate any reloc addend by looking at the symbol. */
CALC_ADDEND (abfd, ptr, (*dst), cache_ptr);
+ (void) ptr;
cache_ptr->address -= asect->vma;
diff --git a/bfd/coff-maxq.c b/bfd/coff-maxq.c
deleted file mode 100644
index 94d5237..0000000
--- a/bfd/coff-maxq.c
+++ /dev/null
@@ -1,447 +0,0 @@
-/* BFD back-end for MAXQ COFF binaries.
- Copyright 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-
- Contributed by Vineet Sharma (vineets@noida.hcltech.com) Inderpreet S.
- (inderpreetb@noida.hcltech.com)
-
- HCL Technologies Ltd.
-
- This file is part of BFD, the Binary File Descriptor library.
-
- This program is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
-
-#include "sysdep.h"
-#include "bfd.h"
-#include "libbfd.h"
-#include "coff/maxq.h"
-#include "coff/internal.h"
-#include "libcoff.h"
-#include "libiberty.h"
-
-#ifndef MAXQ20
-#define MAXQ20 1
-#endif
-
-#define RTYPE2HOWTO(cache_ptr, dst) \
- ((cache_ptr)->howto = \
- ((dst)->r_type < 48 \
- ? howto_table + (((dst)->r_type==47) ? 6: ((dst)->r_type)) \
- : NULL))
-
-#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2)
-
-/* Code to swap in the reloc offset. */
-#define SWAP_IN_RELOC_OFFSET H_GET_16
-#define SWAP_OUT_RELOC_OFFSET H_PUT_16
-
-#define SHORT_JUMP BFD_RELOC_16_PCREL_S2
-#define LONG_JUMP BFD_RELOC_14
-#define ABSOLUTE_ADDR_FOR_DATA BFD_RELOC_24
-
-/* checks the range of short jump -127 to 128 */
-#define IS_SJUMP_RANGE(x) ((x > -128) && (x < 129))
-#define HIGH_WORD_MASK 0xff00
-#define LOW_WORD_MASK 0x00ff
-
-static long
-get_symbol_value (asymbol *symbol)
-{
- long relocation = 0;
-
- if (bfd_is_com_section (symbol->section))
- relocation = 0;
- else
- relocation = symbol->value +
- symbol->section->output_section->vma + symbol->section->output_offset;
-
- return relocation;
-}
-
-/* This function performs all the maxq relocations.
- FIXME: The handling of the addend in the 'BFD_*'
- relocations types. */
-
-static bfd_reloc_status_type
-coff_maxq20_reloc (bfd * abfd,
- arelent * reloc_entry,
- asymbol * symbol_in,
- void * data,
- asection * input_section ATTRIBUTE_UNUSED,
- bfd * output_bfd ATTRIBUTE_UNUSED,
- char ** error_message ATTRIBUTE_UNUSED)
-{
- unsigned char *addr = NULL;
- unsigned long x = 0;
- long call_addr = 0;
- short addend = 0;
- long diff = 0;
-
- /* If this is an undefined symbol, return error. */
- if (symbol_in->section == &bfd_und_section
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-06-24 8:55 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-06-24 8:55 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via e631bbacdd0e7d2fc9f46e70b0613f5d3fdc6a9e (commit)
via f16eecf420d7d1e00b1508f42fbccfd8046a1778 (commit)
via b2848d06b861b8a14a87e59a0b63b8b2b17cdc2b (commit)
via 530b66b99ed6e938e43087001b88f37f632ad758 (commit)
from fdb12557105f3e7f0de726ecdf55b88aef413776 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit e631bbacdd0e7d2fc9f46e70b0613f5d3fdc6a9e
Merge: fdb12557105f3e7f0de726ecdf55b88aef413776 f16eecf420d7d1e00b1508f42fbccfd8046a1778
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jun 24 10:55:33 2010 +0200
Merge remote branch 'gdb/master'
commit f16eecf420d7d1e00b1508f42fbccfd8046a1778
Author: Hui Zhu <teawater@gmail.com>
Date: Thu Jun 24 06:12:11 2010 +0000
Add command "eval".
commit b2848d06b861b8a14a87e59a0b63b8b2b17cdc2b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jun 24 00:00:09 2010 +0000
*** empty log message ***
commit 530b66b99ed6e938e43087001b88f37f632ad758
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jun 24 00:00:08 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 6 ++++
gdb/NEWS | 4 ++
gdb/doc/ChangeLog | 5 +++
gdb/doc/gdb.texinfo | 5 +++
gdb/printcmd.c | 64 ++++++++++++++++++++++++++++++--------
gdb/testsuite/ChangeLog | 4 ++
gdb/testsuite/gdb.base/eval.exp | 22 +++++++++++++
gdb/version.in | 2 +-
9 files changed, 98 insertions(+), 16 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/eval.exp
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index c000efa..00d837d 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100623
+#define BFD_VERSION_DATE 20100624
#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 b6dd364..b87110d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-24 Hui Zhu <teawater@gmail.com>
+
+ * printcmd.c (ui_printf): New function.
+ (printf_command): Call ui_printf.
+ (_initialize_printcmd): New command "eval".
+
2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
* infrun.c (handle_inferior_event): Handle presence of single-step
diff --git a/gdb/NEWS b/gdb/NEWS
index af65274..1e1ea39 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -84,6 +84,10 @@ qRelocInsn
* New commands
+eval template, expressions...
+ Convert the values of one or more expressions under the control
+ of the string template to a command line, and call it.
+
set target-file-system-kind unix|dos-based|auto
show target-file-system-kind
Set or show the assumed file system kind for target reported file
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 5b59f20..90d767a 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-24 Hui Zhu <teawater@gmail.com>
+
+ * gdb.texinfo: (Commands for Controlled Output): Add
+ documentation for command "eval".
+
2010-06-21 Stan Shebs <stan@codesourcery.com>
* gdb.texinfo: Add explicit @node and @appendix for GFDL.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 463030f..cbd636f 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20073,6 +20073,11 @@ Here's an example of printing DFP types using the above conversion letters:
printf "D32: %Hf - D64: %Df - D128: %DDf\n",1.2345df,1.2E10dd,1.2E1dl
@end smallexample
+@kindex eval
+@item eval @var{template}, @var{expressions}@dots{}
+Convert the values of one or more @var{expressions} under the control of
+the string @var{template} to a command line, and call it.
+
@end table
@node Python
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 42aff63..430ccee 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1956,8 +1956,10 @@ print_variable_and_value (const char *name, struct symbol *var,
fprintf_filtered (stream, "\n");
}
+/* printf "printf format string" ARG to STREAM. */
+
static void
-printf_command (char *arg, int from_tty)
+ui_printf (char *arg, struct ui_file *stream)
{
char *f = NULL;
char *s = arg;
@@ -2340,7 +2342,7 @@ printf_command (char *arg, int from_tty)
read_memory (tem, str, j);
str[j] = 0;
- printf_filtered (current_substring, (char *) str);
+ fprintf_filtered (stream, current_substring, (char *) str);
}
break;
case wide_string_arg:
@@ -2384,7 +2386,8 @@ printf_command (char *arg, int from_tty)
&output, translit_char);
obstack_grow_str0 (&output, "");
- printf_filtered (current_substring, obstack_base (&output));
+ fprintf_filtered (stream, current_substring,
+ obstack_base (&output));
do_cleanups (inner_cleanup);
}
break;
@@ -2416,7 +2419,8 @@ printf_command (char *arg, int from_tty)
&output, translit_char);
obstack_grow_str0 (&output, "");
- printf_filtered (current_substring, obstack_base (&output));
+ fprintf_filtered (stream, current_substring,
+ obstack_base (&output));
do_cleanups (inner_cleanup);
}
break;
@@ -2433,7 +2437,7 @@ printf_command (char *arg, int from_tty)
if (inv)
error (_("Invalid floating value found in program."));
- printf_filtered (current_substring, (double) val);
+ fprintf_filtered (stream, current_substring, (double) val);
break;
}
case long_double_arg:
@@ -2450,7 +2454,8 @@ printf_command (char *arg, int from_tty)
if (inv)
error (_("Invalid floating value found in program."));
- printf_filtered (current_substring, (long double) val);
+ fprintf_filtered (stream, current_substring,
+ (long double) val);
break;
}
#else
@@ -2461,7 +2466,7 @@ printf_command (char *arg, int from_tty)
{
long long val = value_as_long (val_args[i]);
- printf_filtered (current_substring, val);
+ fprintf_filtered (stream, current_substring, val);
break;
}
#else
@@ -2471,14 +2476,14 @@ printf_command (char *arg, int from_tty)
{
int val = value_as_long (val_args[i]);
- printf_filtered (current_substring, val);
+ fprintf_filtered (stream, current_substring, val);
break;
}
case long_arg:
{
long val = value_as_long (val_args[i]);
- printf_filtered (current_substring, val);
+ fprintf_filtered (stream, current_substring, val);
break;
}
@@ -2490,7 +2495,7 @@ printf_command (char *arg, int from_tty)
#if defined (PRINTF_HAS_DECFLOAT)
/* If we have native support for Decimal floating
printing, handle it here. */
- printf_filtered (current_substring, param_ptr);
+ fprintf_filtered (stream, current_substring, param_ptr);
#else
/* As a workaround until vasprintf has native support for DFP
@@ -2579,7 +2584,7 @@ printf_command (char *arg, int from_tty)
decimal_to_string (dfp_ptr, dfp_len, byte_order, decstr);
/* Print the DFP value. */
- printf_filtered (current_substring, decstr);
+ fprintf_filtered (stream, current_substring, decstr);
break;
#endif
@@ -2634,13 +2639,13 @@ printf_command (char *arg, int from_tty)
*fmt_p++ = 'l';
*fmt_p++ = 'x';
*fmt_p++ = '\0';
- printf_filtered (fmt, val);
+ fprintf_filtered (stream, fmt, val);
}
else
{
*fmt_p++ = 's';
*fmt_p++ = '\0';
- printf_filtered (fmt, "(nil)");
+ fprintf_filtered (stream, fmt, "(nil)");
}
break;
@@ -2658,11 +2663,38 @@ printf_command (char *arg, int from_tty)
puts_filtered here. Also, we pass a dummy argument because
some platforms have modified GCC to include -Wformat-security
by default, which will warn here if there is no argument. */
- printf_filtered (last_arg, 0);
+ fprintf_filtered (stream, last_arg, 0);
}
do_cleanups (old_cleanups);
}
+/* Implement the "printf" command. */
+
+static void
+printf_command (char *arg, int from_tty)
+{
+ ui_printf (arg, gdb_stdout);
+}
+
+/* Implement the "eval" command. */
+
+static void
+eval_command (char *arg, int from_tty)
+{
+ struct ui_file *ui_out = mem_fileopen ();
+ struct cleanup *cleanups = make_cleanup_ui_file_delete (ui_out);
+ char *expanded;
+
+ ui_printf (arg, ui_out);
+
+ expanded = ui_file_xstrdup (ui_out, NULL);
+ make_cleanup (xfree, expanded);
+
+ execute_command (expanded, from_tty);
+
+ do_cleanups (cleanups);
+}
+
void
_initialize_printcmd (void)
{
@@ -2826,4 +2858,8 @@ Show printing of source filename and line number with <symbol>."), NULL,
NULL,
show_print_symbol_filename,
&setprintlist, &showprintlist);
+
+ add_com ("eval", no_class, eval_command, _("\
+Convert \"printf format string\", arg1, arg2, arg3, ..., argn to\n\
+a command line, and call it."));
}
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 2d82d69..3808ba5 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-24 Hui Zhu <teawater@gmail.com>
+
+ * gdb.base/eval.exp: New file.
+
2010-06-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gdb.cell/fork.exp: New file.
diff --git a/gdb/testsuite/gdb.base/eval.exp b/gdb/testsuite/gdb.base/eval.exp
new file mode 100644
index 0000000..9f335dd
--- /dev/null
+++ b/gdb/testsuite/gdb.base/eval.exp
@@ -0,0 +1,22 @@
+# Copyright 2010 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+gdb_exit
+gdb_start
+
+gdb_test_no_output "set \$a = 10" "Initialize \$a."
+
+gdb_test "eval \"echo %d\\n\", \$a++" "10" "First eval."
+gdb_test "eval \"echo %d\\n\", \$a*2" "22" "Second eval."
diff --git a/gdb/version.in b/gdb/version.in
index 736f33b..b0d8a54 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.1.50.20100623-cvs
+7.1.50.20100624-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-06-23 20:56 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-06-23 20:56 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via fdb12557105f3e7f0de726ecdf55b88aef413776 (commit)
via 3a61cfc236805fa023f85a9b6cdb34f3098e8bfb (commit)
via cf689f959de86f7ed612c6303278de8bcf0ed308 (commit)
via f7a94f05f413b2189acdde4a4e4bd353fc6b29bb (commit)
via d10135c5a2a13c18da8443cfc7527d49013366c7 (commit)
via 3f36871ea1443956ad0fe01960c55d0ffcc68aef (commit)
via 41aa8525550a3c45130f62845976eb4d28fd7fd2 (commit)
via 68e9f5b9b3afb76d23d99be63d2c8175acdfd84e (commit)
via e726bfc98618407781409c3fd1c7a04fc8516e3d (commit)
via f66065f72a8d0df48829b337c5d516d92d51dd66 (commit)
via 6c708e538b6f069f46e091ec0479bcba5dbdf45d (commit)
via c2bdc493c7b1874ad72e1ac0d565b5f982b92d43 (commit)
via d576a2b423e6f227746d4b4f38c4d11df8103c4f (commit)
via 9764e67018f954b464481e5c92581164dac1b472 (commit)
via 4f9b31f5631d68a8d1ab8f4f9f0660db50a0e427 (commit)
via cafeb8a7c4f50a3bec6f244283331c2827ea1dc9 (commit)
via d1d5e97967edf98a24d2013aa134d60f20a8042a (commit)
via fbe59e99d1b2795aed2fbf87b3b85f21a11036fe (commit)
via 4dbd0ff9a74cefe5bbac0aeb291c0a2331bb6fd4 (commit)
via 1030db4dc7b63ecddfa05561a0d58dbe4b63c6c6 (commit)
via 9470c5ebb23ebd5412505d3e09a4d30efa605bd2 (commit)
via 61a467096d3d3d029f0169afad974df7976d627c (commit)
via 2a6a8b0ca8cc3b966a7583f2492ea144d6845ea2 (commit)
via ca1f7a87dd55df76ffb899a5ece16ec9baa8e0d2 (commit)
via 8dadcd6111e8150bb4a50e48cc21cd0df494bc2e (commit)
via 006fd38d271e0ed5084dc7c921031be693846618 (commit)
via efa71a5d47f9cfbfcea2bd6213f3e05a0ff0d66b (commit)
via 6b7be6f008edaa3c2bcdcadcd88724cf4868601a (commit)
via 21f120f5227d635d6151668d12234a6fd32897b2 (commit)
via 850881d822557117b857f4ac064bda93089fca30 (commit)
via 1f469eb344b700f3be100aa6fa728355f02b0aa5 (commit)
via 961f5648a33adba3941f5fdd843c06fe3e04619c (commit)
via d2328f2aa90d894baab7dda8ec2cf5dbab13233d (commit)
via 06d611d9bd4a0a1027dc35e52ea1ff26e28dd466 (commit)
via eb8ea846c927aed9724068bbf3556017734eb4a8 (commit)
via 35043dbc5466366d44562f848fbd116846df1c3e (commit)
via 23c1bb4f4a99c0e6e809dbc82db8c325c300c5c2 (commit)
via 236efab006132a729e20bdee0500e92f95a8687d (commit)
via c13535701694f1af423c88eaffdfe1e797e9abef (commit)
via 3dc914129977bf0a66d4bede973f265b7618fb2d (commit)
via 76f48f669d7028cabe614612a019eca99a563612 (commit)
via 69e933a37f7b99c57011cf318d6865bd7f994ebe (commit)
from fad6b36b07ef8ec09eb3ca4871c6dc3a29e1f0ef (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit fdb12557105f3e7f0de726ecdf55b88aef413776
Merge: fad6b36b07ef8ec09eb3ca4871c6dc3a29e1f0ef 3a61cfc236805fa023f85a9b6cdb34f3098e8bfb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 23 22:56:05 2010 +0200
Merge remote branch 'gdb/master'
commit 3a61cfc236805fa023f85a9b6cdb34f3098e8bfb
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Wed Jun 23 12:46:34 2010 +0000
ChangeLog:
* infrun.c (handle_inferior_event): Handle presence of single-step
breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
* breakpoint.c (detach_single_step_breakpoints): New function.
(detach_breakpoints): Call it.
(cancel_single_step_breakpoints): New function.
* breakpoint.h (cancel_single_step_breakpoints): Add prototype.
* spu-tdep.c (spu_memory_remove_breakpoint): New function.
(spu_gdbarch_init): Install it.
testsuite/ChangeLog:
* gdb.cell/fork.exp: New file.
* gdb.cell/fork.c: Likewise.
* gdb.cell/fork-spu.c: Likewise.
commit cf689f959de86f7ed612c6303278de8bcf0ed308
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Wed Jun 23 10:21:15 2010 +0000
* archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
when scaning map.
commit f7a94f05f413b2189acdde4a4e4bd353fc6b29bb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 23 10:12:13 2010 +0000
gdb/
* configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
* configure: Regenerate.
commit d10135c5a2a13c18da8443cfc7527d49013366c7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jun 23 00:00:05 2010 +0000
daily update
commit 3f36871ea1443956ad0fe01960c55d0ffcc68aef
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jun 23 00:00:03 2010 +0000
*** empty log message ***
commit 41aa8525550a3c45130f62845976eb4d28fd7fd2
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Jun 22 07:21:28 2010 +0000
* lib/gdb.exp (banned_variables_traced): New global variable.
(gdb_init, gdb_finish): Use new variable to avoid multiple tracing.
(gdb_init): Use `trace add variable' instead of obsolete
`trace variable'.
commit 68e9f5b9b3afb76d23d99be63d2c8175acdfd84e
Author: Stan Shebs <shebs@apple.com>
Date: Tue Jun 22 05:03:17 2010 +0000
2010-06-21 Stan Shebs <stan@codesourcery.com>
* gdb.texinfo: Add explicit @node and @appendix for GFDL.
* annotate.texinfo: Ditto.
* gdbint.texinfo: Ditto.
* stabs.texinfo: Ditto.
commit e726bfc98618407781409c3fd1c7a04fc8516e3d
Author: Hui Zhu <teawater@gmail.com>
Date: Tue Jun 22 02:15:45 2010 +0000
2010-06-22 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_record_lea_modrm): Change warning to query.
(i386_process_record): Ditto.
* record.c (record_memory_query): New variable.
(_initialize_record): New command "set record memory-query".
* record.h (record_memory_query): New extern.
2010-06-22 Hui Zhu <teawater@gmail.com>
* gdb.texinfo: (Process Record and Replay): Add documentation
for command "set record memory-query".
commit f66065f72a8d0df48829b337c5d516d92d51dd66
Author: Doug Evans <dje@google.com>
Date: Tue Jun 22 00:09:08 2010 +0000
* i386-tdep.h (i386_displaced_step_copy_insn): Declare.
* i386-tdep.c (i386_displaced_step_copy_insn): New function.
(i386_syscall_p): Change type of lengthp to int.
(i386_displaced_step_fixup): Handle kernels that run one past a
syscall insn.
* i386-linux-tdep.c (i386_linux_init_abi): Use
i386_displaced_step_copy_insn instead of
simple_displaced_step_copy_insn.
commit 6c708e538b6f069f46e091ec0479bcba5dbdf45d
Author: Doug Evans <dje@google.com>
Date: Tue Jun 22 00:02:07 2010 +0000
* gdb.gdb/selftest.exp: Remove support for gpl v1 and v2 gdb's.
commit c2bdc493c7b1874ad72e1ac0d565b5f982b92d43
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jun 22 00:00:33 2010 +0000
*** empty log message ***
commit d576a2b423e6f227746d4b4f38c4d11df8103c4f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jun 22 00:00:05 2010 +0000
daily update
commit 9764e67018f954b464481e5c92581164dac1b472
Author: espindola <espindola>
Date: Mon Jun 21 21:21:25 2010 +0000
2010-06-21 Rafael Espindola <espindola@google.com>
* fileread.cc (Input_file::find_fie): New
(Input_file::open): Use Input_file::find_fie.
* fileread.h (Input_file::find_fie): New
* plugin.cc (set_extra_library_path): New.
(Plugin::load): Add set_extra_library_path to the transfer vector.
(Plugin_manager::set_extra_library_path): New.
(Plugin_manager::add_input_file): Use the extra search path if set.
(set_extra_library_path(): New.
* plugin.h (Plugin_manager): Add set_extra_library_path and
extra_search_path_.
2010-06-21 Rafael Espindola <espindola@google.com>
* plugin-api.h (ld_plugin_set_extra_library_path): New.
(ld_plugin_tag): Add LDPT_SET_EXTRA_LIBRARY_PATH.
(ld_plugin_tv): Add tv_set_extra_library_path.
commit 4f9b31f5631d68a8d1ab8f4f9f0660db50a0e427
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jun 21 19:49:18 2010 +0000
* dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
(dwarf_type_encoding_name): Likewise.
commit cafeb8a7c4f50a3bec6f244283331c2827ea1dc9
Author: Alexandre Oliva <aoliva@redhat.com>
Date: Mon Jun 21 19:39:32 2010 +0000
* bootstrap-lto.mk: New.
commit d1d5e97967edf98a24d2013aa134d60f20a8042a
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jun 21 18:01:46 2010 +0000
* p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
* p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
* m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
* gdbtypes.h (TYPE_ERROR_NAME): New macro.
* f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
* f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
* dwarf2read.c (tag_type_to_type): Create a new error type on
failure.
* c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
* c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
commit fbe59e99d1b2795aed2fbf87b3b85f21a11036fe
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon Jun 21 17:38:32 2010 +0000
2010-06-21 Michael Snyder <msnyder@vmware.com>
* breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
not add_abbrev_prefix_cmd, for "enable breakpoints".
commit 4dbd0ff9a74cefe5bbac0aeb291c0a2331bb6fd4
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Mon Jun 21 16:50:12 2010 +0000
* dwarf2loc.c (find_location_expression): Add relocation offset
to base-address-selection entry base addresses. Read addresses
(and offsets) as signed/unsigned integers, depending on the
BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
(loclist_describe_location): Likewise.
(disassemble_dwarf_expression): Read DW_OP_addr operand as
unsigned integer. Do not call dwarf2_read_address.
(locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
commit 1030db4dc7b63ecddfa05561a0d58dbe4b63c6c6
Author: Jakub Jelinek <jakub@redhat.com>
Date: Mon Jun 21 16:39:14 2010 +0000
* dwarf2.h (enum dwarf_type): Add DW_ATE_UTF.
commit 9470c5ebb23ebd5412505d3e09a4d30efa605bd2
Author: Stan Shebs <shebs@apple.com>
Date: Mon Jun 21 16:24:57 2010 +0000
2010-06-21 Stan Shebs <stan@codesourcery.com>
* gdb.texinfo: Relicense under GFDL version 1.3.
* annotate.texinfo: Relicense under GFDL version 1.3.
* gdbint.texinfo: Relicense under GFDL version 1.3.
* stabs.texinfo: Relicense under GFDL version 1.3.
* fdl.texi: Update to version 1.3.
commit 61a467096d3d3d029f0169afad974df7976d627c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jun 21 00:00:05 2010 +0000
daily update
commit 2a6a8b0ca8cc3b966a7583f2492ea144d6845ea2
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jun 21 00:00:03 2010 +0000
*** empty log message ***
commit ca1f7a87dd55df76ffb899a5ece16ec9baa8e0d2
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Jun 20 22:23:36 2010 +0000
2010-06-20 Ian Lance Taylor <iant@google.com>
Pedro Alves <pedro@codesourcery.com>
* linux-x86-low.c (always_true): Delete.
(EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
trying to fool the compiler with always_true.
commit 8dadcd6111e8150bb4a50e48cc21cd0df494bc2e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Jun 20 22:18:48 2010 +0000
* tracepoint.c (condition_true_at_tracepoint): Don't run compiled
conditions in gdbserver.
commit 006fd38d271e0ed5084dc7c921031be693846618
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jun 20 00:00:33 2010 +0000
*** empty log message ***
commit efa71a5d47f9cfbfcea2bd6213f3e05a0ff0d66b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jun 20 00:00:05 2010 +0000
daily update
commit 6b7be6f008edaa3c2bcdcadcd88724cf4868601a
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Sat Jun 19 17:59:05 2010 +0000
* spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
value instead of hard-coded SPU_LS_SIZE.
(spu_software_single_step): Likewise.
* spu-tdep.h (SPU_LS_SIZE): Remove.
commit 21f120f5227d635d6151668d12234a6fd32897b2
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Sat Jun 19 17:36:49 2010 +0000
ChangeLog:
* spu-multiarch.c (spu_xfer_partial): Wrap around local store
limit on local store memory accesses.
* spu-linux-nat.c (spu_xfer_partial): Likewise.
* spu-tdep.c (spu_lslr): Remove.
(spu_pointer_to_address): Do not truncate addresses.
(spu_integer_to_address): Likewise.
(spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
* spu-tdep.h: Add comments.
(SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
(SPU_OVERLAY_LMA): Define.
gdbserver/ChangeLog:
* spu-low.c (spu_read_memory): Wrap around local store limit.
(spu_write_memory): Likewise.
testsuite/ChangeLog:
* gdb.arch/spu-ls.exp: New file.
* gdb.arch/spu-ls.c: Likewise.
commit 850881d822557117b857f4ac064bda93089fca30
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jun 19 00:00:33 2010 +0000
*** empty log message ***
commit 1f469eb344b700f3be100aa6fa728355f02b0aa5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jun 19 00:00:05 2010 +0000
daily update
commit 961f5648a33adba3941f5fdd843c06fe3e04619c
Author: Stan Shebs <shebs@apple.com>
Date: Fri Jun 18 23:06:29 2010 +0000
2010-06-18 Stan Shebs <stan@codesourcery.com>
* osdata.c (get_osdata): Warn separately if target does not report
type list.
(info_osdata_command): Allow empty type, report error if target
does not return available types of OS data.
* linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
types if no annex supplied.
* gdb.texinfo (Operating System Auxiliary Information): Describe
"info os" when no arguments given.
commit d2328f2aa90d894baab7dda8ec2cf5dbab13233d
Author: Stan Shebs <shebs@apple.com>
Date: Fri Jun 18 17:44:33 2010 +0000
* thread.c (thread_id_make_value): Make a value representing the
current thread.
(_initialize_thread): Create $_thread.
* gdb.texinfo (Debugging Programs with Multiple Threads): Describe
$_thread.
* gdb.threads/thread-specific.exp: Add tests of $_thread.
commit 06d611d9bd4a0a1027dc35e52ea1ff26e28dd466
Author: espindola <espindola>
Date: Fri Jun 18 16:53:23 2010 +0000
2010-06-18 Rafael Espindola <espindola@google.com>
* plugin.h (ld_plugin_add_input_file, ld_plugin_add_input_library):
Make argument const.
2010-06-18 Rafael Espindola <espindola@google.com>
* plugin.cc (add_input_file,add_input_library)
(Plugin_manager::add_input_file): Make filename arguments const.
* plugin.h (Plugin_manager::add_input_file): Make filename arguments
const.
commit eb8ea846c927aed9724068bbf3556017734eb4a8
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 18 16:51:09 2010 +0000
* gdb.base/gdb11531.exp: Respect gdb,no_hardware_watchpoints flag.
* gdb.base/watch-cond.exp: Likewise.
* gdb.python/py-breakpoint.exp: Likewise.
commit 35043dbc5466366d44562f848fbd116846df1c3e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Jun 18 15:08:28 2010 +0000
* gdb.multi/base.exp, gdb.multi/bkpt-multi-exec.exp: Use
clean_restart, make sure every test has a distinct message, and
that messages don't include the executable' full path.
commit 23c1bb4f4a99c0e6e809dbc82db8c325c300c5c2
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Jun 18 08:16:15 2010 +0000
2010-06-18 Hui Zhu <teawater@gmail.com>
* gdb.texinfo: (Process Record and Replay): Add documentation
for commands "record save" and "record restore".
commit 236efab006132a729e20bdee0500e92f95a8687d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jun 18 00:00:04 2010 +0000
daily update
commit c13535701694f1af423c88eaffdfe1e797e9abef
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jun 18 00:00:03 2010 +0000
*** empty log message ***
commit 3dc914129977bf0a66d4bede973f265b7618fb2d
Author: Doug Evans <dje@google.com>
Date: Thu Jun 17 22:55:52 2010 +0000
* gdb.arch/i386-size.exp: Updated expected output for
DISASSEMBLY_OMIT_FNAME.
commit 76f48f669d7028cabe614612a019eca99a563612
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jun 17 22:36:37 2010 +0000
Minor reformatting in dwarf2read.c:psymtabs_addrmap_cleanup.
Really a tiny insignificant detail that just happened to catch my attention.
Fixed thusly.
2010-06-17 Joel Brobecker <brobecker@adacore.com>
* dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
last local variable declaration. No real code change.
commit 69e933a37f7b99c57011cf318d6865bd7f994ebe
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Jun 17 17:36:50 2010 +0000
* dwarf2read.c (psymtabs_addrmap_cleanup): New function.
(dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
temporary obstack.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 5 +
bfd/archive64.c | 12 +-
bfd/version.h | 2 +-
config/ChangeLog | 4 +
config/bootstrap-lto.mk | 8 ++
gdb/ChangeLog | 116 ++++++++++++++++++
gdb/breakpoint.c | 41 ++++++-
gdb/breakpoint.h | 1 +
gdb/c-typeprint.c | 2 +-
gdb/c-valprint.c | 2 +-
gdb/configure | 90 ++++++---------
gdb/configure.ac | 83 ++++++-------
gdb/doc/ChangeLog | 33 +++++
gdb/doc/annotate.texinfo | 6 +-
gdb/doc/fdl.texi | 91 +++++++++++---
gdb/doc/gdb.texinfo | 46 +++++++-
gdb/doc/gdbint.texinfo | 7 +-
gdb/doc/stabs.texinfo | 6 +-
gdb/dwarf2loc.c | 59 ++++++----
gdb/dwarf2read.c | 45 ++++++-
gdb/f-typeprint.c | 2 +-
gdb/f-valprint.c | 2 +-
gdb/gdbserver/ChangeLog | 17 +++
gdb/gdbserver/linux-x86-low.c | 46 ++++----
gdb/gdbserver/spu-low.c | 38 ++++++-
gdb/gdbserver/tracepoint.c | 16 +++
gdb/gdbtypes.h | 5 +
gdb/i386-linux-tdep.c | 2 +-
gdb/i386-tdep.c | 145 ++++++++++++++++++-----
gdb/i386-tdep.h | 3 +
gdb/infrun.c | 12 ++
gdb/linux-nat.c | 39 ++++++
gdb/linux-record.c | 25 +++--
gdb/m2-valprint.c | 2 +-
gdb/osdata.c | 14 ++-
gdb/p-typeprint.c | 2 +-
gdb/p-valprint.c | 2 +-
gdb/record.c | 15 +++
gdb/record.h | 1 +
gdb/spu-linux-nat.c | 22 +++-
gdb/spu-multiarch.c | 27 ++++-
gdb/spu-tdep.c | 83 +++++++++-----
gdb/spu-tdep.h | 62 +++++++++-
gdb/testsuite/ChangeLog | 43 +++++++
gdb/testsuite/gdb.arch/i386-size.exp | 2 +-
gdb/{record.h => testsuite/gdb.arch/spu-ls.c} | 29 ++---
gdb/testsuite/gdb.arch/spu-ls.exp | 54 +++++++++
gdb/testsuite/gdb.base/gdb11531.exp | 4 +
gdb/testsuite/gdb.base/watch-cond.exp | 15 +++
gdb/{record.h => testsuite/gdb.cell/fork-spu.c} | 43 +++++--
gdb/testsuite/gdb.cell/fork.c | 77 ++++++++++++
gdb/testsuite/gdb.cell/fork.exp | 85 +++++++++++++
gdb/testsuite/gdb.gdb/selftest.exp | 6 -
gdb/testsuite/gdb.multi/base.exp | 38 +++---
gdb/testsuite/gdb.multi/bkpt-multi-exec.exp | 14 +--
gdb/testsuite/gdb.python/py-breakpoint.exp | 5 +
gdb/testsuite/gdb.threads/thread-specific.exp | 16 +++-
gdb/testsuite/lib/gdb.exp | 29 ++++-
gdb/thread.c | 14 ++
gdb/version.in | 2 +-
include/ChangeLog | 15 +++
include/dwarf2.h | 2 +
include/plugin-api.h | 14 ++-
63 files changed, 1387 insertions(+), 361 deletions(-)
create mode 100644 config/bootstrap-lto.mk
copy gdb/{record.h => testsuite/gdb.arch/spu-ls.c} (52%)
create mode 100644 gdb/testsuite/gdb.arch/spu-ls.exp
copy gdb/{record.h => testsuite/gdb.cell/fork-spu.c} (52%)
create mode 100644 gdb/testsuite/gdb.cell/fork.c
create mode 100644 gdb/testsuite/gdb.cell/fork.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d73bb94..41b6cb9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-23 Nathan Sidwell <nathan@codesourcery.com>
+
+ * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
+ when scaning map.
+
2010-06-17 Tristan Gingold <gingold@adacore.com>
* Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
diff --git a/bfd/archive64.c b/bfd/archive64.c
index 067fbb9..bbc4c3f 100644
--- a/bfd/archive64.c
+++ b/bfd/archive64.c
@@ -194,27 +194,27 @@ bfd_elf64_archive_write_armap (bfd *arch,
/* Write out the file offset for the file associated with each
symbol, and remember to keep the offsets padded out. */
-
- current = arch->archive_head;
count = 0;
- while (current != NULL && count < symbol_count)
+ for (current = arch->archive_head;
+ current != NULL && count < symbol_count;
+ current = current->archive_next)
{
/* For each symbol which is used defined in this object, write out
the object file's address in the archive */
- while (map[count].u.abfd == current)
+ for (;
+ count < symbol_count && map[count].u.abfd == current;
+ count++)
{
bfd_putb64 ((bfd_vma) archive_member_file_ptr, buf);
if (bfd_bwrite (buf, 8, arch) != 8)
return FALSE;
- count++;
}
/* Add size of this archive entry */
archive_member_file_ptr += (arelt_size (current)
+ sizeof (struct ar_hdr));
/* remember about the even alignment */
archive_member_file_ptr += archive_member_file_ptr % 2;
- current = current->archive_next;
}
/* now write the strings themselves */
diff --git a/bfd/version.h b/bfd/version.h
index 2b88743..c000efa 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100617
+#define BFD_VERSION_DATE 20100623
#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/config/ChangeLog b/config/ChangeLog
index 78259e6..506837b 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-21 Alexandre Oliva <aoliva@redhat.com>
+
+ * bootstrap-lto.mk: New.
+
2010-06-10 Paolo Bonzini <bonzini@gnu.org>
* override.m4: Remove obsolete (<2.64) definitions.
diff --git a/config/bootstrap-lto.mk b/config/bootstrap-lto.mk
new file mode 100644
index 0000000..14099a0
--- /dev/null
+++ b/config/bootstrap-lto.mk
@@ -0,0 +1,8 @@
+# This option enables LTO for stage2 and stage3. It requires lto to
+# be enabled for stage1 with --enable-stage1-languages.
+
+STAGE2_CFLAGS += -flto
+STAGE3_CFLAGS += -flto
+
+# Ada fails to build with LTO, turn it off for now.
+BOOT_ADAFLAGS += -fno-lto
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5079f8a..b6dd364 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,119 @@
+2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * infrun.c (handle_inferior_event): Handle presence of single-step
+ breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
+ Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
+ TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
+ * breakpoint.c (detach_single_step_breakpoints): New function.
+ (detach_breakpoints): Call it.
+ (cancel_single_step_breakpoints): New function.
+ * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
+
+ * spu-tdep.c (spu_memory_remove_breakpoint): New function.
+ (spu_gdbarch_init): Install it.
+
+2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
+ * configure: Regenerate.
+
+2010-06-22 Hui Zhu <teawater@gmail.com>
+
+ * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
+ (i386_process_record): Ditto.
+ * record.c (record_memory_query): New variable.
+ (_initialize_record): New command "set record memory-query".
+ * record.h (record_memory_query): New extern.
+
+2010-06-21 Doug Evans <dje@google.com>
+
+ * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
+ * i386-tdep.c (i386_displaced_step_copy_insn): New function.
+ (i386_syscall_p): Change type of lengthp to int.
+ (i386_displaced_step_fixup): Handle kernels that run one past a
+ syscall insn.
+ * i386-linux-tdep.c (i386_linux_init_abi): Use
+ i386_displaced_step_copy_insn instead of
+ simple_displaced_step_copy_insn.
+
+2010-06-21 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
+ (dwarf_type_encoding_name): Likewise.
+
+2010-06-21 Tom Tromey <tromey@redhat.com>
+
+ * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
+ * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
+ * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
+ * gdbtypes.h (TYPE_ERROR_NAME): New macro.
+ * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
+ * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
+ * dwarf2read.c (tag_type_to_type): Create a new error type on
+ failure.
+ * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
+ * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
+
+2010-06-21 Michael Snyder <msnyder@vmware.com>
+
+ * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
+ not add_abbrev_prefix_cmd, for "enable breakpoints".
+
+2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * dwarf2loc.c (find_location_expression): Add relocation offset
+ to base-address-selection entry base addresses. Read addresses
+ (and offsets) as signed/unsigned integers, depending on the
+ BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
+ (loclist_describe_location): Likewise.
+ (disassemble_dwarf_expression): Read DW_OP_addr operand as
+ unsigned integer. Do not call dwarf2_read_address.
+ (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
+
+2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
+ value instead of hard-coded SPU_LS_SIZE.
+ (spu_software_single_step): Likewise.
+ * spu-tdep.h (SPU_LS_SIZE): Remove.
+
+2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-multiarch.c (spu_xfer_partial): Wrap around local store
+ limit on local store memory accesses.
+ * spu-linux-nat.c (spu_xfer_partial): Likewise.
+ * spu-tdep.c (spu_lslr): Remove.
+ (spu_pointer_to_address): Do not truncate addresses.
+ (spu_integer_to_address): Likewise.
+ (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
+ * spu-tdep.h: Add comments.
+ (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
+ (SPU_OVERLAY_LMA): Define.
+
+2010-06-18 Stan Shebs <stan@codesourcery.com>
+
+ * osdata.c (get_osdata): Warn separately if target does not report
+ type list.
+ (info_osdata_command): Allow empty type, report error if target
+ does not return available types of OS data.
+ * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
+ types if no annex supplied.
+
+ * thread.c (thread_id_make_value): Make a value representing the
+ current thread.
+ (_initialize_thread): Create $_thread.
+
+2010-06-17 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
+ last local variable declaration. No real code change.
+
+2010-06-17 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
+ (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
+ temporary obstack.
+
2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index a0fb887..f2b973a 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -196,6 +196,8 @@ static void tcatch_command (char *arg, int from_tty);
static void ep_skip_leading_whitespace (char **s);
+static void detach_single_step_breakpoints (void);
+
static int single_step_breakpoint_inserted_here_p (struct address_space *,
CORE_ADDR pc);
@@ -2383,6 +2385,10 @@ detach_breakpoints (int pid)
if (b->inserted)
val |= remove_breakpoint_1 (b, mark_inserted);
}
+
+ /* Detach single-step breakpoints as well. */
+ detach_single_step_breakpoints ();
+
do_cleanups (old_chain);
return val;
}
@@ -10491,6 +10497,39 @@ remove_single_step_breakpoints (void)
}
}
+/* Delete software single step breakpoints without removing them from
+ the inferior. This is intended to be used if the inferior's address
+ space where they were inserted is already gone, e.g. after exit or
+ exec. */
+
+void
+cancel_single_step_breakpoints (void)
+{
+ int i;
+
+ for (i = 0; i < 2; i++)
+ if (single_step_breakpoints[i])
+ {
+ xfree (single_step_breakpoints[i]);
+ single_step_breakpoints[i] = NULL;
+ single_step_gdbarch[i] = NULL;
+ }
+}
+
+/* Detach software single-step breakpoints from INFERIOR_PTID without
+ removing them. */
+
+static void
+detach_single_step_breakpoints (void)
+{
+ int i;
+
+ for (i = 0; i < 2; i++)
+ if (single_step_breakpoints[i])
+ target_remove_breakpoint (single_step_gdbarch[i],
+ single_step_breakpoints[i]);
+}
+
/* Check whether a software single-step breakpoint is inserted at PC. */
static int
@@ -11264,7 +11303,7 @@ With a subcommand you can enable temporarily."));
add_com_alias ("en", "enable", class_breakpoint, 1);
- add_abbrev_prefix_cmd ("breakpoints", class_breakpoint, enable_command, _("\
+ add_prefix_cmd ("breakpoints", class_breakpoint, enable_command, _("\
Enable some breakpoints.\n\
Give breakpoint numbers (separated by spaces) as arguments.\n\
This is used to cancel the effect of the \"disable\" command.\n\
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index d053db8..4514290 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -985,6 +985,7 @@ extern int remove_hw_watchpoints (void);
extern void insert_single_step_breakpoint (struct gdbarch *,
struct address_space *, CORE_ADDR);
extern void remove_single_step_breakpoints (void);
+extern void cancel_single_step_breakpoints (void);
/* Manage manual breakpoints, separate from the normal chain of
breakpoints. These functions are used in murky target-specific
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index 9a6bc6d..d07fb8f 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -1121,7 +1121,7 @@ c_type_print_base (struct type *type, struct ui_file *stream, int show,
break;
case TYPE_CODE_ERROR:
- fprintf_filtered (stream, _("<unknown type>"));
+ fprintf_filtered (stream, "%s", TYPE_ERROR_NAME (type));
break;
case TYPE_CODE_RANGE:
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index e2a5b95..e205705 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -557,7 +557,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
break;
case TYPE_CODE_ERROR:
- fprintf_filtered (stream, _("<error type>"));
+ fprintf_filtered (stream, "%s", TYPE_ERROR_NAME (type));
break;
case TYPE_CODE_UNDEF:
diff --git a/gdb/configure b/gdb/configure
index 7f9c51a..f557aa1 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -14186,20 +14186,19 @@ $as_echo "$gdb_cv_bigtoc" >&6; }
;;
esac
-if test "${gdb_native}" = yes; then
- if test "$GCC" = "yes" ; then
- # The dynamically loaded libthread_db needs access to symbols in the gdb
- # executable. Older GNU ld supports --export-dynamic but --dynamic-list
- # may not be supported there.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
$as_echo_n "checking for the dynamic export flag... " >&6; }
- old_LDFLAGS="$LDFLAGS"
- # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
- RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
- LDFLAGS="$LDFLAGS $RDYNAMIC"
- dynamic_list=false
- if test "${have_libpython}" = no; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+dynamic_list=false
+if test "${gdb_native}" = yes; then
+ # The dynamically loaded libthread_db needs access to symbols in the gdb
+ # executable. Older GNU ld supports --export-dynamic but --dynamic-list
+ # may not be supported there.
+ old_LDFLAGS="$LDFLAGS"
+ # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
+ RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
+ LDFLAGS="$LDFLAGS $RDYNAMIC"
+ if test "${have_libpython}" = no; then
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
@@ -14215,14 +14214,14 @@ if ac_fn_c_try_link "$LINENO"; then :
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
- else
- # Workaround http://bugs.python.org/issue4434 where static
- # libpythonX.Y.a would get its symbols required for
- # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
- # Problem does not happen for the recommended libpythonX.Y.so linkage.
- old_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $PYTHON_CFLAGS"
- if test "$cross_compiling" = yes; then :
+ else
+ # Workaround http://bugs.python.org/issue4434 where static
+ # libpythonX.Y.a would get its symbols required for
+ # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
+ # Problem does not happen for the recommended libpythonX.Y.so linkage.
+ old_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+ if test "$cross_compiling" = yes; then :
true
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14232,10 +14231,10 @@ int
main ()
{
int err;
- Py_Initialize ();
- err = PyRun_SimpleString ("import itertools\n");
- Py_Finalize ();
- return err == 0 ? 0 : 1;
+ Py_Initialize ();
+ err = PyRun_SimpleString ("import itertools\n");
+ Py_Finalize ();
+ return err == 0 ? 0 : 1;
;
return 0;
}
@@ -14247,41 +14246,20 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
- CFLAGS="$old_CFLAGS"
- fi
- if $dynamic_list;then
- found="-Wl,--dynamic-list"
- RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
- else
- RDYNAMIC="-rdynamic"
- LDFLAGS="$old_LDFLAGS $RDYNAMIC"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- found="-rdynamic"
+ CFLAGS="$old_CFLAGS"
+ fi
+ LDFLAGS="$old_LDFLAGS"
+fi
+if $dynamic_list; then
+ found="-Wl,--dynamic-list"
+ RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
else
- found="no"
- # Error on its usage by .mh file.
- RDYNAMIC="no-rdynamic-available"
+ found="-rdynamic"
+ RDYNAMIC="-rdynamic"
fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- LDFLAGS="$old_LDFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
$as_echo "$found" >&6; }
- fi
-fi
if test ${build} = ${host} -a ${host} = ${target} ; then
diff --git a/gdb/configure.ac b/gdb/configure.ac
index aeac060..7ddb67f 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1453,54 +1453,47 @@ aix*)
;;
esac
+AC_MSG_CHECKING(for the dynamic export flag)
+dynamic_list=false
if test "${gdb_native}" = yes; then
- if test "$GCC" = "yes" ; then
- # The dynamically loaded libthread_db needs access to symbols in the gdb
- # executable. Older GNU ld supports --export-dynamic but --dynamic-list
- # may not be supported there.
- AC_MSG_CHECKING(for the dynamic export flag)
- old_LDFLAGS="$LDFLAGS"
- # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
- RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
- LDFLAGS="$LDFLAGS $RDYNAMIC"
- dynamic_list=false
- if test "${have_libpython}" = no; then
- AC_TRY_LINK([], [], [dynamic_list=true])
- else
- # Workaround http://bugs.python.org/issue4434 where static
- # libpythonX.Y.a would get its symbols required for
- # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
- # Problem does not happen for the recommended libpythonX.Y.so linkage.
- old_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $PYTHON_CFLAGS"
- AC_RUN_IFELSE(
- AC_LANG_PROGRAM(
- [#include "]${have_libpython}[/Python.h"],
- [int err;
- Py_Initialize ();
- err = PyRun_SimpleString ("import itertools\n");
- Py_Finalize ();
- return err == 0 ? 0 : 1;]),
- [dynamic_list=true], [], [true])
- CFLAGS="$old_CFLAGS"
- fi
- if $dynamic_list;then
- found="-Wl,--dynamic-list"
- RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
- else
- RDYNAMIC="-rdynamic"
- LDFLAGS="$old_LDFLAGS $RDYNAMIC"
- AC_TRY_LINK([], [],
- [found="-rdynamic"],
- [found="no"
- # Error on its usage by .mh file.
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-06-17 12:53 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-06-17 12:53 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via fad6b36b07ef8ec09eb3ca4871c6dc3a29e1f0ef (commit)
via 0fb38bd7861b10422138ea05d36a9ebf56379dd6 (commit)
via 60aa9ab4eca3b509e4571dbe08006d2a73b01cb6 (commit)
via 253dc1ab6d9a50b6d02e7d31019ab81e79caac83 (commit)
via 340ec0d6e925b61b7e5ca07a5bb004b3624b841b (commit)
via 5e22166a43d7e6c96b0fffa602c8b397c475b948 (commit)
via f744b8ffbb5d48bb54e06f720049d278b4ebc2a3 (commit)
via 8a039d745ceafac797c3acc5e0a7ce99f45f4c32 (commit)
via f4e58af991cad1dc5850a30669c2358b28029a84 (commit)
via 994a99eb4a51164f81633f62b4ca9622dc9cc437 (commit)
via 9bdae575ee09a4aad3c1877fb9ac4f285792218b (commit)
via 89b07c3ecdbf60c5687574dde23bdaaf1f0fff36 (commit)
via 38b556fd94d4f4f6eb49e0b09180066199d75e96 (commit)
via 33811322bbb01fb4d226e15ac63ef97ef6d0f26a (commit)
via 1fb13b9de96e0897f5739f9032af1001b71d6917 (commit)
via 97bb31ffbe8689b43efb56526c579819e8a37eb0 (commit)
via cecf15084ab7cdd970b78966a7ee22b53d441137 (commit)
via 1872b47d688a56c1326028e10a73f92ab1c76b55 (commit)
via dcb125f2347796489510f75865c34ddf31e4b3ea (commit)
via 999765c134b3af5be36b3a145e161c15a275a4bf (commit)
via 744735550d4a4fd6d4be40776069d799dca5ee39 (commit)
via a27ed1dae752ea701a5a53456509cb3266f0f304 (commit)
via 98682e9095c4ad48e9372f9a1a181023c7483f68 (commit)
via 173ae2ef83c91c270cbfc018031d7572f007c074 (commit)
via ca2fb93bc47049659ba158ebf3c3ba8b8ceca628 (commit)
via 0ef30c31f687cd60f5d3c2f0a888b80929c14b6f (commit)
via c078a267cf7d3bd4c051f0fdb629980231703313 (commit)
via 1ae5c07ec0cd0943d82feddbb0ec50662d42523e (commit)
via 02de65109527714d6ac06e83192a60e4a5d80b9b (commit)
via a2998485b466ebfeccefa3dfdea8d3b9968460d3 (commit)
via 4f162c93f2923377f7da130ae37391032736df3f (commit)
via 5f867407942a94f4d56a2187586a5433f1232368 (commit)
via 165396c67cc2792f1a4d095d8821bf92e29925cb (commit)
via 9a7a88919b59f19abd2fe14ab0e618fab07b726d (commit)
via 74efc60dd7074a84faf4f2e7bc4f6715ea046c24 (commit)
via 9448da351a50fc7bc15e40ba13cafae472138201 (commit)
via 256a06dcc88d1f2ce7c50401f63ca593821d278e (commit)
via 5d611756b61f1f6cb9aea89aff782fb21c7fa83f (commit)
via d84d1937e95227d2f92e7d998cab40bedeac6669 (commit)
via 32336eb7f678579a5b10613e35e56e8bb07a051b (commit)
via 8154cf97511d04272c06b1bf1d6b8a65f4fbc061 (commit)
via d98a8afbc84c207e0ad900f0e09c7de70308871b (commit)
via e5fbb276dfff8572b91e1d751e57b25c1417352b (commit)
via e6ae6bbe763f7999fc3f502b92711f7367a2cacc (commit)
via 0b6b14823d57df2c6a7da5f15d4086e749d101b6 (commit)
via 4403bfe8b48d96ead23d8525ecde064e434dc4b1 (commit)
via fe14cd214171cf1ef9f0be0ff364e5f52c642bd0 (commit)
via c52dbdaa1b0f45e362a83f3e09113a8c1b83f7ab (commit)
via 370be890d2e1253ea981a979ea899b42bac94643 (commit)
via 2896997e4828570e68f99fdf57d2e5ec7a575629 (commit)
via 56e0645ff746156ca7f7e606f9f5193256fd0ad8 (commit)
via d7d3801e9131d9e821bf8d7145325368d89b3d89 (commit)
via d07d104076d5eeaa8ed545ea3562ec399b222fed (commit)
via 243efe6cacd0ee083c8231654425a545f671f5a5 (commit)
via 5b635a34cbe32e45f4e7eba7456d600a1247f45b (commit)
via 50bb49d88c2d5d23178074d53c41cd88e7787a81 (commit)
via f5c25f77493eb8c3f72ad14666b3ebd7114f2d8d (commit)
via 421f33a10a5ef9209d5c7b9c9cfb7b1e4e76443f (commit)
via e1ec21f0c16e23bfa6bf082b3d54e22c3fc2ba55 (commit)
via c55d7b731113a1a49d483677d7a0dd8c91b4b31d (commit)
via 3ef4e131f7370d209e5da3d2c020d5067ea02927 (commit)
via b50e7391184d92f3740e0d89976cda95e7b29113 (commit)
via da54d53a3c131d379d13d83df5b2116794a5e896 (commit)
via 14ee0cb9fee386d4383355eda59b34566e7f2458 (commit)
via ae654289a61a96977b9244a4888214c99952ae7d (commit)
via c0d7ff47f8686da59549edf40587a9339f19d657 (commit)
via 5638e6b1d4439cc3422e4e4a04a45769603f963b (commit)
via 8e0b358973fd24a381b52ed2c3cd3f5f08b42819 (commit)
via bee5880049dc5c97c6ff909839b4292bcb8cb303 (commit)
via d73ab641993f077d8c04a44b6d6fd63e1964baf1 (commit)
via de9fb6090acb18fb052710c136881fb5e8e18e30 (commit)
via 372bfdc70ad10f60c4903bdbf75940ad52dcc857 (commit)
via 5055b03495df73f540db3aac929df5c3c917c0a2 (commit)
via 8f682f5544da9c8060b07b8116962fca4f83c155 (commit)
via c6b52e058c7b5659c840e2537650fc66068e9ce9 (commit)
via 854bb5943dfa61a984faec7bc5e818e69d486812 (commit)
via e71cf42b2ef46b652bcd4d8130fdf9b32accbb25 (commit)
via 4aa2e494a9fb23f2cf3a474660fced627bfd3fda (commit)
via 945ea8c407584f50aafabcc256314f1ce4b01155 (commit)
via 95b9cd161d8202435e4fd2494ade07e80fd6f574 (commit)
via c55d0218bfbcfbce1ca3829e5df9a24d94a387f3 (commit)
via 10f355eb784b2607e7ed2cf1f32454dd6d962d04 (commit)
via 08e6bca95da76ed5616284e6bbe2cf0ea6fd3cd5 (commit)
via beb51da8e34d73e2f86d7ffbdfa7b11f16581a30 (commit)
via dc67bdae60c77b592e6ef6ac0b4e443236fb091f (commit)
via 02005504463ee4bb8e2ae1161dbdca3db0911e80 (commit)
via 00734e62b334b34dacc41701d56da502c6975eda (commit)
via 2898fca5c1c1cae6f7bec43d185dbe7cec2db28f (commit)
via 8763d72624afad909ad451de190ad48b3926c29d (commit)
via 33805f2b4f916928b1c1b52468bcd696cd2dcb5e (commit)
via 2b089485f568b64ace7a8910ea43843c9f7b2fb9 (commit)
via d2489d897948c4948f40f16b6c27fd3da1409188 (commit)
via 1325f70e82293ba5128052e78eabcbfb10dd97d0 (commit)
via 9db629607a84602e7b94dfd76f58bf11de9cc237 (commit)
via ee34d28e1a8598f13d06aa7595d84e2ee905547b (commit)
from 69586a9d5fd734221116b1b3942d57abd49f0fe3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit fad6b36b07ef8ec09eb3ca4871c6dc3a29e1f0ef
Merge: 69586a9d5fd734221116b1b3942d57abd49f0fe3 0fb38bd7861b10422138ea05d36a9ebf56379dd6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jun 17 14:53:33 2010 +0200
Merge remote branch 'gdb/master'
commit 0fb38bd7861b10422138ea05d36a9ebf56379dd6
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Jun 17 08:19:12 2010 +0000
2010-06-17 Tristan Gingold <gingold@adacore.com>
* Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
(BFD64_BACKENDS_CFILES): ... here.
(BFD32_BACKENDS): Move vms-alpha.lo to ...
(BFD64_BACKENDS): ... here.
* Makefile.in: Regenerate.
commit 60aa9ab4eca3b509e4571dbe08006d2a73b01cb6
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jun 17 00:00:05 2010 +0000
daily update
commit 253dc1ab6d9a50b6d02e7d31019ab81e79caac83
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jun 17 00:00:03 2010 +0000
*** empty log message ***
commit 340ec0d6e925b61b7e5ca07a5bb004b3624b841b
Author: sergiodj <sergiodj>
Date: Wed Jun 16 18:30:26 2010 +0000
gdb/ChangeLog:
2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
* breakpoint.c: Include parser-defs.h.
(watchpoint_exp_is_const): New function.
(watch_command_1): Call watchpoint_exp_is_const to check
if the expression is constant.
gdb/doc/ChangeLog:
2010-06-16 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.texinfo: Include information about the correct use
of addresses in the `watch' command.
gdb/testsuite/ChangeLog:
2010-06-16 Jan Kratochvil <jan.kratochvil@redhat.com>
Sergio Durigan Junior <sergiodj@redhat.com>
* gdb.base/watch-notconst.c: New file.
* gdb.base/watch-notconst.S: New file.
* gdb.base/watch-notconst2.c: New file.
* gdb.base/watch-notconst2.S: New file.
* gdb.base/watch-notconst.exp: New file.
* gdb.base/watchpoint.c (global_ptr_ptr): New variable.
(func4): Add operations on `global_ptr_ptr'.
* gdb.base/watchpoint.exp (test_constant_watchpoint): New
routine to test watchpoints created with a constant expression.
(test_inaccessible_watchpoint): Include tests for watchpoints
created with a constant expression.
commit 5e22166a43d7e6c96b0fffa602c8b397c475b948
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Jun 16 16:27:35 2010 +0000
PR gas/11673
* m68k-opc.c (m68k_opcodes): Remove move.l for isab and later.
* gas/m68k/p11673.s: New test.
* gas/m68k/all.exp: Run the new test.
commit f744b8ffbb5d48bb54e06f720049d278b4ebc2a3
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Jun 16 15:12:49 2010 +0000
2010-06-16 Vincent Rivire <vincent.riviere@freesbee.fr>
PR binutils/11676
* m68k-dis.c (print_insn_arg): Prefix float constants with #0e.
2010-06-16 Nick Clifton <nickc@redhat.com>
PR binutils/11676
* gas/m68k/pr11676.s: New test.
* gas/m68k/pr11676.d: Expected disassembly.
* gas/m68k/all.exp: Run the new test.
commit 8a039d745ceafac797c3acc5e0a7ce99f45f4c32
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Wed Jun 16 00:36:00 2010 +0000
bfd:
* elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
elf32_tic6x_merge_private_bfd_data): New.
(bfd_elf32_bfd_merge_private_bfd_data,
elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
Define.
* elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
binutils:
* readelf.c (display_tic6x_attribute, process_tic6x_specific):
New.
(process_arch_specific): Call process_tic6x_specific for
EM_TI_C6000.
gas:
* config/tc-tic6x.c: Include elf/tic6x.h.
(tic6x_arch_attribute, tic6x_seen_insns): New.
(tic6x_arch_table, tic6x_arches): Add attribute values.
(tic6x_use_arch): Handle attribute settings.
(tic6x_attributes_set_explicitly, s_tic6x_c6xabi_attribute,
tic6x_attribute_table, tic6x_attributes,
tic6x_convert_symbolic_attribute): New.
(md_pseudo_table): Add c6xabi_attribute.
(md_assemble): Set tic6x_seen_insns and tic6x_arch_attribute.
(tic6x_set_attribute_int, tic6x_set_attributes): New.
(tic6x_end): Call tic6x_set_attributes.
* config/tc-tic6x.h (CONVERT_SYMBOLIC_ATTRIBUTE): Define.
(tic6x_convert_symbolic_attribute): Declare.
gas/testsuite:
* gas/elf/elf.exp: Set target_machine for tic6x-*-*.
* gas/elf/section2.e-tic6x, gas/tic6x/attr-arch-directive-1.d,
gas/tic6x/attr-arch-directive-1.s,
gas/tic6x/attr-arch-directive-2.d,
gas/tic6x/attr-arch-directive-2.s,
gas/tic6x/attr-arch-directive-3.d,
gas/tic6x/attr-arch-directive-3.s,
gas/tic6x/attr-arch-directive-4.d,
gas/tic6x/attr-arch-directive-4.s,
gas/tic6x/attr-arch-directive-5.d,
gas/tic6x/attr-arch-directive-5.s,
gas/tic6x/attr-arch-opts-c62x.d, gas/tic6x/attr-arch-opts-c64x+.d,
gas/tic6x/attr-arch-opts-c64x.d, gas/tic6x/attr-arch-opts-c674x.d,
gas/tic6x/attr-arch-opts-c67x+.d, gas/tic6x/attr-arch-opts-c67x.d,
gas/tic6x/attr-arch-opts-none-1.d,
gas/tic6x/attr-arch-opts-none-2.d,
gas/tic6x/attr-arch-opts-override-1.d,
gas/tic6x/attr-arch-opts-override-2.d, gas/tic6x/empty.s: New.
include/elf:
* tic6x-attrs.h: New.
* tic6x.h: Include elf/tic6x-attrs.h for attribute table.
(C6XABI_Tag_CPU_arch_none, C6XABI_Tag_CPU_arch_C62X,
C6XABI_Tag_CPU_arch_C67X, C6XABI_Tag_CPU_arch_C67XP,
C6XABI_Tag_CPU_arch_C64X, C6XABI_Tag_CPU_arch_C64XP,
C6XABI_Tag_CPU_arch_C674X): Define.
ld:
* emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
ld/testsuite:
* ld-elf/orphan3.d: Allow section names starting '_'.
* ld-tic6x/attr-arch-c62x-c62x.d, ld-tic6x/attr-arch-c62x-c64x+.d,
ld-tic6x/attr-arch-c62x-c64x.d, ld-tic6x/attr-arch-c62x-c674x.d,
ld-tic6x/attr-arch-c62x-c67x+.d, ld-tic6x/attr-arch-c62x-c67x.d,
ld-tic6x/attr-arch-c62x.s, ld-tic6x/attr-arch-c64x+-c62x.d,
ld-tic6x/attr-arch-c64x+-c64x+.d, ld-tic6x/attr-arch-c64x+-c64x.d,
ld-tic6x/attr-arch-c64x+-c674x.d,
ld-tic6x/attr-arch-c64x+-c67x+.d, ld-tic6x/attr-arch-c64x+-c67x.d,
ld-tic6x/attr-arch-c64x+.s, ld-tic6x/attr-arch-c64x-c62x.d,
ld-tic6x/attr-arch-c64x-c64x+.d, ld-tic6x/attr-arch-c64x-c64x.d,
ld-tic6x/attr-arch-c64x-c674x.d, ld-tic6x/attr-arch-c64x-c67x+.d,
ld-tic6x/attr-arch-c64x-c67x.d, ld-tic6x/attr-arch-c64x.s,
ld-tic6x/attr-arch-c674x-c62x.d, ld-tic6x/attr-arch-c674x-c64x+.d,
ld-tic6x/attr-arch-c674x-c64x.d, ld-tic6x/attr-arch-c674x-c674x.d,
ld-tic6x/attr-arch-c674x-c67x+.d, ld-tic6x/attr-arch-c674x-c67x.d,
ld-tic6x/attr-arch-c674x.s, ld-tic6x/attr-arch-c67x+-c62x.d,
ld-tic6x/attr-arch-c67x+-c64x+.d, ld-tic6x/attr-arch-c67x+-c64x.d,
ld-tic6x/attr-arch-c67x+-c674x.d,
ld-tic6x/attr-arch-c67x+-c67x+.d, ld-tic6x/attr-arch-c67x+-c67x.d,
ld-tic6x/attr-arch-c67x+.s, ld-tic6x/attr-arch-c67x-c62x.d,
ld-tic6x/attr-arch-c67x-c64x+.d, ld-tic6x/attr-arch-c67x-c64x.d,
ld-tic6x/attr-arch-c67x-c674x.d, ld-tic6x/attr-arch-c67x-c67x+.d,
ld-tic6x/attr-arch-c67x-c67x.d, ld-tic6x/attr-arch-c67x.s: New.
commit f4e58af991cad1dc5850a30669c2358b28029a84
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jun 16 00:00:33 2010 +0000
*** empty log message ***
commit 994a99eb4a51164f81633f62b4ca9622dc9cc437
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jun 16 00:00:06 2010 +0000
daily update
commit 9bdae575ee09a4aad3c1877fb9ac4f285792218b
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Tue Jun 15 23:10:10 2010 +0000
* elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
(struct elf_backend_data): Update comment on obj_attrs_order.
* elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
_bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
instead of hardcoded 4.
* elf32-arm.c (elf32_arm_obj_attrs_order): Use
LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
instead of hardcoded 4 and 5.
(elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
instead of hardcoded 4.
commit 89b07c3ecdbf60c5687574dde23bdaaf1f0fff36
Author: Andreas Schwab <schwab@suse.de>
Date: Tue Jun 15 18:37:16 2010 +0000
* configure.ac: Check for RDYNAMIC also for cross builds.
* configure: Regenerate.
commit 38b556fd94d4f4f6eb49e0b09180066199d75e96
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jun 15 17:57:38 2010 +0000
* Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
(SFILES): Remove solib-null.c, add solib-target.c.
(COMMON_OBS): Remove solib-null.o, add solib-target.o.
(ALLDEPFILES): Remove solib-target.c.
* solib-target.c (_initialize_solib_target): Set
current_target_so_ops to solib_target_so_ops if not already set.
* solib-null.c: Delete.
commit 33811322bbb01fb4d226e15ac63ef97ef6d0f26a
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jun 15 10:44:48 2010 +0000
* linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
(i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
LONGEST uses.
* server.h (struct emit_ops): Replace int64_t uses with LONGEST
uses.
* tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
uses with LONGEST uses.
commit 1fb13b9de96e0897f5739f9032af1001b71d6917
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jun 15 00:00:05 2010 +0000
daily update
commit 97bb31ffbe8689b43efb56526c579819e8a37eb0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jun 15 00:00:03 2010 +0000
*** empty log message ***
commit cecf15084ab7cdd970b78966a7ee22b53d441137
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Jun 14 22:16:08 2010 +0000
gdb/
2010-06-14 Pedro Alves <pedro@codesourcery.com>
* NEWS: Mention GDBserver's JIT compilation of tracepoint
bytecode.
gdb/gdbserver/
2010-06-14 Stan Shebs <stan@codesourcery.com>
Pedro Alves <pedro@codesourcery.com>
Bytecode compiler.
* linux-x86-low.c: Include limits.h.
(add_insns): New.
(always_true): New.
(EMIT_ASM): New.
(EMIT_ASM32): New.
(amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
(amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
(amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
(amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
(amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
(amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
(amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
(amd64_emit_const, amd64_emit_call, amd64_emit_reg)
(amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
(amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
(amd64_emit_void_call_2): New.
(amd64_emit_ops): New.
(i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
(i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
(i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
(i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
(i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
(i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
(i386_emit_goto, i386_write_goto_address, i386_emit_const)
(i386_emit_call, i386_emit_reg, i386_emit_pop)
(i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
(i386_emit_stack_adjust, i386_emit_int_call_1)
(i386_emit_void_call_2): New.
(i386_emit_ops): New.
(x86_emit_ops): New.
(the_low_target): Install x86_emit_ops.
* server.h (struct emit_ops): New.
(get_raw_reg_func_addr): Declare.
(current_insn_ptr, emit_error): Declare.
* tracepoint.c (get_raw_reg, get_trace_state_variable_value)
(set_trace_state_variable_value): New defines.
(struct ipa_sym_addresses): New fields addr_get_raw_reg,
addr_get_trace_state_variable_value and
addr_set_trace_state_variable_value.
(symbol_list): New fields for get_raw_reg,
get_trace_state_variable_value and set_trace_state_variable_value.
(condfn): New typedef.
(struct tracepoint): New field `compiled_cond'.
(do_action_at_tracepoint): Clear compiled_cond.
(get_trace_state_variable_value, set_trace_state_variable_value):
Export in the IPA.
(condition_true_at_tracepoint): If there's a compiled condition,
run that.
(current_insn_ptr, emit_error): New globals.
(struct bytecode_address): New.
(get_raw_reg_func_addr): New.
(emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
(emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
(emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
(emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
(emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
(emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
(emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
(compile_tracepoint_condition, compile_bytecodes): New.
* target.h (emit_ops): Forward declare.
(struct target_ops): New field emit_ops.
(target_emit_ops): New.
* linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
* linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
* linux-low.c (linux_emit_ops): New.
(linux_target_ops): Install it.
* linux-low.h (struct linux_target_ops): New field emit_ops.
commit 1872b47d688a56c1326028e10a73f92ab1c76b55
Author: DJ Delorie <dj@delorie.com>
Date: Mon Jun 14 19:23:23 2010 +0000
merge from gcc
commit dcb125f2347796489510f75865c34ddf31e4b3ea
Author: Kevin Buettner <kevinb@redhat.com>
Date: Mon Jun 14 19:21:09 2010 +0000
Examine instruction at label `start' instead of `_start'.
commit 999765c134b3af5be36b3a145e161c15a275a4bf
Author: Kevin Buettner <kevinb@redhat.com>
Date: Mon Jun 14 18:43:45 2010 +0000
* elf32-h8300.c (elf_symbol_leading_char): Define.
commit 744735550d4a4fd6d4be40776069d799dca5ee39
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Mon Jun 14 16:09:55 2010 +0000
* cp-valprint.c (cp_print_static_field): Members of
dont_print_stat_array_obstack are of type "struct type *".
(_initialize_cp_valprint): Likewise.
commit a27ed1dae752ea701a5a53456509cb3266f0f304
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Mon Jun 14 15:45:32 2010 +0000
* gdb.mi/mi-nonstop.exp: Do not call perror if non-stop mode is
not supported on the target.
* gdb.mi/mi-nonstop-exit.exp: Likewise.
* gdb.mi/mi-ns-stale-regcache.exp: Likewise.
* gdb.mi/mi-nsintrall.exp: Likewise.
* gdb.mi/mi-nsmoribund.exp: Likewise.
* gdb.mi/mi-nsthrexec.exp: Likewise.
commit 98682e9095c4ad48e9372f9a1a181023c7483f68
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jun 14 14:48:04 2010 +0000
gas/
* config/tc-ppc.c (md_assemble): Emit APUinfo section for
PPC_OPCODE_E500.
gas/testsuite/
* gas/ppc/e500.s: Add eieio, mbar and lwsync
* gas/ppc/e500.d: Likewise.
include/opcode/
* ppc.h (PPC_OPCODE_E500): Define.
opcodes/
* ppc-dis.c (ppc_opts): Remove PPC_OPCODE_E500MC from e500 and
e500x2. Add PPC_OPCODE_E500 to e500 and e500x2
* ppc-opc.c (powerpc_opcodes): Deprecate all opcodes on EFS which
touch floating point regs and are enabled by COM, PPC or PPCCOM.
Treat sync as msync on e500. Treat eieio as mbar 1 on e500.
Treat lwsync as msync on e500.
commit 173ae2ef83c91c270cbfc018031d7572f007c074
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Mon Jun 14 13:53:04 2010 +0000
* linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
* linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
commit ca2fb93bc47049659ba158ebf3c3ba8b8ceca628
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Mon Jun 14 12:10:54 2010 +0000
* frame.c (frame_register_unwind): Do not access contents
of "optimized out" unwound register value.
commit 0ef30c31f687cd60f5d3c2f0a888b80929c14b6f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jun 14 08:26:54 2010 +0000
gdb/
* ada-lang.h (ada_print_type): Make varstring const.
* ada-typeprint.c (print_func_type): Make name const.
(ada_print_type): Make varstring const.
* c-lang.h (c_print_type): Make varstring const.
* c-typeprint.c (c_print_type): Likewise.
* f-lang.h (f_print_type): Likewise.
* f-typeprint.c (f_print_type): Likewise.
* jv-lang.h (java_print_type): Likewise.
* jv-typeprint.c (java_print_type): Likewise.
* language.c (unk_lang_print_type): Likewise.
* language.h (struct language_defn) <la_print_type>: Likewise.
* m2-lang.h (m2_print_type): Likewise.
* m2-typeprint.c (m2_print_type): Likewise.
* p-lang.h (pascal_print_type): Likewise.
* p-typeprint.c (pascal_print_type): Likewise.
commit c078a267cf7d3bd4c051f0fdb629980231703313
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jun 14 00:00:10 2010 +0000
daily update
commit 1ae5c07ec0cd0943d82feddbb0ec50662d42523e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jun 14 00:00:09 2010 +0000
*** empty log message ***
commit 02de65109527714d6ac06e83192a60e4a5d80b9b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jun 13 00:00:36 2010 +0000
*** empty log message ***
commit a2998485b466ebfeccefa3dfdea8d3b9968460d3
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jun 13 00:00:07 2010 +0000
daily update
commit 4f162c93f2923377f7da130ae37391032736df3f
Author: Stan Shebs <shebs@apple.com>
Date: Sat Jun 12 00:05:20 2010 +0000
2010-06-11 Stan Shebs <stan@codesourcery.com>
Add per-operation permission flags.
* target.h (struct target_ops): New method to_set_permissions.
(target_set_permissions): New macro.
(target_insert_breakpoint): Change macro to function.
(target_remove_breakpoint): Ditto.
(target_stop): Ditto.
(may_write_registers): Declare.
(may_write_memory): Declare.
(may_insert_breakpoints): Declare.
(may_insert_tracepoints): Declare.
(may_insert_fast_tracepoints): Declare.
(may_stop): Declare.
* target.c (may_write_registers, may_write_registers_1): New globals.
(may_write_memory, may_write_memory_1): New globals.
(may_insert_breakpoints, may_insert_breakpoints_1): New globals.
(may_insert_tracepoints, may_insert_tracepoints_1): New globals.
(may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
globals.
(may_stop, may_stop_1): New global.
(target_xfer_partial): Test for write permission.
(target_store_registers): Ditto.
(target_insert_breakpoint): New function.
(target_remove_breakpoint): New function.
(target_stop): New function.
(_initialize_targets): Add new set/show variables.
(set_write_memory_permission): New function.
(update_target_permissions): New function.
(set_target_permissions): New function.
(update_current_target): Default to_set_permissions.
(_initialize_targets): Use new globals and setter function.
* tracepoint.c (start_tracing): Test for permission.
* inferior.h (update_observer_mode): Declare.
* infrun.c (non_stop_1): Define earlier.
(observer_mode, observer_mode_1): New globals.
(set_observer_mode, show_observer_mode): New functions.
(update_observer_mode): New function.
(_initialize_infrun): Define "set observer" command.
* remote.c (PACKET_QAllow): New optional packet.
(remote_protocol_features): Add QAllow.
(remote_set_permissions): New function.
(remote_start_remote): Call it.
(init_remote_ops): Add it to target vector.
(_initialize_remote): Add config command for QAllow.
* gdb.texinfo (Observer Mode): New section.
(General Query Packets): Document QAllow.
* gdb.base/permissions.exp: New file.
commit 5f867407942a94f4d56a2187586a5433f1232368
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jun 12 00:00:33 2010 +0000
*** empty log message ***
commit 165396c67cc2792f1a4d095d8821bf92e29925cb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jun 12 00:00:05 2010 +0000
daily update
commit 9a7a88919b59f19abd2fe14ab0e618fab07b726d
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 11 23:27:21 2010 +0000
* gdb.base/valgrind-db-attach.exp: Fail gracefully if valgrind
does not support ELF executable class.
commit 74efc60dd7074a84faf4f2e7bc4f6715ea046c24
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 11 23:25:59 2010 +0000
* gdb.trace/packetlen.exp: Respect gdb_target_supports_trace.
commit 9448da351a50fc7bc15e40ba13cafae472138201
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jun 11 21:58:20 2010 +0000
gdb/testsuite/
* lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt.
(runto): Catch "The target does not support running in non-stop mode.".
commit 256a06dcc88d1f2ce7c50401f63ca593821d278e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jun 11 21:12:10 2010 +0000
bfd/
* vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
commit 5d611756b61f1f6cb9aea89aff782fb21c7fa83f
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Jun 11 20:56:06 2010 +0000
2010-06-11 Michael Snyder <msnyder@vmware.com>
* gdb.base/setshow.exp (set language asm): Don't use
gdb_test_no_output, fails on some targets.
commit d84d1937e95227d2f92e7d998cab40bedeac6669
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jun 11 20:01:04 2010 +0000
* dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
DW_AT_vtable_elem_location even when GCC extension is seen.
commit 32336eb7f678579a5b10613e35e56e8bb07a051b
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 11 17:35:27 2010 +0000
* gdb.cp/cpexprs.exp: Skip test on spu*-*-*.
* gdb.cp/pr9167.exp: Likewise.
commit 8154cf97511d04272c06b1bf1d6b8a65f4fbc061
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 11 17:34:56 2010 +0000
* gdb.python/py-breakpoint.exp: Handle software watchpoints as well.
commit d98a8afbc84c207e0ad900f0e09c7de70308871b
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 11 17:34:11 2010 +0000
* gdb.base/solib-corrupted.exp: Respect skip_shlib_tests.
commit e5fbb276dfff8572b91e1d751e57b25c1417352b
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 11 17:33:17 2010 +0000
* gdb.base/charset.c (main): Make sure malloc gets linked in.
commit e6ae6bbe763f7999fc3f502b92711f7367a2cacc
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Jun 11 15:57:45 2010 +0000
include/elf
2010-06-11 Tristan Gingold <gingold@adacore.com>
* ia64.h (EF_IA_64_VMS_COMCOD, EF_IA_64_VMS_COMCOD_SUCCESS)
(EF_IA_64_VMS_COMCOD_WARNING, EF_IA_64_VMS_COMCOD_ERROR)
(EF_IA_64_VMS_COMCOD_ABORT, EF_IA_64_VMS_LINKAGES): Define.
(VMS_LF_CALL_DEBUG, VMS_LF_NOP0BUFS, VMS_LF_P0IMAGE)
(VMS_LF_MKTHREADS, VMS_LF_UPCALLS, VMS_LF_IMGSTA)
(VMS_LF_INITIALIZE, VMS_LF_MAIN, VMS_LF_EXE_INIT)
(VMS_LF_TBK_IN_IMG, VMS_LF_DBG_IN_IMG, VMS_LF_TBK_IN_DSF)
(VMS_LF_DBG_IN_DSF, VMS_LF_SIGNATURES, VMS_LF_REL_SEG_OFF): Define.
(VMS_STO_VISIBILITY, VMS_ST_VISIBILITY, VMS_STO_FUNC_TYPE)
(VMS_ST_FUNC_TYPE, VMS_SFT_CODE_ADDR, VMS_SFT_SYMV_IDX)
(VMS_SFT_FD, VMS_SFT_RESERVE, VMS_STO_LINKAGE, VMS_ST_LINKAGE)
(VMS_STL_IGNORE, VMS_STL_RESERVE, VMS_STL_STD, VMS_STL_LNK): Define.
(Elf64_External_VMS_IMAGE_FIXUP): New declaration.
(Elf64_External_VMS_IMAGE_RELA): Ditto.
(R_IA64_VMS_DIR8, R_IA64_VMS_DIR16LSB, R_IA64_VMS_CALL_SIGNATURE)
(R_IA64_VMS_EXECLET_FUNC, R_IA64_VMS_EXECLET_DATA, R_IA64_VMS_FIX8)
(R_IA64_VMS_FIX16, R_IA64_VMS_FIX32, R_IA64_VMS_FIX64)
(R_IA64_VMS_FIXFD, R_IA64_VMS_ACC_LOAD, R_IA64_VMS_ACC_ADD)
(R_IA64_VMS_ACC_SUB, R_IA64_VMS_ACC_MUL, R_IA64_VMS_ACC_DIV)
(R_IA64_VMS_ACC_AND, R_IA64_VMS_ACC_IOR, R_IA64_VMS_ACC_EOR)
(R_IA64_VMS_ACC_ASH, R_IA64_VMS_ACC_STO8, R_IA64_VMS_ACC_STO16LSH)
(R_IA64_VMS_ACC_STO32LSH, R_IA64_VMS_ACC_STO64LSH): New.
binutils/
2010-06-11 Tristan Gingold <gingold@adacore.com>
Doug Rupp <rupp@gnat.com>
* readelf.c (is_ia64_vms): New function.
(dump_relocations): Use it.
(get_machine_flags): Display IA-64 OpenVMS flags.
(process_program_headers): No error on OpenVMS if no .dynamic section.
(struct ia64_vms_dynfixup, struct ia64_vms_dynimgrela): New
declarations.
(dump_ia64_vms_dynamic_fixups): New function.
(dump_ia64_vms_dynamic_relocs): Ditto.
(process_ia64_vms_dynamic_relocs): Ditto.
(process_relocs): Handle IA-64 OpenVMS relocs.
(VMS_EPOCH_OFFSET, VMS_GRANULARITY_FACTOR): New macros.
(print_vms_time): New function.
(dynamic_section_ia64_val): Handle DT_IA_64_VMS_LINKTIME and
DT_IA_64_VMS_LNKFLAGS.
(get_ia64_symbol_other): New function.
(get_symbol_other): Handle EM_IA_64.
commit 0b6b14823d57df2c6a7da5f15d4086e749d101b6
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jun 11 15:36:01 2010 +0000
gdb
PR gdb/9977, PR exp/11636:
* value.h (value_offset): Update.
(struct lval_funcs) <check_validity>: New field.
<copy_closure>: Make argument const.
(value_computed_closure): Update.
(value_contents_for_printing): Declare.
(value_bits_valid): Likewise.
(val_print): Likewise.
(set_value_component_location): Update.
(value_entirely_optimized_out): Declare.
* value.c (value_offset): Argument now const.
(require_not_optimized_out): New function.
(value_contents_for_printing): New function.
(value_contents_all): Call require_not_optimized_out.
(value_contents): Likewise.
(value_bits_valid): New function.
(value_computed_closure): Argument now const.
(set_value_component_location): Make 'whole' argument const.
(value_entirely_optimized_out): New function.
(value_bitsize): Argument now 'const'.
(value_bitpos): Likewise.
(value_type): Likewise.
* valprint.h (val_print_array_elements): Update.
* valprint.c (val_print): Add 'val' argument. Use
valprint_check_validity.
(valprint_check_validity): New function.
(value_check_printable): Use value_entirely_optimized_out.
(common_val_print): Update.
(value_print): Likewise.
(val_print_array_elements): Add 'val' argument.
* valops.c (value_fetch_lazy): Use value_contents_for_printing,
value_bits_valid. Reinit frame cache for lval_computed.
* sh64-tdep.c (sh64_do_register): Update.
* scm-valprint.c (scm_val_print): Add 'val' argument.
* scm-lang.h (scm_val_print): Update.
* python/python.h (apply_val_pretty_printer): Update.
* python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
argument. Call set_value_component_location.
* printcmd.c (print_scalar_formatted): Update.
* p-valprint.c (pascal_val_print): Add 'val' argument.
(pascal_object_print_value_fields): Likewise.
(pascal_object_print_value): Likewise.
(pascal_object_print_static_field): Update.
* p-lang.h (pascal_val_print): Update.
(pascal_object_print_value_fields): Update.
* mt-tdep.c (mt_registers_info): Update.
* mi/mi-main.c (get_register): Update.
(mi_cmd_data_evaluate_expression): Use common_val_print.
* m2-valprint.c (m2_print_array_contents): Add 'val' argument.
(m2_print_unbounded_array): Likewise.
(m2_val_print): Likewise.
* m2-lang.h (m2_val_print): Update.
* language.h (struct language_defn) <la_val_print>: Add 'val'
argument.
(LA_VAL_PRINT): Likewise.
* language.c (unk_lang_val_print): Add 'val' argument.
* jv-valprint.c (java_print_value_fields): Add 'val' argument.
(java_val_print): Likewise.
* jv-lang.h (java_val_print): Add 'val' argument.
* infcmd.c (default_print_registers_info): Update.
* f-valprint.c (f77_print_array_1): Add 'val' argument.
(f77_print_array): Likewise.
(f_val_print): Likewise.
* f-lang.h (f_val_print): Add 'val' argument.
* dwarf2loc.c (read_pieced_value): Use value_bitsize and
value_bitpos.
<DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
set_value_optimized_out.
(write_pieced_value): Use value_bitsize and value_bitpos.
<default>: Don't exit loop.
(check_pieced_value_validity): New function.
(pieced_value_funcs): Reference check_pieced_value_validity,
check_pieced_value_invalid.
(copy_pieced_value_closure): Update.
(check_pieced_value_bits): New function.
(check_pieced_value_invalid): New function.
* d-valprint.c (dynamic_array_type): Add 'val' argument.
(d_val_print): Likewise.
* d-lang.h (d_val_print): Update.
* cp-valprint.c (cp_print_value_fields): Add 'val' argument.
(cp_print_value_fields_rtti): Likewise.
(cp_print_value): Likewise.
(cp_print_static_field): Update.
* c-valprint.c (c_val_print): Add 'val' argument.
(c_value_print): Update.
* c-lang.h (c_val_print): Update.
(cp_print_value_fields): Likewise.
(cp_print_value_fields_rtti): Likewise.
* ada-valprint.c (struct ada_val_print_args): Remove.
(val_print_packed_array_elements): Add 'val' argument.
(ada_val_print): Likewise. Rewrite.
(ada_val_print_stub): Remove.
(ada_val_print_array): Add 'val' argument.
(ada_val_print_1): Likewise.
(print_variant_part): Likewise.
(ada_value_print): Update.
(print_record): Add 'val' argument.
(print_field_values): Likewise.
* ada-lang.h (ada_val_print): Update.
gdb/testsuite
PR gdb/9977, PR exp/11636::
* gdb.dwarf2/pieces.exp (pieces_test_f3): Remove kfail.
(pieces_test_f6): Update expected output.
commit 4403bfe8b48d96ead23d8525ecde064e434dc4b1
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Jun 11 15:30:38 2010 +0000
2010-06-11 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
sections to 0.
commit fe14cd214171cf1ef9f0be0ff364e5f52c642bd0
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Jun 11 15:21:14 2010 +0000
2010-06-11 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
commit c52dbdaa1b0f45e362a83f3e09113a8c1b83f7ab
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jun 11 15:21:08 2010 +0000
* vec.h (VEC_cleanup): New macro.
(DEF_VEC_ALLOC_FUNC_I): Update.
(DEF_VEC_ALLOC_FUNC_P): Likewise.
(DEF_VEC_ALLOC_FUNC_O): Likewise.
* dwarf2loc.c (struct axs_var_loc): Remove.
(unimplemented): New function.
(translate_register): Likewise.
(access_memory): Likewise.
(compile_dwarf_to_ax): Likewise.
(dwarf2_tracepoint_var_loc): Remove.
(dwarf2_tracepoint_var_access): Likewise.
(dwarf2_tracepoint_var_ref): Likewise.
(locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
(loclist_tracepoint_var_ref): Likewise.
* dwarf2expr.h (dwarf_expr_require_composition): Declare.
* dwarf2expr.c (dwarf_expr_require_composition): Rename from
require_composition. No longer static.
(execute_stack_op): Update.
* ax-gdb.h (trace_kludge): Declare.
commit 370be890d2e1253ea981a979ea899b42bac94643
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Jun 11 15:13:32 2010 +0000
2010-06-11 Tristan Gingold <gingold@adacore.com>
* vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
Adjust cast.
(_bfd_vms_output_dump): Make DATA argument const, adjust cast.
* vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
* vms-alpha.c (evax_section_flags): Make it const.
(vms_secflag_by_name): Remove unused ABFD argument.
Make SECTION_FLAGS and NAME arguments const. Clarify comment.
(vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
(_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
(_bfd_vms_write_egsd): Remove useless cast.
commit 2896997e4828570e68f99fdf57d2e5ec7a575629
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jun 11 12:58:53 2010 +0000
gdb/
* breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
(should_be_inserted): Return zero also on NULL OWNER.
(breakpoint_program_space_exit): New OWNER comment.
(insert_breakpoint_locations): Extend comment for OWNER.
(remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
(breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
New OWNER comment.
(print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
(watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
(bpstat_check_location): New assert on OWNER.
(bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
and B initializations to the code block. New assert on them.
(print_one_breakpoint_location): New OWNER comment.
(watchpoint_locations_match): Assert on OWNER.
(breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
initializations to the code block. New assert on OWNER.
(set_breakpoint_location_function): New assert on OWNER.
(disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
(bp_location_compare, update_global_location_list)
(update_global_location_list): New OWNER comment.
gdb/testsuite/
* gdb.base/moribund-step.exp: New.
commit 56e0645ff746156ca7f7e606f9f5193256fd0ad8
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 11 12:44:14 2010 +0000
* Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
commit d7d3801e9131d9e821bf8d7145325368d89b3d89
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 11 12:10:12 2010 +0000
* config/nm-linux.h (struct target_ops): Remove forward declaration.
(lin_thread_get_thread_signals): Remove prototype.
(GET_THREAD_SIGNALS): Remove.
* linux-nat.h (lin_thread_get_thread_signals): Add prototype.
* linux-thread-db.c (check_thread_signals): Directly call
lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
commit d07d104076d5eeaa8ed545ea3562ec399b222fed
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Jun 11 12:08:43 2010 +0000
* gregset.h (GDB_FPXREGSET_T): Remove.
(gdb_fpxregset_t): Likewise.
(supply_fpxregset): Remove prototype.
(fill_fpxregset): Likewise.
* i386-linux-nat.c (supply_fpxregset): Remove.
(fill_fpxregset): Likewise.
(fetch_fpxregs): Inline supply_fpxregset call.
(store_fpxregs): Inline fill_fpxregset call.
* config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
* config/i386/nm-linux.h: Remove file.
commit 243efe6cacd0ee083c8231654425a545f671f5a5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jun 11 00:00:05 2010 +0000
daily update
commit 5b635a34cbe32e45f4e7eba7456d600a1247f45b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jun 11 00:00:03 2010 +0000
*** empty log message ***
commit 50bb49d88c2d5d23178074d53c41cd88e7787a81
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu Jun 10 19:48:18 2010 +0000
2010-06-08 Michael Snyder <msnyder@vmware.com>
* gdb.ada/assign_1.exp: Use ".*" instead of "" as wildcard regexp.
* gdb.ada/boolean_expr.exp:
* gdb.ada/frame_args.exp: Ditto.
* gdb.ada/lang_switch.exp: Ditto.
* gdb.ada/ptype_arith_binop.exp: Ditto.
* gdb.ada/ref_param.exp: Ditto.
* gdb.ada/type_coercion.exp:Ditto.
* gdb.asm/asm-source.exp: Ditto.
* gdb.base/attach.exp: Ditto.
* gdb.base/bitfields2.exp: Ditto.
* gdb.base/call-signal-resume.exp: Ditto.
* gdb.base/callfuncs.exp: Ditto.
* gdb.base/commands.exp: Ditto.
* gdb.base/dbx.exp: Ditto.
* gdb.base/default.exp: Ditto.
* gdb.base/dump.exp: Ditto.
* gdb.base/exprs.exp: Ditto.
* gdb.base/freebpcmd.exp: Ditto.
* gdb.base/interrupt.exp: Ditto.
* gdb.base/list.exp: Ditto.
* gdb.base/long_long.exp: Ditto.
* gdb.base/maint.exp: Ditto.
* gdb.base/ptype.exp: Ditto.
* gdb.base/return.exp: Ditto.
* gdb.base/setshow.exp: Ditto.
* gdb.base/sigbpt.exp: Ditto.
* gdb.base/sigrepeat.exp: Ditto.
* gdb.cp/classes.exp: Ditto.
* gdb.dwarf2/dw2-restore.exp: Ditto.
* gdb.gdb/selftest.exp: Ditto.
* gdb.multi/base.exp: Ditto.
* gdb.multi/bkpt-multi-exec.exp: Ditto.
* gdb.python/py-block.exp: Ditto.
* gdb.python/py-prettyprint.exp: Ditto.
* gdb.python/py-template.exp: Ditto.
* gdb.server/ext-attach.exp: Ditto.
* gdb.server/ext-run.exp: Ditto.
* gdb.server/server-mon.exp: Ditto.
* gdb.threads/fork-thread-pending.exp: Ditto.
* gdb.threads/hand-call-in-threads.exp: Ditto.
* gdb.threads/interrupted-hand-call.exp: Ditto.
* gdb.threads/linux-dp.exp: Ditto.
* gdb.threads/manythreads.exp: Ditto.
* gdb.threads/print-threads.exp: Ditto.
* gdb.threads/pthreads.exp: Ditto.
* gdb.threads/schedlock.exp: Ditto.
* gdb.threads/thread-unwindonsignal.exp: Ditto.
* gdb.threads/threadapply.exp: Ditto.
commit f5c25f77493eb8c3f72ad14666b3ebd7114f2d8d
Author: DJ Delorie <dj@delorie.com>
Date: Thu Jun 10 18:30:17 2010 +0000
merge from gcc
commit 421f33a10a5ef9209d5c7b9c9cfb7b1e4e76443f
Author: Alexandre Oliva <aoliva@redhat.com>
Date: Thu Jun 10 17:04:12 2010 +0000
* Makefile.def (configure-gcc): Depend on all-libelf.
* Makefile.in: Rebuild.
commit e1ec21f0c16e23bfa6bf082b3d54e22c3fc2ba55
Author: Paolo Bonzini <bonzini@gnu.org>
Date: Thu Jun 10 16:09:45 2010 +0000
2010-06-10 Paolo Bonzini <bonzini@gnu.org>
* override.m4: Remove obsolete (<2.64) definitions.
commit c55d7b731113a1a49d483677d7a0dd8c91b4b31d
Author: Paolo Bonzini <bonzini@gnu.org>
Date: Thu Jun 10 16:01:32 2010 +0000
sync changelog with gcc, plus commit the following patch:
2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
PR bootstrap/43170
* tls.m4 (GCC_CHECK_TLS): Add volatile qualifier to the test
references. Move the main () test reference ahead of
pthread_create(). Add a comment to explain the requirements
of the test.
commit 3ef4e131f7370d209e5da3d2c020d5067ea02927
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu Jun 10 15:42:01 2010 +0000
PR other/43838
* cp-demangle.c (struct d_print_info): Add flush_count field.
(d_print_init): Initialize it to 0.
(d_print_flush): Increment it.
(d_print_comp): If needed flush before appending ", ". Only
decrement dpi->len if no flushes happened during the recursive
call.
* testsuite/demangle-expected: Add a test for this.
commit b50e7391184d92f3740e0d89976cda95e7b29113
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Jun 10 09:02:23 2010 +0000
2010-06-10 Tristan Gingold <gingold@adacore.com>
* config.bfd: Remove #if/#endif so that som can be compiled on any
host.
* targets.c (_bfd_target_vector): Remove #if/#endif so that som
can be used on any host.
commit da54d53a3c131d379d13d83df5b2116794a5e896
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Jun 10 08:51:44 2010 +0000
bfd/
2010-06-10 Tristan Gingold <gingold@adacore.com>
* som.c: Can now be compiled on any host.
Include bfd headers instead of system one.
(som_compute_checksum): Parameter is now a pointer to a
som_external_header structure. Adjust.
(struct section_to_type): Field section is now const.
(R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
definition.
(R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
(R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
(som_swap_clock_in, som_swap_clock_out): New functions.
(som_swap_header_in, som_swap_header_out): Likewise.
(som_swap_space_dictionary_in): Likewise.
(som_swap_space_dictionary_out): Likewise.
(som_swap_subspace_dictionary_in): Likewise.
(som_swap_subspace_dictionary_record_out): Likewise.
(som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
(som_swap_string_auxhdr_out): Likewise.
(som_swap_compilation_unit_out): Likewise.
(som_swap_exec_auxhdr_in): Likewise.
(som_swap_exec_auxhdr_out): Likewise.
(som_swap_lst_header_in): Likewise.
(som_object_setup): Adjust parameter type using bfd types.
(setup_sections): Likewise. Ditto for object file types.
Use intermediate variables for external representation and use the
swap functions to convert.
(som_object_p): Ditto. Remove #ifdef/#endif on always defined
macros.
(som_prep_headers): Likewise.
(som_write_symbol_strings): Likewise.
(som_begin_writing): Likewise.
(som_finish_writing): Likewise.
(som_build_and_write_symbol_table): Likewise.
(bfd_section_from_som_symbol): Likewise.
(som_slurp_symbol_table): Likewise.
(som_bfd_print_private_bfd_data): Likewise.
(bfd_som_attach_aux_hdr): Likewise. Clear the padding.
(bfd_som_attach_compilation_unit): Likewise.
(som_bfd_count_ar_symbols): Likewise.
(som_bfd_fill_in_ar_symbols): Likewise.
(som_slurp_armap): Likewise.
(som_bfd_ar_write_symbol_stuff): Likewise.
(som_write_armap): Likewise. Use _bfd_ar_spacepad instead of
sprintf to write header fields.
* som.h: Include bfd headers instead of system one.
(FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
(struct somdata): Use bfd structures instead of system ones.
(struct som_section_data_struct): Likewise.
(struct som_subspace_dictionary_record): Removed (now in
include/som/internal.h)
gas/
2010-06-10 Tristan Gingold <gingold@adacore.com>
* config/obj-som.h: Includes som/reloc.h
commit 14ee0cb9fee386d4383355eda59b34566e7f2458
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Jun 10 08:31:20 2010 +0000
include/som:
2010-06-10 Tristan Gingold <gingold@adacore.com>
* aout.h: New file.
* clock.h: Likewise.
* lst.h: Likewise.
* reloc.h: Likewise.
* internal.h: Likewise.
commit ae654289a61a96977b9244a4888214c99952ae7d
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Jun 10 08:19:51 2010 +0000
2010-06-10 Tristan Gingold <gingold@adacore.com>
* dwarf2.h (enum dwarf_tag): Add DW_TAG_HP_Bliss_field and
DW_TAG_HP_Bliss_field_set.
(enum dwarf_attribute): Add DW_AT_HP_prologue, DW_AT_HP_epilogue,
DW_AT_HP_unit_name, DW_AT_HP_unit_size, DW_AT_HP_widened_byte_size,
DW_AT_HP_definition_points, DW_AT_HP_default_location and
DW_AT_HP_is_result_param.
(enum dwarf_type): Add DW_ATE_HP_VAX_float, DW_ATE_HP_VAX_float_d,
DW_ATE_HP_packed_decimal, DW_ATE_HP_zoned_decimal, DW_ATE_HP_edited,
DW_ATE_HP_signed_fixed, DW_ATE_HP_unsigned_fixed,
DW_ATE_HP_VAX_complex_float and DW_ATE_HP_VAX_complex_float_d.
(enum dwarf_line_number_x_ops): Add
DW_LNE_HP_source_file_correlation.
(enum dwarf_source_language): Add DW_LANG_HP_Bliss,
DW_LANG_HP_Basic91, DW_LANG_HP_Pascal91, DW_LANG_HP_IMacro,
DW_LANG_HP_Assembler.
commit c0d7ff47f8686da59549edf40587a9339f19d657
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Jun 10 08:16:08 2010 +0000
2010-06-10 Tristan Gingold <gingold@adacore.com>
* targets.c (bfd_target_list): Remove hp/ux compiler work-around
as bfd requires an ANSI-C compiler.
commit 5638e6b1d4439cc3422e4e4a04a45769603f963b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jun 10 00:00:33 2010 +0000
*** empty log message ***
commit 8e0b358973fd24a381b52ed2c3cd3f5f08b42819
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jun 10 00:00:05 2010 +0000
daily update
commit bee5880049dc5c97c6ff909839b4292bcb8cb303
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jun 9 18:25:32 2010 +0000
2010-06-09 Michael Snyder <msnyder@vmware.com>
* target.c (update_current_target): Fix spelling error in comment.
(target_mourn_inferior): Fix spelling error in error message.
commit d73ab641993f077d8c04a44b6d6fd63e1964baf1
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Jun 9 13:28:31 2010 +0000
2010-06-09 Tristan Gingold <gingold@adacore.com>
* bfdio.c (bfd_bread): Fix the code to prevent reading past the
end of archive members.
commit de9fb6090acb18fb052710c136881fb5e8e18e30
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Jun 9 13:28:31 2010 +0000
2010-06-09 Tristan Gingold <gingold@adacore.com>
* bfdio.c (bfd_bread): Fix the code to prevent reading past the
end of archive members.
commit 372bfdc70ad10f60c4903bdbf75940ad52dcc857
Author: Paul N. Hilfinger <hilfinger@adacore.com>
Date: Wed Jun 9 04:22:24 2010 +0000
Trivial correction to two comments in dictionary.h.
Changelog:
* dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
commit 5055b03495df73f540db3aac929df5c3c917c0a2
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jun 9 00:00:32 2010 +0000
*** empty log message ***
commit 8f682f5544da9c8060b07b8116962fca4f83c155
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jun 9 00:00:05 2010 +0000
daily update
commit c6b52e058c7b5659c840e2537650fc66068e9ce9
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue Jun 8 22:58:03 2010 +0000
2010-06-08 Michael Snyder <msnyder@vmware.com>
* gdb.ada/exec_changed.exp:
Use ".*" instead of "" as wildcard regexp.
* gdb.base/async.exp: Use ".*" instead of "" as wildcard regexp.
* gdb.base/call-ar-st.exp: Ditto.
* gdb.base/checkpoint.exp: Ditto.
* gdb.base/default.exp: Ditto.
* gdb.base/dump.exp: Ditto.
* gdb.base/ending-run.exp: Ditto.
* gdb.base/fileio.exp: Ditto.
* gdb.base/miscexprs.exp: Ditto.
* gdb.base/pointers.exp: Ditto.
* gdb.base/readline.exp: Ditto.
* gdb.base/reread.exp: Ditto.
* gdb.base/restore.exp: Ditto.
* gdb.base/shlib-call.exp: Ditto.
* gdb.base/valgrind-db-attach.exp: Ditto.
* gdb.base/volatile.exp: Ditto.
* gdb.base/watchpoints.exp: Ditto.
* gdb.cp/classes.exp: Use ".*" instead of "" as wildcard regexp.
* gdb.python/py-frame.exp: Use ".*" instead of "" as wildcard regexp.
* gdb.python/py-value.exp: Ditto.
* gdb.trace/backtrace.exp: Use ".*" instead of "" as wildcard regexp.
* gdb.trace/circ.exp: Ditto.
* gdb.trace/collection.exp: Ditto.
* gdb.trace/packetlen.exp: Ditto.
* gdb.trace/passc-dyn.exp: Ditto.
* gdb.trace/report.exp: Ditto.
* gdb.trace/tfile.exp: Ditto.
* gdb.trace/tfind.exp: Ditto.
* gdb.trace/while-dyn.exp: Ditto.
commit 854bb5943dfa61a984faec7bc5e818e69d486812
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue Jun 8 16:51:33 2010 +0000
2010-06-08 Michael Snyder <msnyder@vmware.com>
* remote.c (remote_close): Set inferior_ptid to null_ptid.
commit e71cf42b2ef46b652bcd4d8130fdf9b32accbb25
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jun 8 16:41:38 2010 +0000
gdb/
* configure.ac <"${have_libpython}" != no>: New workaround of
python#4434.
* configure: Regenerate.
gdb/testsuite/
* gdb.python/python.exp (pythonX.Y/lib-dynload/*.so): New.
commit 4aa2e494a9fb23f2cf3a474660fced627bfd3fda
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Jun 8 15:43:38 2010 +0000
2010-06-08 Tristan Gingold <gingold@adacore.com>
* som.c (som_bfd_free_cached_info): Do not free relocations as
they were allocated with bfd_zalloc.
commit 945ea8c407584f50aafabcc256314f1ce4b01155
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Jun 8 14:04:24 2010 +0000
2010-06-08 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
for the first block.
commit 95b9cd161d8202435e4fd2494ade07e80fd6f574
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jun 8 12:15:36 2010 +0000
* standards.texi: Import current version from gnustandards
project.
* gnu-oids.texi: New file.
commit c55d0218bfbcfbce1ca3829e5df9a24d94a387f3
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jun 8 10:30:54 2010 +0000
etc/ChangeLog
* standards.texi: Relicense under GFDL v1.3.
* fdl.texi: Replace with v1.3 text.
gas/ChangeLog
* doc/as.texinfo: Replace abbreviated 20th century year numbers
with full versions.
gprof/ChangeLog
* gprof.texi: Replace abbreviated 20th century year numbers with
full versions.
ld/ChangeLog
* fdl.texi: Replace with v1.3 text.
* ld.texinfo: Replace abbreviated 20th century year numbers with
full versions.
* ldint.texinfo: Likewise.
Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
include of the fdl.texi file.
commit 10f355eb784b2607e7ed2cf1f32454dd6d962d04
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jun 8 10:15:48 2010 +0000
oops - omitted from previous delta
commit 08e6bca95da76ed5616284e6bbe2cf0ea6fd3cd5
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jun 8 09:15:15 2010 +0000
* reg.c (set_oszc): Use unsigned int for the mask.
(set_szc, set_osz, set_sz): Likewise.
commit beb51da8e34d73e2f86d7ffbdfa7b11f16581a30
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Jun 8 08:26:00 2010 +0000
2010-06-08 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
* libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
* libbfd.h: Regenerate.
* elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
(bfd_elfNN_mkarchive): Ditto.
commit dc67bdae60c77b592e6ef6ac0b4e443236fb091f
Author: Hui Zhu <teawater@gmail.com>
Date: Tue Jun 8 02:25:29 2010 +0000
2010-06-08 Hui Zhu <teawater@gmail.com>
* record.c (record_wait): Move signal out of replay code.
commit 02005504463ee4bb8e2ae1161dbdca3db0911e80
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jun 8 00:00:32 2010 +0000
*** empty log message ***
commit 00734e62b334b34dacc41701d56da502c6975eda
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jun 8 00:00:05 2010 +0000
daily update
commit 2898fca5c1c1cae6f7bec43d185dbe7cec2db28f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jun 7 19:55:33 2010 +0000
gdb/
Fix PR 10640.
* dwarf2-frame.c (no_dwarf_call): New function.
(execute_stack_op): Set CTX->DWARF_CALL.
* dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
* dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
(struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
* dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
(dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
(needs_frame_dwarf_call): New function.
(dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
* dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
Update the comment. Move variables die, offset and error call to ...
(follow_die_ref): ... a new function.
(dwarf2_fetch_die_location_block): New function.
* dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
gdb/testsuite/
Test PR 10640.
* gdb.dwarf2/dw2-op-call.exp, gdb.dwarf2/dw2-op-call.S: New.
commit 8763d72624afad909ad451de190ad48b3926c29d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jun 7 19:42:58 2010 +0000
gdb/
* dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
(dwarf_expr_tls_address): Use per_cu instead of objfile.
(dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
this change.
(struct needs_frame_baton): New field per_cu.
(dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
* dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
commit 33805f2b4f916928b1c1b52468bcd696cd2dcb5e
Author: swagiaal <swagiaal>
Date: Mon Jun 7 17:50:58 2010 +0000
Fix operator doubly nested namespace search.
2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
* cp-support.c (make_symbol_overload_list_namespace): Only search
static and global blocks.
(make_symbol_overload_list_block): New function.
(make_symbol_overload_list): Separate namespace search from block
search.
(make_symbol_overload_list_qualified): Use
make_symbol_overload_list_block.
commit 2b089485f568b64ace7a8910ea43843c9f7b2fb9
Author: swagiaal <swagiaal>
Date: Mon Jun 7 16:11:26 2010 +0000
Test and support all cpp operator types.
2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
* value.h: Created oload_search_type enum.
(find_overload_match): Use oload_search_type enum.
* valops.c (find_overload_match): Support combined member and
non-member search.
* eval.c (evaluate_subexp_standard): Calls to
find_overload_match now use oload_search_type enum.
(oload_method_static): Verify index is a proper value.
* valarith.c (value_user_defined_cpp_op): Search for and handle
both member and non-member operators.
(value_user_defined_cpp_op): New function.
(value_user_defined_op): New function.
(value_x_unop): Use value_user_defined_op.
(value_x_binop): Ditto.
* cp-support.c (make_symbol_overload_list_using): Added block
iteration.
Add check for namespace aliases and imported declarations.
2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/koenig.exp: Test for ADL operators.
* gdb.cp/koenig.cc: Added ADL operators.
* gdb.cp/operator.exp: New test.
* gdb.cp/operator.cc: New test.
commit d2489d897948c4948f40f16b6c27fd3da1409188
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jun 7 13:39:10 2010 +0000
gdb/
* breakpoint.h (owner): Extend the comment.
commit 1325f70e82293ba5128052e78eabcbfb10dd97d0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jun 7 13:38:24 2010 +0000
gdb/
Clear stale specific bp_location from former whole breakpoint.
* breakpoint.c (delete_breakpoint): Move the stale referencing clear
code ...
(free_bp_location): ... here. Rename there the called function to
bpstat_remove_bp_location_callback.
(bpstat_remove_breakpoint_callback): Rename to ...
(bpstat_remove_bp_location_callback): ... here, change DATA resolution
to struct bp_location. Change the called function to
bpstat_remove_bp_location. Create new declaration for the function.
(bpstat_remove_breakpoint): Rename to ...
(bpstat_remove_bp_location): ..., change the parameter to loc, adjust
code for the new parameter type.
commit 9db629607a84602e7b94dfd76f58bf11de9cc237
Author: mgretton <mgretton>
Date: Mon Jun 7 10:43:52 2010 +0000
* gas/testsuite/gas/arm/thumb-eabi.d: Add case for divided syntax encoding of movs.
* gas/testsuite/gas/arm/thumb.d: Likewise.
* gas/testsuite/gas/arm/thumb.s: Likewise.
* gas/testsuite/gas/arm/thumb2_it.d: Update for change in lsls/movs disassembly.
* gas/testsuite/gas/arm/thumb2_it_auto.d: Liekwise.
* gas/testsuite/gas/arm/thumb32.d: Likewise.
* ld/testsuite/ld-arm/arm-call.d: Handle change in lsls/movs disassembly.
* ld/testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-blx-pic-veneer.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-blx.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-m-pic-veneer.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-m.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
* ld/testsuite/ld-arm/farcall-thumb-thumb.d: Likewise.
* ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d: Likewise.
* ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad.d: Likewise.
* ld/testsuite/ld-arm/thumb2-bl-bad-noeabi.d: Likewise.
* ld/testsuite/ld-arm/thumb2-bl-bad.d: Likewise.
* opcodes/arm-dis.c (thumb-opcodes): Add disassembly for movs.
commit ee34d28e1a8598f13d06aa7595d84e2ee905547b
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Mon Jun 7 07:42:46 2010 +0000
* README: Make version-agnostic.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +
Makefile.def | 2 +-
Makefile.in | 16 +-
bfd/ChangeLog | 150 +++
bfd/Makefile.am | 8 +-
bfd/Makefile.in | 8 +-
bfd/bfdio.c | 8 +-
bfd/config.bfd | 2 -
bfd/elf-attrs.c | 14 +-
bfd/elf-bfd.h | 15 +-
bfd/elf32-arm.c | 6 +-
bfd/elf32-h8300.c | 1 +
bfd/elf32-tic6x.c | 88 ++
bfd/elf32-tic6x.h | 2 +
bfd/elfxx-ia64.c | 4 +
bfd/libbfd-in.h | 1 +
bfd/libbfd.h | 1 +
bfd/som.c | 1136 +++++++++++++-------
bfd/som.h | 50 +-
bfd/targets.c | 7 -
bfd/version.h | 2 +-
bfd/vms-alpha.c | 45 +-
bfd/vms-lib.c | 7 +
bfd/vms-misc.c | 6 +-
bfd/vms.h | 4 +-
config/ChangeLog | 32 +-
config/override.m4 | 233 +----
config/tls.m4 | 11 +-
etc/ChangeLog | 7 +
etc/fdl.texi | 82 ++-
etc/gnu-oids.texi | 52 +
etc/standards.texi | 454 +++++----
gdb/ChangeLog | 498 ++++++++-
gdb/Makefile.in | 7 +-
gdb/NEWS | 9 +-
gdb/README | 130 +--
gdb/ada-lang.h | 3 +-
gdb/ada-typeprint.c | 6 +-
gdb/ada-valprint.c | 101 +-
gdb/ax-gdb.h | 2 +
gdb/breakpoint.c | 227 ++++-
gdb/breakpoint.h | 3 +-
gdb/c-lang.h | 5 +-
gdb/c-typeprint.c | 2 +-
gdb/c-valprint.c | 26 +-
gdb/config/i386/linux.mh | 2 +-
gdb/config/nm-linux.h | 5 -
gdb/configure | 68 +-
gdb/configure.ac | 60 +-
gdb/cp-support.c | 103 ++-
gdb/cp-valprint.c | 63 +-
gdb/d-lang.h | 1 +
gdb/d-valprint.c | 12 +-
gdb/dictionary.h | 4 +-
gdb/doc/ChangeLog | 10 +
gdb/doc/gdb.texinfo | 130 +++
gdb/dwarf2-frame.c | 10 +
gdb/dwarf2expr.c | 25 +-
gdb/dwarf2expr.h | 14 +-
gdb/dwarf2loc.c | 1064 ++++++++++++++----
gdb/dwarf2loc.h | 3 +
gdb/dwarf2read.c | 147 ++-
gdb/eval.c | 8 +-
gdb/f-lang.h | 3 +-
gdb/f-typeprint.c | 2 +-
gdb/f-valprint.c | 22 +-
gdb/frame.c | 2 +-
gdb/gdbserver/ChangeLog | 88 ++
gdb/gdbserver/linux-amd64-ipa.c | 9 +
gdb/gdbserver/linux-i386-ipa.c | 15 +
gdb/gdbserver/linux-low.c | 12 +-
gdb/gdbserver/linux-low.h | 4 +
gdb/gdbserver/linux-ppc-low.c | 4 +-
gdb/gdbserver/linux-s390-low.c | 5 +-
gdb/gdbserver/linux-x86-low.c | 1032 ++++++++++++++++++-
gdb/gdbserver/server.h | 50 +
gdb/gdbserver/target.h | 9 +
gdb/gdbserver/tracepoint.c | 624 +++++++++++-
gdb/gregset.h | 16 -
gdb/i386-linux-nat.c | 25 +-
gdb/infcmd.c | 7 +-
gdb/inferior.h | 2 +
gdb/infrun.c | 93 ++-
gdb/jv-lang.h | 3 +-
gdb/jv-typeprint.c | 4 +-
gdb/jv-valprint.c | 15 +-
gdb/language.c | 7 +-
gdb/language.h | 7 +-
gdb/linux-nat.h | 3 +
gdb/linux-thread-db.c | 4 +-
gdb/m2-lang.h | 3 +-
gdb/m2-typeprint.c | 2 +-
gdb/m2-valprint.c | 16 +-
gdb/mi/mi-main.c | 6 +-
gdb/mt-tdep.c | 4 +-
gdb/p-lang.h | 5 +-
gdb/p-typeprint.c | 4 +-
gdb/p-valprint.c | 22 +-
gdb/printcmd.c | 2 +-
gdb/python/py-prettyprint.c | 12 +
gdb/python/python.h | 1 +
gdb/record.c | 12 +-
gdb/remote.c | 44 +
gdb/scm-lang.h | 1 +
gdb/scm-valprint.c | 8 +-
gdb/sh64-tdep.c | 4 +-
gdb/solib-null.c | 89 --
gdb/solib-target.c | 5 +
gdb/target.c | 184 ++++-
gdb/target.h | 25 +-
gdb/testsuite/ChangeLog | 199 ++++
gdb/testsuite/gdb.ada/assign_1.exp | 3 +-
gdb/testsuite/gdb.ada/boolean_expr.exp | 3 +-
gdb/testsuite/gdb.ada/exec_changed.exp | 10 +-
gdb/testsuite/gdb.ada/frame_args.exp | 3 +-
gdb/testsuite/gdb.ada/lang_switch.exp | 2 +-
gdb/testsuite/gdb.ada/ptype_arith_binop.exp | 3 +-
gdb/testsuite/gdb.ada/ref_param.exp | 2 +-
gdb/testsuite/gdb.ada/type_coercion.exp | 6 +-
gdb/testsuite/gdb.asm/asm-source.exp | 4 +-
gdb/testsuite/gdb.base/async.exp | 6 +-
gdb/testsuite/gdb.base/attach.exp | 2 +-
gdb/testsuite/gdb.base/bitfields2.exp | 2 +-
gdb/testsuite/gdb.base/call-ar-st.exp | 14 +-
gdb/testsuite/gdb.base/call-signal-resume.exp | 4 +-
gdb/testsuite/gdb.base/callfuncs.exp | 4 +-
gdb/testsuite/gdb.base/charset.c | 5 +
gdb/testsuite/gdb.base/checkpoint.exp | 34 +-
gdb/testsuite/gdb.base/commands.exp | 14 +-
gdb/testsuite/gdb.base/dbx.exp | 6 +-
gdb/testsuite/gdb.base/default.exp | 20 +-
gdb/testsuite/gdb.base/dump.exp | 30 +-
gdb/testsuite/gdb.base/ending-run.exp | 2 +-
gdb/testsuite/gdb.base/exprs.exp | 6 +-
gdb/testsuite/gdb.base/fileio.exp | 2 +-
gdb/testsuite/gdb.base/freebpcmd.exp | 3 +-
gdb/testsuite/gdb.base/interrupt.exp | 2 +-
gdb/testsuite/gdb.base/list.exp | 2 +-
gdb/testsuite/gdb.base/long_long.exp | 6 +-
gdb/testsuite/gdb.base/maint.exp | 8 +-
gdb/testsuite/gdb.base/miscexprs.exp | 2 +-
.../moribund-step.exp} | 30 +-
gdb/testsuite/gdb.base/permissions.exp | 101 ++
gdb/testsuite/gdb.base/pointers.exp | 2 +-
gdb/testsuite/gdb.base/ptype.exp | 10 +-
gdb/testsuite/gdb.base/readline.exp | 2 +-
gdb/testsuite/gdb.base/reread.exp | 18 +-
gdb/testsuite/gdb.base/restore.exp | 2 +-
gdb/testsuite/gdb.base/return.exp | 4 +-
gdb/testsuite/gdb.base/setshow.exp | 6 +-
gdb/testsuite/gdb.base/shlib-call.exp | 2 +-
gdb/testsuite/gdb.base/sigbpt.exp | 8 +-
gdb/testsuite/gdb.base/sigrepeat.exp | 2 +-
gdb/testsuite/gdb.base/solib-corrupted.exp | 4 +
gdb/testsuite/gdb.base/valgrind-db-attach.exp | 6 +-
gdb/testsuite/gdb.base/volatile.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint.c | 5 +
gdb/testsuite/gdb.base/watchpoint.exp | 30 +-
gdb/testsuite/gdb.base/watchpoints.exp | 4 +-
gdb/testsuite/gdb.cp/classes.exp | 6 +-
gdb/testsuite/gdb.cp/cpexprs.exp | 5 +
gdb/testsuite/gdb.cp/koenig.cc | 54 +
gdb/testsuite/gdb.cp/koenig.exp | 36 +-
gdb/testsuite/gdb.cp/operator.cc | 195 ++++
gdb/testsuite/gdb.cp/operator.exp | 58 +
gdb/testsuite/gdb.cp/pr9167.exp | 5 +
gdb/testsuite/gdb.disasm/t01_mov.exp | 2 +-
gdb/testsuite/gdb.disasm/t02_mova.exp | 2 +-
gdb/testsuite/gdb.disasm/t03_add.exp | 2 +-
gdb/testsuite/gdb.disasm/t04_sub.exp | 2 +-
gdb/testsuite/gdb.disasm/t05_cmp.exp | 2 +-
gdb/testsuite/gdb.disasm/t06_ari2.exp | 2 +-
gdb/testsuite/gdb.disasm/t07_ari3.exp | 2 +-
gdb/testsuite/gdb.disasm/t08_or.exp | 2 +-
gdb/testsuite/gdb.disasm/t09_xor.exp | 2 +-
gdb/testsuite/gdb.disasm/t10_and.exp | 2 +-
gdb/testsuite/gdb.disasm/t11_logs.exp | 2 +-
gdb/testsuite/gdb.disasm/t12_bit.exp | 2 +-
gdb/testsuite/gdb.disasm/t13_otr.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-op-call.S | 119 ++
gdb/testsuite/gdb.dwarf2/dw2-op-call.exp | 41 +
gdb/testsuite/gdb.dwarf2/dw2-restore.exp | 2 +-
gdb/testsuite/gdb.dwarf2/pieces.exp | 4 +-
.../gdb.dwarf2/watch-notconst.c} | 35 +-
gdb/testsuite/gdb.dwarf2/watch-notconst.exp | 44 +
gdb/testsuite/gdb.dwarf2/watch-notconst2.S | 256 +++++
.../gdb.dwarf2/watch-notconst2.c} | 31 +-
gdb/testsuite/gdb.gdb/selftest.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nonstop-exit.exp | 2 -
gdb/testsuite/gdb.mi/mi-nonstop.exp | 1 -
gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp | 1 -
gdb/testsuite/gdb.mi/mi-nsintrall.exp | 1 -
gdb/testsuite/gdb.mi/mi-nsmoribund.exp | 1 -
gdb/testsuite/gdb.mi/mi-nsthrexec.exp | 1 -
gdb/testsuite/gdb.multi/base.exp | 4 +-
gdb/testsuite/gdb.multi/bkpt-multi-exec.exp | 2 +-
gdb/testsuite/gdb.python/py-block.exp | 2 +-
gdb/testsuite/gdb.python/py-breakpoint.exp | 2 +-
gdb/testsuite/gdb.python/py-frame.exp | 2 +-
gdb/testsuite/gdb.python/py-prettyprint.exp | 6 +-
gdb/testsuite/gdb.python/py-template.exp | 2 +-
gdb/testsuite/gdb.python/py-value.exp | 4 +-
gdb/testsuite/gdb.python/python.exp | 3 +
gdb/testsuite/gdb.server/ext-attach.exp | 2 +-
gdb/testsuite/gdb.server/ext-run.exp | 2 +-
gdb/testsuite/gdb.server/server-mon.exp | 2 +-
gdb/testsuite/gdb.threads/fork-thread-pending.exp | 2 +-
gdb/testsuite/gdb.threads/hand-call-in-threads.exp | 15 +-
.../gdb.threads/interrupted-hand-call.exp | 2 +-
gdb/testsuite/gdb.threads/linux-dp.exp | 2 +-
gdb/testsuite/gdb.threads/manythreads.exp | 2 +-
gdb/testsuite/gdb.threads/print-threads.exp | 2 +-
gdb/testsuite/gdb.threads/pthreads.exp | 6 +-
gdb/testsuite/gdb.threads/schedlock.exp | 2 +-
.../gdb.threads/thread-unwindonsignal.exp | 2 +-
gdb/testsuite/gdb.threads/threadapply.exp | 2 +-
gdb/testsuite/gdb.trace/backtrace.exp | 12 +-
gdb/testsuite/gdb.trace/circ.exp | 10 +-
gdb/testsuite/gdb.trace/collection.exp | 6 +-
gdb/testsuite/gdb.trace/packetlen.exp | 16 +-
gdb/testsuite/gdb.trace/passc-dyn.exp | 24 +-
gdb/testsuite/gdb.trace/report.exp | 10 +-
gdb/testsuite/gdb.trace/tfile.exp | 6 +-
gdb/testsuite/gdb.trace/tfind.exp | 6 +-
gdb/testsuite/gdb.trace/while-dyn.exp | 16 +-
gdb/testsuite/lib/gdb.exp | 7 +
gdb/tracepoint.c | 26 +-
gdb/valarith.c | 68 ++-
gdb/valops.c | 157 ++-
gdb/valprint.c | 64 +-
gdb/valprint.h | 1 +
gdb/value.c | 65 +-
gdb/value.h | 44 +-
gdb/vec.h | 34 +
gdb/version.in | 2 +-
include/ChangeLog | 27 +
include/dwarf2.h | 45 +-
include/elf/ChangeLog | 34 +
include/elf/ia64.h | 89 ++
bfd/elf32-tic6x.h => include/elf/tic6x-attrs.h | 7 +-
include/elf/tic6x.h | 22 +
include/hashtab.h | 5 +-
include/opcode/ChangeLog | 4 +
include/opcode/ppc.h | 3 +
include/som/ChangeLog | 7 +
include/som/aout.h | 249 +++++
bfd/elf32-tic6x.h => include/som/clock.h | 22 +-
include/som/internal.h | 206 ++++
include/som/lst.h | 93 ++
include/som/reloc.h | 79 ++
include/splay-tree.h | 15 +-
libiberty/ChangeLog | 29 +
libiberty/cp-demangle.c | 12 +-
libiberty/functions.texi | 39 +-
libiberty/hashtab.c | 67 +-
libiberty/libiberty.texi | 18 +-
libiberty/splay-tree.c | 55 +-
libiberty/testsuite/demangle-expected | 3 +
opcodes/ChangeLog | 25 +-
opcodes/arm-dis.c | 1 +
opcodes/m68k-dis.c | 2 +-
opcodes/m68k-opc.c | 1 -
opcodes/ppc-dis.c | 4 +-
opcodes/ppc-opc.c | 157 ++--
sim/ChangeLog | 5 +
sim/rx/ChangeLog | 5 +
sim/rx/reg.c | 8 +-
267 files changed, 8984 insertions(+), 2294 deletions(-)
create mode 100644 etc/gnu-oids.texi
delete mode 100644 gdb/solib-null.c
copy gdb/testsuite/{gdb.ada/ptype_arith_binop.exp => gdb.base/moribund-step.exp} (61%)
create mode 100644 gdb/testsuite/gdb.base/permissions.exp
create mode 100644 gdb/testsuite/gdb.cp/operator.cc
create mode 100644 gdb/testsuite/gdb.cp/operator.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-op-call.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-op-call.exp
copy gdb/{config/i386/nm-linux.h => testsuite/gdb.dwarf2/watch-notconst.c} (56%)
create mode 100644 gdb/testsuite/gdb.dwarf2/watch-notconst.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/watch-notconst2.S
rename gdb/{config/i386/nm-linux.h => testsuite/gdb.dwarf2/watch-notconst2.c} (58%)
copy bfd/elf32-tic6x.h => include/elf/tic6x-attrs.h (84%)
create mode 100644 include/som/ChangeLog
create mode 100644 include/som/aout.h
copy bfd/elf32-tic6x.h => include/som/clock.h (58%)
create mode 100644 include/som/internal.h
create mode 100644 include/som/lst.h
create mode 100644 include/som/reloc.h
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index bd5b559..5759b30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-10 Alexandre Oliva <aoliva@redhat.com>
+
+ * Makefile.def (configure-gcc): Depend on all-libelf.
+ * Makefile.in: Rebuild.
+
2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* config.sub, config.guess: Update from upstream sources.
diff --git a/Makefile.def b/Makefile.def
index 325d845..ccc23f6 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -322,6 +322,7 @@ dependencies = { module=configure-gcc; on=all-binutils; };
dependencies = { module=configure-gcc; on=all-gas; };
dependencies = { module=configure-gcc; on=all-ld; };
dependencies = { module=configure-gcc; on=all-gold; };
+dependencies = { module=configure-gcc; on=all-libelf; };
dependencies = { module=all-gcc; on=all-libiberty; hard=true; };
dependencies = { module=all-gcc; on=all-gmp; };
dependencies = { module=all-gcc; on=all-intl; };
@@ -329,7 +330,6 @@ dependencies = { module=all-gcc; on=all-mpfr; };
dependencies = { module=all-gcc; on=all-mpc; };
dependencies = { module=all-gcc; on=all-ppl; };
dependencies = { module=all-gcc; on=all-cloog; };
-dependencies = { module=all-gcc; on=all-libelf; };
dependencies = { module=all-gcc; on=all-build-texinfo; };
dependencies = { module=all-gcc; on=all-build-bison; };
dependencies = { module=all-gcc; on=all-build-byacc; };
diff --git a/Makefile.in b/Makefile.in
index d1d8b32..22a77d2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -57763,6 +57763,14 @@ configure-stage3-gcc: maybe-all-stage3-gold
configure-stage4-gcc: maybe-all-stage4-gold
configure-stageprofile-gcc: maybe-all-stageprofile-gold
configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
+configure-gcc: maybe-all-libelf
+
+configure-stage1-gcc: maybe-all-stage1-libelf
+configure-stage2-gcc: maybe-all-stage2-libelf
+configure-stage3-gcc: maybe-all-stage3-libelf
+configure-stage4-gcc: maybe-all-stage4-libelf
+configure-stageprofile-gcc: maybe-all-stageprofile-libelf
+configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
all-gcc: all-libiberty
all-stage1-gcc: all-stage1-libiberty
@@ -57819,14 +57827,6 @@ all-stage3-gcc: maybe-all-stage3-cloog
all-stage4-gcc: maybe-all-stage4-cloog
all-stageprofile-gcc: maybe-all-stageprofile-cloog
all-stagefeedback-gcc: maybe-all-stagefeedback-cloog
-all-gcc: maybe-all-libelf
-
-all-stage1-gcc: maybe-all-stage1-libelf
-all-stage2-gcc: maybe-all-stage2-libelf
-all-stage3-gcc: maybe-all-stage3-libelf
-all-stage4-gcc: maybe-all-stage4-libelf
-all-stageprofile-gcc: maybe-all-stageprofile-libelf
-all-stagefeedback-gcc: maybe-all-stagefeedback-libelf
all-gcc: maybe-all-build-texinfo
all-stage1-gcc: maybe-all-build-texinfo
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d6a1305..d73bb94 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,153 @@
+2010-06-17 Tristan Gingold <gingold@adacore.com>
+
+ * Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
+ (BFD64_BACKENDS_CFILES): ... here.
+ (BFD32_BACKENDS): Move vms-alpha.lo to ...
+ (BFD64_BACKENDS): ... here.
+ * Makefile.in: Regenerate.
+
+2010-06-15 Joseph Myers <joseph@codesourcery.com>
+
+ * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
+ * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
+ elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
+ elf32_tic6x_merge_private_bfd_data): New.
+ (bfd_elf32_bfd_merge_private_bfd_data,
+ elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
+ elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
+ Define.
+ * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
+
+2010-06-15 Joseph Myers <joseph@codesourcery.com>
+
+ * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
+ (struct elf_backend_data): Update comment on obj_attrs_order.
+ * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
+ _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
+ instead of hardcoded 4.
+ * elf32-arm.c (elf32_arm_obj_attrs_order): Use
+ LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
+ instead of hardcoded 4 and 5.
+ (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
+ instead of hardcoded 4.
+
+2010-06-14 Kevin Buettner <kevinb@redhat.com>
+
+ * elf32-h8300.c (elf_symbol_leading_char): Define.
+
+2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
+
+2010-06-11 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
+ sections to 0.
+
+2010-06-11 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
+
+2010-06-11 Tristan Gingold <gingold@adacore.com>
+
+ * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
+ Adjust cast.
+ (_bfd_vms_output_dump): Make DATA argument const, adjust cast.
+ * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
+ * vms-alpha.c (evax_section_flags): Make it const.
+ (vms_secflag_by_name): Remove unused ABFD argument.
+ Make SECTION_FLAGS and NAME arguments const. Clarify comment.
+ (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
+ (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
+ (_bfd_vms_write_egsd): Remove useless cast.
+
+2010-06-10 Tristan Gingold <gingold@adacore.com>
+
+ * config.bfd: Remove #if/#endif so that som can be compiled on any
+ host.
+ * targets.c (_bfd_target_vector): Remove #if/#endif so that som
+ can be used on any host.
+
+2010-06-10 Tristan Gingold <gingold@adacore.com>
+
+ * som.c: Can now be compiled on any host.
+ Include bfd headers instead of system one.
+ (som_compute_checksum): Parameter is now a pointer to a
+ som_external_header structure. Adjust.
+ (struct section_to_type): Field section is now const.
+ (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
+ definition.
+ (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
+ (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
+ (som_swap_clock_in, som_swap_clock_out): New functions.
+ (som_swap_header_in, som_swap_header_out): Likewise.
+ (som_swap_space_dictionary_in): Likewise.
+ (som_swap_space_dictionary_out): Likewise.
+ (som_swap_subspace_dictionary_in): Likewise.
+ (som_swap_subspace_dictionary_record_out): Likewise.
+ (som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
+ (som_swap_string_auxhdr_out): Likewise.
+ (som_swap_compilation_unit_out): Likewise.
+ (som_swap_exec_auxhdr_in): Likewise.
+ (som_swap_exec_auxhdr_out): Likewise.
+ (som_swap_lst_header_in): Likewise.
+ (som_object_setup): Adjust parameter type using bfd types.
+ (setup_sections): Likewise. Ditto for object file types.
+ Use intermediate variables for external representation and use the
+ swap functions to convert.
+ (som_object_p): Ditto. Remove #ifdef/#endif on always defined
+ macros.
+ (som_prep_headers): Likewise.
+ (som_write_symbol_strings): Likewise.
+ (som_begin_writing): Likewise.
+ (som_finish_writing): Likewise.
+ (som_build_and_write_symbol_table): Likewise.
+ (bfd_section_from_som_symbol): Likewise.
+ (som_slurp_symbol_table): Likewise.
+ (som_bfd_print_private_bfd_data): Likewise.
+ (bfd_som_attach_aux_hdr): Likewise. Clear the padding.
+ (bfd_som_attach_compilation_unit): Likewise.
+ (som_bfd_count_ar_symbols): Likewise.
+ (som_bfd_fill_in_ar_symbols): Likewise.
+ (som_slurp_armap): Likewise.
+ (som_bfd_ar_write_symbol_stuff): Likewise.
+ (som_write_armap): Likewise. Use _bfd_ar_spacepad instead of
+ sprintf to write header fields.
+ * som.h: Include bfd headers instead of system one.
+ (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
+ (struct somdata): Use bfd structures instead of system ones.
+ (struct som_section_data_struct): Likewise.
+ (struct som_subspace_dictionary_record): Removed (now in
+ include/som/internal.h)
+
+2010-06-10 Tristan Gingold <gingold@adacore.com>
+
+ * targets.c (bfd_target_list): Remove hp/ux compiler work-around
+ as bfd requires an ANSI-C compiler.
+
+2010-06-09 Tristan Gingold <gingold@adacore.com>
+
+ * bfdio.c (bfd_bread): Fix the code to prevent reading past the
+ end of archive members.
+
+2010-06-08 Tristan Gingold <gingold@adacore.com>
+
+ * som.c (som_bfd_free_cached_info): Do not free relocations as
+ they were allocated with bfd_zalloc.
+
+2010-06-08 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
+ for the first block.
+
+2010-06-08 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
+ * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
+ * libbfd.h: Regenerate.
+ * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
+ (bfd_elfNN_mkarchive): Ditto.
+
2010-06-02 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index e625930..61e89fa 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -391,7 +391,6 @@ BFD32_BACKENDS = \
vaxbsd.lo \
vaxnetbsd.lo \
versados.lo \
- vms-alpha.lo \
vms-lib.lo \
vms-misc.lo \
xcofflink.lo \
@@ -573,7 +572,6 @@ BFD32_BACKENDS_CFILES = \
vaxbsd.c \
vaxnetbsd.c \
versados.c \
- vms-alpha.c \
vms-lib.c \
vms-misc.c \
xcofflink.c \
@@ -617,7 +615,8 @@ BFD64_BACKENDS = \
pei-ia64.lo \
pei-x86_64.lo \
pepigen.lo \
- pex64igen.lo
+ pex64igen.lo \
+ vms-alpha.lo
BFD64_BACKENDS_CFILES = \
aix5ppc-core.c \
@@ -646,7 +645,8 @@ BFD64_BACKENDS_CFILES = \
nlm64.c \
pe-x86_64.c \
pei-ia64.c \
- pei-x86_64.c
+ pei-x86_64.c \
+ vms-alpha.c
OPTIONAL_BACKENDS = \
aix386-core.lo \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index e21c1cd..5b5c821 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -689,7 +689,6 @@ BFD32_BACKENDS = \
vaxbsd.lo \
vaxnetbsd.lo \
versados.lo \
- vms-alpha.lo \
vms-lib.lo \
vms-misc.lo \
xcofflink.lo \
@@ -871,7 +870,6 @@ BFD32_BACKENDS_CFILES = \
vaxbsd.c \
vaxnetbsd.c \
versados.c \
- vms-alpha.c \
vms-lib.c \
vms-misc.c \
xcofflink.c \
@@ -916,7 +914,8 @@ BFD64_BACKENDS = \
pei-ia64.lo \
pei-x86_64.lo \
pepigen.lo \
- pex64igen.lo
+ pex64igen.lo \
+ vms-alpha.lo
BFD64_BACKENDS_CFILES = \
aix5ppc-core.c \
@@ -945,7 +944,8 @@ BFD64_BACKENDS_CFILES = \
nlm64.c \
pe-x86_64.c \
pei-ia64.c \
- pei-x86_64.c
+ pei-x86_64.c \
+ vms-alpha.c
OPTIONAL_BACKENDS = \
aix386-core.lo \
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index 4c13a76..ce92781 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -180,8 +180,12 @@ bfd_bread (void *ptr, bfd_size_type size, bfd *abfd)
if (abfd->arelt_data != NULL)
{
size_t maxbytes = ((struct areltdata *) abfd->arelt_data)->parsed_size;
- if (size > maxbytes)
- size = maxbytes;
+ if (abfd->where + size > maxbytes)
+ {
+ if (abfd->where >= maxbytes)
+ return 0;
+ size = maxbytes - abfd->where;
+ }
}
if (abfd->iovec)
diff --git a/bfd/config.bfd b/bfd/config.bfd
index abe1b5e..b25b2fa 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -470,7 +470,6 @@ case "${targ}" in
targ_selvecs=bfd_elf32_hppa_linux_vec
;;
-#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) || defined (HOST_HPPAMPEIX)
hppa*-*-bsd*)
targ_defvec=som_vec
targ_selvecs=bfd_elf32_hppa_vec
@@ -482,7 +481,6 @@ case "${targ}" in
targ_defvec=som_vec
targ_selvecs=bfd_elf32_hppa_vec
;;
-#endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */
i370-*-*)
targ_defvec=bfd_elf32_i370_vec
diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c
index c514ead..b9d3bf2 100644
--- a/bfd/elf-attrs.c
+++ b/bfd/elf-attrs.c
@@ -1,5 +1,5 @@
/* ELF attributes support (based on ARM EABI attributes).
- Copyright 2005, 2006, 2007, 2009
+ Copyright 2005, 2006, 2007, 2009, 2010
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -96,7 +96,7 @@ vendor_obj_attr_size (bfd *abfd, int vendor)
attr = elf_known_obj_attributes (abfd)[vendor];
size = 0;
- for (i = 4; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++)
+ for (i = LEAST_KNOWN_OBJ_ATTRIBUTE; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++)
size += obj_attr_size (i, &attr[i]);
for (list = elf_other_obj_attributes (abfd)[vendor];
@@ -188,7 +188,7 @@ vendor_set_obj_attr_contents (bfd *abfd, bfd_byte *contents, bfd_vma size,
p += 4;
attr = elf_known_obj_attributes (abfd)[vendor];
- for (i = 4; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++)
+ for (i = LEAST_KNOWN_OBJ_ATTRIBUTE; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++)
{
int tag = i;
if (get_elf_backend_data (abfd)->obj_attrs_order)
@@ -349,9 +349,11 @@ _bfd_elf_copy_obj_attributes (bfd *ibfd, bfd *obfd)
for (vendor = OBJ_ATTR_FIRST; vendor <= OBJ_ATTR_LAST; vendor++)
{
- in_attr = &elf_known_obj_attributes (ibfd)[vendor][4];
- out_attr = &elf_known_obj_attributes (obfd)[vendor][4];
- for (i = 4; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++)
+ in_attr
+ = &elf_known_obj_attributes (ibfd)[vendor][LEAST_KNOWN_OBJ_ATTRIBUTE];
+ out_attr
+ = &elf_known_obj_attributes (obfd)[vendor][LEAST_KNOWN_OBJ_ATTRIBUTE];
+ for (i = LEAST_KNOWN_OBJ_ATTRIBUTE; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++)
{
out_attr->type = in_attr->type;
out_attr->i = in_attr->i;
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 226b95f..0b21e2a 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1245,10 +1245,11 @@ struct elf_backend_data
/* The section type to use for an attributes section. */
unsigned int obj_attrs_section_type;
- /* This function determines the order in which any attributes are written.
- It must be defined for input in the range 4..NUM_KNOWN_OBJ_ATTRIBUTES-1
- (this range is used in order to make unity easy). The returned value is
- the actual tag number to place in the input position. */
+ /* This function determines the order in which any attributes are
+ written. It must be defined for input in the range
+ LEAST_KNOWN_OBJ_ATTRIBUTE..NUM_KNOWN_OBJ_ATTRIBUTES-1 (this range
+ is used in order to make unity easy). The returned value is the
+ actual tag number to place in the input position. */
int (*obj_attrs_order) (int);
/* This is TRUE if the linker should act like collect and gather
@@ -1412,6 +1413,12 @@ struct bfd_elf_section_data
#define get_elf_backend_data(abfd) \
xvec_get_elf_backend_data ((abfd)->xvec)
+/* The least object attributes (within an attributes subsection) known
+ for any target. Some code assumes that the value 0 is not used and
+ the field for that attribute can instead be used as a marker to
+ indicate that attributes have been initialized. */
+#define LEAST_KNOWN_OBJ_ATTRIBUTE 2
+
/* The maximum number of known object attributes for any target. */
#define NUM_KNOWN_OBJ_ATTRIBUTES 71
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index df25977..53a0846 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -9624,9 +9624,9 @@ elf32_arm_obj_attrs_arg_type (int tag)
static int
elf32_arm_obj_attrs_order (int num)
{
- if (num == 4)
+ if (num == LEAST_KNOWN_OBJ_ATTRIBUTE)
return Tag_conformance;
- if (num == 5)
+ if (num == LEAST_KNOWN_OBJ_ATTRIBUTE + 1)
return Tag_nodefaults;
if ((num - 2) < Tag_nodefaults)
return num - 2;
@@ -9932,7 +9932,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, bfd *obfd)
}
}
- for (i = 4; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++)
+ for (i = LEAST_KNOWN_OBJ_ATTRIBUTE; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++)
{
/* Merge this attribute with existing attributes. */
switch (i)
diff --git a/bfd/elf32-h8300.c b/bfd/elf32-h8300.c
index 523a911..92c0a16 100644
--- a/bfd/elf32-h8300.c
+++ b/bfd/elf32-h8300.c
@@ -1641,5 +1641,6 @@ elf32_h8_get_relocated_section_contents (bfd *output_bfd,
#define bfd_elf32_bfd_get_relocated_section_contents \
elf32_h8_get_relocated_section_contents
+#define elf_symbol_leading_char '_'
#include "elf32-target.h"
diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c
index 73fb706..dc837fb 100644
--- a/bfd/elf32-tic6x.c
+++ b/bfd/elf32-tic6x.c
@@ -1664,6 +1664,89 @@ elf32_tic6x_relocate_section (bfd *output_bfd,
return ok;
}
+static int
+elf32_tic6x_obj_attrs_arg_type (int tag)
+{
+ if (tag == Tag_compatibility)
+ return ATTR_TYPE_FLAG_INT_VAL | ATTR_TYPE_FLAG_STR_VAL;
+ else
+ /* Correct for known attributes, arbitrary for others. */
+ return ATTR_TYPE_FLAG_INT_VAL;
+}
+
+/* Merge the Tag_C6XABI_Tag_CPU_arch attribute values ARCH1 and ARCH2
+ and return the merged value. At present, all merges succeed, so no
+ return value for errors is defined. */
+
+int
+elf32_tic6x_merge_arch_attributes (int arch1, int arch2)
+{
+ int min_arch, max_arch;
+
+ min_arch = (arch1 < arch2 ? arch1 : arch2);
+ max_arch = (arch1 > arch2 ? arch1 : arch2);
+
+ /* In most cases, the numerically greatest value is the correct
+ merged value, but merging C64 and C67 results in C674X. */
+ if ((min_arch == C6XABI_Tag_CPU_arch_C67X
+ || min_arch == C6XABI_Tag_CPU_arch_C67XP)
+ && (max_arch == C6XABI_Tag_CPU_arch_C64X
+ || max_arch == C6XABI_Tag_CPU_arch_C64XP))
+ return C6XABI_Tag_CPU_arch_C674X;
+
+ return max_arch;
+}
+
+/* Merge attributes from IBFD and OBFD, returning TRUE if the merge
+ succeeded, FALSE otherwise. */
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-06-07 8:14 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-06-07 8:14 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 69586a9d5fd734221116b1b3942d57abd49f0fe3 (commit)
via 8dd6bd490a400662a22cfe3684f97122cc95e294 (commit)
via 92cdabaf51be0b24e1115e4b68237955b09ab69a (commit)
via b042f1660b577c801bc7dd1ff4beda8f2aa89348 (commit)
via 3828e51dff39ce216a7c0fa01237640a773e9536 (commit)
via 89438aba8612cfd4c7a91e87dba9f4c2593817b5 (commit)
via cbf5b8341ae85f2d2da1ffdd1d94ff89a06e3362 (commit)
via f658d37633503166d4d61c2ec96eed5fc0db73a8 (commit)
via bcd474c7a8cd7db461419a309d734a603c8d4a46 (commit)
via 70d3a217c68043df2a04cebbe360a6af37cfac4d (commit)
via f69da6400810fa9839eadf3b4c2f5fab89c85db1 (commit)
via 2074d093fb1fe2e9294a0849b024d2d2b57f3726 (commit)
via b0e06c2de17ef3720293e5d9f4c5ea3e2a936a7d (commit)
via 641d6f210aa992b946e63763eb39e6cbc648ba23 (commit)
via 73ae440a4921980f803555d142a4f6d3f2c65d67 (commit)
via f993ca08d60d6f71dc29c3754c90d3af25b9f6f1 (commit)
via cd8fdd50575a654310162867ffd7db883f7ecf9a (commit)
via 0dc1ce2f0f70eea81e64dbea0abf0a14b1f7dfdb (commit)
via 061920ccf7ad8350999c6dd492509ece2c644f68 (commit)
via 671e6b78d45fef3c5e06274047d014777254ca24 (commit)
via ac794ee400a0b0f31fc72c256164bd194b40a1e1 (commit)
via f6e8cb4b57903155d251d2a907e6ecfbf2ade8a5 (commit)
via 00edd0ee40c93d024dd5daf259f59acd38b307d1 (commit)
via 2e3cda7dcb9752e7662594934dc6e0c1f06568da (commit)
via b257c95d95a56ffc7ed7c296ec38d4ece2fa2054 (commit)
via dd02113533f9df1eb7ade0bcc65f03087b94b0a8 (commit)
via 70cc0c1d7e1c8d112cb2ab0393f2c5529cef5b80 (commit)
via d2c71e3101444f4183fbf672e5e34aa70c82881b (commit)
via 0f0987d09db144c80cdc7e3a9c05bf601b657bab (commit)
via e742b72b1a11fb68ba954648db11bc3fbb46ed3f (commit)
via fc9f6633b5caad1b5be11e06ccb9b29d07bd3ad1 (commit)
via 0f2105d7209be5a9eb98d6907df93f59e27bf8b3 (commit)
via b0418c906a7a9e4371a31871165d9299c924cb4b (commit)
via e0c0dff31537b936df729b98dd7a9cf83a3d9b4d (commit)
via f2521eb388e07909560f5c881f338ad986ef063d (commit)
via 7d9b30f222f413a5d30f9b92b57269ed0d3f1ef8 (commit)
via 9ebc5abfba7485500641a793722348f71cf8e390 (commit)
via 4199f8a8172f7652b80f04bb0711a4f08aaffa7c (commit)
via 53edf2ddec50b011dd311b426f41c839d1431265 (commit)
via 908331045b3c7a6bfc47df7695451626a691965a (commit)
via 504d3e952eafea1cb610d53ffe91a5bd6b5aeddd (commit)
via 53f6fc3257c74aef466d35e93e19daaa2b54137b (commit)
via 009de46eddb2c1dfd52b19f79e6cdf1e9acb5174 (commit)
via b13de58733c1de3b20f8df25322b45d0620f1a7e (commit)
via 92e4ebdbc9df0ebb5e3afe0b7cf0a97b5cc20cd8 (commit)
via bc1d94c2305ecb01f08ba5fd2ba6c9e0ae8818f8 (commit)
via 906637e07dc427c92cdf3ac00d739368d1753d77 (commit)
from 75a875500bdb364303b7d90aa30d988592f5663c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 69586a9d5fd734221116b1b3942d57abd49f0fe3
Merge: 75a875500bdb364303b7d90aa30d988592f5663c 8dd6bd490a400662a22cfe3684f97122cc95e294
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jun 7 10:13:40 2010 +0200
Merge remote branch 'gdb/master'
commit 8dd6bd490a400662a22cfe3684f97122cc95e294
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jun 7 00:00:05 2010 +0000
daily update
commit 92cdabaf51be0b24e1115e4b68237955b09ab69a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jun 7 00:00:02 2010 +0000
*** empty log message ***
commit b042f1660b577c801bc7dd1ff4beda8f2aa89348
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jun 6 00:00:05 2010 +0000
daily update
commit 3828e51dff39ce216a7c0fa01237640a773e9536
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jun 6 00:00:03 2010 +0000
*** empty log message ***
commit 89438aba8612cfd4c7a91e87dba9f4c2593817b5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Jun 5 14:11:53 2010 +0000
gdb/
Fix duplicate types for single DIE.
* dwarf2read.c (read_structure_type): Move set_descriptive_type after
set_die_type.
(read_array_type): Remove type initialization. Recheck get_die_type
after initial die_type. Move set_die_type before set_descriptive_type.
(read_set_type): New variable domain_type. Recheck get_die_type after
initial die_type. Move attr initialization later.
(read_tag_pointer_type, read_tag_reference_type): New variable
target_type. Recheck get_die_type after initial die_type.
(read_tag_ptr_to_member_type): Recheck get_die_type after initial
die_type and die_containing_type.
(read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
Recheck get_die_type after initial die_type.
(read_subrange_type): Recheck get_die_type after initial die_type.
Move set_die_type before set_descriptive_type.
(set_die_type): Extend the function comment. Call complaint if DIE has
some type already set.
commit cbf5b8341ae85f2d2da1ffdd1d94ff89a06e3362
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Sat Jun 5 05:55:59 2010 +0000
* mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
for current naming of thread groups (iN, not N).
commit f658d37633503166d4d61c2ec96eed5fc0db73a8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jun 5 00:00:36 2010 +0000
*** empty log message ***
commit bcd474c7a8cd7db461419a309d734a603c8d4a46
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jun 5 00:00:07 2010 +0000
daily update
commit 70d3a217c68043df2a04cebbe360a6af37cfac4d
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Jun 4 23:09:15 2010 +0000
2010-06-04 Michael Snyder <msnyder@vmware.com>
* gdb.base/attach.exp: Replace gdb_test_multiple with gdb_test.
commit f69da6400810fa9839eadf3b4c2f5fab89c85db1
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Jun 4 22:15:28 2010 +0000
2010-06-04 Michael Snyder <msnyder@vmware.com>
* gdb.base/pending.exp: Replace gdb_test_multiple with gdb_test.
commit 2074d093fb1fe2e9294a0849b024d2d2b57f3726
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Jun 4 21:45:02 2010 +0000
2010-06-04 Michael Snyder <msnyder@vmware.com>
* gdb.cp/pr-1210.exp: Add message string to gdb_test_multiple.
commit b0e06c2de17ef3720293e5d9f4c5ea3e2a936a7d
Author: sergiodj <sergiodj>
Date: Fri Jun 4 21:39:46 2010 +0000
2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
* ada-lang.c (ada_operator_length): Constify `struct expression'.
* parse.c (operator_length): Likewise.
(operator_length_standard): Likewise.
* parser-defs.h (operator_length): Likewise.
(operator_length_standard): Likewise.
(struct exp_descriptor <operator_length>): Likewise.
commit 641d6f210aa992b946e63763eb39e6cbc648ba23
Author: Doug Evans <dje@google.com>
Date: Fri Jun 4 21:20:21 2010 +0000
remove trailing whitespace in previous checkin
commit 73ae440a4921980f803555d142a4f6d3f2c65d67
Author: Doug Evans <dje@google.com>
Date: Fri Jun 4 18:18:24 2010 +0000
Add support for enabling/disabling individual pretty-printers.
* python/py-prettyprint.c (search_pp_list): Skip disabled printers.
* python/python-internal.h (gdbpy_enabled_cst): Declare.
* python/python.c (gdbpy_enabled_cst): Define.
(_initialize_python): Initialize gdbpy_enabled_cst.
* NEWS: Add entry.
doc/
* gdb.texinfo (Python API): New node `Disabling Pretty-Printers'.
testsuite/
* gdb.python/py-prettyprint.exp: Add new test for enabled and
disabled printers.
* gdb.python/py-prettyprint.py (disable_lookup_function): New function.
(enable_lookup_function): New function.
commit f993ca08d60d6f71dc29c3754c90d3af25b9f6f1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jun 4 16:47:58 2010 +0000
gdb/
* breakpoint.c (update_global_location_list): Fix comment typo.
commit cd8fdd50575a654310162867ffd7db883f7ecf9a
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jun 4 16:40:13 2010 +0000
* gdb.python/py-value.exp (test_value_hash): Don't test equality
of hash and id.
commit 0dc1ce2f0f70eea81e64dbea0abf0a14b1f7dfdb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jun 4 14:26:47 2010 +0000
gdb/testsuite/
* gdb.base/commands.exp (add printf tbreak command): Remove trailing
newline.
* gdb.gdb/complaints.exp (empty non-verbose non-noisy clear)
(empty verbose non-noisy clear, empty verbose noisy clear)
(empty non-verbose noisy clear): Likewise.
commit 061920ccf7ad8350999c6dd492509ece2c644f68
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jun 4 14:26:47 2010 +0000
gdb/testsuite/
* gdb.base/commands.exp (add printf tbreak command): Remove trailing
newline.
* gdb.gdb/complaints.exp (empty non-verbose non-noisy clear)
(empty verbose non-noisy clear, empty verbose noisy clear)
(empty non-verbose noisy clear): Likewise.
commit 671e6b78d45fef3c5e06274047d014777254ca24
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Jun 4 02:39:16 2010 +0000
2010-06-04 Hui Zhu <teawater@gmail.com>
* dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
commit ac794ee400a0b0f31fc72c256164bd194b40a1e1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jun 4 00:00:08 2010 +0000
daily update
commit f6e8cb4b57903155d251d2a907e6ecfbf2ade8a5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jun 4 00:00:03 2010 +0000
*** empty log message ***
commit 00edd0ee40c93d024dd5daf259f59acd38b307d1
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu Jun 3 23:54:17 2010 +0000
2010-06-03 Michael Snyder <msnyder@vmware.com>
* gdb.base/commands.exp: Replace gdb_test with gdb_test_no_output.
* gdb.base/display.exp: Ditto.
* gdb.base/find.exp: Ditto.
* gdb.base/ifelse.exp: Ditto.
* gdb.base/multi-forks.exp: Ditto.
* gdb.base/recurse.exp: Ditto.
* gdb.base/setshow.exp: Ditto.
* gdb.base/value-double-free.exp: Ditto.
* gdb.base/watch-vfork.exp: Ditto.
* gdb.base/watch_thread_num.exp: Ditto.
* gdb.base/watchpoint-solib.exp: Ditto.
* gdb.base/watchpoint.exp: Ditto.
* gdb.base/watchpoints.exp: Ditto.
* gdb.cp/classes.exp: Replace gdb_test with gdb_test_no_output.
* gdb.cp/overload.exp: Ditto.
* gdb.cp/virtfunc.exp: Ditto.
* gdb.python/py-value.exp: Replace gdb_test with gdb_test_no_output.
* gdb.reverse/watch-precsave.exp:
Replace gdb_test with gdb_test_no_output.
* gdb.threads/attach-into-signal.exp:
Replace gdb_test with gdb_test_no_output.
* gdb.threads/local-watch-wrong-thread.exp: Ditto.
* gdb.threads/watchthreads.exp: Ditto.
* gdb.threads/watchthreads2.exp: Ditto.
* gdb.trace/deltrace.exp: Replace gdb_test with gdb_test_no_output.
* gdb.trace/tfind.exp: Ditto.
commit 2e3cda7dcb9752e7662594934dc6e0c1f06568da
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jun 3 20:29:26 2010 +0000
do not emit PASS for gdb_test_no_output test if message is empty string.
This patch makes gdb_test_no_output not emit a PASS for a sucessful
test when the message is the empty string. As requested, this makes
it consistent with what gdb_test does.
2010-06-03 Joel Brobecker <brobecker@adacore.com>
* lib/gdb.exp (gdb_test_no_output): Do not emit pass for
successful test if message is the empty string.
commit b257c95d95a56ffc7ed7c296ec38d4ece2fa2054
Author: Doug Evans <dje@google.com>
Date: Thu Jun 3 19:06:59 2010 +0000
* gdbint.texinfo (Coding): Add subsection on command names.
commit dd02113533f9df1eb7ade0bcc65f03087b94b0a8
Author: Doug Evans <dje@google.com>
Date: Thu Jun 3 18:58:38 2010 +0000
* configure.ac: Don't fail if python is unusable when
configured with --with-python=auto.
* configure: Regenerate.
commit 70cc0c1d7e1c8d112cb2ab0393f2c5529cef5b80
Author: DJ Delorie <dj@delorie.com>
Date: Thu Jun 3 16:54:11 2010 +0000
merge from gcc
commit d2c71e3101444f4183fbf672e5e34aa70c82881b
Author: swagiaal <swagiaal>
Date: Thu Jun 3 15:39:39 2010 +0000
Remove redundant naming of symbol from new_symbol.
2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
* dwarf2read.c (new_symbol): Remove redundant naming of symbol.
commit 0f0987d09db144c80cdc7e3a9c05bf601b657bab
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Jun 3 06:50:47 2010 +0000
* valprint.h (get_array_bounds): Change low and high parameter types
to LONGEST *.
* valprint.c (get_array_bounds): Use get_discrete_bounds call to
compute bounds.
(val_print_array_elements): Adapt to change above.
* ada-valprint.c (print_optional_low_bound): Adapt to change above.
* p-valprint.c (pascal_val_print): Likewise.
commit e742b72b1a11fb68ba954648db11bc3fbb46ed3f
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Thu Jun 3 06:33:10 2010 +0000
Import AC_CHECK_DECL for C++ fixes from git Autoconf.
config/:
Sync from GCC:
PR bootstrap/42798
* override.m4 (_AC_CHECK_DECL_BODY, _AC_CHECK_DECLS): Import
definitions from git Autoconf.
commit fc9f6633b5caad1b5be11e06ccb9b29d07bd3ad1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jun 3 00:00:05 2010 +0000
daily update
commit 0f2105d7209be5a9eb98d6907df93f59e27bf8b3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jun 3 00:00:03 2010 +0000
*** empty log message ***
commit b0418c906a7a9e4371a31871165d9299c924cb4b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 2 23:01:00 2010 +0000
gdb/
* symfile.c (init_filename_language_table): New extensions .for, .FOR,
.ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
.F08.
gdb/testsuite/
* gdb.fortran/module.exp (stopped language detection): New test.
commit e0c0dff31537b936df729b98dd7a9cf83a3d9b4d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 2 22:41:55 2010 +0000
gdb/
Support DW_TAG_module as separate namespaces.
* dwarf2read.c (typename_concat): New parameter physname.
(read_module_type): New function and declaration.
(scan_partial_symbols): Scan also DW_TAG_module children.
(partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
to typename_concat backward compatible physname value 0.
(partial_die_full_name, read_namespace_type): Pass to typename_concat
backward compatible physname value 0.
(add_partial_module, read_module): Remove FIXME comment.
(process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
(die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
DIEs under DW_TAG_module.
(dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
DW_AT_MIPS_linkage_name first, extend it for language_fortran
&& physname and return there instead of just setting NAME. Extend
the main block for language_fortran. Pass physname parameter to the
typename_concat call.
(read_import_statement, read_func_scope, get_scope_pc_bounds)
(load_partial_dies, determine_prefix): Support also DW_TAG_module.
(new_symbol): Fill in cplus_specific.demangled_name if it is still
missing from SYMBOL_SET_NAMES in the language_fortran case.
(new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
variables.
(read_type_die) <DW_TAG_module>: New.
(MAX_SEP_LEN): Increase to 7.
(typename_concat): New parameter physname. New variable lead. Support
also language_fortran.
* f-exp.y (yylex): Consider : also as a symbol name character class.
* f-lang.c: Include cp-support.h.
(f_word_break_characters, f_make_symbol_completion_list): New functions.
(f_language_defn): Use cp_lookup_symbol_nonlocal,
f_word_break_characters and f_make_symbol_completion_list.
* f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
* gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
* symtab.c (symbol_init_language_specific): Support language_fortran.
(symbol_find_demangled_name): New comment on language_fortran.
(symbol_natural_name, symbol_demangled_name): Use demangled_name even
for language_fortran.
(lookup_symbol_aux_local): Check imports also for language_fortran.
(default_make_symbol_completion_list): Rename to ...
(default_make_symbol_completion_list_break_on): ... this name. New
parameter break_on, use it.
(default_make_symbol_completion_list): New stub.
* symtab.h (default_make_symbol_completion_list_break_on): New
prototype.
gdb/testsuite/
Support DW_TAG_module as separate namespaces.
* gdb.fortran/library-module.exp, gdb.fortran/library-module-main.f90,
gdb.fortran/library-module-lib.f90: New.
* gdb.fortran/module.exp: Replace startup by a prepare_for_testing call.
(print i): Remove.
(continue to breakpoint: i-is-1, print var_i value 1)
(continue to breakpoint: i-is-2, print var_i value 2)
(continue to breakpoint: a-b-c-d, print var_a, print var_b, print var_c)
(print var_d, print var_i value 14, ptype modmany, complete `modm)
(complete `modmany, complete `modmany`, complete `modmany`var)
(show language, setting breakpoint at module): New tests.
* gdb.fortran/module.f90 (module mod): Remove.
(module mod1, module mod2, module modmany, subroutine sub1)
(subroutine sub2, program module): New.
commit f2521eb388e07909560f5c881f338ad986ef063d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 2 22:24:15 2010 +0000
gdb/testsuite/
* gdb.cp/anon-union.exp (pass): Rename to ...
(print z 2): ... here.
commit 7d9b30f222f413a5d30f9b92b57269ed0d3f1ef8
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jun 2 22:21:52 2010 +0000
Fix ARI warning in remote.c (no trailing \n in call to error)
* remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
to error.
commit 9ebc5abfba7485500641a793722348f71cf8e390
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 2 22:20:11 2010 +0000
gdb/testsuite/
* gdb.cp/ref-types.exp (pass, pass, pass): Rename to ...
(print value of rUC, print value of rI, print value of UI): ... here.
commit 4199f8a8172f7652b80f04bb0711a4f08aaffa7c
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jun 2 21:55:27 2010 +0000
2010-06-02 Michael Snyder <msnyder@vmware.com>
* gdb.trace/actions.exp: Use gdb_test_no_output.
* gdb.trace/circ.exp: Ditto.
* gdb.trace/packetlen.exp: Ditto.
* gdb.trace/save-trace.exp: Ditto.
* gdb.trace/tracecmd.exp: Ditto.
* gdb.trace/tsv.exp: Ditto.
commit 53edf2ddec50b011dd311b426f41c839d1431265
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jun 2 21:53:28 2010 +0000
2010-06-02 Michael Snyder <msnyder@vmware.com>
* gdb.threads/fork-thread-pending.exp: Use gdb_test_no_output.
* gdb.threads/hand-call-in-thraeds.exp: Ditto.
* gdb.threads/local-watch-wrong-thread.exp: Ditto.
* gdb.threads/manythreads.exp: Ditto.
* gdb.threads/print-threads.exp: Ditto.
* gdb.threads/pthreads.exp: Ditto.
* gdb.threads/schedlock.exp: Ditto.
* gdb.threads/staticthreads.exp: Ditto.
* gdb.threads/thread-specific.exp: Ditto.
* gdb.threads/thread-unwindonsignal.exp: Ditto.
* gdb.threads/threadapply.exp: Ditto.
* gdb.threads/watchthreads.exp: Ditto.
* gdb.threads/watchthreads2.exp: Ditto.
commit 908331045b3c7a6bfc47df7695451626a691965a
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jun 2 21:50:55 2010 +0000
2010-06-02 Michael Snyder <msnyder@vmware.com>
* gdb.python/py-block.exp: Use gdb_test_no_output.
* gdb.python/py-prettyprint.exp: Ditto.
* gdb.python/py-template.exp: Ditto.
* gdb.python/py-value.exp: Ditto.
* gdb.reverse/watch-precsave.exp: Use gdb_test_no_output.
* gdb.reverse/watch-reverse.exp: Ditto.
* gdb.server/ext-attach.exp: Use gdb_test_no_output.
* gdb.server/ext-run.exp: Ditto.
commit 504d3e952eafea1cb610d53ffe91a5bd6b5aeddd
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jun 2 21:46:44 2010 +0000
2010-06-02 Michael Snyder <msnyder@vmware.com>
* gdb.dwarf2/dw2-basic.exp: Use gdb_test_no_output.
* gdb.dwarf2/dw2-compressed.exp: Ditto.
* gdb.dwarf2/dw2-intercu.exp: Ditto.
* gdb.dwarf2/dw2-intermix.exp: Ditto.
* gdb.dwarf2/dw2-producer.exp: Ditto.
* gdb.dwarf2/mac-fileno.exp: Ditto.
* gdb.gdb/observer.exp: Use gdb_test_no_output.
* gdb.gdb/selftest.exp: Ditto.
* gdb.multi/base.exp: Use gdb_test_no_output.
* gdb.opt/inline-cmds.exp: Use gdb_test_no_output.
commit 53f6fc3257c74aef466d35e93e19daaa2b54137b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 2 21:38:32 2010 +0000
gdb/testsuite/
* gdb.cp/ref-types.exp (print value of UI): Remove excessive newline.
commit 009de46eddb2c1dfd52b19f79e6cdf1e9acb5174
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 2 20:03:40 2010 +0000
gdb/
* dwarf2read.c (typename_concat): Add const to the variable sep.
commit b13de58733c1de3b20f8df25322b45d0620f1a7e
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jun 2 20:03:15 2010 +0000
2010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.cp/class2.exp: Use gdb_test_no_output.
* gdb.cp/classes.exp: Ditto.
* gdb.cp/extern-c.exp: Ditto.
* gdb.cp/inherit.exp: Ditto.
* gdb.cp/maint.exp: Ditto.
* gdb.cp/mb-inline.exp: Ditto.
* gdb.cp/mb-templates.exp: Ditto.
* gdb.cp/method2.exp: Ditto.
* gdb.cp/misc.exp: Ditto.
* gdb.cp/ovldbreak.exp: Ditto.
* gdb.cp/punctuator.exp: Ditto.
* gdb.cp/templates.exp: Ditto.
* gdb.cp/virtbase.exp: Ditto.
commit 92e4ebdbc9df0ebb5e3afe0b7cf0a97b5cc20cd8
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jun 2 19:58:21 2010 +0000
2010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.threads/attach-stopped.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/attachstop-mt.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/gcore-thread.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/hand-call-in-threads.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/linux-dp.exp: Replace uses of send_gdb / gdb_expect.
* gdb.threads/print-threads.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.threads/pthreads.exp: Replace uses of send_gdb / gdb_expect.
* gdb.threads/schedlock.exp: Replace uses of send_gdb / gdb_expect.
* gdb.threads/sigthread.exp: Replace uses of send_gdb / gdb_expect.
commit bc1d94c2305ecb01f08ba5fd2ba6c9e0ae8818f8
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Jun 2 19:41:11 2010 +0000
2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.trace/actions.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/backtrace.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/collection.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/deltrace.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/infotrace.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/limits.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/report.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/save-trace.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/tfind.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/tracecmd.exp: Replace uses of send_gdb / gdb_expect.
* gdb.trace/tsv.exp: Replace uses of send_gdb / gdb_expect.
commit 906637e07dc427c92cdf3ac00d739368d1753d77
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jun 2 19:37:54 2010 +0000
gdb
* dwarf2loc.h (dwarf2_per_cu_data): Declare.
* dwarf2read.c (dwarf_stack_op_name): No longer static. Return
type is const. Add 'def' argument. Add missing operators, remove
unhandled ones.
(decode_locdesc): Update.
(dwarf2_always_disassemble): New global.
(show_dwarf2_always_disassemble): New function.
(_initialize_dwarf2_read): Add always-disassemble.
(dwarf2_per_cu_offset_size): New function.
* dwarf2loc.c (dwarf2_always_disassemble): Declare.
(piece_end_p): New function.
(locexpr_describe_location_piece): Replace 'size' argument with
'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
some constants. Remove errors.
(disassemble_dwarf_expression): New function.
(locexpr_describe_location_1): Use disassemble_dwarf_expression.
Add 'offset_size' argument.
(loclist_describe_location): Change output formatting.
* dwarf2expr.h (dwarf_stack_op_name): Declare.
gdb/doc
* gdb.texinfo (Maintenance Commands): Document maint set dwarf2
always-disassemble.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
config/ChangeLog | 8 +
config/override.m4 | 41 ++
gdb/ChangeLog | 156 +++++++
gdb/NEWS | 2 +
gdb/ada-lang.c | 3 +-
gdb/ada-valprint.c | 6 +-
gdb/breakpoint.c | 2 +-
gdb/configure | 39 ++-
gdb/configure.ac | 25 +-
gdb/doc/ChangeLog | 13 +
gdb/doc/gdb.texinfo | 55 +++-
gdb/doc/gdbint.texinfo | 4 +
gdb/dwarf2expr.h | 2 +
gdb/dwarf2loc.c | 424 +++++++++++++++++---
gdb/dwarf2loc.h | 3 +
gdb/dwarf2read.c | 363 ++++++++++++-----
gdb/f-exp.y | 4 +-
gdb/f-lang.c | 39 ++-
gdb/f-typeprint.c | 4 +
gdb/gdbtypes.h | 2 +
gdb/mi/mi-main.c | 19 +-
gdb/p-valprint.c | 2 +-
gdb/parse.c | 5 +-
gdb/parser-defs.h | 7 +-
gdb/python/py-prettyprint.c | 5 +
gdb/python/python-internal.h | 1 +
gdb/python/python.c | 2 +
gdb/remote.c | 2 +-
gdb/symfile.c | 14 +
gdb/symtab.c | 23 +-
gdb/symtab.h | 2 +
gdb/testsuite/ChangeLog | 189 +++++++++
gdb/testsuite/gdb.base/attach.exp | 10 +-
gdb/testsuite/gdb.base/commands.exp | 4 +-
gdb/testsuite/gdb.base/display.exp | 2 +-
gdb/testsuite/gdb.base/find.exp | 20 +-
gdb/testsuite/gdb.base/ifelse.exp | 2 +-
gdb/testsuite/gdb.base/multi-forks.exp | 2 +-
gdb/testsuite/gdb.base/pending.exp | 10 +-
gdb/testsuite/gdb.base/recurse.exp | 2 +-
gdb/testsuite/gdb.base/setshow.exp | 2 +-
gdb/testsuite/gdb.base/value-double-free.exp | 2 +-
gdb/testsuite/gdb.base/watch-vfork.exp | 2 +-
gdb/testsuite/gdb.base/watch_thread_num.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint-solib.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint.exp | 2 +-
gdb/testsuite/gdb.base/watchpoints.exp | 4 +-
gdb/testsuite/gdb.cp/anon-union.exp | 2 +-
gdb/testsuite/gdb.cp/class2.exp | 4 +-
gdb/testsuite/gdb.cp/classes.exp | 10 +-
gdb/testsuite/gdb.cp/extern-c.exp | 2 +-
gdb/testsuite/gdb.cp/inherit.exp | 4 +-
gdb/testsuite/gdb.cp/maint.exp | 2 +-
gdb/testsuite/gdb.cp/mb-inline.exp | 2 +-
gdb/testsuite/gdb.cp/mb-templates.exp | 8 +-
gdb/testsuite/gdb.cp/method2.exp | 2 +-
gdb/testsuite/gdb.cp/misc.exp | 2 +-
gdb/testsuite/gdb.cp/overload.exp | 2 +-
gdb/testsuite/gdb.cp/ovldbreak.exp | 6 +-
gdb/testsuite/gdb.cp/pr-1210.exp | 4 +-
gdb/testsuite/gdb.cp/punctuator.exp | 14 +-
gdb/testsuite/gdb.cp/ref-types.exp | 8 +-
gdb/testsuite/gdb.cp/templates.exp | 2 +-
gdb/testsuite/gdb.cp/virtbase.exp | 2 +-
gdb/testsuite/gdb.cp/virtfunc.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-basic.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-compressed.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-intercu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-intermix.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-producer.exp | 2 +-
gdb/testsuite/gdb.dwarf2/mac-fileno.exp | 2 +-
.../{module.f90 => library-module-lib.f90} | 21 +-
.../{module.f90 => library-module-main.f90} | 15 +-
gdb/testsuite/gdb.fortran/library-module.exp | 58 +++
gdb/testsuite/gdb.fortran/module.exp | 55 +++-
gdb/testsuite/gdb.fortran/module.f90 | 39 ++-
gdb/testsuite/gdb.gdb/complaints.exp | 8 +-
gdb/testsuite/gdb.gdb/observer.exp | 32 +-
gdb/testsuite/gdb.gdb/selftest.exp | 2 +-
gdb/testsuite/gdb.multi/base.exp | 2 +-
gdb/testsuite/gdb.opt/inline-cmds.exp | 2 +-
gdb/testsuite/gdb.python/py-block.exp | 4 +-
gdb/testsuite/gdb.python/py-prettyprint.exp | 46 ++-
gdb/testsuite/gdb.python/py-prettyprint.py | 5 +
gdb/testsuite/gdb.python/py-template.exp | 2 +-
gdb/testsuite/gdb.python/py-value.exp | 7 +-
gdb/testsuite/gdb.reverse/watch-precsave.exp | 4 +-
gdb/testsuite/gdb.reverse/watch-reverse.exp | 4 +-
gdb/testsuite/gdb.server/ext-attach.exp | 2 +-
gdb/testsuite/gdb.server/ext-run.exp | 2 +-
gdb/testsuite/gdb.threads/attach-into-signal.exp | 4 +-
gdb/testsuite/gdb.threads/attach-stopped.exp | 10 +-
gdb/testsuite/gdb.threads/attachstop-mt.exp | 10 +-
gdb/testsuite/gdb.threads/fork-thread-pending.exp | 4 +-
gdb/testsuite/gdb.threads/gcore-thread.exp | 54 +--
gdb/testsuite/gdb.threads/hand-call-in-threads.exp | 40 +-
gdb/testsuite/gdb.threads/linux-dp.exp | 48 +--
.../gdb.threads/local-watch-wrong-thread.exp | 8 +-
gdb/testsuite/gdb.threads/manythreads.exp | 2 +-
gdb/testsuite/gdb.threads/print-threads.exp | 21 +-
gdb/testsuite/gdb.threads/pthreads.exp | 163 +++-----
gdb/testsuite/gdb.threads/schedlock.exp | 127 +++----
gdb/testsuite/gdb.threads/sigthread.exp | 6 +-
gdb/testsuite/gdb.threads/staticthreads.exp | 2 +-
gdb/testsuite/gdb.threads/thread-specific.exp | 4 +-
.../gdb.threads/thread-unwindonsignal.exp | 3 +-
gdb/testsuite/gdb.threads/threadapply.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads.exp | 6 +-
gdb/testsuite/gdb.threads/watchthreads2.exp | 6 +-
gdb/testsuite/gdb.trace/actions.exp | 12 +-
gdb/testsuite/gdb.trace/backtrace.exp | 55 +--
gdb/testsuite/gdb.trace/circ.exp | 6 +-
gdb/testsuite/gdb.trace/collection.exp | 9 +-
gdb/testsuite/gdb.trace/deltrace.exp | 73 ++---
gdb/testsuite/gdb.trace/infotrace.exp | 16 +-
gdb/testsuite/gdb.trace/packetlen.exp | 4 +-
gdb/testsuite/gdb.trace/report.exp | 46 +--
gdb/testsuite/gdb.trace/save-trace.exp | 13 +-
gdb/testsuite/gdb.trace/tfind.exp | 51 +--
gdb/testsuite/gdb.trace/tracecmd.exp | 24 +-
gdb/testsuite/gdb.trace/tsv.exp | 23 +-
gdb/testsuite/lib/gdb.exp | 7 +-
gdb/valprint.c | 49 +--
gdb/valprint.h | 4 +-
gdb/version.in | 2 +-
libiberty/ChangeLog | 9 +-
libiberty/configure | 22 +-
libiberty/configure.ac | 4 +-
129 files changed, 1956 insertions(+), 931 deletions(-)
copy gdb/testsuite/gdb.fortran/{module.f90 => library-module-lib.f90} (63%)
copy gdb/testsuite/gdb.fortran/{module.f90 => library-module-main.f90} (70%)
create mode 100644 gdb/testsuite/gdb.fortran/library-module.exp
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index d834c91..3c34559 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100602
+#define BFD_VERSION_DATE 20100607
#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/config/ChangeLog b/config/ChangeLog
index 140e2ce..e0561d2 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,11 @@
+2010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
+ Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Sync from GCC:
+ PR bootstrap/42798
+ * override.m4 (_AC_CHECK_DECL_BODY, _AC_CHECK_DECLS): Import
+ definitions from git Autoconf.
+
2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Sync from GCC:
diff --git a/config/override.m4 b/config/override.m4
index cfa225a..47d8dac 100644
--- a/config/override.m4
+++ b/config/override.m4
@@ -272,3 +272,44 @@ m4_define([m4_wrap], [m4_ifdef([_$0_text],
[m4_define([_$0_text], [$1])m4_builtin([m4wrap],
[m4_default(m4_defn([_$0_text])m4_undefine([_$0_text]))])])])
])
+
+m4_version_prereq([2.66],, [
+dnl We need AC_CHECK_DECL which works for overloaded C++ functions.
+
+# _AC_CHECK_DECL_BODY
+# -------------------
+# Shell function body for AC_CHECK_DECL.
+m4_define([_AC_CHECK_DECL_BODY],
+[ AS_LINENO_PUSH([$[]1])
+ [as_decl_name=`echo $][2|sed 's/ *(.*//'`]
+ [as_decl_use=`echo $][2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`]
+ AC_CACHE_CHECK([whether $as_decl_name is declared], [$[]3],
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$[]4],
+[@%:@ifndef $[]as_decl_name
+@%:@ifdef __cplusplus
+ (void) $[]as_decl_use;
+@%:@else
+ (void) $[]as_decl_name;
+@%:@endif
+@%:@endif
+])],
+ [AS_VAR_SET([$[]3], [yes])],
+ [AS_VAR_SET([$[]3], [no])])])
+ AS_LINENO_POP
+])# _AC_CHECK_DECL_BODY
+
+# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
+# INCLUDES)
+# -------------------------------------------------------------
+# Helper to AC_CHECK_DECLS, which generates the check for a single
+# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
+# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
+m4_define([_AC_CHECK_DECLS],
+[AC_CHECK_DECL([$1], [ac_have_decl=1], [ac_have_decl=0], [$4])]dnl
+[AC_DEFINE_UNQUOTED(AS_TR_CPP(m4_bpatsubst(HAVE_DECL_[$1],[ *(.*])),
+ [$ac_have_decl],
+ [Define to 1 if you have the declaration of `$1',
+ and to 0 if you don't.])]dnl
+[m4_ifvaln([$2$3], [AS_IF([test $ac_have_decl = 1], [$2], [$3])])])
+
+])
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7cd0030..25272cc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,159 @@
+2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix duplicate types for single DIE.
+ * dwarf2read.c (read_structure_type): Move set_descriptive_type after
+ set_die_type.
+ (read_array_type): Remove type initialization. Recheck get_die_type
+ after initial die_type. Move set_die_type before set_descriptive_type.
+ (read_set_type): New variable domain_type. Recheck get_die_type after
+ initial die_type. Move attr initialization later.
+ (read_tag_pointer_type, read_tag_reference_type): New variable
+ target_type. Recheck get_die_type after initial die_type.
+ (read_tag_ptr_to_member_type): Recheck get_die_type after initial
+ die_type and die_containing_type.
+ (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
+ Recheck get_die_type after initial die_type.
+ (read_subrange_type): Recheck get_die_type after initial die_type.
+ Move set_die_type before set_descriptive_type.
+ (set_die_type): Extend the function comment. Call complaint if DIE has
+ some type already set.
+
+2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
+ for current naming of thread groups (iN, not N).
+
+2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * ada-lang.c (ada_operator_length): Constify `struct expression'.
+ * parse.c (operator_length): Likewise.
+ (operator_length_standard): Likewise.
+ * parser-defs.h (operator_length): Likewise.
+ (operator_length_standard): Likewise.
+ (struct exp_descriptor <operator_length>): Likewise.
+
+2010-06-04 Doug Evans <dje@google.com>
+
+ Add support for enabling/disabling individual pretty-printers.
+ * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
+ * python/python-internal.h (gdbpy_enabled_cst): Declare.
+ * python/python.c (gdbpy_enabled_cst): Define.
+ (_initialize_python): Initialize gdbpy_enabled_cst.
+ * NEWS: Add entry.
+
+2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.c (update_global_location_list): Fix comment typo.
+
+2010-06-04 Hui Zhu <teawater@gmail.com>
+
+ * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
+
+2010-06-03 Doug Evans <dje@google.com>
+
+ * configure.ac: Don't fail if python is unusable when
+ configured with --with-python=auto.
+ * configure: Regenerate.
+
+2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
+
+2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * valprint.h (get_array_bounds): Change low and high parameter types
+ to LONGEST *.
+ * valprint.c (get_array_bounds): Use get_discrete_bounds call to
+ compute bounds.
+ (val_print_array_elements): Adapt to change above.
+ * ada-valprint.c (print_optional_low_bound): Adapt to change above.
+ * p-valprint.c (pascal_val_print): Likewise.
+
+2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symfile.c (init_filename_language_table): New extensions .for, .FOR,
+ .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
+ .F08.
+
+2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Support DW_TAG_module as separate namespaces.
+ * dwarf2read.c (typename_concat): New parameter physname.
+ (read_module_type): New function and declaration.
+ (scan_partial_symbols): Scan also DW_TAG_module children.
+ (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
+ to typename_concat backward compatible physname value 0.
+ (partial_die_full_name, read_namespace_type): Pass to typename_concat
+ backward compatible physname value 0.
+ (add_partial_module, read_module): Remove FIXME comment.
+ (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
+ (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
+ DIEs under DW_TAG_module.
+ (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
+ DW_AT_MIPS_linkage_name first, extend it for language_fortran
+ && physname and return there instead of just setting NAME. Extend
+ the main block for language_fortran. Pass physname parameter to the
+ typename_concat call.
+ (read_import_statement, read_func_scope, get_scope_pc_bounds)
+ (load_partial_dies, determine_prefix): Support also DW_TAG_module.
+ (new_symbol): Fill in cplus_specific.demangled_name if it is still
+ missing from SYMBOL_SET_NAMES in the language_fortran case.
+ (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
+ variables.
+ (read_type_die) <DW_TAG_module>: New.
+ (MAX_SEP_LEN): Increase to 7.
+ (typename_concat): New parameter physname. New variable lead. Support
+ also language_fortran.
+ * f-exp.y (yylex): Consider : also as a symbol name character class.
+ * f-lang.c: Include cp-support.h.
+ (f_word_break_characters, f_make_symbol_completion_list): New functions.
+ (f_language_defn): Use cp_lookup_symbol_nonlocal,
+ f_word_break_characters and f_make_symbol_completion_list.
+ * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
+ * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
+ * symtab.c (symbol_init_language_specific): Support language_fortran.
+ (symbol_find_demangled_name): New comment on language_fortran.
+ (symbol_natural_name, symbol_demangled_name): Use demangled_name even
+ for language_fortran.
+ (lookup_symbol_aux_local): Check imports also for language_fortran.
+ (default_make_symbol_completion_list): Rename to ...
+ (default_make_symbol_completion_list_break_on): ... this name. New
+ parameter break_on, use it.
+ (default_make_symbol_completion_list): New stub.
+ * symtab.h (default_make_symbol_completion_list_break_on): New
+ prototype.
+
+2010-06-02 Joel Brobecker <brobecker@adacore.com>
+
+ * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
+ to error.
+
+2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (typename_concat): Add const to the variable sep.
+
+2010-06-02 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2loc.h (dwarf2_per_cu_data): Declare.
+ * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
+ type is const. Add 'def' argument. Add missing operators, remove
+ unhandled ones.
+ (decode_locdesc): Update.
+ (dwarf2_always_disassemble): New global.
+ (show_dwarf2_always_disassemble): New function.
+ (_initialize_dwarf2_read): Add always-disassemble.
+ (dwarf2_per_cu_offset_size): New function.
+ * dwarf2loc.c (dwarf2_always_disassemble): Declare.
+ (piece_end_p): New function.
+ (locexpr_describe_location_piece): Replace 'size' argument with
+ 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
+ some constants. Remove errors.
+ (disassemble_dwarf_expression): New function.
+ (locexpr_describe_location_1): Use disassemble_dwarf_expression.
+ Add 'offset_size' argument.
+ (loclist_describe_location): Change output formatting.
+ * dwarf2expr.h (dwarf_stack_op_name): Declare.
+
2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
* cp-support.c (make_symbol_overload_list_adl_namespace): Handle
diff --git a/gdb/NEWS b/gdb/NEWS
index ad9a0f1..61208b1 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -104,6 +104,8 @@ is now deprecated.
** Pretty-printers are now also looked up in the current program space.
+** Pretty-printers can now be individually enabled and disabled.
+
** GDB now looks for names of Python scripts to auto-load in a
special section named `.debug_gdb_scripts', in addition to looking
for a OBJFILE-gdb.py script when OBJFILE is read by the debugger.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index be0c53b..1d4c38b 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -11084,7 +11084,8 @@ ada_decode_assert_location (char *args, char **addr_string,
OP_DEFN (OP_DISCRETE_RANGE, 1, 2, 0)
static void
-ada_operator_length (struct expression *exp, int pc, int *oplenp, int *argsp)
+ada_operator_length (const struct expression *exp, int pc, int *oplenp,
+ int *argsp)
{
switch (exp->elts[pc - 1].opcode)
{
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index c56d221..7e93e3a 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -85,8 +85,8 @@ print_optional_low_bound (struct ui_file *stream, struct type *type,
const struct value_print_options *options)
{
struct type *index_type;
- long low_bound;
- long high_bound;
+ LONGEST low_bound;
+ LONGEST high_bound;
if (options->print_array_indexes)
return 0;
@@ -131,7 +131,7 @@ print_optional_low_bound (struct ui_file *stream, struct type *type,
break;
}
- ada_print_scalar (index_type, (LONGEST) low_bound, stream);
+ ada_print_scalar (index_type, low_bound, stream);
fprintf_filtered (stream, " => ");
return 1;
}
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 0ee2258..1fc155a 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -9096,7 +9096,7 @@ update_global_location_list (int should_insert)
soon, we'll fail to do the PC adjustment, and report
a random SIGTRAP to the user. When the user resumes
the inferior, it will most likely immediately crash
- with SIGILL/SIGBUS/SEGSEGV, or worse, get silently
+ with SIGILL/SIGBUS/SIGSEGV, or worse, get silently
corrupted, because of being resumed e.g., in the
middle of a multi-byte instruction, or skipped a
one-byte instruction. This was actually seen happen
diff --git a/gdb/configure b/gdb/configure
index 5380293..bae0b5b 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -2122,8 +2122,10 @@ $as_echo "$ac_res" >&6; }
ac_fn_c_check_decl ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
-$as_echo_n "checking whether $2 is declared... " >&6; }
+ as_decl_name=`echo $2|sed 's/ *(.*//'`
+ as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
$as_echo_n "(cached) " >&6
else
@@ -2133,8 +2135,12 @@ $4
int
main ()
{
-#ifndef $2
- (void) $2;
+#ifndef $as_decl_name
+#ifdef __cplusplus
+ (void) $as_decl_use;
+#else
+ (void) $as_decl_name;
+#endif
#endif
;
@@ -10463,12 +10469,12 @@ else
# Assume the python binary is ${with_python}/bin/python.
python_prog="${with_python}/bin/python"
python_prefix=
- if test ! -x ${python_prog}; then
+ if test ! -x "${python_prog}"; then
# Fall back to gdb 7.0/7.1 behaviour.
python_prog=missing
python_prefix=${with_python}
fi
- elif test -x ${with_python}; then
+ elif test -x "${with_python}"; then
# While we can't run python compiled for $host (unless host == build),
# the user could write a script that provides the needed information,
# so we support that.
@@ -10595,19 +10601,30 @@ fi
esac
if test "${python_prog}" != missing; then
+ # We have a python program to use, but it may be too old.
+ # Don't flag an error for --with-python=auto (the default).
+ have_python_config=yes
python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
if test $? != 0; then
- as_fn_error "failure running python-config --includes" "$LINENO" 5
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+ as_fn_error "failure running python-config --includes" "$LINENO" 5
+ fi
fi
python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
if test $? != 0; then
- as_fn_error "failure running python-config --ldflags" "$LINENO" 5
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+ as_fn_error "failure running python-config --ldflags" "$LINENO" 5
+ fi
fi
python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
if test $? != 0; then
- as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+ as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
+ fi
fi
- have_python_config=yes
else
# Fall back to gdb 7.0/7.1 behaviour.
if test -z ${python_prefix}; then
@@ -10679,7 +10696,7 @@ $as_echo "${found_usable_python}" >&6; }
as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
;;
esac
- else
+ elif test "${have_python_config}" != failed; then
if test "${have_libpython}" = no; then
version=python2.6
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 16789b9..d65fd49 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -664,12 +664,12 @@ else
# Assume the python binary is ${with_python}/bin/python.
python_prog="${with_python}/bin/python"
python_prefix=
- if test ! -x ${python_prog}; then
+ if test ! -x "${python_prog}"; then
# Fall back to gdb 7.0/7.1 behaviour.
python_prog=missing
python_prefix=${with_python}
fi
- elif test -x ${with_python}; then
+ elif test -x "${with_python}"; then
# While we can't run python compiled for $host (unless host == build),
# the user could write a script that provides the needed information,
# so we support that.
@@ -716,19 +716,30 @@ else
esac
if test "${python_prog}" != missing; then
+ # We have a python program to use, but it may be too old.
+ # Don't flag an error for --with-python=auto (the default).
+ have_python_config=yes
python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
if test $? != 0; then
- AC_ERROR(failure running python-config --includes)
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+ AC_ERROR(failure running python-config --includes)
+ fi
fi
python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
if test $? != 0; then
- AC_ERROR(failure running python-config --ldflags)
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+ AC_ERROR(failure running python-config --ldflags)
+ fi
fi
python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
if test $? != 0; then
- AC_ERROR(failure running python-config --exec-prefix)
+ have_python_config=failed
+ if test "${with_python}" != auto; then
+ AC_ERROR(failure running python-config --exec-prefix)
+ fi
fi
- have_python_config=yes
else
# Fall back to gdb 7.0/7.1 behaviour.
if test -z ${python_prefix}; then
@@ -767,7 +778,7 @@ else
AC_MSG_ERROR([unable to determine python version from ${python_libs}])
;;
esac
- else
+ elif test "${have_python_config}" != failed; then
if test "${have_libpython}" = no; then
AC_TRY_LIBPYTHON(python2.6, have_libpython,
${python_includes}, "${python_libs} -lpython2.6")
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 4ffe455..071a409 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,16 @@
+2010-06-04 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (Python API): New node `Disabling Pretty-Printers'.
+
+2010-06-03 Doug Evans <dje@google.com>
+
+ * gdbint.texinfo (Coding): Add subsection on command names.
+
+2010-06-02 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Maintenance Commands): Document maint set dwarf2
+ always-disassemble.
+
2010-06-01 Pedro Alves <pedro@codesourcery.com>
* gdb.texinfo (Set Tracepoints): Mention tracepoints support in
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 178ef68..fa7a0ec 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20019,6 +20019,7 @@ situation, a Python @code{KeyboardInterrupt} exception is thrown.
* Types In Python:: Python representation of types.
* Pretty Printing API:: Pretty-printing values.
* Selecting Pretty-Printers:: How GDB chooses a pretty-printer.
+* Disabling Pretty-Printers:: Disabling broken printers.
* Commands In Python:: Implementing new commands in Python.
* Parameters In Python:: Adding new @value{GDBN} parameters.
* Functions In Python:: Writing new convenience functions.
@@ -20710,7 +20711,8 @@ If the result is not one of these types, an exception is raised.
@subsubsection Selecting Pretty-Printers
The Python list @code{gdb.pretty_printers} contains an array of
-functions that have been registered via addition as a pretty-printer.
+functions or callable objects that have been registered via addition
+as a pretty-printer.
Each @code{gdb.Progspace} contains a @code{pretty_printers} attribute.
Each @code{gdb.Objfile} also contains a @code{pretty_printers}
attribute.
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-06-02 19:03 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-06-02 19:03 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 55510 bytes --]
The branch, master has been updated
via 75a875500bdb364303b7d90aa30d988592f5663c (commit)
via dde89636429f7e5344d137a7465f7496e0a925e5 (commit)
via e11aea1a345c1391460198ee72e00d0b1b65f5fb (commit)
via f6083a57766dde4a4d232ddbe54fee0b85a223ce (commit)
via d853ecbe69248066c610a6f823ec8229c0bfcf50 (commit)
via 735c59de25b599d5bfe07c3111b9fb1fad496866 (commit)
via f28c687690a6090fa378f4599d206c5a9d9ee0ea (commit)
via b6116eea520e39964592c638b28536cf7076de4f (commit)
via 2572918a493c6e6ff5177669e4a2934bc8481093 (commit)
via 92344419cf7d27140e48a95ca928e6b569f08217 (commit)
via c33170ed9ee6363fda53d2ef80d90b1069fa707e (commit)
via 8dcd93ca46c139a53be9c5a1d61651f0a10bed19 (commit)
via 4318a33eff6c4d767ce9a3cea7daf785fad69671 (commit)
via 71446863f3bab5e57587fa01977f6fbf92909cd9 (commit)
via f06978eb333ee367789268251cd7ce393705891c (commit)
via de642393026eee797efdd1355c1913f8054dab64 (commit)
via 0b1557e303d8a6c9b3fcdf1e320256f62e0062c8 (commit)
via eb30d42d782beac5c384a9f411e742cd80eb6701 (commit)
via a9b9dd27caf6b665ccb8ef07699c8d1099408968 (commit)
via 991bac997c8ea55f25c02a6200074cc40de9d5da (commit)
via 75216ba6f006a9717c3d76734409a18412fdf2e7 (commit)
via 95f447b10550acffb692273c3d9b76f877726e69 (commit)
via 8239d6afa47c95eed782264f0240a0c1d93fcc87 (commit)
via 3cfb29ef8936384289201dc2acef6b05f897379e (commit)
via 4765b69b60fc227e8d1b0c9c4a0d2940aa9ebf0e (commit)
via f6aa5ebeb80c43c8a553cb264ec69c4ffde70ebd (commit)
via 348f0e4c92350bf43bfe81cea2c5a627328eaecb (commit)
via 5503938408398adebfab46174248883e64daed7a (commit)
via fd7aca6a58b438a7c16fad8ed658f60c0245f285 (commit)
via 4c690bc91107d5b9ba79b3cb22c3a4114f3364c4 (commit)
via c08555a1aac480aaff942e80faca7a4d99e64d21 (commit)
from d2f3d271e1bd14db6d66c1ff521d94200b29a928 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 75a875500bdb364303b7d90aa30d988592f5663c
Merge: d2f3d271e1bd14db6d66c1ff521d94200b29a928 dde89636429f7e5344d137a7465f7496e0a925e5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 2 21:03:26 2010 +0200
Merge remote branch 'gdb/master'
commit dde89636429f7e5344d137a7465f7496e0a925e5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jun 2 17:35:16 2010 +0000
gdb/testsuite/
* gdb.cp/re-set-overloaded.exp, gdb.cp/re-set-overloaded.cc: New.
commit e11aea1a345c1391460198ee72e00d0b1b65f5fb
Author: swagiaal <swagiaal>
Date: Wed Jun 2 15:31:29 2010 +0000
Fix ADL anonymous name crash.
2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
* cp-support.c (make_symbol_overload_list_adl_namespace): Handle
anonymous type case.
2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/koenig.exp: Added new test case.
* gdb.cp/koenig.cc: Ditto.
commit f6083a57766dde4a4d232ddbe54fee0b85a223ce
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Jun 2 08:01:28 2010 +0000
2010-06-02 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
commit d853ecbe69248066c610a6f823ec8229c0bfcf50
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Wed Jun 2 06:24:00 2010 +0000
* dwarf2read.c (read_subrange_type): Handle missing base type
according to Dwarf-2 specifications.
commit 735c59de25b599d5bfe07c3111b9fb1fad496866
Author: sergiodj <sergiodj>
Date: Wed Jun 2 00:40:38 2010 +0000
2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
* expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
BINOP_EXCL.
(op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
(dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
UNOP_CHMAX, UNOP_CHMIN.
* expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
UNOP_CHMIN>: Remove opcodes.
commit f28c687690a6090fa378f4599d206c5a9d9ee0ea
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jun 2 00:00:35 2010 +0000
*** empty log message ***
commit b6116eea520e39964592c638b28536cf7076de4f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jun 2 00:00:06 2010 +0000
daily update
commit 2572918a493c6e6ff5177669e4a2934bc8481093
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Jun 1 21:34:13 2010 +0000
* dwarf2read.c (read_func_scope): Do not complain for
external function if bounds are not found.
commit 92344419cf7d27140e48a95ca928e6b569f08217
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue Jun 1 21:29:21 2010 +0000
2010-06-01 Michael Snyder <msnyder@vmware.com>
* gdb.base/arithmet.exp: Use gdb_test_no_output.
* gdb.base/arrayidx.exp: Ditto.
* gdb.base/attach.exp: Ditto.
* gdb.base/auxv.exp: Ditto.
* gdb.base/bigcre.exp: Ditto.
* gdb.base/break-always.exp: Ditto.
* gdb.base/break-interp.exp: Ditto.
* gdb.base/break.exp: Ditto.
* gdb.base/breakpoint-shadow.exp: Ditto.
* gdb.base/call-ar-st.exp: Ditto.
* gdb.base/call-sc.exp: Ditto.
* gdb.base/call-signal-resume.exp: Ditto.
* gdb.base/callfuncs.exp: Ditto.
* gdb.base/catch-syscall.exp: Ditto.
* gdb.base/charset.exp: Ditto.
* gdb.base/code-expr.exp: Ditto.
* gdb.base/commands.exp: Ditto.
* gdb.base/cond-expr.exp: Ditto.
* gdb.base/condbreak.exp: Ditto.
* gdb.base/cursal.exp: Ditto.
* gdb.base/cvexpr.exp: Ditto.
* gdb.base/default.exp: Ditto.
* gdb.base/del.exp: Ditto.
* gdb.base/detach.exp: Ditto.
* gdb.base/display.exp: Ditto.
* gdb.base/ena-dis-br.exp: Ditto.
* gdb.base/eval-skip.exp: Ditto.
* gdb.base/foll-fork.exp: Ditto.
* gdb.base/foll-vfork.exp: Ditto.
* gdb.base/frame-args.exp: Ditto.
* gdb.base/funcargs.exp: Ditto.
* gdb.base/gcore-buffer-overflow.exp: Ditto.
* gdb.base/gdbvars.exp: Ditto.
* gdb.base/help.exp: Ditto.
* gdb.base/ifelse.exp: Ditto.
* gdb.base/included.exp: Ditto.
* gdb.base/list.exp: Ditto.
* gdb.base/macscp.exp: Ditto.
* gdb.base/maint.exp: Ditto.
* gdb.base/multi-fork.exp: Ditto.
* gdb.base/overlays.exp: Ditto.
* gdb.base/page.exp: Ditto.
* gdb.base/pending.exp: Ditto.
* gdb.base/pointers.exp: Ditto.
* gdb.base/pr11022.exp: Ditto.
* gdb.base/prelink.exp: Ditto.
* gdb.base/printcmds.exp: Ditto.
* gdb.base/psymtab.exp: Ditto.
* gdb.base/randomize.exp: Ditto.
* gdb.base/relational.exp: Ditto.
* gdb.base/relocate.exp: Ditto.
* gdb.base/remote.exp: Ditto.
* gdb.base/sepdebug.exp: Ditto.
* gdb.base/set-lang-auto.exp: Ditto.
* gdb.base/setshow.exp: Ditto.
* gdb.base/setvar.exp: Ditto.
* gdb.base/signals.exp: Ditto.
* gdb.base/signull.exp: Ditto.
* gdb.base/sigstep.exp: Ditto.
* gdb.base/sizeof.exp: Ditto.
* gdb.base/solib-disc.exp: Ditto.
* gdb.base/store.exp: Ditto.
* gdb.base/structs.exp: Ditto.
* gdb.base/structs2.exp: Ditto.
* gdb.base/subst.exp: Ditto.
* gdb.base/term.exp: Ditto.
* gdb.base/trace-commands.exp: Ditto.
* gdb.base/unwindonsignal.exp: Ditto.
* gdb.base/valgrind-db-attach.exp: Ditto.
* gdb.base/varargs.exp: Ditto.
* gdb.base/watch-cond.exp: Ditto.
* gdb.base/watch_thread_num.exp: Ditto.
* gdb.base/watchpoint-cond-gone.exp: Ditto.
* gdb.base/watchpoint.exp: Ditto.
* gdb.base/whatis-exp.exp: Ditto.
commit c33170ed9ee6363fda53d2ef80d90b1069fa707e
Author: espindola <espindola>
Date: Tue Jun 1 19:32:27 2010 +0000
2010-06-01 Rafael Espindola <espindola@google.com>
* plugin-api.h (ld_plugin_tag): Add LDPT_OUTPUT_NAME.
2010-06-01 Rafael Espindola <espindola@google.com>
* plugin.cc (Plugin::load): Pass the output name to the plugin.
commit 8dcd93ca46c139a53be9c5a1d61651f0a10bed19
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue Jun 1 18:18:34 2010 +0000
2010-05-25 Michael Snyder <msnyder@vmware.com>
* gdb.cp/annota2.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/annota3.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/anon-union.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/cplusfuncs.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/demangle.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/formatted-ref.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/local.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/method.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/misc.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/namespace.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/ovldbreak.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/pr-1023.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/ref-types.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/templates.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/userdef.exp: Replace uses of send_gdb / gdb_expect.
commit 4318a33eff6c4d767ce9a3cea7daf785fad69671
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Tue Jun 1 17:53:40 2010 +0000
/:
* config.sub, config.guess: Update from upstream sources.
commit 71446863f3bab5e57587fa01977f6fbf92909cd9
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Tue Jun 1 17:28:06 2010 +0000
Sync toplevel files from GCC.
/:
Sync from GCC:
2010-05-05 Sebastian Pop <sebastian.pop@amd.com>
* configure.ac: Allow all the versions greater than 0.10 of PPL.
* configure: Regenerated.
2010-04-20 Eric Botcazou <ebotcazou@adacore.com>
* configure.ac (BUILD_CONFIG): Redirect output to /dev/null.
* configure: Regenerate.
2010-04-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac (*-*-rtems*): Add target-libiberty to $skipdirs.
* configure: Regenerate.
2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx
separately.
* configure: Regenerate.
2010-04-13 Steve Ellcey <sje@cup.hp.com>
* configure: Regenerate after change to elf.m4.
2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
* configure.ac: Add brackets around AC_TRY_COMPILE alternative.
* configure: Regenerated.
2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
* configure.ac: Print "buggy but acceptable" when CLooG
revision is less than 9.
* configure: Regenerated.
config/:
Sync from GCC:
2010-04-13 Steve Ellcey <sje@cup.hp.com>
* elf.m4: Add hppa[12]*-*-hpux* to list of non-elf platforms.
2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* stdint.m4 (GCC_HEADER_STDINT): Don't typedef uint8_t etc. if
corresponding macros already exist.
bfd/:
* configure: Regenerate.
commit f06978eb333ee367789268251cd7ce393705891c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jun 1 17:22:32 2010 +0000
gdb/testsuite/
* gdb.base/commands.exp (begin commands on watch): Remove excessive
trailing newline.
* gdb.mi/mi-nsintrall.exp (-gdb-show non-stop): Likewise.
* gdb.java/jmisc.exp (p *args\n): Rename to ...
(p *args): ... here and remove excessive trailing newline.
commit de642393026eee797efdd1355c1913f8054dab64
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jun 1 13:20:49 2010 +0000
gdb/gdbserver/
2010-06-01 Pedro Alves <pedro@codesourcery.com>
Stan Shebs <stan@codesourcery.com>
* Makefile.in (IPA_DEPFILES, extra_libraries): New.
(all): Depend on $(extra_libraries).
(install-only): Install the IPA.
(IPA_OBJS, IPA_LIB): New.
(clean): Remove the IPA lib.
(IPAGENT_CFLAGS): New.
(tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
(regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
(linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
* linux-amd64-ipa.c, linux-i386-ipa.c: New files.
* configure.ac: Check for atomic builtins support in the compiler.
(IPA_DEPFILES, extra_libraries): Define.
* configure.srv (ipa_obj): Add description.
(ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
(i[34567]86-*-linux*): Set ipa_obj.
(x86_64-*-linux*): Set ipa_obj.
* linux-low.c (stabilizing_threads): New.
(supports_fast_tracepoints): New.
(linux_detach): Stabilize threads before detaching.
(handle_tracepoints): Handle internal tracing breakpoints. Assert
the lwp is either not stabilizing, or is moving out of a jump pad.
(linux_fast_tracepoint_collecting): New.
(maybe_move_out_of_jump_pad): New.
(enqueue_one_deferred_signal): New.
(dequeue_one_deferred_signal): New.
(linux_wait_for_event_1): If moving out of a jump pad, defer
pending signals to later.
(linux_stabilize_threads): New.
(linux_wait_1): Check if threads need moving out of jump pads, and
do it if so.
(stuck_in_jump_pad_callback): New.
(move_out_of_jump_pad_callback): New.
(lwp_running): New.
(linux_resume_one_lwp): Handle moving out of jump pads.
(linux_set_resume_request): Dequeue deferred signals.
(need_step_over_p): Also step over fast tracepoint jumps.
(start_step_over): Also uninsert fast tracepoint jumps.
(finish_step_over): Also reinsert fast tracepoint jumps.
(linux_install_fast_tracepoint_jump): New.
(linux_target_ops): Install linux_stabilize_threads and
linux_install_fast_tracepoint_jump_pad.
* linux-low.h (linux_target_ops) <get_thread_area,
install_fast_tracepoint_jump_pad>: New fields.
(struct lwp_info) <collecting_fast_tracepoint,
pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
(linux_get_thread_area): Declare.
* linux-x86-low.c (jump_insn): New.
(x86_get_thread_area): New.
(append_insns): New.
(push_opcode): New.
(amd64_install_fast_tracepoint_jump_pad): New.
(i386_install_fast_tracepoint_jump_pad): New.
(x86_install_fast_tracepoint_jump_pad): New.
(the_low_target): Install x86_get_thread_area and
x86_install_fast_tracepoint_jump_pad.
* mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
(struct fast_tracepoint_jump): New.
(fast_tracepoint_jump_insn): New.
(fast_tracepoint_jump_shadow): New.
(find_fast_tracepoint_jump_at): New.
(fast_tracepoint_jump_here): New.
(delete_fast_tracepoint_jump): New.
(set_fast_tracepoint_jump): New.
(uninsert_fast_tracepoint_jumps_at): New.
(reinsert_fast_tracepoint_jumps_at): New.
(set_breakpoint_at): Use write_inferior_memory.
(uninsert_raw_breakpoint): Use write_inferior_memory.
(check_mem_read): Mask out fast tracepoint jumps.
(check_mem_write): Mask out fast tracepoint jumps.
* mem-break.h (struct fast_tracepoint_jump): Forward declare.
(set_fast_tracepoint_jump): Declare.
(delete_fast_tracepoint_jump)
(fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
(reinsert_fast_tracepoint_jumps_at): Declare.
* regcache.c: Don't compile many functions when building the
in-process agent library.
(init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
the register buffer in the heap.
(free_register_cache): If the register buffer isn't owned by the
regcache, don't free it.
(set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
pre-existing register caches.
* remote-utils.c (convert_int_to_ascii): Constify `from' parameter
type.
(convert_ascii_to_int): : Constify `from' parameter type.
(decode_M_packet, decode_X_packet): Replace the `to' parameter by
a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
the needed buffer in-place.
(relocate_instruction): New.
* server.c (handle_query) <qSymbols>: If the target supports
tracepoints, give it a chance of looking up symbols. Report
support for fast tracepoints.
(handle_status): Stabilize threads.
(process_serial_event): Adjust.
* server.h (struct fast_tracepoint_jump): Forward declare.
(struct process_info) <fast_tracepoint_jumps>: New field.
(convert_ascii_to_int, convert_int_to_ascii): Adjust.
(decode_X_packet, decode_M_packet): Adjust.
(relocate_instruction): Declare.
(in_process_agent_loaded): Declare.
(tracepoint_look_up_symbols): Declare.
(struct fast_tpoint_collect_status): Declare.
(fast_tracepoint_collecting): Declare.
(force_unlock_trace_buffer): Declare.
(handle_tracepoint_bkpts): Declare.
(initialize_low_tracepoint)
(supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
* target.h (struct target_ops) <stabilize_threads,
install_fast_tracepoint_jump_pad>: New fields.
(stabilize_threads, install_fast_tracepoint_jump_pad): New.
* tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
[HAVE_STDINT_H]: Include stdint.h.
(trace_debug_1): Rename to ...
(trace_vdebug): ... this.
(trace_debug): Rename to ...
(trace_debug_1): ... this. Add `level' parameter.
(trace_debug): New.
(ATTR_USED, ATTR_NOINLINE): New.
(IP_AGENT_EXPORT): New.
(gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
(collecting, gdb_collect, stop_tracing, flush_trace_buffer)
(about_to_request_buffer_space, trace_buffer_is_full)
(stopping_tracepoint, expr_eval_result, error_tracepoint)
(tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
(trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
(traceframe_write_count, traceframes_created)
(trace_state_variables)
New renaming defines.
(struct ipa_sym_addresses): New.
(STRINGIZE_1, STRINGIZE, IPA_SYM): New.
(symbol_list): New.
(ipa_sym_addrs): New.
(all_tracepoint_symbols_looked_up): New.
(in_process_agent_loaded): New.
(write_e_ipa_not_loaded): New.
(maybe_write_ipa_not_loaded): New.
(tracepoint_look_up_symbols): New.
(debug_threads) [IN_PROCESS_AGENT]: New.
(read_inferior_memory) [IN_PROCESS_AGENT]: New.
(UNKNOWN_SIDE_EFFECTS): New.
(stop_tracing): New.
(flush_trace_buffer): New.
(stop_tracing_bkpt): New.
(flush_trace_buffer_bkpt): New.
(read_inferior_integer): New.
(read_inferior_uinteger): New.
(read_inferior_data_pointer): New.
(write_inferior_data_pointer): New.
(write_inferior_integer): New.
(write_inferior_uinteger): New.
(struct collect_static_trace_data_action): Delete.
(enum tracepoint_type): New.
(struct tracepoint) <type>: New field `type'.
<actions_str, step_actions, step_actions_str>: Only include in GDBserver.
<orig_size, obj_addr_on_target, adjusted_insn_addr>
<adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
(tracepoints): Use IP_AGENT_EXPORT.
(last_tracepoint): Don't include in the IPA.
(stopping_tracepoint): Use IP_AGENT_EXPORT.
(trace_buffer_is_full): Use IP_AGENT_EXPORT.
(alloced_trace_state_variables): New.
(trace_state_variables): Use IP_AGENT_EXPORT.
(traceframe_t): Delete unused variable.
(circular_trace_buffer): Don't include in the IPA.
(trace_buffer_start): Delete.
(struct trace_buffer_control): New.
(trace_buffer_free): Delete.
(struct ipa_trace_buffer_control): New.
(GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
(GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
New.
(trace_buffer_ctrl): New.
(TRACE_BUFFER_CTRL_CURR): New.
(trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
Reimplement as macros.
(trace_buffer_wrap): Delete.
(traceframe_write_count, traceframe_read_count)
(traceframes_created, tracing): Use IP_AGENT_EXPORT.
(struct tracepoint_hit_ctx) <type>: New field.
(struct fast_tracepoint_ctx): New.
(memory_barrier): New.
(cmpxchg): New.
(record_tracepoint_error): Update atomically in the IPA.
(clear_inferior_trace_buffer): New.
(about_to_request_buffer_space): New.
(trace_buffer_alloc): Handle GDBserver and inferior simulatenous
updating the same buffer.
(add_tracepoint): Default the tracepoint's type to trap
tracepoint, and orig_size to -1.
(get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
internal variables.
(create_trace_state_variable): New parameter `gdb'. Handle it.
(clear_installed_tracepoints): Clear fast tracepoint jumps.
(cmd_qtdp): Handle fast tracepoints.
(cmd_qtdv): Adjust.
(max_jump_pad_size): New.
(gdb_jump_pad_head): New.
(get_jump_space_head): New.
(claim_jump_space): New.
(sort_tracepoints): New.
(MAX_JUMP_SIZE): New.
(cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
IPA.
(stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
support. Upload fast traceframes, and delete internal IPA
breakpoints.
(stop_tracing_handler): New.
(flush_trace_buffer_handler): New.
(cmd_qtstop): Upload fast tracepoints.
(response_tracepoint): Handle fast tracepoints.
(tracepoint_finished_step): Upload fast traceframes. Set the
tracepoint hit context's tracepoint type.
(handle_tracepoint_bkpts): New.
(tracepoint_was_hit): Set the tracepoint hit context's tracepoint
type. Add comment about fast tracepoints.
(collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
non-existing action_str field.
(get_context_regcache): Handle fast tracepoints.
(do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
to the regcache.
(fast_tracepoint_from_jump_pad_address): New.
(fast_tracepoint_from_ipa_tpoint_address): New.
(collecting_t): New.
(force_unlock_trace_buffer): New.
(fast_tracepoint_collecting): New.
(collecting): New.
(gdb_collect): New.
(write_inferior_data_ptr): New.
(target_tp_heap): New.
(target_malloc): New.
(download_agent_expr): New.
(UALIGN): New.
(download_tracepoints): New.
(download_trace_state_variables): New.
(upload_fast_traceframes): New.
(IPA_FIRST_TRACEFRAME): New.
(IPA_NEXT_TRACEFRAME_1): New.
(IPA_NEXT_TRACEFRAME): New.
[IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
[IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
(gdb_jump_pad_buffer_end): New.
[IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
(initialize_tracepoint): Adjust.
[IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
buffer. Initialize the low module.
* utils.c (PREFIX, TOOLNAME): New.
(malloc_failure): Use PREFIX.
(error): In the IPA, an error causes an exit.
(fatal, warning): Use PREFIX.
(internal_error): Use TOOLNAME.
(NUMCELLS): Increase to 10.
* configure, config.in: Regenerate.
gdb/
2010-06-01 Pedro Alves <pedro@codesourcery.com>
* NEWS: Mention gdbserver fast tracepoints support.
gdb/doc/
2010-06-01 Pedro Alves <pedro@codesourcery.com>
* gdb.texinfo (Set Tracepoints): Mention tracepoints support in
gdbserver, and add cross reference.
(Tracepoints support in gdbserver): New subsection.
commit 0b1557e303d8a6c9b3fcdf1e320256f62e0062c8
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Jun 1 12:47:32 2010 +0000
* server.c (handle_query) <qSupported>: Do two passes over the
qSupported string to avoid nesting strtok.
commit eb30d42d782beac5c384a9f411e742cd80eb6701
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Jun 1 09:52:27 2010 +0000
bfd/
2010-06-01 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (struct vms_private_data_struct): Add
transfer_address field. Remove unused dst_info field.
(alpha_vms_write_exec): Use transfer_address.
(_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
(alpha_vms_bfd_final_link): Set transfer_address.
ld/
2010-06-01 Tristan Gingold <gingold@adacore.com>
* scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
readonly output-section. Handle LIB$INITIALIZE and sections
created by gcc.
* emultempl/vms.em (vms_place_orphan): Add comments.
commit a9b9dd27caf6b665ccb8ef07699c8d1099408968
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jun 1 00:00:06 2010 +0000
daily update
commit 991bac997c8ea55f25c02a6200074cc40de9d5da
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jun 1 00:00:03 2010 +0000
*** empty log message ***
commit 75216ba6f006a9717c3d76734409a18412fdf2e7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon May 31 23:20:19 2010 +0000
subst.exp: Empty message (3rd parameter) in call to gdb_test
This is something that Michael spotted and reported to me. Definitely
a mistake, causing the test to report no status...
gdb/testsuite:
2010-05-31 Joel Brobecker <brobecker@adacore.com>
* gdb.base/subst.exp: Fix call to gdb_test with empty message.
Tested on x86_64-linux. The test now reports 30 PASSes instead of 29.
commit 95f447b10550acffb692273c3d9b76f877726e69
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon May 31 15:03:14 2010 +0000
2010-05-31 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (credat_lo, credat_hi): New fields.
(vms_read_block): Adjust comments.
(vms_write_block): New function.
(_bfd_vms_lib_archive_p): Decode majorid once. Replace some
hard-coded values with constants. Set credat_lo and credat_hi.
(_bfd_vms_lib_mkarchive): Add argument kind.
Set ver, mhd_size and type according to kind.
(_bfd_vms_lib_alpha_mkarchive): New function.
(struct lib_index): Renamed from struct vms_index
(lib_index_cmp): Renamed from vms_index_cmp. Adjusted.
(get_idxlen): Type of idx argument adjusted. Add is_elfidx
argument and handle it.
(vms_write_index): Adjust argument idx. Handle elf indexes.
(_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
(_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
use it. Handle elf indexes. Set credat.
* libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
(_bfd_vms_lib_alpha_mkarchive): ... this.
* libbfd.h: Regenerated.
* vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
commit 8239d6afa47c95eed782264f0240a0c1d93fcc87
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon May 31 07:00:40 2010 +0000
* windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
New macros.
(windows_set_console_info): New function.
(windows_create_inferior): Call windows_set_console_info
if NEW_CONSOLE is true.
(bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
(_initialize_loadable): Initialize GetConsoleFontSize and
GetCurrentConsoleFont.
commit 3cfb29ef8936384289201dc2acef6b05f897379e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon May 31 03:31:16 2010 +0000
gdb/testsuite/
Accept the new Linux kernel "t (tracing stop)" string.
* gdb.threads/watchthreads-reorder.c (thread1_func, thread2_func):
Update comment.
(state_wait) <T (tracing stop)>: New.
(main): Update the state_wait expect string.
commit 4765b69b60fc227e8d1b0c9c4a0d2940aa9ebf0e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon May 31 00:00:07 2010 +0000
daily update
commit f6aa5ebeb80c43c8a553cb264ec69c4ffde70ebd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon May 31 00:00:03 2010 +0000
*** empty log message ***
commit 348f0e4c92350bf43bfe81cea2c5a627328eaecb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun May 30 00:00:34 2010 +0000
*** empty log message ***
commit 5503938408398adebfab46174248883e64daed7a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun May 30 00:00:05 2010 +0000
daily update
commit fd7aca6a58b438a7c16fad8ed658f60c0245f285
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat May 29 00:00:33 2010 +0000
*** empty log message ***
commit 4c690bc91107d5b9ba79b3cb22c3a4114f3364c4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat May 29 00:00:05 2010 +0000
daily update
commit c08555a1aac480aaff942e80faca7a4d99e64d21
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri May 28 23:47:40 2010 +0000
* limits.c, limits.exp: Delete files.
* Makefile.in (clean mostlyclean): Adjust.
* tracecmd.exp: Adjust.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 37 +
bfd/ChangeLog | 41 +-
bfd/configure | 44 +
bfd/libbfd-in.h | 2 +-
bfd/libbfd.h | 2 +-
bfd/version.h | 2 +-
bfd/vms-alpha.c | 50 +-
bfd/vms-lib.c | 427 +++-
config.guess | 6 +-
config.sub | 10 +-
config/ChangeLog | 11 +
config/elf.m4 | 2 +-
config/stdint.m4 | 44 +
configure | 96 +-
configure.ac | 50 +-
gdb/ChangeLog | 43 +
gdb/NEWS | 6 +-
gdb/cp-support.c | 3 +
gdb/doc/ChangeLog | 6 +
gdb/doc/gdb.texinfo | 79 +
gdb/dwarf2read.c | 70 +-
gdb/expprint.c | 22 -
gdb/expression.h | 5 -
gdb/gdbserver/ChangeLog | 261 +++
gdb/gdbserver/Makefile.in | 43 +-
gdb/gdbserver/config.in | 3 +
gdb/gdbserver/configure | 69 +
gdb/gdbserver/configure.ac | 32 +
gdb/gdbserver/configure.srv | 7 +
gdb/gdbserver/linux-amd64-ipa.c | 77 +
gdb/gdbserver/linux-i386-ipa.c | 106 +
gdb/gdbserver/linux-low.c | 659 ++++++-
gdb/gdbserver/linux-low.h | 33 +
gdb/gdbserver/linux-x86-low.c | 433 ++++-
gdb/gdbserver/mem-break.c | 390 ++++-
gdb/gdbserver/mem-break.h | 27 +
gdb/gdbserver/regcache.c | 35 +-
gdb/gdbserver/remote-utils.c | 113 +-
gdb/gdbserver/server.c | 64 +-
gdb/gdbserver/server.h | 49 +-
gdb/gdbserver/target.h | 50 +
gdb/gdbserver/tracepoint.c | 2303 +++++++++++++++++++-
gdb/gdbserver/utils.c | 28 +-
gdb/testsuite/ChangeLog | 137 ++-
gdb/testsuite/gdb.base/arithmet.exp | 12 +-
gdb/testsuite/gdb.base/arrayidx.exp | 6 +-
gdb/testsuite/gdb.base/attach.exp | 2 +-
gdb/testsuite/gdb.base/auxv.exp | 6 +-
gdb/testsuite/gdb.base/bigcore.exp | 9 +-
gdb/testsuite/gdb.base/break-always.exp | 2 +-
gdb/testsuite/gdb.base/break-interp.exp | 15 +-
gdb/testsuite/gdb.base/break.exp | 2 +-
gdb/testsuite/gdb.base/breakpoint-shadow.exp | 2 +-
gdb/testsuite/gdb.base/call-ar-st.exp | 2 +-
gdb/testsuite/gdb.base/call-sc.exp | 11 +-
gdb/testsuite/gdb.base/call-signal-resume.exp | 8 +-
gdb/testsuite/gdb.base/callfuncs.exp | 8 +-
gdb/testsuite/gdb.base/catch-syscall.exp | 4 +-
gdb/testsuite/gdb.base/charset.exp | 6 +-
gdb/testsuite/gdb.base/code-expr.exp | 6 +-
gdb/testsuite/gdb.base/commands.exp | 47 +-
gdb/testsuite/gdb.base/cond-expr.exp | 8 +-
gdb/testsuite/gdb.base/condbreak.exp | 4 +-
gdb/testsuite/gdb.base/cursal.exp | 7 +-
gdb/testsuite/gdb.base/cvexpr.exp | 6 +-
gdb/testsuite/gdb.base/default.exp | 76 +-
gdb/testsuite/gdb.base/del.exp | 7 +-
gdb/testsuite/gdb.base/detach.exp | 2 +-
gdb/testsuite/gdb.base/display.exp | 14 +-
gdb/testsuite/gdb.base/ena-dis-br.exp | 14 +-
gdb/testsuite/gdb.base/eval-skip.exp | 8 +-
gdb/testsuite/gdb.base/foll-fork.exp | 5 +-
gdb/testsuite/gdb.base/foll-vfork.exp | 2 +-
gdb/testsuite/gdb.base/frame-args.exp | 9 +-
gdb/testsuite/gdb.base/funcargs.exp | 2 +-
gdb/testsuite/gdb.base/gcore-buffer-overflow.exp | 5 +-
gdb/testsuite/gdb.base/gdbvars.exp | 8 +-
gdb/testsuite/gdb.base/help.exp | 4 +-
gdb/testsuite/gdb.base/ifelse.exp | 2 +-
gdb/testsuite/gdb.base/included.exp | 2 +-
gdb/testsuite/gdb.base/list.exp | 4 +-
gdb/testsuite/gdb.base/macscp.exp | 46 +-
gdb/testsuite/gdb.base/maint.exp | 2 +-
gdb/testsuite/gdb.base/multi-forks.exp | 26 +-
gdb/testsuite/gdb.base/overlays.exp | 4 +-
gdb/testsuite/gdb.base/page.exp | 6 +-
gdb/testsuite/gdb.base/pending.exp | 9 +-
gdb/testsuite/gdb.base/pointers.exp | 18 +-
gdb/testsuite/gdb.base/pr11022.exp | 2 +-
gdb/testsuite/gdb.base/prelink.exp | 2 +-
gdb/testsuite/gdb.base/printcmds.exp | 38 +-
gdb/testsuite/gdb.base/psymtab.exp | 2 +-
gdb/testsuite/gdb.base/randomize.exp | 2 +-
gdb/testsuite/gdb.base/relational.exp | 60 +-
gdb/testsuite/gdb.base/relocate.exp | 2 +-
gdb/testsuite/gdb.base/remote.exp | 12 +-
gdb/testsuite/gdb.base/sepdebug.exp | 5 +-
gdb/testsuite/gdb.base/set-lang-auto.exp | 6 +-
gdb/testsuite/gdb.base/setshow.exp | 58 +-
gdb/testsuite/gdb.base/setvar.exp | 16 +-
gdb/testsuite/gdb.base/signals.exp | 4 +-
gdb/testsuite/gdb.base/signull.exp | 5 +-
gdb/testsuite/gdb.base/sigstep.exp | 38 +-
gdb/testsuite/gdb.base/sizeof.exp | 2 +-
gdb/testsuite/gdb.base/solib-corrupted.exp | 2 +-
gdb/testsuite/gdb.base/solib-disc.exp | 2 +-
gdb/testsuite/gdb.base/solib-symbol.exp | 2 +-
gdb/testsuite/gdb.base/source.exp | 2 +-
gdb/testsuite/gdb.base/step-bt.exp | 4 +-
gdb/testsuite/gdb.base/store.exp | 22 +-
gdb/testsuite/gdb.base/structs.exp | 14 +-
gdb/testsuite/gdb.base/structs2.exp | 2 +-
gdb/testsuite/gdb.base/subst.exp | 35 +-
.../gdb.base/symbol-without-target_section.exp | 6 +-
gdb/testsuite/gdb.base/term.exp | 7 +-
gdb/testsuite/gdb.base/trace-commands.exp | 2 +-
gdb/testsuite/gdb.base/unwindonsignal.exp | 4 +-
gdb/testsuite/gdb.base/valgrind-db-attach.exp | 4 +-
gdb/testsuite/gdb.base/varargs.exp | 2 +-
gdb/testsuite/gdb.base/watch-cond.exp | 3 +-
gdb/testsuite/gdb.base/watch_thread_num.exp | 4 +-
gdb/testsuite/gdb.base/watchpoint-cond-gone.exp | 4 +-
gdb/testsuite/gdb.base/watchpoint.exp | 14 +-
gdb/testsuite/gdb.base/whatis-exp.exp | 8 +-
gdb/testsuite/gdb.cp/annota2.exp | 81 +-
gdb/testsuite/gdb.cp/annota3.exp | 12 +-
gdb/testsuite/gdb.cp/anon-union.exp | 259 +--
gdb/testsuite/gdb.cp/cplusfuncs.exp | 503 ++---
gdb/testsuite/gdb.cp/demangle.exp | 72 +-
gdb/testsuite/gdb.cp/formatted-ref.exp | 4 +-
gdb/testsuite/gdb.cp/koenig.cc | 7 +
gdb/testsuite/gdb.cp/koenig.exp | 5 +
gdb/testsuite/gdb.cp/local.exp | 54 +-
gdb/testsuite/gdb.cp/method.exp | 78 +-
gdb/testsuite/gdb.cp/misc.exp | 34 +-
gdb/testsuite/gdb.cp/namespace.exp | 131 +-
gdb/testsuite/gdb.cp/ovldbreak.exp | 3 +-
gdb/testsuite/gdb.cp/pr-1023.exp | 9 +-
gdb/testsuite/gdb.cp/re-set-overloaded.cc | 26 +
gdb/testsuite/gdb.cp/re-set-overloaded.exp | 61 +
gdb/testsuite/gdb.cp/ref-types.exp | 528 +----
gdb/testsuite/gdb.cp/templates.exp | 430 ++--
gdb/testsuite/gdb.cp/userdef.exp | 20 +-
gdb/testsuite/gdb.java/jmisc.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsintrall.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads-reorder.c | 15 +-
gdb/testsuite/gdb.trace/Makefile.in | 2 +-
gdb/testsuite/gdb.trace/limits.c | 51 -
gdb/testsuite/gdb.trace/limits.exp | 306 ---
gdb/testsuite/gdb.trace/tracecmd.exp | 3 +-
gdb/version.in | 2 +-
gdb/windows-nat.c | 74 +-
include/ChangeLog | 4 +
include/plugin-api.h | 3 +-
154 files changed, 6947 insertions(+), 2656 deletions(-)
create mode 100644 gdb/gdbserver/linux-amd64-ipa.c
create mode 100644 gdb/gdbserver/linux-i386-ipa.c
create mode 100644 gdb/testsuite/gdb.cp/re-set-overloaded.cc
create mode 100644 gdb/testsuite/gdb.cp/re-set-overloaded.exp
delete mode 100644 gdb/testsuite/gdb.trace/limits.c
delete mode 100644 gdb/testsuite/gdb.trace/limits.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 5276f25..bd5b559 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,40 @@
+2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * config.sub, config.guess: Update from upstream sources.
+
+2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Sync from GCC:
+
+ 2010-05-05 Sebastian Pop <sebastian.pop@amd.com>
+ * configure.ac: Allow all the versions greater than 0.10 of PPL.
+ * configure: Regenerated.
+
+ 2010-04-20 Eric Botcazou <ebotcazou@adacore.com>
+ * configure.ac (BUILD_CONFIG): Redirect output to /dev/null.
+ * configure: Regenerate.
+
+ 2010-04-17 Ralf Cors<E9>pius <ralf.corsepius@rtems.org>
+ * configure.ac (*-*-rtems*): Add target-libiberty to $skipdirs.
+ * configure: Regenerate.
+
+ 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+ * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx
+ separately.
+ * configure: Regenerate.
+
+ 2010-04-13 Steve Ellcey <sje@cup.hp.com>
+ * configure: Regenerate after change to elf.m4.
+
+ 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
+ * configure.ac: Add brackets around AC_TRY_COMPILE alternative.
+ * configure: Regenerated.
+
+ 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
+ * configure.ac: Print "buggy but acceptable" when CLooG
+ revision is less than 9.
+ * configure: Regenerated.
+
2010-05-26 Dave Korn <dave.korn.cygwin@gmail.com>
Merge from gcc:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8d7f1d8..d6a1305 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,6 +1,45 @@
+2010-06-02 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
+
+2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * configure: Regenerate.
+
+2010-06-01 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (struct vms_private_data_struct): Add
+ transfer_address field. Remove unused dst_info field.
+ (alpha_vms_write_exec): Use transfer_address.
+ (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
+ (alpha_vms_bfd_final_link): Set transfer_address.
+
+2010-05-31 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (credat_lo, credat_hi): New fields.
+ (vms_read_block): Adjust comments.
+ (vms_write_block): New function.
+ (_bfd_vms_lib_archive_p): Decode majorid once. Replace some
+ hard-coded values with constants. Set credat_lo and credat_hi.
+ (_bfd_vms_lib_mkarchive): Add argument kind.
+ Set ver, mhd_size and type according to kind.
+ (_bfd_vms_lib_alpha_mkarchive): New function.
+ (struct lib_index): Renamed from struct vms_index
+ (lib_index_cmp): Renamed from vms_index_cmp. Adjusted.
+ (get_idxlen): Type of idx argument adjusted. Add is_elfidx
+ argument and handle it.
+ (vms_write_index): Adjust argument idx. Handle elf indexes.
+ (_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
+ (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
+ use it. Handle elf indexes. Set credat.
+ * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
+ (_bfd_vms_lib_alpha_mkarchive): ... this.
+ * libbfd.h: Regenerated.
+ * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
+
2010-05-28 Sterling Augustine <sterling@tensilica.com>
- * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
+ * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
of code to change the bits in the instructions to match the changes
in the relocations. Declare dest_addr and sym_sec to help.
diff --git a/bfd/configure b/bfd/configure
index 310bb6a..04c6989 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -18200,49 +18200,61 @@ if test "$acx_cv_header_stdint" = stddef.h; then
#define _UINT8_T
#ifndef __uint8_t_defined
#define __uint8_t_defined
+ #ifndef uint8_t
typedef unsigned $acx_cv_type_int8_t uint8_t;
#endif
#endif
+ #endif
#ifndef _UINT16_T
#define _UINT16_T
#ifndef __uint16_t_defined
#define __uint16_t_defined
+ #ifndef uint16_t
typedef unsigned $acx_cv_type_int16_t uint16_t;
#endif
#endif
+ #endif
#ifndef _UINT32_T
#define _UINT32_T
#ifndef __uint32_t_defined
#define __uint32_t_defined
+ #ifndef uint32_t
typedef unsigned $acx_cv_type_int32_t uint32_t;
#endif
#endif
+ #endif
#ifndef _INT8_T
#define _INT8_T
#ifndef __int8_t_defined
#define __int8_t_defined
+ #ifndef int8_t
typedef $acx_cv_type_int8_t int8_t;
#endif
#endif
+ #endif
#ifndef _INT16_T
#define _INT16_T
#ifndef __int16_t_defined
#define __int16_t_defined
+ #ifndef int16_t
typedef $acx_cv_type_int16_t int16_t;
#endif
#endif
+ #endif
#ifndef _INT32_T
#define _INT32_T
#ifndef __int32_t_defined
#define __int32_t_defined
+ #ifndef int32_t
typedef $acx_cv_type_int32_t int32_t;
#endif
#endif
+ #endif
EOF
elif test "$ac_cv_type_u_int32_t" = yes; then
sed 's/^ *//' >> tmp-stdint.h <<EOF
@@ -18262,25 +18274,31 @@ elif test "$ac_cv_type_u_int32_t" = yes; then
#define _UINT8_T
#ifndef __uint8_t_defined
#define __uint8_t_defined
+ #ifndef uint8_t
typedef u_int8_t uint8_t;
#endif
#endif
+ #endif
#ifndef _UINT16_T
#define _UINT16_T
#ifndef __uint16_t_defined
#define __uint16_t_defined
+ #ifndef uint16_t
typedef u_int16_t uint16_t;
#endif
#endif
+ #endif
#ifndef _UINT32_T
#define _UINT32_T
#ifndef __uint32_t_defined
#define __uint32_t_defined
+ #ifndef uint32_t
typedef u_int32_t uint32_t;
#endif
#endif
+ #endif
EOF
else
sed 's/^ *//' >> tmp-stdint.h <<EOF
@@ -18330,9 +18348,11 @@ elif test "$ac_cv_type_u_int64_t" = yes; then
#define _UINT64_T
#ifndef __uint64_t_defined
#define __uint64_t_defined
+ #ifndef uint64_t
typedef u_int64_t uint64_t;
#endif
#endif
+ #endif
EOF
elif test -n "$acx_cv_type_int64_t"; then
sed 's/^ *//' >> tmp-stdint.h <<EOF
@@ -18340,15 +18360,19 @@ elif test -n "$acx_cv_type_int64_t"; then
/* architecture has a 64-bit type, $acx_cv_type_int64_t */
#ifndef _INT64_T
#define _INT64_T
+ #ifndef int64_t
typedef $acx_cv_type_int64_t int64_t;
#endif
+ #endif
#ifndef _UINT64_T
#define _UINT64_T
#ifndef __uint64_t_defined
#define __uint64_t_defined
+ #ifndef uint64_t
typedef unsigned $acx_cv_type_int64_t uint64_t;
#endif
#endif
+ #endif
EOF
else
sed 's/^ *//' >> tmp-stdint.h <<EOF
@@ -18358,13 +18382,17 @@ else
#ifndef _INT64_T
#define _INT64_T
#ifndef __int64_t_defined
+ #ifndef int64_t
typedef long long int64_t;
#endif
#endif
+ #endif
#ifndef _UINT64_T
#define _UINT64_T
+ #ifndef uint64_t
typedef unsigned long long uint64_t;
#endif
+ #endif
#elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
/* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
@@ -18376,24 +18404,32 @@ else
# ifndef _INT64_T
# define _INT64_T
+ # ifndef int64_t
__extension__ typedef long long int64_t;
# endif
+ # endif
# ifndef _UINT64_T
# define _UINT64_T
+ # ifndef uint64_t
__extension__ typedef unsigned long long uint64_t;
# endif
+ # endif
#elif !defined __STRICT_ANSI__
# if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
# ifndef _INT64_T
# define _INT64_T
+ # ifndef int64_t
typedef __int64 int64_t;
# endif
+ # endif
# ifndef _UINT64_T
# define _UINT64_T
+ # ifndef uint64_t
typedef unsigned __int64 uint64_t;
# endif
+ # endif
# endif /* compiler */
#endif /* ANSI version */
@@ -18406,11 +18442,15 @@ if test "$ac_cv_type_uintptr_t" != yes; then
/* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
#ifndef __uintptr_t_defined
+ #ifndef uintptr_t
typedef u$acx_cv_type_intptr_t uintptr_t;
#endif
+ #endif
#ifndef __intptr_t_defined
+ #ifndef intptr_t
typedef $acx_cv_type_intptr_t intptr_t;
#endif
+ #endif
EOF
fi
@@ -18460,16 +18500,20 @@ if test "$ac_cv_type_uintmax_t" != yes; then
sed 's/^ *//' >> tmp-stdint.h <<EOF
/* Define intmax based on what we found */
+ #ifndef intmax_t
#ifdef _INT64_T
typedef int64_t intmax_t;
#else
typedef long intmax_t;
#endif
+ #endif
+ #ifndef uintmax_t
#ifdef _UINT64_T
typedef uint64_t uintmax_t;
#else
typedef unsigned long uintmax_t;
#endif
+ #endif
EOF
fi
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 5e636a3..ec13399 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -376,7 +376,7 @@ extern symindex _bfd_vms_lib_find_symbol (bfd *, const char *);
extern bfd *_bfd_vms_lib_get_imagelib_file (bfd *);
extern const bfd_target *_bfd_vms_lib_alpha_archive_p (bfd *abfd);
extern const bfd_target *_bfd_vms_lib_ia64_archive_p (bfd *abfd);
-extern bfd_boolean _bfd_vms_lib_mkarchive (bfd *abfd);
+extern bfd_boolean _bfd_vms_lib_alpha_mkarchive (bfd *abfd);
/* Routines to use for BFD_JUMP_TABLE_SYMBOLS where there is no symbol
support. Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). */
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 1a3c39e..578929a 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -381,7 +381,7 @@ extern symindex _bfd_vms_lib_find_symbol (bfd *, const char *);
extern bfd *_bfd_vms_lib_get_imagelib_file (bfd *);
extern const bfd_target *_bfd_vms_lib_alpha_archive_p (bfd *abfd);
extern const bfd_target *_bfd_vms_lib_ia64_archive_p (bfd *abfd);
-extern bfd_boolean _bfd_vms_lib_mkarchive (bfd *abfd);
+extern bfd_boolean _bfd_vms_lib_alpha_mkarchive (bfd *abfd);
/* Routines to use for BFD_JUMP_TABLE_SYMBOLS where there is no symbol
support. Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). */
diff --git a/bfd/version.h b/bfd/version.h
index 3d27e87..d834c91 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100528
+#define BFD_VERSION_DATE 20100602
#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/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 4e255bd..a68114f 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -273,6 +273,9 @@ struct vms_private_data_struct
struct hdr_struct hdr_data; /* data from HDR/EMH record */
struct eom_struct eom_data; /* data from EOM/EEOM record */
+ /* Transfer addresses (entry points). */
+ bfd_vma transfer_address[4];
+
/* Array of GSD sections to get the correspond BFD one. */
unsigned int section_max; /* Size of the sections array. */
unsigned int section_count; /* Number of GSD sections. */
@@ -301,7 +304,6 @@ struct vms_private_data_struct
struct module *modules; /* list of all compilation units */
- struct dst_info *dst_info;
asection *dst_section;
unsigned int dst_ptr_offsets_count; /* # of offsets in following array */
@@ -2983,11 +2985,10 @@ alpha_vms_write_exec (bfd *abfd)
bfd_putl32 (sizeof (struct vms_eiha), eiha->size);
bfd_putl32 (0, eiha->spare);
- bfd_putl32 (0x00000340, eiha->tfradr1); /* SYS$IMGACT */
- bfd_putl32 (0xffffffff, eiha->tfradr1_h);
- bfd_putl64 (bfd_get_start_address (abfd), eiha->tfradr2);
- bfd_putl64 (0, eiha->tfradr3);
- bfd_putl64 (0, eiha->tfradr4);
+ bfd_putl64 (PRIV (transfer_address[0]), eiha->tfradr1);
+ bfd_putl64 (PRIV (transfer_address[1]), eiha->tfradr2);
+ bfd_putl64 (PRIV (transfer_address[2]), eiha->tfradr3);
+ bfd_putl64 (PRIV (transfer_address[3]), eiha->tfradr4);
bfd_putl64 (0, eiha->inishr);
/* Alloc EIHI. */
@@ -3389,21 +3390,28 @@ done:
char *hash;
symbol = abfd->outsymbols[symnum];
+ old_flags = symbol->flags;
+
+ /* Work-around a missing feature: consider __main as the main entry point. */
if (*(symbol->name) == '_')
{
if (strcmp (symbol->name, "__main") == 0)
bfd_set_start_address (abfd, (bfd_vma)symbol->value);
}
- old_flags = symbol->flags;
+ /* Only put in the GSD the global and the undefined symbols. */
if (old_flags & BSF_FILE)
continue;
- if ((old_flags & BSF_GLOBAL) == 0 /* Not xdef... */
- && !bfd_is_und_section (symbol->section) /* and not xref... */
- && !((old_flags & BSF_SECTION_SYM) != 0 /* and not LIB$INITIALIZE. */
- && strcmp (symbol->section->name, "LIB$INITIALIZE") == 0))
- continue;
+ if ((old_flags & BSF_GLOBAL) == 0 && !bfd_is_und_section (symbol->section))
+ {
+ /* If the LIB$INITIIALIZE section is present, add a reference to
+ LIB$INITIALIZE symbol. FIXME: this should be done explicitely
+ in the assembly file. */
+ if (!((old_flags & BSF_SECTION_SYM) != 0
+ && strcmp (symbol->section->name, "LIB$INITIALIZE") == 0))
+ continue;
+ }
/* 13 bytes egsd, max 64 chars name -> should be 77 bytes. */
if (_bfd_vms_output_check (recwr, 80) < 0)
@@ -8668,6 +8676,22 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
}
}
+ /* Set transfer addresses. */
+ {
+ int i;
+ struct bfd_link_hash_entry *h;
+
+ i = 0;
+ PRIV (transfer_address[i++]) = 0xffffffff00000340ULL; /* SYS$IMGACT */
+ h = bfd_link_hash_lookup (info->hash, "LIB$INITIALIZE", FALSE, FALSE, TRUE);
+ if (h != NULL && h->type == bfd_link_hash_defined)
+ PRIV (transfer_address[i++]) =
+ alpha_vms_get_sym_value (h->u.def.section, h->u.def.value);
+ PRIV (transfer_address[i++]) = bfd_get_start_address (abfd);
+ while (i < 4)
+ PRIV (transfer_address[i++]) = 0;
+ }
+
/* Allocate contents. */
base_addr = (bfd_vma)-1;
last_addr = 0;
@@ -9231,7 +9255,7 @@ const bfd_target vms_alpha_vec =
{_bfd_dummy_target, alpha_vms_object_p, /* bfd_check_format. */
_bfd_vms_lib_alpha_archive_p, _bfd_dummy_target},
{bfd_false, alpha_vms_mkobject, /* bfd_set_format. */
- _bfd_vms_lib_mkarchive, bfd_false},
+ _bfd_vms_lib_alpha_mkarchive, bfd_false},
{bfd_false, alpha_vms_write_object_contents, /* bfd_write_contents. */
_bfd_vms_lib_write_archive_contents, bfd_false},
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index 3877686..b7c8f83 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -77,6 +77,10 @@ struct lib_tdata
/* Total size of the mhd (element header). */
unsigned int mhd_size;
+ /* Creation date. */
+ unsigned int credat_lo;
+ unsigned int credat_hi;
+
/* Vector of modules (archive elements), already sorted. */
unsigned int nbr_modules;
struct carsym *modules;
@@ -186,14 +190,13 @@ vms_add_indexes_from_list (bfd *abfd, struct carsym_mem *cs, char *name,
}
}
-/* Read block VBN from ABFD and store it into BLK. */
+/* Read block VBN from ABFD and store it into BLK. Return FALSE in case of error. */
static bfd_boolean
vms_read_block (bfd *abfd, unsigned int vbn, void *blk)
{
file_ptr off;
- /* Read the index block. */
off = (vbn - 1) * VMS_BLOCK_SIZE;
if (bfd_seek (abfd, off, SEEK_SET) != 0
|| bfd_bread (blk, VMS_BLOCK_SIZE, abfd) != VMS_BLOCK_SIZE)
@@ -202,6 +205,21 @@ vms_read_block (bfd *abfd, unsigned int vbn, void *blk)
return TRUE;
}
+/* Write the content of BLK to block VBN of ABFD. Return FALSE in case of error. */
+
+static bfd_boolean
+vms_write_block (bfd *abfd, unsigned int vbn, void *blk)
+{
+ file_ptr off;
+
+ off = (vbn - 1) * VMS_BLOCK_SIZE;
+ if (bfd_seek (abfd, off, SEEK_SET) != 0
+ || bfd_bwrite (blk, VMS_BLOCK_SIZE, abfd) != VMS_BLOCK_SIZE)
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-28 21:27 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-05-28 21:27 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via d2f3d271e1bd14db6d66c1ff521d94200b29a928 (commit)
via e4c30a7b51181b7a61f62d0907e3df4c28e61733 (commit)
via a614d2015993ccb4e660d80ab59dc8ac02aafea1 (commit)
via 58197f5ebc5f8fa1a55d316e950add05084fac8b (commit)
via 0c54def2550a1a39ebdadde8b84f1bd560b1c05c (commit)
via 32c1122521d632e3ab5f323c5518a6c6bc4bf69a (commit)
via d60b042b39f7f83da3e2643a118342d206a487f3 (commit)
via aec49a3b39cb37b04a4367836845c2b3b9d84566 (commit)
via a20c37117cfc8e8f63e2635ad4dce1d0b05a3384 (commit)
via 5ad3de1412739990cb18123a71e5bf268a08c64f (commit)
via b476b6c421a14d324c150420375ec51eeb158e80 (commit)
via 0d677bcc2e6f354caa506bc81c6c098e587b0781 (commit)
via 5319e6ecfd39cd295e05c329f82cbb9bfd61268f (commit)
via cf80d8f88f4f85ed775cc8e57a93e515fb2f49fa (commit)
via f05236a25b8386f97dbd640129ee99126e8a07e8 (commit)
via ef00be87440140a7906db217215b9bceb9e7839e (commit)
via 429b20b665e8d627f65e7420909c22fbec2babff (commit)
via 572388bfb070d110f43dbe42b60b6d6052060386 (commit)
via 85d43fbcd9da8b3d847d9256becbcd0729609f03 (commit)
via 00ed71549fb61936b0c0dc7743051dd399b924f9 (commit)
via cd466708187190b031931711510ec06e59a2f8a6 (commit)
via 9ca88e594da29a89ee42b37fe17e19c2a2ece3b8 (commit)
via a09daaf35264cf37651a0ddcbcf6dc4ba9583c9e (commit)
via 838ff5b622c11b7f73254d4b1de338d440401600 (commit)
via 075964519b8d0b8d0d68e4933e90f20c6ffe6da4 (commit)
via b8dcbfeddb8eb78225c515f72821b9f6f503c8b2 (commit)
via 85e0963cfd025864862e568f1ef55375fb571044 (commit)
via 8c0151b6957286b3b948499d7d312cece687fff7 (commit)
via e2525e60c4727ffa8ce5a9f94ad49ea54d8284d9 (commit)
via 2fe486b869f8d2c434900635de935bb81a2ff187 (commit)
via 8f416e593ad8c55490f7fc832b60e755a26f822a (commit)
via 5d8ac57aeb7f5dc635b296d32d50bf928cf631f1 (commit)
via 777d524bffd8875777cafdf73918e65d59bc9acb (commit)
via 23a4a626dfb030f08bbbafdc6a86f1667f15c7ee (commit)
via 8d98f6f8db07aab7c8ab31764f74e3c64a7dfb7b (commit)
via 643161cf124860c36250458ba4621ec37c558ff7 (commit)
via 6067dd5ec9d0fbd6cae5f759bb103a5580e32aa6 (commit)
via 703dff8df50e463118ae543fcfd6385d023aff86 (commit)
via 41c6daf6bd16e0e1aab58c2109d678c96c6395cb (commit)
via dbfc61a025214ccb9904df869243c82904629913 (commit)
from 0370cf7d63f2b81f60909b10e2229e37e2c24d6f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit d2f3d271e1bd14db6d66c1ff521d94200b29a928
Merge: 0370cf7d63f2b81f60909b10e2229e37e2c24d6f e4c30a7b51181b7a61f62d0907e3df4c28e61733
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri May 28 23:27:15 2010 +0200
Merge remote branch 'gdb/master'
commit e4c30a7b51181b7a61f62d0907e3df4c28e61733
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri May 28 18:50:29 2010 +0000
gdb/
* Makefile.in (RDYNAMIC): New.
(SFILES): Add proc-service.list.
* config/alpha/alpha-linux.mh (NAT_CDEPS): New.
(LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
* config/arm/linux.mh: Likewise.
* config/i386/linux.mh: Likewise.
* config/i386/linux64.mh: Likewise.
* config/ia64/linux.mh: Likewise.
* config/m32r/linux.mh: Likewise.
* config/m68k/linux.mh: Likewise.
* config/mips/linux.mh: Likewise.
* config/pa/linux.mh: Likewise.
* config/powerpc/linux.mh: Likewise.
* config/powerpc/ppc64-linux.mh: Likewise.
* config/s390/s390.mh: Likewise.
* config/sparc/linux.mh: Likewise.
* config/sparc/linux64.mh: Likewise.
* config/xtensa/linux.mh: Likewise.
* configure.ac: New RDYNAMIC on native host and GCC.
(solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
* configure: Regenerate.
* proc-service.list: New.
gdb/gdbserver/
* Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
(CDEPS): New.
* configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
-Wl,--dynamic-list.
* configure: Regenerate.
* proc-service.list: New.
commit a614d2015993ccb4e660d80ab59dc8ac02aafea1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri May 28 18:35:54 2010 +0000
gdb/testsuite/
* gdb.base/tui-layout.exp: New.
commit 58197f5ebc5f8fa1a55d316e950add05084fac8b
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 28 18:26:41 2010 +0000
2010-05-28 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.reverse/break-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/break-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/consecutive-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/consecutive-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/finish-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/finish-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i386-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i386-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i386-sse-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i387-env-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/i387-stack-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/machinestate-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/machinestate.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/sigall-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/sigall-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/solib-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/solib-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/step-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/step-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/until-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/until-reverse.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/watch-precsave.exp:
Replace uses of send_gdb / gdb_expect.
* gdb.reverse/watch-reverse.exp:
Replace uses of send_gdb / gdb_expect.
commit 0c54def2550a1a39ebdadde8b84f1bd560b1c05c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri May 28 18:23:13 2010 +0000
gdb/
* linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
CONTENT.
gdb/gdbserver/
* linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
New comment.
commit 32c1122521d632e3ab5f323c5518a6c6bc4bf69a
Author: sterling <sterling>
Date: Fri May 28 18:10:44 2010 +0000
2010-05-28 Sterling Augustine <sterling@tensilica.com>
* elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
of code to change the bits in the instructions to match the changes
in the relocations. Declare dest_addr and sym_sec to help.
commit d60b042b39f7f83da3e2643a118342d206a487f3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri May 28 18:00:41 2010 +0000
gdb/
* linux-nat.c (linux_nat_wait_1): Do not call
linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
TARGET_WAITKIND_SIGNALLED.
commit aec49a3b39cb37b04a4367836845c2b3b9d84566
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri May 28 17:57:44 2010 +0000
gdb/testsuite/
* gdb.base/sepdebug.exp (info silent break bp_location1): Fix racy
excessive newline.
commit a20c37117cfc8e8f63e2635ad4dce1d0b05a3384
Author: Kevin Buettner <kevinb@redhat.com>
Date: Fri May 28 17:21:40 2010 +0000
Revert accidentally committed changes that aren't ready yet.
commit 5ad3de1412739990cb18123a71e5bf268a08c64f
Author: Kevin Buettner <kevinb@redhat.com>
Date: Fri May 28 17:10:32 2010 +0000
* gdb-if.c (sim_do_command): Add a "sim verbose noisy" command.
commit b476b6c421a14d324c150420375ec51eeb158e80
Author: mgretton <mgretton>
Date: Fri May 28 16:04:20 2010 +0000
* opcodes/arm-dis.c (print_insn_neon): Ensure disassembly of Neon
constants is the same on 32-bit and 64-bit hosts.
commit 0d677bcc2e6f354caa506bc81c6c098e587b0781
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri May 28 09:57:02 2010 +0000
bfd/
Workaround GCC PR middle-end/4210.
* vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
and val[3].
commit 5319e6ecfd39cd295e05c329f82cbb9bfd61268f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri May 28 01:32:07 2010 +0000
Cache the TSD type in inferior-data (performance).
This is something I noticed while looking at ada_find_any_type.
Use of that function is expensive, since it causes a global lookup.
Reviewing some of the uses, I found that we were calling it to get
a specific type everytime we print a tagged type (the equivalent of
classes in C++); and not only that, we did it 4 times [1]!
Since the type in question (ada__tags__type_specific_data) is guarantied
to remain the same througout the entire life of the inferior, the solution
was to cache that type in inferior private data. This patch creates
an ada-land private-data area, and uses it to store that type after
the first time we look it up.
[1]: The problem is mitigated in AdaCore's tree because we use an Ada
symbol cache which we are thinking of contributing to the FSF tree.
But that's still pretty bad, regardless.
2010-05-27 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (ada_inferior_data): New struct.
(ada_inferior_data): New static global.
(ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
(ada_get_tsd_type): New functions.
(ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
to look the tsd type up.
(_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
event. Set ada_inferior_data.
commit cf80d8f88f4f85ed775cc8e57a93e515fb2f49fa
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri May 28 00:00:35 2010 +0000
*** empty log message ***
commit f05236a25b8386f97dbd640129ee99126e8a07e8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri May 28 00:00:06 2010 +0000
daily update
commit ef00be87440140a7906db217215b9bceb9e7839e
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 27 23:44:51 2010 +0000
2010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.base/relational.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/relocate.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/restore.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/return.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/return2.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/sepdebug.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/setshow.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/setvar.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/shlib-call.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/shreloc.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/sigall.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/sigbpt.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/signull.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/so-impl-ld.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/varargs.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/volatile.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/watch_thread_num.exp: Replace uses of send_gdb / gdb_expect.
* gdb.base/watchpoint.exp: Replace uses of send_gdb / gdb_expect.
commit 429b20b665e8d627f65e7420909c22fbec2babff
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 27 23:39:56 2010 +0000
2010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.base/break.exp: Replace uses of send_gdb / gdb_expect.
commit 572388bfb070d110f43dbe42b60b6d6052060386
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu May 27 22:05:59 2010 +0000
* remote.c (unpack_varlen_hex): Remove forward declaration.
(remote_console_output): Make static, and add forward declaration.
* remote.h: Drop FIXME comment.
(unpack_varlen_hex): Declare.
(remote_console_output, remote_cisco_objfile_relocate)
(deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
Delete declarations.
* tracepoint.c: Include "remote.h".
(unpack_varlen_hex): Delete declaration.
commit 85d43fbcd9da8b3d847d9256becbcd0729609f03
Author: Tom Tromey <tromey@redhat.com>
Date: Thu May 27 19:14:35 2010 +0000
* dwarf2loc.c (struct piece_closure) <refc>: New field.
(allocate_piece_closure): Initialize refc.
(copy_pieced_value_closure): Use refc.
(free_pieced_value_closure): Likewise.
commit 00ed71549fb61936b0c0dc7743051dd399b924f9
Author: Tom Tromey <tromey@redhat.com>
Date: Thu May 27 19:06:12 2010 +0000
* arm-tdep.c (push_stack_item): 'contents' now const.
(arm_push_dummy_call): Make 'val' const. Use value_contents, not
value_contents_writeable. Introduce new temporary.
commit cd466708187190b031931711510ec06e59a2f8a6
Author: Tom Tromey <tromey@redhat.com>
Date: Thu May 27 18:53:47 2010 +0000
* findcmd.c (parse_find_args): Use value_contents, not
value_contents_raw.
commit 9ca88e594da29a89ee42b37fe17e19c2a2ece3b8
Author: Tom Tromey <tromey@redhat.com>
Date: Thu May 27 18:45:42 2010 +0000
* alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
const. Use value_contents, not value_contents_writeable.
commit a09daaf35264cf37651a0ddcbcf6dc4ba9583c9e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu May 27 17:37:45 2010 +0000
Replace call to value_contents_raw by call to value_contents.
This is something that Tom spotted. It shouldn't make much of a difference
in practice with the current code, but Tom is planning on making some
changes (bitwise optimized-out tracking) in value_contents...
2010-05-27 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (ensure_lval): Replace call to value_contents_raw
by call to value_contents.
commit 838ff5b622c11b7f73254d4b1de338d440401600
Author: sezero <sezero>
Date: Thu May 27 16:03:22 2010 +0000
2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
* gdb/MAINTAINERS: Add myself for write after approval privileges.
commit 075964519b8d0b8d0d68e4933e90f20c6ffe6da4
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu May 27 13:43:42 2010 +0000
2010-05-27 Tristan Gingold <gingold@adacore.com>
* vms-misc.c: Define __NEW_STARLET. Remove trailing spaces.
(VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
(vms_time_to_time_t): Use them instead of local const.
(vms_time_t_to_vms_time): New function.
(vms_get_time): Likewise.
(vms_raw_get_time): Likewise.
* vms.h (vms_time_t_to_vms_time): New declaration.
(vms_get_time): Likewise.
(vms_raw_get_time): Likewise.
commit b8dcbfeddb8eb78225c515f72821b9f6f503c8b2
Author: Nick Clifton <nickc@redhat.com>
Date: Thu May 27 10:45:52 2010 +0000
Fix typo in ChangeLog entry.
commit 85e0963cfd025864862e568f1ef55375fb571044
Author: Nick Clifton <nickc@redhat.com>
Date: Thu May 27 10:43:27 2010 +0000
* m68k-dis.c (print_insn_m68k): Emit undefined instructions as
.short directives so that they can be reassembled.
commit 8c0151b6957286b3b948499d7d312cece687fff7
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu May 27 10:37:23 2010 +0000
2010-05-27 Tristan Gingold <gingold@adacore.com>
* lbr.h: Improve comments.
commit e2525e60c4727ffa8ce5a9f94ad49ea54d8284d9
Author: Doug Evans <dje@google.com>
Date: Thu May 27 03:40:43 2010 +0000
Allow python to find its files if moved from original location.
* acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
(GDB_AC_WITH_DIR): Call it.
* configure.ac: Define WITH_PYTHON_PATH if we can find the
python installation directory.
* config.in: Regenerate.
* configure: Regenerate.
* defs.h (python_libdir): Declare.
* main.c (python_libdir): Define.
(captured_main): Initialize python_libdir.
* python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
call Py_SetProgramName to make sure python can find its libraries
and modules.
commit 2fe486b869f8d2c434900635de935bb81a2ff187
Author: Doug Evans <dje@google.com>
Date: Thu May 27 01:36:20 2010 +0000
* configure.ac: Try to use python's distutils to fetch compilation
parameters.
* configure: Regenerate.
* python/python-config.py: New file.
commit 8f416e593ad8c55490f7fc832b60e755a26f822a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu May 27 00:00:06 2010 +0000
daily update
commit 5d8ac57aeb7f5dc635b296d32d50bf928cf631f1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu May 27 00:00:03 2010 +0000
*** empty log message ***
commit 777d524bffd8875777cafdf73918e65d59bc9acb
Author: sezero <sezero>
Date: Wed May 26 22:40:21 2010 +0000
2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
gdb/
* ser-tcp.c (net_open): Check error return from socket() call by its
equality to -1 not by it being negative.
(net_close): Likewise.
gdb/gdbserver/
* gdbreplay.c (remote_open): Check error return from socket() call by
its equality to -1 not by it being negative.
* remote-utils.c (remote_open): Likewise.
sim/arm/
* communicate.c (MYread_char): Check error return from accept() call
by its equality to -1 not by it being negative.
(MYread_charwait): Likewise.
* main.c (main): Likewise for both socket() and accept() calls.
sim/common/
* dv-sockser.c (dv_sockser_init): Check error return from socket()
call by its equality to -1 not by it being negative.
(connected_p): Likewise for accept() call.
sim/cris/
* dv-rv.c (hw_rv_init_socket): Check error return from socket() call
by its equality to -1 not by it being negative.
(hw_rv_write): Likewise.
(hw_rv_handle_incoming): Likewise.
(hw_rv_poll_once): Likewise.
* rvdummy.c (setupsocket): Likewise.
(main): Likewise for accept() call as returned from setupsocket().
sim/m32c/
* main.c (setup_tcp_console): Check error return from socket() call
by its equality to -1 not by it being negative.
commit 23a4a626dfb030f08bbbafdc6a86f1667f15c7ee
Author: Catherine Moore <clm@redhat.com>
Date: Wed May 26 21:49:29 2010 +0000
2010-05-26 Catherine Moore <clm@codesourcery.com>
David Ung <davidu@mips.com>
* mips-opc.c: Change membership to I1 for instructions ssnop and
ehb.
2010-05-26 Catherine Moore <clm@codesoucery.com>
Maxim Kuvyrkov <maxim@codesourcery.com>
* gas/mips/set-arch.d: Expect ehb.
commit 8d98f6f8db07aab7c8ab31764f74e3c64a7dfb7b
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 26 18:34:10 2010 +0000
2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.java/jmisc.exp: Replace send_gdb with gdb_test.
* gdb.java/jprint.exp: Replace send_gdb with gdb_test.
commit 643161cf124860c36250458ba4621ec37c558ff7
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 26 18:31:25 2010 +0000
2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.gdb/complaints.exp: Replace send_gdb with gdb_test.
* gdb.gdb/selftest.exp: Replace send_gdb with gdb_test.
* gdb.gdb/xfullpath.exp: Replace send_gdb with gdb_test.
commit 6067dd5ec9d0fbd6cae5f759bb103a5580e32aa6
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed May 26 18:19:24 2010 +0000
gdb/
2010-05-26 Pedro Alves <pedro@codesourcery.com>
* NEWS: Mention the `qRelocInsn' feature.
* gdbarch.sh (relocate_instruction): New.
* amd64-tdep.c (rip_relative_offset): New.
(append_insns): New.
(amd64_relocate_instruction): New.
(amd64_init_abi): Install it.
* i386-tdep.c (append_insns): New.
(i386_relocate_instruction): New.
(i386_gdbarch_init): Install it.
* remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
* gdbarch.h, gdbarch.c: Regenerate.
gdb/doc/
2010-05-26 Pedro Alves <pedro@codesourcery.com>
* gdb.texinfo (General Query Packets) <qSupported>: Describe the
`qRelocInsn' feature.
(Relocate instruction reply packet): New subsection
of `Tracepoint Packets'.
(Tracepoint Packets): Mention that packets QTDP and QTStart
support the qRelocInsn request, and add cross reference to new
subsection.
commit 703dff8df50e463118ae543fcfd6385d023aff86
Author: DJ Delorie <dj@delorie.com>
Date: Wed May 26 18:16:13 2010 +0000
merge from gcc
commit 41c6daf6bd16e0e1aab58c2109d678c96c6395cb
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 26 18:12:13 2010 +0000
2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.reverse/consecutive-reverse.exp: Replace send_gdb with gdb_test.
* gdb.reverse/consecutive-precsave.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-basics.exp:
* gdb.mi/mi-nonstop-exit.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-nonstop.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-ns-stale-regcache.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-nsintrall.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-nsmoribund.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-nsthrexec.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-return.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi-var-display.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi2-basics.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi2-console.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi2-return.exp: Replace send_gdb with gdb_test.
* gdb.mi/mi2-var-display.exp: Replace send_gdb with gdb_test.
commit dbfc61a025214ccb9904df869243c82904629913
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 26 18:05:22 2010 +0000
2010-05-25 Michael Snyder <msnyder@vmware.com>
* gdb.ada/formatted_ref.exp: Replace send_gdb with gdb_test.
* gdb.asm/asm-source.exp: Replace send_gdb with gdb_test.
* gdb.base/a2-run.exp: Replace send_gdb with gdb_test.
* gdb.base/all-bin.exp: Replace send_gdb with gdb_test.
* gdb.base/annota1.exp: Replace send_gdb with gdb_test.
* gdb.base/annota3.exp: Replace send_gdb with gdb_test.
* gdb.base/assign.exp: Replace send_gdb with gdb_test.
* gdb.base/attach.exp: Replace send_gdb with gdb_test.
* gdb.base/bitfields.exp: Replace send_gdb with gdb_test.
* gdb.base/bitfields2.exp: Replace send_gdb with gdb_test.
* gdb.base/bitops.exp: Replace send_gdb with gdb_test.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 24 +
bfd/elf32-xtensa.c | 49 +-
bfd/libbfd.h | 12 +-
bfd/version.h | 2 +-
bfd/vms-misc.c | 123 +-
bfd/vms.h | 3 +
bfd/xtensa-modules.c |14914 ++++++++++++++++----
gdb/ChangeLog | 132 +
gdb/MAINTAINERS | 1 +
gdb/Makefile.in | 4 +-
gdb/NEWS | 9 +
gdb/acinclude.m4 | 39 +-
gdb/ada-lang.c | 83 +-
gdb/alpha-tdep.c | 6 +-
gdb/amd64-tdep.c | 119 +
gdb/arm-tdep.c | 11 +-
gdb/config.in | 7 +
gdb/config/alpha/alpha-linux.mh | 3 +-
gdb/config/arm/linux.mh | 3 +-
gdb/config/i386/linux.mh | 3 +-
gdb/config/i386/linux64.mh | 3 +-
gdb/config/ia64/linux.mh | 3 +-
gdb/config/m32r/linux.mh | 3 +-
gdb/config/m68k/linux.mh | 3 +-
gdb/config/mips/linux.mh | 3 +-
gdb/config/pa/linux.mh | 3 +-
gdb/config/powerpc/linux.mh | 3 +-
gdb/config/powerpc/ppc64-linux.mh | 3 +-
gdb/config/s390/s390.mh | 3 +-
gdb/config/sparc/linux.mh | 3 +-
gdb/config/sparc/linux64.mh | 3 +-
gdb/config/xtensa/linux.mh | 3 +-
gdb/configure | 454 +-
gdb/configure.ac | 254 +-
gdb/defs.h | 4 +
gdb/doc/ChangeLog | 10 +
gdb/doc/gdb.texinfo | 53 +-
gdb/dwarf2loc.c | 15 +-
gdb/findcmd.c | 2 +-
gdb/gdbarch.c | 35 +
gdb/gdbarch.h | 18 +
gdb/gdbarch.sh | 13 +
gdb/gdbserver/ChangeLog | 20 +
gdb/gdbserver/Makefile.in | 4 +-
gdb/gdbserver/configure | 34 +-
gdb/gdbserver/configure.ac | 17 +-
gdb/gdbserver/gdbreplay.c | 2 +-
gdb/gdbserver/linux-low.c | 16 +-
gdb/gdbserver/proc-service.list | 30 +
gdb/gdbserver/remote-utils.c | 2 +-
gdb/i386-tdep.c | 82 +
gdb/linux-nat.c | 22 +-
gdb/main.c | 12 +
gdb/proc-service.list | 40 +
gdb/python/python-config.py | 54 +
gdb/python/python.c | 11 +
gdb/remote.c | 64 +-
gdb/remote.h | 19 +-
gdb/ser-tcp.c | 4 +-
gdb/testsuite/ChangeLog | 135 +
gdb/testsuite/gdb.ada/formatted_ref.exp | 9 +-
gdb/testsuite/gdb.asm/asm-source.exp | 30 +-
gdb/testsuite/gdb.base/a2-run.exp | 29 +-
gdb/testsuite/gdb.base/all-bin.exp | 491 +-
gdb/testsuite/gdb.base/annota1.exp | 239 +-
gdb/testsuite/gdb.base/annota3.exp | 19 +-
gdb/testsuite/gdb.base/assign.exp | 527 +-
gdb/testsuite/gdb.base/attach.exp | 29 +-
gdb/testsuite/gdb.base/bitfields.exp | 5 +-
gdb/testsuite/gdb.base/bitfields2.exp | 2 +-
gdb/testsuite/gdb.base/bitops.exp | 393 +-
gdb/testsuite/gdb.base/break.exp | 505 +-
gdb/testsuite/gdb.base/relational.exp | 363 +-
gdb/testsuite/gdb.base/relocate.exp | 37 +-
gdb/testsuite/gdb.base/restore.exp | 15 +-
gdb/testsuite/gdb.base/return.exp | 31 +-
gdb/testsuite/gdb.base/return2.exp | 43 +-
gdb/testsuite/gdb.base/sepdebug.exp | 510 +-
gdb/testsuite/gdb.base/setshow.exp | 56 +-
gdb/testsuite/gdb.base/setvar.exp | 18 +-
gdb/testsuite/gdb.base/shlib-call.exp | 162 +-
gdb/testsuite/gdb.base/shreloc.exp | 42 +-
gdb/testsuite/gdb.base/sigall.exp | 24 +-
gdb/testsuite/gdb.base/sigbpt.exp | 3 +-
gdb/testsuite/gdb.base/signull.exp | 3 +-
gdb/testsuite/gdb.base/so-impl-ld.exp | 53 +-
gdb/testsuite/gdb.base/tui-layout.exp | 21 +
gdb/testsuite/gdb.base/varargs.exp | 69 +-
gdb/testsuite/gdb.base/volatile.exp | 43 +-
gdb/testsuite/gdb.base/watch_thread_num.exp | 9 +-
gdb/testsuite/gdb.base/watchpoint.exp | 34 +-
gdb/testsuite/gdb.gdb/complaints.exp | 73 +-
gdb/testsuite/gdb.gdb/selftest.exp | 94 +-
gdb/testsuite/gdb.gdb/xfullpath.exp | 6 +-
gdb/testsuite/gdb.java/jmisc.exp | 38 +-
gdb/testsuite/gdb.java/jprint.exp | 6 +-
gdb/testsuite/gdb.mi/mi-basics.exp | 56 +-
gdb/testsuite/gdb.mi/mi-nonstop-exit.exp | 5 +-
gdb/testsuite/gdb.mi/mi-nonstop.exp | 17 +-
gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp | 5 +-
gdb/testsuite/gdb.mi/mi-nsintrall.exp | 17 +-
gdb/testsuite/gdb.mi/mi-nsmoribund.exp | 33 +-
gdb/testsuite/gdb.mi/mi-nsthrexec.exp | 5 +-
gdb/testsuite/gdb.mi/mi-return.exp | 8 +-
gdb/testsuite/gdb.mi/mi-var-display.exp | 5 +-
gdb/testsuite/gdb.mi/mi2-basics.exp | 56 +-
gdb/testsuite/gdb.mi/mi2-console.exp | 6 +-
gdb/testsuite/gdb.mi/mi2-return.exp | 8 +-
gdb/testsuite/gdb.mi/mi2-var-display.exp | 5 +-
gdb/testsuite/gdb.reverse/break-precsave.exp | 8 +-
gdb/testsuite/gdb.reverse/break-reverse.exp | 8 +-
gdb/testsuite/gdb.reverse/consecutive-precsave.exp | 32 +-
gdb/testsuite/gdb.reverse/consecutive-reverse.exp | 32 +-
gdb/testsuite/gdb.reverse/finish-precsave.exp | 5 +-
gdb/testsuite/gdb.reverse/finish-reverse.exp | 5 +-
gdb/testsuite/gdb.reverse/i386-precsave.exp | 3 +-
gdb/testsuite/gdb.reverse/i386-reverse.exp | 3 +-
gdb/testsuite/gdb.reverse/i386-sse-reverse.exp | 3 +-
gdb/testsuite/gdb.reverse/i387-env-reverse.exp | 6 +-
gdb/testsuite/gdb.reverse/i387-stack-reverse.exp | 6 +-
.../gdb.reverse/machinestate-precsave.exp | 3 +-
gdb/testsuite/gdb.reverse/machinestate.exp | 3 +-
gdb/testsuite/gdb.reverse/sigall-precsave.exp | 3 +-
gdb/testsuite/gdb.reverse/sigall-reverse.exp | 3 +-
gdb/testsuite/gdb.reverse/solib-precsave.exp | 3 +-
gdb/testsuite/gdb.reverse/solib-reverse.exp | 3 +-
gdb/testsuite/gdb.reverse/step-precsave.exp | 8 +-
gdb/testsuite/gdb.reverse/step-reverse.exp | 8 +-
gdb/testsuite/gdb.reverse/until-precsave.exp | 6 +-
gdb/testsuite/gdb.reverse/until-reverse.exp | 6 +-
gdb/testsuite/gdb.reverse/watch-precsave.exp | 12 +-
gdb/testsuite/gdb.reverse/watch-reverse.exp | 12 +-
gdb/tracepoint.c | 3 +-
gdb/version.in | 2 +-
include/vms/ChangeLog | 4 +
include/vms/lbr.h | 6 +-
include/xtensa-config.h | 7 +-
libiberty/ChangeLog | 5 +
libiberty/testsuite/demangle-expected | 10 +
opcodes/ChangeLog | 16 +
opcodes/arm-dis.c | 3 +-
opcodes/m68k-dis.c | 2 +-
opcodes/mips-opc.c | 4 +-
sim/arm/ChangeLog | 7 +
sim/arm/communicate.c | 4 +-
sim/arm/main.c | 4 +-
sim/common/ChangeLog | 6 +
sim/common/dv-sockser.c | 4 +-
sim/cris/ChangeLog | 10 +
sim/cris/dv-rv.c | 8 +-
sim/cris/rvdummy.c | 4 +-
sim/m32c/ChangeLog | 5 +
sim/m32c/main.c | 2 +-
sim/rx/ChangeLog | 4 +
sim/rx/gdb-if.c | 4 +-
155 files changed, 15136 insertions(+), 6435 deletions(-)
create mode 100644 gdb/gdbserver/proc-service.list
create mode 100644 gdb/proc-service.list
create mode 100644 gdb/python/python-config.py
create mode 100644 gdb/testsuite/gdb.base/tui-layout.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 471d1f3..8d7f1d8 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,27 @@
+2010-05-28 Sterling Augustine <sterling@tensilica.com>
+
+ * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
+ of code to change the bits in the instructions to match the changes
+ in the relocations. Declare dest_addr and sym_sec to help.
+
+2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Workaround GCC PR middle-end/4210.
+ * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
+ and val[3].
+
+2010-05-27 Tristan Gingold <gingold@adacore.com>
+
+ * vms-misc.c: Define __NEW_STARLET. Remove trailing spaces.
+ (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
+ (vms_time_to_time_t): Use them instead of local const.
+ (vms_time_t_to_vms_time): New function.
+ (vms_get_time): Likewise.
+ (vms_raw_get_time): Likewise.
+ * vms.h (vms_time_t_to_vms_time): New declaration.
+ (vms_get_time): Likewise.
+ (vms_raw_get_time): Likewise.
+
2010-05-26 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c: Update comments.
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index 4d1b384..888a801 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -2672,6 +2672,9 @@ elf_xtensa_relocate_section (bfd *output_bfd,
if (info->relocatable)
{
+ bfd_vma dest_addr;
+ asection * sym_sec = get_elf_r_symndx_section (input_bfd, r_symndx);
+
/* This is a relocatable link.
1) If the reloc is against a section symbol, adjust
according to the output section.
@@ -2688,6 +2691,9 @@ elf_xtensa_relocate_section (bfd *output_bfd,
return FALSE;
}
+ dest_addr = sym_sec->output_section->vma + sym_sec->output_offset
+ + get_elf_r_symndx_offset (input_bfd, r_symndx) + rel->r_addend;
+
if (r_type == R_XTENSA_ASM_SIMPLIFY)
{
error_message = NULL;
@@ -2724,25 +2730,41 @@ elf_xtensa_relocate_section (bfd *output_bfd,
to work around problems with DWARF in relocatable links
with some previous version of BFD. Now we can't easily get
rid of the hack without breaking backward compatibility.... */
- if (rel->r_addend)
+ r = bfd_reloc_ok;
+ howto = &elf_howto_table[r_type];
+ if (howto->partial_inplace && rel->r_addend)
+ {
+ r = elf_xtensa_do_reloc (howto, input_bfd, input_section,
+ rel->r_addend, contents,
+ rel->r_offset, FALSE,
+ &error_message);
+ rel->r_addend = 0;
+ }
+ else
{
- howto = &elf_howto_table[r_type];
- if (howto->partial_inplace)
+ /* Put the correct bits in the target instruction, even
+ though the relocation will still be present in the output
+ file. This makes disassembly clearer, as well as
+ allowing loadable kernel modules to work without needing
+ relocations on anything other than calls and l32r's. */
+
+ /* If it is not in the same section, there is nothing we can do. */
+ if (r_type >= R_XTENSA_SLOT0_OP && r_type <= R_XTENSA_SLOT14_OP &&
+ sym_sec->output_section == input_section->output_section)
{
r = elf_xtensa_do_reloc (howto, input_bfd, input_section,
- rel->r_addend, contents,
+ dest_addr, contents,
rel->r_offset, FALSE,
&error_message);
- if (r != bfd_reloc_ok)
- {
- if (!((*info->callbacks->reloc_dangerous)
- (info, error_message, input_bfd, input_section,
- rel->r_offset)))
- return FALSE;
- }
- rel->r_addend = 0;
}
}
+ if (r != bfd_reloc_ok)
+ {
+ if (!((*info->callbacks->reloc_dangerous)
+ (info, error_message, input_bfd, input_section,
+ rel->r_offset)))
+ return FALSE;
+ }
/* Done with work for relocatable link; continue with next reloc. */
continue;
@@ -8848,6 +8870,9 @@ relax_section (bfd *abfd, asection *sec, struct bfd_link_info *link_info)
internal_relocs = retrieve_internal_relocs (abfd, sec,
link_info->keep_memory);
+ if (!internal_relocs && !relax_info->action_list.head)
+ return TRUE;
+
contents = retrieve_contents (abfd, sec, link_info->keep_memory);
if (contents == NULL && sec_size != 0)
{
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index e12bbb4..1a3c39e 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -2242,12 +2242,12 @@ bfd_boolean bfd_generic_merge_sections
(bfd *, struct bfd_link_info *);
bfd_byte *bfd_generic_get_relocated_section_contents
- (bfd *abfd,
- struct bfd_link_info *link_info,
- struct bfd_link_order *link_order,
- bfd_byte *data,
- bfd_boolean relocatable,
- asymbol **symbols);
+ (bfd *,
+ struct bfd_link_info *,
+ struct bfd_link_order *,
+ bfd_byte *,
+ bfd_boolean,
+ asymbol **);
/* Extracted from archures.c. */
extern const bfd_arch_info_type bfd_default_arch_struct;
diff --git a/bfd/version.h b/bfd/version.h
index 2199dd0..3d27e87 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100526
+#define BFD_VERSION_DATE 20100528
#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/bfd/vms-misc.c b/bfd/vms-misc.c
index be6d509..49b8274 100644
--- a/bfd/vms-misc.c
+++ b/bfd/vms-misc.c
@@ -33,11 +33,10 @@
#include "safe-ctype.h"
#ifdef VMS
-#if defined(__GNUC__) && !defined(globalref)
-#define globalref extern
-#endif
+#define __NEW_STARLET
#include <rms.h>
#include <unixlib.h>
+#include <gen64def.h>
#include <starlet.h>
#define RME$C_SETRFM 0x00000001
#include <unistd.h>
@@ -497,19 +496,19 @@ vms_get_module_name (const char *filename, bfd_boolean upcase)
fout++;
else
fout = filename;
-
+
/* Strip UNIX path. */
fptr = strrchr (fout, '/');
if (fptr != NULL)
fout = fptr + 1;
-
+
fname = strdup (fout);
/* Strip suffix. */
fptr = strrchr (fname, '.');
if (fptr != 0)
*fptr = 0;
-
+
/* Convert to upper case and truncate at 31 characters.
(VMS object file format restricts module name length to 31). */
fptr = fname;
@@ -526,36 +525,101 @@ vms_get_module_name (const char *filename, bfd_boolean upcase)
return fname;
}
-/* Convert a raw VMS time to a unix time. */
+/* Compared to usual UNIX time_t, VMS time has less limits:
+ - 64 bit (63 bits in fact as the MSB must be 0)
+ - 100ns granularity
+ - epoch is Nov 17, 1858.
+ Here has the constants and the routines used to convert VMS from/to UNIX time.
+ The conversion routines don't assume 64 bits arithmetic. */
+
+/* UNIX time granularity for VMS, ie 1s / 100ns. */
+#define VMS_TIME_FACTOR 10000000
+
+/* Number of seconds since VMS epoch of the UNIX epoch. */
+#define VMS_TIME_OFFSET 3506716800U
+
+/* Convert a VMS time to a unix time. */
time_t
vms_time_to_time_t (unsigned int hi, unsigned int lo)
{
- const unsigned int off = 3506716800U;
- const unsigned int factor = 10000000;
unsigned int tmp;
unsigned int rlo;
int i;
/* First convert to seconds. */
- tmp = hi % factor;
- hi = hi / factor;
+ tmp = hi % VMS_TIME_FACTOR;
+ hi = hi / VMS_TIME_FACTOR;
rlo = 0;
for (i = 0; i < 4; i++)
{
tmp = (tmp << 8) | (lo >> 24);
lo <<= 8;
- rlo = (rlo << 8) | (tmp / factor);
- tmp %= factor;
+ rlo = (rlo << 8) | (tmp / VMS_TIME_FACTOR);
+ tmp %= VMS_TIME_FACTOR;
}
lo = rlo;
/* Return 0 in case of overflow. */
- if (lo > off && hi > 1)
+ if (lo > VMS_TIME_OFFSET && hi > 1)
+ return 0;
+
+ /* Return 0 in case of underflow. */
+ if (lo < VMS_TIME_OFFSET)
return 0;
- return lo - off;
+ return lo - VMS_TIME_OFFSET;
+}
+
+/* Convert a time_t to a VMS time. */
+
+void
+vms_time_t_to_vms_time (time_t ut, unsigned int *hi, unsigned int *lo)
+{
+ unsigned short val[4];
+ unsigned short tmp[4];
+ unsigned int carry;
+ int i;
+
+ /* Put into val. */
+ val[0] = ut & 0xffff;
+ val[1] = (ut >> 16) & 0xffff;
+ val[2] = sizeof (ut) > 4 ? (ut >> 32) & 0xffff : 0;
+ val[3] = sizeof (ut) > 4 ? (ut >> 48) & 0xffff : 0;
+
+ /* Add offset. */
+ tmp[0] = VMS_TIME_OFFSET & 0xffff;
+ tmp[1] = VMS_TIME_OFFSET >> 16;
+ tmp[2] = 0;
+ tmp[3] = 0;
+ carry = 0;
+ for (i = 0; i < 4; i++)
+ {
+ carry += tmp[i] + val[i];
+ val[i] = carry & 0xffff;
+ carry = carry >> 16;
+ }
+
+ /* Multiply by factor, well first by 10000 and then by 1000. */
+ carry = 0;
+ for (i = 0; i < 4; i++)
+ {
+ carry += val[i] * 10000;
+ val[i] = carry & 0xffff;
+ carry = carry >> 16;
+ }
+ carry = 0;
+ for (i = 0; i < 4; i++)
+ {
+ carry += val[i] * 1000;
+ val[i] = carry & 0xffff;
+ carry = carry >> 16;
+ }
+
+ /* Write the result. */
+ *lo = val[0] | (val[1] << 16);
+ *hi = val[2] | (val[3] << 16);
}
/* Convert a raw (stored in a buffer) VMS time to a unix time. */
@@ -568,3 +632,32 @@ vms_rawtime_to_time_t (unsigned char *buf)
return vms_time_to_time_t (hi, lo);
}
+
+void
+vms_get_time (unsigned int *hi, unsigned int *lo)
+{
+#ifdef VMS
+ struct _generic_64 t;
+
+ sys$gettim (&t);
+ *lo = t.gen64$q_quadword;
+ *hi = t.gen64$q_quadword >> 32;
+#else
+ time_t t;
+
+ time (&t);
+ vms_time_t_to_vms_time (t, hi, lo);
+#endif
+}
+
+/* Get the current time into a raw buffer BUF. */
+
+void
+vms_raw_get_time (unsigned char *buf)
+{
+ unsigned int hi, lo;
+
+ vms_get_time (&hi, &lo);
+ bfd_putl32 (lo, buf + 0);
+ bfd_putl32 (hi, buf + 4);
+}
diff --git a/bfd/vms.h b/bfd/vms.h
index 762c8b5..c95487d 100644
--- a/bfd/vms.h
+++ b/bfd/vms.h
@@ -115,6 +115,9 @@ extern char * vms_get_module_name (const char *, bfd_boolean);
extern unsigned char *get_vms_time_string (void);
extern time_t vms_time_to_time_t (unsigned int hi, unsigned int lo);
extern time_t vms_rawtime_to_time_t (unsigned char *);
+extern void vms_time_t_to_vms_time (time_t ut, unsigned int *hi, unsigned int *lo);
+extern void vms_get_time (unsigned int *hi, unsigned int *lo);
+extern void vms_raw_get_time (unsigned char *buf);
extern char * _bfd_vms_save_sized_string (unsigned char *, int);
extern char * _bfd_vms_save_counted_string (unsigned char *);
diff --git a/bfd/xtensa-modules.c b/bfd/xtensa-modules.c
index 3b2ddea..3a79fcd 100644
--- a/bfd/xtensa-modules.c
+++ b/bfd/xtensa-modules.c
@@ -1,11 +1,11 @@
/* Xtensa configuration-specific ISA information.
- Copyright 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
+ Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 3 of the
+ published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
@@ -29,6 +29,13 @@ static xtensa_sysreg_internal sysregs[] = {
{ "LBEG", 0, 0 },
{ "LEND", 1, 0 },
{ "LCOUNT", 2, 0 },
+ { "BR", 4, 0 },
+ { "ACCLO", 16, 0 },
+ { "ACCHI", 17, 0 },
+ { "M0", 32, 0 },
+ { "M1", 33, 0 },
+ { "M2", 34, 0 },
+ { "M3", 35, 0 },
{ "PTEVADDR", 83, 0 },
{ "MMID", 89, 0 },
{ "DDR", 104, 0 },
@@ -73,6 +80,8 @@ static xtensa_sysreg_internal sysregs[] = {
{ "PS", 230, 0 },
{ "MISC0", 244, 0 },
{ "MISC1", 245, 0 },
+ { "MISC2", 246, 0 },
+ { "MISC3", 247, 0 },
{ "INTENABLE", 228, 0 },
{ "DBREAKA0", 144, 0 },
{ "DBREAKC0", 160, 0 },
@@ -88,12 +97,14 @@ static xtensa_sysreg_internal sysregs[] = {
{ "DTLBCFG", 92, 0 },
{ "CPENABLE", 224, 0 },
{ "SCOMPARE1", 12, 0 },
- { "THREADPTR", 231, 1 }
+ { "THREADPTR", 231, 1 },
+ { "FCR", 232, 1 },
+ { "FSR", 233, 1 }
};
-#define NUM_SYSREGS 63
-#define MAX_SPECIAL_REG 245
-#define MAX_USER_REG 231
+#define NUM_SYSREGS 74
+#define MAX_SPECIAL_REG 247
+#define MAX_USER_REG 233
\f
/* Processor states. */
@@ -103,7 +114,7 @@ static xtensa_state_internal states[] = {
{ "PC", 32, 0 },
{ "ICOUNT", 32, 0 },
{ "DDR", 32, 0 },
- { "INTERRUPT", 22, 0 },
+ { "INTERRUPT", 32, 0 },
{ "CCOUNT", 32, 0 },
{ "XTSYNC", 1, 0 },
{ "VECBASE", 22, 0 },
@@ -135,8 +146,8 @@ static xtensa_state_internal states[] = {
{ "PSEXCM", 1, 0 },
{ "DEPC", 32, 0 },
{ "EXCVADDR", 32, 0 },
- { "WindowBase", 3, 0 },
- { "WindowStart", 8, 0 },
+ { "WindowBase", 4, 0 },
+ { "WindowStart", 16, 0 },
{ "PSCALLINC", 2, 0 },
{ "PSOWB", 4, 0 },
{ "LBEG", 32, 0 },
@@ -147,8 +158,11 @@ static xtensa_state_internal states[] = {
{ "LITBEN", 1, 0 },
{ "MISC0", 32, 0 },
{ "MISC1", 32, 0 },
+ { "MISC2", 32, 0 },
+ { "MISC3", 32, 0 },
+ { "ACC", 40, 0 },
{ "InOCDMode", 1, 0 },
- { "INTENABLE", 22, 0 },
+ { "INTENABLE", 32, 0 },
{ "DBREAKA0", 32, 0 },
{ "DBREAKC0", 8, 0 },
{ "DBREAKA1", 32, 0 },
@@ -168,85 +182,119 @@ static xtensa_state_internal states[] = {
{ "INSTPGSZID4", 2, 0 },
{ "DATAPGSZID4", 2, 0 },
{ "PTBASE", 10, 0 },
- { "CPENABLE", 8, 0 },
- { "SCOMPARE1", 32, 0 }
-};
-
-#define NUM_STATES 71
-
-enum xtensa_state_id {
- STATE_LCOUNT,
- STATE_PC,
- STATE_ICOUNT,
- STATE_DDR,
- STATE_INTERRUPT,
- STATE_CCOUNT,
- STATE_XTSYNC,
- STATE_VECBASE,
- STATE_EPC1,
- STATE_EPC2,
- STATE_EPC3,
- STATE_EPC4,
- STATE_EPC5,
- STATE_EPC6,
- STATE_EPC7,
- STATE_EXCSAVE1,
- STATE_EXCSAVE2,
- STATE_EXCSAVE3,
- STATE_EXCSAVE4,
- STATE_EXCSAVE5,
- STATE_EXCSAVE6,
- STATE_EXCSAVE7,
- STATE_EPS2,
- STATE_EPS3,
- STATE_EPS4,
- STATE_EPS5,
- STATE_EPS6,
- STATE_EPS7,
- STATE_EXCCAUSE,
- STATE_PSINTLEVEL,
- STATE_PSUM,
- STATE_PSWOE,
- STATE_PSRING,
- STATE_PSEXCM,
- STATE_DEPC,
- STATE_EXCVADDR,
- STATE_WindowBase,
- STATE_WindowStart,
- STATE_PSCALLINC,
- STATE_PSOWB,
- STATE_LBEG,
- STATE_LEND,
- STATE_SAR,
- STATE_THREADPTR,
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-26 18:36 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-05-26 18:36 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 0370cf7d63f2b81f60909b10e2229e37e2c24d6f (commit)
via 66ec62955c0fdb9ad9e1fd040afbe291f148e680 (commit)
via 63af4e0d3f9346c2ed37441e061cf359ba547107 (commit)
via e9280b9c3bbb219d0e891fd98af7d051518de64c (commit)
via 1c31711e495e1216ba4401d04dda039f1feef2c0 (commit)
via e3cb39c86410e0a71a831d74e8306169d621a531 (commit)
via e6da849392e3f2052ccfb110760bf12a3935ead3 (commit)
via df91c7baabb0e5116613ff6cf5f374cf82495c60 (commit)
via 115c953144f0d5e4ec13ebd9691352fdb099b6d4 (commit)
via 0ee71699605d475877752913e2661059f1a531df (commit)
via ca25a009eb341823dc3d8e59fdcaeb187730f0eb (commit)
via de5f467c2fcb320e9d03a25a9bd950d86ea97161 (commit)
via f3d189651cb668ff2eb20c03c58c7a6fe3ed5f88 (commit)
via 21b7661801cd268665cf01c5bc971cd400d287ce (commit)
via 5dee8918b852e4ffd881b4667249df686bc9c090 (commit)
via fdc507d8cb9b9e22a69b459f6ea06db71882c9cb (commit)
via cec79e323e66fc46af12924e4f1ddd102b7bdcc5 (commit)
via 620f69755d8b0c63a15f2bc442033b2e9be22706 (commit)
via e23ff3166d6a1ade36a9908c8c705d28a22352b7 (commit)
via 2aa5f75e7ec7feb66669afa993c5fb1989a1388a (commit)
via 8638153773c02a3447781120916cee50a5584c4e (commit)
via 20fa4e0504065e6038ac46cb48142487b3a0aba3 (commit)
via f5ad3d0111865cd75e6823b4669327a463998bce (commit)
via 50ada197c4f84c5557bcf0dafaf26f919d5a0949 (commit)
via 0241c639233277cf35b715ca2cb97291f08244fb (commit)
via cd47f3989e28e6bb6c4cba6a768ee3b8fd791986 (commit)
via f46cd3493b8004b1fa376d4b9d0fe5598dcf3e9e (commit)
via 18c0fec3bb82d05f1273a619f4eebb89439342e0 (commit)
via 99479a77a4c14b429b4fdea118c1e4398e2e306b (commit)
via 8437a8d31f0997abe93bb5a4ef8577d26ce9d1bb (commit)
via fdffb78667fe6b836bf30e19858f1eb274df8734 (commit)
via 15b87af5635211a4458d1c07d3042612b8ce95fb (commit)
via 6667c0e6260b7f072bcfc88b012cf68fc1b75332 (commit)
via 115adbcd3e0f54cff98fab1509d8694edbec0c11 (commit)
via 321d379358af195489caf4aca50decbe7b0468f9 (commit)
via 8b5f30880cbe4a3be0a61148554ed2b5f1f839b2 (commit)
via dd30ab002ff4906ebefa49a488144634cf1ce54c (commit)
via 46fae6ac006c1be3d0f8916fd4f61d2106d3ed26 (commit)
via ee779f4f30dec4b5d37eea238efcad582f7ec617 (commit)
via e5bc3cd416a16fa5ee24f4a7c7f91a58f22fa4ba (commit)
via a27b4b7c4ce00f22b36603bf7d0a890366416753 (commit)
via eb650427dda6e5ca5591cdd463f52f29950b0671 (commit)
via 570d5d01de35effada277a69552c0903a4928241 (commit)
via 7d7d1f08a192eaaf8ae97f38fe705ef24d3fa3b7 (commit)
via 4fee1927cd892bc9b32dfefdb8c533158dc6bd60 (commit)
via 3a255ab808a371341745748fbcdbbe095ec32cac (commit)
via 94487fcb0f27bdfc9104e5e3a51f46299aa227a6 (commit)
via 7dea5a777ef81fc44912b81fec41ad110a630ba9 (commit)
via 62c1a38b5bf1b8c947202527f6bf2f054b4337d9 (commit)
via 7c9ac51e3e7a422efcfa4c6bd8a1ebd1a5105a22 (commit)
via a229f21e7ead281894afcbbbd49cb708c5102fdf (commit)
via d3e107c55e96ebe7b4dd1ba9347c8d4d8bfc72cf (commit)
via 86124efc2a89b591e08bd485ca0e244f2c922292 (commit)
via c9460a9e4635609a449f101b7f3407063eac9c61 (commit)
via 4df6885940fb5fed2a29301ceec6632e88dd432e (commit)
via 7a12ff37ac26f0d2d79339c495cd77f69dcc3ce1 (commit)
via e3c8bbdbc08057d282b4adc3f743b3d79ae179b5 (commit)
via 2585101b4752498393b9f2be48d4bf8c5be9dcc3 (commit)
via 81712563f1a812f6e90f3a4d62e81836936b4c44 (commit)
via dbe21265426d55a1acce98031e1fb52460066817 (commit)
via 30f1c954371f3c4ffceef3c81a500224ba9b1d0a (commit)
via 35757a4fa3a8c29caf7ed7a1941e9babd36ef870 (commit)
via a79fc14992d14899a0bb98ba1a575b8325d670e0 (commit)
via 5bcd90e16d5c52307d57e9907ab53bf078f831ae (commit)
via 76a4ebb4508ba5a3789f4d35c2591fcb5e953ce8 (commit)
via d81cee47756bba52e6a65597ae83b00ad7b8322c (commit)
via b4cf132e03efeb6f457022fa5b6cda483ec786f7 (commit)
via cc7603974ea12c8fd8b3a1d70424750171130a56 (commit)
via 67bbae0afa19b7312f939ef50bf5f047cc2c246c (commit)
via 57a9d6d16834d7582959e3d2f7c0866e69f3b061 (commit)
via d86bc92a1b04c3931899fdb0ce443fa968e98987 (commit)
via a865ec36939d96835f628b69f321c446bfe25a4e (commit)
via 0e6791f498b5a96b97a614531ec8249811b1db3c (commit)
via 170e47f96ba50ff4490f2bad2b8cf4f4e43c23db (commit)
via d9bf14323312dd125063f69cf91853a4739b2621 (commit)
via d0b4c6f8542b5116b0e5da7f49ea48049151fb18 (commit)
via 2e2f5685bdf84c6b85227eb8b6b73e9456afdf7f (commit)
from 6e71dce52b9c702afd2debee7e51846bfd703ffc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 0370cf7d63f2b81f60909b10e2229e37e2c24d6f
Merge: 6e71dce52b9c702afd2debee7e51846bfd703ffc 66ec62955c0fdb9ad9e1fd040afbe291f148e680
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Wed May 26 14:24:32 2010 -0400
Merge remote branch 'gdb/master'
commit 66ec62955c0fdb9ad9e1fd040afbe291f148e680
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed May 26 16:08:22 2010 +0000
Add SIB.
2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (sib): New.
(get_sib): Likewise.
(print_insn): Call get_sib.
OP_E_memory): Use sib.
commit 63af4e0d3f9346c2ed37441e061cf359ba547107
Author: Tom Tromey <tromey@redhat.com>
Date: Wed May 26 15:21:09 2010 +0000
* dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
(struct dwarf2_loclist_baton) <data>: Likewise.
* dwarf2loc.c (find_location_expression): Constify return type.
(dwarf2_evaluate_loc_desc): Make 'data' argument const.
(dwarf2_loc_desc_needs_frame): Likewise.
(loclist_read_variable): Constify.
(loclist_describe_location): Likewise.
(loclist_tracepoint_var_ref): Likewise.
commit e9280b9c3bbb219d0e891fd98af7d051518de64c
Author: Catherine Moore <clm@redhat.com>
Date: Wed May 26 12:59:56 2010 +0000
gas/
* config/tc-mips.c (is_opcode_valid): Remove expansionp.
(macro_build): Change invocation of is_opcode_valid.
(mips_ip): Likewise.
gas/testsuite/
* gas/mips/mips-no-jalx.l: Delete.
* gas/mips/mips-no-jalx.s: Delete.
* gas/mips/mips-jalx-2.d: New.
* gas/mips/mips-jalx-2.s: New.
* gas/mips/mips.exp (mips-jalx-2): Run new test.
(mips-no-jalx): Remove deleted test.
include/
* opcode/mips.h (INSN_MIPS16): Remove.
opcodes/
* mips-dis.c (mips_arch): Remove INSN_MIPS16.
* mips-opc.c (I16): Remove.
(mips_builtin_op): Reclassify jalx.
commit 1c31711e495e1216ba4401d04dda039f1feef2c0
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed May 26 08:55:21 2010 +0000
2010-05-26 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c: Update comments.
(alpha_vms_write_exec): Set lnkflags. Write the GST.
(alpha_vms_link_output_symbol): New function.
(alpha_vms_bfd_final_link): Generate the VMS symbol table.
Set dst_section private field.
(alpha_vms_bfd_final_link): Remove code that set dst_section.
commit e3cb39c86410e0a71a831d74e8306169d621a531
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed May 26 07:37:34 2010 +0000
2010-05-25 Tristan Gingold <gingold@adacore.com>
* bfdio.c: Declare and define _bfd_memory_iovec.
(bfd_bread): Move code for BFD_IN_MEMORY...
(bfd_bwrite): ... Ditto ...
(bfd_tell): ... Ditto ...
(bfd_flush): ... Ditto ...
(bfd_stat): ... Ditto ...
(bfd_seek): ... Ditto ...
(bfd_get_size): ... Ditto ...
(bfd_mmap): ... Ditto ...
(memory_bread): ... to these new functions.
(memory_bwrite): Ditto.
(memory_btell): Ditto.
(memory_bseek): Ditto.
(memory_bflush): Ditto.
(memory_bstat): Ditto.
(memory_bmmap): Ditto.
(memory_bclose): New function.
* peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
* xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
* opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
(bfd_make_writable): Use _bfd_memory_iovec.
* elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
_bfd_memory_iovec.
(alpha_ecoff_openr_next_archived_file): Use proxy_origin
instead of origin.
* libbfd.h: Regenerate.
commit e6da849392e3f2052ccfb110760bf12a3935ead3
Author: Dave Korn <dave.korn@artimi.com>
Date: Wed May 26 05:16:30 2010 +0000
Merge from gcc:
2010-05-18 Steven Bosscher <steven AT gcc.gnu.org>
* configure.ac (--enable-lto): All *-apple-darwin* now support LTO.
* configure: Regenerate.
2010-05-07 Steven Bosscher <steven AT gcc.gnu.org>
* configure.ac (--enable-lto): Add x86_64-apple-darwin* as
a platform that supports LTO.
* configure: Regenerate.
2010-04-27 Dave Korn <dave.korn.cygwin AT gmail.com>
PR lto/42776
* configure.ac (--enable-lto): Refactor handling so libelf tests
are only performed inside then-clause of ACX_ELF_TARGET_IFELSE,
and allow LTO to be explicitly enabled on non-ELF platforms that
are known to support it inside else-clause.
* configure: Regenerate.
commit df91c7baabb0e5116613ff6cf5f374cf82495c60
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed May 26 00:00:33 2010 +0000
*** empty log message ***
commit 115c953144f0d5e4ec13ebd9691352fdb099b6d4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed May 26 00:00:05 2010 +0000
daily update
commit 0ee71699605d475877752913e2661059f1a531df
Author: Tom Tromey <tromey@redhat.com>
Date: Tue May 25 22:23:07 2010 +0000
* gdb.base/macscp.exp: Add missing space after setup_kfail.
commit ca25a009eb341823dc3d8e59fdcaeb187730f0eb
Author: Tom Tromey <tromey@redhat.com>
Date: Tue May 25 21:01:59 2010 +0000
* gdb.arch/i386-prologue.exp (skip_breakpoint): Fix setup_kfail
argument order.
* gdb.base/macscp.exp: Fix setup_kfail argument order.
* gdb.base/long_long.exp (gdb_test_xxx): Fix setup_kfail argument
order.
* gdb.base/sigbpt.exp (stepi_out): Fix setup_kfail argument
order.
* gdb.base/call-sc.exp (setup_kfails): Remove.
(setup_compiler_kfails): Remove.
* gdb.base/callfuncs.exp (do_function_calls): Fix setup_kfail
argument order.
* gdb.base/siginfo.exp: Fix setup_kfail argument order.
* gdb.base/sigstep.exp (advance): Fix setup_kfail argument order.
(advancei): Fix setup_kfail argument order.
* gdb.base/radix.exp: Fix setup_kfail argument order.
* gdb.base/solib-weak.exp (do_test): Fix setup_kfail argument
order.
* gdb.base/structs.exp (setup_kfails): Remove.
(setup_compiler_kfails): Fix setup_kfail argument order.
* gdb.base/sigaltstack.exp (finish_test): Fix setup_kfail argument
order.
* gdb.java/jmain.exp: Fix setup_kfail argument order.
* gdb.pascal/types.exp (test_string_literal_types_accepted): Fix
setup_kfail argument order.
* gdb.cp/overload.exp: Fix setup_kfail argument order.
commit de5f467c2fcb320e9d03a25a9bd950d86ea97161
Author: Tom Tromey <tromey@redhat.com>
Date: Tue May 25 19:54:46 2010 +0000
* gdb.dwarf2/pieces.exp (pieces_test_f3): Mention PR 11636.
commit f3d189651cb668ff2eb20c03c58c7a6fe3ed5f88
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue May 25 19:34:04 2010 +0000
2010-05-25 Michael Snyder <msnyder@vmware.com>
* gdb.base/maint.exp: Replace send_gdb with gdb_test.
* gdb.base/miscexprs.exp: Replace send_gdb with gdb_test.
* gdb.base/nodebug.exp: Replace send_gdb with gdb_test.
* gdb.base/pointers.exp: Replace send_gdb with gdb_test.
* gdb.base/ptype.exp: Replace send_gdb with gdb_test.
commit 21b7661801cd268665cf01c5bc971cd400d287ce
Author: Tom Tromey <tromey@redhat.com>
Date: Tue May 25 16:41:42 2010 +0000
* dwarf2loc.c (dwarf_expr_frame_base): Constify.
(dwarf_expr_frame_base_1): Likewise.
(read_pieced_value): Update.
(needs_frame_frame_base): Constify.
(dwarf2_tracepoint_var_loc): Likewise.
(dwarf2_tracepoint_var_access): Likewise.
(locexpr_describe_location_piece): Likewise.
(locexpr_describe_location_1): Likewise.
* dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
Constify.
(data): Now const.
(struct dwarf_expr_piece) <v.literal.data>: Likewise.
(dwarf_expr_eval, read_uleb128, read_sleb128)
(dwarf2_read_address): Update.
* dwarf2expr.c (dwarf_expr_eval): Constify.
(read_uleb128): Likewise.
(read_sleb128): Likewise.
(dwarf2_read_address): Likewise.
(require_composition): Likewise.
(execute_stack_op): Likewise.
* dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
"const gdb_byte *".
* dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
Now const.
(no_get_frame_base): Constify.
(execute_stack_op): Likewise.
(execute_cfa_program): Likewise.
(read_encoded_value): Likewise.
commit 5dee8918b852e4ffd881b4667249df686bc9c090
Author: Doug Evans <dje@google.com>
Date: Tue May 25 16:00:07 2010 +0000
* ser-pipe.c (pipe_open): Ignore SIGINTs in child.
commit fdc507d8cb9b9e22a69b459f6ea06db71882c9cb
Author: Doug Evans <dje@google.com>
Date: Tue May 25 15:48:43 2010 +0000
* event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
* event-loop.c: ... here.
* tui/tui-io.c (tui_readline_output): Rename parameter `code' to
`error' for clarity.
(tui_getc): Pass correct value for `error' parameter to
tui_readline_output.
commit cec79e323e66fc46af12924e4f1ddd102b7bdcc5
Author: Doug Evans <dje@google.com>
Date: Tue May 25 15:27:15 2010 +0000
Add python gdb.GdbError and gdb.string_to_argv.
* NEWS: Document them.
* python/py-cmd.c (cmdpy_function): Don't print a traceback if
the exception is gdb.GdbError. Print a second traceback if there's
an error computing the error message.
(gdbpy_string_to_argv): New function.
* python/py-utils.c (gdbpy_obj_to_string): New function.
(gdbpy_exception_to_string): New function.
* python/python-internal.h (gdbpy_string_to_argv): Declare.
(gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
(gdbpy_gdberror_exc): Declare.
* python/python.c (gdbpy_gdberror_exc): New global.
(_initialize_python): Initialize gdbpy_gdberror_exc and create
gdb.GdbError.
(GdbMethods): Add string_to_argv.
doc/
* gdb.texinfo (Exception Handling): Document gdb.GdbError.
(Commands In Python): Document gdb.string_to_argv.
testsuite/
* gdb.python/py-cmd.exp: Add tests for gdb.GdbError and
gdb.string_to_argv.
commit 620f69755d8b0c63a15f2bc442033b2e9be22706
Author: Nick Clifton <nickc@redhat.com>
Date: Tue May 25 14:12:35 2010 +0000
2010-05-21 Daniel Jacobowitz <dan@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
Andrew Stubbs <ams@codesourcery.com>
bfd/
* config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
* configure.in: Handle FDPIC vectors.
* elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
* elf32-sh.c (DEFAULT_STACK_SIZE): Define.
(SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of
SYMBOL_REFERENCES_LOCAL for function descriptors.
(fdpic_object_p): New.
(sh_reloc_map): Add FDPIC and movi20 relocations.
(sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
range.
(struct elf_sh_plt_info): Add got20 and short_plt. Update all
definitions.
(FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
(fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
(FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
(fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
(fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
New.
(get_plt_info): Handle FDPIC.
(MAX_SHORT_PLT): Define.
(get_plt_index, get_plt_offset): Handle short_plt.
(union gotref): New.
(struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
got_type and adjust all uses. Add GOT_FUNCDESC.
(struct sh_elf_obj_tdata): Add local_funcdesc. Rename
local_got_tls_type to local_got_type.
(sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All
users changed.
(sh_elf_local_funcdesc): Define.
(struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
and srofixup.
(sh_elf_link_hash_newfunc): Initialize new fields.
(sh_elf_link_hash_table_create): Set fdpic_p.
(sh_elf_omit_section_dynsym): New.
(create_got_section): Create .got.funcdesc, .rela.got.funcdesc
and .rofixup.
(allocate_dynrelocs): Allocate local function descriptors and space
for R_SH_FUNCDESC-related relocations, and for rofixups.
Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which
require function descriptors.
(sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
(sh_elf_modify_program_headers): New.
(sh_elf_size_dynamic_sections): Allocate function descriptors for
local symbols. Allocate .got.funcdesc contents. Allocate rofixups.
Handle local GOT entries of type GOT_FUNCDESC. Create fixups for
local GOT entries. Ensure that FDPIC libraries always have a PLTGOT
entry in the .dynamic section.
(sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
(sh_elf_add_rofixup, sh_elf_osec_to_segment)
(sh_elf_osec_readonly_p, install_movi20_field): New functions.
(sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset
and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup
read-only section warnings. Handle undefined weak symbols. Generate
fixups for R_SH_DIR32 and GOT entries. Check for cross-segment
relocations and clear EF_SH_PIC. Handle 20-bit relocations.
Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
(sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
Handle 20-bit relocations.
(sh_elf_copy_indirect_symbol): Copy function descriptor reference
counts.
(sh_elf_check_relocs): Handle new relocations. Make symbols
dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC
symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups
for R_SH_DIR32.
(sh_elf_copy_private_data): Copy PT_GNU_STACK size.
(sh_elf_merge_private_data): Copy initial flags. Do not clobber
non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches.
(sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt,
FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC.
Use install_movi20_field. Rename srel to srelgot. Always generate
R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
(sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT.
Rename sgot to sgotplt. Assert that the right number of rofixups
and dynamic relocations were allocated.
(sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
(elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
(elf_backend_can_make_relative_eh_frame)
(elf_backend_can_make_lsda_relative_eh_frame)
(elf_backend_encode_eh_address): Define.
(TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
(TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
Redefine for FDPIC vector.
* reloc.c: Add SH FDPIC and movi20 relocations.
* targets.c (_bfd_target_vector): Add FDPIC vectors.
* configure, bfd-in2.h, libbfd.h: Regenerated.
binutils/
* readelf.c (get_machine_flags): Handle EF_SH_PIC and EF_SH_FDPIC.
gas/
* config/tc-sh.c (sh_fdpic): New.
(sh_check_fixup): Handle relocations on movi20.
(parse_exp): Do not reject PIC operators here.
(build_Mytes): Check for unhandled PIC operators here. Use
sh_check_fixup for movi20.
(enum options): Add OPTION_FDPIC.
(md_longopts, md_parse_option, md_show_usage): Add --fdpic.
(sh_fix_adjustable, md_apply_fix): Handle FDPIC and movi20 relocations.
(sh_elf_final_processing): Handle --fdpic.
(sh_uclinux_target_format): New.
(sh_parse_name): Handle FDPIC relocation operators.
* config/tc-sh.h (TARGET_FORMAT): Define specially for TE_UCLINUX.
(sh_uclinux_target_format): Declare for TE_UCLINUX.
* configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): Set
em=uclinux.
* doc/c-sh.texi (SH Options): Document --fdpic.
gas/testsuite/
* gas/sh/basic.exp: Run new tests. Handle uClinux like Linux.
* gas/sh/fdpic.d: New file.
* gas/sh/fdpic.s: New file.
* gas/sh/reg-prefix.d: Force big-endian.
* gas/sh/sh2a-pic.d: New file.
* gas/sh/sh2a-pic.s: New file.
* lib/gas-defs.exp (is_elf_format): Include sh*-*-uclinux*.
include/elf/
* sh.h (EF_SH_PIC, EF_SH_FDPIC): Define.
(R_SH_FIRST_INVALID_RELOC_6, R_SH_LAST_INVALID_RELOC_6): New. Adjust
other invalid ranges.
(R_SH_GOT20, R_SH_GOTOFF20, R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20)
(R_SH_GOTOFFFUNCDESC, R_SH_GOTOFFFUNCDESC20, R_SH_FUNCDESC)
(R_SH_FUNCDESC_VALUE): New.
ld/
* Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
(eshelf_fd.c, eshlelf_fd.c): New rules.
* Makefile.in: Regenerate.
* configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
emulations.
* emulparams/shelf_fd.sh: New file.
* emulparams/shlelf_fd.sh: New file.
* emulparams/shlelf_linux.sh: Update comment.
ld/testsuite/
* ld-sh/sh.exp: Handle uClinux like Linux.
* lib/ld-lib.exp (is_elf_format): Include sh*-*-uclinux*.
* ld-sh/fdpic-funcdesc-shared.d: New file.
* ld-sh/fdpic-funcdesc-shared.s: New file.
* ld-sh/fdpic-funcdesc-static.d: New file.
* ld-sh/fdpic-funcdesc-static.s: New file.
* ld-sh/fdpic-gotfuncdesc-shared.d: New file.
* ld-sh/fdpic-gotfuncdesc-shared.s: New file.
* ld-sh/fdpic-gotfuncdesc-static.d: New file.
* ld-sh/fdpic-gotfuncdesc-static.s: New file.
* ld-sh/fdpic-gotfuncdesci20-shared.d: New file.
* ld-sh/fdpic-gotfuncdesci20-shared.s: New file.
* ld-sh/fdpic-gotfuncdesci20-static.d: New file.
* ld-sh/fdpic-gotfuncdesci20-static.s: New file.
* ld-sh/fdpic-goti20-shared.d: New file.
* ld-sh/fdpic-goti20-shared.s: New file.
* ld-sh/fdpic-goti20-static.d: New file.
* ld-sh/fdpic-goti20-static.s: New file.
* ld-sh/fdpic-gotofffuncdesc-shared.d: New file.
* ld-sh/fdpic-gotofffuncdesc-shared.s: New file.
* ld-sh/fdpic-gotofffuncdesc-static.d: New file.
* ld-sh/fdpic-gotofffuncdesc-static.s: New file.
* ld-sh/fdpic-gotofffuncdesci20-shared.d: New file.
* ld-sh/fdpic-gotofffuncdesci20-shared.s: New file.
* ld-sh/fdpic-gotofffuncdesci20-static.d: New file.
* ld-sh/fdpic-gotofffuncdesci20-static.s: New file.
* ld-sh/fdpic-gotoffi20-shared.d: New file.
* ld-sh/fdpic-gotoffi20-shared.s: New file.
* ld-sh/fdpic-gotoffi20-static.d: New file.
* ld-sh/fdpic-gotoffi20-static.s: New file.
* ld-sh/fdpic-plt-be.d: New file.
* ld-sh/fdpic-plt-le.d: New file.
* ld-sh/fdpic-plt.s: New file.
* ld-sh/fdpic-plti20-be.d: New file.
* ld-sh/fdpic-plti20-le.d: New file.
* ld-sh/fdpic-stack-default.d: New file.
* ld-sh/fdpic-stack-size.d: New file.
* ld-sh/fdpic-stack.s: New file.
commit e23ff3166d6a1ade36a9908c8c705d28a22352b7
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue May 25 12:41:16 2010 +0000
2010-05-25 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (struct vms_symbol_entry): Field section is
now an asection pointer. Ditto for code_section.
(_bfd_vms_slurp_egsd): Adjust for above change.
(vms_get_symbol_info): Ditto.
(alpha_vms_convert_symbol): Ditto. Remove special dwarf2 case.
Remove commented out code.
(alpha_vms_get_synthetic_symtab): Simplify thanks to the above
change.
(alpha_vms_get_sym_value): Remove struct alpha_vms_link_hash_entry
parameter. Simplify the code.
(_bfd_vms_slurp_etir): Adjust for above change.
commit 2aa5f75e7ec7feb66669afa993c5fb1989a1388a
Author: Nick Clifton <nickc@redhat.com>
Date: Tue May 25 10:14:12 2010 +0000
PR ld/11624
* archive.c (_bfd_calloc_wrapper): New function.
(_bfd_add_bfd_to_archive_cache): Use it.
* configure.in: Add alpha*-*-*vms* to list of natives.
* configure: Regenerate.
* vms-misc.c: Define globalref if necessary.
(vms_convert_to_var_unix_filename): Rename to
_bfd_vms_convert_to_var_unix_filename and export.
* vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
* vms-alpha.c (vms_close_and_cleanup): Update invocation of
vms_convert_to_var_unix_filename.
commit 8638153773c02a3447781120916cee50a5584c4e
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue May 25 07:38:15 2010 +0000
* windows-nat.c (display_selector): Call GetLastError to give better
failure explanation.
commit 20fa4e0504065e6038ac46cb48142487b3a0aba3
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue May 25 00:00:05 2010 +0000
daily update
commit f5ad3d0111865cd75e6823b4669327a463998bce
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue May 25 00:00:03 2010 +0000
*** empty log message ***
commit 50ada197c4f84c5557bcf0dafaf26f919d5a0949
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon May 24 22:54:20 2010 +0000
* config.in: Regenerate.
commit 0241c639233277cf35b715ca2cb97291f08244fb
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 24 22:06:59 2010 +0000
2010-05-24 Michael Snyder <msnyder@vmware.com>
* gdb.base/default.exp: Replace send_gdb with gdb_test.
* gdb.base/define.exp: Replace send_gdb with gdb_test.
* gdb.base/display.exp: Replace send_gdb with gdb_test.
* gdb.base/dump.exp: Replace send_gdb with gdb_test.
* gdb.base/ending-run.exp: Replace send_gdb with gdb_test.
* gdb.base/eval-skip.exp: Replace send_gdb with gdb_test.
* gdb.base/exprs.exp: Replace send_gdb with gdb_test.
* gdb.base/fileio.exp: Replace send_gdb with gdb_test.
* gdb.base/finish.exp: Replace send_gdb with gdb_test.
* gdb.base/foll-fork.exp: Replace send_gdb with gdb_test.
* gdb.base/funcargs.exp: Replace send_gdb with gdb_test.
* gdb.base/gcore-buffer-overflow.exp: Replace send_gdb with gdb_test.
* gdb.base/gcore.exp: Replace send_gdb with gdb_test.
* gdb.base/gdb1090.exp: Replace send_gdb with gdb_test.
* gdb.base/gdbvars.exp: Replace send_gdb with gdb_test.
* gdb.base/help.exp: Replace send_gdb with gdb_test.
* gdb.base/info-proc.exp: Replace send_gdb with gdb_test.
* gdb.base/jump.exp: Replace send_gdb with gdb_test.
* gdb.base/long_long.exp: Replace send_gdb with gdb_test.
commit cd47f3989e28e6bb6c4cba6a768ee3b8fd791986
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 24 22:03:57 2010 +0000
2010-05-24 Michael Snyder <msnyder@vmware.com>
* gdb.base/call-ar-st.exp: Replace send_gdb with gdb_test.
* gdb.base/callfuncs.exp: Replace send_gdb with gdb_test.
* gdb.base/call-rt-st.exp: Replace send_gdb with gdb_test.
* gdb.base/call-signal-resume.exp: Replace send_gdb with gdb_test.
* gdb.base/call-strs.exp: Replace send_gdb with gdb_test.
* gdb.base/catch-syscall.exp: Replace send_gdb with gdb_test.
* gdb.base/charset.exp: Replace send_gdb with gdb_test.
* gdb.base/checkpoint.exp: Replace send_gdb with gdb_test.
* gdb.base/commands.exp: Replace send_gdb with gdb_test.
* gdb.base/condbreak.exp: Replace send_gdb with gdb_test.
* gdb.base/cond-exprs.exp: Replace send_gdb with gdb_test.
* gdb.base/consecutive.exp: Replace send_gdb with gdb_test.
* gdb.base/constvars.exp: Replace send_gdb with gdb_test.
* gdb.base/corefile.exp: Replace send_gdb with gdb_test.
commit f46cd3493b8004b1fa376d4b9d0fe5598dcf3e9e
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon May 24 10:50:27 2010 +0000
2010-05-24 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (add_symbol_entry): New function extrated from ...
(add_symbol): ... adjusted.
commit 18c0fec3bb82d05f1273a619f4eebb89439342e0
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon May 24 10:41:51 2010 +0000
2010-05-24 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (struct vms_private_data_struct): Add section_max
field.
(_bfd_vms_slurp_egsd): Put PSC into the sections array.
(vms_new_section_hook): Do not put section in the sections
array.
commit 99479a77a4c14b429b4fdea118c1e4398e2e306b
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon May 24 10:24:35 2010 +0000
2010-05-24 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
(alpha_vms_write_exec): Add a comment.
(_bfd_vms_write_egsd): Ditto.
(alpha_vms_convert_symbol): Remove a blank line.
commit 8437a8d31f0997abe93bb5a4ef8577d26ce9d1bb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon May 24 00:00:05 2010 +0000
daily update
commit fdffb78667fe6b836bf30e19858f1eb274df8734
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon May 24 00:00:04 2010 +0000
*** empty log message ***
commit 15b87af5635211a4458d1c07d3042612b8ce95fb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun May 23 14:23:30 2010 +0000
gdb/
Code cleanup.
* target.c (push_target): Return only void. Remove the return value
comment.
* target.h (push_target): Return only void.
commit 6667c0e6260b7f072bcfc88b012cf68fc1b75332
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun May 23 09:22:56 2010 +0000
* config.h: Regenerate.
commit 115adbcd3e0f54cff98fab1509d8694edbec0c11
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun May 23 00:56:58 2010 +0000
gdb/
2010-05-23 Pedro Alves <pedro@codesourcery.com>
Update gnulib from latest git.
(250b80067c1e1d8faa0c42fb572f721975b929c5)
* gnulib/memcmp.c: Removed.
* gnulib/memchr.valgrind: New.
* gnulib/stddef.in.h: New.
* gnulib/Makefile.am: Updated.
* gnulib/memchr.c: Updated.
* gnulib/memmem.c: Updated.
* gnulib/stdint.in.h: Updated.
* gnulib/str-two-way.h: Updated.
* gnulib/string.in.h: Updated.
* gnulib/wchar.in.h: Updated.
* gnulib/extra/link-warning.h: Removed.
* gnulib/extra/c++defs.h: New.
* gnulib/extra/warn-on-use.h: New.
* gnulib/extra/arg-nonnull.h: Updated.
* gnulib/m4/extensions.m4: Updated.
* gnulib/m4/gnulib-cache.m4: Updated.
* gnulib/m4/gnulib-common.m4: Updated.
* gnulib/m4/gnulib-comp.m4: Updated.
* gnulib/m4/gnulib-tool.m4: Updated.
* gnulib/m4/include_next.m4: Updated.
* gnulib/m4/longlong.m4: Updated.
* gnulib/m4/memchr.m4: Updated.
* gnulib/m4/memmem.m4: Updated.
* gnulib/m4/stdint.m4: Updated.
* gnulib/m4/string_h.m4: Updated.
* gnulib/m4/memcmp.m4: Removed.
* gnulib/m4/onceonly_2_57.m4: Removed.
* gnulib/m4/00gnulib.m4: New.
* gnulib/m4/mmap-anon.m4: New.
* gnulib/m4/multiarch.m4: New.
* gnulib/m4/onceonly.m4: New.
* gnulib/m4/stddef_h.m4: New.
* gnulib/m4/warn-on-use.m4: New.
* gnulib/m4/wchar.m4: Removed.
* gnulib/m4/wchar_h.m4: New.
* gnulib/m4/wchar_t.m4: New.
* gnulib/m4/wint_t.m4: New.
* aclocal.m4: Regenerate.
* config.in: Likewise.
* configure: Likewise.
* gnulib/Makefile.in: Likewise.
gdb/gdbserver/
2010-05-23 Pedro Alves <pedro@codesourcery.com>
* config.h, configure: Regenerate.
commit 321d379358af195489caf4aca50decbe7b0468f9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun May 23 00:00:34 2010 +0000
*** empty log message ***
commit 8b5f30880cbe4a3be0a61148554ed2b5f1f839b2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun May 23 00:00:05 2010 +0000
daily update
commit dd30ab002ff4906ebefa49a488144634cf1ce54c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat May 22 00:00:08 2010 +0000
daily update
commit 46fae6ac006c1be3d0f8916fd4f61d2106d3ed26
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat May 22 00:00:07 2010 +0000
*** empty log message ***
commit ee779f4f30dec4b5d37eea238efcad582f7ec617
Author: Tom Tromey <tromey@redhat.com>
Date: Fri May 21 21:13:10 2010 +0000
gdb
* dwarf2loc.c (extract_bits_primitive): New function.
(extract_bits): Likewise.
(insert_bits): Likewise.
(copy_bitwise): Likewise.
(read_pieced_value): Do all operations in bits.
(write_pieced_value): Likewise.
* dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
* dwarf2expr.c (add_piece): New arguments bit_piece, offset.
Always use xrealloc to resize piece array.
(execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
<DW_OP_piece>: Update.
<DW_OP_bit_piece>: New case.
gdb/testsuite
* gdb.dwarf2/pieces.exp (pieces_test_f3): New proc.
Call it.
* gdb.dwarf2/pieces.S: Update.
* gdb.dwarf2/pieces.c (struct B): Remove initial field.
commit e5bc3cd416a16fa5ee24f4a7c7f91a58f22fa4ba
Author: Tom Tromey <tromey@redhat.com>
Date: Fri May 21 21:01:46 2010 +0000
gdb
* dwarf2loc.c (read_pieced_value): Exit loop when result is full.
<DWARF_VALUE_OPTIMIZED_OUT>: New case.
* dwarf2expr.h (enum dwarf_value_location)
<DWARF_VALUE_OPTIMIZED_OUT>: New constant.
* dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
(add_piece): Handle empty piece.
(execute_stack_op) <DW_OP_piece>: Handle
DWARF_VALUE_OPTIMIZED_OUT.
gdb/testsuite
* gdb.dwarf2/pieces.exp (pieces_test_f6): New proc.
Call it.
* gdb.dwarf2/pieces.c (struct C): New.
(f6): New function.
* gdb.dwarf2/pieces.S: Replace.
commit a27b4b7c4ce00f22b36603bf7d0a890366416753
Author: Tom Tromey <tromey@redhat.com>
Date: Fri May 21 21:00:27 2010 +0000
gdb
* eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
evaluate_subexp, not evaluate_subexp_with_coercion.
gdb/testsuite
* gdb.dwarf2/pieces.exp (pieces_test_f2): New proc.
Call it.
commit eb650427dda6e5ca5591cdd463f52f29950b0671
Author: Tom Tromey <tromey@redhat.com>
Date: Fri May 21 20:56:48 2010 +0000
gdb
* eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
evaluate_subexp, not evaluate_subexp_with_coercion.
gdb/testsuite
* gdb.dwarf2/pieces.exp (pieces_test_f2): New proc.
Call it.
commit 570d5d01de35effada277a69552c0903a4928241
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri May 21 20:45:18 2010 +0000
* dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
attribute.
commit 7d7d1f08a192eaaf8ae97f38fe705ef24d3fa3b7
Author: Tom Tromey <tromey@redhat.com>
Date: Fri May 21 20:39:50 2010 +0000
gdb
* dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
offset.
(write_pieced_value): Likewise.
gdb/testsuite
* gdb.dwarf2.pieces.exp: New file.
* gdb.dwarf2.pieces.S: New file.
* gdb.dwarf2.pieces.c: New file.
commit 4fee1927cd892bc9b32dfefdb8c533158dc6bd60
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri May 21 20:34:45 2010 +0000
* dwarf2read.c (process_die): Also allow DW_TAG_const_type
and DW_TAG_volatile_type.
(new_symbol): Likewise.
commit 3a255ab808a371341745748fbcdbbe095ec32cac
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri May 21 15:11:05 2010 +0000
2010-05-21 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
for the GST.
commit 94487fcb0f27bdfc9104e5e3a51f46299aa227a6
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri May 21 13:19:33 2010 +0000
2010-05-21 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
SEC_LOAD if isect has data.
(vms_get_symbol_info): Refine the condition for 'T' type.
commit 7dea5a777ef81fc44912b81fec41ad110a630ba9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri May 21 00:00:33 2010 +0000
*** empty log message ***
commit 62c1a38b5bf1b8c947202527f6bf2f054b4337d9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri May 21 00:00:05 2010 +0000
daily update
commit 7c9ac51e3e7a422efcfa4c6bd8a1ebd1a5105a22
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu May 20 23:10:24 2010 +0000
Fix erc32 sim build failure due to missing stdint.h.
* sis.h: Remove #include <stdint.h>.
(uint64, int64): Redefine without using stdint.h.
(UINT64_MAX): Define.
commit a229f21e7ead281894afcbbbd49cb708c5102fdf
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu May 20 19:18:57 2010 +0000
lib/gdb.exp: New gdb_test_no_output function.
This new testsuite routine allows us to test commands that are not
expected to generate any output.
2010-05-20 Pedro Alves <pedro@codesourcery.com>
Joel Brobecker <brobecker@adacore.com>
* lib/gdb.exp (gdb_test_no_output): New function.
* lib/gdb.ada/arrayidx.exp: Use gdb_test_no_output instead of gdb_test
when testing commands that should produce no output.
Tested on x86_64-linux.
commit d3e107c55e96ebe7b4dd1ba9347c8d4d8bfc72cf
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu May 20 07:41:38 2010 +0000
* p-valprint.c (pascal_val_print): Call get_array_bounds
to obtain the number of elements in an array.
commit 86124efc2a89b591e08bd485ca0e244f2c922292
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu May 20 00:00:33 2010 +0000
*** empty log message ***
commit c9460a9e4635609a449f101b7f3407063eac9c61
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu May 20 00:00:05 2010 +0000
daily update
commit 4df6885940fb5fed2a29301ceec6632e88dd432e
Author: Doug Evans <dje@google.com>
Date: Wed May 19 23:32:21 2010 +0000
* python.c (gdbpy_print_stack): Ensure output ends with a newline.
commit 7a12ff37ac26f0d2d79339c495cd77f69dcc3ce1
Author: Doug Evans <dje@google.com>
Date: Wed May 19 21:57:22 2010 +0000
* python.c (source_python_script): Add comment.
(source_python_script_for_objfile): Remove unnecessary call to
gdbpy_print_stack.
commit e3c8bbdbc08057d282b4adc3f743b3d79ae179b5
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 19 20:24:43 2010 +0000
2010-05-19 Michael Snyder <msnyder@vmware.com>
* gdb.base/whatis.exp: Replace send_gdb with gdb_test.
commit 2585101b4752498393b9f2be48d4bf8c5be9dcc3
Author: mkuvyrkov <mkuvyrkov>
Date: Wed May 19 14:13:37 2010 +0000
* linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
doesn't provide PTRACE_GET_THREAD_AREA.
commit 81712563f1a812f6e90f3a4d62e81836936b4c44
Author: mkuvyrkov <mkuvyrkov>
Date: Wed May 19 14:07:08 2010 +0000
* linux-m68k-low.c: Include <asm/ptrace.h>
(ps_get_thread_area): Implement.
commit dbe21265426d55a1acce98031e1fb52460066817
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed May 19 03:44:36 2010 +0000
* ppc-opc.c (powerpc_opcodes): Enable divdeu, devweu, divde,
divwe, divdeuo, divweuo, divdeo, divweo for A2. Add icswepx.
commit 30f1c954371f3c4ffceef3c81a500224ba9b1d0a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed May 19 00:00:34 2010 +0000
*** empty log message ***
commit 35757a4fa3a8c29caf7ed7a1941e9babd36ef870
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed May 19 00:00:06 2010 +0000
daily update
commit a79fc14992d14899a0bb98ba1a575b8325d670e0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue May 18 23:05:28 2010 +0000
gdb/
Code cleanup.
* parse.c (exp_iterate): Use operator_length wrapper function.
commit 5bcd90e16d5c52307d57e9907ab53bf078f831ae
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue May 18 19:23:34 2010 +0000
2010-05-18 Michael Snyder <msnyder@vmware.com>
* ada-lang.c: White space.
* ada-typeprint.c: White space.
* ada-valprint.c: White space.
* addrmap.c: White space.
* auxv.c: White space.
* ax-gdb.c: White space.
commit 76a4ebb4508ba5a3789f4d35c2591fcb5e953ce8
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue May 18 09:37:05 2010 +0000
2010-05-18 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_write_emh): New function.
(_bfd_vms_write_lmn): New function.
(_bfd_vms_write_eeom): Moved.
(hash_string): Likewise.
(_bfd_vms_length_hash_symbol): Likewise.
(_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
and _bfd_vms_write_lmn, and call these functions.
commit d81cee47756bba52e6a65597ae83b00ad7b8322c
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue May 18 09:23:43 2010 +0000
2010-05-18 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
Add details in the messages.
(evax_bfd_print_image): Change message.
commit b4cf132e03efeb6f457022fa5b6cda483ec786f7
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue May 18 03:31:04 2010 +0000
Implement generic SHF_EXCLUDE.
bfd/
2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11600
* elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
(elf_fake_sections): Likewise.
* elf32-i370.c (i370_elf_section_from_shdr): Don't handle
SHF_EXCLUDE here.
* elf32-ppc.c (ppc_elf_fake_sections): Likewise.
binutils/
2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11600
* readelf.c (get_elf_section_flags): Treat SHF_EXCLUDE as a
generic flag.
binutils/testsuite/
2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11600
* binutils-all/objcopy.exp: Run exclude-1a and exclude-1b for
ELF targets.
* binutils-all/exclude-1.s: New.
* binutils-all/exclude-1a.d: Likewise.
* binutils-all/exclude-1b.d: Likewise.
gas/
2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11600
* obj-elf.c (obj_elf_change_section): Handle SHF_EXCLUDE.
(obj_elf_parse_section_letters): Likewise.
(obj_elf_section_word): Likewise.
* config/tc-ppc.c (ppc_section_letter): Removed.
(ppc_section_word): Likewise.
* config/tc-ppc.h (ppc_section_letter): Likewise.
(ppc_section_word): Likewise.
(md_elf_section_letter): Likewise.
(md_elf_section_word): Likewise.
* doc/as.texinfo: Document `e' and `#exclude'.
gas/testsuite/
2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11600
* gas/elf/elf.exp: Run section8.
* gas/elf/section8.d: New.
* gas/elf/section8.s: Likewise.
include/elf/
2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11600
* common.h (SHF_EXCLUDE): New.
* i370.h (SHF_EXCLUDE): Removed.
* or32.h (SHF_EXCLUDE): Likewise.
* ppc.h (SHF_EXCLUDE): Likewise.
* sparc.h (SHF_EXCLUDE): Likewise.
ld/testsuite/
2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11600
* ld-elf/exclude3.s: New.
* ld-elf/exclude3a.d: Likewise.
* ld-elf/exclude3b.d: Likewise.
* ld-elf/exclude3c.d: Likewise.
commit cc7603974ea12c8fd8b3a1d70424750171130a56
Author: Hui Zhu <teawater@gmail.com>
Date: Tue May 18 02:47:44 2010 +0000
2010-05-18 Hui Zhu <teawater@gmail.com>
* linux-fork.c (inferior_call_waitpid_cleanup): Add check
for oldfp.
(inferior_call_waitpid): Move make_cleanup out of check.
Check the return of waitpid.
(delete_checkpoint_command): Add pptid to save fi->parent_ptid.
commit 67bbae0afa19b7312f939ef50bf5f047cc2c246c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue May 18 00:00:07 2010 +0000
daily update
commit 57a9d6d16834d7582959e3d2f7c0866e69f3b061
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue May 18 00:00:06 2010 +0000
*** empty log message ***
commit d86bc92a1b04c3931899fdb0ce443fa968e98987
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 17 22:21:43 2010 +0000
2010-05-17 Michael Snyder <msnyder@vmware.com>
* tui/tui.c: White space.
* tui/tui-data.c: White space.
* tui/tui-disasm.c: White space.
* tui/tui-file.c: White space.
* tui/tui-interp.c: White space.
* tui/tui-main.c: White space.
* tui/tui-out.c: White space.
* tui/tui-regs.c: White space.
* tui/tui-source.c: White space.
* tui/tui-stack.c: White space.
* tui/tui-win.c: White space.
* tui/tui-winsource.c: White space.
commit a865ec36939d96835f628b69f321c446bfe25a4e
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 17 21:47:00 2010 +0000
2010-05-17 Michael Snyder <msnyder@vmware.com>
* procfs.c: White space.
commit 0e6791f498b5a96b97a614531ec8249811b1db3c
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon May 17 21:32:57 2010 +0000
make parameter being watched is a non-constant.
The gdb.ada/watch_arg testcase is testing a situation where we are
leaving the scope where a parameter being watched is defined. The
testcase is a little non-sensical that we're watching a parameter
declared as an "access integer", which in non-Ada terms means
a constant pointer. Doesn't make much sense to watch a constant...
So this patch changes the code a little to use an "in out Integer",
which makes the parameter a non-constant integer, rather than a
constant access Integer. I verified that I could still reproduce
the problem with the original debugger and the modified testcase.
This was motivated by a patch that Sergio is about to submit which
will forbid the user from watching a constant (discussed on IRC)
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/watch_arg/watch.adb: Rewrite testcase to avoid the
parameter that we want to watch being a constant.
Tested on both sparc-solaris (where the ancient debugger could still
run ;-), and on x86_64-linux.
commit 170e47f96ba50ff4490f2bad2b8cf4f4e43c23db
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 17 21:23:24 2010 +0000
2010-05-17 Michael Snyder <msnyder@vmware.com>
* python/py-auto-load.c: White space.
* python/py-block.c: White space.
* python/py-breakpoint.c: White space.
* python/py-cmd.c: White space.
* python/py-function.c: White space.
* python/py-lazy-string.c: White space.
* python/py-objfile.c: White space.
* python/py-param.c: White space.
* python/py-prettyprint.c: White space.
* python/py-progspace.c: White space.
* python/py-symtab.c: White space.
* python/python.c: White space.
* python/py-type.c: White space.
* python/py-utils.c: White space.
* python/py-value.c: White space.
commit d9bf14323312dd125063f69cf91853a4739b2621
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 17 20:49:34 2010 +0000
2010-05-17 Michael Snyder <msnyder@vmware.com>
* mi/mi-cmd-break.c: White space.
* mi/mi-cmd-env.c: White space.
* mi/mi-cmds.c: White space.
* mi/mi-cmd-stack.c: White space.
* mi/mi-cmd-var.c: White space.
* mi/mi-console.c: White space.
* mi/mi-getopt.c: White space.
* mi/mi-interp.c: White space.
* mi/mi-main.c: White space.
* mi/mi-out.c: White space.
* mi/mi-parse.c: White space.
commit d0b4c6f8542b5116b0e5da7f49ea48049151fb18
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 17 19:28:11 2010 +0000
2010-05-17 Michael Snyder <msnyder@vmware.com>
* cli/cli-cmds.c: White space.
* cli/cli-decode.c: White space.
* cli/cli-dump.c: White space.
* cli/cli-interp.c: White space.
* cli/cli-logging.c: White space.
* cli/cli-script.c: White space.
* cli/cli-setshow.c: White space.
commit 2e2f5685bdf84c6b85227eb8b6b73e9456afdf7f
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 17 18:48:48 2010 +0000
2010-05-17 Michael Snyder <msnyder@vmware.com>
* valarith.c: White space.
* valops.c: White space.
* valprint.c: White space.
* value.c: White space.
* varobj.c: White space.
* xcoffread.c: White space.
* xml-support.c: White space.
* xml-tdesc.c: White space.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 21 +
bfd/ChangeLog | 199 +++
bfd/archive.c | 11 +-
bfd/bfd-in2.h | 9 +-
bfd/bfdio.c | 266 ++--
bfd/coff-alpha.c | 4 +-
bfd/config.bfd | 2 +-
bfd/configure | 10 +-
bfd/configure.in | 10 +-
bfd/doc/Makefile.in | 1 +
bfd/elf.c | 4 +
bfd/elf32-i370.c | 3 -
bfd/elf32-ppc.c | 3 -
bfd/elf32-sh-relocs.h | 163 ++-
bfd/elf32-sh.c | 1980 +++++++++++++++++++---
bfd/elfcode.h | 2 +
bfd/libbfd.h | 8 +
bfd/opncls.c | 18 +-
bfd/peicode.h | 2 +
bfd/reloc.c | 14 +
bfd/targets.c | 4 +
bfd/version.h | 2 +-
bfd/vms-alpha.c | 727 +++++----
bfd/vms-misc.c | 9 +-
bfd/vms.h | 39 +-
bfd/xcofflink.c | 2 +
configure | 190 ++-
configure.ac | 31 +-
gdb/ChangeLog | 281 +++
gdb/NEWS | 4 +-
gdb/aclocal.m4 | 34 +-
gdb/ada-lang.c | 124 ++-
gdb/ada-typeprint.c | 6 +
gdb/ada-valprint.c | 15 +
gdb/addrmap.c | 2 +-
gdb/auxv.c | 3 +
gdb/ax-gdb.c | 17 +-
gdb/cli/cli-cmds.c | 8 +-
gdb/cli/cli-decode.c | 93 +-
gdb/cli/cli-dump.c | 4 +
gdb/cli/cli-interp.c | 2 +
gdb/cli/cli-logging.c | 2 +-
gdb/cli/cli-script.c | 28 +-
gdb/cli/cli-setshow.c | 7 +
gdb/config.in | 154 ++-
gdb/configure | 1755 +++++++++++++++-----
gdb/doc/ChangeLog | 5 +
gdb/doc/gdb.texinfo | 38 +
gdb/dwarf2-frame.c | 19 +-
gdb/dwarf2-frame.h | 2 +-
gdb/dwarf2expr.c | 82 +-
gdb/dwarf2expr.h | 29 +-
gdb/dwarf2loc.c | 462 +++++-
gdb/dwarf2loc.h | 4 +-
gdb/dwarf2read.c | 13 +
gdb/eval.c | 4 +-
gdb/event-loop.c | 7 +
gdb/event-loop.h | 7 -
gdb/gdbserver/ChangeLog | 14 +
gdb/gdbserver/config.in | 3 +
gdb/gdbserver/linux-m68k-low.c | 21 +
gdb/gnulib/Makefile.am | 193 ++-
gdb/gnulib/Makefile.in | 481 +++++-
gdb/gnulib/extra/arg-nonnull.h | 26 +
gdb/gnulib/extra/c++defs.h | 271 +++
gdb/gnulib/extra/link-warning.h | 28 -
gdb/gnulib/extra/warn-on-use.h | 109 ++
gdb/gnulib/m4/00gnulib.m4 | 30 +
gdb/gnulib/m4/extensions.m4 | 52 +-
gdb/gnulib/m4/gnulib-cache.m4 | 9 +-
gdb/gnulib/m4/gnulib-common.m4 | 166 ++-
gdb/gnulib/m4/gnulib-comp.m4 | 125 +-
gdb/gnulib/m4/gnulib-tool.m4 | 30 +-
gdb/gnulib/m4/include_next.m4 | 172 ++-
gdb/gnulib/m4/longlong.m4 | 72 +-
gdb/gnulib/m4/memchr.m4 | 79 +-
gdb/gnulib/m4/memcmp.m4 | 20 -
gdb/gnulib/m4/memmem.m4 | 52 +-
gdb/gnulib/m4/mmap-anon.m4 | 59 +
gdb/gnulib/m4/multiarch.m4 | 65 +
gdb/gnulib/m4/{onceonly_2_57.m4 => onceonly.m4} | 28 +-
gdb/gnulib/m4/stddef_h.m4 | 45 +
gdb/gnulib/m4/stdint.m4 | 123 ++-
gdb/gnulib/m4/string_h.m4 | 73 +-
gdb/gnulib/m4/warn-on-use.m4 | 45 +
gdb/gnulib/m4/wchar.m4 | 54 -
gdb/gnulib/m4/wchar_h.m4 | 152 ++
gdb/gnulib/m4/wchar_t.m4 | 20 +
gdb/gnulib/m4/wint_t.m4 | 28 +
gdb/gnulib/memchr.c | 214 +--
gdb/gnulib/memchr.valgrind | 14 +
gdb/gnulib/memcmp.c | 361 ----
gdb/gnulib/memmem.c | 10 +-
gdb/gnulib/stddef.in.h | 86 +
gdb/gnulib/stdint.in.h | 133 +-
gdb/gnulib/str-two-way.h | 364 ++--
gdb/gnulib/string.in.h | 746 ++++++---
gdb/gnulib/wchar.in.h | 388 ++++-
gdb/linux-fork.c | 35 +-
gdb/mi/mi-cmd-break.c | 6 +-
gdb/mi/mi-cmd-env.c | 3 +
gdb/mi/mi-cmd-stack.c | 4 +
gdb/mi/mi-cmd-var.c | 11 +-
gdb/mi/mi-cmds.c | 2 +
gdb/mi/mi-console.c | 5 +
gdb/mi/mi-getopt.c | 1 +
gdb/mi/mi-interp.c | 18 +-
gdb/mi/mi-main.c | 40 +-
gdb/mi/mi-out.c | 20 +-
gdb/mi/mi-parse.c | 9 +
gdb/p-valprint.c | 5 +-
gdb/parse.c | 3 +-
gdb/procfs.c | 11 +-
gdb/python/py-auto-load.c | 4 +
gdb/python/py-block.c | 2 +
gdb/python/py-breakpoint.c | 2 +
gdb/python/py-cmd.c | 99 +-
gdb/python/py-function.c | 2 +
gdb/python/py-lazy-string.c | 4 +
gdb/python/py-objfile.c | 5 +
gdb/python/py-param.c | 4 +
gdb/python/py-prettyprint.c | 1 +
gdb/python/py-progspace.c | 6 +
gdb/python/py-symtab.c | 4 +-
gdb/python/py-type.c | 7 +
gdb/python/py-utils.c | 51 +
gdb/python/py-value.c | 6 +
gdb/python/python-internal.h | 6 +
gdb/python/python.c | 43 +-
gdb/ser-pipe.c | 9 +
gdb/target.c | 8 +-
gdb/target.h | 2 +-
gdb/testsuite/ChangeLog | 120 ++
gdb/testsuite/gdb.ada/arrayidx.exp | 8 +-
gdb/testsuite/gdb.ada/watch_arg/watch.adb | 8 +-
gdb/testsuite/gdb.arch/i386-prologue.exp | 2 +-
gdb/testsuite/gdb.base/call-ar-st.exp | 198 +--
gdb/testsuite/gdb.base/call-rt-st.exp | 66 +-
gdb/testsuite/gdb.base/call-sc.exp | 32 -
gdb/testsuite/gdb.base/call-signal-resume.exp | 24 +-
gdb/testsuite/gdb.base/call-strs.exp | 178 +--
gdb/testsuite/gdb.base/callfuncs.exp | 40 +-
gdb/testsuite/gdb.base/catch-syscall.exp | 10 +-
gdb/testsuite/gdb.base/charset.exp | 10 +-
gdb/testsuite/gdb.base/checkpoint.exp | 15 +-
gdb/testsuite/gdb.base/commands.exp | 205 +--
gdb/testsuite/gdb.base/cond-expr.exp | 55 +-
gdb/testsuite/gdb.base/condbreak.exp | 18 +-
gdb/testsuite/gdb.base/consecutive.exp | 21 +-
gdb/testsuite/gdb.base/constvars.exp | 52 +-
gdb/testsuite/gdb.base/corefile.exp | 5 +-
gdb/testsuite/gdb.base/default.exp | 167 +--
gdb/testsuite/gdb.base/define.exp | 245 +--
gdb/testsuite/gdb.base/display.exp | 39 +-
gdb/testsuite/gdb.base/dump.exp | 18 +-
gdb/testsuite/gdb.base/ending-run.exp | 29 +-
gdb/testsuite/gdb.base/eval-skip.exp | 353 +---
gdb/testsuite/gdb.base/exprs.exp | 8 +-
gdb/testsuite/gdb.base/fileio.exp | 16 +-
gdb/testsuite/gdb.base/finish.exp | 18 +-
gdb/testsuite/gdb.base/foll-fork.exp | 579 +++----
gdb/testsuite/gdb.base/funcargs.exp | 140 +-
gdb/testsuite/gdb.base/gcore-buffer-overflow.exp | 9 +-
gdb/testsuite/gdb.base/gcore.exp | 19 +-
gdb/testsuite/gdb.base/gdb1090.exp | 9 +-
gdb/testsuite/gdb.base/gdbvars.exp | 2 +-
gdb/testsuite/gdb.base/help.exp | 8 +-
gdb/testsuite/gdb.base/info-proc.exp | 9 +-
gdb/testsuite/gdb.base/jump.exp | 130 +-
gdb/testsuite/gdb.base/long_long.exp | 23 +-
gdb/testsuite/gdb.base/macscp.exp | 6 +-
gdb/testsuite/gdb.base/maint.exp | 600 +++-----
gdb/testsuite/gdb.base/miscexprs.exp | 288 +---
gdb/testsuite/gdb.base/nodebug.exp | 17 +-
gdb/testsuite/gdb.base/pointers.exp | 518 ++-----
gdb/testsuite/gdb.base/ptype.exp | 30 +-
gdb/testsuite/gdb.base/radix.exp | 4 +-
gdb/testsuite/gdb.base/sigaltstack.exp | 4 +-
gdb/testsuite/gdb.base/sigbpt.exp | 2 +-
gdb/testsuite/gdb.base/siginfo.exp | 2 +-
gdb/testsuite/gdb.base/sigstep.exp | 10 +-
gdb/testsuite/gdb.base/solib-weak.exp | 2 +-
gdb/testsuite/gdb.base/structs.exp | 9 +-
gdb/testsuite/gdb.base/whatis-exp.exp | 158 +--
gdb/testsuite/gdb.cp/overload.exp | 4 +-
gdb/testsuite/gdb.dwarf2/pieces.S | 1883 ++++++++++++++++++++
gdb/testsuite/gdb.dwarf2/pieces.c | 112 ++
gdb/testsuite/gdb.dwarf2/pieces.exp | 110 ++
gdb/testsuite/gdb.java/jmain.exp | 4 +-
gdb/testsuite/gdb.pascal/types.exp | 2 +-
gdb/testsuite/gdb.python/py-cmd.exp | 32 +
gdb/testsuite/lib/gdb.exp | 25 +
gdb/tui/tui-data.c | 1 +
gdb/tui/tui-disasm.c | 1 +
gdb/tui/tui-file.c | 10 +
gdb/tui/tui-interp.c | 1 +
gdb/tui/tui-io.c | 4 +-
gdb/tui/tui-main.c | 1 +
gdb/tui/tui-out.c | 6 +-
gdb/tui/tui-regs.c | 2 +-
gdb/tui/tui-source.c | 4 +-
gdb/tui/tui-stack.c | 3 +
gdb/tui/tui-win.c | 2 +
gdb/tui/tui-winsource.c | 4 +-
gdb/tui/tui.c | 2 +
gdb/valarith.c | 18 +-
gdb/valops.c | 41 +-
gdb/valprint.c | 2 +
gdb/value.c | 25 +-
gdb/varobj.c | 45 +-
gdb/version.in | 2 +-
gdb/windows-nat.c | 6 +-
gdb/xcoffread.c | 67 +-
gdb/xml-support.c | 3 +
gdb/xml-tdesc.c | 1 +
include/elf/ChangeLog | 21 +
include/elf/common.h | 9 +
include/elf/i370.h | 8 -
include/elf/or32.h | 7 -
include/elf/ppc.h | 9 -
include/elf/sh.h | 18 +-
include/elf/sparc.h | 1 -
include/opcode/ChangeLog | 4 +
include/opcode/mips.h | 5 +-
opcodes/ChangeLog | 18 +
opcodes/i386-dis.c | 32 +-
opcodes/mips-dis.c | 10 +-
opcodes/mips-opc.c | 5 +-
opcodes/ppc-opc.c | 35 +-
sim/erc32/ChangeLog | 6 +
sim/erc32/sis.h | 7 +-
231 files changed, 13491 insertions(+), 6009 deletions(-)
create mode 100644 gdb/gnulib/extra/arg-nonnull.h
create mode 100644 gdb/gnulib/extra/c++defs.h
delete mode 100644 gdb/gnulib/extra/link-warning.h
create mode 100644 gdb/gnulib/extra/warn-on-use.h
create mode 100644 gdb/gnulib/m4/00gnulib.m4
delete mode 100644 gdb/gnulib/m4/memcmp.m4
create mode 100644 gdb/gnulib/m4/mmap-anon.m4
create mode 100644 gdb/gnulib/m4/multiarch.m4
rename gdb/gnulib/m4/{onceonly_2_57.m4 => onceonly.m4} (77%)
create mode 100644 gdb/gnulib/m4/stddef_h.m4
create mode 100644 gdb/gnulib/m4/warn-on-use.m4
delete mode 100644 gdb/gnulib/m4/wchar.m4
create mode 100644 gdb/gnulib/m4/wchar_h.m4
create mode 100644 gdb/gnulib/m4/wchar_t.m4
create mode 100644 gdb/gnulib/m4/wint_t.m4
create mode 100644 gdb/gnulib/memchr.valgrind
delete mode 100644 gdb/gnulib/memcmp.c
create mode 100644 gdb/gnulib/stddef.in.h
create mode 100644 gdb/testsuite/gdb.dwarf2/pieces.S
create mode 100644 gdb/testsuite/gdb.dwarf2/pieces.c
create mode 100644 gdb/testsuite/gdb.dwarf2/pieces.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 4deac01..5276f25 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2010-05-26 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ Merge from gcc:
+
+ 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
+ * configure.ac (--enable-lto): All *-apple-darwin* now support LTO.
+ * configure: Regenerate.
+
+ 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
+ * configure.ac (--enable-lto): Add x86_64-apple-darwin* as
+ a platform that supports LTO.
+ * configure: Regenerate.
+
+ 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
+ PR lto/42776
+ * configure.ac (--enable-lto): Refactor handling so libelf tests
+ are only performed inside then-clause of ACX_ELF_TARGET_IFELSE,
+ and allow LTO to be explicitly enabled on non-ELF platforms that
+ are known to support it inside else-clause.
+ * configure: Regenerate.
+
2010-04-27 Roland McGrath <roland@redhat.com>
H.J. Lu <hongjiu.lu@intel.com>
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f5dc25e..471d1f3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,202 @@
+2010-05-26 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c: Update comments.
+ (alpha_vms_write_exec): Set lnkflags. Write the GST.
+ (alpha_vms_link_output_symbol): New function.
+ (alpha_vms_bfd_final_link): Generate the VMS symbol table.
+ Set dst_section private field.
+ (alpha_vms_bfd_final_link): Remove code that set dst_section.
+
+2010-05-26 Tristan Gingold <gingold@adacore.com>
+
+ * bfdio.c: Declare and define _bfd_memory_iovec.
+ (bfd_bread): Move code for BFD_IN_MEMORY...
+ (bfd_bwrite): ... Ditto ...
+ (bfd_tell): ... Ditto ...
+ (bfd_flush): ... Ditto ...
+ (bfd_stat): ... Ditto ...
+ (bfd_seek): ... Ditto ...
+ (bfd_get_size): ... Ditto ...
+ (bfd_mmap): ... Ditto ...
+ (memory_bread): ... to these new functions.
+ (memory_bwrite): Ditto.
+ (memory_btell): Ditto.
+ (memory_bseek): Ditto.
+ (memory_bflush): Ditto.
+ (memory_bstat): Ditto.
+ (memory_bmmap): Ditto.
+ (memory_bclose): New function.
+ * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
+ * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
+ * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
+ (bfd_make_writable): Use _bfd_memory_iovec.
+ * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
+ * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
+ _bfd_memory_iovec.
+ (alpha_ecoff_openr_next_archived_file): Use proxy_origin
+ instead of origin.
+ * libbfd.h: Regenerate.
+
+2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+ Andrew Stubbs <ams@codesourcery.com>
+
+ * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
+ bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
+ * configure.in: Handle FDPIC vectors.
+ * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
+ * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
+ (SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of
+ SYMBOL_REFERENCES_LOCAL for function descriptors.
+ (fdpic_object_p): New.
+ (sh_reloc_map): Add FDPIC and movi20 relocations.
+ (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
+ range.
+ (struct elf_sh_plt_info): Add got20 and short_plt. Update all
+ definitions.
+ (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
+ (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
+ (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
+ (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
+ (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
+ New.
+ (get_plt_info): Handle FDPIC.
+ (MAX_SHORT_PLT): Define.
+ (get_plt_index, get_plt_offset): Handle short_plt.
+ (union gotref): New.
+ (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
+ got_type and adjust all uses. Add GOT_FUNCDESC.
+ (struct sh_elf_obj_tdata): Add local_funcdesc. Rename
+ local_got_tls_type to local_got_type.
+ (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All
+ users changed.
+ (sh_elf_local_funcdesc): Define.
+ (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
+ and srofixup.
+ (sh_elf_link_hash_newfunc): Initialize new fields.
+ (sh_elf_link_hash_table_create): Set fdpic_p.
+ (sh_elf_omit_section_dynsym): New.
+ (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
+ and .rofixup.
+ (allocate_dynrelocs): Allocate local function descriptors and space
+ for R_SH_FUNCDESC-related relocations, and for rofixups.
+ Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which
+ require function descriptors.
+ (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
+ (sh_elf_modify_program_headers): New.
+ (sh_elf_size_dynamic_sections): Allocate function descriptors for
+ local symbols. Allocate .got.funcdesc contents. Allocate rofixups.
+ Handle local GOT entries of type GOT_FUNCDESC. Create fixups for
+ local GOT entries. Ensure that FDPIC libraries always have a PLTGOT
+ entry in the .dynamic section.
+ (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
+ (sh_elf_add_rofixup, sh_elf_osec_to_segment)
+ (sh_elf_osec_readonly_p, install_movi20_field): New functions.
+ (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
+ R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset
+ and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup
+ read-only section warnings. Handle undefined weak symbols. Generate
+ fixups for R_SH_DIR32 and GOT entries. Check for cross-segment
+ relocations and clear EF_SH_PIC. Handle 20-bit relocations.
+ Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
+ (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
+ R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
+ Handle 20-bit relocations.
+ (sh_elf_copy_indirect_symbol): Copy function descriptor reference
+ counts.
+ (sh_elf_check_relocs): Handle new relocations. Make symbols
+ dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC
+ symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups
+ for R_SH_DIR32.
+ (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
+ (sh_elf_merge_private_data): Copy initial flags. Do not clobber
+ non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches.
+ (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
+ here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt,
+ FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC.
+ Use install_movi20_field. Rename srel to srelgot. Always generate
+ R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
+ (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
+ Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT.
+ Rename sgot to sgotplt. Assert that the right number of rofixups
+ and dynamic relocations were allocated.
+ (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
+ (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
+ (elf_backend_can_make_relative_eh_frame)
+ (elf_backend_can_make_lsda_relative_eh_frame)
+ (elf_backend_encode_eh_address): Define.
+ (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
+ (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
+ Redefine for FDPIC vector.
+ * reloc.c: Add SH FDPIC and movi20 relocations.
+ * targets.c (_bfd_target_vector): Add FDPIC vectors.
+ * configure, bfd-in2.h, libbfd.h: Regenerated.
+
+2010-05-25 Jay Krell <jay.krell@cornell.edu>
+
+ PR ld/11624
+ * archive.c (_bfd_calloc_wrapper): New function.
+ (_bfd_add_bfd_to_archive_cache): Use it.
+
+ * configure.in: Add alpha*-*-*vms* to list of natives.
+ * configure: Regenerate.
+
+ * vms-misc.c: Define globalref if necessary.
+ (vms_convert_to_var_unix_filename): Rename to
+ _bfd_vms_convert_to_var_unix_filename and export.
+ * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
+ * vms-alpha.c (vms_close_and_cleanup): Update invocation of
+ vms_convert_to_var_unix_filename.
+
+2010-05-24 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (add_symbol_entry): New function extrated from ...
+ (add_symbol): ... adjusted.
+
+2010-05-24 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
+ (alpha_vms_write_exec): Add a comment.
+ (_bfd_vms_write_egsd): Ditto.
+ (alpha_vms_convert_symbol): Remove a blank line.
+
+2010-05-21 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
+ for the GST.
+
+2010-05-21 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
+ SEC_LOAD if isect has data.
+ (vms_get_symbol_info): Refine the condition for 'T' type.
+
+2010-05-18 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_write_emh): New function.
+ (_bfd_vms_write_lmn): New function.
+ (_bfd_vms_write_eeom): Moved.
+ (hash_string): Likewise.
+ (_bfd_vms_length_hash_symbol): Likewise.
+ (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
+ and _bfd_vms_write_lmn, and call these functions.
+
+2010-05-18 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
+ Add details in the messages.
+ (evax_bfd_print_image): Change message.
+
+2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/11600
+ * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
+ (elf_fake_sections): Likewise.
+
+ * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
+ SHF_EXCLUDE here.
+ * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
+
2010-05-17 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c: Include esgps.h and eidc.h.
diff --git a/bfd/archive.c b/bfd/archive.c
index e6c1e83..fbe555b 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -303,6 +303,15 @@ eq_file_ptr (const PTR p1, const PTR p2)
return arc1->ptr == arc2->ptr;
}
+/* The calloc function doesn't always take size_t (e.g. on VMS)
+ so wrap it to avoid a compile time warning. */
+
+static void *
+_bfd_calloc_wrapper (size_t a, size_t b)
+{
+ return calloc (a, b);
+}
+
/* Kind of stupid to call cons for each one, but we don't do too many. */
bfd_boolean
@@ -315,7 +324,7 @@ _bfd_add_bfd_to_archive_cache (bfd *arch_bfd, file_ptr filepos, bfd *new_elt)
if (hash_table == NULL)
{
hash_table = htab_create_alloc (16, hash_file_ptr, eq_file_ptr,
- NULL, calloc, free);
+ NULL, _bfd_calloc_wrapper, free);
if (hash_table == NULL)
return FALSE;
bfd_ardata (arch_bfd)->cache = hash_table;
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index a3f8ccc..5c42128 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -913,7 +913,7 @@ extern bfd_boolean elf32_arm_build_stubs
/* ARM unwind section editing support. */
extern bfd_boolean elf32_arm_fix_exidx_coverage
- (struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean);
+(struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean);
/* PowerPC @tls opcode transform/validate. */
extern unsigned int _bfd_elf_ppc_at_tls_transform
@@ -3276,6 +3276,13 @@ pc-relative or some form of GOT-indirect relocation. */
BFD_RELOC_SH_TLS_DTPMOD32,
BFD_RELOC_SH_TLS_DTPOFF32,
BFD_RELOC_SH_TLS_TPOFF32,
+ BFD_RELOC_SH_GOT20,
+ BFD_RELOC_SH_GOTOFF20,
+ BFD_RELOC_SH_GOTFUNCDESC,
+ BFD_RELOC_SH_GOTFUNCDESC20,
+ BFD_RELOC_SH_GOTOFFFUNCDESC,
+ BFD_RELOC_SH_GOTOFFFUNCDESC20,
+ BFD_RELOC_SH_FUNCDESC,
/* ARC Cores relocs.
ARC 22 bit pc-relative branch. The lowest two bits must be zero and are
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index e428b16..4c13a76 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -163,6 +163,8 @@ DESCRIPTION
. int prot, int flags, file_ptr offset);
.};
+.extern const struct bfd_iovec _bfd_memory_iovec;
+
*/
@@ -182,26 +184,6 @@ bfd_bread (void *ptr, bfd_size_type size, bfd *abfd)
size = maxbytes;
}
- if ((abfd->flags & BFD_IN_MEMORY) != 0)
- {
- struct bfd_in_memory *bim;
- bfd_size_type get;
-
- bim = (struct bfd_in_memory *) abfd->iostream;
- get = size;
- if (abfd->where + get > bim->size)
- {
- if (bim->size < (bfd_size_type) abfd->where)
- get = 0;
- else
- get = bim->size - abfd->where;
- bfd_set_error (bfd_error_file_truncated);
- }
- memcpy (ptr, bim->buffer + abfd->where, (size_t) get);
- abfd->where += get;
- return get;
- }
-
if (abfd->iovec)
nread = abfd->iovec->bread (abfd, ptr, size);
else
@@ -217,37 +199,6 @@ bfd_bwrite (const void *ptr, bfd_size_type size, bfd *abfd)
{
size_t nwrote;
- if ((abfd->flags & BFD_IN_MEMORY) != 0)
- {
- struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream;
-
- size = (size_t) size;
- if (abfd->where + size > bim->size)
- {
- bfd_size_type newsize, oldsize;
-
- oldsize = (bim->size + 127) & ~(bfd_size_type) 127;
- bim->size = abfd->where + size;
- /* Round up to cut down on memory fragmentation */
- newsize = (bim->size + 127) & ~(bfd_size_type) 127;
- if (newsize > oldsize)
- {
- bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer,
- newsize);
- if (bim->buffer == NULL)
- {
- bim->size = 0;
- return 0;
- }
- if (newsize > bim->size)
- memset (bim->buffer + bim->size, 0, newsize - bim->size);
- }
- }
- memcpy (bim->buffer + abfd->where, ptr, (size_t) size);
- abfd->where += size;
- return size;
- }
-
if (abfd->iovec)
nwrote = abfd->iovec->bwrite (abfd, ptr, size);
else
@@ -270,9 +221,6 @@ bfd_tell (bfd *abfd)
{
file_ptr ptr;
- if ((abfd->flags & BFD_IN_MEMORY) != 0)
- return abfd->where;
-
if (abfd->iovec)
{
ptr = abfd->iovec->btell (abfd);
@@ -290,9 +238,6 @@ bfd_tell (bfd *abfd)
int
bfd_flush (bfd *abfd)
{
- if ((abfd->flags & BFD_IN_MEMORY) != 0)
- return 0;
-
if (abfd->iovec)
return abfd->iovec->bflush (abfd);
return 0;
@@ -305,9 +250,6 @@ bfd_stat (bfd *abfd, struct stat *statbuf)
{
int result;
- if ((abfd->flags & BFD_IN_MEMORY) != 0)
- abort ();
-
if (abfd->iovec)
result = abfd->iovec->bstat (abfd, statbuf);
else
@@ -335,50 +277,6 @@ bfd_seek (bfd *abfd, file_ptr position, int direction)
if (direction == SEEK_CUR && position == 0)
return 0;
- if ((abfd->flags & BFD_IN_MEMORY) != 0)
- {
- struct bfd_in_memory *bim;
-
- bim = (struct bfd_in_memory *) abfd->iostream;
-
- if (direction == SEEK_SET)
- abfd->where = position;
- else
- abfd->where += position;
-
- if (abfd->where > bim->size)
- {
- if (abfd->direction == write_direction
- || abfd->direction == both_direction)
- {
- bfd_size_type newsize, oldsize;
-
- oldsize = (bim->size + 127) & ~(bfd_size_type) 127;
- bim->size = abfd->where;
- /* Round up to cut down on memory fragmentation */
- newsize = (bim->size + 127) & ~(bfd_size_type) 127;
- if (newsize > oldsize)
- {
- bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer,
- newsize);
- if (bim->buffer == NULL)
- {
- bim->size = 0;
- return -1;
- }
- memset (bim->buffer + oldsize, 0, newsize - oldsize);
- }
- }
- else
- {
- abfd->where = bim->size;
- bfd_set_error (bfd_error_file_truncated);
- return -1;
- }
- }
- return 0;
- }
-
if (abfd->format != bfd_archive && abfd->my_archive == 0)
{
if (direction == SEEK_SET && (bfd_vma) position == abfd->where)
@@ -505,9 +403,6 @@ bfd_get_size (bfd *abfd)
{
struct stat buf;
- if ((abfd->flags & BFD_IN_MEMORY) != 0)
- return ((struct bfd_in_memory *) abfd->iostream)->size;
-
if (abfd->iovec == NULL)
return 0;
@@ -536,11 +431,164 @@ bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
int prot, int flags, file_ptr offset)
{
void *ret = (void *)-1;
- if ((abfd->flags & BFD_IN_MEMORY) != 0)
- return ret;
if (abfd->iovec == NULL)
return ret;
return abfd->iovec->bmmap (abfd, addr, len, prot, flags, offset);
}
+
+/* Memory file I/O operations. */
+
+static file_ptr
+memory_bread (bfd *abfd, void *ptr, file_ptr size)
+{
+ struct bfd_in_memory *bim;
+ bfd_size_type get;
+
+ bim = (struct bfd_in_memory *) abfd->iostream;
+ get = size;
+ if (abfd->where + get > bim->size)
+ {
+ if (bim->size < (bfd_size_type) abfd->where)
+ get = 0;
+ else
+ get = bim->size - abfd->where;
+ bfd_set_error (bfd_error_file_truncated);
+ }
+ memcpy (ptr, bim->buffer + abfd->where, (size_t) get);
+ return get;
+}
+
+static file_ptr
+memory_bwrite (bfd *abfd, const void *ptr, file_ptr size)
+{
+ struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-17 18:02 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-05-17 18:02 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 6e71dce52b9c702afd2debee7e51846bfd703ffc (commit)
via 67aefdaec02f5bc9fd7a5afae3cd62041d43238e (commit)
via 27aa9bb32130e41e22d7d23ef795e72d38fde531 (commit)
via c178186f4d71542eeb15671b4157a646f67c4f85 (commit)
via 2e00234afc2f96d6a5d6d6f783a0ddab7dbfdf87 (commit)
via 2555021299e4aabfc635f6eec61bd093d57b9d72 (commit)
via ba17b7cc6eafadbb6f94ca307ee5e955c7cda506 (commit)
via b88d0e222ed52293cb18d231982b84ac7ab2c213 (commit)
via e945d4e6b56b6f83d414771e31495e61db962d25 (commit)
via 345c80e947084d2a7de8b5a292bd1a98d6367fa7 (commit)
via 4dc188b8602f64960a7b75929de5c56e4c8326e0 (commit)
via 532aff98000bcb1c4f71ca3c842ce7932094b76b (commit)
via f95799b831ea18bdec8a7b8c60d73f0989ab0977 (commit)
via 84da500745732374f20dcbb4649009f18d1289a3 (commit)
via b856551b8975602991c53ebb30ea8beca7a7d6c5 (commit)
via 0f04a3f794db9695c131ea6d830dcb506f2adb07 (commit)
from 76eb8aca2be42ab83a3f61f1089b304c184fc171 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6e71dce52b9c702afd2debee7e51846bfd703ffc
Merge: 76eb8aca2be42ab83a3f61f1089b304c184fc171 67aefdaec02f5bc9fd7a5afae3cd62041d43238e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon May 17 20:02:48 2010 +0200
Merge remote branch 'gdb/master'
commit 67aefdaec02f5bc9fd7a5afae3cd62041d43238e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon May 17 17:23:29 2010 +0000
Use breakpoint location to parse condition over current language.
gdb/ChangeLog:
* parse.c (parse_exp_in_context): When block is not NULL, use
its associated language to parse the expression instead of
the current_language.
gdb/testsuite/ChangeLog:
* gdb.ada/cond_lang: New testcase.
commit 27aa9bb32130e41e22d7d23ef795e72d38fde531
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon May 17 17:18:39 2010 +0000
Remove commented-out code in jv-lang.c
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* jv-lang.c (java_lookup_class): Remove commented out code.
(type_from_class): Likewise.
(java_op_print_tab): Remove commented-out elements.
commit c178186f4d71542eeb15671b4157a646f67c4f85
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon May 17 17:11:28 2010 +0000
testsuite: Prevent writes to prms_id and bug_id.
gdb/testsuite/ChangeLog:
* lib/gdb.exp (banned_variables): New variable/constant.
(gdb_init): Add write trace on variables listed in banned_variables.
(gdb_finish): Remove write traces on variables listed in
banned_variables.
commit 2e00234afc2f96d6a5d6d6f783a0ddab7dbfdf87
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon May 17 17:06:00 2010 +0000
Some uses of bug_id and prms_id just reappeared - remove them.
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* gdb.base/gdb11530.exp: Delete setting of prms_id and bug_id.
* gdb.cp/koenig.exp: Likewise.
Tested on x86_64-linux.
commit 2555021299e4aabfc635f6eec61bd093d57b9d72
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon May 17 16:55:30 2010 +0000
Avoid global lookup when decoding XA type.
This patch enhances GDB to take advantage of a recent change in the GNAT
encoding regarding XA types. A detailed description of the logic has
been added at the start of ada_fixup_array_indexes_type to give the
context behind this enhancement.
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (to_fixed_range_type): The the raw index type as
argument instead of the raw type name. Remove orig_type parameter.
Update calls throughout.
(ada_fixup_array_indexes_type): New function.
(ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
* ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
* ada-typeprint.c (print_range_type): Renames print_range_type_named.
Remove name parameter.
(print_array_type): Add call to ada_fixup_array_indexes_type.
Update calls to print_range_type.
(ada_print_type): Update calls to print_range_type.
commit ba17b7cc6eafadbb6f94ca307ee5e955c7cda506
Author: Andreas Schwab <schwab@suse.de>
Date: Mon May 17 16:53:19 2010 +0000
PR gdb/11092
* c-lang.c (c_printstr): Compute real length of NUL terminated
string at first.
commit b88d0e222ed52293cb18d231982b84ac7ab2c213
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon May 17 15:55:01 2010 +0000
* dwarf2read.c (read_set_type): Set type length if
DW_AT_byte_size attribute is present.
commit e945d4e6b56b6f83d414771e31495e61db962d25
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon May 17 15:29:01 2010 +0000
* p-valprint.c (pascal_val_print): Handle set type if range limits
are undefined but size is known.
commit 345c80e947084d2a7de8b5a292bd1a98d6367fa7
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon May 17 10:42:27 2010 +0000
* procfs.c: Reformat.
commit 4dc188b8602f64960a7b75929de5c56e4c8326e0
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon May 17 10:40:05 2010 +0000
Revert previous change that inadvertently added reset_schedlock, and
revert changes done on top on that.
commit 532aff98000bcb1c4f71ca3c842ce7932094b76b
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon May 17 08:32:43 2010 +0000
Reformat last entry to avoid too long line.
commit f95799b831ea18bdec8a7b8c60d73f0989ab0977
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon May 17 08:07:43 2010 +0000
bfd/
2010-05-17 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c: Include esgps.h and eidc.h.
(_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
(evax_bfd_print_egsd_flags): New function, extracted from ...
(evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
EGSD__C_SPSC and EGSD__C_IDC.
include/vms:
2010-05-17 Tristan Gingold <gingold@adacore.com>
* eidc.h: New file.
* esgps.h: New file.
commit 84da500745732374f20dcbb4649009f18d1289a3
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon May 17 05:30:56 2010 +0000
Add reset_schedlock declaration in target.h.
This patches improves a couple of previous patches:
- one that introduces reset_schedlock, but failed to add a declarationl;
- one that was checked in to avoid a compilation failure due to that
missing declaration.
It also improves the declaration itself to better conform to our coding
practices. Same for the comments.
2010-05-17 Joel Brobecker <brobecker@adacore.com>
* target.h (reset_schedlock): Add declaration.
* infrun.c (reset_schedlock): Add missing void in function profile.
* target.c (target_mourn_inferior): Delete local declaration of
reset_schedlock. Style-fix in comment.
commit b856551b8975602991c53ebb30ea8beca7a7d6c5
Author: Hui Zhu <teawater@gmail.com>
Date: Mon May 17 03:20:56 2010 +0000
2010-05-17 Hui Zhu <teawater@gmail.com>
* target.c (target_mourn_inferior): Extern reset_schedlock.
commit 0f04a3f794db9695c131ea6d830dcb506f2adb07
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 17 01:15:19 2010 +0000
2010-05-16 Michael Snyder <msnyder@vmware.com>
* target.c: White space.
* target-descriptions.c: White space.
* target-memory.c: White space.
* thread.c: White space.
* top.c: White space.
* tracepoint.c: White space.
* trad-frame.c: White space.
* tramp-frame.c: White space.
* ui-file.c: White space.
* ui-out.c: White space.
* user-regs.c: White space.
* utils.c: White space.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 8 +
bfd/vms-alpha.c | 113 ++-
gdb/ChangeLog | 59 +
gdb/ada-lang.c | 83 +-
gdb/ada-lang.h | 2 +
gdb/ada-typeprint.c | 29 +-
gdb/c-lang.c | 26 +-
gdb/dwarf2read.c | 3 +
gdb/infrun.c | 12 -
gdb/jv-lang.c | 44 -
gdb/p-valprint.c | 8 +
gdb/parse.c | 35 +-
gdb/procfs.c | 1938 +++++++++++------------------
gdb/target-descriptions.c | 5 +-
gdb/target-memory.c | 6 +-
gdb/target.c | 61 +-
gdb/testsuite/ChangeLog | 16 +
gdb/testsuite/gdb.ada/cond_lang.exp | 58 +
gdb/testsuite/gdb.ada/cond_lang/a.adb | 21 +
gdb/testsuite/gdb.ada/cond_lang/foo.c | 25 +
gdb/testsuite/gdb.ada/cond_lang/mixed.adb | 49 +
gdb/testsuite/gdb.ada/cond_lang/mixed.ads | 20 +
gdb/testsuite/gdb.ada/cond_lang/pck.adb | 21 +
gdb/testsuite/gdb.ada/cond_lang/pck.ads | 20 +
gdb/testsuite/gdb.base/gdb11530.exp | 3 -
gdb/testsuite/gdb.cp/koenig.exp | 3 -
gdb/testsuite/lib/gdb.exp | 20 +
gdb/thread.c | 5 +
gdb/top.c | 4 +
gdb/tracepoint.c | 3 +-
gdb/trad-frame.c | 1 +
gdb/tramp-frame.c | 6 +
gdb/ui-file.c | 26 +
gdb/ui-out.c | 12 +-
gdb/user-regs.c | 11 +-
gdb/utils.c | 18 +-
include/vms/ChangeLog | 5 +
include/vms/eidc.h | 49 +
include/vms/esgps.h | 72 ++
39 files changed, 1525 insertions(+), 1375 deletions(-)
create mode 100644 gdb/testsuite/gdb.ada/cond_lang.exp
create mode 100644 gdb/testsuite/gdb.ada/cond_lang/a.adb
create mode 100644 gdb/testsuite/gdb.ada/cond_lang/foo.c
create mode 100644 gdb/testsuite/gdb.ada/cond_lang/mixed.adb
create mode 100644 gdb/testsuite/gdb.ada/cond_lang/mixed.ads
create mode 100644 gdb/testsuite/gdb.ada/cond_lang/pck.adb
create mode 100644 gdb/testsuite/gdb.ada/cond_lang/pck.ads
create mode 100644 include/vms/eidc.h
create mode 100644 include/vms/esgps.h
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 02f9c05..f5dc25e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
+2010-05-17 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c: Include esgps.h and eidc.h.
+ (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
+ (evax_bfd_print_egsd_flags): New function, extracted from ...
+ (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
+ EGSD__C_SPSC and EGSD__C_IDC.
+
2010-05-14 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index c4e4c9c..cf4cc06 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -51,6 +51,7 @@
#include "vms/eobjrec.h"
#include "vms/egsd.h"
#include "vms/egps.h"
+#include "vms/esgps.h"
#include "vms/eeom.h"
#include "vms/emh.h"
#include "vms/eiaf.h"
@@ -63,6 +64,7 @@
#include "vms/esdfv.h"
#include "vms/esrf.h"
#include "vms/egst.h"
+#include "vms/eidc.h"
#include "vms/dsc.h"
#include "vms/prt.h"
#include "vms/internal.h"
@@ -1240,7 +1242,10 @@ _bfd_vms_slurp_egsd (bfd * abfd)
}
break;
- case EGSD__C_IDC:
+ case EGSD__C_SPSC:
+ case EGSD__C_IDC:
+ /* Currently ignored. */
+ break;
case EGSD__C_SYMM:
case EGSD__C_SYMV:
default:
@@ -5629,6 +5634,37 @@ exav_bfd_print_egsy_flags (unsigned int flags, FILE *file)
}
static void
+evax_bfd_print_egsd_flags (FILE *file, unsigned int flags)
+{
+ if (flags & EGPS__V_PIC)
+ fputs (_(" PIC"), file);
+ if (flags & EGPS__V_LIB)
+ fputs (_(" LIB"), file);
+ if (flags & EGPS__V_OVR)
+ fputs (_(" OVR"), file);
+ if (flags & EGPS__V_REL)
+ fputs (_(" REL"), file);
+ if (flags & EGPS__V_GBL)
+ fputs (_(" GBL"), file);
+ if (flags & EGPS__V_SHR)
+ fputs (_(" SHR"), file);
+ if (flags & EGPS__V_EXE)
+ fputs (_(" EXE"), file);
+ if (flags & EGPS__V_RD)
+ fputs (_(" RD"), file);
+ if (flags & EGPS__V_WRT)
+ fputs (_(" WRT"), file);
+ if (flags & EGPS__V_VEC)
+ fputs (_(" VEC"), file);
+ if (flags & EGPS__V_NOMOD)
+ fputs (_(" NOMOD"), file);
+ if (flags & EGPS__V_COM)
+ fputs (_(" COM"), file);
+ if (flags & EGPS__V_ALLOC_64BIT)
+ fputs (_(" 64B"), file);
+}
+
+static void
evax_bfd_print_egsd (FILE *file, unsigned char *rec, unsigned int rec_len)
{
unsigned int off = sizeof (struct vms_egsd);
@@ -5661,32 +5697,7 @@ evax_bfd_print_egsd (FILE *file, unsigned char *rec, unsigned int rec_len)
fprintf (file, _("PSC - Program section definition\n"));
fprintf (file, _(" alignment : 2**%u\n"), egps->align);
fprintf (file, _(" flags : 0x%04x"), flags);
- if (flags & EGPS__V_PIC)
- fputs (_(" PIC"), file);
- if (flags & EGPS__V_LIB)
- fputs (_(" LIB"), file);
- if (flags & EGPS__V_OVR)
- fputs (_(" OVR"), file);
- if (flags & EGPS__V_REL)
- fputs (_(" REL"), file);
- if (flags & EGPS__V_GBL)
- fputs (_(" GBL"), file);
- if (flags & EGPS__V_SHR)
- fputs (_(" SHR"), file);
- if (flags & EGPS__V_EXE)
- fputs (_(" EXE"), file);
- if (flags & EGPS__V_RD)
- fputs (_(" RD"), file);
- if (flags & EGPS__V_WRT)
- fputs (_(" WRT"), file);
- if (flags & EGPS__V_VEC)
- fputs (_(" VEC"), file);
- if (flags & EGPS__V_NOMOD)
- fputs (_(" NOMOD"), file);
- if (flags & EGPS__V_COM)
- fputs (_(" COM"), file);
- if (flags & EGPS__V_ALLOC_64BIT)
- fputs (_(" 64B"), file);
+ evax_bfd_print_egsd_flags (file, flags);
fputc ('\n', file);
l = bfd_getl32 (egps->alloc);
fprintf (file, _(" alloc (len): %u (0x%08x)\n"), l, l);
@@ -5694,6 +5705,27 @@ evax_bfd_print_egsd (FILE *file, unsigned char *rec, unsigned int rec_len)
egps->namlng, egps->name);
}
break;
+ case EGSD__C_SPSC:
+ {
+ struct vms_esgps *esgps = (struct vms_esgps *)e;
+ unsigned int flags = bfd_getl16 (esgps->flags);
+ unsigned int l;
+
+ fprintf (file, _("SPSC - Shared Image Program section def\n"));
+ fprintf (file, _(" alignment : 2**%u\n"), esgps->align);
+ fprintf (file, _(" flags : 0x%04x"), flags);
+ evax_bfd_print_egsd_flags (file, flags);
+ fputc ('\n', file);
+ l = bfd_getl32 (esgps->alloc);
+ fprintf (file, _(" alloc (len) : %u (0x%08x)\n"), l, l);
+ fprintf (file, _(" image offset : 0x%08x\n"),
+ (unsigned int)bfd_getl32 (esgps->base));
+ fprintf (file, _(" symvec offset : 0x%08x\n"),
+ (unsigned int)bfd_getl32 (esgps->value));
+ fprintf (file, _(" name : %.*s\n"),
+ esgps->namlng, esgps->name);
+ }
+ break;
case EGSD__C_SYM:
{
struct vms_egsy *egsy = (struct vms_egsy *)e;
@@ -5731,6 +5763,33 @@ evax_bfd_print_egsd (FILE *file, unsigned char *rec, unsigned int rec_len)
}
}
break;
+ case EGSD__C_IDC:
+ {
+ struct vms_eidc *eidc = (struct vms_eidc *)e;
+ unsigned int flags = bfd_getl32 (eidc->flags);
+ unsigned char *p;
+
+ fprintf (file, _("IDC - Ident Consistency check\n"));
+ fprintf (file, _(" flags : 0x%08x"), flags);
+ if (flags & EIDC__V_BINIDENT)
+ fputs (" BINDENT", file);
+ fputc ('\n', file);
+ fprintf (file, _(" id match : %x\n"),
+ (flags >> EIDC__V_IDMATCH_SH) & EIDC__V_IDMATCH_MASK);
+ fprintf (file, _(" error severity: %x\n"),
+ (flags >> EIDC__V_ERRSEV_SH) & EIDC__V_ERRSEV_MASK);
+ p = eidc->name;
+ fprintf (file, _(" entity name : %.*s\n"), p[0], p + 1);
+ p += 1 + p[0];
+ fprintf (file, _(" object name : %.*s\n"), p[0], p + 1);
+ p += 1 + p[0];
+ if (flags & EIDC__V_BINIDENT)
+ fprintf (file, _(" binary ident : 0x%08x\n"),
+ (unsigned)bfd_getl32 (p + 1));
+ else
+ fprintf (file, _(" ascii ident : %.*s\n"), p[0], p + 1);
+ }
+ break;
case EGSD__C_SYMG:
{
struct vms_egst *egst = (struct vms_egst *)e;
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d508fe5..de8f3bd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,64 @@
+2010-05-17 Andreas Schwab <schwab@redhat.com>
+
+ PR gdb/11092
+ * c-lang.c (c_printstr): Compute real length of NUL terminated
+ string at first.
+
+2010-05-17 Joel Brobecker <brobecker@adacore.com>
+
+ * parse.c (parse_exp_in_context): When block is not NULL, use
+ its associated language to parse the expression instead of
+ the current_language.
+
+2010-05-17 Joel Brobecker <brobecker@adacore.com>
+
+ * jv-lang.c (java_lookup_class): Remove commented out code.
+ (type_from_class): Likewise.
+ (java_op_print_tab): Remove commented-out elements.
+
+2010-05-17 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (to_fixed_range_type): The the raw index type as
+ argument instead of the raw type name. Remove orig_type parameter.
+ Update calls throughout.
+ (ada_fixup_array_indexes_type): New function.
+ (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
+ * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
+ * ada-typeprint.c (print_range_type): Renames print_range_type_named.
+ Remove name parameter.
+ (print_array_type): Add call to ada_fixup_array_indexes_type.
+ Update calls to print_range_type.
+ (ada_print_type): Update calls to print_range_type.
+
+2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * dwarf2read.c (read_set_type): Set type length if
+ DW_AT_byte_size attribute is present.
+
+2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * p-valprint.c (pascal_val_print): Handle set type if range limits
+ are undefined but size is known.
+
+2010-05-17 Pedro Alves <pedro@codesourcery.com>
+
+ * procfs.c: Reformat.
+
2010-05-16 Michael Snyder <msnyder@vmware.com>
+ * target.c: White space.
+ * target-descriptions.c: White space.
+ * target-memory.c: White space.
+ * thread.c: White space.
+ * top.c: White space.
+ * tracepoint.c: White space.
+ * trad-frame.c: White space.
+ * tramp-frame.c: White space.
+ * ui-file.c: White space.
+ * ui-out.c: White space.
+ * user-regs.c: White space.
+ * utils.c: White space.
+
* scm-exp.c: White space.
* scm-lang.c: White space.
* scm-valprint.c: White space.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 3b3894c..83f7cf3 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -165,8 +165,7 @@ static struct type *to_fixed_variant_branch_type (struct type *,
static struct type *to_fixed_array_type (struct type *, struct value *, int);
-static struct type *to_fixed_range_type (char *, struct value *,
- struct type *);
+static struct type *to_fixed_range_type (struct type *, struct value *);
static struct type *to_static_fixed_type (struct type *);
static struct type *static_unwrap_type (struct type *type);
@@ -1204,6 +1203,61 @@ ada_match_name (const char *sym_name, const char *name, int wild)
/* Arrays */
+/* Assuming that INDEX_DESC_TYPE is an ___XA structure, a structure
+ generated by the GNAT compiler to describe the index type used
+ for each dimension of an array, check whether it follows the latest
+ known encoding. If not, fix it up to conform to the latest encoding.
+ Otherwise, do nothing. This function also does nothing if
+ INDEX_DESC_TYPE is NULL.
+
+ The GNAT encoding used to describle the array index type evolved a bit.
+ Initially, the information would be provided through the name of each
+ field of the structure type only, while the type of these fields was
+ described as unspecified and irrelevant. The debugger was then expected
+ to perform a global type lookup using the name of that field in order
+ to get access to the full index type description. Because these global
+ lookups can be very expensive, the encoding was later enhanced to make
+ the global lookup unnecessary by defining the field type as being
+ the full index type description.
+
+ The purpose of this routine is to allow us to support older versions
+ of the compiler by detecting the use of the older encoding, and by
+ fixing up the INDEX_DESC_TYPE to follow the new one (at this point,
+ we essentially replace each field's meaningless type by the associated
+ index subtype). */
+
+void
+ada_fixup_array_indexes_type (struct type *index_desc_type)
+{
+ int i;
+
+ if (index_desc_type == NULL)
+ return;
+ gdb_assert (TYPE_NFIELDS (index_desc_type) > 0);
+
+ /* Check if INDEX_DESC_TYPE follows the older encoding (it is sufficient
+ to check one field only, no need to check them all). If not, return
+ now.
+
+ If our INDEX_DESC_TYPE was generated using the older encoding,
+ the field type should be a meaningless integer type whose name
+ is not equal to the field name. */
+ if (TYPE_NAME (TYPE_FIELD_TYPE (index_desc_type, 0)) != NULL
+ && strcmp (TYPE_NAME (TYPE_FIELD_TYPE (index_desc_type, 0)),
+ TYPE_FIELD_NAME (index_desc_type, 0)) == 0)
+ return;
+
+ /* Fixup each field of INDEX_DESC_TYPE. */
+ for (i = 0; i < TYPE_NFIELDS (index_desc_type); i++)
+ {
+ char *name = TYPE_FIELD_NAME (index_desc_type, i);
+ struct type *raw_type = ada_check_typedef (ada_find_any_type (name));
+
+ if (raw_type)
+ TYPE_FIELD_TYPE (index_desc_type, i) = raw_type;
+ }
+}
+
/* Names of MAX_ADA_DIMENS bounds in P_BOUNDS fields of array descriptors. */
static char *bound_name[] = {
@@ -2530,9 +2584,10 @@ ada_array_bound_from_type (struct type * arr_type, int n, int which)
elt_type = TYPE_TARGET_TYPE (type);
index_type_desc = ada_find_parallel_type (type, "___XA");
+ ada_fixup_array_indexes_type (index_type_desc);
if (index_type_desc != NULL)
- index_type = to_fixed_range_type (TYPE_FIELD_NAME (index_type_desc, n - 1),
- NULL, TYPE_INDEX_TYPE (elt_type));
+ index_type = to_fixed_range_type (TYPE_FIELD_TYPE (index_type_desc, n - 1),
+ NULL);
else
index_type = TYPE_INDEX_TYPE (elt_type);
@@ -7150,6 +7205,7 @@ to_fixed_array_type (struct type *type0, struct value *dval,
type0 = decode_constrained_packed_array_type (type0);
index_type_desc = ada_find_parallel_type (type0, "___XA");
+ ada_fixup_array_indexes_type (index_type_desc);
if (index_type_desc == NULL)
{
struct type *elt_type0 = ada_check_typedef (TYPE_TARGET_TYPE (type0));
@@ -7202,8 +7258,7 @@ to_fixed_array_type (struct type *type0, struct value *dval,
for (i = TYPE_NFIELDS (index_type_desc) - 1; i >= 0; i -= 1)
{
struct type *range_type =
- to_fixed_range_type (TYPE_FIELD_NAME (index_type_desc, i),
- dval, TYPE_INDEX_TYPE (elt_type0));
+ to_fixed_range_type (TYPE_FIELD_TYPE (index_type_desc, i), dval);
result = create_array_type (alloc_type_copy (elt_type0),
result, range_type);
elt_type0 = TYPE_TARGET_TYPE (elt_type0);
@@ -9182,7 +9237,7 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp,
char *name = ada_type_name (type_arg);
range_type = NULL;
if (name != NULL && TYPE_CODE (type_arg) != TYPE_CODE_ENUM)
- range_type = to_fixed_range_type (name, NULL, type_arg);
+ range_type = to_fixed_range_type (type_arg, NULL);
if (range_type == NULL)
range_type = type_arg;
switch (op)
@@ -9704,21 +9759,21 @@ get_int_var_value (char *name, int *flag)
in NAME, the base type given in the named range type. */
static struct type *
-to_fixed_range_type (char *name, struct value *dval, struct type *orig_type)
+to_fixed_range_type (struct type *raw_type, struct value *dval)
{
- struct type *raw_type = ada_find_any_type (name);
+ char *name;
struct type *base_type;
char *subtype_info;
- /* Fall back to the original type if symbol lookup failed. */
- if (raw_type == NULL)
- raw_type = orig_type;
+ gdb_assert (raw_type != NULL);
+ gdb_assert (TYPE_NAME (raw_type) != NULL);
if (TYPE_CODE (raw_type) == TYPE_CODE_RANGE)
base_type = TYPE_TARGET_TYPE (raw_type);
else
base_type = raw_type;
+ name = TYPE_NAME (raw_type);
subtype_info = strstr (name, "___XD");
if (subtype_info == NULL)
{
@@ -9727,7 +9782,7 @@ to_fixed_range_type (char *name, struct value *dval, struct type *orig_type)
if (L < INT_MIN || U > INT_MAX)
return raw_type;
else
- return create_range_type (alloc_type_copy (orig_type), raw_type,
+ return create_range_type (alloc_type_copy (raw_type), raw_type,
ada_discrete_type_low_bound (raw_type),
ada_discrete_type_high_bound (raw_type));
}
@@ -9790,7 +9845,7 @@ to_fixed_range_type (char *name, struct value *dval, struct type *orig_type)
}
}
- type = create_range_type (alloc_type_copy (orig_type), base_type, L, U);
+ type = create_range_type (alloc_type_copy (raw_type), base_type, L, U);
TYPE_NAME (type) = name;
return type;
}
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index 3d60f8f..f6b613f 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -187,6 +187,8 @@ struct value *ada_convert_actual (struct value *actual,
extern struct value *ada_value_subscript (struct value *, int,
struct value **);
+extern void ada_fixup_array_indexes_type (struct type *index_desc_type);
+
extern struct type *ada_array_element_type (struct type *, int);
extern int ada_array_arity (struct type *);
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c
index 17d3594..b69deab 100644
--- a/gdb/ada-typeprint.c
+++ b/gdb/ada-typeprint.c
@@ -55,7 +55,7 @@ static void
print_dynamic_range_bound (struct type *, const char *, int,
const char *, struct ui_file *);
-static void print_range_type_named (char *, struct type *, struct ui_file *);
+static void print_range_type (struct type *, struct ui_file *);
\f
@@ -212,19 +212,19 @@ print_dynamic_range_bound (struct type *type, const char *name, int name_len,
fprintf_filtered (stream, "?");
}
-/* Print the range type named NAME. If symbol lookup fails, fall back
- to ORIG_TYPE as base type. */
+/* Print RAW_TYPE as a range type, using any bound information
+ following the GNAT encoding (if available). */
static void
-print_range_type_named (char *name, struct type *orig_type,
- struct ui_file *stream)
+print_range_type (struct type *raw_type, struct ui_file *stream)
{
- struct type *raw_type = ada_find_any_type (name);
+ char *name;
struct type *base_type;
char *subtype_info;
- if (raw_type == NULL)
- raw_type = orig_type;
+ gdb_assert (raw_type != NULL);
+ name = TYPE_NAME (raw_type);
+ gdb_assert (name != NULL);
if (TYPE_CODE (raw_type) == TYPE_CODE_RANGE)
base_type = TYPE_TARGET_TYPE (raw_type);
@@ -341,10 +341,12 @@ print_array_type (struct type *type, struct ui_file *stream, int show,
{
if (ada_is_simple_array_type (type))
{
- struct type *range_desc_type =
- ada_find_parallel_type (type, "___XA");
+ struct type *range_desc_type;
struct type *arr_type;
+ range_desc_type = ada_find_parallel_type (type, "___XA");
+ ada_fixup_array_indexes_type (range_desc_type);
+
bitsize = 0;
if (range_desc_type == NULL)
{
@@ -368,9 +370,8 @@ print_array_type (struct type *type, struct ui_file *stream, int show,
{
if (k > 0)
fprintf_filtered (stream, ", ");
- print_range_type_named (TYPE_FIELD_NAME
- (range_desc_type, k),
- TYPE_INDEX_TYPE (arr_type), stream);
+ print_range_type (TYPE_FIELD_TYPE (range_desc_type, k),
+ stream);
if (TYPE_FIELD_BITSIZE (arr_type, 0) > 0)
bitsize = TYPE_FIELD_BITSIZE (arr_type, 0);
}
@@ -786,7 +787,7 @@ ada_print_type (struct type *type0, char *varstring, struct ui_file *stream,
else
{
fprintf_filtered (stream, "range ");
- print_range_type_named (name, type, stream);
+ print_range_type (type, stream);
}
}
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-17 1:04 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-05-17 1:04 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 76eb8aca2be42ab83a3f61f1089b304c184fc171 (commit)
via eed0e7eb3a8adc67fbb8f8b4fe1d25c8abbffb6e (commit)
via d3127cbfffc1e22603ab33e2b170b443982d3c0d (commit)
via 45d63159a5eb58a3f886a12967f631e15a6a8033 (commit)
via 763b1b0909971ec7194f40b46463bc9e445f21e1 (commit)
via c4e099c7fc2b3dcbfcc5d8495d5adc29dd72fefa (commit)
via c0e7e8585870a69f35f76e2964a9a9cb48fb6c7c (commit)
via 7f448919c601711422297d7503ae0068a569b4f3 (commit)
via 73cb3c0c0abf8e99e179711c213bb299b1db8664 (commit)
via a1aa4b1a308f13116e3086f1a119b6142315facb (commit)
via 786b538a1fffb59984f486bf9c3a51e7c2260f6d (commit)
via 224ecb7432296c5bcb0569059146722a6c27d183 (commit)
via 1d73c6430d12db4a3ef5a0067b7f680ce474dbeb (commit)
via d57ea1b42c28e18372586f4822cc9c52e6930f67 (commit)
via 849e4de3f5a7651baf776d13e7c93cfe7f96cd56 (commit)
via f14dc0aa828b0af6b18341cc6b3c031244eac8d3 (commit)
via e9dff68d27e2246bd292098c52f25e92baecc6a5 (commit)
via 69a22d769f04d66c955eed3e20004fedd39353ff (commit)
via dacd66a53b559be9c26d2c523f168f1ef0261f4d (commit)
via 0bd6c4c5348c22cd439a4ccfea82f2b9396689f1 (commit)
via 37fa870f3822cb3ad1f3a62a0b57d007aead9f4a (commit)
via 7554f42cfecd702fa69ec6ce67c8a4b434855c39 (commit)
via 3e50a76881b3ddada2a06b8cf0314e1b9f5599bd (commit)
via cb5bd54a983a3b13537128a2f288ff13a4b36118 (commit)
via 17eee2f45635b901fb9696e16eb2b848034a0c57 (commit)
via 339f742d467e5c31621a1c1934da379ed026aec3 (commit)
via 65d22948e1ee7d60c1bc24175e7378f933e8d72c (commit)
via 4c4cb03d0f9e6ff0c36847a01967538b21764770 (commit)
via 02a908c3f47272b3ed63dcbbc9c735bff426ef33 (commit)
via 075880f2752690cf338eef2ebd94ad81ad00c9ba (commit)
via 193ac4644cab0eda4e542d01ab54675ea4b0438e (commit)
via 5c147e5cd9d0617d340fb64b68e4288be18d0678 (commit)
via d4a4ad49c97c6dea21edcc7742f831b4a0b1f4e9 (commit)
via cc7a462c5ddc233d5d949cf02c508b9e2f2aaa9a (commit)
via e1274d6c42755b31939e76b3b5ebbfe5de2766bc (commit)
via 483bf5dccb14b95941909ecef08259d20ad83e77 (commit)
via 0391c6359c9f4701d1ed7d29649420746be7aba5 (commit)
via bfda3b332453feeb231207a3a40cbb51946b7667 (commit)
via 0f0d6ce5d8b9fe12c84a32bbf8945b01ae2a2584 (commit)
via 9e1d61d8ebab220d0898011376454d87b2ee15bd (commit)
via 1bf3f9f807b58801bfc90d0cc8f3a138c740261f (commit)
via dee40292a0a33a2f1321cf4e06803ee834355d76 (commit)
via 968ef37339e0580ceb94f005f2c6bef9baeb0fe4 (commit)
via 7fc033979c34afd11b1d701b8181967614d6f7f6 (commit)
via 2b3e9632f18ae356fe2f8bbb55d6fe3c1bb72dbf (commit)
via 86bc417e1e37d1a2aaf8a04c5e16a18a2b93b613 (commit)
via a8d47413e803a3ae6f569ae9e2c3628bc97abd36 (commit)
via 18e4b987d91ec2f6bb3ccb108e99249553633792 (commit)
via 1b858d7d284e01c0a805bb0c6efe30b3dcb3b6be (commit)
via a594502bc186dd7abd3f1ef97368162cf153967b (commit)
from 6a5e91e5fad1b8e575f3127597fda514d2c1bc6b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 76eb8aca2be42ab83a3f61f1089b304c184fc171
Merge: 6a5e91e5fad1b8e575f3127597fda514d2c1bc6b eed0e7eb3a8adc67fbb8f8b4fe1d25c8abbffb6e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon May 17 03:03:39 2010 +0200
Merge remote branch 'gdb/master'
commit eed0e7eb3a8adc67fbb8f8b4fe1d25c8abbffb6e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon May 17 00:00:33 2010 +0000
*** empty log message ***
commit d3127cbfffc1e22603ab33e2b170b443982d3c0d
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun May 16 23:49:57 2010 +0000
2010-05-16 Michael Snyder <msnyder@vmware.com>
* scm-exp.c: White space.
* scm-lang.c: White space.
* scm-valprint.c: White space.
* sentinel-frame.c: White space.
* ser-base.c: White space.
* ser-go32.c: White space.
* serial.c: White space.
* ser-mingw.c: White space.
* ser-pipe.c: White space.
* ser-tcp.c: White space.
* ser-unix.c: White space.
* solib.c: White space.
* solib-darwin.c: White space.
* solib-frv.c: White space.
* solib-irix.c: White space.
* solib-osf.c: White space.
* solib-pa64.c: White space.
* solib-som.c: White space.
* solib-spu.c: White space.
* solib-svr4.c: White space.
* solib-target.c: White space.
* source.c: White space.
* stabsread.c: White space.
* stack.c: White space.
* std-regs.c: White space.
* symfile.c: White space.
* symmisc.c: White space.
* symtab.c: White space.
commit 45d63159a5eb58a3f886a12967f631e15a6a8033
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun May 16 21:26:53 2010 +0000
2010-05-16 Michael Snyder <msnyder@vmware.com>
* source.c (_initialize_source): Add "rev" as an abbreviation
for the "reverse-search" command.
commit 763b1b0909971ec7194f40b46463bc9e445f21e1
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun May 16 21:11:14 2010 +0000
2010-05-16 Michael Snyder <msnyder@vmware.com>
* record.c: White space.
* regcache.c: White space.
* reggroups.c: White space.
* remote-fileio.c: White space.
* remote-m32r-sdi.c: White space.
* remote-mips.c: White space.
* remote-sim.c: White space.
commit c4e099c7fc2b3dcbfcc5d8495d5adc29dd72fefa
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun May 16 21:07:21 2010 +0000
2010-05-16 Michael Snyder <msnyder@vmware.com>
* remote.c: White space.
(process_g_packet): Remove orphan braces.
commit c0e7e8585870a69f35f76e2964a9a9cb48fb6c7c
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun May 16 01:27:02 2010 +0000
2010-05-15 Michael Snyder <msnyder@vmware.com>
* parse.c: White space.
* p-lang.c: White space.
* posix-hdep.c: White space.
* printcmd.c: White space.
* progspace.c: White space.
* prologue-value.c: White space.
* psymtab.c: White space.
* p-typeprint.c: White space.
* p-valprint.c: White space.
commit 7f448919c601711422297d7503ae0068a569b4f3
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun May 16 00:46:46 2010 +0000
2010-05-15 Michael Snyder <msnyder@vmware.com>
* objc-lang.c: White space.
* objfiles.c: White space.
* observer.c: White space.
* osabi.c: White space.
* osdata.c: White space.
commit 73cb3c0c0abf8e99e179711c213bb299b1db8664
Author: Michael Snyder <msnyder@specifix.com>
Date: Sun May 16 00:18:00 2010 +0000
2010-05-15 Michael Snyder <msnyder@vmware.com>
* m2-lang.c: White space.
* m2-valprint.c: White space.
* macrocmd.c: White space.
* macroexp.c: White space.
* macroscope.c: White space.
* macrotab.c: White space.
* main.c: White space.
* maint.c: White space.
* mdebugread.c: White space.
* memattr.c: White space.
* minsyms.c: White space.
* monitor.c: White space.
commit a1aa4b1a308f13116e3086f1a119b6142315facb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun May 16 00:00:35 2010 +0000
*** empty log message ***
commit 786b538a1fffb59984f486bf9c3a51e7c2260f6d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun May 16 00:00:05 2010 +0000
daily update
commit 224ecb7432296c5bcb0569059146722a6c27d183
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat May 15 00:00:06 2010 +0000
daily update
commit 1d73c6430d12db4a3ef5a0067b7f680ce474dbeb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat May 15 00:00:04 2010 +0000
*** empty log message ***
commit d57ea1b42c28e18372586f4822cc9c52e6930f67
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 14 23:41:03 2010 +0000
2010-05-14 Michael Snyder <msnyder@vmware.com>
* jv-lang.c: White space.
* jv-typeprint.c: White space.
* jv-valprint.c: White space.
* language.c: White space.
* libunwind-frame.c: White space.
* linespec.c: White space.
* linux-nat.c: White space.
* linux-record.c: White space.
* linux-thread-db.c: White space.
commit 849e4de3f5a7651baf776d13e7c93cfe7f96cd56
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 14 21:25:50 2010 +0000
2010-05-14 Michael Snyder <msnyder@vmware.com>
* infcall.c: White space.
* inf-child.c: White space.
* infcmd.c: White space.
* inferior.c: White space.
* inf-loop.c: White space.
* inflow.c: White space.
* inline-frame.c: White space.
* interps.c: White space.
commit f14dc0aa828b0af6b18341cc6b3c031244eac8d3
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 14 20:17:36 2010 +0000
2010-05-14 Michael Snyder <msnyder@vmware.com>
* gcore.c: White space.
* gdb.c: White space.
* gdbtypes.c: White space.
* gnu-nat.c: White space.
* gnu-v2-abi.c: White space.
* gnu-v3-abi.c: White space.
commit e9dff68d27e2246bd292098c52f25e92baecc6a5
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 14 19:27:04 2010 +0000
2010-05-14 Michael Snyder <msnyder@vmware.com>
* findcmd.c: White space.
* findvar.c: White space.
* fork-child.c: White space.
* frame-base.c: White space.
* frame.c: White space.
* frame-unwind.c: White space.
* f-valprint.c: White space.
commit 69a22d769f04d66c955eed3e20004fedd39353ff
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 14 18:35:10 2010 +0000
2010-05-14 Michael Snyder <msnyder@vmware.com>
* elfread.c: White space.
* environ.c: White space.
* eval.c: White space.
* event-loop.c: White space.
* event-top.c: White space.
* exceptions.c: White space.
* exec.c: White space.
* expprint.c: White space.
commit dacd66a53b559be9c26d2c523f168f1ef0261f4d
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 14 17:53:11 2010 +0000
2010-05-14 Michael Snyder <msnyder@vmware.com>
* dbxread.c: White space.
* dcache.c: White space.
* disasm.c: White space.
* doublest.c: White space.
* dsrec.c: White space.
* dummy-frame.c: White space.
* dwarf2expr.c: White space.
* dwarf2-frame.c: White space.
* dwarf2loc.c: White space.
* dwarf2read.c: White space.
commit 0bd6c4c5348c22cd439a4ccfea82f2b9396689f1
Author: pmuldoon <pmuldoon>
Date: Fri May 14 11:11:25 2010 +0000
2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
PR python/11482
* python/py-value.c (valpy_hash): New function.
(value_object_type): Register valpy_hash.
2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
PR python/11482
* gdb.python/py-value.exp (test_value_hash): New function
commit 37fa870f3822cb3ad1f3a62a0b57d007aead9f4a
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri May 14 07:45:02 2010 +0000
2010-05-14 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
(_bfd_vms_get_object_record): Handle align byte only in the
foreign case.
commit 7554f42cfecd702fa69ec6ce67c8a4b434855c39
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri May 14 07:18:37 2010 +0000
2010-05-14 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
* libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
* libbfd.h: Regenerate.
* configure.in (havevecs): Define HAVE_all_vecs when
--enable-targets=all is set. Use AC_SUBST on it.
(tdefaults): Do not add havevecs.
(bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
* configure: Regenerate.
* Makefile.am (HAVEVECS): New variable.
(INCLUDES): Add HAVEVECS.
* Makefile.in: Regenerate.
* elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
target is selected. Add #ifdef/#endif around vms specific code.
(bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
bfd_elfNN_archive_slurp_extended_name_table,
bfd_elfNN_archive_construct_extended_name_table,
bfd_elfNN_archive_truncate_arname,
bfd_elfNN_archive_write_armap,
bfd_elfNN_archive_read_ar_hdr,
bfd_elfNN_archive_write_ar_hdr,
bfd_elfNN_archive_openr_next_archived_file,
bfd_elfNN_archive_get_elt_at_index,
bfd_elfNN_archive_generic_stat_arch_elt,
bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
commit 3e50a76881b3ddada2a06b8cf0314e1b9f5599bd
Author: Hui Zhu <teawater@gmail.com>
Date: Fri May 14 06:38:44 2010 +0000
2010-05-14 Hui Zhu <teawater@gmail.com>
Michael Snyder <msnyder@vmware.com>
* linux-fork.c (gdbthread.h): New include.
(fork_info): Add parent_ptid.
(inferior_call_waitpid_cleanup, inferior_call_waitpid): New
functions.
(delete_checkpoint_command): Call inferior_call_waitpid.
(checkpoint_command): Set parent_ptid.
commit cb5bd54a983a3b13537128a2f288ff13a4b36118
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 14 00:23:26 2010 +0000
2010-05-13 Michael Snyder <msnyder@vmware.com>
* dictionary.c: Re-indent to GNU coding standard.
commit 17eee2f45635b901fb9696e16eb2b848034a0c57
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri May 14 00:00:05 2010 +0000
daily update
commit 339f742d467e5c31621a1c1934da379ed026aec3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri May 14 00:00:02 2010 +0000
*** empty log message ***
commit 65d22948e1ee7d60c1bc24175e7378f933e8d72c
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 13 23:53:31 2010 +0000
2010-05-13 Michael Snyder <msnyder@vmware.com>
* charset.c: White space.
* c-lang.c: White space.
* cli-out.c: White space.
* coffread.c: White space.
* complaints.c: White space.
* completer.c: White space.
* corefile.c: White space.
* corelow.c: White space.
* cp-abi.c: White space.
* cp-namespace.c: White space.
* cp-support.c: White space.
* cp-valprint.c: White space.
* c-typeprint.c: White space.
* c-valprint.c: White space.
commit 4c4cb03d0f9e6ff0c36847a01967538b21764770
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 13 22:44:00 2010 +0000
2010-05-13 Michael Snyder <msnyder@vmware.com>
* blockframe.c: White space.
* breakpoint.c: White space.
* buildsym.c: White space.
commit 02a908c3f47272b3ed63dcbbc9c735bff426ef33
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 13 22:04:57 2010 +0000
2010-05-13 Michael Snyder <msnyder@vmware.com>
* bcache.c: White space.
commit 075880f2752690cf338eef2ebd94ad81ad00c9ba
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 13 21:56:57 2010 +0000
2010-05-13 Michael Snyder <msnyder@vmware.com>
* gdbarch.sh: White space, add blank lines.
* arch-utils.c: Ditto.
* gdbarch.c: Regenerate.
commit 193ac4644cab0eda4e542d01ab54675ea4b0438e
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 13 21:36:06 2010 +0000
2010-05-13 Michael Snyder <msnyder@vmware.com>
* frame.c: White space, add blank lines.
commit 5c147e5cd9d0617d340fb64b68e4288be18d0678
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 13 21:24:19 2010 +0000
2010-05-13 Michael Snyder <msnyder@vmware.com>
* stack.c: White space, add blank lines.
commit d4a4ad49c97c6dea21edcc7742f831b4a0b1f4e9
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 13 21:11:39 2010 +0000
2010-05-13 Michael Snyder <msnyder@vmware.com>
* stack.c (initialize_stack): Remove long-dead code.
commit cc7a462c5ddc233d5d949cf02c508b9e2f2aaa9a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu May 13 15:44:35 2010 +0000
gdb/
Code cleanup.
* dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
(locexpr_read_variable, loclist_read_variable): Update the callers.
commit e1274d6c42755b31939e76b3b5ebbfe5de2766bc
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu May 13 09:09:18 2010 +0000
gdb/
Code cleanup.
* dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
Remove check of NULL returned by tag_type_to_type.
(die_containing_type): Remove variable type. Remove type_die variable
initialization. Remove check of NULL returned by tag_type_to_type.
commit 483bf5dccb14b95941909ecef08259d20ad83e77
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu May 13 06:30:07 2010 +0000
Correct wclr encoding.
commit 0391c6359c9f4701d1ed7d29649420746be7aba5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu May 13 00:00:07 2010 +0000
daily update
commit bfda3b332453feeb231207a3a40cbb51946b7667
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu May 13 00:00:04 2010 +0000
*** empty log message ***
commit 0f0d6ce5d8b9fe12c84a32bbf8945b01ae2a2584
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed May 12 00:00:34 2010 +0000
*** empty log message ***
commit 9e1d61d8ebab220d0898011376454d87b2ee15bd
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed May 12 00:00:06 2010 +0000
daily update
commit 1bf3f9f807b58801bfc90d0cc8f3a138c740261f
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue May 11 22:03:02 2010 +0000
2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
PR exp/11530.
* gdbtypes.c (lookup_struct_elt_type): Also lookup
names of unnamed structures or unions.
testsuite ChangeLog entry:
2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
PR exp/11530.
* testsuite/gdb.base/gdb11530.c: New file.
* testsuite/gdb.base/gdb11530.exp: New file.
commit dee40292a0a33a2f1321cf4e06803ee834355d76
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue May 11 21:55:46 2010 +0000
* procfs.c (proc_watchpoint_address): New function.
(procfs_stopped_by_watchpoint): Remove useless check after
find_procinfo_or_die call.
(procfs_stopped_data_address): New function.
(procfs_use_watchpoints): Register new watchpoint related function.
commit 968ef37339e0580ceb94f005f2c6bef9baeb0fe4
Author: Nick Clifton <nickc@redhat.com>
Date: Tue May 11 17:36:25 2010 +0000
2010-05-10 Andrew Stubbs <ams@codesourcery.com>
gas/
* config/tc-arm.c (aeabi_set_public_attributes): Set Tag_DIV_use.
gas/testsuite/
* gas/arm/attr-cpu-directive.d: Add Tag_DIV_use.
* gas/arm/attr-default.d: Likewise.
* gas/arm/attr-march-armv1.d: Likewise.
* gas/arm/attr-march-armv2.d: Likewise.
* gas/arm/attr-march-armv2a.d: Likewise.
* gas/arm/attr-march-armv2s.d: Likewise.
* gas/arm/attr-march-armv3.d: Likewise.
* gas/arm/attr-march-armv3m.d: Likewise.
* gas/arm/attr-march-armv4.d: Likewise.
* gas/arm/attr-march-armv4t.d: Likewise.
* gas/arm/attr-march-armv4txm.d: Likewise.
* gas/arm/attr-march-armv4xm.d: Likewise.
* gas/arm/attr-march-armv5.d: Likewise.
* gas/arm/attr-march-armv5t.d: Likewise.
* gas/arm/attr-march-armv5te.d: Likewise.
* gas/arm/attr-march-armv5tej.d: Likewise.
* gas/arm/attr-march-armv5texp.d: Likewise.
* gas/arm/attr-march-armv5txm.d: Likewise.
* gas/arm/attr-march-armv6-m.d: Likewise.
* gas/arm/attr-march-armv6.d: Likewise.
* gas/arm/attr-march-armv6j.d: Likewise.
* gas/arm/attr-march-armv6k.d: Likewise.
* gas/arm/attr-march-armv6kt2.d: Likewise.
* gas/arm/attr-march-armv6t2.d: Likewise.
* gas/arm/attr-march-armv6z.d: Likewise.
* gas/arm/attr-march-armv6zk.d: Likewise.
* gas/arm/attr-march-armv6zkt2.d: Likewise.
* gas/arm/attr-march-armv6zt2.d: Likewise.
* gas/arm/attr-march-armv7-a.d: Likewise.
* gas/arm/attr-march-armv7.d: Likewise.
* gas/arm/attr-march-armv7a.d: Likewise.
* gas/arm/attr-march-iwmmxt.d: Likewise.
* gas/arm/attr-march-iwmmxt2.d: Likewise.
* gas/arm/attr-march-marvell-f.d: Likewise.
* gas/arm/attr-march-xscale.d: Likewise.
* gas/arm/attr-mcpu.d: Likewise.
* gas/arm/attr-mfpu-arm1020e.d: Likewise.
* gas/arm/attr-mfpu-arm1020t.d: Likewise.
* gas/arm/attr-mfpu-arm1136jf-s.d: Likewise.
* gas/arm/attr-mfpu-arm1136jfs.d: Likewise.
* gas/arm/attr-mfpu-arm7500fe.d: Likewise.
* gas/arm/attr-mfpu-fpa.d: Likewise.
* gas/arm/attr-mfpu-fpa10.d: Likewise.
* gas/arm/attr-mfpu-fpa11.d: Likewise.
* gas/arm/attr-mfpu-fpe.d: Likewise.
* gas/arm/attr-mfpu-fpe2.d: Likewise.
* gas/arm/attr-mfpu-fpe3.d: Likewise.
* gas/arm/attr-mfpu-maverick.d: Likewise.
* gas/arm/attr-mfpu-neon-fp16.d: Likewise.
* gas/arm/attr-mfpu-neon.d: Likewise.
* gas/arm/attr-mfpu-softfpa.d: Likewise.
* gas/arm/attr-mfpu-softvfp+vfp.d: Likewise.
* gas/arm/attr-mfpu-softvfp.d: Likewise.
* gas/arm/attr-mfpu-vfp.d: Likewise.
* gas/arm/attr-mfpu-vfp10-r0.d: Likewise.
* gas/arm/attr-mfpu-vfp10.d: Likewise.
* gas/arm/attr-mfpu-vfp3.d: Likewise.
* gas/arm/attr-mfpu-vfp9.d: Likewise.
* gas/arm/attr-mfpu-vfpv2.d: Likewise.
* gas/arm/attr-mfpu-vfpv3-d16.d: Likewise.
* gas/arm/attr-mfpu-vfpv3.d: Likewise.
* gas/arm/attr-mfpu-vfpv4-d16.d: Likewise.
* gas/arm/attr-mfpu-vfpv4.d: Likewise.
* gas/arm/attr-mfpu-vfpxd.d: Likewise.
* gas/arm/attr-order.d: Likewise.
* gas/arm/attr-override-cpu-directive.d: Likewise.
* gas/arm/attr-override-mcpu.d: Likewise.
* gas/arm/eabi_attr_1.d: Likewise.
ld/testsuite/
* ld-arm/attr-merge-2.attr: Add Tag_DIV_use.
* ld-arm/attr-merge-2a.s: Likewise.
* ld-arm/attr-merge-2b.s: Likewise.
* ld-arm/attr-merge-3a.s: Likewise.
* ld-arm/attr-merge-3b.s: Likewise.
* ld-arm/attr-merge-4.attr: Likewise.
* ld-arm/attr-merge-5.attr: Likewise.
* ld-arm/attr-merge-6.attr: Likewise.
* ld-arm/attr-merge-7.attr: Likewise.
* ld-arm/attr-merge-arch-1.attr: Likewise.
* ld-arm/attr-merge-arch-2.attr: Likewise.
* ld-arm/attr-merge-unknown-2.d: Likewise.
* ld-arm/attr-merge-unknown-2r.d: Likewise.
* ld-arm/attr-merge-unknown-3.d: Likewise.
* ld-arm/attr-merge-vfp-1.d: Likewise.
* ld-arm/attr-merge-vfp-1r.d: Likewise.
* ld-arm/attr-merge-vfp-2.d: Likewise.
* ld-arm/attr-merge-vfp-2r.d: Likewise.
* ld-arm/attr-merge-vfp-3.d: Likewise.
* ld-arm/attr-merge-vfp-3r.d: Likewise.
* ld-arm/attr-merge-vfp-4.d: Likewise.
* ld-arm/attr-merge-vfp-4r.d: Likewise.
* ld-arm/attr-merge-vfp-5.d: Likewise.
* ld-arm/attr-merge-vfp-5r.d: Likewise.
* ld-arm/attr-merge-wchar-00-nowarn.d: Likewise.
* ld-arm/attr-merge-wchar-00.d: Likewise.
* ld-arm/attr-merge-wchar-02-nowarn.d: Likewise.
* ld-arm/attr-merge-wchar-02.d: Likewise.
* ld-arm/attr-merge-wchar-04-nowarn.d: Likewise.
* ld-arm/attr-merge-wchar-04.d: Likewise.
* ld-arm/attr-merge-wchar-20-nowarn.d: Likewise.
* ld-arm/attr-merge-wchar-20.d: Likewise.
* ld-arm/attr-merge-wchar-22-nowarn.d: Likewise.
* ld-arm/attr-merge-wchar-22.d: Likewise.
* ld-arm/attr-merge-wchar-24-nowarn.d: Likewise.
* ld-arm/attr-merge-wchar-40-nowarn.d: Likewise.
* ld-arm/attr-merge-wchar-40.d: Likewise.
* ld-arm/attr-merge-wchar-42-nowarn.d: Likewise.
* ld-arm/attr-merge-wchar-44-nowarn.d: Likewise.
* ld-arm/attr-merge-wchar-44.d: Likewise.
* ld-arm/attr-merge.attr: Likewise.
2010-04-07 Jie Zhang <jie@codesourcery.com>
gas/
* config/tc-arm.c (aeabi_set_public_attributes): Set
Tag_ABI_HardFP_use to 1 if a single precision FPU is selected.
gas/testsuite/
* gas/arm/attr-mfpu-vfpxd.d: New test.
bfd/
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
Tag_ABI_HardFP_use correctly.
ld/testsuite/
* ld-arm/attr-merge-vfp-6.d: New test.
* ld-arm/attr-merge-vfp-6r.d: New test.
* ld-arm/attr-merge-vfpv3xd.s: New test.
* ld-arm/arm-elf.exp: Add attr-merge-vfp-6 and attr-merge-vfp-6r.
2010-05-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* arm-dis.c (thumb_opcodes): Update ldmia entry to use new %W
format.
(print_insn_thumb16): Add support for new %W format.
* gas/arm/thumb32.d: Fix expected disassembly of ldmia
instruction.
commit 7fc033979c34afd11b1d701b8181967614d6f7f6
Author: Tom Tromey <tromey@redhat.com>
Date: Tue May 11 16:54:28 2010 +0000
* eval.c (evaluate_subexp_standard): Revert inadvertent change.
commit 2b3e9632f18ae356fe2f8bbb55d6fe3c1bb72dbf
Author: Joel Sherrill <joel@oarcorp.com>
Date: Tue May 11 14:18:20 2010 +0000
2010-04-20 Tiemen Schut <T.Schut@sron.nl>
* erc32.c (sis_memory_write): Change prototype to const unsigned char *.
* func.c (exec_cmd, event, advance_time, wait_for_irq): Use uint64
for counts.
* interf.c (run_sim): Change icount to uint64_t. Use strtol directly.
(sim_resume): Specify maximum run time as uint64.
* sis.c (run_sim): Change icount to uint64_t.
* sis.h: Define uint64 as uint64_t. Change various fields and
prototypes to uint64 to support longer simulations.
commit 86bc417e1e37d1a2aaf8a04c5e16a18a2b93b613
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue May 11 04:42:09 2010 +0000
* coffcode.h (coff_write_object_contents): Enclose all occurrences
of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
commit a8d47413e803a3ae6f569ae9e2c3628bc97abd36
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue May 11 00:00:08 2010 +0000
*** empty log message ***
commit 18e4b987d91ec2f6bb3ccb108e99249553633792
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue May 11 00:00:08 2010 +0000
daily update
commit 1b858d7d284e01c0a805bb0c6efe30b3dcb3b6be
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 10 20:58:00 2010 +0000
2010-05-10 Michael Snyder <msnyder@vmware.com>
* utils.c: White space cleanup.
commit a594502bc186dd7abd3f1ef97368162cf153967b
Author: Tom Tromey <tromey@redhat.com>
Date: Mon May 10 20:20:21 2010 +0000
* eval.c (ptrmath_type_p): Add 'lang' argument.
(evaluate_subexp_standard): Update.
(evaluate_subexp_with_coercion): Update.
* language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 43 +++++
bfd/Makefile.am | 4 +-
bfd/Makefile.in | 6 +-
bfd/coffcode.h | 6 +-
bfd/configure | 11 +-
bfd/configure.in | 6 +-
bfd/elf32-arm.c | 46 +++++-
bfd/elfxx-ia64.c | 45 +++++
bfd/libbfd-in.h | 1 +
bfd/libbfd.h | 1 +
bfd/version.h | 2 +-
bfd/vms-alpha.c | 6 +-
bfd/vms-lib.c | 8 +
gdb/ChangeLog | 225 ++++++++++++++++++++++++++
gdb/arch-utils.c | 3 +-
gdb/bcache.c | 25 ++--
gdb/blockframe.c | 1 +
gdb/breakpoint.c | 58 ++++++-
gdb/buildsym.c | 4 +-
gdb/c-lang.c | 10 ++
gdb/c-typeprint.c | 11 +-
gdb/c-valprint.c | 10 +-
gdb/charset.c | 4 +-
gdb/cli-out.c | 24 +++-
gdb/coffread.c | 13 ++-
gdb/complaints.c | 2 +
gdb/completer.c | 5 +-
gdb/corefile.c | 17 ++-
gdb/corelow.c | 5 +-
gdb/cp-abi.c | 3 +-
gdb/cp-namespace.c | 4 +
gdb/cp-support.c | 6 +-
gdb/cp-valprint.c | 9 +-
gdb/dbxread.c | 30 +++-
gdb/dcache.c | 3 +
gdb/dictionary.c | 46 +++---
gdb/disasm.c | 4 +
gdb/doublest.c | 14 ++
gdb/dsrec.c | 1 +
gdb/dummy-frame.c | 5 +
gdb/dwarf2-frame.c | 6 +
gdb/dwarf2expr.c | 6 +
gdb/dwarf2loc.c | 56 ++++---
gdb/dwarf2read.c | 92 ++++++-----
gdb/elfread.c | 2 +
gdb/environ.c | 1 +
gdb/eval.c | 74 +++++++---
gdb/event-loop.c | 2 +-
gdb/event-top.c | 3 +-
gdb/exceptions.c | 9 +
gdb/exec.c | 3 +-
gdb/expprint.c | 10 ++
gdb/f-valprint.c | 15 ++-
gdb/findcmd.c | 4 +
gdb/findvar.c | 14 +-
gdb/fork-child.c | 1 +
gdb/frame-base.c | 4 +
gdb/frame-unwind.c | 1 +
gdb/frame.c | 26 +++
gdb/gcore.c | 2 +
gdb/gdb.c | 1 +
gdb/gdbarch.c | 9 +-
gdb/gdbarch.sh | 9 +-
gdb/gdbtypes.c | 64 +++++---
gdb/gnu-nat.c | 56 ++++++--
gdb/gnu-v2-abi.c | 8 +-
gdb/gnu-v3-abi.c | 3 +
gdb/inf-child.c | 1 +
gdb/inf-loop.c | 1 +
gdb/infcall.c | 9 +
gdb/infcmd.c | 18 ++-
gdb/inferior.c | 5 +
gdb/inflow.c | 1 +
gdb/infrun.c | 38 +++++-
gdb/inline-frame.c | 2 +
gdb/interps.c | 2 +
gdb/jv-lang.c | 22 +++
gdb/jv-typeprint.c | 3 +-
gdb/jv-valprint.c | 6 +
gdb/language.c | 9 +-
gdb/language.h | 6 +-
gdb/libunwind-frame.c | 2 +
gdb/linespec.c | 14 ++-
gdb/linux-fork.c | 79 +++++++++
gdb/linux-nat.c | 127 ++++++++-------
gdb/linux-record.c | 41 +++++-
gdb/linux-thread-db.c | 13 +-
gdb/m2-lang.c | 11 +-
gdb/m2-valprint.c | 8 +
gdb/macrocmd.c | 3 +
gdb/macroexp.c | 6 +
gdb/macroscope.c | 1 +
gdb/macrotab.c | 6 +
gdb/main.c | 2 +
gdb/maint.c | 5 +-
gdb/mdebugread.c | 24 ++-
gdb/memattr.c | 17 +-
gdb/minsyms.c | 8 +
gdb/monitor.c | 23 +++-
gdb/objc-lang.c | 217 +++++++++++++------------
gdb/objfiles.c | 147 +++++++++---------
gdb/observer.c | 1 +
gdb/osabi.c | 1 +
gdb/osdata.c | 9 +
gdb/p-lang.c | 5 +-
gdb/p-typeprint.c | 4 +-
gdb/p-valprint.c | 28 +++-
gdb/parse.c | 24 ++--
gdb/posix-hdep.c | 1 +
gdb/printcmd.c | 18 ++-
gdb/procfs.c | 52 ++++++-
gdb/progspace.c | 3 +
gdb/prologue-value.c | 3 +
gdb/psymtab.c | 12 ++
gdb/python/py-value.c | 10 +-
gdb/record.c | 161 ++++++++++---------
gdb/regcache.c | 33 ++++
gdb/reggroups.c | 5 +
gdb/remote-fileio.c | 2 +
gdb/remote-m32r-sdi.c | 8 +
gdb/remote-mips.c | 10 +-
gdb/remote-sim.c | 10 +-
gdb/remote.c | 96 ++++++++---
gdb/scm-exp.c | 6 +
gdb/scm-lang.c | 4 +
gdb/scm-valprint.c | 6 +
gdb/sentinel-frame.c | 2 +
gdb/ser-base.c | 2 +
gdb/ser-go32.c | 1 +
gdb/ser-mingw.c | 2 +
gdb/ser-pipe.c | 3 +
gdb/ser-tcp.c | 3 +
gdb/ser-unix.c | 2 +
gdb/serial.c | 1 +
gdb/solib-darwin.c | 2 +
gdb/solib-frv.c | 1 +
gdb/solib-irix.c | 2 +-
gdb/solib-osf.c | 1 +
gdb/solib-pa64.c | 3 +-
gdb/solib-som.c | 2 +-
gdb/solib-spu.c | 4 +
gdb/solib-svr4.c | 5 +
gdb/solib-target.c | 4 +
gdb/solib.c | 6 +
gdb/source.c | 5 +
gdb/stabsread.c | 44 +++++-
gdb/stack.c | 30 ++--
gdb/std-regs.c | 6 +
gdb/symfile.c | 3 +-
gdb/symmisc.c | 3 +
gdb/symtab.c | 72 ++++++---
gdb/testsuite/ChangeLog | 12 ++
gdb/{gdb.c => testsuite/gdb.base/gdb11530.c} | 33 ++--
gdb/testsuite/gdb.base/gdb11530.exp | 55 +++++++
gdb/testsuite/gdb.python/py-value.exp | 18 ++
gdb/utils.c | 40 +++++
gdb/version.in | 2 +-
opcodes/ChangeLog | 10 ++
opcodes/arm-dis.c | 11 ++-
opcodes/ppc-opc.c | 8 +-
sim/erc32/ChangeLog | 11 ++
sim/erc32/erc32.c | 6 +-
sim/erc32/func.c | 22 ++--
sim/erc32/interf.c | 8 +-
sim/erc32/sis.c | 2 +-
sim/erc32/sis.h | 47 +++---
166 files changed, 2352 insertions(+), 739 deletions(-)
copy gdb/{gdb.c => testsuite/gdb.base/gdb11530.c} (58%)
create mode 100644 gdb/testsuite/gdb.base/gdb11530.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2302ae4..02f9c05 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,46 @@
+2010-05-14 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
+ (_bfd_vms_get_object_record): Handle align byte only in the
+ foreign case.
+
+2010-05-14 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
+ * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
+ * libbfd.h: Regenerate.
+ * configure.in (havevecs): Define HAVE_all_vecs when
+ --enable-targets=all is set. Use AC_SUBST on it.
+ (tdefaults): Do not add havevecs.
+ (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
+ * configure: Regenerate.
+ * Makefile.am (HAVEVECS): New variable.
+ (INCLUDES): Add HAVEVECS.
+ * Makefile.in: Regenerate.
+ * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
+ target is selected. Add #ifdef/#endif around vms specific code.
+ (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
+ bfd_elfNN_archive_slurp_extended_name_table,
+ bfd_elfNN_archive_construct_extended_name_table,
+ bfd_elfNN_archive_truncate_arname,
+ bfd_elfNN_archive_write_armap,
+ bfd_elfNN_archive_read_ar_hdr,
+ bfd_elfNN_archive_write_ar_hdr,
+ bfd_elfNN_archive_openr_next_archived_file,
+ bfd_elfNN_archive_get_elt_at_index,
+ bfd_elfNN_archive_generic_stat_arch_elt,
+ bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
+
+2010-05-11 Jie Zhang <jie@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
+ Tag_ABI_HardFP_use correctly.
+
+2010-05-11 Alan Modra <amodra@gmail.com>
+
+ * coffcode.h (coff_write_object_contents): Enclose all occurrences
+ of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
+
2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
* elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index ef545f5..e625930 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -682,8 +682,10 @@ ALL_BACKENDS = @all_backends@
BFD_BACKENDS = @bfd_backends@
BFD_MACHINES = @bfd_machines@
TDEFAULTS = @tdefaults@
+HAVEVECS = @havevecs@
-INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) @INCINTL@
+INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) \
+ $(HAVEVECS) @INCINTL@
# C source files that correspond to .o's.
SOURCE_CFILES = \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index f78a006..e21c1cd 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -277,6 +277,7 @@ datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
+havevecs = @havevecs@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
@@ -982,7 +983,10 @@ ALL_BACKENDS = @all_backends@
BFD_BACKENDS = @bfd_backends@
BFD_MACHINES = @bfd_machines@
TDEFAULTS = @tdefaults@
-INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) @INCINTL@
+HAVEVECS = @havevecs@
+INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) \
+ $(HAVEVECS) @INCINTL@
+
# C source files that correspond to .o's.
SOURCE_CFILES = \
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 364daaa..1cf2b4e 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -3533,7 +3533,9 @@ coff_write_object_contents (bfd * abfd)
asection *current;
bfd_boolean hasrelocs = FALSE;
bfd_boolean haslinno = FALSE;
+#ifdef COFF_IMAGE_WITH_PE
bfd_boolean hasdebug = FALSE;
+#endif
file_ptr scn_base;
file_ptr reloc_base;
file_ptr lineno_base;
@@ -3636,9 +3638,9 @@ coff_write_object_contents (bfd * abfd)
current = current->next)
{
struct internal_scnhdr section;
+#ifdef COFF_IMAGE_WITH_PE
bfd_boolean is_reloc_section = FALSE;
-#ifdef COFF_IMAGE_WITH_PE
if (strcmp (current->name, DOT_RELOC) == 0)
{
is_reloc_section = TRUE;
@@ -3737,9 +3739,11 @@ coff_write_object_contents (bfd * abfd)
#endif
if (current->lineno_count != 0)
haslinno = TRUE;
+#ifdef COFF_IMAGE_WITH_PE
if ((current->flags & SEC_DEBUGGING) != 0
&& ! is_reloc_section)
hasdebug = TRUE;
+#endif
#ifdef RS6000COFF_C
#ifndef XCOFF64
diff --git a/bfd/configure b/bfd/configure
index 6ace16c..a8b15a3 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -602,6 +602,7 @@ ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
+havevecs
tdefaults
bfd_ufile_ptr
bfd_file_ptr
@@ -11405,7 +11406,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11408 "configure"
+#line 11409 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11511,7 +11512,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11514 "configure"
+#line 11515 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -15163,7 +15164,7 @@ do
bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
- bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
+ bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
@@ -15354,7 +15355,7 @@ if test x${all_targets} = xtrue ; then
bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
selvecs=
- havevecs=
+ havevecs=-DHAVE_all_vecs
selarchs=
test -n "$assocvecs" &&
assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
@@ -15500,7 +15501,7 @@ test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
-test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
+
for ac_header in stdlib.h unistd.h
diff --git a/bfd/configure.in b/bfd/configure.in
index 6f05505..dbbadc0 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -801,7 +801,7 @@ do
bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
- bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
+ bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
@@ -992,7 +992,7 @@ if test x${all_targets} = xtrue ; then
bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
selvecs=
- havevecs=
+ havevecs=-DHAVE_all_vecs
selarchs=
test -n "$assocvecs" &&
assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
@@ -1077,8 +1077,8 @@ test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
-test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
AC_SUBST(tdefaults)
+AC_SUBST(havevecs)
dnl AC_CHECK_HEADERS(sys/mman.h)
AC_FUNC_MMAP
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 18fddc6..df25977 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -10106,6 +10106,11 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, bfd *obfd)
break;
case Tag_FP_arch:
{
+ /* Tag_ABI_HardFP_use is handled along with Tag_FP_arch since
+ the meaning of Tag_ABI_HardFP_use depends on Tag_FP_arch
+ when it's 0. It might mean absence of FP hardware if
+ Tag_FP_arch is zero, otherwise it is effectively SP + DP. */
+
static const struct
{
int ver;
@@ -10124,6 +10129,40 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, bfd *obfd)
int regs;
int newval;
+ /* If the output has no requirement about FP hardware,
+ follow the requirement of the input. */
+ if (out_attr[i].i == 0)
+ {
+ BFD_ASSERT (out_attr[Tag_ABI_HardFP_use].i == 0);
+ out_attr[i].i = in_attr[i].i;
+ out_attr[Tag_ABI_HardFP_use].i
+ = in_attr[Tag_ABI_HardFP_use].i;
+ break;
+ }
+ /* If the input has no requirement about FP hardware, do
+ nothing. */
+ else if (in_attr[i].i == 0)
+ {
+ BFD_ASSERT (in_attr[Tag_ABI_HardFP_use].i == 0);
+ break;
+ }
+
+ /* Both the input and the output have nonzero Tag_FP_arch.
+ So Tag_ABI_HardFP_use is (SP & DP) when it's zero. */
+
+ /* If both the input and the output have zero Tag_ABI_HardFP_use,
+ do nothing. */
+ if (in_attr[Tag_ABI_HardFP_use].i == 0
+ && out_attr[Tag_ABI_HardFP_use].i == 0)
+ ;
+ /* If the input and the output have different Tag_ABI_HardFP_use,
+ the combination of them is 3 (SP & DP). */
+ else if (in_attr[Tag_ABI_HardFP_use].i
+ != out_attr[Tag_ABI_HardFP_use].i)
+ out_attr[Tag_ABI_HardFP_use].i = 3;
+
+ /* Now we can handle Tag_FP_arch. */
+
/* Values greater than 6 aren't defined, so just pick the
biggest */
if (in_attr[i].i > 6 && in_attr[i].i > out_attr[i].i)
@@ -10244,12 +10283,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, bfd *obfd)
/* Merged in target-independent code. */
break;
case Tag_ABI_HardFP_use:
- /* 1 (SP) and 2 (DP) conflict, so combine to 3 (SP & DP). */
- if ((in_attr[i].i == 1 && out_attr[i].i == 2)
- || (in_attr[i].i == 2 && out_attr[i].i == 1))
- out_attr[i].i = 3;
- else if (in_attr[i].i > out_attr[i].i)
- out_attr[i].i = in_attr[i].i;
+ /* This is handled along with Tag_FP_arch. */
break;
case Tag_ABI_FP_16bit_format:
if (in_attr[i].i != 0 && out_attr[i].i != 0)
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index 7fde3d5..93baaf1 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -67,6 +67,15 @@
MIN_PLT Created by PLTOFF entries against dynamic symbols. This
does not require dynamic relocations. */
+/* Only add code for vms when the vms target is enabled. This is required
+ because it depends on vms-lib.c for its archive format and we don't want
+ to compile that code if it is not used. */
+#if ARCH_SIZE == 64 && \
+ (defined (HAVE_bfd_elf64_ia64_vms_vec) || defined (HAVE_all_vecs))
+#define INCLUDE_IA64_VMS
+#endif
+
+
#define NELEMS(a) ((int) (sizeof (a) / sizeof ((a)[0])))
typedef struct bfd_hash_entry *(*new_hash_entry_func)
@@ -5723,6 +5732,8 @@ elfNN_hpux_backend_symbol_processing (bfd *abfd ATTRIBUTE_UNUSED,
}
}
+#ifdef INCLUDE_IA64_VMS
+
static bfd_boolean
elfNN_vms_section_from_shdr (bfd *abfd,
Elf_Internal_Shdr *hdr,
@@ -5984,6 +5995,7 @@ elfNN_vms_close_and_cleanup (bfd *abfd)
return _bfd_generic_close_and_cleanup (abfd);
}
+#endif /* INCLUDE_IA64_VMS */
\f
#define TARGET_LITTLE_SYM bfd_elfNN_ia64_little_vec
#define TARGET_LITTLE_NAME "elfNN-ia64-little"
@@ -6117,6 +6129,7 @@ elfNN_vms_close_and_cleanup (bfd *abfd)
#include "elfNN-target.h"
/* VMS-specific vectors. */
+#ifdef INCLUDE_IA64_VMS
#undef TARGET_LITTLE_SYM
#define TARGET_LITTLE_SYM bfd_elfNN_ia64_vms_vec
@@ -6160,4 +6173,36 @@ elfNN_vms_close_and_cleanup (bfd *abfd)
#undef elfNN_bed
#define elfNN_bed elfNN_ia64_vms_bed
+/* Use VMS-style archives (in particular, don't use the standard coff
+ archive format). */
+#define bfd_elfNN_archive_functions
+
+#undef bfd_elfNN_archive_p
+#define bfd_elfNN_archive_p _bfd_vms_lib_ia64_archive_p
+
+#define bfd_elfNN_archive_slurp_armap \
+ _bfd_vms_lib_slurp_armap
+#define bfd_elfNN_archive_slurp_extended_name_table \
+ _bfd_vms_lib_slurp_extended_name_table
+#define bfd_elfNN_archive_construct_extended_name_table \
+ _bfd_vms_lib_construct_extended_name_table
+#define bfd_elfNN_archive_truncate_arname \
+ _bfd_vms_lib_truncate_arname
+#define bfd_elfNN_archive_write_armap \
+ _bfd_vms_lib_write_armap
+#define bfd_elfNN_archive_read_ar_hdr \
+ _bfd_vms_lib_read_ar_hdr
+#define bfd_elfNN_archive_write_ar_hdr \
+ _bfd_vms_lib_write_ar_hdr
+#define bfd_elfNN_archive_openr_next_archived_file \
+ _bfd_vms_lib_openr_next_archived_file
+#define bfd_elfNN_archive_get_elt_at_index \
+ _bfd_vms_lib_get_elt_at_index
+#define bfd_elfNN_archive_generic_stat_arch_elt \
+ _bfd_vms_lib_generic_stat_arch_elt
+#define bfd_elfNN_archive_update_armap_timestamp \
+ _bfd_vms_lib_update_armap_timestamp
+
#include "elfNN-target.h"
+
+#endif /* INCLUDE_IA64_VMS */
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 89d0df6..5e636a3 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -375,6 +375,7 @@ extern int _bfd_vms_lib_generic_stat_arch_elt (bfd *, struct stat *);
extern symindex _bfd_vms_lib_find_symbol (bfd *, const char *);
extern bfd *_bfd_vms_lib_get_imagelib_file (bfd *);
extern const bfd_target *_bfd_vms_lib_alpha_archive_p (bfd *abfd);
+extern const bfd_target *_bfd_vms_lib_ia64_archive_p (bfd *abfd);
extern bfd_boolean _bfd_vms_lib_mkarchive (bfd *abfd);
/* Routines to use for BFD_JUMP_TABLE_SYMBOLS where there is no symbol
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index c02063a..7275dd9 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -380,6 +380,7 @@ extern int _bfd_vms_lib_generic_stat_arch_elt (bfd *, struct stat *);
extern symindex _bfd_vms_lib_find_symbol (bfd *, const char *);
extern bfd *_bfd_vms_lib_get_imagelib_file (bfd *);
extern const bfd_target *_bfd_vms_lib_alpha_archive_p (bfd *abfd);
+extern const bfd_target *_bfd_vms_lib_ia64_archive_p (bfd *abfd);
extern bfd_boolean _bfd_vms_lib_mkarchive (bfd *abfd);
/* Routines to use for BFD_JUMP_TABLE_SYMBOLS where there is no symbol
diff --git a/bfd/version.h b/bfd/version.h
index bbb1bd5..00b97cd 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100510
+#define BFD_VERSION_DATE 20100516
#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/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 5ae54c2..c4e4c9c 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -759,7 +759,7 @@ _bfd_vms_get_object_record (bfd *abfd)
vms_debug2 ((8, "_bfd_vms_get_obj_record\n"));
/* Skip alignment byte if the current position is odd. */
- if (bfd_tell (abfd) & 1)
+ if (PRIV (recrd.file_format) == FF_FOREIGN && (bfd_tell (abfd) & 1))
{
if (bfd_bread (PRIV (recrd.buf), 1, abfd) != 1)
{
@@ -2450,6 +2450,10 @@ alpha_vms_object_p (bfd *abfd)
/* Extract the header size. */
PRIV (recrd.rec_size) = bfd_getl32 (buf + EIHD__L_SIZE);
+ /* The header size is 0 for DSF files. */
+ if (PRIV (recrd.rec_size) == 0)
+ PRIV (recrd.rec_size) = sizeof (struct vms_eihd);
+
if (PRIV (recrd.rec_size) > PRIV (recrd.buf_size))
{
buf = bfd_realloc_or_free (buf, PRIV (recrd.rec_size));
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index 0b45a13..3877686 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -619,6 +619,14 @@ _bfd_vms_lib_alpha_archive_p (bfd *abfd)
return _bfd_vms_lib_archive_p (abfd, vms_lib_alpha);
}
+/* Standard function for ia64 libraries. */
+
+const bfd_target *
+_bfd_vms_lib_ia64_archive_p (bfd *abfd)
+{
+ return _bfd_vms_lib_archive_p (abfd, vms_lib_ia64);
+}
+
/* Standard function for text libraries. */
static const bfd_target *
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1d7962a..d508fe5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,228 @@
+2010-05-16 Michael Snyder <msnyder@vmware.com>
+
+ * scm-exp.c: White space.
+ * scm-lang.c: White space.
+ * scm-valprint.c: White space.
+ * sentinel-frame.c: White space.
+ * ser-base.c: White space.
+ * ser-go32.c: White space.
+ * serial.c: White space.
+ * ser-mingw.c: White space.
+ * ser-pipe.c: White space.
+ * ser-tcp.c: White space.
+ * ser-unix.c: White space.
+ * solib.c: White space.
+ * solib-darwin.c: White space.
+ * solib-frv.c: White space.
+ * solib-irix.c: White space.
+ * solib-osf.c: White space.
+ * solib-pa64.c: White space.
+ * solib-som.c: White space.
+ * solib-spu.c: White space.
+ * solib-svr4.c: White space.
+ * solib-target.c: White space.
+ * source.c: White space.
+ * stabsread.c: White space.
+ * stack.c: White space.
+ * std-regs.c: White space.
+ * symfile.c: White space.
+ * symmisc.c: White space.
+ * symtab.c: White space.
+
+2010-05-16 Michael Snyder <msnyder@vmware.com>
+
+ * source.c (_initialize_source): Add "rev" as an abbreviation
+ for the "reverse-search" command.
+
+2010-05-16 Michael Snyder <msnyder@vmware.com>
+
+ * record.c: White space.
+ * regcache.c: White space.
+ * reggroups.c: White space.
+ * remote-fileio.c: White space.
+ * remote-m32r-sdi.c: White space.
+ * remote-mips.c: White space.
+ * remote-sim.c: White space.
+ * remote.c: White space.
+ (process_g_packet): Remove orphan braces.
+
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-10 19:30 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-05-10 19:30 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 89300 bytes --]
The branch, master has been updated
via 6a5e91e5fad1b8e575f3127597fda514d2c1bc6b (commit)
via f2bb916797ee80d8a9a4b1bd6b0a656a16071727 (commit)
via 7c38f6982f9a314648c3d92392cbdc1e048ea281 (commit)
via 94b8bb28528c7fcacbf81796f14cb92d7a365a8e (commit)
via bebff4d1bd404ea231f3fa7bd6d0c0cc15601c17 (commit)
via 3ca45c17356a44ada813dbeb17f8764bd639b1d5 (commit)
via 06574ec28693138f172cd2da5734566a354f9080 (commit)
via 1a724b6823c659e940c03a3c74b99f888c495b15 (commit)
via 752ac54348e8d558c86d30f0c78e36e70dd6bc12 (commit)
via dbf32a2538aa4c0c7cbd9efd1aee53e5d5235a23 (commit)
via 5eb195a478e3a37bce4a6a242d566526871057db (commit)
via dd4775c57cfbcb3f872d6bf94c790846ca9b9ae4 (commit)
via 59945fbf800c53cb35b36a4bb43f7ec4b3cf61b7 (commit)
via 8fd6f4602754501e4aaf3978e76b2c4e54737736 (commit)
via 8e11c9b67655fbc9433c3c0b7f1261b369d94049 (commit)
via 6428e82e16170e5f2fca5bd4615e40a9bd904700 (commit)
via dbcbaeb953d9e2e318c481c5f636be20aaf86f9d (commit)
via 79d1092f5e4d31c1549cbba945413f715376fe33 (commit)
via 6931e7a4897c2867c0f5fa37bc1b80a8a371dcc3 (commit)
via 60506c02e869273fee749838617c8d83f0265dfa (commit)
via 3c30632200b0021f6fd6673553c3d124de629f68 (commit)
via 87bebabc94a5e45723313af0c2427ed3711715b1 (commit)
via 79300b039a67f952d989d325e7087c70f7c6c528 (commit)
via 72bb6ca37b3c744bc586c36a7c1268e88728bdcf (commit)
via 870bde991dd86c083effe5dae235f0ebfa311507 (commit)
via 51c37135a4525240a40d8ca92192eab5dc74366a (commit)
via c5b2e4985cf65e0c9ab8b82e1a3199c71998602e (commit)
via 827188fab4f3a1c70f4e8fed2fc15416dd086cde (commit)
via b59d2d704c224c515321407cebd7bb34403062ac (commit)
via 36740389202db9855a768e8853b2bc9b1a0451ba (commit)
via 5af51f644658366f8caf2cf559554a9ac6476c3d (commit)
via 4b6837f627adb8df2d3c654910e3e30ebed93db5 (commit)
via 42ee4b09354fae200746f964c2cecee4563ad562 (commit)
via 2b9c19119f3b947b6dec016b24cf8c67c08f2b91 (commit)
via 4eb7508d100c40a945c7d89cc14e13c208e85496 (commit)
via 522f079721f697a2bf9b8c215e254f27a8850c03 (commit)
via b91ef3af3eb228da33ae2b1bd32ba858db4e77f3 (commit)
via f4ea9d058c84fb949e9c061ee444eb20de0ffce2 (commit)
via 2a57de41aa57946e997b20f907b766f0bdfdb0a7 (commit)
via 096667dd0d10dfe49d82a08ea40b11eb06f5b4af (commit)
via 7fea93046a38fb0dddb7678a8bffffb2408f7bb6 (commit)
via b0ea2882e8daedfe09999e3996c69f376a90975b (commit)
via f172614d0109d9e8c547a7e29c5fea2a15ad6faf (commit)
via 0d6bd07575025628880e2b8b351db82199b1e764 (commit)
via 6407299f65a5833ff704ea46a6c0bc57484527d8 (commit)
via e980daf21d09c5caa010d9045f77f5341850c2b1 (commit)
via b00ce5ab0fdb3a648f4b8925c83b17615b2dba52 (commit)
via 4927abba2122a98402fef9f6b7b830704eca787b (commit)
via 165b53e016058e4e6ed08e8f6e3f1d62d45a9f85 (commit)
via 9bcdd48c0f8c1311d3652a8ace91a6199e592617 (commit)
via f673b19a4aa1ea540dcb507b859ccf36e0a321cd (commit)
via 27abc8aec8c2601727c2523875c31140639bab64 (commit)
via f49db5bb31e8bfa37e6fce7293a18cd2f3c15bd5 (commit)
via 2e90774983d832188e584cebb893cd0a4b2e174f (commit)
via 7fb2b5d0c5f88931639c3658acbdd5dcec074920 (commit)
via b62b00d7968d1c3138b64cc554f658b98c0e89f1 (commit)
via 80c4dcc293619a166e83465d500a215dac35325b (commit)
via 3332b0c53d0a9abd8f281cf410babc244031b84c (commit)
via 7220daf1e988ce3ff27a59ac35bbc4647c5bec20 (commit)
via 20c33ce07245626302975edb9bd5db01ce97215d (commit)
via ac07f25c6860019e54b8168415ded626a843b295 (commit)
via 4055898be0e0d9f67c783c7308fa22bfb57873b3 (commit)
via cffe0344bc58c0fb2fda626815fdff923395e5c5 (commit)
via 33237db59ff746be3cf0c00d3ed145c5929e0caf (commit)
via 5fb8b97e79b66120e75c079963dd72cc22cec8d3 (commit)
via 58bd3cde7086a435b8bb7193ad7f8c8510be28c0 (commit)
via 00eb3f8924b440d32d1f1d70645b93ba9c0f87b1 (commit)
via 5804fd4679f024d93d232b2989ac0d561765f9b9 (commit)
via daa90eec460bdce8090d98ac64ca5aa5ea185a83 (commit)
via 6d5d0eaf2fe5e9dbfcbe1db2c3aaedeaad091dd5 (commit)
via 7dcd7a8714c7718ac2131d7a5ef612212f2b5667 (commit)
via 182bca0ee80a3a070892e96158ca89424854e0b6 (commit)
via 3010eedaa279723761794508b4ca0ccac44aa0a5 (commit)
via 909cd34ecc36bc3c5134657f055f58a113d97c59 (commit)
from 6b1c425da60b73c7750a970b230182cbf369aa56 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6a5e91e5fad1b8e575f3127597fda514d2c1bc6b
Merge: 6b1c425da60b73c7750a970b230182cbf369aa56 f2bb916797ee80d8a9a4b1bd6b0a656a16071727
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Mon May 10 15:21:16 2010 -0400
Merge remote branch 'gdb/master'
commit f2bb916797ee80d8a9a4b1bd6b0a656a16071727
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon May 10 17:26:36 2010 +0000
2010-05-10 Michael Snyder <msnyder@vmware.com>
* utils.c (do_fclose_cleanup) Restore local variable.
commit 7c38f6982f9a314648c3d92392cbdc1e048ea281
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon May 10 00:00:05 2010 +0000
daily update
commit 94b8bb28528c7fcacbf81796f14cb92d7a365a8e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon May 10 00:00:03 2010 +0000
*** empty log message ***
commit bebff4d1bd404ea231f3fa7bd6d0c0cc15601c17
Author: Doug Evans <dje@google.com>
Date: Sun May 9 20:04:50 2010 +0000
* record.c (init_record_core_ops): Rename record_core to record-core.
commit 3ca45c17356a44ada813dbeb17f8764bd639b1d5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun May 9 00:00:06 2010 +0000
daily update
commit 06574ec28693138f172cd2da5734566a354f9080
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun May 9 00:00:03 2010 +0000
*** empty log message ***
commit 1a724b6823c659e940c03a3c74b99f888c495b15
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat May 8 18:23:40 2010 +0000
Implement task switching on pa-hpux.
gdb/ChangeLog:
* inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
(inf_ttrace_target): Set t->to_get_ada_task_ptid.
commit 752ac54348e8d558c86d30f0c78e36e70dd6bc12
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Sat May 8 09:26:47 2010 +0000
* valops.c (find_overload_match): Add missing i18n markup.
commit dbf32a2538aa4c0c7cbd9efd1aee53e5d5235a23
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Sat May 8 09:18:01 2010 +0000
* p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
commit 5eb195a478e3a37bce4a6a242d566526871057db
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat May 8 04:58:43 2010 +0000
gdb/
* dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
list for the obconcat call.
* mdebugread.c (parse_symbol): Likewise.
* stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
Likewise.
* symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
New variable ap. Remove variables len and val.
* symfile.h (obconcat): Likewise for the prototype.
commit dd4775c57cfbcb3f872d6bf94c790846ca9b9ae4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat May 8 04:55:31 2010 +0000
gdb/testsuite/
* gdb.dwarf2/dw2-modula2-self-type.exp: New.
* gdb.dwarf2/dw2-modula2-self-type.S: New.
commit 59945fbf800c53cb35b36a4bb43f7ec4b3cf61b7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat May 8 00:00:05 2010 +0000
daily update
commit 8fd6f4602754501e4aaf3978e76b2c4e54737736
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat May 8 00:00:03 2010 +0000
*** empty log message ***
commit 8e11c9b67655fbc9433c3c0b7f1261b369d94049
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 7 19:26:30 2010 +0000
2010-05-07 Michael Snyder <msnyder@vmware.com>
* python/python.c (execute_gdb_command): Remove unused variables.
* python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
* python/py-breakpoint.c (gdbpy_breakpoint_created):
Remove unused variable.
* python/py-cmd.c (cmdpy_function): Remove unused variable.
(cmdpy_completer): Remove unused variable.
* python/py-frame.c (frapy_find_sal): Remove unused variable.
* python/py-function.c (fnpy_call): Remove unused variable.
* python/py-objfile.c (objfile_to_objfile_object):
Remove unused variable.
* python/py-param.c (parmpy_init): Remove unused variable.
* python/py-prettyprint.c (apply_varobj_pretty_printer):
Remove unused variable.
(gdbpy_default_visualizer): Remove unused variable.
* python/py-progspace.c (pspace_to_pspace_object):
Remove unused variable.
* python/py-symtab.c (symtab_and_line_to_sal_object):
Remove unused variable.
* python/py-type.c (typy_template_argument):
Remove unused variable.
* python/py-value.c (valpy_string): Remove unused variable.
(convert_value_from_python): Remove unused variables.
commit 6428e82e16170e5f2fca5bd4615e40a9bd904700
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 7 18:49:26 2010 +0000
2010-05-07 Michael Snyder <msnyder@vmware.com>
* valops.c (value_cast_pointers): Restore unused variable 'type1',
and use it to compute variable 't1'.
commit dbcbaeb953d9e2e318c481c5f636be20aaf86f9d
Author: Daniel Jacobowitz <dan@debian.org>
Date: Fri May 7 18:24:44 2010 +0000
bfd/
* elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
sym_name to improve packing.
(cortex_a8_erratum_scan): Check for PLT entries.
(elf32_arm_size_stubs): Save the target symbol for a8 relocs.
ld/testsuite/
* ld-arm/cortex-a8-fix-bl-rel-plt.d: New file.
* ld-arm/arm-elf.exp (armelftests): Run cortex-a8-fix-bl-rel-plt.d.
commit 79d1092f5e4d31c1549cbba945413f715376fe33
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri May 7 16:07:32 2010 +0000
Fix formatting.
commit 6931e7a4897c2867c0f5fa37bc1b80a8a371dcc3
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri May 7 16:00:48 2010 +0000
* ada-lang.c (assign_aggregate): Remove unused variable.
commit 60506c02e869273fee749838617c8d83f0265dfa
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri May 7 15:24:16 2010 +0000
Implement task switching on solaris targets.
* sol-thread.c (thread_db_find_thread_from_tid)
(sol_get_ada_task_ptid): New functions.
(init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
commit 3c30632200b0021f6fd6673553c3d124de629f68
Author: swagiaal <swagiaal>
Date: Fri May 7 14:46:24 2010 +0000
Add ADL support
2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
PR C++/7943:
* valops.c (find_overload_match): Handle fsym == NULL case.
Add int no_adl argument.
(find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
when appropriate.
Add int no_adl argument.
(find_oload_champ_namespace): Add int no_adl argument.
* parse.c (operator_length_standard): Return length for OP_ADL_FUNC
expression.
* expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
* eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
Evaluate arguments and use them to perform ADL lookup.
Pass no_adl argument to find_overload_match.
Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
* cp-support.h: Added prototype for
make_symbol_overload_list_namespace.
* cp-support.c (make_symbol_overload_list_namespace): New function.
(make_symbol_overload_list_adl_namespace): New function.
(make_symbol_overload_list_adl): New function.
(make_symbol_overload_list_using): Moved code to add function to
overload set to make_symbol_overload_list_namespace.
* c-exp.y: create UNKNOWN_CPP_NAME token.
Add parse rule for ADL functions.
(classify_name): Recognize an UNKNOWN_CPP_NAME.
2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/koenig.exp: New test.
* gdb.cp/koenig.cc: New test program.
commit 87bebabc94a5e45723313af0c2427ed3711715b1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri May 7 14:42:29 2010 +0000
gdb/
* fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
sentinel.
commit 79300b039a67f952d989d325e7087c70f7c6c528
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri May 7 14:01:55 2010 +0000
* remote.c (remote_query_supported_append): Use reconcat.
(remote_query_supported): Install a cleanup. Use reconcat.
commit 72bb6ca37b3c744bc586c36a7c1268e88728bdcf
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri May 7 14:00:25 2010 +0000
* gdbarch.sh (qsupported): Delete.
* gdbarch.h, gdbarch.c: Regenerate.
* remote.c (remote_query_supported): Remove use of
gdbarch_qsupported.
commit 870bde991dd86c083effe5dae235f0ebfa311507
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri May 7 12:28:44 2010 +0000
bfd/
2010-05-07 Tristan Gingold <gingold@adacore.com>
* Makefile.in: Regenerate with automake 1.11.1.
* aclocal.m4: Ditto.
bfd/doc/
2010-05-07 Tristan Gingold <gingold@adacore.com>
* Makefile.in: Regenerate with automake 1.11.1.
binutils/
2010-05-07 Tristan Gingold <gingold@adacore.com>
* Makefile.in: Regenerate with automake 1.11.1.
* aclocal.m4: Ditto.
* doc/Makefile.in: Ditto.
gas/
2010-05-07 Tristan Gingold <gingold@adacore.com>
* Makefile.in: Regenerate with automake 1.11.1.
* aclocal.m4: Ditto.
* doc/Makefile.in: Ditto.
gprof/
2010-05-07 Tristan Gingold <gingold@adacore.com>
* Makefile.in: Regenerate with automake 1.11.1.
* aclocal.m4: Ditto.
ld/
2010-05-07 Tristan Gingold <gingold@adacore.com>
* Makefile.in: Regenerate with automake 1.11.1.
* aclocal.m4: Ditto.
opcodes/
2010-05-07 Tristan Gingold <gingold@adacore.com>
* Makefile.in: Regenerate with automake 1.11.1.
* aclocal.m4: Ditto.
commit 51c37135a4525240a40d8ca92192eab5dc74366a
Author: sergiodj <sergiodj>
Date: Fri May 7 03:41:32 2010 +0000
gdb/ChangeLog:
2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
* xml-syscall.c (syscall_start_syscalls_info): Remove unused
function.
commit c5b2e4985cf65e0c9ab8b82e1a3199c71998602e
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 7 02:09:54 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* xml-support.c (xinclude_start_include): Delete unused variable.
(xml_process_xincludes): Delete unused variable.
* xml-syscall.c (syscall_parse_xml): Delete unused variable.
* target-descriptions.c (tdesc_gdb_type): Delete unused variable.
(tdesc_find_arch_register): Delete unused variable.
(tdesc_use_registers): Delete unused variable.
* xml-tdesc.c (tdesc_start_target): Delete unused variable.
* inferior.c (print_inferior): Delete unused variable.
* record.c (record_open_1): Delete unused variable.
(record_restore): Delete unused variable.
(cmd_record_save): Delete unused variable.
* gcore.c (derive_heap_segment): Delete unused variable.
(objfile_find_memory_regions): Use unused variable.
* jit.c (jit_inferior_init): Delete unused variable.
* progspace.c (clone_program_space): Delete unused variable.
(pspace_empty_p): Delete unused variable.
commit 827188fab4f3a1c70f4e8fed2fc15416dd086cde
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 7 01:12:10 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* frame-unwind.c (frame_unwind_find_by_frame):
Delete unused variable.
* gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
* cp-support.c (mangled_name_to_comp): Delete unused variable.
(method_name_from_physname): Delete unused variable.
(cp_func_name): Delete unused variable.
(cp_validate_operator): Delete unused variable.
* cp-namespace.c (cp_scan_for_anonymous_namespaces):
Delete unused variable.
* trad-frame.c (trad_frame_get_prev_register):
Delete unused variable.
* tramp-frame.c (tramp_frame_cache): Delete unused variable.
commit b59d2d704c224c515321407cebd7bb34403062ac
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 7 00:47:33 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* serial.c (serial_for_fd): Delete unused variable.
* mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
* top.c (execute_command): Delete unused variable.
(init_main): Delete unused variable.
* utils.c (do_fclose_cleanup): Delete unused variable.
(do_all_inferior_continuations): Delete unused variable.
(initialize_utils): Delete unused variable.
(internal_problem_mode): Delete unused global.
* frame.c (get_prev_frame): Delete unused global.
(get_frame_locals_address): Delete unused global.
(get_frame_args_address): Delete unused global.
commit 36740389202db9855a768e8853b2bc9b1a0451ba
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 7 00:28:31 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* p-typeprint.c (pascal_type_print_base): Delete unused variable.
(pascal_type_print_varspec_prefix): Delete unused variable.
* f-typeprint.c (f_type_print_base): Delete unused variable.
(f_type_print_varspec_suffix): Delete unused variable.
* m2-typeprint.c (m2_print_type): Delete unused variable.
(m2_long_set): Delete unused variable.
* ada-valprint.c (ada_val_print_1): Delete unused variable.
* d-valprint.c (dynamic_array_type): Delete unused variable.
* f-valprint.c (f77_get_dynamic_length_of_aggregate):
Delete unused variable.
(f77_create_arrayprint_offset_tbl): Delete unused variable.
* m2-valprint.c (m2_val_print): Delete unused variable.
commit 5af51f644658366f8caf2cf559554a9ac6476c3d
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri May 7 00:01:30 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* ui-out.c (ui_out_field_int): Delete unused variable.
(ui_out_field_fmt_int): Delete unused variable.
* varobj.c (varobj_list_children): Delete unused variable.
(varobj_set_value): Delete unused variable.
(install_new_value_visualizer): Delete unused variable.
(varobj_set_visualizer): Delete unused variable.
(varobj_update): Delete unused variable.
(varobj_editable_p): Delete unused variable.
(c_value_of_root): Delete unused variable.
(cplus_describe_child): Delete unused variable.
commit 4b6837f627adb8df2d3c654910e3e30ebed93db5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri May 7 00:00:33 2010 +0000
*** empty log message ***
commit 42ee4b09354fae200746f964c2cecee4563ad562
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri May 7 00:00:06 2010 +0000
daily update
commit 2b9c19119f3b947b6dec016b24cf8c67c08f2b91
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 23:36:38 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* ada-lang.c (add_defn_to_vec): Delete unused variable.
(decode_constrained_packed_array_type): Delete unused variable.
(add_defn_to_vec): Delete unused variable.
(symbol_completion_match): Delete unused variable.
(value_tag_from_contents_and_address): Delete unused variable.
(ada_evaluate_subexp): Delete unused variable.
* c-lang.c (classify_type): Delete unused variable.
* f-lang.c (f_printstr): Delete unused variable.
* objc-lang.c (objc_printstr): Delete unused variable.
* ada-tasks.c (get_known_tasks_addr): Delete unused variable.
* jv-lang.c (type_from_class): ifdef unused variable.
(java_class_name_from_physname): Delete unused variable.
* m2-lang.c (m2_printstr): Delete unused variable.
commit 4eb7508d100c40a945c7d89cc14e13c208e85496
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 22:50:08 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* objfiles.c (objfile_relocate): Delete unused variable.
* maint.c (_initialize_maint_cmds): Delete unused variable.
* demangle.c (_initialize_demangler): Delete unused variable.
* corefile.c (reopen_exec_file): Delete unused variable.
* dwarf2expr.c (dwarf2_read_address): Delete unused variable.
* dwarf2-frame.c (decode_frame_entry): Delete unused variable.
commit 522f079721f697a2bf9b8c215e254f27a8850c03
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 22:29:48 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* osabi.c (_initialize_gdb_osabi): Delete unused variable.
* memattr.c (mem_delete): Delete unused variable.
(invalidate_target_mem_regions): Delete unused variable.
* mem-break.c (default_memory_insert_breakpoint):
Delete unused variable.
* target.c (target_get_osdata): Delete unused variable.
* parse.c (length_of_subexp): Delete unused variable.
(prefixify_subexp): Delete unused variable.
(exp_iterate): Delete unused variable.
* reverse.c (delete_bookmark_command): Delete unused variable.
commit b91ef3af3eb228da33ae2b1bd32ba858db4e77f3
Author: DJ Delorie <dj@delorie.com>
Date: Thu May 6 21:40:00 2010 +0000
merge from gcc
commit f4ea9d058c84fb949e9c061ee444eb20de0ffce2
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 19:41:09 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* macrocmd.c (_initialize_macrocmd): Delete unused variable.
* macroexp.c (gather_arguments): Delete unused variable.
(substitute_args): Delete unused variable.
* completer.c (gdb_completer_loc_break_characters): Unused, delete.
* gdbarch.sh (gdbarch_printable_names): Delete unused variable.
(_initialize_gdbarch): Delete unused variable.
* gdbarch.c, gdbarch.h: Regenerate.
* arch-utils.c (initialize_current_architecture):
Delete unused variable.
(_initialize_gdbarch_utils): Delete unused variable.
* gdbtypes.c (make_cv_type): Delete unused variable.
(make_type_with_address_space): Delete unused variable.
commit 2a57de41aa57946e997b20f907b766f0bdfdb0a7
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 19:14:08 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* linespec.c (decode_compound): Delete unused variable.
* dictionary.c (iterator_next_hashed): Delete unused variable.
* infcall.c (call_function_by_hand): Delete unused variable.
* infcmd.c (step_1): Delete unused variable.
(registers_info): Delete unused variable.
(attach_command): Delete unused variable.
* infrun.c (follow_exec): Delete unused variable.
(handle_step_into_function_backwards): Delete unused variable.
(_initialize_infrun): Delete unused variable.
* stack.c (parse_frame_specification_1): Delete unused variable.
(frame_info): Delete unused variable.
(backtrace_command_1): Delete unused variable.
(catch_info): Delete unused variable.
commit 096667dd0d10dfe49d82a08ea40b11eb06f5b4af
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 18:26:13 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* eval.c (evaluate_subexp_standard): Delete unused variable.
* valops.c (value_cast_pointers): Delete unused variable.
(value_dynamic_cast): Delete unused variable.
(value_array): Delete unused variable.
(find_overload_match): Delete unused variable.
* valarith.c (value_subscript): Delete unused variable.
(value_binop): Delete unused variable.
* valprint.c (_initialize_valprint): Delete unused variable.
* printcmd.c (print_command_1): Delete unused variable.
(address_info): Delete unused variable.
(printf_command): Delete unused variable.
commit 7fea93046a38fb0dddb7678a8bffffb2408f7bb6
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 18:07:07 2010 +0000
2010-05-06 Michael Snyder <msnyder@vmware.com>
* auxv.c (target_auxv_search): Delete unused variable.
* blockframe.c (get_frame_block): Delete unused variable.
* regcache.c (regcache_cpy): Delete unused variable.
(regcache_cpy_no_passthrough): Delete unused variable.
* charset.c (wchar_iterate): Delete unused variable.
(find_charset_names): Delete unused variable.
(_initialize_charset): Delete unused variable.
* disasm.c (do_mixed_source_and_assembly):
Delete unused variable.
* source.c (set_default_source_symtab_and_line):
Delete unused variable.
(set_substitute_path_command): Delete unused variable.
* value.c (preserve_values): Delete unused variable.
(value_from_double): Delete unused variable.
commit b0ea2882e8daedfe09999e3996c69f376a90975b
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Thu May 6 15:02:23 2010 +0000
revert erroneous commit
commit f172614d0109d9e8c547a7e29c5fea2a15ad6faf
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Thu May 6 10:22:51 2010 +0000
* cpu-mips.c (arch_info_struct): Fixup XLR entry.
commit 0d6bd07575025628880e2b8b351db82199b1e764
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 01:16:15 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* psymtab.c (lookup_partial_symbol): Delete unused variable.
(find_last_source_symtab_from_partial): Delete unused variable.
* symfile.c (place_section): Delete unused variable.
(default_symfile_offsets): Delete unused variable.
(get_debug_link_info): Delete unused variable.
(find_separate_debug_file_by_debuglink): Delete unused variable.
(add_symbol_file_command): Delete unused variable.
(symfile_find_segment_sections): Delete unused variable.
* symmisc.c (free_symtab): Delete unused variable.
(dump_symtab_1): Delete unused variable.
* symtab.c (lookup_symbil_aux_quick): Delete unused variable.
(find_pc_sect_symtab): Delete unused variable.
(skip_prologue_using_lineinfo): Delete unused variable.
(sources_info): Delete unused variable.
(completion_list_add_name): Delete unused variable.
(expand_line_sal): Delete unused variable.
commit 6407299f65a5833ff704ea46a6c0bc57484527d8
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 00:41:40 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* breakpoint.c (validate_commands_for_breakpoint):
Delete unused variables.
(insert_catchpoint): Delete unused variable.
(update_watchpoint): Delete unused variable.
(insert_bp_location): Delete unused variable.
(insert_breakpoint_locations): Delete unused variable.
(remove_breakpoint_1): Delete unused variable.
(software_breakpoint_inserted_here_p): Delete unused variable.
(watchpoints_triggered): Delete unused variable.
(bpstat_check_watchpoint): Delete unused variable.
(bpstat_stop_status): Delete unused variable.
(print_one_breakpoint_location): Delete unused variable.
(allocate_bp_location): Delete unused variable.
(create_breakpoint): Delete unused variable.
(watch_command_1): Delete unused variable.
(catch_exception_command_1): Delete unused variable.
(catch_ada_exception_command): Delete unused variable.
(delete_breakpoint): Delete unused variable.
(breakpoint_re_set_one): Delete unused variable.
(do_enable_breakpoint): Delete unused variable.
commit e980daf21d09c5caa010d9045f77f5341850c2b1
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 00:32:37 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* mi/mi-out.c (mi_table_begin): Delete unused variable.
* mi/mi-cmd-var.c (print_varobj): Delete unused variable.
(mi_cmd_var_list_children): Delete unused variable.
(varobj_update_one): Delete unused variable.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
* mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
Delete unused variable.
(mi_cmd_stack_list_variables): Delete unused variable.
(list_args_or_locals): Delete unused variable.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
Delete unused variables.
(mi_cmd_file_list_exec_source_files): Delete unused variable.
* mi/mi-cmd-target.c (mi_cmd_target_file_delete):
Delete unused variable.
* mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
(mi_cmd_interpreter_exec): Delete unused variable.
(mi_on_normal_stop): Delete unused variable.
* mi/mi-main.c (run_one_inferior): Delete unused variable.
(print_one_inferior): Delete unused variables.
(mi_execute_command): Delete unused variable.
(mi_cmd_execute): Delete unused variable.
(timestamp): Delete unused variable.
commit b00ce5ab0fdb3a648f4b8925c83b17615b2dba52
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 00:31:46 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
* tracepoint.c (delete_trace_variable_command):
Delete unused variables.
(encode_actions_1): Delete unused variables.
(start_tracing): Delete unused variable.
(trace_status_mi): Delete unused variable.
(tfind_1): Delete unused variable.
(trace_find_pc_command): Delete unused variable.
(trace_find_line_command): Delete unused variables.
(trace_find_range_command): Delete unused variables.
(trace_find_outside_command): Delete unused variables.
(parse_tracepoint_definition): Delete unused variables.
(tfile_fetch_registers): Delete unused variable.
commit 4927abba2122a98402fef9f6b7b830704eca787b
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu May 6 00:21:53 2010 +0000
* amd64-tdep.c: Include disasm.h.
(amd64_insn_length_fprintf, amd64_insn_length_init_dis)
(amd64_insn_length): Moved to disasm.c and renamed.
(fixup_riprel): Adjust.
* disasm.c (do_ui_file_delete): New.
(gdb_insn_length): New.
(gdb_buffered_insn_length_fprintf)
(gdb_buffered_insn_length_init_dis)
(gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
renamed.
* disasm.h (gdb_insn_length): Declare.
(gdb_buffered_insn_length): Declare.
commit 165b53e016058e4e6ed08e8f6e3f1d62d45a9f85
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu May 6 00:15:28 2010 +0000
* remote.c (clear_threads_parsing_context): New.
(remote_threads_info): Delete unused null_cleanup. Install a
cleanup to clear the threads_parsing_context in case parsing
throws.
commit 9bcdd48c0f8c1311d3652a8ace91a6199e592617
Author: Michael Snyder <msnyder@specifix.com>
Date: Thu May 6 00:08:36 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* c-exp.y (parse_string_or_char): Delete unused variable.
(c_lex): Delete unused variable.
* cp-name-parser.y (cpname_lex): Delete unused variable.
* ada-exp.y (find_primitive_type): Delete unused variable.
(write_var_or_type): Delete unused variable.
* jv-exp.y (java_parse): Delete unused variable.
(push_expression_name): Delete unused variable.
* p-exp.y (pascal_lex): Delete unused variable.
commit f673b19a4aa1ea540dcb507b859ccf36e0a321cd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu May 6 00:00:06 2010 +0000
*** empty log message ***
commit 27abc8aec8c2601727c2523875c31140639bab64
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu May 6 00:00:06 2010 +0000
daily update
commit f49db5bb31e8bfa37e6fce7293a18cd2f3c15bd5
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 23:44:18 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* elfread.c (elf_symtab_read): Delete unused variable.
(find_separate_debug_file_by_buildid): Delete unused variables.
(elf_symfile_read): Delete unused variable.
* coffread.c (coff_symfile_read): Delete unused variables.
* coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
(read_pe_exported_syms): Delete unused variable.
* stabsread.c (define_symbol): Delete unused variable.
* dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
(process_psymtab_comp_unit): Delete unused variable.
(dwarf2_build_psymtabs_hard): Delete unused variable.
(load_partial_comp_unit): Delete unused variable.
(create_all_comp_units): Delete unused variable.
(scan_partial_symbols): Delete unused variable.
(add_partial_symbol): Delete unused variable.
(add_partial_namespace): Delete unused variable.
(add_partial_enumeration): Delete unused variable.
(load_full_comp_unit): Delete unused variable.
(process_full_comp_unit): Delete unused variable.
(read_file_scope): Delete unused variable.
(read_type_unit_scope): Delete unused variable.
(process_structure_scope): Delete unused variable.
(process_enumeration_scope): Delete unused variable.
(read_tag_ptr_to_member_type): Delete unused variable.
(read_typedef): Delete unused variable.
(read_partial_die): Delete unused variable.
(decode_locdesc): Delete unused variable.
(zeroed_partial_die): Delete unused global variable.
commit 2e90774983d832188e584cebb893cd0a4b2e174f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed May 5 23:39:55 2010 +0000
* remote.c (remote_threads_info): Really revert previous previous
change.
commit 7fb2b5d0c5f88931639c3658acbdd5dcec074920
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 22:53:52 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* tui/tui-interp.c (_initialize_tui_interp):
Delete unused variable.
* tui/tui-regs.c tui_display_registers_from):
Delete unused variable.
(tui_check_register_values): Delete unused variable.
(tui_register_format): Delete unused variable.
* tui/tui-win.c (_initialize_tui_win): Delete unused variable.
* tui/tui-windata.c (tui_display_data_from_line):
Delete unused variables.
(tui_vertical_data_scroll): Delete unused variables.
commit b62b00d7968d1c3138b64cc554f658b98c0e89f1
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 22:27:14 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* remote.c (remote_threads_info): Revert questionable part of
the previous change.
commit 80c4dcc293619a166e83465d500a215dac35325b
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 21:32:56 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* cli-dump.c (dump_memory_to_file): Delete unused variable.
(restore_binary_file): Delete unused variable.
* cli-decode.c (deprecated_cmd_warning): Delete unused variables.
* cli-script.c (define_command): Delete unused variables.
(recurse_read_control_structure): Delete unused variable.
(script_from_file): Delete unused variable.
* cli-cmds.c (complete_command): Delete unused variable.
(disassemble_command): Delete unused variable.
commit 3332b0c53d0a9abd8f281cf410babc244031b84c
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 20:50:24 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* dcache.c (dcache_init): Delete unused variable.
(dcache_info): Delete unused variable.
commit 7220daf1e988ce3ff27a59ac35bbc4647c5bec20
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 20:46:06 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* remote.c (remote_threads_info): Delete unused variable.
(process_stop_reply): Delete unused variable.
(remote_get_trace_status): Delete unused variables.
commit 20c33ce07245626302975edb9bd5db01ce97215d
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 20:37:22 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* linux-thread-db.c (add_thread_db_info): Delete unused variable.
(thread_from_lwp): Delete unused variable.
(enable_thread_event_reporting): Delete unused variable.
(check_for_thread_db): Delete unused variables.
(thread_db_find_new_threads_2): Delete unused variable.
* linux-fork.c (info_checkpoints_command): Delete unused variables.
(checkpoint_command): Delete unused variable.
(linux_fork_context): Delete unused variables.
commit ac07f25c6860019e54b8168415ded626a843b295
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 20:16:42 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* linux-nat.c (top level): Delete unused global variable.
(linux_tracefork_child): Delete unused variable.
(linux_child_follow_fork): Delete unused variable.
(linux_nat_detach): Delete unused variable.
(linux_handle_extended_wait): Delete unused variable.
(linux_nat_has_pending_sigint): Delete unused variable.
(linux_nat_find_memory_regions): Delete unused variable.
(linux_nat_make_corefile_notes): Delete unused variables.
(linux_nat_info_proc_cmd): Delete unused variable.
(linux_proc_pending_signals): Delete unused variable.
(linux_nat_stop_lwp): Delete unused variables.
(_initialize_linux_nat): Delete unused variable.
commit 4055898be0e0d9f67c783c7308fa22bfb57873b3
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 20:01:34 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* ser-pipe.c (top level): Delete unused global variable.
commit cffe0344bc58c0fb2fda626815fdff923395e5c5
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 19:58:11 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* linux-record.c (record_linux_system_call):
Delete unused variables.
commit 33237db59ff746be3cf0c00d3ed145c5929e0caf
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 19:53:53 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* corelow.c (core_xfer_partial): Delete unused variables.
commit 5fb8b97e79b66120e75c079963dd72cc22cec8d3
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 19:50:09 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* solib-svr4.c (find_program_interpreter): Delete unused variable.
(svr4_solib_create_inferior_hook): Add ifdef around
conditionally-used variable declarations.
commit 58bd3cde7086a435b8bb7193ad7f8c8510be28c0
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 19:37:44 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* solib.c (solib_find): Delete unused variable.
(free_so_symbols): Delete unused variable.
(info_sharedlibrary_command): Delete unused variable.
(reload_shared_libraries_1): Delete unused variable.
(_initialize_solib): Delete unused variable.
commit 00eb3f8924b440d32d1f1d70645b93ba9c0f87b1
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 19:30:34 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
(i386_collect_xstateregset): Delete unused variable.
* i387-tdep.c (i387_print_float_info): Delete unused variable.
commit 5804fd4679f024d93d232b2989ac0d561765f9b9
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 19:05:24 2010 +0000
fix edit error
commit daa90eec460bdce8090d98ac64ca5aa5ea185a83
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed May 5 18:56:07 2010 +0000
2010-05-05 Michael Snyder <msnyder@vmware.com>
* features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
Delete unused variable 'type'.
commit 6d5d0eaf2fe5e9dbfcbe1db2c3aaedeaad091dd5
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed May 5 18:06:56 2010 +0000
Do not set prms_id/bug_id anymore.
2010-05-05 Joel Brobecker <brobecker@adacore.com>
Remove the use of prms_id and bug_id throughout the testsuite.
commit 7dcd7a8714c7718ac2131d7a5ef612212f2b5667
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed May 5 17:07:39 2010 +0000
Remove unused MAX_OF*/MIN_OF* macros.
FWIW: They can no longer work either, as they depend on other macros
which have been missing for quite a while.
ChangeLog:
* gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros.
* ada-lang.c: Remove comment mentioning these macros.
* m2-exp.y: Delete commented out code.
commit 182bca0ee80a3a070892e96158ca89424854e0b6
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed May 5 16:58:59 2010 +0000
"finish" does not work on sparc if function returns array.
ChangeLog:
* sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
for array types.
* sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
commit 3010eedaa279723761794508b4ca0ccac44aa0a5
Author: Nick Clifton <nickc@redhat.com>
Date: Wed May 5 15:28:20 2010 +0000
Updated Spanish translations.
commit 909cd34ecc36bc3c5134657f055f58a113d97c59
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Wed May 5 15:05:56 2010 +0000
ARI fix: Remove ATTRIBUTE_UNUSED throughout.
* arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
ATTRIBUTE_UNUSED.
(cleanup_kernel_helper_return): Likewise.
* arm-tdep.c (copy_unmodified): Likewise.
(copy_preload): Likewise.
(copy_copro_load_store): Likewise.
(cleanup_branch): Likewise.
(copy_b_bl_blx): Likewise.
(copy_bx_blx_reg): Likewise.
(copy_alu_imm): Likewise.
(copy_alu_reg): Likewise.
(copy_alu_shifted_reg): Likewise.
(cleanup_load): Likewise.
(cleanup_store): Likewise.
(cleanup_block_load_pc): Likewise.
(cleanup_svc): Likewise.
(copy_undef): Likewise.
(copy_unpred): Likewise.
* remote.c (register_remote_support_xml): Likewise.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 16 +
bfd/Makefile.in | 8 +-
bfd/aclocal.m4 | 6 +-
bfd/doc/ChangeLog | 4 +
bfd/doc/Makefile.in | 2 +-
bfd/elf32-arm.c | 23 +-
bfd/po/es.po | 722 ++++++++++----------
bfd/version.h | 2 +-
gdb/ChangeLog | 542 +++++++++++++++
gdb/ada-exp.y | 2 -
gdb/ada-lang.c | 15 +-
gdb/ada-tasks.c | 1 -
gdb/ada-valprint.c | 1 -
gdb/amd64-tdep.c | 56 +--
gdb/arch-utils.c | 2 -
gdb/arm-linux-tdep.c | 4 +-
gdb/arm-tdep.c | 30 +-
gdb/auxv.c | 1 -
gdb/ax-gdb.c | 1 -
gdb/blockframe.c | 1 -
gdb/breakpoint.c | 34 +-
gdb/c-exp.y | 35 +-
gdb/c-lang.c | 1 -
gdb/charset.c | 5 +-
gdb/cli/cli-cmds.c | 3 +-
gdb/cli/cli-decode.c | 2 -
gdb/cli/cli-dump.c | 2 -
gdb/cli/cli-script.c | 6 +-
gdb/coff-pe-read.c | 2 -
gdb/coffread.c | 2 -
gdb/completer.c | 4 -
gdb/corefile.c | 1 -
gdb/corelow.c | 3 -
gdb/cp-name-parser.y | 2 +-
gdb/cp-namespace.c | 1 -
gdb/cp-support.c | 102 +++-
gdb/cp-support.h | 4 +
gdb/d-valprint.c | 1 -
gdb/dcache.c | 3 +-
gdb/demangle.c | 1 -
gdb/dictionary.c | 1 -
gdb/disasm.c | 74 ++-
gdb/disasm.h | 12 +
gdb/dwarf2-frame.c | 1 -
gdb/dwarf2expr.c | 1 -
gdb/dwarf2read.c | 32 +-
gdb/elfread.c | 9 -
gdb/eval.c | 50 ++-
gdb/expprint.c | 2 +
gdb/expression.h | 4 +
gdb/f-lang.c | 1 -
gdb/f-typeprint.c | 4 +-
gdb/f-valprint.c | 3 +-
gdb/fbsd-nat.c | 3 +-
gdb/features/i386/i386-mmx.c | 2 +-
gdb/frame-unwind.c | 3 +-
gdb/frame.c | 4 -
gdb/gcore.c | 4 +-
gdb/gdbarch.c | 26 -
gdb/gdbarch.h | 5 -
gdb/gdbarch.sh | 6 -
gdb/gdbtypes.c | 6 +-
gdb/gdbtypes.h | 10 -
gdb/gnu-v2-abi.c | 5 -
gdb/i386-tdep.c | 2 -
gdb/i387-tdep.c | 1 -
gdb/inf-ttrace.c | 10 +
gdb/infcall.c | 1 -
gdb/infcmd.c | 5 -
gdb/inferior.c | 2 -
gdb/infrun.c | 5 +-
gdb/jit.c | 1 -
gdb/jv-exp.y | 2 -
gdb/jv-lang.c | 3 +-
gdb/linespec.c | 1 -
gdb/linux-fork.c | 6 -
gdb/linux-nat.c | 17 -
gdb/linux-record.c | 4 -
gdb/linux-thread-db.c | 8 -
gdb/m2-exp.y | 16 -
gdb/m2-lang.c | 1 -
gdb/m2-typeprint.c | 3 -
gdb/m2-valprint.c | 2 -
gdb/macrocmd.c | 2 -
gdb/macroexp.c | 4 +-
gdb/maint.c | 2 -
gdb/mdebugread.c | 5 +-
gdb/mem-break.c | 1 -
gdb/memattr.c | 5 +-
gdb/mi/mi-cmd-break.c | 3 -
gdb/mi/mi-cmd-file.c | 3 -
gdb/mi/mi-cmd-stack.c | 3 -
gdb/mi/mi-cmd-target.c | 2 +-
gdb/mi/mi-cmd-var.c | 3 -
gdb/mi/mi-interp.c | 3 -
gdb/mi/mi-main.c | 20 +-
gdb/mi/mi-out.c | 1 -
gdb/objc-lang.c | 1 -
gdb/objfiles.c | 5 +-
gdb/osabi.c | 2 -
gdb/p-exp.y | 4 +-
gdb/p-typeprint.c | 3 +-
gdb/parse.c | 11 +-
gdb/printcmd.c | 3 -
gdb/progspace.c | 3 -
gdb/psymtab.c | 2 -
gdb/python/py-block.c | 1 -
gdb/python/py-breakpoint.c | 2 -
gdb/python/py-cmd.c | 2 -
gdb/python/py-frame.c | 1 -
gdb/python/py-function.c | 1 -
gdb/python/py-objfile.c | 2 -
gdb/python/py-param.c | 1 -
gdb/python/py-prettyprint.c | 3 +-
gdb/python/py-progspace.c | 2 -
gdb/python/py-symtab.c | 1 -
gdb/python/py-type.c | 2 +-
gdb/python/py-value.c | 3 +-
gdb/python/python.c | 3 +-
gdb/record.c | 6 +-
gdb/regcache.c | 4 -
gdb/remote.c | 58 +-
gdb/reverse.c | 2 +-
gdb/ser-pipe.c | 2 -
gdb/serial.c | 1 -
gdb/sol-thread.c | 35 +
gdb/solib-svr4.c | 3 +-
gdb/solib.c | 8 -
gdb/source.c | 3 -
gdb/sparc-tdep.c | 7 +-
gdb/sparc64-tdep.c | 7 +-
gdb/stabsread.c | 37 +-
gdb/stack.c | 9 +-
gdb/symfile.c | 39 +-
gdb/symfile.h | 8 +-
gdb/symmisc.c | 5 +-
gdb/symtab.c | 16 +-
gdb/target-descriptions.c | 4 +-
gdb/target.c | 1 -
gdb/testsuite/ChangeLog | 14 +
gdb/testsuite/gdb.arch/alpha-step.exp | 2 -
gdb/testsuite/gdb.arch/altivec-regs.exp | 2 -
gdb/testsuite/gdb.arch/amd64-byte.exp | 2 -
gdb/testsuite/gdb.arch/amd64-disp-step.exp | 2 -
gdb/testsuite/gdb.arch/amd64-dword.exp | 2 -
gdb/testsuite/gdb.arch/amd64-word.exp | 2 -
gdb/testsuite/gdb.arch/e500-abi.exp | 2 -
gdb/testsuite/gdb.arch/e500-prologue.exp | 2 -
gdb/testsuite/gdb.arch/e500-regs.exp | 2 -
gdb/testsuite/gdb.arch/gdb1291.exp | 2 -
gdb/testsuite/gdb.arch/gdb1431.exp | 2 -
gdb/testsuite/gdb.arch/gdb1558.exp | 2 -
gdb/testsuite/gdb.arch/i386-avx.exp | 2 -
gdb/testsuite/gdb.arch/i386-byte.exp | 2 -
gdb/testsuite/gdb.arch/i386-disp-step.exp | 2 -
gdb/testsuite/gdb.arch/i386-gnu-cfi.exp | 2 -
gdb/testsuite/gdb.arch/i386-prologue.exp | 2 -
gdb/testsuite/gdb.arch/i386-sse.exp | 2 -
gdb/testsuite/gdb.arch/i386-unwind.exp | 2 -
gdb/testsuite/gdb.arch/i386-word.exp | 2 -
gdb/testsuite/gdb.arch/pa-nullify.exp | 2 -
gdb/testsuite/gdb.arch/powerpc-aix-prologue.exp | 2 -
gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp | 2 -
gdb/testsuite/gdb.arch/spu-info.exp | 2 -
gdb/testsuite/gdb.arch/system-gcore.exp | 2 -
gdb/testsuite/gdb.arch/vsx-regs.exp | 2 -
gdb/testsuite/gdb.asm/asm-source.exp | 2 -
gdb/testsuite/gdb.base/a2-run.exp | 2 -
gdb/testsuite/gdb.base/all-bin.exp | 2 -
gdb/testsuite/gdb.base/annota1.exp | 2 -
gdb/testsuite/gdb.base/annota3.exp | 2 -
gdb/testsuite/gdb.base/arithmet.exp | 2 -
gdb/testsuite/gdb.base/assign.exp | 2 -
gdb/testsuite/gdb.base/async.exp | 2 -
gdb/testsuite/gdb.base/attach.exp | 2 -
gdb/testsuite/gdb.base/auxv.exp | 2 -
gdb/testsuite/gdb.base/bigcore.exp | 2 -
gdb/testsuite/gdb.base/bitfields.exp | 2 -
gdb/testsuite/gdb.base/bitfields2.exp | 2 -
gdb/testsuite/gdb.base/bitops.exp | 2 -
gdb/testsuite/gdb.base/call-ar-st.exp | 2 -
gdb/testsuite/gdb.base/call-rt-st.exp | 2 -
gdb/testsuite/gdb.base/call-sc.exp | 2 -
gdb/testsuite/gdb.base/call-signal-resume.exp | 2 -
gdb/testsuite/gdb.base/call-strs.exp | 2 -
gdb/testsuite/gdb.base/callexit.exp | 2 -
gdb/testsuite/gdb.base/callfuncs.exp | 2 -
gdb/testsuite/gdb.base/catch-syscall.exp | 2 -
gdb/testsuite/gdb.base/charset.exp | 2 -
gdb/testsuite/gdb.base/checkpoint.exp | 2 -
gdb/testsuite/gdb.base/chng-syms.exp | 2 -
gdb/testsuite/gdb.base/code-expr.exp | 2 -
gdb/testsuite/gdb.base/commands.exp | 2 -
gdb/testsuite/gdb.base/completion.exp | 2 -
gdb/testsuite/gdb.base/complex.exp | 1 -
gdb/testsuite/gdb.base/condbreak.exp | 2 -
gdb/testsuite/gdb.base/consecutive.exp | 2 -
gdb/testsuite/gdb.base/constvars.exp | 2 -
gdb/testsuite/gdb.base/corefile.exp | 2 -
gdb/testsuite/gdb.base/cursal.exp | 2 -
gdb/testsuite/gdb.base/cvexpr.exp | 2 -
gdb/testsuite/gdb.base/define.exp | 2 -
gdb/testsuite/gdb.base/del.exp | 2 -
gdb/testsuite/gdb.base/detach.exp | 2 -
gdb/testsuite/gdb.base/dump.exp | 2 -
gdb/testsuite/gdb.base/echo.exp | 11 -
gdb/testsuite/gdb.base/ena-dis-br.exp | 2 -
gdb/testsuite/gdb.base/environ.exp | 2 -
gdb/testsuite/gdb.base/exprs.exp | 2 -
gdb/testsuite/gdb.base/fileio.exp | 2 -
gdb/testsuite/gdb.base/finish.exp | 2 -
gdb/testsuite/gdb.base/fixsection.exp | 2 -
gdb/testsuite/gdb.base/float.exp | 2 -
gdb/testsuite/gdb.base/foll-exec.exp | 2 -
gdb/testsuite/gdb.base/foll-fork.exp | 2 -
gdb/testsuite/gdb.base/foll-vfork.exp | 2 -
gdb/testsuite/gdb.base/freebpcmd.exp | 2 -
gdb/testsuite/gdb.base/funcargs.exp | 2 -
gdb/testsuite/gdb.base/gcore-buffer-overflow.exp | 2 -
gdb/testsuite/gdb.base/gcore.exp | 2 -
gdb/testsuite/gdb.base/gdb1056.exp | 2 -
gdb/testsuite/gdb.base/gdb1090.exp | 2 -
gdb/testsuite/gdb.base/gdb11531.exp | 2 -
gdb/testsuite/gdb.base/gdb1250.exp | 2 -
gdb/testsuite/gdb.base/gdbvars.exp | 2 -
gdb/testsuite/gdb.base/hashline1.exp | 6 +-
gdb/testsuite/gdb.base/hashline2.exp | 5 +-
gdb/testsuite/gdb.base/hashline3.exp | 6 +-
gdb/testsuite/gdb.base/help.exp | 2 -
gdb/testsuite/gdb.base/huge.exp | 2 -
gdb/testsuite/gdb.base/info-proc.exp | 2 -
gdb/testsuite/gdb.base/info-target.exp | 2 -
gdb/testsuite/gdb.base/interrupt.exp | 2 -
gdb/testsuite/gdb.base/jump.exp | 2 -
gdb/testsuite/gdb.base/langs.exp | 2 -
gdb/testsuite/gdb.base/lineinc.exp | 2 -
gdb/testsuite/gdb.base/list.exp | 2 -
gdb/testsuite/gdb.base/logical.exp | 2 -
gdb/testsuite/gdb.base/longjmp.exp | 2 -
gdb/testsuite/gdb.base/macscp.exp | 2 -
gdb/testsuite/gdb.base/maint.exp | 2 -
gdb/testsuite/gdb.base/mips_pro.exp | 2 -
gdb/testsuite/gdb.base/miscexprs.exp | 2 -
gdb/testsuite/gdb.base/multi-forks.exp | 2 -
gdb/testsuite/gdb.base/nodebug.exp | 2 -
gdb/testsuite/gdb.base/opaque.exp | 2 -
gdb/testsuite/gdb.base/overlays.exp | 2 -
gdb/testsuite/gdb.base/pc-fp.exp | 2 -
gdb/testsuite/gdb.base/pending.exp | 2 -
gdb/testsuite/gdb.base/pointers.exp | 2 -
gdb/testsuite/gdb.base/prelink.exp | 2 -
gdb/testsuite/gdb.base/printcmds.exp | 2 -
gdb/testsuite/gdb.base/psymtab.exp | 2 -
gdb/testsuite/gdb.base/ptype.exp | 2 -
gdb/testsuite/gdb.base/radix.exp | 2 -
gdb/testsuite/gdb.base/recurse.exp | 2 -
gdb/testsuite/gdb.base/relational.exp | 2 -
gdb/testsuite/gdb.base/remote.exp | 2 -
gdb/testsuite/gdb.base/reread.exp | 8 -
gdb/testsuite/gdb.base/restore.exp | 2 -
gdb/testsuite/gdb.base/return2.exp | 2 -
gdb/testsuite/gdb.base/savedregs.exp | 2 -
gdb/testsuite/gdb.base/scope.exp | 2 -
gdb/testsuite/gdb.base/sect-cmd.exp | 2 -
gdb/testsuite/gdb.base/sepdebug.exp | 2 -
gdb/testsuite/gdb.base/set-lang-auto.exp | 2 -
gdb/testsuite/gdb.base/setshow.exp | 2 -
gdb/testsuite/gdb.base/setvar.exp | 2 -
gdb/testsuite/gdb.base/shlib-call.exp | 2 -
gdb/testsuite/gdb.base/shreloc.exp | 2 -
gdb/testsuite/gdb.base/sigall.exp | 2 -
gdb/testsuite/gdb.base/sigaltstack.exp | 2 -
gdb/testsuite/gdb.base/sigbpt.exp | 2 -
gdb/testsuite/gdb.base/siginfo-addr.exp | 2 -
gdb/testsuite/gdb.base/siginfo-obj.exp | 2 -
gdb/testsuite/gdb.base/siginfo.exp | 2 -
gdb/testsuite/gdb.base/signals.exp | 2 -
gdb/testsuite/gdb.base/signull.exp | 2 -
gdb/testsuite/gdb.base/sigrepeat.exp | 2 -
gdb/testsuite/gdb.base/sigstep.exp | 2 -
gdb/testsuite/gdb.base/sizeof.exp | 2 -
gdb/testsuite/gdb.base/so-impl-ld.exp | 2 -
gdb/testsuite/gdb.base/so-indr-cl.exp | 2 -
gdb/testsuite/gdb.base/solib.exp | 2 -
gdb/testsuite/gdb.base/source.exp | 2 -
gdb/testsuite/gdb.base/stack-checking.exp | 2 -
gdb/testsuite/gdb.base/start.exp | 2 -
gdb/testsuite/gdb.base/step-bt.exp | 2 -
gdb/testsuite/gdb.base/store.exp | 2 -
gdb/testsuite/gdb.base/structs.exp | 2 -
gdb/testsuite/gdb.base/structs2.exp | 6 -
gdb/testsuite/gdb.base/term.exp | 2 -
gdb/testsuite/gdb.base/twice.exp | 2 -
gdb/testsuite/gdb.base/unload.exp | 2 -
gdb/testsuite/gdb.base/unwindonsignal.exp | 2 -
gdb/testsuite/gdb.base/varargs.exp | 2 -
gdb/testsuite/gdb.base/volatile.exp | 2 -
gdb/testsuite/gdb.base/watchpoint-solib.exp | 2 -
gdb/testsuite/gdb.base/watchpoint.exp | 2 -
gdb/testsuite/gdb.base/watchpoints.exp | 2 -
gdb/testsuite/gdb.base/whatis-exp.exp | 2 -
gdb/testsuite/gdb.base/whatis.exp | 2 -
gdb/testsuite/gdb.cp/ambiguous.exp | 2 -
gdb/testsuite/gdb.cp/annota2.exp | 2 -
gdb/testsuite/gdb.cp/annota3.exp | 2 -
gdb/testsuite/gdb.cp/anon-union.exp | 2 -
gdb/testsuite/gdb.cp/arg-reference.exp | 2 -
gdb/testsuite/gdb.cp/bool.exp | 2 -
gdb/testsuite/gdb.cp/breakpoint.exp | 2 -
gdb/testsuite/gdb.cp/call-c.exp | 2 -
gdb/testsuite/gdb.cp/casts.exp | 2 -
gdb/testsuite/gdb.cp/class2.exp | 2 -
gdb/testsuite/gdb.cp/classes.exp | 4 -
gdb/testsuite/gdb.cp/cpexprs.exp | 2 -
gdb/testsuite/gdb.cp/cplusfuncs.exp | 4 -
gdb/testsuite/gdb.cp/demangle.exp | 4 -
gdb/testsuite/gdb.cp/derivation.exp | 2 -
gdb/testsuite/gdb.cp/exception.exp | 2 -
gdb/testsuite/gdb.cp/formatted-ref.exp | 2 -
gdb/testsuite/gdb.cp/gdb1355.exp | 2 -
gdb/testsuite/gdb.cp/gdb2384.exp | 5 +-
gdb/testsuite/gdb.cp/gdb2495.exp | 5 +-
gdb/testsuite/gdb.cp/hang.exp | 2 -
gdb/testsuite/gdb.cp/inherit.exp | 4 -
gdb/testsuite/gdb.cp/koenig.cc | 245 +++++++
gdb/testsuite/gdb.cp/koenig.exp | 109 +++
gdb/testsuite/gdb.cp/local.exp | 2 -
gdb/testsuite/gdb.cp/m-data.exp | 2 -
gdb/testsuite/gdb.cp/m-static.exp | 2 -
gdb/testsuite/gdb.cp/mb-ctor.exp | 2 -
gdb/testsuite/gdb.cp/mb-inline.exp | 2 -
gdb/testsuite/gdb.cp/mb-templates.exp | 2 -
gdb/testsuite/gdb.cp/member-ptr.exp | 2 -
gdb/testsuite/gdb.cp/method.exp | 2 -
gdb/testsuite/gdb.cp/misc.exp | 4 -
gdb/testsuite/gdb.cp/namespace-nested-import.exp | 2 -
gdb/testsuite/gdb.cp/namespace.exp | 2 -
gdb/testsuite/gdb.cp/nsdecl.exp | 2 -
gdb/testsuite/gdb.cp/nsimport.exp | 2 -
gdb/testsuite/gdb.cp/nsrecurs.exp | 2 -
gdb/testsuite/gdb.cp/nsstress.exp | 2 -
gdb/testsuite/gdb.cp/nsusing.exp | 2 -
gdb/testsuite/gdb.cp/overload.exp | 2 -
gdb/testsuite/gdb.cp/ovldbreak.exp | 2 -
gdb/testsuite/gdb.cp/pr-1023.exp | 2 -
gdb/testsuite/gdb.cp/pr-1210.exp | 2 -
gdb/testsuite/gdb.cp/pr-574.exp | 2 -
gdb/testsuite/gdb.cp/printmethod.exp | 2 -
gdb/testsuite/gdb.cp/psmang.exp | 2 -
gdb/testsuite/gdb.cp/ref-params.exp | 2 -
gdb/testsuite/gdb.cp/ref-types.exp | 2 -
gdb/testsuite/gdb.cp/rtti.exp | 2 -
gdb/testsuite/gdb.cp/shadow.exp | 2 -
gdb/testsuite/gdb.cp/templates.exp | 4 -
gdb/testsuite/gdb.cp/try_catch.exp | 2 -
gdb/testsuite/gdb.cp/virtfunc.exp | 4 -
gdb/testsuite/gdb.disasm/am33.exp | 2 -
gdb/testsuite/gdb.disasm/h8300s.exp | 2 -
gdb/testsuite/gdb.disasm/hppa.exp | 2 -
gdb/testsuite/gdb.disasm/mn10300.exp | 2 -
gdb/testsuite/gdb.disasm/sh3.exp | 2 -
gdb/testsuite/gdb.disasm/t01_mov.exp | 2 -
gdb/testsuite/gdb.disasm/t02_mova.exp | 2 -
gdb/testsuite/gdb.disasm/t03_add.exp | 2 -
gdb/testsuite/gdb.disasm/t04_sub.exp | 2 -
gdb/testsuite/gdb.disasm/t05_cmp.exp | 2 -
gdb/testsuite/gdb.disasm/t06_ari2.exp | 2 -
gdb/testsuite/gdb.disasm/t07_ari3.exp | 2 -
gdb/testsuite/gdb.disasm/t08_or.exp | 2 -
gdb/testsuite/gdb.disasm/t09_xor.exp | 2 -
gdb/testsuite/gdb.disasm/t10_and.exp | 2 -
gdb/testsuite/gdb.disasm/t11_logs.exp | 2 -
gdb/testsuite/gdb.disasm/t12_bit.exp | 2 -
gdb/testsuite/gdb.disasm/t13_otr.exp | 2 -
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S | 123 ++++
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp | 48 ++
gdb/testsuite/gdb.fortran/exprs.exp | 2 -
gdb/testsuite/gdb.fortran/types.exp | 2 -
gdb/testsuite/gdb.gdb/complaints.exp | 2 -
gdb/testsuite/gdb.gdb/observer.exp | 2 -
gdb/testsuite/gdb.gdb/selftest.exp | 2 -
gdb/testsuite/gdb.gdb/xfullpath.exp | 2 -
gdb/testsuite/gdb.hp/gdb.aCC/watch-cmd.exp | 2 -
gdb/testsuite/gdb.hp/gdb.base-hp/callfwmall.exp | 2 -
gdb/testsuite/gdb.hp/gdb.base-hp/dollar.exp | 2 -
gdb/testsuite/gdb.hp/gdb.base-hp/hwwatchbus.exp | 2 -
gdb/testsuite/gdb.hp/gdb.base-hp/pxdb.exp | 2 -
gdb/testsuite/gdb.hp/gdb.base-hp/sized-enum.exp | 2 -
gdb/testsuite/gdb.hp/gdb.base-hp/so-thresh.exp | 2 -
gdb/testsuite/gdb.hp/gdb.compat/xdb1.exp | 2 -
gdb/testsuite/gdb.hp/gdb.compat/xdb2.exp | 2 -
gdb/testsuite/gdb.hp/gdb.defects/bs14602.exp | 2 -
gdb/testsuite/gdb.hp/gdb.defects/solib-d.exp | 2 -
gdb/testsuite/gdb.java/jmain.exp | 2 -
gdb/testsuite/gdb.java/jmisc.exp | 2 -
gdb/testsuite/gdb.java/jprint.exp | 2 -
gdb/testsuite/gdb.java/jv-exp.exp | 2 -
gdb/testsuite/gdb.java/jv-print.exp | 2 -
gdb/testsuite/gdb.mi/mi-pending.exp | 2 -
gdb/testsuite/gdb.objc/basicclass.exp | 4 -
gdb/testsuite/gdb.objc/nondebug.exp | 4 -
gdb/testsuite/gdb.objc/objcdecode.exp | 4 -
gdb/testsuite/gdb.pascal/types.exp | 2 -
gdb/testsuite/gdb.reverse/i386-precsave.exp | 2 -
gdb/testsuite/gdb.reverse/i386-reverse.exp | 2 -
gdb/testsuite/gdb.reverse/i386-sse-reverse.exp | 2 -
gdb/testsuite/gdb.reverse/i387-env-reverse.exp | 2 -
gdb/testsuite/gdb.reverse/i387-stack-reverse.exp | 2 -
gdb/testsuite/gdb.reverse/sigall-precsave.exp | 2 -
gdb/testsuite/gdb.reverse/sigall-reverse.exp | 2 -
gdb/testsuite/gdb.stabs/exclfwd.exp | 2 -
gdb/testsuite/gdb.stabs/gdb11479.exp | 2 -
gdb/testsuite/gdb.stabs/weird.exp | 2 -
gdb/testsuite/gdb.threads/gcore-thread.exp | 2 -
gdb/testsuite/gdb.threads/killed.exp | 2 -
gdb/testsuite/gdb.threads/linux-dp.exp | 2 -
gdb/testsuite/gdb.threads/manythreads.exp | 2 -
gdb/testsuite/gdb.threads/print-threads.exp | 2 -
gdb/testsuite/gdb.threads/pthreads.exp | 2 -
gdb/testsuite/gdb.threads/schedlock.exp | 2 -
gdb/testsuite/gdb.threads/staticthreads.exp | 2 -
gdb/testsuite/gdb.threads/step.exp | 4 -
gdb/testsuite/gdb.threads/step2.exp | 2 -
gdb/testsuite/gdb.threads/thread-specific.exp | 2 -
gdb/testsuite/gdb.threads/thread_check.exp | 2 -
gdb/testsuite/gdb.threads/thread_events.exp | 2 -
gdb/testsuite/gdb.threads/threadapply.exp | 2 -
gdb/testsuite/gdb.threads/watchthreads.exp | 2 -
gdb/testsuite/gdb.threads/watchthreads2.exp | 2 -
gdb/testsuite/gdb.trace/actions.exp | 2 -
gdb/testsuite/gdb.trace/ax.exp | 2 -
gdb/testsuite/gdb.trace/backtrace.exp | 2 -
gdb/testsuite/gdb.trace/circ.exp | 2 -
gdb/testsuite/gdb.trace/collection.exp | 2 -
gdb/testsuite/gdb.trace/deltrace.exp | 2 -
gdb/testsuite/gdb.trace/infotrace.exp | 2 -
gdb/testsuite/gdb.trace/limits.exp | 2 -
gdb/testsuite/gdb.trace/packetlen.exp | 2 -
gdb/testsuite/gdb.trace/passc-dyn.exp | 2 -
gdb/testsuite/gdb.trace/passcount.exp | 2 -
gdb/testsuite/gdb.trace/report.exp | 2 -
gdb/testsuite/gdb.trace/save-trace.exp | 2 -
gdb/testsuite/gdb.trace/tfile.exp | 2 -
gdb/testsuite/gdb.trace/tfind.exp | 2 -
gdb/testsuite/gdb.trace/tracecmd.exp | 2 -
gdb/testsuite/gdb.trace/tsv.exp | 2 -
gdb/testsuite/gdb.trace/while-dyn.exp | 2 -
gdb/testsuite/gdb.trace/while-stepping.exp | 2 -
gdb/top.c | 3 -
gdb/tracepoint.c | 30 +-
gdb/trad-frame.c | 1 -
gdb/tramp-frame.c | 1 -
gdb/tui/tui-interp.c | 1 -
gdb/tui/tui-regs.c | 5 +-
gdb/tui/tui-win.c | 1 -
gdb/tui/tui-windata.c | 3 -
gdb/ui-out.c | 2 -
gdb/utils.c | 6 +-
gdb/valarith.c | 2 -
gdb/valops.c | 108 ++-
gdb/valprint.c | 2 -
gdb/value.c | 2 -
gdb/value.h | 2 +-
gdb/varobj.c | 17 +-
gdb/version.in | 2 +-
gdb/xml-support.c | 2 -
gdb/xml-syscall.c | 15 +-
gdb/xml-tdesc.c | 1 -
libiberty/ChangeLog | 7 +
libiberty/cp-demangle.c | 8 +
libiberty/cp-demangle.h | 2 +-
libiberty/testsuite/demangle-expected | 3 +
opcodes/ChangeLog | 9 +
opcodes/Makefile.in | 6 +-
opcodes/aclocal.m4 | 6 +-
opcodes/po/es.po | 42 +-
476 files changed, 2117 insertions(+), 1757 deletions(-)
create mode 100644 gdb/testsuite/gdb.cp/koenig.cc
create mode 100644 gdb/testsuite/gdb.cp/koenig.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 13c242d..2302ae4 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,19 @@
+2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
+ sym_name to improve packing.
+ (cortex_a8_erratum_scan): Check for PLT entries.
+ (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
+
+2010-05-07 Tristan Gingold <gingold@adacore.com>
+
+ * Makefile.in: Regenerate with automake 1.11.1.
+ * aclocal.m4: Ditto.
+
+2010-05-05 Nick Clifton <nickc@redhat.com>
+
+ * po/es.po: Updated Spanish translation.
+
2010-05-03 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (vms_lib_bopen): Fix the size threshold to read
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 7134a70..f78a006 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.11 from Makefile.am.
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@@ -688,9 +688,9 @@ BFD32_BACKENDS = \
vaxbsd.lo \
vaxnetbsd.lo \
versados.lo \
- vms-misc.lo \
vms-alpha.lo \
vms-lib.lo \
+ vms-misc.lo \
xcofflink.lo \
xsym.lo \
xtensa-isa.lo \
@@ -1547,7 +1547,7 @@ uninstall-bfdincludeHEADERS:
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
- @failcom='exit 1'; \
+ @fail= failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
@@ -1572,7 +1572,7 @@ $(RECURSIVE_TARGETS):
fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
- @failcom='exit 1'; \
+ @fail= failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
diff --git a/bfd/aclocal.m4 b/bfd/aclocal.m4
index aedde7a..d9e743e 100644
--- a/bfd/aclocal.m4
+++ b/bfd/aclocal.m4
@@ -1,4 +1,4 @@
-# generated automatically by aclocal 1.11 -*- Autoconf -*-
+# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
@@ -34,7 +34,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
[am__api_version='1.11'
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
dnl require some minimum version. Point them to the right macro.
-m4_if([$1], [1.11], [],
+m4_if([$1], [1.11.1], [],
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
])
@@ -50,7 +50,7 @@ m4_define([_AM_AUTOCONF_VERSION], [])
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.11])dnl
+[AM_AUTOMAKE_VERSION([1.11.1])dnl
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
diff --git a/bfd/doc/ChangeLog b/bfd/doc/ChangeLog
index 44e4b9b..93835c7 100644
--- a/bfd/doc/ChangeLog
+++ b/bfd/doc/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-07 Tristan Gingold <gingold@adacore.com>
+
+ * Makefile.in: Regenerate with automake 1.11.1.
+
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.in: Regenerate.
diff --git a/bfd/doc/Makefile.in b/bfd/doc/Makefile.in
index 9a59e3f..aac7ace 100644
--- a/bfd/doc/Makefile.in
+++ b/bfd/doc/Makefile.in
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.11 from Makefile.am.
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 2c24bdd..18fddc6 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -2409,9 +2409,10 @@ struct a8_erratum_fix {
struct a8_erratum_reloc {
bfd_vma from;
bfd_vma destination;
+ struct elf32_arm_link_hash_entry *hash;
+ const char *sym_name;
unsigned int r_type;
unsigned char st_type;
- const char *sym_name;
bfd_boolean non_a8_stub;
};
@@ -4101,6 +4102,7 @@ cortex_a8_erratum_scan (bfd *input_bfd,
{
char *error_message = NULL;
struct elf_link_hash_entry *entry;
+ bfd_boolean use_plt = FALSE;
/* We don't care about the error returned from this
function, only if there is glue or not. */
@@ -4110,12 +4112,18 @@ cortex_a8_erratum_scan (bfd *input_bfd,
if (entry)
found->non_a8_stub = TRUE;
- if (found->r_type == R_ARM_THM_CALL
- && found->st_type != STT_ARM_TFUNC)
- force_target_arm = TRUE;
- else if (found->r_type == R_ARM_THM_CALL
- && found->st_type == STT_ARM_TFUNC)
- force_target_thumb = TRUE;
+ /* Keep a simpler condition, for the sake of clarity. */
+ if (htab->splt != NULL && found->hash != NULL
+ && found->hash->root.plt.offset != (bfd_vma) -1)
+ use_plt = TRUE;
+
+ if (found->r_type == R_ARM_THM_CALL)
+ {
+ if (found->st_type != STT_ARM_TFUNC || use_plt)
+ force_target_arm = TRUE;
+ else
+ force_target_thumb = TRUE;
+ }
}
/* Check if we have an offending branch instruction. */
@@ -4682,6 +4690,7 @@ elf32_arm_size_stubs (bfd *output_bfd,
a8_relocs[num_a8_relocs].st_type = st_type;
a8_relocs[num_a8_relocs].sym_name = sym_name;
a8_relocs[num_a8_relocs].non_a8_stub = created_stub;
+ a8_relocs[num_a8_relocs].hash = hash;
num_a8_relocs++;
}
diff --git a/bfd/po/es.po b/bfd/po/es.po
index da410ee..c9837fa 100644
--- a/bfd/po/es.po
+++ b/bfd/po/es.po
@@ -1,14 +1,14 @@
-# Mensajes en español para bfd 2.19.90.
-# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+# Mensajes en español para bfd 2.20.1.
+# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
# This file is distributed under the same license as the binutils package.
-# Cristian Othón Martínez Vera <cfuga@itam.mx>, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+# Cristian Othón Martínez Vera <cfuga@itam.mx>, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
#
msgid ""
msgstr ""
-"Project-Id-Version: bfd 2.19.90\n"
+"Project-Id-Version: bfd 2.20.1\n"
"Report-Msgid-Bugs-To: bug-binutils@gnu.org\n"
-"POT-Creation-Date: 2009-09-07 14:05+0200\n"
-"PO-Revision-Date: 2009-09-12 14:44-0500\n"
+"POT-Creation-Date: 2010-03-03 15:03+0100\n"
+"PO-Revision-Date: 2010-04-27 13:59-0500\n"
"Last-Translator: Cristian Othón Martínez Vera <cfuga@itam.mx>\n"
"Language-Team: Spanish <es@li.org>\n"
"MIME-Version: 1.0\n"
@@ -46,129 +46,129 @@ msgstr "%s: no se puede representar la secci
msgid "*unknown*"
msgstr "*desconocido*"
-#: aoutx.h:3994 aoutx.h:4320
+#: aoutx.h:3997 aoutx.h:4323
msgid "%P: %B: unexpected relocation type\n"
msgstr "%P: %B: tipo de reubicación inesperado\n"
-#: aoutx.h:5354
+#: aoutx.h:5358
#, c-format
msgid "%s: relocatable link from %s to %s not supported"
msgstr "%s: no se admite el enlace reubicable de %s a %s"
-#: archive.c:2056
+#: archive.c:2057
msgid "Warning: writing archive was slow: rewriting timestamp\n"
msgstr "Aviso: la escritura del fichero fue lenta: se reescribe la marca de tiempo\n"
# ¡Uff! Si utilizáramos file=archivo, esta traducción sería imposible. cfuga
-#: archive.c:2342
+#: archive.c:2344
msgid "Reading archive file mod timestamp"
msgstr "Se lee la marca de tiempo modificada del fichero en el archivo"
-#: archive.c:2366
+#: archive.c:2368
msgid "Writing updated armap timestamp"
msgstr "Se escribe la marca de tiempo actualizada de armap"
-#: bfd.c:375
+#: bfd.c:376
msgid "No error"
msgstr "No hay error"
-#: bfd.c:376
+#: bfd.c:377
msgid "System call error"
msgstr "Error en la llamada al sistema"
-#: bfd.c:377
+#: bfd.c:378
msgid "Invalid bfd target"
msgstr "Objetivo bfd inválido"
-#: bfd.c:378
+#: bfd.c:379
msgid "File in wrong format"
msgstr "Fichero en formato erróneo"
-#: bfd.c:379
+#: bfd.c:380
msgid "Archive object file in wrong format"
msgstr "Archivo de ficheros objeto en formato erróneo"
-#: bfd.c:380
+#: bfd.c:381
msgid "Invalid operation"
msgstr "Operación inválida"
-#: bfd.c:381
+#: bfd.c:382
msgid "Memory exhausted"
msgstr "Memoria agotada"
-#: bfd.c:382
+#: bfd.c:383
msgid "No symbols"
msgstr "No hay símbolos"
-#: bfd.c:383
+#: bfd.c:384
msgid "Archive has no index; run ranlib to add one"
msgstr "El archivo no tiene índice; ejecute ranlib para agregar uno"
-#: bfd.c:384
+#: bfd.c:385
msgid "No more archived files"
msgstr "No hay más ficheros archivados"
-#: bfd.c:385
+#: bfd.c:386
msgid "Malformed archive"
msgstr "Archivo malformado"
-#: bfd.c:386
+#: bfd.c:387
msgid "File format not recognized"
msgstr "No se reconoce el formato del fichero"
-#: bfd.c:387
+#: bfd.c:388
msgid "File format is ambiguous"
msgstr "El formato del fichero es ambiguo"
-#: bfd.c:388
+#: bfd.c:389
msgid "Section has no contents"
msgstr "La sección no tiene contenido"
-#: bfd.c:389
+#: bfd.c:390
msgid "Nonrepresentable section on output"
msgstr "Sección no representable en la salida"
-#: bfd.c:390
+#: bfd.c:391
msgid "Symbol needs debug section which does not exist"
msgstr "Un símbolo requiere de una sección de depuración, la cual no existe"
-#: bfd.c:391
+#: bfd.c:392
msgid "Bad value"
msgstr "Valor erróneo"
-#: bfd.c:392
+#: bfd.c:393
msgid "File truncated"
msgstr "Fichero truncado"
-#: bfd.c:393
+#: bfd.c:394
msgid "File too big"
msgstr "El fichero es demasiado grande"
-#: bfd.c:394
+#: bfd.c:395
#, c-format
msgid "Error reading %s: %s"
msgstr "Error al leer %s: %s"
-#: bfd.c:395
+#: bfd.c:396
msgid "#<Invalid error code>"
msgstr "#<Código de error inválido>"
-#: bfd.c:919
+#: bfd.c:920
#, c-format
msgid "BFD %s assertion fail %s:%d"
msgstr "falló la aseveración BFD %s %s:%d"
-#: bfd.c:931
+#: bfd.c:932
#, c-format
msgid "BFD %s internal error, aborting at %s line %d in %s\n"
msgstr "error interno de BFD %s, se aborta en %s línea %d en %s\n"
-#: bfd.c:935
+#: bfd.c:936
#, c-format
msgid "BFD %s internal error, aborting at %s line %d\n"
msgstr "error interno de BFD %s, se aborta en %s línea %d\n"
-#: bfd.c:937
+#: bfd.c:938
msgid "Please report this bug.\n"
msgstr "Por favor reporte este bicho.\n"
@@ -188,8 +188,8 @@ msgid "Warning: Writing section `%s' to huge (ie negative) file offset 0x%lx."
msgstr "Aviso: Se escribe la sección `%s' a un desplazamiento de fichero grande (pe negativo) 0x%lx."
#: bout.c:1150 elf-m10300.c:2078 elf32-avr.c:1639 elf32-frv.c:5743
-#: elf32-xtensa.c:6639 elfxx-sparc.c:2456 reloc.c:5386 reloc16.c:162
-#: vms.c:1918 elf32-ia64.c:788 elf64-ia64.c:788
+#: elfxx-sparc.c:2456 reloc.c:5386 reloc16.c:162 vms.c:1918 elf32-ia64.c:788
+#: elf64-ia64.c:788
msgid "%P%F: --relax and -r may not be used together\n"
msgstr "%P%F: --relax y -r no se pueden usar juntos\n"
@@ -260,7 +260,7 @@ msgstr ""
" primer suceso: %B: llamada thumb a arm\n"
" considere reenlazar con --support-old-code activado"
-#: coff-arm.c:1755 coff-tic80.c:695 cofflink.c:3027
+#: coff-arm.c:1755 coff-tic80.c:695 cofflink.c:3030
msgid "%B: bad reloc address 0x%lx in section `%A'"
msgstr "%B: dirección de reubicación 0x%lx errónea en la sección `%A'"
@@ -273,12 +273,12 @@ msgstr "%B:
msgid "error: %B is compiled for APCS-%d, whereas %B is compiled for APCS-%d"
msgstr "error: %B está compilado para APCS-%d, mientras que %B está compilado para APCS-%d"
-#: coff-arm.c:2227 elf32-arm.c:10327
+#: coff-arm.c:2227 elf32-arm.c:10334
#, c-format
msgid "error: %B passes floats in float registers, whereas %B passes them in integer registers"
msgstr "error: %B pasa números de coma flotante en registros de coma flotante, mientras que %B los pasa en registros enteros"
-#: coff-arm.c:2230 elf32-arm.c:10331
+#: coff-arm.c:2230 elf32-arm.c:10338
#, c-format
msgid "error: %B passes floats in integer registers, whereas %B passes them in float registers"
msgstr "error: %B pasa números de coma flotante en registros enteros, mientras que %B los pasa en registros de coma flotante"
@@ -293,12 +293,12 @@ msgstr "error: %B est
msgid "error: %B is compiled as absolute position code, whereas target %B is position independent"
msgstr "error: %B está compilado como código de posición absoluta, mientras que el objetivo %B es independiente de posición"
-#: coff-arm.c:2275 elf32-arm.c:10396
+#: coff-arm.c:2275 elf32-arm.c:10403
#, c-format
msgid "Warning: %B supports interworking, whereas %B does not"
msgstr "Aviso: %B admite interoperabilidad, mientras que %B no"
-#: coff-arm.c:2278 elf32-arm.c:10402
+#: coff-arm.c:2278 elf32-arm.c:10409
#, c-format
msgid "Warning: %B does not support interworking, whereas %B does"
msgstr "Aviso: %B no admite interoperabilidad, mientras que %B sí"
@@ -308,7 +308,7 @@ msgstr "Aviso: %B no admite interoperabilidad, mientras que %B s
msgid "private flags = %x:"
msgstr "opciones privadas = %x:"
-#: coff-arm.c:2310 elf32-arm.c:10453
+#: coff-arm.c:2310 elf32-arm.c:10460
#, c-format
msgid " [floats passed in float registers]"
msgstr "[números de coma flotante pasados en registros de coma flotante]"
@@ -318,7 +318,7 @@ msgstr "[n
msgid " [floats passed in integer registers]"
msgstr "[números de coma flotante pasados en registros enteros]"
-#: coff-arm.c:2315 elf32-arm.c:10456
+#: coff-arm.c:2315 elf32-arm.c:10463
#, c-format
msgid " [position independent]"
msgstr "[independiente de posición]"
@@ -343,12 +343,12 @@ msgstr "[admite interoperabilidad]"
msgid " [interworking not supported]"
msgstr "[no admite interoperabilidad]"
-#: coff-arm.c:2371 elf32-arm.c:9360
+#: coff-arm.c:2371 elf32-arm.c:9367
#, c-format
msgid "Warning: Not setting interworking flag of %B since it has already been specified as non-interworking"
msgstr "Aviso: No se establece la opción de interoperabilidad de %B ya que se había especificado con anterioridad como no interoperable"
-#: coff-arm.c:2375 elf32-arm.c:9364
+#: coff-arm.c:2375 elf32-arm.c:9371
#, c-format
msgid "Warning: Clearing the interworking flag of %B due to outside request"
msgstr "Aviso: Se limpia la opción de interoperabilidad de %B debido a una petición externa"
@@ -371,7 +371,7 @@ msgstr "%B: aviso:
msgid "uncertain calling convention for non-COFF symbol"
msgstr "convención de llamada incierta para un símbolo que no es COFF"
-#: coff-m68k.c:506 elf32-bfin.c:5693 elf32-cr16.c:2965 elf32-m68k.c:4615
+#: coff-m68k.c:506 elf32-bfin.c:5691 elf32-cr16.c:2965 elf32-m68k.c:4615
msgid "unsupported reloc type"
msgstr "no se admite el tipo de reubicación"
@@ -404,17 +404,17 @@ msgstr "reubicaci
msgid "Unrecognized reloc"
msgstr "No se reconoce la reubicación"
-#: coff-rs6000.c:2787
+#: coff-rs6000.c:2789
#, c-format
msgid "%s: unsupported relocation type 0x%02x"
msgstr "%s: no se admite el tipo de reubicación 0x%02x"
-#: coff-rs6000.c:2880
+#: coff-rs6000.c:2882
#, c-format
msgid "%s: TOC reloc at 0x%x to symbol `%s' with no TOC entry"
msgstr "%s: reubicación de TOC en 0x%x al símbolo `%s' sin entrada TOC"
-#: coff-rs6000.c:3646 coff64-rs6000.c:2168
+#: coff-rs6000.c:3648 coff64-rs6000.c:2170
msgid "%B: symbol `%s' has unrecognized smclas %d"
msgstr "%B: el símbolo `%s' tiene smclas %d que no se reconoce"
@@ -485,24 +485,24 @@ msgstr "aviso: %B: el s
msgid "%B: illegal relocation type %d at address 0x%lx"
msgstr "%B: tipo de reubicación %d ilegal en la dirección 0x%lx"
-#: coffgen.c:1571
+#: coffgen.c:1573
msgid "%B: bad string table size %lu"
msgstr "%B: tamaño de tabla de cadenas %lu erróneo"
-#: cofflink.c:513 elflink.c:4307
+#: cofflink.c:513 elflink.c:4308
msgid "Warning: type of symbol `%s' changed from %d to %d in %B"
msgstr "Aviso: el tipo del símbolo `%s' cambió de %d a %d en %B"
-#: cofflink.c:2305
+#: cofflink.c:2308
msgid "%B: relocs in section `%A', but it has no contents"
msgstr "%B: reubicaciones en la sección `%A', pero no tiene contenido"
-#: cofflink.c:2636 coffswap.h:826
+#: cofflink.c:2639 coffswap.h:826
#, c-format
msgid "%s: %s: reloc overflow: 0x%lx > 0xffff"
msgstr "%s: %s: desbordamiento de reubicación: 0x%lx > 0xffff"
-#: cofflink.c:2645 coffswap.h:812
+#: cofflink.c:2648 coffswap.h:812
#, c-format
msgid "%s: warning: %s: line number overflow: 0x%lx > 0xffff"
msgstr "%s: aviso: %s: desbordamiento de número de línea: 0x%lx > 0xffff"
@@ -516,50 +516,50 @@ msgstr "error: %B est
msgid "warning: unable to update contents of %s section in %s"
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-05 14:24 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-05-05 14:24 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 6b1c425da60b73c7750a970b230182cbf369aa56 (commit)
via 1a22a6c3542b50b14d9a643ad02e4ddf70a90197 (commit)
via e6a6f67279ed4843912e864c540ee6601ac5f5ec (commit)
via 54952cba3d95276f558ac80a992d96e01cbf4dc1 (commit)
via c913f394e94562e6fd963416bb17952246734faf (commit)
via 1bbadf4550f95c8bc2afc4ac66f42f7922f6d220 (commit)
via 60d15ff6d78921d080aee681e60372abe6627570 (commit)
via 384b96f4e6097e1d6492e9e3681017fe04d56749 (commit)
via 3c0433dfe2835ab40ad098baec7e87cfcca0c0e2 (commit)
via 503dfd9d572fc2ddfad9a6815f53eec7b5a5e42c (commit)
via a3c404365402daef3839e40a2f3345455dfa2876 (commit)
via ca1f9e2a7ee7afc8d329da94300a908836716511 (commit)
via dff477d9782f50e0d163363de1fac6f2a8d9a226 (commit)
via 872b7c6f612a861b17cd42732356223d0503016f (commit)
via f016e160c1bc915d5826cd251db03bc43924e31f (commit)
via eeb30181669a21f349574a169469936a9516c88a (commit)
via 5b6d7b27faf540240234d9e0893bd06e61a9a44e (commit)
via ed0ee89233b61555c0a7f5a0c25c33fc82b86e0c (commit)
from 16b6a32f73a0866442f1b78182fce9e11c23a909 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6b1c425da60b73c7750a970b230182cbf369aa56
Merge: 16b6a32f73a0866442f1b78182fce9e11c23a909 1a22a6c3542b50b14d9a643ad02e4ddf70a90197
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Wed May 5 10:16:58 2010 -0400
Merge remote branch 'gdb/master'
commit 1a22a6c3542b50b14d9a643ad02e4ddf70a90197
Author: Hui Zhu <teawater@gmail.com>
Date: Wed May 5 09:20:18 2010 +0000
2010-05-05 Hui Zhu <teawater@gmail.com>
* gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
commit e6a6f67279ed4843912e864c540ee6601ac5f5ec
Author: Hui Zhu <teawater@gmail.com>
Date: Wed May 5 09:20:18 2010 +0000
2010-05-05 Hui Zhu <teawater@gmail.com>
* gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
commit 54952cba3d95276f558ac80a992d96e01cbf4dc1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed May 5 00:00:33 2010 +0000
*** empty log message ***
commit c913f394e94562e6fd963416bb17952246734faf
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed May 5 00:00:04 2010 +0000
daily update
commit 1bbadf4550f95c8bc2afc4ac66f42f7922f6d220
Author: Mark Kettenis <kettenis@gnu.org>
Date: Tue May 4 21:09:20 2010 +0000
* remote.c (register_remote_support_xml)
(remote_query_supported_append, remote_query_supported): Add cast
to NULL used as sentinel.
* tracepoint.c (tvariables_info_1): Likewise.
* utils.c (add_internal_problem_command): Likewise.
commit 60d15ff6d78921d080aee681e60372abe6627570
Author: mgretton <mgretton>
Date: Tue May 4 09:54:17 2010 +0000
* gdb/dwarf2loc.c (read_pieced_value, write_pieced_value,
dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
registers gracefully.
commit 384b96f4e6097e1d6492e9e3681017fe04d56749
Author: mgretton <mgretton>
Date: Tue May 4 08:47:11 2010 +0000
* gdb/exec.c (print_section_info): Display entry point without arch
specific parts.
commit 3c0433dfe2835ab40ad098baec7e87cfcca0c0e2
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue May 4 06:48:25 2010 +0000
PR exp/11349.
* printcmd.c (x_command): Only dereference once implicitly for
TYPE_CODE_REF.
testsuite dir:
PR exp/11349.
* testsuite/gdb.cp/ref-types.exp: Add test to examine
use a reference local variable.
commit 503dfd9d572fc2ddfad9a6815f53eec7b5a5e42c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue May 4 01:45:00 2010 +0000
daily update
commit a3c404365402daef3839e40a2f3345455dfa2876
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue May 4 00:00:32 2010 +0000
*** empty log message ***
commit ca1f9e2a7ee7afc8d329da94300a908836716511
Author: Doug Evans <dje@google.com>
Date: Mon May 3 20:58:20 2010 +0000
* event-loop.c (gdb_timer): Delete unused global.
(create_timer): Update.
commit dff477d9782f50e0d163363de1fac6f2a8d9a226
Author: Doug Evans <dje@google.com>
Date: Mon May 3 20:53:21 2010 +0000
* event-loop.c (struct callback_event): New struct.
(callback_list): New global.
(append_callback_event, delete_callback_event): New functions.
(process_callback): New function.
(start_event_loop): Call it.
* remote-utils.c (NOT_SCHEDULED): Define.
(readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
moved out of readchar.
(readchar): Rewrite. Call reschedule before returning.
(reset_readchar): New function.
(remote_close): Call it.
(process_remaining, reschedule): New functions.
* server.h (callback_handler_func): New typedef.
(append_callback_event, delete_callback_event): Declare.
commit 872b7c6f612a861b17cd42732356223d0503016f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon May 3 20:10:22 2010 +0000
gdb/
* cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
CURRENT->DECLARATION case.
* cp-support.h (struct using_direct): Provide extended comment.
commit f016e160c1bc915d5826cd251db03bc43924e31f
Author: Mark Kettenis <kettenis@gnu.org>
Date: Mon May 3 19:59:12 2010 +0000
* hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
HPPABSD_SIZEOF_GREGS.
(HPPAOBSD_SIZEOF_FPREGS): New define.
(hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
(hppaobsd_supply_fpregset): New function.
(hppaobsd_gregset): Renamed from hppabsd_gregset.
(hppaobsd_fpregset): New variable.
(hppaobsd_regset_from_core_section): Handle floating-point registers.
(_initialize_hppabsd_tdep): Remove spurious blank line.
commit eeb30181669a21f349574a169469936a9516c88a
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon May 3 18:13:36 2010 +0000
gdb/gdbserver/
* proc-service.c (ps_pglobal_lookup): Use
thread_db_look_up_one_symbol.
* remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
parameter. Use it instead of all_symbols_looked_up.
* server.h (struct process_info) <all_symbols_looked_up>: Delete
field.
(all_symbols_looked_up): Don't declare.
(look_up_one_symbol): Add new `may_ask_gdb' parameter.
* thread-db.c (struct thread_db) <all_symbols_looked_up>: New
field.
(thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
Set all_symbols_looked_up here.
(thread_db_look_up_one_symbol): New.
(thread_db_get_tls_address): Adjust.
(thread_db_load_search, try_thread_db_load_1): Always allocate the
thread_db object on the heap, and tentatively set it in the
process structure.
(thread_db_init): Don't set all_symbols_looked_up here.
* linux-low.h (thread_db_look_up_one_symbol): Declare.
commit 5b6d7b27faf540240234d9e0893bd06e61a9a44e
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon May 3 16:04:29 2010 +0000
bfd/
2010-05-03 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (vms_lib_bopen): Fix the size threshold to read
selective_search flag.
Add comments.
* vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
before output_has_begun is set.
commit ed0ee89233b61555c0a7f5a0c25c33fc82b86e0c
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon May 3 13:38:26 2010 +0000
PR pascal/11349.
* p-valprint.c (pascal_value_print): Always dereference a value with
type code TYPE_CODE_REF.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 9 +++
bfd/version.h | 2 +-
bfd/vms-alpha.c | 31 ++++++----
bfd/vms-lib.c | 4 +-
gdb/ChangeLog | 58 ++++++++++++++++++
gdb/cp-namespace.c | 12 ++--
gdb/cp-support.h | 51 ++++++++++++----
gdb/dwarf2loc.c | 35 +++++++++--
gdb/event-loop.c | 5 +-
gdb/exec.c | 7 ++-
gdb/gdbarch.h | 6 +-
gdb/gdbserver/ChangeLog | 39 ++++++++++++
gdb/gdbserver/event-loop.c | 115 ++++++++++++++++++++++++++++++++++++
gdb/gdbserver/linux-low.h | 1 +
gdb/gdbserver/proc-service.c | 2 +-
gdb/gdbserver/remote-utils.c | 110 +++++++++++++++++++++++++++--------
gdb/gdbserver/server.h | 11 ++--
gdb/gdbserver/thread-db.c | 100 ++++++++++++++++++++------------
gdb/hppaobsd-tdep.c | 54 ++++++++++++++---
gdb/p-valprint.c | 5 +-
gdb/printcmd.c | 2 +-
gdb/remote.c | 8 +-
gdb/testsuite/ChangeLog | 6 ++
gdb/testsuite/gdb.cp/ref-types.exp | 5 ++
gdb/tracepoint.c | 4 +-
gdb/utils.c | 10 ++-
gdb/version.in | 2 +-
27 files changed, 558 insertions(+), 136 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6ebbe7f..13c242d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,13 @@
2010-05-03 Tristan Gingold <gingold@adacore.com>
+ * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
+ selective_search flag.
+ Add comments.
+ * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
+ before output_has_begun is set.
+
+2010-05-03 Tristan Gingold <gingold@adacore.com>
+
* vms-alpha.c: Add comments.
(struct vms_private_data_struct): Remove image_autoextend field.
(dst_check_allocation): Removed.
@@ -11,6 +19,7 @@
Write the dmt section.
(evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
(alpha_vms_read_sections_content): Do not set image_autoextend.
+ (alpha_vms_bfd_final_link): Generate the dst.
2010-05-03 Tristan Gingold <gingold@adacore.com>
diff --git a/bfd/version.h b/bfd/version.h
index 80a43b6..791d072 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100503
+#define BFD_VERSION_DATE 20100505
#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/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 92d0693..5ae54c2 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -8364,6 +8364,7 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
bfd_vma base_addr;
bfd_vma last_addr;
asection *dst;
+ asection *dmt;
bfd_get_outsymbols (abfd) = NULL;
bfd_get_symcount (abfd) = 0;
@@ -8478,6 +8479,21 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
alpha_vms_link_hash (info)->fixup = fixupsec;
alpha_vms_link_hash (info)->base_addr = base_addr;
+ /* Create the DMT section, if necessary. */
+ dst = PRIV (dst_section);
+ if (dst != NULL && dst->size == 0)
+ dst = NULL;
+ if (dst != NULL)
+ {
+ dmt = bfd_make_section_anyway_with_flags
+ (info->output_bfd, "$DMT$",
+ SEC_DEBUGGING | SEC_HAS_CONTENTS | SEC_LINKER_CREATED);
+ if (dmt == NULL)
+ return FALSE;
+ }
+ else
+ dmt = NULL;
+
/* Read all sections from the inputs. */
for (sub = info->input_bfds; sub != NULL; sub = sub->link_next)
{
@@ -8491,7 +8507,8 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
return FALSE;
}
- /* Handle all the link order information for the sections. */
+ /* Handle all the link order information for the sections.
+ Note: past this point, it is not possible to create new sections. */
for (o = abfd->sections; o != NULL; o = o->next)
{
for (p = o->map_head.link_order; p != NULL; p = p->next)
@@ -8518,21 +8535,11 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
return FALSE;
/* Compute the DMT. */
- dst = PRIV (dst_section);
- if (dst != NULL && dst->size == 0)
- dst = NULL;
- if (dst != NULL)
+ if (dmt != NULL)
{
- asection *dmt;
int pass;
unsigned char *contents = NULL;
- dmt = bfd_make_section_anyway_with_flags
- (info->output_bfd, "$DMT$",
- SEC_DEBUGGING | SEC_HAS_CONTENTS | SEC_LINKER_CREATED);
- if (dmt == NULL)
- return FALSE;
-
/* In pass 1, compute the size. In pass 2, write the DMT contents. */
for (pass = 0; pass < 2; pass++)
{
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index bbef19c..0b45a13 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -577,6 +577,7 @@ _bfd_vms_lib_archive_p (bfd *abfd, enum vms_lib_kind kind)
off = bfd_getl16 (sbm->next);
if (off != 0)
{
+ /* Read the 'next' array. */
sbmdesc->next = (unsigned short *)bfd_alloc
(abfd, sbm_len * sizeof (unsigned short));
buf1 = data + off;
@@ -585,6 +586,7 @@ _bfd_vms_lib_archive_p (bfd *abfd, enum vms_lib_kind kind)
}
else
{
+ /* There is no next array if there is only one submap. */
BFD_ASSERT (tdata->nbr_dcxsbm == 1);
sbmdesc->next = NULL;
}
@@ -1200,7 +1202,7 @@ vms_lib_bopen (bfd *el, file_ptr filepos)
/* Check id. */
if (mhd->id != MHD__C_MHDID)
return FALSE;
- if (len >= sizeof (struct vms_mhd))
+ if (len >= MHD__C_MHDLEN + 1)
el->selective_search = (mhd->objstat & MHD__M_SELSRC) ? 1 : 0;
el->mtime = vms_rawtime_to_time_t (mhd->datim);
el->mtime_set = TRUE;
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9c3591c..4f56ff1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,61 @@
+2010-05-05 Hui Zhu <teawater@gmail.com>
+
+ * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
+
+2010-05-04 Mark Kettenis <kettenis@gnu.org>
+
+ * remote.c (register_remote_support_xml)
+ (remote_query_supported_append, remote_query_supported): Add cast
+ to NULL used as sentinel.
+ * tracepoint.c (tvariables_info_1): Likewise.
+ * utils.c (add_internal_problem_command): Likewise.
+
+2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * dwarf2loc.c (read_pieced_value, write_pieced_value,
+ dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
+ registers gracefully.
+
+2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * exec.c (print_section_info): Display entry point without arch
+ specific parts.
+
+2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ PR exp/11349.
+ * printcmd.c (x_command): Only dereference once implicitly for
+ TYPE_CODE_REF.
+
+2010-05-03 Doug Evans <dje@google.com>
+
+ * event-loop.c (gdb_timer): Delete unused global.
+ (create_timer): Update.
+
+2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
+ CURRENT->DECLARATION case.
+ * cp-support.h (struct using_direct): Provide extended comment.
+
+2010-05-03 Mark Kettenis <kettenis@gnu.org>
+
+ * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
+ HPPABSD_SIZEOF_GREGS.
+ (HPPAOBSD_SIZEOF_FPREGS): New define.
+ (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
+ (hppaobsd_supply_fpregset): New function.
+ (hppaobsd_gregset): Renamed from hppabsd_gregset.
+ (hppaobsd_fpregset): New variable.
+ (hppaobsd_regset_from_core_section): Handle floating-point registers.
+ (_initialize_hppabsd_tdep): Remove spurious blank line.
+
+2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ PR pascal/11349.
+ * p-valprint.c (pascal_value_print): Always dereference a value with
+ type code TYPE_CODE_REF.
+
2010-05-03 Pedro Alves <pedro@codesourcery.com>
* remote.c (remote_notice_signals): New.
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index c050d1a..e042463 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -355,12 +355,14 @@ cp_lookup_symbol_imports (const char *scope,
searched_cleanup = make_cleanup (reset_directive_searched, current);
/* If there is an import of a single declaration, compare the imported
- declaration with the sought out name. If there is a match pass
- current->import_src as NAMESPACE to direct the search towards the
- imported namespace. */
- if (current->declaration && strcmp (name, current->declaration) == 0)
+ declaration (after optional renaming by its alias) with the sought
+ out name. If there is a match pass current->import_src as NAMESPACE
+ to direct the search towards the imported namespace. */
+ if (current->declaration
+ && strcmp (name, current->alias ? current->alias
+ : current->declaration) == 0)
sym = cp_lookup_symbol_in_namespace (current->import_src,
- name,
+ current->declaration,
block,
domain);
diff --git a/gdb/cp-support.h b/gdb/cp-support.h
index f2f202f..dd4df84 100644
--- a/gdb/cp-support.h
+++ b/gdb/cp-support.h
@@ -37,19 +37,44 @@ struct type;
struct demangle_component;
/* This struct is designed to store data from using directives. It
- says that names from namespace IMPORT_SRC should be visible within
- namespace IMPORT_DEST. These form a linked list; NEXT is the next element
- of the list. If the imported namespace has been aliased, ALIAS is set to a
- string representing the alias. Otherwise, ALIAS is NULL.
- Eg:
- namespace C = A::B;
- ALIAS = "C"
- DECLARATION is the name of the imported declaration, if this import
- statement represents one.
- Eg:
- using A::x;
- Where x is variable in namespace A. DECLARATION is set to x.
-*/
+ says that names from namespace IMPORT_SRC should be visible within namespace
+ IMPORT_DEST. These form a linked list; NEXT is the next element of the
+ list. If the imported namespace or declaration has been aliased within the
+ IMPORT_DEST namespace, ALIAS is set to a string representing the alias.
+ Otherwise, ALIAS is NULL. DECLARATION is the name of the imported
+ declaration, if this import statement represents one. Otherwise DECLARATION
+ is NULL and this import statement represents a namespace.
+
+ C++: using namespace A;
+ Fortran: use A
+ import_src = "A"
+ import_dest = local scope of the import statement even such as ""
+ alias = NULL
+ declaration = NULL
+
+ C++: using A::x;
+ Fortran: use A, only: x
+ import_src = "A"
+ import_dest = local scope of the import statement even such as ""
+ alias = NULL
+ declaration = "x"
+ The declaration will get imported as import_dest::x.
+
+ C++: namespace LOCALNS = A;
+ Fortran has no way to address non-local namespace/module.
+ import_src = "A"
+ import_dest = local scope of the import statement even such as ""
+ alias = "LOCALNS"
+ declaration = NULL
+ The namespace will get imported as the import_dest::LOCALNS namespace.
+
+ C++ cannot express it, it would be something like: using localname = A::x;
+ Fortran: use A, only localname => x
+ import_src = "A"
+ import_dest = local scope of the import statement even such as ""
+ alias = "localname"
+ declaration = "x"
+ The declaration will get imported as localname or `import_dest`localname. */
struct using_direct
{
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 8fbf651..2bd45d9 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -284,8 +284,16 @@ read_pieced_value (struct value *v)
/* Big-endian, and we want less than full size. */
reg_offset = register_size (arch, gdb_regnum) - p->size;
- get_frame_register_bytes (frame, gdb_regnum, reg_offset, p->size,
- contents + offset);
+ if (gdb_regnum != -1)
+ {
+ get_frame_register_bytes (frame, gdb_regnum, reg_offset,
+ p->size, contents + offset);
+ }
+ else
+ {
+ error (_("Unable to access DWARF register number %s"),
+ paddress (arch, p->v.expr.value));
+ }
}
break;
@@ -356,8 +364,16 @@ write_pieced_value (struct value *to, struct value *from)
/* Big-endian, and we want less than full size. */
reg_offset = register_size (arch, gdb_regnum) - p->size;
- put_frame_register_bytes (frame, gdb_regnum, reg_offset, p->size,
- contents + offset);
+ if (gdb_regnum != -1)
+ {
+ put_frame_register_bytes (frame, gdb_regnum, reg_offset,
+ p->size, contents + offset);
+ }
+ else
+ {
+ error (_("Unable to write to DWARF register number %s"),
+ paddress (arch, p->v.expr.value));
+ }
}
break;
case DWARF_VALUE_MEMORY:
@@ -454,7 +470,16 @@ dwarf2_evaluate_loc_desc (struct symbol *var, struct frame_info *frame,
struct gdbarch *arch = get_frame_arch (frame);
CORE_ADDR dwarf_regnum = dwarf_expr_fetch (ctx, 0);
int gdb_regnum = gdbarch_dwarf2_reg_to_regnum (arch, dwarf_regnum);
- retval = value_from_register (SYMBOL_TYPE (var), gdb_regnum, frame);
+ if (gdb_regnum != -1)
+ {
+ retval = value_from_register (SYMBOL_TYPE (var),
+ gdb_regnum, frame);
+ }
+ else
+ {
+ error (_("Unable to access DWARF register number %s"),
+ paddress (arch, dwarf_regnum));
+ }
}
break;
diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index 533eefe..735d0f6 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -218,8 +218,7 @@ struct gdb_timer
struct gdb_timer *next;
timer_handler_func *proc; /* Function to call to do the work */
gdb_client_data client_data; /* Argument to async_handler_func */
- }
-gdb_timer;
+ };
/* List of currently active timers. It is sorted in order of
increasing timers. */
@@ -1188,7 +1187,7 @@ create_timer (int milliseconds, timer_handler_func * proc, gdb_client_data clien
gettimeofday (&time_now, NULL);
- timer_ptr = (struct gdb_timer *) xmalloc (sizeof (gdb_timer));
+ timer_ptr = (struct gdb_timer *) xmalloc (sizeof (*timer_ptr));
timer_ptr->when.tv_sec = time_now.tv_sec + delta.tv_sec;
timer_ptr->when.tv_usec = time_now.tv_usec + delta.tv_usec;
/* carry? */
diff --git a/gdb/exec.c b/gdb/exec.c
index 89511bd..5757a91 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -669,6 +669,7 @@ print_section_info (struct target_section_table *t, bfd *abfd)
{
/* gcc-3.4 does not like the initialization in <p == t->sections_end>. */
bfd_vma displacement = 0;
+ bfd_vma entry_point;
for (p = t->sections; p < t->sections_end; p++)
{
@@ -690,9 +691,11 @@ print_section_info (struct target_section_table *t, bfd *abfd)
warning (_("Cannot find section for the entry point of %s.\n"),
bfd_get_filename (abfd));
+ entry_point = gdbarch_addr_bits_remove (gdbarch,
+ bfd_get_start_address (abfd)
+ + displacement);
printf_filtered (_("\tEntry point: %s\n"),
- paddress (gdbarch, (bfd_get_start_address (abfd)
- + displacement)));
+ paddress (gdbarch, entry_point));
}
for (p = t->sections; p < t->sections_end; p++)
{
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 6ccabfc..71da45b 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -950,9 +950,9 @@ extern void set_gdbarch_auto_wide_charset (struct gdbarch *gdbarch, gdbarch_auto
extern const char * gdbarch_solib_symbols_extension (struct gdbarch *gdbarch);
extern void set_gdbarch_solib_symbols_extension (struct gdbarch *gdbarch, const char * solib_symbols_extension);
-/* If true the target OS has DOS-based file system semantics. That is,
- absolute paths include a drive name, and the backslash is considered
- a path separator. */
+/* If true, the target OS has DOS-based file system semantics. That
+ is, absolute paths include a drive name, and the backslash is
+ considered a directory separator. */
extern int gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch);
extern void set_gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch, int has_dos_based_file_system);
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 2cb1ac0..eb82920 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,42 @@
+2010-05-03 Doug Evans <dje@google.com>
+
+ * event-loop.c (struct callback_event): New struct.
+ (callback_list): New global.
+ (append_callback_event, delete_callback_event): New functions.
+ (process_callback): New function.
+ (start_event_loop): Call it.
+ * remote-utils.c (NOT_SCHEDULED): Define.
+ (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
+ moved out of readchar.
+ (readchar): Rewrite. Call reschedule before returning.
+ (reset_readchar): New function.
+ (remote_close): Call it.
+ (process_remaining, reschedule): New functions.
+ * server.h (callback_handler_func): New typedef.
+ (append_callback_event, delete_callback_event): Declare.
+
+2010-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * proc-service.c (ps_pglobal_lookup): Use
+ thread_db_look_up_one_symbol.
+ * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
+ parameter. Use it instead of all_symbols_looked_up.
+ * server.h (struct process_info) <all_symbols_looked_up>: Delete
+ field.
+ (all_symbols_looked_up): Don't declare.
+ (look_up_one_symbol): Add new `may_ask_gdb' parameter.
+ * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
+ field.
+ (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
+ Set all_symbols_looked_up here.
+ (thread_db_look_up_one_symbol): New.
+ (thread_db_get_tls_address): Adjust.
+ (thread_db_load_search, try_thread_db_load_1): Always allocate the
+ thread_db object on the heap, and tentatively set it in the
+ process structure.
+ (thread_db_init): Don't set all_symbols_looked_up here.
+ * linux-low.h (thread_db_look_up_one_symbol): Declare.
+
2010-05-03 Pedro Alves <pedro@codesourcery.com>
* linux-low.c (linux_kill, linux_detach): Adjust.
diff --git a/gdb/gdbserver/event-loop.c b/gdb/gdbserver/event-loop.c
index 6471772..bc5c1f7 100644
--- a/gdb/gdbserver/event-loop.c
+++ b/gdb/gdbserver/event-loop.c
@@ -141,6 +141,36 @@ static struct
}
gdb_notifier;
+/* Callbacks are just routines that are executed before waiting for the
+ next event. In GDB this is struct gdb_timer. We don't need timers
+ so rather than copy all that complexity in gdbserver, we provide what
+ we need, but we do so in a way that if/when the day comes that we need
+ that complexity, it'll be easier to add - replace callbacks with timers
+ and use a delta of zero (which is all gdb currently uses timers for anyway).
+
+ PROC will be executed before gdbserver goes to sleep to wait for the
+ next event. */
+
+struct callback_event
+ {
+ int id;
+ callback_handler_func *proc;
+ gdb_client_data *data;
+ struct callback_event *next;
+ };
+
+/* Table of registered callbacks. */
+
+static struct
+ {
+ struct callback_event *first;
+ struct callback_event *last;
+
+ /* Id of the last callback created. */
+ int num_callbacks;
+ }
+callback_list;
+
/* Insert an event object into the gdb event queue.
EVENT_PTR points to the event to be inserted into the queue. The
@@ -220,6 +250,81 @@ process_event (void)
return 0;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-03 13:49 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-05-03 13:49 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 16b6a32f73a0866442f1b78182fce9e11c23a909 (commit)
via 931cc2257cd38eca54002b9ae8f62b9094972d3a (commit)
via 19574b656657e0e0dbf189e739cc9835962d0a13 (commit)
from f00bb58eca8bc3df62014754b5a783c030af8ce1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 16b6a32f73a0866442f1b78182fce9e11c23a909
Merge: f00bb58eca8bc3df62014754b5a783c030af8ce1 931cc2257cd38eca54002b9ae8f62b9094972d3a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon May 3 15:49:53 2010 +0200
Merge remote branch 'gdb/master'
commit 931cc2257cd38eca54002b9ae8f62b9094972d3a
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon May 3 12:16:44 2010 +0000
bfd/
2010-05-03 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c: Add comments.
(struct vms_private_data_struct): Remove image_autoextend field.
(dst_check_allocation): Removed.
(image_write): Remove call to dst_check_allocation.
(vms_slurp_debug): Do not set image_autoextend. Adjust section
size.
(_bfd_vms_slurp_object_records): Remove useless new_type variable.
(alpha_vms_write_exec): Use dst_section to get the dst section.
Write the dmt section.
(evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
(alpha_vms_read_sections_content): Do not set image_autoextend.
include/vms/
2010-05-03 Tristan Gingold <gingold@adacore.com>
* dmt.h: Improve comments.
commit 19574b656657e0e0dbf189e739cc9835962d0a13
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon May 3 10:23:31 2010 +0000
bfd/
2010-05-03 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
next array.
(vms_lib_dcx): Adjust for the above change.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 20 ++++++
bfd/vms-alpha.c | 176 +++++++++++++++++++++++++++++++++++--------------
bfd/vms-lib.c | 28 ++++++--
include/vms/ChangeLog | 4 +
include/vms/dmt.h | 7 ++-
5 files changed, 177 insertions(+), 58 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 74dd28b..6ebbe7f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,23 @@
+2010-05-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c: Add comments.
+ (struct vms_private_data_struct): Remove image_autoextend field.
+ (dst_check_allocation): Removed.
+ (image_write): Remove call to dst_check_allocation.
+ (vms_slurp_debug): Do not set image_autoextend. Adjust section
+ size.
+ (_bfd_vms_slurp_object_records): Remove useless new_type variable.
+ (alpha_vms_write_exec): Use dst_section to get the dst section.
+ Write the dmt section.
+ (evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
+ (alpha_vms_read_sections_content): Do not set image_autoextend.
+
+2010-05-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
+ next array.
+ (vms_lib_dcx): Adjust for the above change.
+
2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11542
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 294bd90..92d0693 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -89,6 +89,7 @@
#define ALPHA_R_BSR 15
#define ALPHA_R_LDA 16
#define ALPHA_R_BOH 17
+
/* These are used with DST_S_C_LINE_NUM. */
#define DST_S_C_LINE_NUM_HEADER_SIZE 4
@@ -291,7 +292,6 @@ struct vms_private_data_struct
/* Content reading. */
asection *image_section; /* section for image_ptr */
file_ptr image_offset; /* Offset for image_ptr. */
- bfd_boolean image_autoextend; /* Resize section if necessary. */
struct module *modules; /* list of all compilation units */
@@ -1383,30 +1383,6 @@ dst_retrieve_location (bfd *abfd, unsigned int loc)
return PRIV (dst_ptr_offsets)[loc];
}
-/* Check that the DST section is big enough for the specified
- amount of bytes. */
-
-static void
-dst_check_allocation (bfd *abfd, unsigned int size)
-{
- asection *section = PRIV (image_section);
-
- section->size += size;
-
- /* Grow the section as necessary */
- if (section->size <= section->rawsize)
- return;
- do
- {
- if (section->rawsize == 0)
- section->rawsize = 1024;
- else
- section->rawsize *= 2;
- }
- while (section->size > section->rawsize);
- section->contents = bfd_realloc (section->contents, section->rawsize);
-}
-
/* Write multiple bytes to section image. */
static bfd_boolean
@@ -1418,9 +1394,6 @@ image_write (bfd *abfd, unsigned char *ptr, int size)
_bfd_hexdump (9, ptr, size, 0);
#endif
- if (PRIV (image_autoextend))
- dst_check_allocation (abfd, size);
-
if (PRIV (image_section)->contents != NULL)
{
asection *sec = PRIV (image_section);
@@ -1667,6 +1640,10 @@ alpha_vms_fix_sec_rel (bfd *abfd, struct bfd_link_info *info,
return vma + sec->vma;
}
+/* Read an ETIR record from ABFD. If INFO is not null, put the content into
+ the output section (used during linking).
+ Return FALSE in case of error. */
+
static bfd_boolean
_bfd_vms_slurp_etir (bfd *abfd, struct bfd_link_info *info)
{
@@ -2263,11 +2240,11 @@ vms_slurp_debug (bfd *abfd)
PRIV (image_section) = section;
PRIV (image_offset) = section->size;
- PRIV (image_autoextend) = FALSE;
if (!_bfd_vms_slurp_etir (abfd, NULL))
return FALSE;
+ section->size = PRIV (image_offset);
return TRUE;
}
@@ -2279,7 +2256,7 @@ _bfd_vms_slurp_edbg (bfd *abfd)
{
vms_debug2 ((2, "EDBG\n"));
- abfd->flags |= (HAS_DEBUG | HAS_LINENO);
+ abfd->flags |= HAS_DEBUG | HAS_LINENO;
return vms_slurp_debug (abfd);
}
@@ -2334,21 +2311,20 @@ _bfd_vms_slurp_eeom (bfd *abfd)
static bfd_boolean
_bfd_vms_slurp_object_records (bfd * abfd)
{
- int err, new_type, type = -1;
+ bfd_boolean err;
+ int type;
do
{
vms_debug2 ((7, "reading at %08lx\n", (unsigned long)bfd_tell (abfd)));
- new_type = _bfd_vms_get_object_record (abfd);
- if (new_type < 0)
+ type = _bfd_vms_get_object_record (abfd);
+ if (type < 0)
{
vms_debug2 ((2, "next_record failed\n"));
return FALSE;
}
- type = new_type;
-
switch (type)
{
case EOBJ__C_EMH:
@@ -2598,6 +2574,8 @@ alpha_vms_file_position_block (bfd *abfd)
PRIV (file_pos) -= (PRIV (file_pos) % VMS_BLOCK_SIZE);
}
+/* Convert from internal structure SRC to external structure DST. */
+
static void
alpha_vms_swap_eisd_out (struct vms_internal_eisd_map *src,
struct vms_eisd *dst)
@@ -2636,6 +2614,9 @@ alpha_vms_append_extra_eisd (bfd *abfd, struct vms_internal_eisd_map *eisd)
PRIV (gbl_eisd_tail) = eisd;
}
+/* Create an EISD for shared image SHRIMG.
+ Return FALSE in case of error. */
+
static bfd_boolean
alpha_vms_create_eisd_for_shared (bfd *abfd, bfd *shrimg)
{
@@ -2677,6 +2658,9 @@ alpha_vms_create_eisd_for_shared (bfd *abfd, bfd *shrimg)
return TRUE;
}
+/* Create an EISD for section SEC.
+ Return FALSE in case of failure. */
+
static bfd_boolean
alpha_vms_create_eisd_for_section (bfd *abfd, asection *sec)
{
@@ -2732,6 +2716,9 @@ alpha_vms_create_eisd_for_section (bfd *abfd, asection *sec)
return TRUE;
}
+/* Layout executable ABFD and write it to the disk.
+ Return FALSE in case of failure. */
+
static bfd_boolean
alpha_vms_write_exec (bfd *abfd)
{
@@ -2743,7 +2730,9 @@ alpha_vms_write_exec (bfd *abfd)
struct vms_internal_eisd_map *first_eisd;
struct vms_internal_eisd_map *eisd;
asection *dst;
+ asection *dmt;
+ /* Build the EIHD. */
PRIV (file_pos) = EIHD__C_LENGTH;
memset (&eihd, 0, sizeof (eihd));
@@ -2821,9 +2810,8 @@ alpha_vms_write_exec (bfd *abfd)
eihi->imgbid[0] = 0;
/* Alloc EIHS. */
- dst = bfd_get_section_by_name (abfd, "$DST$");
- if (dst == NULL || dst->size == 0)
- dst = bfd_get_section_by_name (abfd, "$TBT$");
+ dst = PRIV (dst_section);
+ dmt = bfd_get_section_by_name (abfd, "$DMT$");
if (dst != NULL && dst->size != 0)
{
eihs = (struct vms_eihs *)((char *) &eihd + PRIV (file_pos));
@@ -2840,7 +2828,7 @@ alpha_vms_write_exec (bfd *abfd)
bfd_putl32 (0, eihs->dmtsize);
}
- /* One per section. */
+ /* One EISD per section. */
for (sec = abfd->sections; sec; sec = sec->next)
{
if (!alpha_vms_create_eisd_for_section (abfd, sec))
@@ -2920,6 +2908,12 @@ alpha_vms_write_exec (bfd *abfd)
{
bfd_putl32 ((dst->filepos / VMS_BLOCK_SIZE) + 1, eihs->dstvbn);
bfd_putl32 (dst->size, eihs->dstsize);
+
+ if (dmt != NULL)
+ {
+ bfd_putl32 ((dmt->filepos / VMS_BLOCK_SIZE) + 1, eihs->dmtvbn);
+ bfd_putl32 (dmt->size, eihs->dmtsize);
+ }
}
/* Write EISD in hdr. */
@@ -7362,8 +7356,8 @@ evax_bfd_print_image (bfd *abfd, FILE *file)
(unsigned)bfd_getl32 (eihs.minorid));
dst_vbn = bfd_getl32 (eihs.dstvbn);
dst_size = bfd_getl32 (eihs.dstsize);
- fprintf (file, _(" debug symbol table : vbn: %u, size: %u\n"),
- dst_vbn, dst_size);
+ fprintf (file, _(" debug symbol table : vbn: %u, size: %u (0x%x)\n"),
+ dst_vbn, dst_size, dst_size);
gst_vbn = bfd_getl32 (eihs.gstvbn);
gst_size = bfd_getl32 (eihs.gstsize);
fprintf (file, _(" global symbol table: vbn: %u, records: %u\n"),
@@ -7499,7 +7493,7 @@ evax_bfd_print_image (bfd *abfd, FILE *file)
}
count = bfd_getl16 (dmth.psect_count);
fprintf (file,
- _(" module address: 0x%08x, size: 0x%08x, (%u psect)\n"),
+ _(" module address: 0x%08x, size: 0x%08x, (%u psects)\n"),
(unsigned)bfd_getl32 (dmth.modbeg),
(unsigned)bfd_getl32 (dmth.size), count);
dmt_size -= sizeof (dmth);
@@ -7745,7 +7739,7 @@ vms_bfd_print_private_bfd_data (bfd *abfd, void *ptr)
\f
/* Linking. */
-/* Slurp an ordered set of VMS object records. */
+/* Slurp ETIR/EDBG/ETBT VMS object records. */
static bfd_boolean
alpha_vms_read_sections_content (bfd *abfd, struct bfd_link_info *info)
@@ -7758,8 +7752,6 @@ alpha_vms_read_sections_content (bfd *abfd, struct bfd_link_info *info)
if (bfd_seek (abfd, 0, SEEK_SET) != 0)
return FALSE;
- PRIV (image_autoextend) = FALSE;
-
cur_section = NULL;
cur_offset = 0;
@@ -7769,6 +7761,7 @@ alpha_vms_read_sections_content (bfd *abfd, struct bfd_link_info *info)
{
if (info->strip == strip_all || info->strip == strip_debugger)
{
+ /* Discard the DST section. */
dst_offset = 0;
dst_section = NULL;
}
@@ -7805,9 +7798,7 @@ alpha_vms_read_sections_content (bfd *abfd, struct bfd_link_info *info)
continue;
PRIV (image_section) = dst_section;
PRIV (image_offset) = dst_offset;
- PRIV (image_autoextend) = TRUE;
res = _bfd_vms_slurp_etir (abfd, info);
- PRIV (image_autoextend) = FALSE;
dst_offset = PRIV (image_offset);
break;
case EOBJ__C_EEOM:
@@ -8372,6 +8363,7 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
asection *fixupsec;
bfd_vma base_addr;
bfd_vma last_addr;
+ asection *dst;
bfd_get_outsymbols (abfd) = NULL;
bfd_get_symcount (abfd) = 0;
@@ -8415,7 +8407,7 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
}
#endif
- /* Find entry point. */
+ /* Find the entry point. */
if (bfd_get_start_address (abfd) == 0)
{
bfd *startbfd = NULL;
@@ -8454,7 +8446,7 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
}
}
- /* Allocate content. */
+ /* Allocate contents. */
base_addr = (bfd_vma)-1;
last_addr = 0;
for (o = abfd->sections; o != NULL; o = o->next)
@@ -8474,6 +8466,7 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
}
}
+ /* Create the fixup section. */
fixupsec = bfd_make_section_anyway_with_flags
(info->output_bfd, "$FIXUP$",
SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_LINKER_CREATED);
@@ -8524,6 +8517,91 @@ alpha_vms_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
if (!alpha_vms_build_fixups (info))
return FALSE;
+ /* Compute the DMT. */
+ dst = PRIV (dst_section);
+ if (dst != NULL && dst->size == 0)
+ dst = NULL;
+ if (dst != NULL)
+ {
+ asection *dmt;
+ int pass;
+ unsigned char *contents = NULL;
+
+ dmt = bfd_make_section_anyway_with_flags
+ (info->output_bfd, "$DMT$",
+ SEC_DEBUGGING | SEC_HAS_CONTENTS | SEC_LINKER_CREATED);
+ if (dmt == NULL)
+ return FALSE;
+
+ /* In pass 1, compute the size. In pass 2, write the DMT contents. */
+ for (pass = 0; pass < 2; pass++)
+ {
+ unsigned int off = 0;
+
+ /* For each object file (ie for each module). */
+ for (sub = info->input_bfds; sub != NULL; sub = sub->link_next)
+ {
+ asection *sub_dst;
+ struct vms_dmt_header *dmth = NULL;
+ unsigned int psect_count;
+
+ /* Skip this module if it has no DST. */
+ sub_dst = PRIV2 (sub, dst_section);
+ if (sub_dst == NULL || sub_dst->size == 0)
+ continue;
+
+ if (pass == 1)
+ {
+ /* Write the header. */
+ dmth = (struct vms_dmt_header *)(contents + off);
+ bfd_putl32 (sub_dst->output_offset, dmth->modbeg);
+ bfd_putl32 (sub_dst->size, dmth->size);
+ }
+
+ off += sizeof (struct vms_dmt_header);
+ psect_count = 0;
+
+ /* For each section (ie for each psect). */
+ for (o = sub->sections; o != NULL; o = o->next)
+ {
+ /* Only consider interesting sections. */
+ if (!(o->flags & SEC_ALLOC))
+ continue;
+ if (o->flags & SEC_LINKER_CREATED)
+ continue;
+
+ if (pass == 1)
+ {
+ /* Write an entry. */
+ struct vms_dmt_psect *dmtp;
+
+ dmtp = (struct vms_dmt_psect *)(contents + off);
+ bfd_putl32 (o->output_offset + o->output_section->vma,
+ dmtp->start);
+ bfd_putl32 (o->size, dmtp->length);
+ psect_count++;
+ }
+ off += sizeof (struct vms_dmt_psect);
+ }
+ if (pass == 1)
+ bfd_putl32 (psect_count, dmth->psect_count);
+ }
+
+ if (pass == 0)
+ {
+ contents = bfd_zalloc (info->output_bfd, off);
+ if (contents == NULL)
+ return FALSE;
+ dmt->contents = contents;
+ dmt->size = off;
+ }
+ else
+ {
+ BFD_ASSERT (off == dmt->size);
+ }
+ }
+ }
+
return TRUE;
}
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index bd5ecb7..bbef19c 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -552,6 +552,7 @@ _bfd_vms_lib_archive_p (bfd *abfd, enum vms_lib_kind kind)
struct dcxsbm_desc *sbmdesc = &tdata->dcxsbm[i];
unsigned int sbm_len;
unsigned int sbm_sz;
+ unsigned int off;
unsigned char *data = (unsigned char *)sbm;
unsigned char *buf1;
unsigned int l, j;
@@ -565,16 +566,28 @@ _bfd_vms_lib_archive_p (bfd *abfd, enum vms_lib_kind kind)
sbmdesc->max_char = sbm->max_char;
sbm_len = sbmdesc->max_char - sbmdesc->min_char + 1;
l = (2 * sbm_len + 7) / 8;
- BFD_ASSERT (sbm_sz >= sizeof (struct vms_dcxsbm) + l + 3 * sbm_len);
+ BFD_ASSERT
+ (sbm_sz >= sizeof (struct vms_dcxsbm) + l + 3 * sbm_len
+ || (tdata->nbr_dcxsbm == 1
+ && sbm_sz >= sizeof (struct vms_dcxsbm) + l + sbm_len));
sbmdesc->flags = (unsigned char *)bfd_alloc (abfd, l);
memcpy (sbmdesc->flags, data + bfd_getl16 (sbm->flags), l);
sbmdesc->nodes = (unsigned char *)bfd_alloc (abfd, 2 * sbm_len);
memcpy (sbmdesc->nodes, data + bfd_getl16 (sbm->nodes), 2 * sbm_len);
- sbmdesc->next = (unsigned short *)bfd_alloc
- (abfd, sbm_len * sizeof (unsigned short));
- buf1 = data + bfd_getl16 (sbm->next);
- for (j = 0; j < sbm_len; j++)
- sbmdesc->next[j] = bfd_getl16 (buf1 + j * 2);
+ off = bfd_getl16 (sbm->next);
+ if (off != 0)
+ {
+ sbmdesc->next = (unsigned short *)bfd_alloc
+ (abfd, sbm_len * sizeof (unsigned short));
+ buf1 = data + off;
+ for (j = 0; j < sbm_len; j++)
+ sbmdesc->next[j] = bfd_getl16 (buf1 + j * 2);
+ }
+ else
+ {
+ BFD_ASSERT (tdata->nbr_dcxsbm == 1);
+ sbmdesc->next = NULL;
+ }
}
free (buf);
}
@@ -850,7 +863,8 @@ vms_lib_dcx (struct vms_lib_iovec *vec, unsigned char *buf, file_ptr nbytes)
{
unsigned char v = sbm->nodes[offset];
- sbm = vec->dcxsbms + sbm->next[v];
+ if (sbm->next != NULL)
+ sbm = vec->dcxsbms + sbm->next[v];
offset = 0;
res++;
diff --git a/include/vms/ChangeLog b/include/vms/ChangeLog
index 823520f..edd78fe 100644
--- a/include/vms/ChangeLog
+++ b/include/vms/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-03 Tristan Gingold <gingold@adacore.com>
+
+ * dmt.h: Improve comments.
+
2010-04-30 Tristan Gingold <gingold@adacore.com>
* lbr.h (struct vms_kbn): New structure.
diff --git a/include/vms/dmt.h b/include/vms/dmt.h
index f2f4e0d..f2aad6e 100644
--- a/include/vms/dmt.h
+++ b/include/vms/dmt.h
@@ -25,10 +25,10 @@
struct vms_dmt_header
{
- /* Address of the module. */
+ /* Offset in the DST of the module. */
unsigned char modbeg[4];
- /* Size of the module. */
+ /* Size of the DST chunk for this module. */
unsigned char size[4];
/* Number of psect for this module. */
@@ -39,7 +39,10 @@ struct vms_dmt_header
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-03 8:48 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-05-03 8:48 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via f00bb58eca8bc3df62014754b5a783c030af8ce1 (commit)
via c0436201cacbf949b420c440b4d5cff073ce1ada (commit)
via d1e2132c55ad4c003b9f7bd2c4754fe18584f6bc (commit)
via cd432ca38f940cab7bc7f1f856d19e3dabba8aea (commit)
via e5c93868400b5d300f82cd2162d3a5d10d0b19c8 (commit)
via 08ad517303adce444a573f310b2e38aac709531d (commit)
via e82d38eb3f6f7810e366ef2a98adcd8dc9b354af (commit)
from 66faed36593d9577859e9942388c4edcd1928e35 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f00bb58eca8bc3df62014754b5a783c030af8ce1
Merge: 66faed36593d9577859e9942388c4edcd1928e35 c0436201cacbf949b420c440b4d5cff073ce1ada
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon May 3 10:48:24 2010 +0200
Merge remote branch 'gdb/master'
commit c0436201cacbf949b420c440b4d5cff073ce1ada
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon May 3 04:02:20 2010 +0000
* linux-low.c (linux_kill, linux_detach): Adjust.
(status_pending_p_callback): Remove redundant statement. Check
for !TARGET_WAITIKIND_IGNORE, instead of
TARGET_WAITKIND_STOPPED.
(handle_tracepoints): Make sure LWP is locked. Adjust.
(linux_wait_for_event_1): Adjust.
(linux_cancel_breakpoints): New.
(unsuspend_one_lwp): New.
(unsuspend_all_lwps): New.
(linux_wait_1): If finishing a step-over, unsuspend all lwps.
(send_sigstop_callback): Change return type to int, add new
`except' parameter and handle it.
(suspend_and_send_sigstop_callback): New.
(stop_all_lwps): Add new `suspend' and `expect' parameters, and
pass them down. If SUSPEND, also increment the lwp's suspend
count.
(linux_resume_one_lwp): Add notice about resuming a suspended LWP.
(need_step_over_p): Don't consider suspended LWPs.
(start_step_over): Adjust.
(proceed_one_lwp): Change return type to int, add new `except'
parameter and handle it.
(unsuspend_and_proceed_one_lwp): New.
(proceed_all_lwps): Use find_inferior instead of
for_each_inferior.
(unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
also decrement the suspend count of LWPs. Pass `except' down,
instead of hacking its suspend count.
(linux_pause_all): Add `freeze' parameter. Adjust.
(linux_unpause_all): New.
(linux_target_ops): Install linux_unpause_all.
* server.c (handle_status): Adjust.
* target.h (struct target_ops): New fields `unpause_all' and
`cancel_breakpoints'. Add new parameter to `pause_all'.
(pause_all): Add new `freeze' parameter.
(unpause_all): New.
(cancel_breakpoints): New.
* tracepoint.c (clear_installed_tracepoints): Pause threads, and
cancel breakpoints.
(cmd_qtstart): Pause threads.
(stop_tracing): Pause threads, and cancel breakpoints.
* win32-low.c (win32_target_ops): Adjust.
commit d1e2132c55ad4c003b9f7bd2c4754fe18584f6bc
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon May 3 03:04:30 2010 +0000
* linux-low.c (linux_wait_for_event_1): Move passing the signal to
the inferior right away from here...
(linux_wait_1): ... to here, and adjust to check the thread's
last_resume_kind instead of the lwp's step or stop_expected flags.
commit cd432ca38f940cab7bc7f1f856d19e3dabba8aea
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon May 3 02:12:56 2010 +0000
* remote.c (remote_notice_signals): New.
(remote_start_remote): In non-stop mode, update the remote end on
which signals it can silently pass.
(init_remote_ops): Install remote_notice_signals.
commit e5c93868400b5d300f82cd2162d3a5d10d0b19c8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon May 3 00:00:07 2010 +0000
daily update
commit 08ad517303adce444a573f310b2e38aac709531d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon May 3 00:00:03 2010 +0000
*** empty log message ***
commit e82d38eb3f6f7810e366ef2a98adcd8dc9b354af
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun May 2 23:52:12 2010 +0000
gdb/
* cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
* command.h (error_no_arg): ... here. Remove NORETURN, change
ATTR_NORETURN to ATTRIBUTE_NORETURN.
* defs.h (NORETURN, ATTR_NORETURN): Remove.
(perror_with_name, verror, error, error_stream, vfatal, fatal)
(internal_verror, internal_error, nomem): Remove NORETURN, change
ATTR_NORETURN to ATTRIBUTE_NORETURN.
* exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
(throw_vfatal, throw_error): Remove NORETURN.
(throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
* exceptions.h (throw_exception, throw_verror, throw_vfatal)
(throw_error, deprecated_throw_reason): Remove NORETURN, change
ATTR_NORETURN to ATTRIBUTE_NORETURN.
* linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
to ATTRIBUTE_NORETURN for prototype, for the definition only remove
NORETURN.
* remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
* remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
ATTRIBUTE_NORETURN.
* target.c (tcomplain): Likewise.
* target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
ATTRIBUTE_NORETURN.
* utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
(internal_error, perror_with_name, nomem): Remove NORETURN.
* xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
ATTRIBUTE_NORETURN.
gdb/doc/
* gdbint.texinfo (Host Definition): Remove items NORETURN and
ATTR_NORETURN.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 36 ++++++
gdb/cli/cli-cmds.h | 5 -
gdb/command.h | 5 +-
gdb/defs.h | 60 +++-------
gdb/doc/ChangeLog | 11 ++-
gdb/doc/gdbint.texinfo | 13 --
gdb/exceptions.c | 12 +-
gdb/exceptions.h | 17 ++--
gdb/gdbserver/ChangeLog | 51 ++++++++
gdb/gdbserver/linux-low.c | 300 ++++++++++++++++++++++++++++++--------------
gdb/gdbserver/server.c | 2 +-
gdb/gdbserver/target.h | 42 +++++--
gdb/gdbserver/tracepoint.c | 19 +++
gdb/gdbserver/win32-low.c | 3 +-
gdb/linespec.c | 7 +-
gdb/remote-mips.c | 2 +-
gdb/remote-sim.c | 3 +-
gdb/remote.c | 14 ++
gdb/target.c | 2 +-
gdb/target.h | 2 +-
gdb/utils.c | 18 ++--
gdb/version.in | 2 +-
gdb/xml-support.h | 2 +-
24 files changed, 427 insertions(+), 203 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index e8522de..80a43b6 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100502
+#define BFD_VERSION_DATE 20100503
#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 96a88e5..9c3591c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,39 @@
+2010-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (remote_notice_signals): New.
+ (remote_start_remote): In non-stop mode, update the remote end on
+ which signals it can silently pass.
+ (init_remote_ops): Install remote_notice_signals.
+
+2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
+ * command.h (error_no_arg): ... here. Remove NORETURN, change
+ ATTR_NORETURN to ATTRIBUTE_NORETURN.
+ * defs.h (NORETURN, ATTR_NORETURN): Remove.
+ (perror_with_name, verror, error, error_stream, vfatal, fatal)
+ (internal_verror, internal_error, nomem): Remove NORETURN, change
+ ATTR_NORETURN to ATTRIBUTE_NORETURN.
+ * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
+ (throw_vfatal, throw_error): Remove NORETURN.
+ (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
+ * exceptions.h (throw_exception, throw_verror, throw_vfatal)
+ (throw_error, deprecated_throw_reason): Remove NORETURN, change
+ ATTR_NORETURN to ATTRIBUTE_NORETURN.
+ * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
+ to ATTRIBUTE_NORETURN for prototype, for the definition only remove
+ NORETURN.
+ * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
+ * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
+ ATTRIBUTE_NORETURN.
+ * target.c (tcomplain): Likewise.
+ * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
+ ATTRIBUTE_NORETURN.
+ * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
+ (internal_error, perror_with_name, nomem): Remove NORETURN.
+ * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
+ ATTRIBUTE_NORETURN.
+
2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
diff --git a/gdb/cli/cli-cmds.h b/gdb/cli/cli-cmds.h
index 9446f93..596870e 100644
--- a/gdb/cli/cli-cmds.h
+++ b/gdb/cli/cli-cmds.h
@@ -128,11 +128,6 @@ extern void source_script (char *, int);
extern int find_and_open_script (const char *file, int search_path,
FILE **streamp, char **full_path);
-/* Used everywhere whenever at least one parameter is required and
- none is specified. */
-
-extern NORETURN void error_no_arg (char *) ATTR_NORETURN;
-
/* Command tracing state. */
extern int source_verbose;
diff --git a/gdb/command.h b/gdb/command.h
index a746c82..f53dc3e 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -341,7 +341,10 @@ extern void add_setshow_zuinteger_cmd (char *name,
extern void cmd_show_list (struct cmd_list_element *, int, char *);
-extern NORETURN void error_no_arg (char *) ATTR_NORETURN;
+/* Used everywhere whenever at least one parameter is required and
+ none is specified. */
+
+extern void error_no_arg (char *) ATTRIBUTE_NORETURN;
extern void dont_repeat (void);
diff --git a/gdb/defs.h b/gdb/defs.h
index c58f698..b18e03f 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -267,36 +267,6 @@ struct cleanup
void *arg;
};
-
-/* The ability to declare that a function never returns is useful, but
- not really required to compile GDB successfully, so the NORETURN and
- ATTR_NORETURN macros normally expand into nothing. */
-
-/* If compiling with older versions of GCC, a function may be declared
- "volatile" to indicate that it does not return. */
-
-#ifndef NORETURN
-#if defined(__GNUC__) \
- && (__GNUC__ == 1 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7))
-#define NORETURN volatile
-#else
-#define NORETURN /* nothing */
-#endif
-#endif
-
-/* GCC 2.5 and later versions define a function attribute "noreturn",
- which is the preferred way to declare that a function never returns.
- However GCC 2.7 appears to be the first version in which this fully
- works everywhere we use it. */
-
-#ifndef ATTR_NORETURN
-#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7))
-#define ATTR_NORETURN __attribute__ ((noreturn))
-#else
-#define ATTR_NORETURN /* nothing */
-#endif
-#endif
-
/* Be conservative and use enum bitfields only with GCC.
This is copied from gcc 3.3.1, system.h. */
@@ -552,7 +522,7 @@ extern char *hex_string_custom (LONGEST, int);
extern void fprintf_symbol_filtered (struct ui_file *, char *,
enum language, int);
-extern NORETURN void perror_with_name (const char *) ATTR_NORETURN;
+extern void perror_with_name (const char *) ATTRIBUTE_NORETURN;
extern void print_sys_errmsg (const char *, int);
@@ -921,24 +891,26 @@ extern char *quit_pre_print;
extern char *warning_pre_print;
-extern NORETURN void verror (const char *fmt, va_list ap)
- ATTR_NORETURN ATTRIBUTE_PRINTF (1, 0);
+extern void verror (const char *fmt, va_list ap)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 0);
-extern NORETURN void error (const char *fmt, ...) ATTR_NORETURN ATTRIBUTE_PRINTF (1, 2);
+extern void error (const char *fmt, ...)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2);
-extern NORETURN void error_stream (struct ui_file *) ATTR_NORETURN;
+extern void error_stream (struct ui_file *) ATTRIBUTE_NORETURN;
-extern NORETURN void vfatal (const char *fmt, va_list ap)
- ATTR_NORETURN ATTRIBUTE_PRINTF (1, 0);
+extern void vfatal (const char *fmt, va_list ap)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 0);
-extern NORETURN void fatal (const char *fmt, ...) ATTR_NORETURN ATTRIBUTE_PRINTF (1, 2);
+extern void fatal (const char *fmt, ...)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2);
-extern NORETURN void internal_verror (const char *file, int line,
- const char *, va_list ap)
- ATTR_NORETURN ATTRIBUTE_PRINTF (3, 0);
+extern void internal_verror (const char *file, int line, const char *,
+ va_list ap)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (3, 0);
-extern NORETURN void internal_error (const char *file, int line,
- const char *, ...) ATTR_NORETURN ATTRIBUTE_PRINTF (3, 4);
+extern void internal_error (const char *file, int line, const char *, ...)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (3, 4);
extern void internal_vwarning (const char *file, int line,
const char *, va_list ap)
@@ -947,7 +919,7 @@ extern void internal_vwarning (const char *file, int line,
extern void internal_warning (const char *file, int line,
const char *, ...) ATTRIBUTE_PRINTF (3, 4);
-extern NORETURN void nomem (long) ATTR_NORETURN;
+extern void nomem (long) ATTRIBUTE_NORETURN;
extern void warning (const char *, ...) ATTRIBUTE_PRINTF (1, 2);
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index b390c9c..eb46098 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,8 +1,13 @@
+2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdbint.texinfo (Host Definition): Remove items NORETURN and
+ ATTR_NORETURN.
+
2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
- Tom Tromey <tromey@redhat.com>
- Thiago Jung Bauermann <bauerman@br.ibm.com>
+ Tom Tromey <tromey@redhat.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
- * gdb.texinfo (Parameters In Python): New Node.
+ * gdb.texinfo (Parameters In Python): New Node.
2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo
index d9a4a95..26719e6 100644
--- a/gdb/doc/gdbint.texinfo
+++ b/gdb/doc/gdbint.texinfo
@@ -2784,19 +2784,6 @@ Define this if @code{lseek (n)} does not necessarily move to byte number
@code{n} in the file. This is only used when reading source files. It
is normally faster to define @code{CRLF_SOURCE_FILES} when possible.
-@item NORETURN
-If defined, this should be one or more tokens, such as @code{volatile},
-that can be used in both the declaration and definition of functions to
-indicate that they never return. The default is already set correctly
-if compiling with GCC. This will almost never need to be defined.
-
-@item ATTR_NORETURN
-If defined, this should be one or more tokens, such as
-@code{__attribute__ ((noreturn))}, that can be used in the declarations
-of functions to indicate that they never return. The default is already
-set correctly if compiling with GCC. This will almost never need to be
-defined.
-
@item lint
Define this to help placate @code{lint} in some situations.
diff --git a/gdb/exceptions.c b/gdb/exceptions.c
index 5f67224..444db50 100644
--- a/gdb/exceptions.c
+++ b/gdb/exceptions.c
@@ -210,7 +210,7 @@ exceptions_state_mc_action_iter_1 (void)
/* Return EXCEPTION to the nearest containing catch_errors(). */
-NORETURN void
+void
throw_exception (struct gdb_exception exception)
{
struct thread_info *tp = NULL;
@@ -239,7 +239,7 @@ throw_exception (struct gdb_exception exception)
static char *last_message;
-NORETURN void
+void
deprecated_throw_reason (enum return_reason reason)
{
struct gdb_exception exception;
@@ -374,7 +374,7 @@ print_any_exception (struct ui_file *file, const char *prefix,
}
}
-NORETURN static void ATTR_NORETURN ATTRIBUTE_PRINTF (3, 0)
+static void ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (3, 0)
throw_it (enum return_reason reason, enum errors error, const char *fmt,
va_list ap)
{
@@ -396,19 +396,19 @@ throw_it (enum return_reason reason, enum errors error, const char *fmt,
throw_exception (e);
}
-NORETURN void
+void
throw_verror (enum errors error, const char *fmt, va_list ap)
{
throw_it (RETURN_ERROR, error, fmt, ap);
}
-NORETURN void
+void
throw_vfatal (const char *fmt, va_list ap)
{
throw_it (RETURN_QUIT, GDB_NO_ERROR, fmt, ap);
}
-NORETURN void
+void
throw_error (enum errors error, const char *fmt, ...)
{
va_list args;
diff --git a/gdb/exceptions.h b/gdb/exceptions.h
index e5b8ade..7d68a36 100644
--- a/gdb/exceptions.h
+++ b/gdb/exceptions.h
@@ -166,17 +166,18 @@ extern void exception_fprintf (struct ui_file *file, struct gdb_exception e,
be a good thing or a dangerous thing.'' -- the Existential
Wombat. */
-extern NORETURN void throw_exception (struct gdb_exception exception) ATTR_NORETURN;
-extern NORETURN void throw_verror (enum errors, const char *fmt, va_list ap)
- ATTR_NORETURN ATTRIBUTE_PRINTF (2, 0);
-extern NORETURN void throw_vfatal (const char *fmt, va_list ap)
- ATTR_NORETURN ATTRIBUTE_PRINTF (1, 0);
-extern NORETURN void throw_error (enum errors error, const char *fmt,
- ...) ATTR_NORETURN ATTRIBUTE_PRINTF (2, 3);
+extern void throw_exception (struct gdb_exception exception) ATTRIBUTE_NORETURN;
+extern void throw_verror (enum errors, const char *fmt, va_list ap)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 0);
+extern void throw_vfatal (const char *fmt, va_list ap)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 0);
+extern void throw_error (enum errors error, const char *fmt, ...)
+ ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 3);
/* Instead of deprecated_throw_reason, code should use catch_exception
and throw_exception. */
-extern NORETURN void deprecated_throw_reason (enum return_reason reason) ATTR_NORETURN;
+extern void deprecated_throw_reason (enum return_reason reason)
+ ATTRIBUTE_NORETURN;
/* Call FUNC(UIOUT, FUNC_ARGS) but wrapped within an exception
handler. If an exception (enum return_reason) is thrown using
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 3f0b0fb..2cb1ac0 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,54 @@
+2010-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_kill, linux_detach): Adjust.
+ (status_pending_p_callback): Remove redundant statement. Check
+ for !TARGET_WAITIKIND_IGNORE, instead of
+ TARGET_WAITKIND_STOPPED.
+ (handle_tracepoints): Make sure LWP is locked. Adjust.
+ (linux_wait_for_event_1): Adjust.
+ (linux_cancel_breakpoints): New.
+ (unsuspend_one_lwp): New.
+ (unsuspend_all_lwps): New.
+ (linux_wait_1): If finishing a step-over, unsuspend all lwps.
+ (send_sigstop_callback): Change return type to int, add new
+ `except' parameter and handle it.
+ (suspend_and_send_sigstop_callback): New.
+ (stop_all_lwps): Add new `suspend' and `expect' parameters, and
+ pass them down. If SUSPEND, also increment the lwp's suspend
+ count.
+ (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
+ (need_step_over_p): Don't consider suspended LWPs.
+ (start_step_over): Adjust.
+ (proceed_one_lwp): Change return type to int, add new `except'
+ parameter and handle it.
+ (unsuspend_and_proceed_one_lwp): New.
+ (proceed_all_lwps): Use find_inferior instead of
+ for_each_inferior.
+ (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
+ also decrement the suspend count of LWPs. Pass `except' down,
+ instead of hacking its suspend count.
+ (linux_pause_all): Add `freeze' parameter. Adjust.
+ (linux_unpause_all): New.
+ (linux_target_ops): Install linux_unpause_all.
+ * server.c (handle_status): Adjust.
+ * target.h (struct target_ops): New fields `unpause_all' and
+ `cancel_breakpoints'. Add new parameter to `pause_all'.
+ (pause_all): Add new `freeze' parameter.
+ (unpause_all): New.
+ (cancel_breakpoints): New.
+ * tracepoint.c (clear_installed_tracepoints): Pause threads, and
+ cancel breakpoints.
+ (cmd_qtstart): Pause threads.
+ (stop_tracing): Pause threads, and cancel breakpoints.
+ * win32-low.c (win32_target_ops): Adjust.
+
+2010-05-03 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_wait_for_event_1): Move passing the signal to
+ the inferior right away from here...
+ (linux_wait_1): ... to here, and adjust to check the thread's
+ last_resume_kind instead of the lwp's step or stop_expected flags.
+
2010-05-02 Pedro Alves <pedro@codesourcery.com>
* README: Use consistent `GDB' and `GDBserver' spellings.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 65a87f6..4a19db7 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -139,14 +139,14 @@ static int new_inferior;
static void linux_resume_one_lwp (struct lwp_info *lwp,
int step, int signal, siginfo_t *info);
static void linux_resume (struct thread_resume *resume_info, size_t n);
-static void stop_all_lwps (void);
+static void stop_all_lwps (int suspend, struct lwp_info *except);
+static void unstop_all_lwps (int unsuspend, struct lwp_info *except);
static int linux_wait_for_event (ptid_t ptid, int *wstat, int options);
static void *add_lwp (ptid_t ptid);
static int linux_stopped_by_watchpoint (void);
static void mark_lwp_dead (struct lwp_info *lwp, int wstat);
static int linux_core_of_thread (ptid_t ptid);
static void proceed_all_lwps (void);
-static void unstop_all_lwps (struct lwp_info *except);
static int finish_step_over (struct lwp_info *lwp);
static CORE_ADDR get_stop_pc (struct lwp_info *lwp);
static int kill_lwp (unsigned long lwpid, int signo);
@@ -765,7 +765,7 @@ linux_kill (int pid)
/* If we're killing a running inferior, make sure it is stopped
first, as PTRACE_KILL will not work otherwise. */
- stop_all_lwps ();
+ stop_all_lwps (0, NULL);
find_inferior (&all_threads, linux_kill_one_lwp, &pid);
@@ -790,7 +790,7 @@ linux_kill (int pid)
/* Since we presently can only stop all lwps of all processes, we
need to unstop lwps of other processes. */
- unstop_all_lwps (NULL);
+ unstop_all_lwps (0, NULL);
return 0;
}
@@ -840,7 +840,7 @@ linux_detach (int pid)
the thread is stopped to sucessfully detach. Second, thread_db
may need to uninstall thread event breakpoints from memory, which
only works with a stopped process anyway. */
- stop_all_lwps ();
+ stop_all_lwps (0, NULL);
#ifdef USE_THREAD_DB
thread_db_detach (process);
@@ -852,7 +852,7 @@ linux_detach (int pid)
/* Since we presently can only stop all lwps of all processes, we
need to unstop lwps of other processes. */
- unstop_all_lwps (NULL);
+ unstop_all_lwps (0, NULL);
return 0;
}
@@ -928,7 +928,7 @@ status_pending_p_callback (struct inferior_list_entry *entry, void *arg)
{
struct lwp_info *lwp = (struct lwp_info *) entry;
ptid_t ptid = * (ptid_t *) arg;
- struct thread_info *thread = get_lwp_thread (lwp);
+ struct thread_info *thread;
/* Check if we're only interested in events from a specific process
or its lwps. */
@@ -941,7 +941,7 @@ status_pending_p_callback (struct inferior_list_entry *entry, void *arg)
/* If we got a `vCont;t', but we haven't reported a stop yet, do
report any status pending the LWP may have. */
if (thread->last_resume_kind == resume_stop
- && thread->last_status.kind == TARGET_WAITKIND_STOPPED)
+ && thread->last_status.kind != TARGET_WAITKIND_IGNORE)
return 0;
return lwp->status_pending_p;
@@ -1113,6 +1113,12 @@ handle_tracepoints (struct lwp_info *lwp)
struct thread_info *tinfo = get_lwp_thread (lwp);
int tpoint_related_event = 0;
+ /* If this tracepoint hit causes a tracing stop, we'll immediately
+ uninsert tracepoints. To do this, we temporarily pause all
+ threads, unpatch away, and then unpause threads. We need to make
+ sure the unpausing doesn't resume LWP too. */
+ lwp->suspended++;
+
/* And we need to be sure that any all-threads-stopping doesn't try
to move threads out of the jump pads, as it could deadlock the
inferior (LWP could be in the jump pad, maybe even holding the
@@ -1125,6 +1131,10 @@ handle_tracepoints (struct lwp_info *lwp)
actions. */
tpoint_related_event |= tracepoint_was_hit (tinfo, lwp->stop_pc);
+ lwp->suspended--;
+
+ gdb_assert (lwp->suspended == 0);
+
if (tpoint_related_event)
{
if (debug_threads)
@@ -1290,7 +1300,7 @@ linux_wait_for_event_1 (ptid_t ptid, int *wstat, int options)
/* Cancel the step-over operation --- the thread that
started it is gone. */
if (finish_step_over (event_child))
- unstop_all_lwps (event_child);
+ unstop_all_lwps (1, event_child);
delete_lwp (event_child);
return lwpid;
}
@@ -1314,43 +1324,6 @@ linux_wait_for_event_1 (ptid_t ptid, int *wstat, int options)
continue;
}
- /* If GDB is not interested in this signal, don't stop other
- threads, and don't report it to GDB. Just resume the
- inferior right away. We do this for threading-related
- signals as well as any that GDB specifically requested we
- ignore. But never ignore SIGSTOP if we sent it ourselves,
- and do not ignore signals when stepping - they may require
- special handling to skip the signal handler. */
- /* FIXME drow/2002-06-09: Get signal numbers from the inferior's
- thread library? */
- if (WIFSTOPPED (*wstat)
- && !event_child->stepping
- && (
-#if defined (USE_THREAD_DB) && defined (__SIGRTMIN)
- (current_process ()->private->thread_db != NULL
- && (WSTOPSIG (*wstat) == __SIGRTMIN
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-02 23:10 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-05-02 23:10 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 66faed36593d9577859e9942388c4edcd1928e35 (commit)
via 5263f9075a7eb49c3d8c9e1d82d5fc10dd6a1952 (commit)
via 076247968f69995cce9ecc1138f98482fa678f14 (commit)
via 7961b0b56f7c749af03d200b5647083f4f5fff26 (commit)
from f435677142e149f7298f24769d5047a9cec54977 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 66faed36593d9577859e9942388c4edcd1928e35
Merge: f435677142e149f7298f24769d5047a9cec54977 5263f9075a7eb49c3d8c9e1d82d5fc10dd6a1952
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon May 3 01:09:46 2010 +0200
Merge remote branch 'gdb/master'
commit 5263f9075a7eb49c3d8c9e1d82d5fc10dd6a1952
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun May 2 21:14:54 2010 +0000
gdb/
* ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
* amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
* cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
(cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
* complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
(vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
* complaints.h (complaint, internal_complaint): Likewise.
* defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
(ATTR_FORMAT): Remove.
(query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
(fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
(vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
(printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
(xsnprintf, verror, error, vfatal, fatal, internal_verror)
(internal_error, internal_vwarning, internal_warning, warning)
(vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
* disasm.c (fprintf_disasm): Likewise.
* exceptions.c (throw_it): Likewise.
* exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
(throw_error): Likewise.
* language.h (type_error, range_error): Likewise.
* linespec.c (cplusplus_error): Likewise.
* mi/mi-interp.c (mi_interp_query_hook): Likewise.
* mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
* monitor.c (monitor_debug): Likewise.
* parser-defs.h (parser_fprintf): Likewise.
* serial.h (serial_printf): Likewise.
* tui/tui-hooks.c (tui_query_hook): Likewise.
* ui-out.c (default_field_fmt, default_message, uo_field_fmt)
(uo_message): Likewise.
* ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
* utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
Likewise.
* xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
commit 076247968f69995cce9ecc1138f98482fa678f14
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun May 2 16:49:56 2010 +0000
* cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
(cli_table_header, cli_begin, cli_end, cli_field_int)
(cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
(cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
Delete forward declarations.
(cli_ui_out_impl): Move below the callbacks.
(_initialize_cli_out): Delete.
commit 7961b0b56f7c749af03d200b5647083f4f5fff26
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun May 2 16:10:00 2010 +0000
gdb/
* README: Use consistent `GDB' and `GDBserver' spellings.
gdb/gdbserver/
* README: Use consistent `GDB' and `GDBserver' spellings.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 51 +++++++++++++++++++
gdb/README | 18 +++---
gdb/ada-lang.c | 2 +-
gdb/amd64-tdep.c | 2 +-
gdb/cli-out.c | 128 +++++++++++++++++------------------------------
gdb/complaints.c | 4 +-
gdb/complaints.h | 4 +-
gdb/defs.h | 67 +++++++++++--------------
gdb/disasm.c | 2 +-
gdb/exceptions.c | 2 +-
gdb/exceptions.h | 8 ++--
gdb/gdbserver/ChangeLog | 4 ++
gdb/gdbserver/README | 62 +++++++++++-----------
gdb/language.h | 4 +-
gdb/linespec.c | 2 +-
gdb/mi/mi-interp.c | 2 +-
gdb/mi/mi-out.c | 4 +-
gdb/monitor.c | 2 +-
gdb/parser-defs.h | 2 +-
gdb/serial.h | 2 +-
gdb/tui/tui-hooks.c | 2 +-
gdb/ui-out.c | 8 ++--
gdb/ui-out.h | 4 +-
gdb/utils.c | 6 +-
gdb/xml-support.h | 4 +-
25 files changed, 204 insertions(+), 192 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 82ee1d6..96a88e5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,56 @@
2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
+ * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
+ * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
+ (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
+ * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
+ (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
+ * complaints.h (complaint, internal_complaint): Likewise.
+ * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
+ (ATTR_FORMAT): Remove.
+ (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
+ (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
+ (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
+ (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
+ (xsnprintf, verror, error, vfatal, fatal, internal_verror)
+ (internal_error, internal_vwarning, internal_warning, warning)
+ (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
+ * disasm.c (fprintf_disasm): Likewise.
+ * exceptions.c (throw_it): Likewise.
+ * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
+ (throw_error): Likewise.
+ * language.h (type_error, range_error): Likewise.
+ * linespec.c (cplusplus_error): Likewise.
+ * mi/mi-interp.c (mi_interp_query_hook): Likewise.
+ * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
+ * monitor.c (monitor_debug): Likewise.
+ * parser-defs.h (parser_fprintf): Likewise.
+ * serial.h (serial_printf): Likewise.
+ * tui/tui-hooks.c (tui_query_hook): Likewise.
+ * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
+ (uo_message): Likewise.
+ * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
+ * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
+ Likewise.
+ * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
+
+2010-05-02 Pedro Alves <pedro@codesourcery.com>
+
+ * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
+ (cli_table_header, cli_begin, cli_end, cli_field_int)
+ (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
+ (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
+ Delete forward declarations.
+ (cli_ui_out_impl): Move below the callbacks.
+ (_initialize_cli_out): Delete.
+
+2010-05-02 Pedro Alves <pedro@codesourcery.com>
+
+ * README: Use consistent `GDB' and `GDBserver' spellings.
+
+2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
* cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2010-05-01 Pedro Alves <pedro@codesourcery.com>
diff --git a/gdb/README b/gdb/README
index 57f600a..e3c39bb 100644
--- a/gdb/README
+++ b/gdb/README
@@ -22,8 +22,8 @@ files, the BFD ("binary file description") library, the readline
library, and other libraries all have directories of their own
underneath the gdb-6.3 directory. The idea is that a variety of GNU
tools can share a common copy of these things. Be aware of variation
-over time--for example don't try to build gdb with a copy of bfd from
-a release other than the gdb release (such as a binutils release),
+over time--for example don't try to build GDB with a copy of bfd from
+a release other than the GDB release (such as a binutils release),
especially if the releases are more than a few weeks apart.
Configuration scripts and makefiles exist to cruise up and down this
directory tree and automatically build all the pieces in the right
@@ -73,10 +73,10 @@ argument, e.g., `./configure sun4' or `./configure decstation'.
/berman/migchain/source/gdb-6.3/configure # RIGHT
/berman/migchain/source/gdb-6.3/gdb/configure # WRONG
- The gdb package contains several subdirectories, such as 'gdb',
+ The GDB package contains several subdirectories, such as 'gdb',
'bfd', and 'readline'. If your 'configure' line ends in
'gdb-6.3/gdb/configure', then you are configuring only the gdb
-subdirectory, not the whole gdb package. This leads to build errors
+subdirectory, not the whole GDB package. This leads to build errors
such as:
make: *** No rule to make target `../bfd/bfd.h', needed by `gdb.o'. Stop.
@@ -88,7 +88,7 @@ Bugs' section below; there are a few known problems.
C compiler for your system, you may be able to download and install
the GNU CC compiler. It is available via anonymous FTP from the
directory `ftp://ftp.gnu.org/pub/gnu/gcc'. GDB also requires an ISO
-C standard library. The GDB remote server, gdbserver, builds with some
+C standard library. The GDB remote server, GDBserver, builds with some
non-ISO standard libraries - e.g. for Windows CE.
GDB uses Expat, an XML parsing library, to implement some target-specific
@@ -545,12 +545,12 @@ standalone on an m68k, i386, or SPARC cpu and communicate properly
with the remote.c stub over a serial line.
The directory gdb/gdbserver/ contains `gdbserver', a program that
-allows remote debugging for Unix applications. gdbserver is only
+allows remote debugging for Unix applications. GDBserver is only
supported for some native configurations, including Sun 3, Sun 4, and
Linux.
-The file gdb/gdbserver/README includes further notes on gdbserver; in
-particular, it explains how to build gdbserver for cross-debugging
-(where gdbserver runs on the target machine, which is of a different
+The file gdb/gdbserver/README includes further notes on GDBserver; in
+particular, it explains how to build GDBserver for cross-debugging
+(where GDBserver runs on the target machine, which is of a different
architecture than the host machine running GDB).
There are a number of remote interfaces for talking to existing ROM
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 9da0609..7238a44 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -501,7 +501,7 @@ cond_offset_target (CORE_ADDR address, long offset)
/* FIXME: cagney/2004-10-10: This function is mimicking the behavior
provided by "complaint". */
-static void lim_warning (const char *format, ...) ATTR_FORMAT (printf, 1, 2);
+static void lim_warning (const char *format, ...) ATTRIBUTE_PRINTF (1, 2);
static void
lim_warning (const char *format, ...)
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index b0926ad..21d66c5 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -1026,7 +1026,7 @@ amd64_skip_prefixes (gdb_byte *insn)
This function is a nop, we don't want to print anything, we just want to
compute the length of the insn. */
-static int ATTR_FORMAT (printf, 2, 3)
+static int ATTRIBUTE_PRINTF (2, 3)
amd64_insn_length_fprintf (void *stream, const char *format, ...)
{
return 0;
diff --git a/gdb/cli-out.c b/gdb/cli-out.c
index e99edb0..b284a4b 100644
--- a/gdb/cli-out.c
+++ b/gdb/cli-out.c
@@ -29,77 +29,22 @@
typedef struct cli_ui_out_data cli_out_data;
-/* These are the CLI output functions */
-
-static void cli_table_begin (struct ui_out *uiout, int nbrofcols,
- int nr_rows, const char *tblid);
-static void cli_table_body (struct ui_out *uiout);
-static void cli_table_end (struct ui_out *uiout);
-static void cli_table_header (struct ui_out *uiout, int width,
- enum ui_align alig, const char *col_name,
- const char *colhdr);
-static void cli_begin (struct ui_out *uiout, enum ui_out_type type,
- int level, const char *lstid);
-static void cli_end (struct ui_out *uiout, enum ui_out_type type, int level);
-static void cli_field_int (struct ui_out *uiout, int fldno, int width,
- enum ui_align alig, const char *fldname, int value);
-static void cli_field_skip (struct ui_out *uiout, int fldno, int width,
- enum ui_align alig, const char *fldname);
-static void cli_field_string (struct ui_out *uiout, int fldno, int width,
- enum ui_align alig, const char *fldname,
- const char *string);
-static void cli_field_fmt (struct ui_out *uiout, int fldno,
- int width, enum ui_align align,
- const char *fldname, const char *format,
- va_list args) ATTR_FORMAT (printf, 6, 0);
-static void cli_spaces (struct ui_out *uiout, int numspaces);
-static void cli_text (struct ui_out *uiout, const char *string);
-static void cli_message (struct ui_out *uiout, int verbosity,
- const char *format, va_list args)
- ATTR_FORMAT (printf, 3, 0);
-static void cli_wrap_hint (struct ui_out *uiout, char *identstring);
-static void cli_flush (struct ui_out *uiout);
-static int cli_redirect (struct ui_out *uiout, struct ui_file *outstream);
-
-/* This is the CLI ui-out implementation functions vector */
-
-/* FIXME: This can be initialized dynamically after default is set to
- handle initial output in main.c */
-
-struct ui_out_impl cli_ui_out_impl =
-{
- cli_table_begin,
- cli_table_body,
- cli_table_end,
- cli_table_header,
- cli_begin,
- cli_end,
- cli_field_int,
- cli_field_skip,
- cli_field_string,
- cli_field_fmt,
- cli_spaces,
- cli_text,
- cli_message,
- cli_wrap_hint,
- cli_flush,
- cli_redirect,
- 0, /* Does not need MI hacks (i.e. needs CLI hacks). */
-};
/* Prototypes for local functions */
-extern void _initialize_cli_out (void);
+static void cli_text (struct ui_out *uiout, const char *string);
static void field_separator (void);
static void out_field_fmt (struct ui_out *uiout, int fldno,
const char *fldname,
- const char *format,...) ATTR_FORMAT (printf, 4, 5);
+ const char *format,...) ATTRIBUTE_PRINTF (4, 5);
+
+/* These are the CLI output functions */
/* Mark beginning of a table */
-void
+static void
cli_table_begin (struct ui_out *uiout, int nbrofcols,
int nr_rows,
const char *tblid)
@@ -115,7 +60,7 @@ cli_table_begin (struct ui_out *uiout, int nbrofcols,
/* Mark beginning of a table body */
-void
+static void
cli_table_body (struct ui_out *uiout)
{
cli_out_data *data = ui_out_data (uiout);
@@ -127,7 +72,7 @@ cli_table_body (struct ui_out *uiout)
/* Mark end of a table */
-void
+static void
cli_table_end (struct ui_out *uiout)
{
cli_out_data *data = ui_out_data (uiout);
@@ -136,7 +81,7 @@ cli_table_end (struct ui_out *uiout)
/* Specify table header */
-void
+static void
cli_table_header (struct ui_out *uiout, int width, enum ui_align alignment,
const char *col_name,
const char *colhdr)
@@ -152,7 +97,7 @@ cli_table_header (struct ui_out *uiout, int width, enum ui_align alignment,
/* Mark beginning of a list */
-void
+static void
cli_begin (struct ui_out *uiout,
enum ui_out_type type,
int level,
@@ -165,7 +110,7 @@ cli_begin (struct ui_out *uiout,
/* Mark end of a list */
-void
+static void
cli_end (struct ui_out *uiout,
enum ui_out_type type,
int level)
@@ -177,7 +122,7 @@ cli_end (struct ui_out *uiout,
/* output an int field */
-void
+static void
cli_field_int (struct ui_out *uiout, int fldno, int width,
enum ui_align alignment,
const char *fldname, int value)
@@ -196,7 +141,7 @@ cli_field_int (struct ui_out *uiout, int fldno, int width,
/* used to ommit a field */
-void
+static void
cli_field_skip (struct ui_out *uiout, int fldno, int width,
enum ui_align alignment,
const char *fldname)
@@ -213,7 +158,7 @@ cli_field_skip (struct ui_out *uiout, int fldno, int width,
/* other specific cli_field_* end up here so alignment and field
separators are both handled by cli_field_string */
-void
+static void
cli_field_string (struct ui_out *uiout,
int fldno,
int width,
@@ -264,7 +209,7 @@ cli_field_string (struct ui_out *uiout,
/* This is the only field function that does not align. */
-void
+static void ATTRIBUTE_PRINTF (6, 0)
cli_field_fmt (struct ui_out *uiout, int fldno,
int width, enum ui_align align,
const char *fldname,
@@ -281,7 +226,7 @@ cli_field_fmt (struct ui_out *uiout, int fldno,
field_separator ();
}
-void
+static void
cli_spaces (struct ui_out *uiout, int numspaces)
{
cli_out_data *data = ui_out_data (uiout);
@@ -290,7 +235,7 @@ cli_spaces (struct ui_out *uiout, int numspaces)
print_spaces_filtered (numspaces, data->stream);
}
-void
+static void
cli_text (struct ui_out *uiout, const char *string)
{
cli_out_data *data = ui_out_data (uiout);
@@ -299,7 +244,7 @@ cli_text (struct ui_out *uiout, const char *string)
fputs_filtered (string, data->stream);
}
-void
+static void ATTRIBUTE_PRINTF (3, 0)
cli_message (struct ui_out *uiout, int verbosity,
const char *format, va_list args)
{
@@ -310,7 +255,7 @@ cli_message (struct ui_out *uiout, int verbosity,
vfprintf_unfiltered (data->stream, format, args);
}
-void
+static void
cli_wrap_hint (struct ui_out *uiout, char *identstring)
{
cli_out_data *data = ui_out_data (uiout);
@@ -319,14 +264,14 @@ cli_wrap_hint (struct ui_out *uiout, char *identstring)
wrap_here (identstring);
}
-void
+static void
cli_flush (struct ui_out *uiout)
{
cli_out_data *data = ui_out_data (uiout);
gdb_flush (data->stream);
}
-int
+static int
cli_redirect (struct ui_out *uiout, struct ui_file *outstream)
{
cli_out_data *data = ui_out_data (uiout);
@@ -373,6 +318,32 @@ field_separator (void)
fputc_filtered (' ', data->stream);
}
+/* This is the CLI ui-out implementation functions vector */
+
+/* FIXME: This can be initialized dynamically after default is set to
+ handle initial output in main.c */
+
+struct ui_out_impl cli_ui_out_impl =
+{
+ cli_table_begin,
+ cli_table_body,
+ cli_table_end,
+ cli_table_header,
+ cli_begin,
+ cli_end,
+ cli_field_int,
+ cli_field_skip,
+ cli_field_string,
+ cli_field_fmt,
+ cli_spaces,
+ cli_text,
+ cli_message,
+ cli_wrap_hint,
+ cli_flush,
+ cli_redirect,
+ 0, /* Does not need MI hacks (i.e. needs CLI hacks). */
+};
+
/* Constructor for a `cli_out_data' object. */
void
@@ -403,10 +374,3 @@ cli_out_set_stream (struct ui_out *uiout, struct ui_file *stream)
data->stream = stream;
return old;
}
-
-/* Standard gdb initialization hook. */
-void
-_initialize_cli_out (void)
-{
- /* nothing needs to be done */
-}
diff --git a/gdb/complaints.c b/gdb/complaints.c
index 16495f2..fa63418 100644
--- a/gdb/complaints.c
+++ b/gdb/complaints.c
@@ -120,7 +120,7 @@ get_complaints (struct complaints **c)
return (*c);
}
-static struct complain *
+static struct complain * ATTRIBUTE_PRINTF (4, 0)
find_complaint (struct complaints *complaints, const char *file,
int line, const char *fmt)
{
@@ -164,7 +164,7 @@ static int stop_whining = 0;
/* Print a complaint, and link the complaint block into a chain for
later handling. */
-static void ATTR_FORMAT (printf, 4, 0)
+static void ATTRIBUTE_PRINTF (4, 0)
vcomplaint (struct complaints **c, const char *file, int line, const char *fmt,
va_list args)
{
diff --git a/gdb/complaints.h b/gdb/complaints.h
index 54222ca..4ff8d9b 100644
--- a/gdb/complaints.h
+++ b/gdb/complaints.h
@@ -31,10 +31,10 @@ extern struct complaints *symfile_complaints;
/* Register a complaint. */
extern void complaint (struct complaints **complaints, const char *fmt,
- ...) ATTR_FORMAT (printf, 2, 3);
+ ...) ATTRIBUTE_PRINTF (2, 3);
extern void internal_complaint (struct complaints **complaints,
const char *file, int line, const char *fmt,
- ...) ATTR_FORMAT (printf, 4, 5);
+ ...) ATTRIBUTE_PRINTF (4, 5);
/* Clear out / initialize all complaint counters that have ever been
incremented. If LESS_VERBOSE is 1, be less verbose about
diff --git a/gdb/defs.h b/gdb/defs.h
index 71e8b3a..c58f698 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1,4 +1,5 @@
-/* *INDENT-OFF* */ /* ATTR_FORMAT confuses indent, avoid running it for now */
+/* *INDENT-OFF* */ /* ATTRIBUTE_PRINTF confuses indent, avoid running it
+ for now. */
/* Basic, host-specific, and target-specific definitions for GDB.
Copyright (C) 1986, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009,
@@ -296,14 +297,6 @@ struct cleanup
#endif
#endif
-#ifndef ATTR_FORMAT
-#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 4))
-#define ATTR_FORMAT(type, x, y) __attribute__ ((format(type, x, y)))
-#else
-#define ATTR_FORMAT(type, x, y) /* nothing */
-#endif
-#endif
-
/* Be conservative and use enum bitfields only with GCC.
This is copied from gcc 3.3.1, system.h. */
@@ -404,9 +397,9 @@ extern void null_cleanup (void *);
extern int myread (int, char *, int);
-extern int query (const char *, ...) ATTR_FORMAT (printf, 1, 2);
-extern int nquery (const char *, ...) ATTR_FORMAT (printf, 1, 2);
-extern int yquery (const char *, ...) ATTR_FORMAT (printf, 1, 2);
+extern int query (const char *, ...) ATTRIBUTE_PRINTF (1, 2);
+extern int nquery (const char *, ...) ATTRIBUTE_PRINTF (1, 2);
+extern int yquery (const char *, ...) ATTRIBUTE_PRINTF (1, 2);
extern void init_page_info (void);
@@ -492,25 +485,25 @@ extern void puts_filtered_tabular (char *string, int width, int right);
extern void puts_debug (char *prefix, char *string, char *suffix);
-extern void vprintf_filtered (const char *, va_list) ATTR_FORMAT (printf, 1, 0);
+extern void vprintf_filtered (const char *, va_list) ATTRIBUTE_PRINTF (1, 0);
-extern void vfprintf_filtered (struct ui_file *, const char *, va_list) ATTR_FORMAT (printf, 2, 0);
+extern void vfprintf_filtered (struct ui_file *, const char *, va_list) ATTRIBUTE_PRINTF (2, 0);
-extern void fprintf_filtered (struct ui_file *, const char *, ...) ATTR_FORMAT (printf, 2, 3);
+extern void fprintf_filtered (struct ui_file *, const char *, ...) ATTRIBUTE_PRINTF (2, 3);
-extern void fprintfi_filtered (int, struct ui_file *, const char *, ...) ATTR_FORMAT (printf, 3, 4);
+extern void fprintfi_filtered (int, struct ui_file *, const char *, ...) ATTRIBUTE_PRINTF (3, 4);
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-05-02 15:54 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-05-02 15:54 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via f435677142e149f7298f24769d5047a9cec54977 (commit)
via 79a428f4a05c32fb55d88492ea042c748f31f40c (commit)
via 0e4debf4f732f631368b794e95b47d8322c413bb (commit)
via fa4a9b9107fc5a47692649270cdb07c8eeef3d47 (commit)
via 8f0cde7c65bdccbb1471eaa65437c7803fbefb4d (commit)
via ff7a32364a3fab68b62298c514dba750141ad68e (commit)
via 41913fd3a887565e2abc63e867b4357122820015 (commit)
via 02acd6f7d5788125c9b26b1532bb3441ed9bfe5e (commit)
via faa0af7963038e3a5f0d9366837e02fb956f81f8 (commit)
via b0ac534d8cfc7f24f31b6c02b4177b55e75507c4 (commit)
via 8f7056958860649bc9200db2e40f10df172a2c6e (commit)
via 429e6ea3034841abe6d7937179cff50d898875aa (commit)
via 16541465c3aebfffc007dc977b4b5bd59de646c0 (commit)
via 4a525c8f93a1f3344947db9b89d78ec523090c23 (commit)
via b319a9de41dbab17e8c4c6cb87ad56b7b6e5c582 (commit)
via 7b57f4a47be72d3d85cb208a98f5ac386fd7cbfb (commit)
via 93d636881f46c4fdd4688adf1f4862debb5970f7 (commit)
via f5984db56b3b95ba0ba90570e7e6dff288c56278 (commit)
via c42e51ce369144aaaf29104e654fbbcfe3fa92f7 (commit)
from 6f316690aaae8e0cbc09fe722a50c71292a9b8c0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f435677142e149f7298f24769d5047a9cec54977
Merge: 6f316690aaae8e0cbc09fe722a50c71292a9b8c0 79a428f4a05c32fb55d88492ea042c748f31f40c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun May 2 17:53:59 2010 +0200
Merge remote branch 'gdb/master'
commit 79a428f4a05c32fb55d88492ea042c748f31f40c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun May 2 09:13:34 2010 +0000
gdb/
* cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
commit 0e4debf4f732f631368b794e95b47d8322c413bb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun May 2 09:08:58 2010 +0000
gdb/testsuite/
* gdb.base/break-interp.exp: Remove $exec.debug safety removal.
* gdb.base/sepdebug.exp: Remove .debug subdirectory handling. New
variable different_dir. Move debugfile into a full directory pathname
under DIFFERENT_DIR.
* lib/gdb.exp (separate_debug_filename): Remove.
(gdb_gnu_strip_debug): No longer call separate_debug_filename. Remove
variable debug_dir and mkdir of it. Update function comments.
commit fa4a9b9107fc5a47692649270cdb07c8eeef3d47
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun May 2 00:47:34 2010 +0000
* linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
(linux_kill): Stop all lwps here. Don't delete the main lwp here.
(linux_detach_one_lwp): Assume the lwp is stopped.
(any_thread_of): Delete.
(linux_detach): Stop all lwps here. Don't blindly delete all
breakpoints.
(delete_lwp_callback): New.
(linux_mourn): Delete all lwps of the process that is gone.
(linux_wait_1): Don't delete the last lwp of the process here.
* mem-break.h (mark_breakpoints_out): Declare.
* mem-break.c (mark_breakpoints_out): New.
(free_all_breakpoints): Use it.
* server.c (handle_target_event): If the process is gone, mark
breakpoints out.
* thread-db.c (struct thread_db) <create_bp>: New field.
(thread_db_enable_reporting): Fix prototype. Store a thread event
breakpoint reference in the thread_db struct.
(thread_db_load_search): Clear the thread_db object.
(try_thread_db_load_1): Ditto.
(switch_to_process): New.
(disable_thread_event_reporting): Use it.
(remove_thread_event_breakpoints): New.
(thread_db_detach, thread_db_mourn): Use it.
commit 8f0cde7c65bdccbb1471eaa65437c7803fbefb4d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun May 2 00:00:33 2010 +0000
*** empty log message ***
commit ff7a32364a3fab68b62298c514dba750141ad68e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun May 2 00:00:05 2010 +0000
daily update
commit 41913fd3a887565e2abc63e867b4357122820015
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat May 1 15:56:51 2010 +0000
* infrun.c (prepare_for_detach): In non-stop, context switch to
the thread that got the event before handling the event.
commit 02acd6f7d5788125c9b26b1532bb3441ed9bfe5e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat May 1 15:46:26 2010 +0000
* linux-low.c (linux_enable_event_reporting): New.
(linux_wait_for_event_1, handle_extended_wait): Use it.
commit faa0af7963038e3a5f0d9366837e02fb956f81f8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat May 1 00:00:05 2010 +0000
daily update
commit b0ac534d8cfc7f24f31b6c02b4177b55e75507c4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat May 1 00:00:03 2010 +0000
*** empty log message ***
commit 8f7056958860649bc9200db2e40f10df172a2c6e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Apr 30 21:36:44 2010 +0000
* linux-low.c (linux_kill_one_lwp, linux_kill)
(linux_detach_one_lwp): Adjust to send_sigstop interface change.
(send_sigstop): Take an lwp_info as parameter instead. Queue a
SIGSTOP even if the LWP is stopped.
(send_sigstop_callback): New.
(stop_all_lwps): Use send_sigstop_callback instead.
(linux_resume_one_thread): Adjust.
(proceed_one_lwp): Still proceed an LWP that the client has
requested to stop, if we haven't reported it as stopped yet. Make
sure that LWPs the client want stopped, have a pending SIGSTOP.
commit 429e6ea3034841abe6d7937179cff50d898875aa
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Apr 30 18:27:25 2010 +0000
Remove relocation against discarded sections for relocatable link.
bfd/
2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11542
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
* elf32-i386.c (elf_i386_relocate_section): Use it.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
ld/testsuite/
2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11542
* ld-elf/discard.ld: New.
* ld-elf/discard1.d: Likewise.
* ld-elf/discard1.s: Likewise.
* ld-elf/discard2.d: Likewise.
* ld-elf/discard2.s: Likewise.
* ld-elf/discard3.d: Likewise.
commit 16541465c3aebfffc007dc977b4b5bd59de646c0
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Apr 30 17:43:55 2010 +0000
* symtab.c (symbol_set_names): Fix typo.
commit 4a525c8f93a1f3344947db9b89d78ec523090c23
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Apr 30 16:22:41 2010 +0000
* python/py-param.c (parm_constants): Avoid ARI warning
by adding ARI comment.
(parmpy_init): Likewise.
commit b319a9de41dbab17e8c4c6cb87ad56b7b6e5c582
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Apr 30 15:38:40 2010 +0000
* windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
and created type for re-use.
commit 7b57f4a47be72d3d85cb208a98f5ac386fd7cbfb
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Apr 30 12:44:31 2010 +0000
bfd/
2010-04-30 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (vms_read_block): New function.
(vms_traverse_index): Use vms_read_block. Handle long key names.
include/vms/
2010-04-30 Tristan Gingold <gingold@adacore.com>
* lbr.h (struct vms_kbn): New structure.
commit 93d636881f46c4fdd4688adf1f4862debb5970f7
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Apr 30 12:44:31 2010 +0000
bfd/
2010-04-30 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (vms_read_block): New function.
(vms_traverse_index): Use vms_read_block. Handle long key names.
include/vms/
2010-04-30 Tristan Gingold <gingold@adacore.com>
* lbr.h (struct vms_kbn): New structure.
commit f5984db56b3b95ba0ba90570e7e6dff288c56278
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Apr 30 09:40:41 2010 +0000
bfd/
2010-04-30 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
and syms removed.
(struct carsym_mem): New structure.
(vms_add_index): New function.
(vms_add_indexes_from_list): New function.
(vms_traverse_index): Parameter carsym changed to carsym_mem.
Code adjusted to handle elfidx.
(vms_lib_read_index): Adjusted for vms_traverse_index changes.
Parameter NBREL is now a pointer.
(_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
archives.
(_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
(_bfd_vms_lib_find_symbol): Ditto.
(vms_lib_bopen): Fix two typos: return FALSE in case of error,
check MHD id.
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
changes of _bfd_vms_lib_find_symbol.
include/vms
2010-04-30 Tristan Gingold <gingold@adacore.com>
* lbr.h (LBR__C_TYP_ISHSTB): Added.
(LHD_SANEID4): Renamed to ...
(LHD_SANEID6): ... this.
(LBR_MAJORID, LBR_ELFMAJORID): New macros.
(struct vms_rfa): New structure.
(struct vms_idxdef): Renamed to ...
(struct vms_idx): ... this.
(struct vms_idxdef2): Renamed to ...
(struct vms_elfidx): ... this.
(ELFIDX__WEAK, ELFIDX__GROUP, ELFIDX__LISTRFA, ELFIDX__SYMESC): New
macros.
(struct vms_lhs, struct vms_lns): New structures.
(struct vms_mhd): Add missing fields.
(MHD__C_MHDLEN): New macro.
commit c42e51ce369144aaaf29104e654fbbcfe3fa92f7
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Apr 30 07:04:46 2010 +0000
* NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 39 +++
bfd/elf-bfd.h | 42 +++
bfd/elf32-i386.c | 11 +-
bfd/elf64-x86-64.c | 11 +-
bfd/version.h | 2 +-
bfd/vms-alpha.c | 8 +-
bfd/vms-lib.c | 523 ++++++++++++++++++++++++-------
gdb/ChangeLog | 28 ++
gdb/NEWS | 2 +
gdb/cli/cli-dump.h | 2 -
gdb/gdbserver/ChangeLog | 44 +++
gdb/gdbserver/linux-low.c | 157 ++++++----
gdb/gdbserver/mem-break.c | 14 +-
gdb/gdbserver/mem-break.h | 4 +
gdb/gdbserver/server.c | 5 +-
gdb/gdbserver/thread-db.c | 66 ++++-
gdb/infrun.c | 8 +
gdb/python/py-param.c | 5 +-
gdb/symtab.c | 2 +-
gdb/testsuite/ChangeLog | 10 +
gdb/testsuite/gdb.base/break-interp.exp | 4 -
gdb/testsuite/gdb.base/sepdebug.exp | 17 +-
gdb/testsuite/lib/gdb.exp | 36 +--
gdb/version.in | 2 +-
gdb/windows-tdep.c | 9 +
include/vms/ChangeLog | 21 ++
include/vms/lbr.h | 92 +++++-
27 files changed, 888 insertions(+), 276 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 19306b2..74dd28b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,42 @@
+2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11542
+ * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
+
+ * elf32-i386.c (elf_i386_relocate_section): Use it.
+ * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
+
+2010-04-30 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (vms_read_block): New function.
+ (vms_traverse_index): Use vms_read_block. Handle long key names.
+
+2010-04-30 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
+ and syms removed.
+ (struct carsym_mem): New structure.
+ (vms_add_index): New function.
+ (vms_add_indexes_from_list): New function.
+ (vms_traverse_index): Parameter carsym changed to carsym_mem.
+ Code adjusted to handle elfidx.
+ (vms_lib_read_index): Adjusted for vms_traverse_index changes.
+ Parameter NBREL is now a pointer.
+ (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
+ archives.
+ (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
+ (_bfd_vms_lib_find_symbol): Ditto.
+ (vms_lib_bopen): Fix two typos: return FALSE in case of error,
+ check MHD id.
+ (_bfd_vms_lib_get_module): New function.
+ (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
+ function.
+ (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
+ (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
+ (vms_write_index): Adjust for structure renamed.
+ * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
+ changes of _bfd_vms_lib_find_symbol.
+
2010-04-28 Kai Tietz <kai.tietz@onevision.com>
* config.bfd: Correct accidential reverted patch
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 0c975dc..226b95f 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2328,6 +2328,48 @@ extern asection _bfd_elf_large_com_section;
} \
while (0)
+/* This macro is to avoid lots of duplicated code in the body of the
+ loop over relocations in xxx_relocate_section() in the various
+ elfxx-xxxx.c files.
+
+ Handle relocations against symbols from removed linkonce sections,
+ or sections discarded by a linker script. When doing a relocatable
+ link, we remove such relocations. Otherwise, we just want the
+ section contents zeroed and avoid any special processing. */
+#define RELOC_AGAINST_DISCARDED_SECTION(info, input_bfd, input_section, \
+ rel, relend, howto, contents) \
+ { \
+ if (info->relocatable \
+ && (input_section->flags & SEC_DEBUGGING)) \
+ { \
+ /* Only remove relocations in debug sections since other \
+ sections may require relocations. */ \
+ Elf_Internal_Shdr *rel_hdr; \
+ \
+ rel_hdr = &elf_section_data (input_section->output_section)->rel_hdr; \
+ \
+ /* Avoid empty output section. */ \
+ if (rel_hdr->sh_size > rel_hdr->sh_entsize) \
+ { \
+ rel_hdr->sh_size -= rel_hdr->sh_entsize; \
+ rel_hdr = &elf_section_data (input_section)->rel_hdr; \
+ rel_hdr->sh_size -= rel_hdr->sh_entsize; \
+ \
+ memmove (rel, rel + 1, (relend - rel) * sizeof (*rel)); \
+ \
+ input_section->reloc_count--; \
+ relend--; \
+ rel--; \
+ continue; \
+ } \
+ } \
+ \
+ _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset); \
+ rel->r_info = 0; \
+ rel->r_addend = 0; \
+ continue; \
+ }
+
/* Will a symbol be bound to the the definition within the shared
library, if any. A unique symbol can never be bound locally. */
#define SYMBOLIC_BIND(INFO, H) \
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 395a6bb..7964c4f 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -2955,15 +2955,8 @@ elf_i386_relocate_section (bfd *output_bfd,
}
if (sec != NULL && elf_discarded_section (sec))
- {
- /* For relocs against symbols from removed linkonce sections,
- or sections discarded by a linker script, we just want the
- section contents zeroed. Avoid any special processing. */
- _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset);
- rel->r_info = 0;
- rel->r_addend = 0;
- continue;
- }
+ RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section,
+ rel, relend, howto, contents);
if (info->relocatable)
continue;
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 3a24cca..21524fa 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -2685,15 +2685,8 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
}
if (sec != NULL && elf_discarded_section (sec))
- {
- /* For relocs against symbols from removed linkonce sections,
- or sections discarded by a linker script, we just want the
- section contents zeroed. Avoid any special processing. */
- _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset);
- rel->r_info = 0;
- rel->r_addend = 0;
- continue;
- }
+ RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section,
+ rel, relend, howto, contents);
if (info->relocatable)
continue;
diff --git a/bfd/version.h b/bfd/version.h
index 559de31..e8522de 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100430
+#define BFD_VERSION_DATE 20100502
#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/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 3013192..294bd90 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -8040,7 +8040,7 @@ alpha_vms_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
for (pundef = &info->hash->undefs; *pundef != NULL; pundef = next_pundef)
{
struct bfd_link_hash_entry *h;
- file_ptr file_offset;
+ symindex symidx;
bfd *element;
bfd *orig_element;
@@ -8066,14 +8066,14 @@ alpha_vms_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
}
/* Look for this symbol in the archive hash table. */
- file_offset = _bfd_vms_lib_find_symbol (abfd, h->root.string);
- if (file_offset == 0)
+ symidx = _bfd_vms_lib_find_symbol (abfd, h->root.string);
+ if (symidx == BFD_NO_MORE_SYMBOLS)
{
/* Nothing in this slot. */
continue;
}
- element = bfd_get_elt_at_index (abfd, file_offset);
+ element = bfd_get_elt_at_index (abfd, symidx);
if (element == NULL)
return FALSE;
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index d05fab7..bd5ecb7 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -62,6 +62,9 @@ enum vms_lib_kind
struct lib_tdata
{
+ /* Standard tdata for an archive. But we don't use many fields. */
+ struct artdata artdata;
+
/* Major version. */
unsigned char ver;
@@ -79,10 +82,6 @@ struct lib_tdata
struct carsym *modules;
bfd **cache;
- /* Vector of symbols (archive map), already sorted. */
- unsigned int nbr_syms;
- struct carsym *syms;
-
/* DCX (decompression) data. */
unsigned int nbr_dcxsbm;
struct dcxsbm_desc *dcxsbm;
@@ -94,62 +93,176 @@ struct lib_tdata
static const unsigned char eotdesc[] = { 0x03, 0x00, 0x77, 0x00, 0x77, 0x00 };
+/* Describe the current state of carsym entries while building the archive
+ table of content. Things are simple with Alpha archives as the number
+ of entries is known, but with IA64 archives a entry can make a reference
+ to severals members. Therefore we must be able to extend the table on the
+ fly, but it should be allocated on the bfd - which doesn't support realloc.
+ To reduce the overhead, the table is initially allocated in the BFD's
+ objalloc and extended if necessary on the heap. In the later case, it
+ is finally copied to the BFD's objalloc so that it will automatically be
+ freed. */
+
+struct carsym_mem
+{
+ /* The table of content. */
+ struct carsym *idx;
+
+ /* Number of entries used in the table. */
+ unsigned int nbr;
+
+ /* Maximum number of entries. */
+ unsigned int max;
+
+ /* If true, the table was reallocated on the heap. If false, it is still
+ in the BFD's objalloc. */
+ bfd_boolean realloced;
+};
+
+/* Simply add a name to the index. */
+
+static bfd_boolean
+vms_add_index (struct carsym_mem *cs, char *name,
+ unsigned int idx_vbn, unsigned int idx_off)
+{
+ if (cs->nbr == cs->max)
+ {
+ struct carsym *n;
+
+ cs->max = 2 * cs->max + 32;
+
+ if (!cs->realloced)
+ {
+ n = bfd_malloc2 (cs->max, sizeof (struct carsym));
+ if (n == NULL)
+ return FALSE;
+ memcpy (n, cs->idx, cs->nbr * sizeof (struct carsym));
+ /* And unfortunately we can't free cs->idx. */
+ }
+ else
+ {
+ n = bfd_realloc_or_free (cs->idx, cs->nbr * sizeof (struct carsym));
+ if (n == NULL)
+ return FALSE;
+ }
+ cs->idx = n;
+ cs->realloced = TRUE;
+ }
+ cs->idx[cs->nbr].file_offset = (idx_vbn - 1) * VMS_BLOCK_SIZE + idx_off;
+ cs->idx[cs->nbr].name = name;
+ cs->nbr++;
+ return TRUE;
+}
+
+/* Follow all member of a lns list (pointed by RFA) and add indexes for
+ NAME. Return FALSE in case of error. */
+
+static bfd_boolean
+vms_add_indexes_from_list (bfd *abfd, struct carsym_mem *cs, char *name,
+ struct vms_rfa *rfa)
+{
+ struct vms_lns lns;
+ unsigned int vbn;
+ file_ptr off;
+
+ while (1)
+ {
+ vbn = bfd_getl32 (rfa->vbn);
+ if (vbn == 0)
+ return TRUE;
+
+ /* Read the LHS. */
+ off = (vbn - 1) * VMS_BLOCK_SIZE + bfd_getl16 (rfa->offset);
+ if (bfd_seek (abfd, off, SEEK_SET) != 0
+ || bfd_bread (&lns, sizeof (lns), abfd) != sizeof (lns))
+ return FALSE;
+
+ if (!vms_add_index (cs, name,
+ bfd_getl32 (lns.modrfa.vbn),
+ bfd_getl16 (lns.modrfa.offset)))
+ return FALSE;
+
+ rfa = &lns.nxtrfa;
+ }
+}
+
+/* Read block VBN from ABFD and store it into BLK. */
+
+static bfd_boolean
+vms_read_block (bfd *abfd, unsigned int vbn, void *blk)
+{
+ file_ptr off;
+
+ /* Read the index block. */
+ off = (vbn - 1) * VMS_BLOCK_SIZE;
+ if (bfd_seek (abfd, off, SEEK_SET) != 0
+ || bfd_bread (blk, VMS_BLOCK_SIZE, abfd) != VMS_BLOCK_SIZE)
+ return FALSE;
+
+ return TRUE;
+}
+
/* Read index block VBN and put the entry in **IDX (which is updated).
If the entry is indirect, recurse. */
static bfd_boolean
-vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym **idx)
+vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
{
struct vms_indexdef indexdef;
- unsigned int used;
file_ptr off;
- unsigned int i;
+ unsigned char *p;
+ unsigned char *endp;
/* Read the index block. */
- off = (vbn - 1) * VMS_BLOCK_SIZE;
- if (bfd_seek (abfd, off, SEEK_SET) != 0
- || bfd_bread (&indexdef, sizeof (indexdef), abfd) != sizeof (indexdef))
+ BFD_ASSERT (sizeof (indexdef) == VMS_BLOCK_SIZE);
+ if (!vms_read_block (abfd, vbn, &indexdef))
return FALSE;
/* Traverse it. */
- used = bfd_getl16 (indexdef.used);
- for (i = 0; i < used;)
+ p = &indexdef.keys[0];
+ endp = p + bfd_getl16 (indexdef.used);
+ while (p < endp)
{
unsigned int idx_vbn;
unsigned int idx_off;
unsigned int keylen;
unsigned char *keyname;
- unsigned char *ridx = (unsigned char *)&indexdef.keys[i];
- unsigned int len;
-
- idx_vbn = bfd_getl32 (ridx);
- idx_off = bfd_getl16 (ridx + 4);
-
- /* Illegal value. */
- if (idx_vbn == 0)
- return FALSE;
+ unsigned int flags;
/* Extract key length. */
- if (bfd_libdata (abfd)->ver == 3)
+ if (bfd_libdata (abfd)->ver == LBR_MAJORID)
{
- keylen = ridx[6];
- len = 7;
+ struct vms_idx *ridx = (struct vms_idx *)p;
+
+ idx_vbn = bfd_getl32 (ridx->rfa.vbn);
+ idx_off = bfd_getl16 (ridx->rfa.offset);
+
+ keylen = ridx->keylen;
+ flags = 0;
+ keyname = ridx->keyname;
}
- else if (bfd_libdata (abfd)->ver == 4)
+ else if (bfd_libdata (abfd)->ver == LBR_ELFMAJORID)
{
- keylen = bfd_getl16 (ridx + 6);
- len = 9;
+ struct vms_elfidx *ridx = (struct vms_elfidx *)p;
+
+ idx_vbn = bfd_getl32 (ridx->rfa.vbn);
+ idx_off = bfd_getl16 (ridx->rfa.offset);
+
+ keylen = bfd_getl16 (ridx->keylen);
+ flags = ridx->flags;
+ keyname = ridx->keyname;
}
else
return FALSE;
- keyname = ridx + len;
- i += len + keylen;
+ /* Illegal value. */
+ if (idx_vbn == 0)
+ return FALSE;
if (idx_off == RFADEF__C_INDEX)
{
/* Indirect entry. Recurse. */
- if (!vms_traverse_index (abfd, idx_vbn, idx))
+ if (!vms_traverse_index (abfd, idx_vbn, cs))
return FALSE;
}
else
@@ -157,15 +270,89 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym **idx)
/* Add a new entry. */
char *name;
- name = bfd_alloc (abfd, keylen + 1);
- if (name == NULL)
- return FALSE;
- memcpy (name, keyname, keylen);
+ if (flags & ELFIDX__SYMESC)
+ {
+ /* Extended key name. */
+ unsigned int noff = 0;
+ unsigned int koff;
+ unsigned int kvbn;
+ struct vms_kbn *kbn;
+ unsigned char kblk[VMS_BLOCK_SIZE];
+
+ /* Sanity check. */
+ if (keylen != sizeof (struct vms_kbn))
+ return FALSE;
+
+ kbn = (struct vms_kbn *)keyname;
+ keylen = bfd_getl16 (kbn->keylen);
+
+ name = bfd_alloc (abfd, keylen + 1);
+ if (name == NULL)
+ return FALSE;
+ kvbn = bfd_getl32 (kbn->rfa.vbn);
+ koff = bfd_getl16 (kbn->rfa.offset);
+
+ /* Read the key, chunk by chunk. */
+ do
+ {
+ unsigned int klen;
+
+ if (!vms_read_block (abfd, kvbn, kblk))
+ return FALSE;
+ kbn = (struct vms_kbn *)(kblk + koff);
+ klen = bfd_getl16 (kbn->keylen);
+ kvbn = bfd_getl32 (kbn->rfa.vbn);
+ koff = bfd_getl16 (kbn->rfa.offset);
+
+ memcpy (name + noff, kbn + 1, klen);
+ noff += klen;
+ }
+ while (kvbn != 0);
+
+ /* Sanity check. */
+ if (noff != keylen)
+ return FALSE;
+ }
+ else
+ {
+ /* Usual key name. */
+ name = bfd_alloc (abfd, keylen + 1);
+ if (name == NULL)
+ return FALSE;
+
+ memcpy (name, keyname, keylen);
+ }
name[keylen] = 0;
- (*idx)->file_offset = (idx_vbn - 1) * VMS_BLOCK_SIZE + idx_off;
- (*idx)->name = name;
- (*idx)++;
+
+ if (flags & ELFIDX__LISTRFA)
+ {
+ struct vms_lhs lhs;
+
+ /* Read the LHS. */
+ off = (idx_vbn - 1) * VMS_BLOCK_SIZE + idx_off;
+ if (bfd_seek (abfd, off, SEEK_SET) != 0
+ || bfd_bread (&lhs, sizeof (lhs), abfd) != sizeof (lhs))
+ return FALSE;
+
+ /* FIXME: this adds extra entries that were not accounted. */
+ if (!vms_add_indexes_from_list (abfd, cs, name, &lhs.ng_g_rfa))
+ return FALSE;
+ if (!vms_add_indexes_from_list (abfd, cs, name, &lhs.ng_wk_rfa))
+ return FALSE;
+ if (!vms_add_indexes_from_list (abfd, cs, name, &lhs.g_g_rfa))
+ return FALSE;
+ if (!vms_add_indexes_from_list (abfd, cs, name, &lhs.g_wk_rfa))
+ return FALSE;
+ }
+ else
+ {
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-04-30 7:11 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-04-30 7:11 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 26474 bytes --]
The branch, master has been updated
via 6f316690aaae8e0cbc09fe722a50c71292a9b8c0 (commit)
via 2d1337f31d467ebc25bfbf2fd59e46bdd524a43d (commit)
via 5744f22e63868e7707d2dce7f00a9e9366678869 (commit)
via 7354233be0f3586016796f38eea1584bd233bf14 (commit)
via b76f139f9ffc5b1c3d2d869ac4ef852168a5ec8a (commit)
via 4ae9202a91e7f35b84a64d47608010fd5acf1db5 (commit)
via 41c5017cc1af5e54bd7795f9a9178dcb4bd9a97b (commit)
via 5217026f38d2a7072e99c8c18293d1ec88c8a699 (commit)
via 89ccbf6f9c89282574704a0ffa5a86fc2cd128cf (commit)
via 870850ddab624f9d0111a4a0733cf7f5edf9bf91 (commit)
via 5f38666e4d2282a3407a0266a889a5be14ad5c74 (commit)
via 9e3eb77c5a286397c355549af7c6b670250d5d01 (commit)
from f85e2073beea96706b330b571c47949bfcacbb86 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6f316690aaae8e0cbc09fe722a50c71292a9b8c0
Merge: f85e2073beea96706b330b571c47949bfcacbb86 2d1337f31d467ebc25bfbf2fd59e46bdd524a43d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Apr 30 09:11:11 2010 +0200
Merge remote branch 'gdb/master'
commit 2d1337f31d467ebc25bfbf2fd59e46bdd524a43d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Apr 30 00:00:33 2010 +0000
*** empty log message ***
commit 5744f22e63868e7707d2dce7f00a9e9366678869
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Apr 30 00:00:04 2010 +0000
daily update
commit 7354233be0f3586016796f38eea1584bd233bf14
Author: Doug Evans <dje@google.com>
Date: Thu Apr 29 22:51:00 2010 +0000
* ser-base.h (reschedule): Delete prototype.
* ser-base.c (reschedule): Make static.
commit b76f139f9ffc5b1c3d2d869ac4ef852168a5ec8a
Author: mgretton <mgretton>
Date: Thu Apr 29 16:34:25 2010 +0000
*** empty log message ***
commit 4ae9202a91e7f35b84a64d47608010fd5acf1db5
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 29 16:33:15 2010 +0000
PR gdb/11557
gdb/
* regcache.c (registers_changed): Rename to ...
(registers_changed_ptid): ... this, and only delete register cache
entries matching the ptid filter argument.
(registers_changed): Reimplement on top of registers_changed_ptid.
* regcache.h (registers_changed_ptid): Declare.
* target.c (target_resume): Flush register caches.
gdb/testsuite/
* gdb.mi/mi-ns-stale-regcache.exp, gdb.mi/ns-stale-regcache.c: New
files.
commit 41c5017cc1af5e54bd7795f9a9178dcb4bd9a97b
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Apr 29 16:03:32 2010 +0000
Fix typo in ChangeLog name (non-UTF8 character).
Seems to have been inserted accidently.
commit 5217026f38d2a7072e99c8c18293d1ec88c8a699
Author: pmuldoon <pmuldoon>
Date: Thu Apr 29 15:45:55 2010 +0000
2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-parameter.o): New rule.
* python/py-parameter.c: New file.
* python/python-internal.h (gdbpy_initialize_parameter)
(gdbpy_parameter, gdbpy_parameter_value)
(gdbpy_parse_command_name): Declare.
* python/py-cmd.c (parse_command_name): Rename to
gdbpy_parse_command_name.
(gdbpy_parse_command_name): Accept a starting list parameter and
use over cmdlist.
(cmdpy_init): Use gdbpy_parse_command_name.
* python/python.c (parameter_to_python): Rename to
gdbpy_parameter_to_python. Accept enum var_types and value.
(gdbpy_parameter): Use gdbpy_parameter_value.
(_initialize_python): Call gdbpy_initialize_parameters.
2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-param.exp: New File.
2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb.texinfo (Parameters In Python): New Node.
commit 89ccbf6f9c89282574704a0ffa5a86fc2cd128cf
Author: mgretton <mgretton>
Date: Thu Apr 29 14:55:36 2010 +0000
* gdb/MAINTAINERS: Add myself for write after approval privileges.
commit 870850ddab624f9d0111a4a0733cf7f5edf9bf91
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Apr 29 14:45:37 2010 +0000
D language support.
gdb/ChangeLog:
D language support.
* Makefile.in (SFILES): Add d-lang.c d-valprint.c.
(COMMON_OBS): Add d-lang.o d-valprint.o.
(HFILES_NO_SRCDIR): Add d-lang.h.
* NEWS: Mention D language support.
* c-lang.c (c_emit_char, exp_descriptor_c): Make public.
* c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
* d-lang.c: New file.
* d-lang.h: New file.
* d-valprint.c: New file.
* defs.h (enum language): Add language_d.
* dwarf2read.c (set_cu_language): Add DW_LANG_D.
* language.c (binop_result_type, integral_type, character_type)
(string_type, boolean_type, structured_type): Add language_d.
* symfile.c (init_filename_language_table): Add language_d.
* symtab.c: Include d-lang.h.
(symbol_init_language_specific, symbol_find_demangled_name)
(symbol_natural_name, lookup_symbol_in_language)
(symbol_demangled_name, symbol_matches_domain): Add language_d.
gdb/doc/ChangeLog:
* gdb.texinfo: (Summary) Add mention about D language support.
(Filenames): Add D suffixes.
(D): New node.
gdb/testsuite/ChangeLog:
* gdb.base/default.exp: Fix "set language" test.
commit 5f38666e4d2282a3407a0266a889a5be14ad5c74
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Apr 29 00:00:09 2010 +0000
*** empty log message ***
commit 9e3eb77c5a286397c355549af7c6b670250d5d01
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Apr 29 00:00:08 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 74 +++-
gdb/MAINTAINERS | 1 +
gdb/Makefile.in | 14 +-
gdb/NEWS | 8 +-
gdb/arm-linux-tdep.c | 32 ++-
gdb/c-lang.c | 7 +-
gdb/c-lang.h | 5 +
gdb/d-lang.c | 278 +++++++++++
gdb/d-lang.h | 32 ++
gdb/d-valprint.c | 91 ++++
gdb/defs.h | 1 +
gdb/doc/ChangeLog | 12 +
gdb/doc/gdb.texinfo | 164 +++++++-
gdb/dwarf2read.c | 3 +
gdb/language.c | 6 +
gdb/python/py-cmd.c | 14 +-
gdb/python/py-param.c | 617 +++++++++++++++++++++++++
gdb/python/python-internal.h | 9 +
gdb/python/python.c | 24 +-
gdb/regcache.c | 29 +-
gdb/regcache.h | 1 +
gdb/ser-base.c | 2 +-
gdb/ser-base.h | 1 -
gdb/symfile.c | 1 +
gdb/symtab.c | 26 +-
gdb/target.c | 1 +
gdb/testsuite/ChangeLog | 15 +
gdb/testsuite/gdb.base/default.exp | 2 +-
gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp | 88 ++++
gdb/testsuite/gdb.mi/ns-stale-regcache.c | 30 ++
gdb/testsuite/gdb.python/py-param.exp | 140 ++++++
gdb/version.in | 2 +-
33 files changed, 1691 insertions(+), 41 deletions(-)
create mode 100644 gdb/d-lang.c
create mode 100644 gdb/d-lang.h
create mode 100644 gdb/d-valprint.c
create mode 100644 gdb/python/py-param.c
create mode 100644 gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp
create mode 100644 gdb/testsuite/gdb.mi/ns-stale-regcache.c
create mode 100644 gdb/testsuite/gdb.python/py-param.exp
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 6aeda4b..559de31 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100428
+#define BFD_VERSION_DATE 20100430
#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 870aca7..e766ba5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,75 @@
+2010-04-29 Doug Evans <dje@google.com>
+
+ * ser-base.h (reschedule): Delete prototype.
+ * ser-base.c (reschedule): Make static.
+
+2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
+ (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
+ (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
+ EABI.
+ (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
+ use.
+
+2010-04-29 Pedro Alves <pedro@codesourcery.com>
+
+ PR gdb/11557
+
+ * regcache.c (registers_changed): Rename to ...
+ (registers_changed_ptid): ... this, and only delete register cache
+ entries matching the ptid filter argument.
+ (registers_changed): Reimplement on top of registers_changed_ptid.
+ * regcache.h (registers_changed_ptid): Declare.
+ * target.c (target_resume): Flush register caches.
+
+2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
+ Tom Tromey <tromey@redhat.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
+ (SUBDIR_PYTHON_SRCS): Likewise.
+ (py-parameter.o): New rule.
+ * python/py-parameter.c: New file.
+ * python/python-internal.h (gdbpy_initialize_parameter)
+ (gdbpy_parameter, gdbpy_parameter_value)
+ (gdbpy_parse_command_name): Declare.
+ * python/py-cmd.c (parse_command_name): Rename to
+ gdbpy_parse_command_name.
+ (gdbpy_parse_command_name): Accept a starting list parameter and
+ use over cmdlist.
+ (cmdpy_init): Use gdbpy_parse_command_name.
+ * python/python.c (parameter_to_python): Rename to
+ gdbpy_parameter_to_python. Accept enum var_types and value.
+ (gdbpy_parameter): Use gdbpy_parameter_value.
+ (_initialize_python): Call gdbpy_initialize_parameters.
+
+2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * MAINTAINERS: Add myself for write after approval privileges.
+
+2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
+
+ D language support.
+ * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
+ (COMMON_OBS): Add d-lang.o d-valprint.o.
+ (HFILES_NO_SRCDIR): Add d-lang.h.
+ * NEWS: Mention D language support.
+ * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
+ * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
+ * d-lang.c: New file.
+ * d-lang.h: New file.
+ * d-valprint.c: New file.
+ * defs.h (enum language): Add language_d.
+ * dwarf2read.c (set_cu_language): Add DW_LANG_D.
+ * language.c (binop_result_type, integral_type, character_type)
+ (string_type, boolean_type, structured_type): Add language_d.
+ * symfile.c (init_filename_language_table): Add language_d.
+ * symtab.c: Include d-lang.h.
+ (symbol_init_language_specific, symbol_find_demangled_name)
+ (symbol_natural_name, lookup_symbol_in_language)
+ (symbol_demangled_name, symbol_matches_domain): Add language_d.
+
2010-04-27 Joel Brobecker <brobecker@adacore.com>
* solib-svr4.c (solib_svr4_r_map): Expand function description.
@@ -3520,7 +3592,7 @@
addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
2010-02-17 Tristan Gingold <gingold@adacore.com>
- Petr Hluzín <petr.hluzin@gmail.com>
+ Petr Hluzin <petr.hluzin@gmail.com>
* avr-tdep.c (avr_scan_prologue): Convert an if statement to a
gdb_assert. Fix info->size for SIG prologue.
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index dccf65d..dc27d41 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -511,6 +511,7 @@ Tristan Gingold gingold@adacore.com
Raoul Gough RaoulGough@yahoo.co.uk
Anthony Green green@redhat.com
Matthew Green mrg@eterna.com.au
+Matthew Gretton-Dann matthew.gretton-dann@arm.com
Maxim Grigoriev maxim2405@gmail.com
Jerome Guitton guitton@act-europe.fr
Ben Harris bjh21@netbsd.org
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 750fdfd..754671f 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -275,6 +275,7 @@ SUBDIR_PYTHON_OBS = \
py-function.o \
py-lazy-string.o \
py-objfile.o \
+ py-param.o \
py-prettyprint.o \
py-progspace.o \
py-symbol.o \
@@ -292,6 +293,7 @@ SUBDIR_PYTHON_SRCS = \
python/py-function.c \
python/py-lazy-string.c \
python/py-objfile.c \
+ python/py-param.c \
python/py-prettyprint.c \
python/py-progspace.c \
python/py-symbol.c \
@@ -658,6 +660,7 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
charset.c cli-out.c coffread.c coff-pe-read.c \
complaints.c completer.c corefile.c \
cp-abi.c cp-support.c cp-namespace.c cp-valprint.c \
+ d-lang.c d-valprint.c \
cp-name-parser.y \
dbxread.c demangle.c dictionary.c disasm.c doublest.c dummy-frame.c \
dwarf2expr.c dwarf2loc.c dwarf2read.c dwarf2-frame.c \
@@ -725,7 +728,7 @@ cli-out.h gdb_expat.h breakpoint.h infcall.h obsd-tdep.h \
exec.h m32r-tdep.h osabi.h gdbcore.h solib-som.h \
i386bsd-nat.h xml-support.h xml-tdesc.h alphabsd-tdep.h gdb_obstack.h \
ia64-tdep.h ada-lang.h varobj.h frv-tdep.h nto-tdep.h serial.h \
-c-lang.h frame.h event-loop.h block.h cli/cli-setshow.h \
+c-lang.h d-lang.h frame.h event-loop.h block.h cli/cli-setshow.h \
cli/cli-decode.h cli/cli-cmds.h cli/cli-dump.h \
cli/cli-script.h macrotab.h symtab.h version.h gnulib/wchar.in.h \
gnulib/string.in.h gnulib/str-two-way.h gnulib/extra/link-warning.h \
@@ -831,7 +834,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
dbxread.o coffread.o coff-pe-read.o \
dwarf2read.o mipsread.o stabsread.o corefile.o \
dwarf2expr.o dwarf2loc.o dwarf2-frame.o \
- ada-lang.o c-lang.o f-lang.o objc-lang.o \
+ ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o \
ada-tasks.o \
ui-out.o cli-out.o \
varobj.o vec.o wrapper.o \
@@ -841,7 +844,8 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
sentinel-frame.o \
complaints.o typeprint.o \
ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o \
- ada-valprint.o c-valprint.o cp-valprint.o f-valprint.o m2-valprint.o \
+ ada-valprint.o c-valprint.o cp-valprint.o d-valprint.o f-valprint.o \
+ m2-valprint.o \
serial.o mdebugread.o top.o utils.o \
ui-file.o \
user-regs.o \
@@ -2021,6 +2025,10 @@ py-objfile.o: $(srcdir)/python/py-objfile.c
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-objfile.c
$(POSTCOMPILE)
+py-param.o: $(srcdir)/python/py-param.c
+ $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-param.c
+ $(POSTCOMPILE)
+
py-prettyprint.o: $(srcdir)/python/py-prettyprint.c
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-prettyprint.c
$(POSTCOMPILE)
diff --git a/gdb/NEWS b/gdb/NEWS
index 696da2e..28201cd 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -80,7 +80,9 @@ is now deprecated.
* Python scripting
** The GDB Python API now has access to breakpoints, symbols, symbol
- tables, program spaces, and frame's code blocks.
+ tables, program spaces, and frame's code blocks. Additionally, GDB
+ Parameters can now be created from the API, and manipulated via
+ set/show in the CLI.
** New functions gdb.target_charset, gdb.target_wide_charset,
gdb.progspaces, and gdb.current_progspace.
@@ -100,6 +102,10 @@ regular breakpoints.
ARM Symbian arm*-*-symbianelf*
+* D language support.
+ GDB now supports debugging programs written in the D programming
+ language.
+
*** Changes in GDB 7.1
* C++ Improvements
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index af409f6..fa85199 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -82,9 +82,20 @@ static const char arm_linux_thumb2_be_breakpoint[] = { 0xf7, 0xf0, 0xa0, 0x00 };
static const char arm_linux_thumb2_le_breakpoint[] = { 0xf0, 0xf7, 0x00, 0xa0 };
-/* Description of the longjmp buffer. */
+/* Description of the longjmp buffer. The buffer is treated as an array of
+ elements of size ARM_LINUX_JB_ELEMENT_SIZE.
+
+ The location of saved registers in this buffer (in particular the PC
+ to use after longjmp is called) varies depending on the ABI (in
+ particular the FP model) and also (possibly) the C Library.
+
+ For glibc, eglibc, and uclibc the following holds: If the FP model is
+ SoftVFP or VFP (which implies EABI) then the PC is at offset 9 in the
+ buffer. This is also true for the SoftFPA model. However, for the FPA
+ model the PC is at offset 21 in the buffer. */
#define ARM_LINUX_JB_ELEMENT_SIZE INT_REGISTER_SIZE
-#define ARM_LINUX_JB_PC 21
+#define ARM_LINUX_JB_PC_FPA 21
+#define ARM_LINUX_JB_PC_EABI 9
/*
Dynamic Linking on ARM GNU/Linux
@@ -877,7 +888,22 @@ arm_linux_init_abi (struct gdbarch_info info,
if (tdep->fp_model == ARM_FLOAT_AUTO)
tdep->fp_model = ARM_FLOAT_FPA;
- tdep->jb_pc = ARM_LINUX_JB_PC;
+ switch (tdep->fp_model)
+ {
+ case ARM_FLOAT_FPA:
+ tdep->jb_pc = ARM_LINUX_JB_PC_FPA;
+ break;
+ case ARM_FLOAT_SOFT_FPA:
+ case ARM_FLOAT_SOFT_VFP:
+ case ARM_FLOAT_VFP:
+ tdep->jb_pc = ARM_LINUX_JB_PC_EABI;
+ break;
+ default:
+ internal_error
+ (__FILE__, __LINE__,
+ _("arm_linux_init_abi: Floating point model not supported"));
+ break;
+ }
tdep->jb_elt_size = ARM_LINUX_JB_ELEMENT_SIZE;
set_solib_svr4_fetch_link_map_offsets
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index 805c572..aa69f94 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -253,8 +253,9 @@ print_wchar (gdb_wint_t w, const gdb_byte *orig, int orig_len,
string whose delimiter is QUOTER. Note that that format for printing
characters and strings is language specific. */
-static void
-c_emit_char (int c, struct type *type, struct ui_file *stream, int quoter)
+void
+c_emit_char (int c, struct type *type,
+ struct ui_file *stream, int quoter)
{
enum bfd_endian byte_order = gdbarch_byte_order (get_type_arch (type));
struct obstack wchar_buf, output;
@@ -1135,7 +1136,7 @@ c_language_arch_info (struct gdbarch *gdbarch,
lai->bool_type_default = builtin->builtin_int;
}
-static const struct exp_descriptor exp_descriptor_c =
+const struct exp_descriptor exp_descriptor_c =
{
print_subexp_standard,
operator_length_standard,
diff --git a/gdb/c-lang.h b/gdb/c-lang.h
index 423cee0..c2cdd56 100644
--- a/gdb/c-lang.h
+++ b/gdb/c-lang.h
@@ -87,6 +87,11 @@ extern void c_printstr (struct ui_file * stream, struct type *elttype,
extern void c_language_arch_info (struct gdbarch *gdbarch,
struct language_arch_info *lai);
+extern const struct exp_descriptor exp_descriptor_c;
+
+extern void c_emit_char (int c, struct type *type,
+ struct ui_file *stream, int quoter);
+
/* These are in c-typeprint.c: */
extern void c_type_print_base (struct type *, struct ui_file *, int, int);
diff --git a/gdb/d-lang.c b/gdb/d-lang.c
new file mode 100644
index 0000000..6db521b
--- /dev/null
+++ b/gdb/d-lang.c
@@ -0,0 +1,278 @@
+/* D language support routines for GDB, the GNU debugger.
+
+ Copyright (C) 2005, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#include "defs.h"
+#include "symtab.h"
+#include "language.h"
+#include "d-lang.h"
+#include "c-lang.h"
+#include "gdb_string.h"
+#include "parser-defs.h"
+#include "gdb_obstack.h"
+
+#include <ctype.h>
+
+/* Extract identifiers from MANGLED_STR and append it to TEMPBUF.
+ Return 1 on success or 0 on failure. */
+static int
+extract_identifiers (const char *mangled_str, struct obstack *tempbuf)
+{
+ long i = 0;
+
+ while (isdigit (*mangled_str))
+ {
+ i = strtol (mangled_str, NULL, 10);
+ mangled_str++;
+ if (i <= 0 && strlen (mangled_str) < i)
+ return 0;
+ obstack_grow (tempbuf, mangled_str, i);
+ mangled_str += i;
+ obstack_grow_str (tempbuf, ".");
+ }
+ if (*mangled_str == '\0' || i == 0)
+ return 0;
+ obstack_blank (tempbuf, -1);
+ return 1;
+}
+
+/* Extract and demangle type from MANGLED_STR and append it to TEMPBUF.
+ Return 1 on success or 0 on failure. */
+static int
+extract_type_info (const char *mangled_str, struct obstack *tempbuf)
+{
+ if (*mangled_str == '\0')
+ return 0;
+ switch (*mangled_str++)
+ {
+ case 'A': /* dynamic array */
+ case 'G': /* static array */
+ case 'H': /* associative array */
+ if (!extract_type_info (mangled_str, tempbuf))
+ return 0;
+ obstack_grow_str (tempbuf, "[]");
+ return 1;
+ case 'P': /* pointer */
+ if (!extract_type_info (mangled_str, tempbuf))
+ return 0;
+ obstack_grow_str (tempbuf, "*");
+ return 1;
+ case 'R': /* reference */
+ if (!extract_type_info (mangled_str, tempbuf))
+ return 0;
+ obstack_grow_str (tempbuf, "&");
+ return 1;
+ case 'Z': /* return value */
+ return extract_type_info (mangled_str, tempbuf);
+ case 'J': /* out */
+ obstack_grow_str (tempbuf, "out ");
+ return extract_type_info (mangled_str, tempbuf);
+ case 'K': /* inout */
+ obstack_grow_str (tempbuf, "inout ");
+ return extract_type_info (mangled_str, tempbuf);
+ case 'E': /* enum */
+ case 'T': /* typedef */
+ case 'D': /* delegate */
+ case 'C': /* class */
+ case 'S': /* struct */
+ return extract_identifiers (mangled_str, tempbuf);
+
+ /* basic types: */
+ case 'n': obstack_grow_str (tempbuf, "none"); return 1;
+ case 'v': obstack_grow_str (tempbuf, "void"); return 1;
+ case 'g': obstack_grow_str (tempbuf, "byte"); return 1;
+ case 'h': obstack_grow_str (tempbuf, "ubyte"); return 1;
+ case 's': obstack_grow_str (tempbuf, "short"); return 1;
+ case 't': obstack_grow_str (tempbuf, "ushort"); return 1;
+ case 'i': obstack_grow_str (tempbuf, "int"); return 1;
+ case 'k': obstack_grow_str (tempbuf, "uint"); return 1;
+ case 'l': obstack_grow_str (tempbuf, "long"); return 1;
+ case 'm': obstack_grow_str (tempbuf, "ulong"); return 1;
+ case 'f': obstack_grow_str (tempbuf, "float"); return 1;
+ case 'd': obstack_grow_str (tempbuf, "double"); return 1;
+ case 'e': obstack_grow_str (tempbuf, "real"); return 1;
+
+ /* imaginary and complex: */
+ case 'o': obstack_grow_str (tempbuf, "ifloat"); return 1;
+ case 'p': obstack_grow_str (tempbuf, "idouble"); return 1;
+ case 'j': obstack_grow_str (tempbuf, "ireal"); return 1;
+ case 'q': obstack_grow_str (tempbuf, "cfloat"); return 1;
+ case 'r': obstack_grow_str (tempbuf, "cdouble"); return 1;
+ case 'c': obstack_grow_str (tempbuf, "creal"); return 1;
+
+ /* other types: */
+ case 'b': obstack_grow_str (tempbuf, "bit"); return 1;
+ case 'a': obstack_grow_str (tempbuf, "char"); return 1;
+ case 'u': obstack_grow_str (tempbuf, "wchar"); return 1;
+ case 'w': obstack_grow_str (tempbuf, "dchar"); return 1;
+
+ default:
+ obstack_grow_str (tempbuf, "unknown");
+ return 1;
+ }
+}
+
+/* Implements the la_demangle language_defn routine for language D. */
+char *
+d_demangle (const char *symbol, int options)
+{
+ struct obstack tempbuf;
+ char *out_str;
+ unsigned char is_func = 0;
+
+ if (symbol == NULL)
+ return NULL;
+ else if (strcmp (symbol, "_Dmain") == 0)
+ return xstrdup ("D main");
+
+ obstack_init (&tempbuf);
+
+ if (symbol[0] == '_' && symbol[1] == 'D')
+ {
+ symbol += 2;
+ is_func = 1;
+ }
+ else if (strncmp (symbol, "__Class_", 8) == 0)
+ symbol += 8;
+ else if (strncmp (symbol, "__init_", 7) == 0)
+ symbol += 7;
+ else if (strncmp (symbol, "__vtbl_", 7) == 0)
+ symbol += 7;
+ else if (strncmp (symbol, "__modctor_", 10) == 0)
+ symbol += 10;
+ else if (strncmp (symbol, "__moddtor_", 10) == 0)
+ symbol += 10;
+ else if (strncmp (symbol, "__ModuleInfo_", 13) == 0)
+ symbol += 13;
+ else
+ {
+ obstack_free (&tempbuf, NULL);
+ return NULL;
+ }
+
+ if (!extract_identifiers (symbol, &tempbuf))
+ {
+ obstack_free (&tempbuf, NULL);
+ return NULL;
+ }
+
+ obstack_grow_str (&tempbuf, "(");
+ if (is_func == 1 && *symbol == 'F')
+ {
+ symbol++;
+ while (*symbol != '\0' && *symbol != 'Z')
+ {
+ if (is_func == 1)
+ is_func++;
+ else
+ obstack_grow_str (&tempbuf, ", ");
+ if (!extract_type_info (symbol, &tempbuf))
+ {
+ obstack_free (&tempbuf, NULL);
+ return NULL;
+ }
+ }
+ }
+ obstack_grow_str0 (&tempbuf, ")");
+
+ /* Doesn't display the return type, but wouldn't be too hard to do. */
+
+ out_str = xstrdup (obstack_finish (&tempbuf));
+ obstack_free (&tempbuf, NULL);
+ return out_str;
+}
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-04-28 11:44 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-04-28 11:44 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 34495 bytes --]
The branch, master has been updated
via f85e2073beea96706b330b571c47949bfcacbb86 (commit)
via b15c259e5ecec1ed6acc8dfdb4c640ef505bb0a9 (commit)
via 238a6aa7d00a14c390c4953618e325ed8f1a8be6 (commit)
via 02f3dd84f56edd4e09a2f78f562ff07ee8b374bb (commit)
via 59d4f7ab1b43073d5792114374e82acfbb875a2b (commit)
via 4d21c92506187332d5762e44267578e0a5fdcd23 (commit)
via 0c2848b81f8a6db7692d8c1d6f18bc4fa6c48e6e (commit)
via 965626b1f3ffdd6ab16f9738a8f7f116653878ce (commit)
via 2c15637f6ebfb0907975549962722d003518a8d4 (commit)
via 3b26d0def772e7fd9f54a7fb7d26af595a179fd7 (commit)
via d571d21182783dfc9721e570184e13bdbe4bf274 (commit)
via d601e14697d99008a3639039f51620d58c8393c5 (commit)
via 2527afdfc6d83e02b9d40582bdf1b44cffda1569 (commit)
via 612bfe85c338537cc79bb24c18dba677cdda5fd8 (commit)
via e39192112abd6b2fac3a67800133dea1e2bee182 (commit)
via 5a5e750c5587e2bea0b2d93d27e2003c9c10c886 (commit)
via 9354934af65e5ab3d72937068474dd38e6d2fd7c (commit)
via db3cbc5f4ec4eb415fe9c07a3daa9a587ed6af26 (commit)
via 134faa02b46075ccfba68e1aa5e2b4638584b3c2 (commit)
via f6b587fb8a8680d676bc232dfc06e6dc2ff645d7 (commit)
via c90f38fb38fe3b9885f0f4f2c89664d05206e719 (commit)
via 7838b8bc5291f8c2afc173ca9e2bdc90597d5c2f (commit)
via 83ba7011376cd65ee26be623a77f3d8b31215f20 (commit)
via 3e58d62f497ba42a584b87adc25536417cef6aa0 (commit)
via d0a62ea33ff4e63aa3b5a8a2f9cc4f8378ac369c (commit)
via 19500c6a51dd472fd73aa72c462551aa506a7149 (commit)
via e50ee5c89ec4e1dba5e9d0264a99b6bd66327400 (commit)
via 6b54a42f76a1039995c6ba280d02f49a042b1b29 (commit)
via fee317afa0ddffd95d36ae8fdecf9ddeaa07f269 (commit)
via 24580012e3638f1085f6486fe0ad43143a25e7eb (commit)
via e780d207b3804edddafb9bc6c2c07c5b2224a47a (commit)
via f31c5582d0211f2f2272b0acce3feb2b9fe5a899 (commit)
from b1caf90bc3d7962cf69dc58731da5b23794e48e0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f85e2073beea96706b330b571c47949bfcacbb86
Merge: b1caf90bc3d7962cf69dc58731da5b23794e48e0 b15c259e5ecec1ed6acc8dfdb4c640ef505bb0a9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Apr 28 13:44:34 2010 +0200
Merge remote branch 'gdb/master'
commit b15c259e5ecec1ed6acc8dfdb4c640ef505bb0a9
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Wed Apr 28 07:59:47 2010 +0000
2010-04-28 Kai Tietz <kai.tietz@onevision.com>
* config.bfd: Correct accidential reverted patch
about vax*-*-*vms*.
commit 238a6aa7d00a14c390c4953618e325ed8f1a8be6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Apr 28 00:00:33 2010 +0000
*** empty log message ***
commit 02f3dd84f56edd4e09a2f78f562ff07ee8b374bb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Apr 28 00:00:05 2010 +0000
daily update
commit 59d4f7ab1b43073d5792114374e82acfbb875a2b
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 27 21:06:28 2010 +0000
Fix author list for one of the patches.
I was the committer, not the author.
commit 4d21c92506187332d5762e44267578e0a5fdcd23
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 27 21:02:10 2010 +0000
Expand description of solib-svr4.c:solib_svr4_r_map
2010-04-27 Joel Brobecker <brobecker@adacore.com>
* solib-svr4.c (solib_svr4_r_map): Expand function description.
commit 0c2848b81f8a6db7692d8c1d6f18bc4fa6c48e6e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 27 21:01:57 2010 +0000
Associate .dg files to Ada
The .dg files are files containing the user's code, after the GNAT
expander was applied. The expansion replaces some of the complex
features by simpler pseudo-Ada code and the user can ask to see and
debug that code using the -gnatDG option...
For instance, given the following code where Circle is a tagged type
(aka as a class type in C++):
procedure Foo is
My_Shape : Circle := (X => 1, Y => 2, R => 3);
X : Integer;
begin
X := Position_X (My_Shape);
end Foo;
The expansion results in:
procedure foo is
my_shape : pck__circle := (
_parent => (
_tag => pck__circleP,
x => 1,
y => 2),
r => 3);
x : integer;
begin
x := pck__position_x (my_shape);
return;
end foo;
2010-04-27 Joel Brobecker <brobecker@adacore.com>
* symfile.c (init_filename_language_table): Register .dg files
with language_ada.
commit 965626b1f3ffdd6ab16f9738a8f7f116653878ce
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 27 21:01:44 2010 +0000
Document special use of target_type field in Ada structs.
This is a comment that I wrote not too long ago, I believe, as part
of a submission process, and somehow did not get to commit. It explains
how the TYPE_TARGET_TYPE is used by Ada in the case of dynamic records/
unions.
2010-04-24 Joel Brobecker <brobecker@adacore.com>
* gdbtypes.h (struct main_type): Expand comment about target_type
field.
commit 2c15637f6ebfb0907975549962722d003518a8d4
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 27 21:01:30 2010 +0000
Check library name rather than member name when rereading symbols.
On Darwin, we have lots of complaints being emitted when restarting
a program:
(gdb) start
`a-except.o' has disappeared; keeping its symbols.
`unwind-dw2.o' has disappeared; keeping its symbols.
`s-except.o' has disappeared; keeping its symbols.
`s-traceb.o' has disappeared; keeping its symbols.
These object files are part of the GNAT runtime, and were never available.
The warning comes from the fact that we're checking whether the .o files
in the GNAT shared runtime have changed whereas we should be checking
whether the GNAT shared library itself has changed.
This patch implements this. Although it is really only useful on a platform
such as Darwin (debug info stored in .o files), we believe that this is
the right thing to do in general. This change should be a noop for all
the other platforms in any case.
gdb/ChangeLog (from Tristan Gingold & Pedro Alves):
* symfile.c (reread_symbols): Also search for file in libraries.
Update comment.
Tested on x86_64-darwin and x86_64-linux.
commit 3b26d0def772e7fd9f54a7fb7d26af595a179fd7
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 27 21:01:13 2010 +0000
Add support for x86-lynxos cross debugger (as bareboard x86).
This is a fairly simple patch that we have had for a while. LynxOS has
relatively few features, from a GDB perspective, and we've been using
a bareboard x86 debugger as our LynxOS cross-debugger. So here is a patch
that make x86-lynxos an alias of bareboard x86.
On the other end of things, I'm still working on gdbserver support
for LynxOS - I'm just lacking the time to make significant progress.
But this is in the works (in the meantime, we're using gdbserver from
gdb-6.8 which is derived work from LinuxWorks' patch).
I wasn't sure whether this would be interesting or not for the FSF tree,
but since it's simple and unintrusive, I am suggesting it now... Any
objection? I wasn't sure whether it warranted a NEWS entry either, since
it doesn't really add a new port, just an alias. I suggest the NEWS entry
when I'm finally done with the gdbserver port.
gdb/ChangeLog:
* configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
in terms of configuration.
commit d571d21182783dfc9721e570184e13bdbe4bf274
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Apr 27 20:06:56 2010 +0000
gdb/
* objfiles.c: Include solist.h.
(free_all_objfiles): New variable so. Check stale solist objfiles.
* symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
and no_shared_libraries.
commit d601e14697d99008a3639039f51620d58c8393c5
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Tue Apr 27 17:25:59 2010 +0000
2010-04-27 Kai Tietz <kai.tietz@onevision.com>
* pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
to USE_MINGW64_LEADING_UNDERSCORES.
* pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
* config.bfd: Change underscoring default for x64 mingw
to false.
* coffcode.h (coff_write_relocs): Add check that dereferenced
sym_ptr_ptr isn't NULL.
* config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
* configure: Regenerated.
* configure.in: Add option '--enable-leading-mingw64-underscores'
and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
commit 2527afdfc6d83e02b9d40582bdf1b44cffda1569
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 27 16:35:57 2010 +0000
ARI warning fix.
* python/py-auto-load.c (source_section_scripts): Remove trailing
new-line in i18n string.
commit 612bfe85c338537cc79bb24c18dba677cdda5fd8
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Apr 27 14:42:50 2010 +0000
PR binutils/11512
* coffgen.c (coff_find_nearest_line): Incldue the section address
of function name symbols in address comparisons.
commit e39192112abd6b2fac3a67800133dea1e2bee182
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Apr 27 14:28:33 2010 +0000
Updated French and Russian translations.
commit 5a5e750c5587e2bea0b2d93d27e2003c9c10c886
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Apr 27 14:24:35 2010 +0000
* configure.ac (--enable-gold): Support both, both/gold and
both/bfd to add gold to configdirs without removing ld.
* configure: Regenerated.
* Makefile.def: Add install-gold dependency to install-ld.
* Makefile.in: Regenerated.
commit 9354934af65e5ab3d72937068474dd38e6d2fd7c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Apr 27 00:00:33 2010 +0000
*** empty log message ***
commit db3cbc5f4ec4eb415fe9c07a3daa9a587ed6af26
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Apr 27 00:00:05 2010 +0000
daily update
commit 134faa02b46075ccfba68e1aa5e2b4638584b3c2
Author: Doug Evans <dje@google.com>
Date: Mon Apr 26 22:02:32 2010 +0000
* server.c (handle_general_set): Make static.
commit f6b587fb8a8680d676bc232dfc06e6dc2ff645d7
Author: Doug Evans <dje@google.com>
Date: Mon Apr 26 21:45:47 2010 +0000
* serial.c (serial_write): Handle serial_debug_p akin to serial_read.
commit c90f38fb38fe3b9885f0f4f2c89664d05206e719
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Apr 26 20:49:27 2010 +0000
PR breakpoints/11531.
* gdb.base/gdb11531.c: New file.
* gdb.base/gdb11531.exp: New file.
commit 7838b8bc5291f8c2afc173ca9e2bdc90597d5c2f
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Apr 26 18:37:08 2010 +0000
gdb
* cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
command list.
gdb/testsuite
* gdb.base/completion.exp: Add tests for completion and deprecated
commands.
commit 83ba7011376cd65ee26be623a77f3d8b31215f20
Author: DJ Delorie <dj@delorie.com>
Date: Mon Apr 26 18:04:23 2010 +0000
merge from gcc
commit 3e58d62f497ba42a584b87adc25536417cef6aa0
Author: Doug Evans <dje@google.com>
Date: Mon Apr 26 17:38:07 2010 +0000
* remote-utils.c (putpkt_binary_1): Call readchar instead of read.
Print received char after testing for error/eof instead of before.
(input_interrupt): Tweak comment.
commit d0a62ea33ff4e63aa3b5a8a2f9cc4f8378ac369c
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Apr 26 16:23:21 2010 +0000
sim: unify target->subdir handling for default tests
The testsuite subdir has a note about unifying the target->subdir logic,
so do just that. The end goal here is to have `make check` work out of
the box without having to delve into dejagnu internals.
The target-specific logic is split out of the top level configure.ac file
and into a dedicated configure.tgt similar to other subprojects (gdb and
ld and etc...) with the difference that this file has to be included at
the m4 level instead of the shell level. This is necessary only because
autoconf requires AC_CONFIG_SUBDIRS be given a string literal and not a
variable value.
Then the toplevel and the testsuite configure files pull this in, the sim
subdir gets expanded into testsuite/site.exp, and the default sim run code
uses this info to set the sim path to the local compiled run file if it
hasn't already been specified.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 19500c6a51dd472fd73aa72c462551aa506a7149
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Apr 26 15:49:10 2010 +0000
gdb/testsuite/
* gdb.pascal/gdb11492.exp (print integer_array, print /d char_array)
(print /x char_array): Escape curly brackets.
commit e50ee5c89ec4e1dba5e9d0264a99b6bd66327400
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Apr 26 13:58:42 2010 +0000
*Fix ChangeLog entry
commit 6b54a42f76a1039995c6ba280d02f49a042b1b29
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Apr 26 13:53:55 2010 +0000
Removal of config/i386/nm-i386sol2.h native configuration file.
* config/i386/nm-i386sol2.h: Remove file.
* config/i386/i386sol2.mh: Remove NAT_FILE definition.
* config/i386/sol2-64.mh: Idem.
* config/djgpp/fnchange.lst: Idem.
* Makefile.in (HFILES_NO_SRCDIR): Remove reference to that file.
commit fee317afa0ddffd95d36ae8fdecf9ddeaa07f269
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Apr 26 12:01:40 2010 +0000
PR breakpoints/11531.
* config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
macro definition and related comment.
* infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
(resume): Remove code and comment related to this macro.
doc ChangeLog entry:
* gdbint.texinfo (CANNOT_STEP_HW_WATCHPOINTS): Remove explanation
of macro deleted from GDB code.
commit 24580012e3638f1085f6486fe0ad43143a25e7eb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Apr 26 09:30:03 2010 +0000
gdb/
* cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
Fix whitespace.
commit e780d207b3804edddafb9bc6c2c07c5b2224a47a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Apr 26 00:00:33 2010 +0000
*** empty log message ***
commit f31c5582d0211f2f2272b0acce3feb2b9fe5a899
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Apr 26 00:00:04 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 +
Makefile.def | 1 +
Makefile.in | 1 +
bfd/ChangeLog | 29 +
bfd/coffcode.h | 4 +-
bfd/coffgen.c | 10 +-
bfd/config.bfd | 3 +-
bfd/config.in | 3 +
bfd/configure | 18 +-
bfd/configure.in | 8 +
bfd/pe-x86_64.c | 4 +
bfd/pei-x86_64.c | 4 +
bfd/po/fr.po | 4484 ++++++++++++++++++++-------------
bfd/version.h | 2 +-
configure | 66 +-
configure.ac | 66 +-
gdb/ChangeLog | 69 +
gdb/Makefile.in | 2 +-
gdb/cli/cli-decode.c | 80 +-
gdb/config/djgpp/fnchange.lst | 1 -
gdb/config/i386/i386sol2.mh | 1 -
gdb/config/i386/nm-i386sol2.h | 32 -
gdb/config/i386/sol2-64.mh | 1 -
gdb/configure.tgt | 1 -
gdb/cp-namespace.c | 4 +-
gdb/doc/ChangeLog | 5 +
gdb/doc/gdbint.texinfo | 5 -
gdb/gdbserver/ChangeLog | 8 +
gdb/gdbserver/remote-utils.c | 34 +-
gdb/gdbserver/server.c | 3 +-
gdb/gdbtypes.h | 3 +
gdb/infrun.c | 22 -
gdb/objfiles.c | 6 +
gdb/python/py-auto-load.c | 2 +-
gdb/serial.c | 12 +
gdb/solib-svr4.c | 3 +-
gdb/symfile.c | 19 +-
gdb/testsuite/ChangeLog | 16 +
gdb/testsuite/gdb.base/completion.exp | 6 +
gdb/testsuite/gdb.base/gdb11531.c | 40 +
gdb/testsuite/gdb.base/gdb11531.exp | 64 +
gdb/testsuite/gdb.pascal/gdb11492.exp | 6 +-
gdb/version.in | 2 +-
include/ChangeLog | 32 +
include/filenames.h | 2 -
sim/ChangeLog | 6 +
sim/configure | 323 ++-
sim/configure.ac | 116 +-
sim/configure.tgt | 113 +
sim/testsuite/ChangeLog | 7 +
sim/testsuite/Makefile.in | 2 +-
sim/testsuite/configure | 116 +-
sim/testsuite/configure.ac | 8 +-
sim/testsuite/lib/sim-defs.exp | 9 +
sim/testsuite/sim/mips/ChangeLog | 4 +
sim/testsuite/sim/mips/basic.exp | 5 +-
56 files changed, 3699 insertions(+), 2204 deletions(-)
delete mode 100644 gdb/config/i386/nm-i386sol2.h
create mode 100644 gdb/testsuite/gdb.base/gdb11531.c
create mode 100644 gdb/testsuite/gdb.base/gdb11531.exp
create mode 100644 sim/configure.tgt
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 0871057..4deac01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-04-27 Roland McGrath <roland@redhat.com>
+ H.J. Lu <hongjiu.lu@intel.com>
+
+ * configure.ac (--enable-gold): Support both, both/gold and
+ both/bfd to add gold to configdirs without removing ld.
+ * configure: Regenerated.
+
+ * Makefile.def: Add install-gold dependency to install-ld.
+ * Makefile.in: Regenerated.
+
2010-04-14 Tristan Gingold <gingold@adacore.com>
* configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs.
diff --git a/Makefile.def b/Makefile.def
index 7dce699..325d845 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -425,6 +425,7 @@ dependencies = { module=all-ld; on=all-build-bison; };
dependencies = { module=all-ld; on=all-build-byacc; };
dependencies = { module=all-ld; on=all-build-flex; };
dependencies = { module=all-ld; on=all-intl; };
+dependencies = { module=install-ld; on=install-gold; };
dependencies = { module=configure-gold; on=configure-intl; };
dependencies = { module=all-gold; on=all-libiberty; };
dependencies = { module=all-gold; on=all-intl; };
diff --git a/Makefile.in b/Makefile.in
index 93f66b6..d1d8b32 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -58231,6 +58231,7 @@ all-stage3-ld: maybe-all-stage3-intl
all-stage4-ld: maybe-all-stage4-intl
all-stageprofile-ld: maybe-all-stageprofile-intl
all-stagefeedback-ld: maybe-all-stagefeedback-intl
+install-ld: maybe-install-gold
configure-gold: maybe-configure-intl
configure-stage1-gold: maybe-configure-stage1-intl
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 89ecc40..19306b2 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,32 @@
+2010-04-28 Kai Tietz <kai.tietz@onevision.com>
+
+ * config.bfd: Correct accidential reverted patch
+ about vax*-*-*vms*.
+
+2010-04-27 Kai Tietz <kai.tietz@onevision.com>
+
+ * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
+ to USE_MINGW64_LEADING_UNDERSCORES.
+ * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
+ * config.bfd: Change underscoring default for x64 mingw
+ to false.
+ * coffcode.h (coff_write_relocs): Add check that dereferenced
+ sym_ptr_ptr isn't NULL.
+ * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
+ * configure: Regenerated.
+ * configure.in: Add option '--enable-leading-mingw64-underscores'
+ and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
+
+2010-04-27 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/11512
+ * coffgen.c (coff_find_nearest_line): Incldue the section address
+ of function name symbols in address comparisons.
+
+2010-04-27 Nick Clifton <nickc@redhat.com>
+
+ * po/fr.po: Updated French translation.
+
2010-04-23 Alan Modra <amodra@gmail.com>
* elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 159df27..364daaa 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -2648,7 +2648,7 @@ coff_write_relocs (bfd * abfd, int first_undef)
entries know which symbol index they point to. So we
have to look up the output symbol here. */
- if (q->sym_ptr_ptr[0]->the_bfd != abfd)
+ if (q->sym_ptr_ptr[0] != NULL && q->sym_ptr_ptr[0]->the_bfd != abfd)
{
int j;
const char *sname = q->sym_ptr_ptr[0]->name;
@@ -2677,7 +2677,7 @@ coff_write_relocs (bfd * abfd, int first_undef)
n.r_symndx = q->addend;
else
#endif
- if (q->sym_ptr_ptr)
+ if (q->sym_ptr_ptr && q->sym_ptr_ptr[0] != NULL)
{
#ifdef SECTION_RELATIVE_ABSOLUTE_SYMBOL_P
if (SECTION_RELATIVE_ABSOLUTE_SYMBOL_P (q, s))
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 63053a1..fc82d57 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -2152,6 +2152,7 @@ coff_find_nearest_line (bfd *abfd,
maxdiff = (bfd_vma) 0 - (bfd_vma) 1;
while (1)
{
+ bfd_vma file_addr;
combined_entry_type *p2;
for (p2 = p + 1 + p->u.syment.n_numaux;
@@ -2170,11 +2171,16 @@ coff_find_nearest_line (bfd *abfd,
}
}
+ file_addr = (bfd_vma) p2->u.syment.n_value;
+ /* PR 11512: Include the section address of the function name symbol. */
+ if (p2->u.syment.n_scnum > 0)
+ file_addr += coff_section_from_bfd_index (abfd,
+ p2->u.syment.n_scnum)->vma;
/* We use <= MAXDIFF here so that if we get a zero length
file, we actually use the next file entry. */
if (p2 < pend
- && offset + sec_vma >= (bfd_vma) p2->u.syment.n_value
- && offset + sec_vma - (bfd_vma) p2->u.syment.n_value <= maxdiff)
+ && offset + sec_vma >= file_addr
+ && offset + sec_vma - file_addr <= maxdiff)
{
*filename_ptr = (char *) p->u.syment._n._n_n._n_offset;
maxdiff = offset + sec_vma - p2->u.syment.n_value;
diff --git a/bfd/config.bfd b/bfd/config.bfd
index ffae428..d39ef18 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -177,7 +177,6 @@ case "${targ}" in
;;
alpha*-*-*vms*)
targ_defvec=vms_alpha_vec
- targ_selvecs=vms_lib_txt_vec
want64=true
;;
alpha*-*-*)
@@ -640,7 +639,7 @@ case "${targ}" in
targ_defvec=x86_64pe_vec
targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
want64=true
- targ_underscore=yes
+ targ_underscore=no
;;
#endif
i[3-7]86-*-lynxos*)
diff --git a/bfd/config.in b/bfd/config.in
index 065c905..b0b97a2 100644
--- a/bfd/config.in
+++ b/bfd/config.in
@@ -297,6 +297,9 @@
/* Use b modifier when opening binary files? */
#undef USE_BINARY_FOPEN
+/* Define if we should use leading underscore on 64 bit mingw targets */
+#undef USE_MINGW64_LEADING_UNDERSCORES
+
/* Use mmap if it's available? */
#undef USE_MMAP
diff --git a/bfd/configure b/bfd/configure
index 7d16fab..6ace16c 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -785,6 +785,7 @@ enable_64_bit_bfd
enable_targets
with_mmap
enable_secureplt
+enable_leading_mingw64_underscores
with_separate_debug_dir
enable_elf_stt_common
with_pkgversion
@@ -1435,6 +1436,8 @@ Optional Features:
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
--enable-targets alternative target configurations
--enable-secureplt Default to creating read-only plt entries
+ --enable-leading-mingw64-underscores
+ Enable leading underscores on 64 bit mingw targets
--enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
--enable-werror treat compile warnings as errors
--enable-build-warnings enable build-time compiler warnings
@@ -11402,7 +11405,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11405 "configure"
+#line 11408 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11508,7 +11511,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11511 "configure"
+#line 11514 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12049,6 +12052,17 @@ $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
fi
+# Check whether --enable-leading-mingw64-underscores was given.
+if test "${enable_leading_mingw64_underscores+set}" = set; then :
+ enableval=$enable_leading_mingw64_underscores;
+fi
+
+if test x"$enable_leading_mingw64_underscores" = xyes ; then :
+
+$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
+
+fi
+
DEBUGDIR=${libdir}/debug
# Check whether --with-separate-debug-dir was given.
diff --git a/bfd/configure.in b/bfd/configure.in
index eb9d7e7..6f05505 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -75,6 +75,14 @@ if test $use_secureplt = true; then
[Define if we should default to creating read-only plt entries])
fi
+AC_ARG_ENABLE(leading-mingw64-underscores,
+ AS_HELP_STRING([--enable-leading-mingw64-underscores],
+ [Enable leading underscores on 64 bit mingw targets]),
+ [],[])
+AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
+ [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
+ [Define if we should use leading underscore on 64 bit mingw targets])])
+
DEBUGDIR=${libdir}/debug
AC_ARG_WITH(separate-debug-dir,
AS_HELP_STRING([--with-separate-debug-dir=DIR],
diff --git a/bfd/pe-x86_64.c b/bfd/pe-x86_64.c
index bcf18b6..76fc7c7 100644
--- a/bfd/pe-x86_64.c
+++ b/bfd/pe-x86_64.c
@@ -28,7 +28,11 @@
#define COFF_WITH_PE
#define COFF_WITH_pex64
#define PCRELOFFSET TRUE
+#if defined (USE_MINGW64_LEADING_UNDERSCORES)
#define TARGET_UNDERSCORE '_'
+#else
+#define TARGET_UNDERSCORE 0
+#endif
#define COFF_LONG_SECTION_NAMES
#define COFF_SUPPORT_GNU_LINKONCE
#define COFF_LONG_FILENAMES
diff --git a/bfd/pei-x86_64.c b/bfd/pei-x86_64.c
index f5b8abd..fa9a267 100644
--- a/bfd/pei-x86_64.c
+++ b/bfd/pei-x86_64.c
@@ -29,7 +29,11 @@
#define COFF_WITH_PE
#define COFF_WITH_pex64
#define PCRELOFFSET TRUE
+#if defined (USE_MINGW64_LEADING_UNDERSCORES)
#define TARGET_UNDERSCORE '_'
+#else
+#define TARGET_UNDERSCORE 0
+#endif
/* Long section names not allowed in executable images, only object files. */
#define COFF_LONG_SECTION_NAMES 0
#define COFF_SUPPORT_GNU_LINKONCE
diff --git a/bfd/po/fr.po b/bfd/po/fr.po
index c5d65f6..e35fe8f 100644
--- a/bfd/po/fr.po
+++ b/bfd/po/fr.po
@@ -1,521 +1,576 @@
-# Messages français pour GNU concernant bfd.
-# Copyright © 2004 Free Software Foundation, Inc.
+# Messages français pour GNU concernant bfd.
+# Copyright © 2010 Free Software Foundation, Inc.
+# This file is distributed under the same license as the binutils package.
# Michel Robitaille <robitail@IRO.UMontreal.CA>, traducteur depuis/since 1996.
-#
+# Frédéric Marchal <fmarchal@perso.be>, 2010.
msgid ""
msgstr ""
-"Project-Id-Version: GNU bfd 2.14rel030712\n"
-"POT-Creation-Date: 2003-07-11 13:53+0930\n"
-"PO-Revision-Date: 2004-05-10 08:00-0500\n"
-"Last-Translator: Michel Robitaille <robitail@IRO.UMontreal.CA>\n"
+"Project-Id-Version: bfd-2.20.1\n"
+"Report-Msgid-Bugs-To: bug-binutils@gnu.org\n"
+"POT-Creation-Date: 2010-03-03 15:03+0100\n"
+"PO-Revision-Date: 2010-04-23 15:27+0200\n"
+"Last-Translator: Frédéric Marchal <fmarchal@perso.be>\n"
"Language-Team: French <traduc@traduc.org>\n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=ISO-8859-1\n"
-"Content-Transfer-Encoding: 8-bit\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: KBabel 1.11.4\n"
-#: aout-adobe.c:204
-#, c-format
-msgid "%s: Unknown section type in a.out.adobe file: %x\n"
-msgstr "%s: type de section inconnu dans le fichier a.out.adobe: %x\n"
+#: aout-adobe.c:127
+msgid "%B: Unknown section type in a.out.adobe file: %x\n"
+msgstr "%B: Type de section inconnu dans le fichier a.out.adobe: %x\n"
-#: aout-cris.c:207
+#: aout-cris.c:204
#, c-format
msgid "%s: Invalid relocation type exported: %d"
-msgstr "%s: relocalisation invalide du type exporté: %d"
+msgstr "%s: relocalisation invalide du type exporté: %d"
-#: aout-cris.c:251
-#, c-format
-msgid "%s: Invalid relocation type imported: %d"
-msgstr "%s: relocalisation invalide du type importé: %d"
+#: aout-cris.c:247
+msgid "%B: Invalid relocation type imported: %d"
+msgstr "%B: Relocalisation invalide du type importé: %d"
-#: aout-cris.c:262
-#, c-format
-msgid "%s: Bad relocation record imported: %d"
-msgstr "%s: mauvais enregistrement de relocalisation importé: %d"
+#: aout-cris.c:258
+msgid "%B: Bad relocation record imported: %d"
+msgstr "%B: Mauvais enregistrement de relocalisation importé: %d"
-#: aoutx.h:1295 aoutx.h:1716
+#: aoutx.h:1271 aoutx.h:1609
#, c-format
msgid "%s: can not represent section `%s' in a.out object file format"
-msgstr "%s: ne peut représenter la section « %s » dans le fichier format objet a.out"
+msgstr "%s: ne peut représenter la section «%s» dans le fichier format objet a.out"
-#: aoutx.h:1682
+#: aoutx.h:1575
#, c-format
msgid "%s: can not represent section for symbol `%s' in a.out object file format"
-msgstr "%s: ne peut représenter la section pour le symbole « %s » dans le fichier format objet a.out"
+msgstr "%s: ne peut représenter la section pour le symbole «%s» dans le fichier format objet a.out"
-#: aoutx.h:1684
+#: aoutx.h:1577
msgid "*unknown*"
msgstr "*inconnu*"
-#: aoutx.h:3776
+#: aoutx.h:3997 aoutx.h:4323
+msgid "%P: %B: unexpected relocation type\n"
+msgstr "%P: %B: type de relocalisation non supporté\n"
+
+#: aoutx.h:5358
#, c-format
msgid "%s: relocatable link from %s to %s not supported"
-msgstr "%s: lien relocalisable de %s vers %s n'est pas supporté"
+msgstr "%s: lien relocalisable de %s vers %s n'est pas supporté"
-#: archive.c:1751
+#: archive.c:2057
msgid "Warning: writing archive was slow: rewriting timestamp\n"
-msgstr "AVERTISSEMENT: l'écriture de l'archive était lente: réécriture du cachet de date-heure\n"
+msgstr "Attention: l'écriture de l'archive était lente: réécriture du cachet de date-heure\n"
-#: archive.c:2014
+#: archive.c:2344
msgid "Reading archive file mod timestamp"
-msgstr "Lecture du cachet date-heure modifé du fichier d'archive"
+msgstr "Lecture du cachet date-heure modifié du fichier d'archive"
-#: archive.c:2040
+#: archive.c:2368
msgid "Writing updated armap timestamp"
-msgstr "Écriture du cachet date-heure armap mise à jour"
+msgstr "Ãcriture du cachet date-heure armap mise à jour"
-#: bfd.c:280
+#: bfd.c:376
msgid "No error"
msgstr "Pas d'erreur"
-#: bfd.c:281
+#: bfd.c:377
msgid "System call error"
-msgstr "Erreur d'appel système"
+msgstr "Erreur d'appel système"
-#: bfd.c:282
+#: bfd.c:378
msgid "Invalid bfd target"
-msgstr "cible bfd invalide"
+msgstr "Cible bfd invalide"
-#: bfd.c:283
+#: bfd.c:379
msgid "File in wrong format"
msgstr "Fichier dans un mauvais format"
-#: bfd.c:284
+#: bfd.c:380
msgid "Archive object file in wrong format"
msgstr "Fichier objet d'archive dans un mauvais format"
-#: bfd.c:285
+#: bfd.c:381
msgid "Invalid operation"
-msgstr "Opération invalide"
+msgstr "Opération invalide"
-#: bfd.c:286
+#: bfd.c:382
msgid "Memory exhausted"
-msgstr "Mémoire épuisée"
+msgstr "Mémoire épuisée"
-#: bfd.c:287
+#: bfd.c:383
msgid "No symbols"
msgstr "Aucun symbole"
-#: bfd.c:288
+#: bfd.c:384
msgid "Archive has no index; run ranlib to add one"
-msgstr "L'archive n'a pas d'index; exécuter ranlib pour en ajouter un"
+msgstr "L'archive n'a pas d'index; exécuter ranlib pour en ajouter un"
-#: bfd.c:289
+#: bfd.c:385
msgid "No more archived files"
msgstr "Aucun autre fichier d'archive"
-#: bfd.c:290
+#: bfd.c:386
msgid "Malformed archive"
-msgstr "Archive mal formé"
+msgstr "Archive mal formée"
-#: bfd.c:291
+#: bfd.c:387
msgid "File format not recognized"
msgstr "Format de fichier non reconnu"
-#: bfd.c:292
+#: bfd.c:388
msgid "File format is ambiguous"
-msgstr "Format de fichier ambiguë"
+msgstr "Format de fichier ambigu"
-#: bfd.c:293
+#: bfd.c:389
msgid "Section has no contents"
msgstr "Section sans contenu"
-#: bfd.c:294
+#: bfd.c:390
msgid "Nonrepresentable section on output"
-msgstr "Section non-représentable pour la sortie"
+msgstr "Section non-représentable sur la sortie"
-#: bfd.c:295
+#: bfd.c:391
msgid "Symbol needs debug section which does not exist"
-msgstr "Symboles ont besoin de la section de débug qui est inexistente"
+msgstr "Symboles ont besoin de la section de débug qui est inexistente"
-#: bfd.c:296
+#: bfd.c:392
msgid "Bad value"
msgstr "Mauvaise valeur"
-#: bfd.c:297
+#: bfd.c:393
msgid "File truncated"
-msgstr "Fichier tronqué"
+msgstr "Fichier tronqué"
-#: bfd.c:298
+#: bfd.c:394
msgid "File too big"
msgstr "Fichier trop gros"
-#: bfd.c:299
+#: bfd.c:395
+#, c-format
+msgid "Error reading %s: %s"
+msgstr "Erreur lors de la lecture de %s: %s"
+
+#: bfd.c:396
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-04-25 20:22 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-04-25 20:22 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via b1caf90bc3d7962cf69dc58731da5b23794e48e0 (commit)
via e4e1de5ce3bac7857fc3e71fa541a0e288c2f08b (commit)
via efaf6e46b64bd5c512daefba594116887606c3bd (commit)
via 478e77bf4eed560b37673e0110d40fd9170e4316 (commit)
via 7c61cb73c20093a8b99aadd2b3c52cd31f26c16a (commit)
via fe0ad9da4e785acbd42bf63f456e32b5886254cb (commit)
via 26f89d50a5ced7c9539d7b63c56222069a227d86 (commit)
via 865612dd610aa840c0770e281227dcb0c59a2abf (commit)
via d78a3edfc0a132d3717dd8b8e5c49af43ba5a615 (commit)
via 962ef09016ec455e5ef6cc64a679b1b952e69cf8 (commit)
via f8569191b8297ea4ebcc6f4c57fa7a805ed2cdc0 (commit)
via 6bbc19c7d525e49ce12c21ad5a5f85d4d720a573 (commit)
via 2ea3662be0ca74cf18a79cf8792af955a3f866ed (commit)
via 47d11be572aaf42cc67e6d925271d44bdecd104d (commit)
via dce2c723fe34f8cec95e4b62f24458bdf6919ef9 (commit)
via 8a504f76797a1662228fe89cb1a2aff2bf74fe58 (commit)
via 1f0392f10c894a86f0fd3470c8ecc58e287f6d3b (commit)
via a004661c072fb793b0656315c64a5debffd0d8b8 (commit)
via c71ba49b25a4932ee4c558e5764b0ad484db9482 (commit)
via 62f173d91ab526d69da1ed15d4645771b36ba3c5 (commit)
via 8b5ee5302e727c72d5a6c393f99268415f4f74a1 (commit)
via af126ee8ee92c7b4c5202b0b51aa93a0af92146b (commit)
via fffc2febb5c821664224d784a2a1b020fc770bbf (commit)
via b09728c90cffb170d1ce52a74a863ca6111b2147 (commit)
via f1fa309f01bb0675e0191085e3034aec07d51e9f (commit)
via 407cb192dcac2602aebaa7e262419adb580ecca6 (commit)
via f9abf6276285fe34e8b5901a6e4c5458bd8d533e (commit)
via ecd5b3a6117e092115ed892a18032e5e25197081 (commit)
via c9a0b491ca6f6870ec6ab8f8de6b54c355b5d1b6 (commit)
via c9905fc6132dd9e3de05a0b8a4f4e6619c8ed18b (commit)
via 3cc8e6cdbfc94925fbff2e5dceaaa12df6566112 (commit)
via d0a355edc7cd47fed0d23b33c30bd08c1523f139 (commit)
via 89ef71a977367bf0a56d5dd0b95d3772498c7999 (commit)
via 77eac30f449e7c36b0b553ef4ae8a33cd47aa6e9 (commit)
via e35eecf454ab64b65f9694238f87dc79599307bc (commit)
via da8c841ca0eb1d618d84659e6b7b6f4683ba78fd (commit)
via 51ee16fe6c51c80d06c0bf59acb4d49eaf254730 (commit)
via 39d64664a19cc9c4faeeb291e9443b7ac9aeedc7 (commit)
via 6961c1c42a291aa5c17dbc851b50a9483040f1db (commit)
via 8f8167cdaaf041444a4a3dfc1b59e6ad429c4ed1 (commit)
via e93ab80cfb8f4dcd50a257515f7d5ce0cab38677 (commit)
via 16a83ec93981a0c8d49b53e86976ff71aaa7a87c (commit)
via 5aecd954863c6cea3c18919ce348ba0d39a38c92 (commit)
via e9ae978c7b5ee6d7d0b0b9bb7271ea0edb73dd6a (commit)
via cdf9848477a6561a40be7c57c46f2abc49d0ca05 (commit)
via c2b2e301e54bb219b900d8499cd59fa4f4b7f0da (commit)
via 1ef00b9be705584d5817a359e4ccebeb8e461acf (commit)
via 9663d5addd595ff276e3bd8a6d0055f51441fb52 (commit)
via 601b03265c0ab7aadd8446abef13683d294c78c5 (commit)
via 93720bdabf1e7e6d402f9959a131df333c13f396 (commit)
via 151bf6fbf3eecce5ffeb1af216ff581b80fd3200 (commit)
via 492e9eaccb02b1322b102f52059d952cb452354a (commit)
via 2e9157d5ff407b896faf67e01efcd7f943c5032a (commit)
via 369d8b6a68317b868746581b3f03340a18bd49d8 (commit)
via 93e702af0fc5693d8c8f811068f490e7ff9e75bd (commit)
via d54f5671e190a5c0ca8fd1ff070372bf20eb42a8 (commit)
via 1e85eb412378e25d0f65e49ddcfc54b774e7c63f (commit)
via e4baba782ed583a21b8c4498a1a32bef653ac824 (commit)
via c2ca0c40da5e38e72592a07d3db8e3304ca24128 (commit)
via 135d95fa2aeb55f8100bd7f98f086b06b1b85b12 (commit)
via ca91f46b20ba544ccef7d50f8d3a63078e90e8b1 (commit)
via 9ab3392d43a277c68581db1d80b8abc32e560cd6 (commit)
via a67f6c69b74ab0823b5a954e3648f7758b0e0ec7 (commit)
via a119e44e706d94dd0fa555d3dc838abc0ef0d8b0 (commit)
via 7c9af59093f29ff2608d9fbbed4036d2d88152b4 (commit)
via b5778c6067ff8b88f0ecdddafb7e0656038dabc2 (commit)
via 0189a027029f5791fe4067bbde52db33ac4340f1 (commit)
via 0df8296ccbe06c092d21cf9e808d4f634ca1a6c2 (commit)
via 949ed6ecaacec61013e66818f1f1d0c17369b185 (commit)
via 95194f81a233801fcb414f861da13a39c0cc3825 (commit)
via 0a784d2742791209e8042a9c7c35f58f3cdcb36d (commit)
via f91cf5763ac25e9926943c26e64caff6d2c976b0 (commit)
via 36ccd968aa12f631c23256b314822943f1e4ac22 (commit)
via c0fe155d4ef80977ebeab93976d0f1f25516e783 (commit)
via 669907bd6d54ae8e85b1278f0f16f8641ce6802d (commit)
via 78c144e8c3ae7bb36d632f6bfaaaad9c97199ce6 (commit)
via a5100fac1feb40667d8417391a427ae61487b4ee (commit)
via a96a30ba457510a1daf70a2d671b99c55b13a970 (commit)
via be1f57c90bdf86477b9bc69cc982171d6ad5df56 (commit)
via 8ee302683860723cc53c405bf12cebfe2d70fae1 (commit)
via d7fff800bc0d0b41183b0d7171394ba23cfac48e (commit)
via 01bb9f51ab954354722aac3e7d41c04016494457 (commit)
via 0845b5bcaed448f890af5f05c043d3014ccbc20b (commit)
via 07ed1d58ab86b51ff98fc9b4f9f6104ea6a2edea (commit)
via e38d9943877fcd65c83701b901fc9c4ddfa4bf77 (commit)
via 3dcbf5579175d84836dea85fae0d346af3540269 (commit)
via 74a4aafb0e70c5f50588fae4d8ceddcc71639cb8 (commit)
via 7779ca9c5b2e8d7a337a942879a2853efb61a083 (commit)
via 926c78553c0c2a5164b6b23e08ea8b4a220afb2d (commit)
via 369c4d97d5539446d56e92e010e69536b122ed1a (commit)
via 840611126e1efd3cc57bdcb9a38498682121a8dd (commit)
via 18446285228b830f3e0b7dbc86df580dfa1725b9 (commit)
via 0f8aa2a477151133bb58079af6da7212644e1453 (commit)
via 237c2dc7c52137e20f901b7f99d9c7510a529e24 (commit)
via 59c88a4654dc522a78e35349afc22b01ee6b9c58 (commit)
via 69a911070b9cc4409ca96062b8be09dd758d7e19 (commit)
via 07ed560d9cc91d0e341657907900e2cd12815ed9 (commit)
via 2cc27dee809ad8183b317e9705cde12358d52b8d (commit)
via c8eb11c3a5c192caae27d7d3238932703776c127 (commit)
via b5f20afcbdea985a35dbab687dbe3ea7c2adccfd (commit)
via 036094daebe2a94efe7873677edcb9c31843c1ce (commit)
via 2786d01bf75bf58995083baee229f8a9cdf3aba6 (commit)
via abeaf4a297056e0092051a7a9be14d89f1344174 (commit)
via 37f62e955c561cffa75973aaa49cd24eb7246194 (commit)
via 9cf7bd5857f0fe4d75c732b6fcf7178588bc6404 (commit)
via 928300f07f84b4c3b68f4caa961b8e01da9a210d (commit)
via cb561e51f18b20d5e8b1a015b93b751459bb0330 (commit)
via d8ddf47ca6ebf4f501050e28d83a88871cdb572f (commit)
via 8997115c02953f3ea7b851ab4c564264f442c1d7 (commit)
via 1e5ccfab8b5a3019552434a16a4c925b00fa56db (commit)
via 6d680648882f9cf3c88ec6a448d2882d19952fd9 (commit)
via f4fddb98b8116a394a64b22c8ad51365b0d2b2b1 (commit)
via cea95405664b51402b236702187ef911a5dff0c6 (commit)
via a15e31f5095167b585a71233176e3c7ae6d60a2c (commit)
via d53f7b278bcc93ee99f809775889afd38c6d2cfc (commit)
via 1bb6976a02799aef34e892d2401e6cf77c4336ba (commit)
via 37596b94cb368ef8600e45ff203218ca340e0e13 (commit)
via 79db1f76c0b566c4557f492c0d050285fca26304 (commit)
via 5713f086abf837ab8ec3c1d788d0e1e04f698b59 (commit)
via 3785734c373ca825a1a040fe5c5a2e35c2fcfae6 (commit)
via 649c9171090a2d3d4f015535eff2637d0919e9fd (commit)
via 315b4dc5797d8d68cd915c0b262834eadd1dc41e (commit)
via e20375c65f85c024d89f654a4ee86d455fcda984 (commit)
via 52ef2062ce3bd741b845da02e774031f4af6f332 (commit)
via 6f64c2e1fbefbe0d3f0a04384bcbb6fd31aa2574 (commit)
via 06da7f140e0561b82135ae12a8a6394102e72401 (commit)
via b2492cd13f871898c026b45f1424e4e06b526ff6 (commit)
via b9f1271123edb907e4e8cf4a0cf969117d699fb2 (commit)
via 8747b8f0dda734b806bca8812b315977c4fc58f1 (commit)
via 4366e0e6bed6fed39ba5665da4bbbd5f8e86c2f8 (commit)
via 29596e34e7c1f23aa51f289d36802e1ef0f89129 (commit)
via eb6db2b9ca2e0a9ebb25fad233734e1b5e0ea295 (commit)
via e9d705a60bf1225789ae97759e148e5cc799dc6f (commit)
via 66d9e8ff6e25790500e408a591c9a62b7c00b74b (commit)
via 184084de04b19fb72af34fb967d504d027961139 (commit)
via b4078918df2212ecd820a0dcc271cab5f4fe9029 (commit)
via 14ca3db824a85073e5d359d6b5fb7c2f6eb47b39 (commit)
via af9323291f3347482d3ef6db41f2a35144cce9fc (commit)
via c67a70d037a365e133e85976351c33b9ac8818b8 (commit)
via 829a902da291e72ad17e8c44fa8d9ead3db41b1f (commit)
via 5aa7992bf144ce9cdfd4e3c72290cbd66c0cc920 (commit)
via 91d9eeefda9104c815db741b502c366a2e8e92ad (commit)
via 746027ffb0c72c3f5cd93d373ed534ec5c3eac2c (commit)
via baeb5c93610f1d8d11432e872156eb6fcab3d5a7 (commit)
via 325409e50f6be845b0f3d9719d62f9dc78dbe048 (commit)
via e12b767fb287127671d514eef227486777f0a972 (commit)
via e92d216e7f362371836c6bad86dd5d065c62260a (commit)
via e5ea8d026015c2a0c7774788b425914857de1ffb (commit)
via a9a471371a0bfbe3df0c96fb818fb923119bdb5b (commit)
via 20e2cc4290d787cca8f2b0444c2852d5e43ca0ea (commit)
via 0d32580f43a7359eba5251655977aaa1ef990e6d (commit)
via a3960ae0be37da1d6e57a748129c0d9effa77400 (commit)
via f80965c8b03b9ca637edcc810d70011ac5dfc3d9 (commit)
via 79ebeac8f7f059b7407e5027c5bb94c95063cf5a (commit)
via bf763a271e28a4ffd6a7bb20050c7af3b22669cd (commit)
via 60fc8896b1299b023e3900afbe39d36f26231764 (commit)
via ed70aeaec4fa89ae8cba95fcae434c90754e24df (commit)
via 567bc1952033cdcfbad781cd391b530a0fd5e896 (commit)
via 84684895ff9d6710b681dc3c0914c669e648a792 (commit)
via eed093668ca1e5ba56374feaf14ae1c8e99f5673 (commit)
via 9b35db8589d6c93837adb1e0b2ada219330f3f0b (commit)
via 52a13319b890f4624e3e6e8df27f12ff702ec437 (commit)
via 02202ae492b14960c45e9c5934ee7317a9806e18 (commit)
via 31ad63b78fed65237a81c9767a9c66600e9cf62b (commit)
via edada3266c0f23e81e9baf98a0a213ad7f6d6b5e (commit)
via d46fcd242a5f859f64c163d6a32cdfeb4217718c (commit)
via fc61c2c20bd61d403463e6437a294ffcdf198f3f (commit)
via 58fbf93a07e88c6f0103aa2ef3432d2ef4946243 (commit)
via b85579f12a452fb5dd104e9a198667a91e0c06c6 (commit)
via d691350337a747dc827c09a265859df1ac86e79b (commit)
via 7bbdc114c3787e8be817374c9ca3fff4e6944413 (commit)
via f5bf6a8c39808e17bbacf43fa89a04e0bf3d0875 (commit)
via a382f5de08276818170fa82880064af2426a0f46 (commit)
via b819a8a84d172277e832f56c471acc8b0f4234f4 (commit)
via 2aff82e00a7f93afe1884bffa8199691e18dac0b (commit)
via 66e4d3883383c9d42113c7e8c614dff8646deb35 (commit)
via 63222cac28a232f0e4610a6c17ea72ab4d3d6372 (commit)
via a9b58442902b891555f27beb7ea65626def562fa (commit)
via aac14cecc4807e485bd0e7c3d41575d50cf89cd3 (commit)
via 1c5326e5cce6ef8ea11c942374e9214c5e8db53c (commit)
via ed8a7fd9b04e7b81ecc763ca9892a566aba90ada (commit)
via 46989a29cc78aaed3e7c34175ad443c6f21f2584 (commit)
via 055148f7383dbef6dfef69ebf09a5d2aaaadeb89 (commit)
via 2830e8f6791aa574cff47c03ffe8108fbfd0e729 (commit)
via 6295c80119e0b738616d665bb066fad1bca54e76 (commit)
via 79243e9e95af00b8d410bff66ced0fd286d5c80d (commit)
via d56b8df4755faaa982e8d7943c84a092c7d01f9c (commit)
via 819aac763059a73c81114fb4aefacb0891ed8483 (commit)
via cf24e72f4f92deeda903dda540c789cbc83b6ccb (commit)
via c8b2d4f95fb122595bf264c7c573adbfa27b718d (commit)
via 9e9dec16e23f809c5d8ac6246f2c0f1580f5fa10 (commit)
via 27992c79e2bf8361dcc227a2c425b74ca99a000d (commit)
via 17b932068d27d862c0ad42dbd3875b191d323c85 (commit)
via 8f50b8b9357758896d79fca447f8ed23bdcb2391 (commit)
via b617b34276afa69dc2b9e70a188a27c049857ab4 (commit)
via ad999f438dae72b316d2fe2868027af848a634d4 (commit)
from 11d4e9ae12b8f0af69795094b06f94a73d416570 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit b1caf90bc3d7962cf69dc58731da5b23794e48e0
Merge: 11d4e9ae12b8f0af69795094b06f94a73d416570 e4e1de5ce3bac7857fc3e71fa541a0e288c2f08b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Apr 25 22:21:31 2010 +0200
Merge remote branch 'gdb/master'
commit e4e1de5ce3bac7857fc3e71fa541a0e288c2f08b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Apr 25 00:00:36 2010 +0000
*** empty log message ***
commit efaf6e46b64bd5c512daefba594116887606c3bd
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Apr 25 00:00:06 2010 +0000
daily update
commit 478e77bf4eed560b37673e0110d40fd9170e4316
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Apr 24 13:12:49 2010 +0000
* defs.h: Adjust comment.
* filesystem.h, filesystem.c: New files.
* Makefile.in (SFILES): Add filesystem.c.
(COMMON_OBS): Add filesystem.o.
* solib.c (solib_find): Handle DOS-based filesystems. Handle
different target and host path flavours.
* arm-symbian-tdep.c (arm_symbian_init_abi): Set
has_dos_based_file_system on the gdbarch.
* arm-wince-tdep.c (arm_wince_init_abi): Ditto.
* i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
* i386-tdep.c (i386_go32_init_abi): Ditto.
* gdbarch.sh (has_dos_based_file_system): New.
* gdbarch.h, gdbarch.c: Regenerate.
* NEWS: Mention improved support for remote targets with DOS-based
filesystems. Mention new `set/show target-file-system-kind'
commands.
gdb/doc/
* gdb.texinfo (Commands to specify files): Describe what how GDB
looks up DOS-based filesystem paths on the system root. Document
the new `set/show target-file-system-kind' commands.
commit 7c61cb73c20093a8b99aadd2b3c52cd31f26c16a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Apr 24 01:05:21 2010 +0000
include/elf/
* internal.h (ELF_SECTION_SIZE): Protect macro args with parentheses.
Invert logic to clarify test for .tbss.
(ELF_IS_SECTION_IN_SEGMENT): Rename to..
(ELF_SECTION_IN_SEGMENT_1): ..this. Add check_vma param. Protect
macro args with parentheses.
(ELF_SECTION_IN_SEGMENT): Define.
(ELF_IS_SECTION_IN_SEGMENT_FILE): Delete.
(ELF_IS_SECTION_IN_SEGMENT_MEMORY): Delete.
bfd/
* elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
throughout file.
(assign_file_positions_for_load_sections): Modify section in
segment warning to ignore overlay vmas.
* elf32-spu.c (spu_elf_object_p): Replace use of
ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
binutils/
* readelf.c (process_program_headers): Replace use of
ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
commit fe0ad9da4e785acbd42bf63f456e32b5886254cb
Author: DJ Delorie <dj@delorie.com>
Date: Sat Apr 24 01:03:15 2010 +0000
merge from gcc
commit 26f89d50a5ced7c9539d7b63c56222069a227d86
Author: Doug Evans <dje@google.com>
Date: Sat Apr 24 00:58:43 2010 +0000
* server.c (start_inferior): Print inferior argv if --debug.
commit 865612dd610aa840c0770e281227dcb0c59a2abf
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Apr 24 00:00:07 2010 +0000
daily update
commit d78a3edfc0a132d3717dd8b8e5c49af43ba5a615
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Apr 24 00:00:05 2010 +0000
*** empty log message ***
commit 962ef09016ec455e5ef6cc64a679b1b952e69cf8
Author: Stan Shebs <shebs@apple.com>
Date: Fri Apr 23 23:51:03 2010 +0000
2010-04-23 Stan Shebs <stan@codesourcery.com>
* ax.h (struct agent_expr): Merge in agent_reqs fields, add some
comments.
(struct agent_reqs): Remove.
(ax_reg_mask): Declare.
* ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
(free_agent_expr): Free reg_mask.
(ax_print): Add scope and register mask info.
(ax_reqs): Remove agent_reqs argument, use agent expression
fields, and move part of register mask computation to...
(ax_reg_mask): New function.
* ax-gdb.c (gen_trace_static_fields): Call it.
(gen_traced_pop): Ditto.
(is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
(gen_trace_for_var): Pass gdbarch to new_agent_expr.
(gen_trace_for_expr): Ditto, and clear optimized_out flag.
(gen_eval_for_expr): Ditto, and require an rvalue.
(agent_command): Call ax_reqs.
(agent_eval_command): Ditto.
* tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
(validate_action_line): Ditto.
(collect_symbol): Ditto.
(encode_actions_1): Ditto.
commit f8569191b8297ea4ebcc6f4c57fa7a805ed2cdc0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Apr 23 21:44:19 2010 +0000
gdb/
Fix deadlock on looped list of loaded shared objects.
* solib-svr4.c (LM_PREV): New function.
(IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
(svr4_current_sos): Check for correct l_prev. New variables prev_lm
and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
* config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
gdb/testsuite/
Fix deadlock on looped list of loaded shared objects.
* gdb.base/solib-corrupted.exp: New.
commit 6bbc19c7d525e49ce12c21ad5a5f85d4d720a573
Author: Doug Evans <dje@google.com>
Date: Fri Apr 23 18:07:26 2010 +0000
* configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
python.
* configure: Regenerate.
* main.c: #include "python/python.h".
(captured_main): Defer loading auto-loaded scripts until after
local_gdbinit has been sourced.
* python/py-auto-load.c (gdbpy_global_auto_load): New global.
(load_auto_scripts_for_objfile): New function.
(auto_load_new_objfile): Call it.
* python/python.h (gdbpy_global_auto_load): Declare.
(load_auto_scripts_for_objfile): Declare.
commit 2ea3662be0ca74cf18a79cf8792af955a3f866ed
Author: Doug Evans <dje@google.com>
Date: Fri Apr 23 18:03:24 2010 +0000
Add support for auto-loading scripts from .debug_gdb_scripts section.
* NEWS: Add entry for .debug_gdb_scripts.
* Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
(SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
(py-auto-load.o): New rule.
* cli/cli-cmds.c (find_and_open_script): Make externally visible.
* cli/cli-cmds.h (find_and_open_script): Update prototype.
* python/py-auto-load.c: New file.
* python/python-internal.h: #include <stdio.h>.
(set_python_list, show_python_list): Declare.
(gdbpy_initialize_auto_load): Declare.
(source_python_script_for_objfile): Declare.
* python/python.c: Remove #include of observer.h.
(gdbpy_auto_load): Moved to py-auto-load.c.
(GDBPY_AUTO_FILENAME): Ditto.
(gdbpy_new_objfile): Delete.
(source_python_script_for_objfile): New function.
(set_python_list, show_python_list): Make externally visible.
(_initialize_python): Move "auto-load" command to py-auto-load.c
and observer_attach_new_objfile to py-auto-load.c.
doc/
* gdb.texinfo (Python): Move Auto-loading section here ...
(Python API): from here.
(Auto-loading): Add docs for .debug_gdb_scripts auto-loaded scripts.
(Maintenance Commands): Add docs for "maint print section-scripts".
testsuite/
* gdb.python/py-section-script.c: New file.
* gdb.python/py-section-script.exp: New file.
* gdb.python/py-section-script.py: New file.
commit 47d11be572aaf42cc67e6d925271d44bdecd104d
Author: Doug Evans <dje@google.com>
Date: Fri Apr 23 16:20:08 2010 +0000
Add support for auto-loading scripts from .debug_gdb_scripts section.
* NEWS: Add entry for .debug_gdb_scripts.
* Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
(SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
(py-auto-load.o): New rule.
* cli/cli-cmds.c (find_and_open_script): Make externally visible.
* cli/cli-cmds.h (find_and_open_script): Update prototype.
* python/py-auto-load.c: New file.
* python/python-internal.h: #include <stdio.h>.
(set_python_list, show_python_list): Declare.
(gdbpy_initialize_auto_load): Declare.
(source_python_script_for_objfile): Declare.
* python/python.c: Remove #include of observer.h.
(gdbpy_auto_load): Moved to py-auto-load.c.
(GDBPY_AUTO_FILENAME): Ditto.
(gdbpy_new_objfile): Delete.
(source_python_script_for_objfile): New function.
(set_python_list, show_python_list): Make externally visible.
(_initialize_python): Move "auto-load" command to py-auto-load.c
and observer_attach_new_objfile to py-auto-load.c.
doc/
* gdb.texinfo (Python): Move Auto-loading section here ...
(Python API): from here.
(Auto-loading): Add docs for .debug_gdb_scripts auto-loaded scripts.
(Maintenance Commands): Add docs for "maint print section-scripts".
testsuite/
* gdb.python/py-section-script.c: New file.
* gdb.python/py-section-script.exp: New file.
* gdb.python/py-section-script.py: New file.
commit dce2c723fe34f8cec95e4b62f24458bdf6919ef9
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Apr 23 15:39:15 2010 +0000
sim: fix fpu missing initializer warnings
The current fpu code with externals enabled results in the warnings:
common/sim-fpu.c:2437: warning: missing initializer
common/sim-fpu.c:2437: warning: (near initialization for 'sim_fpu_zero.sign')
common/sim-fpu.c:2440: warning: missing initializer
common/sim-fpu.c:2440: warning: (near initialization for 'sim_fpu_qnan.sign')
So tweak the old style initializers to avoid these.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 8a504f76797a1662228fe89cb1a2aff2bf74fe58
Author: Jerome Guitton <guitton@adacore.com>
Date: Fri Apr 23 15:14:21 2010 +0000
* alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
(OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
(lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
New constants.
(alpha_heuristic_analyze_probing_loop): New function.
(alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
and handle cases when a stack probe loop is generated.
* alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
(alpha_mdebug_max_frame_size_exceeded): New function.
(alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
(alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
Return 0 when the maximum debuggable frame size has been exceeded.
commit 1f0392f10c894a86f0fd3470c8ecc58e287f6d3b
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Apr 23 12:36:05 2010 +0000
Fix ARI warning.
* ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
commit a004661c072fb793b0656315c64a5debffd0d8b8
Author: cmoller <cmoller>
Date: Fri Apr 23 12:08:04 2010 +0000
PR 10179
* symtab.c (rbreak_command): Added code to include a filename
specification in the rbreak argument.
* NEWS: Added a brief description of filename-qualified rbreak.
* gdb.base/Makefile.in (EXECUTABLES): Added pr10179.
* gdb.base/pr10179-a.c:
* gdb.base/pr10179-b.c:
* gdb.base/pr10179.exp: New files.
* gdb.texinfo (Setting Breakpoints): Added description of
filename-qualified rbreak.
* refcard.tex (Breakpoints and Watchpoints): Added brief
description of filename-qualified rbreak.
commit c71ba49b25a4932ee4c558e5764b0ad484db9482
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Apr 23 00:00:33 2010 +0000
*** empty log message ***
commit 62f173d91ab526d69da1ed15d4645771b36ba3c5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Apr 23 00:00:07 2010 +0000
daily update
commit 8b5ee5302e727c72d5a6c393f99268415f4f74a1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Apr 22 23:15:41 2010 +0000
gdb/
Fix crashes on dangling display expressions.
* ada-lang.c (ada_operator_check): New function.
(ada_exp_descriptor): Fill-in the field operator_check.
* c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
* jv-lang.c (exp_descriptor_java): Likewise.
* m2-lang.c (exp_descriptor_modula2): Likewise.
* scm-lang.c (exp_descriptor_scm): Likewise.
* parse.c (exp_descriptor_standard): Likewise.
(operator_check_standard): New function.
(exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
* parser-defs.h (struct exp_descriptor): New field operator_check.
(operator_check_standard, exp_uses_objfile): New declarations.
* printcmd.c: Remove the inclusion of solib.h.
(display_uses_solib_p): Remove the function.
(clear_dangling_display_expressions): Call lookup_objfile_from_block
and exp_uses_objfile instead of display_uses_solib_p.
* solist.h (struct so_list) <objfile>: New comment.
* symtab.c (lookup_objfile_from_block): Remove the static qualifier.
* symtab.h (lookup_objfile_from_block): New declaration.
(struct general_symbol_info) <obj_section>: Extend the comment.
gdb/testsuite/
Fix crashes on dangling display expressions.
* gdb.base/solib-display.exp: Call gdb_gnu_strip_debug if LIBSEPDEBUG
is SEP.
(lib_flags): Remove the "debug" keyword.
(libsepdebug): New variable for iterating new loop.
(save_pf_prefix): New variable wrapping the loop.
(sep_lib_flags): New variable derived from LIB_FLAGS. Use it.
* lib/gdb.exp (gdb_gnu_strip_debug): Document the return code.
commit af126ee8ee92c7b4c5202b0b51aa93a0af92146b
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Apr 22 22:29:00 2010 +0000
* gdb.threads/watchthreads.exp: Change to obtain consistent output.
commit fffc2febb5c821664224d784a2a1b020fc770bbf
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Thu Apr 22 22:26:35 2010 +0000
2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
(PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
Define, in case <ptrace.h> doesn't provide it.
(booke_debug_info): New variable.
(max_slots_number): Ditto.
(hw_break_tuple): New struct.
(thread_points): Ditto.
(ppc_threads): New variable.
(PPC_DEBUG_CURRENT_VERSION): New define.
(have_ptrace_new_debug_booke): New function.
(ppc_linux_check_watch_resources): Renamed to ...
(ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
(ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
(booke_cmp_hw_point): New function.
(booke_find_thread_points_by_tid): Ditto.
(booke_insert_point): Ditto.
(booke_remove_point): Ditto.
(ppc_linux_insert_hw_breakpoint): Ditto.
(ppc_linux_remove_hw_breakpoint): Ditto.
(get_trigger_type): Ditto.
(ppc_linux_insert_watchpoint): Handle BookE processors.
(ppc_linux_remove_watchpoint): Ditto.
(ppc_linux_new_thread): Ditto.
(ppc_linux_thread_exit): New function..
(ppc_linux_stopped_data_address): Handle BookE processors.
(ppc_linux_watchpoint_addr_within_range): Ditto.
(_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
to_remove_hw_breakpoint fields of the target operations struct.
Add observe for the thread_exit event.
commit b09728c90cffb170d1ce52a74a863ca6111b2147
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Apr 22 20:42:04 2010 +0000
Reformat.
commit f1fa309f01bb0675e0191085e3034aec07d51e9f
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Apr 22 20:35:27 2010 +0000
Remove regmap from i386-linux-nat.c.
2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
* i386-linux-nat.c (regmap): Removed.
(fetch_register): Replace regmap with
i386_linux_gregset_reg_offset.
(store_register): Likewise.
(supply_gregset): Likewise.
(fill_gregset): Likewise.
* i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
global.
* i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
commit 407cb192dcac2602aebaa7e262419adb580ecca6
Author: cmoller <cmoller>
Date: Thu Apr 22 20:12:06 2010 +0000
* cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
method of popping recursion-detection stack with a method based on
obstack_object_size(). (Similar to the PR9167 patch below, but for
the static array obstack rather than the static member obstack.)
commit f9abf6276285fe34e8b5901a6e4c5458bd8d533e
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Apr 22 20:02:55 2010 +0000
Remove amd64_linux_gregset64_reg_offset.
2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
* amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
(_initialize_amd64_linux_nat): Replace
amd64_linux_gregset64_reg_offset with
amd64_linux_gregset_reg_offset.
* amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
global.
* amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
commit ecd5b3a6117e092115ed892a18032e5e25197081
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Apr 22 16:32:43 2010 +0000
gdb/doc/
* gdb.texinfo (Data): New @menu reference to Pretty Printing.
(Python API): Change the reference to Pretty Printing API.
(Pretty Printing): Move the user part under the Data node. Reformat
the sample output to 72 columns. Create a new reference to Pretty
Printing API. Rename the API part ...
(Pretty Printing API): To a new node name.
(Selecting Pretty-Printers, Progspaces In Python, Objfiles In Python)
(GDB/MI Variable Objects): Change references to Pretty Printing API.
commit c9a0b491ca6f6870ec6ab8f8de6b54c355b5d1b6
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Apr 22 14:36:58 2010 +0000
Updated translation templates.
Updated Bulgarian translation.
Updated Finnish translations.
Updated French translations.
Updated Vietnamese translations.
commit c9905fc6132dd9e3de05a0b8a4f4e6619c8ed18b
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Apr 22 13:37:17 2010 +0000
PR stabs/11479.
* gdb.stabs/gdb11479.exp: New file.
* gdb.stabs/gdb11479.c: New file.
commit 3cc8e6cdbfc94925fbff2e5dceaaa12df6566112
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Apr 22 12:34:24 2010 +0000
* Remove unwanted space in set_length_in_type_chain parameterdeclaration
commit d0a355edc7cd47fed0d23b33c30bd08c1523f139
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Thu Apr 22 12:30:54 2010 +0000
PR stabs/11479.
* stabsread.c (set_length_in_type_chain): New function.
(read_struct_type): Call set_length_in_type_chain function.
(read_enum_type): Idem.
commit 89ef71a977367bf0a56d5dd0b95d3772498c7999
Author: Stan Shebs <shebs@apple.com>
Date: Thu Apr 22 04:14:13 2010 +0000
2010-04-21 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
* tracepoint.c (trace_save): Open in binary mode.
commit 77eac30f449e7c36b0b553ef4ae8a33cd47aa6e9
Author: Stan Shebs <shebs@apple.com>
Date: Thu Apr 22 04:09:25 2010 +0000
2010-04-21 Stan Shebs <stan@codesourcery.com>
* gdb.texinfo (Tracepoint Actions): Mention synonymy of actions
and commands.
(Listing Tracepoints): Update to reflect current behavior.
commit e35eecf454ab64b65f9694238f87dc79599307bc
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Apr 22 02:18:32 2010 +0000
sim: profile: implement --profile-file backend
Need to update the sim_profile_print_bar() call after the common/ changes.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit da8c841ca0eb1d618d84659e6b7b6f4683ba78fd
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Apr 22 01:50:59 2010 +0000
bfd/
* elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
change. Tidy. Don't error on sections not allocated in segment.
ld/testsuite/
* ld-elf/extract-symbol-1sec.d: Update lma.
* ld-i386/alloc.d: Expect a warning, not an error.
commit 51ee16fe6c51c80d06c0bf59acb4d49eaf254730
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Apr 22 00:40:44 2010 +0000
sim: profile: implement --profile-file backend
Need to update the sim_profile_print_bar() call after the common/ changes.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 39d64664a19cc9c4faeeb291e9443b7ac9aeedc7
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Apr 22 00:40:14 2010 +0000
sim: profile: implement --profile-file backend
The common/ code uses sim_cpu rather than SIM_CPU to avoid inter-header
dependency issues, so follow convention to fix building some targets.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 6961c1c42a291aa5c17dbc851b50a9483040f1db
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Apr 22 00:26:07 2010 +0000
sim: profile: implement --profile-file backend
The profile code already has options and handling for accepting a file to
write the profile output like the trace code, but it doesn't actually use
it. At the moment, it simply opens the file at the start and closes it at
the end. So add two new local functions the way the trace code is doing
it and have them figure out whether to write the output to stdout or the
specified file. Then convert all existing output in the profile code to
use these helpers.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 8f8167cdaaf041444a4a3dfc1b59e6ad429c4ed1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Apr 22 00:00:35 2010 +0000
*** empty log message ***
commit e93ab80cfb8f4dcd50a257515f7d5ce0cab38677
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Apr 22 00:00:06 2010 +0000
daily update
commit 16a83ec93981a0c8d49b53e86976ff71aaa7a87c
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Apr 22 00:26:07 2010 +0000
sim: profile: implement --profile-file backend
The profile code already has options and handling for accepting a file to
write the profile output like the trace code, but it doesn't actually use
it. At the moment, it simply opens the file at the start and closes it at
the end. So add two new local functions the way the trace code is doing
it and have them figure out whether to write the output to stdout or the
specified file. Then convert all existing output in the profile code to
use these helpers.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 5aecd954863c6cea3c18919ce348ba0d39a38c92
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Apr 22 00:00:35 2010 +0000
*** empty log message ***
commit e9ae978c7b5ee6d7d0b0b9bb7271ea0edb73dd6a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Apr 22 00:00:06 2010 +0000
daily update
commit cdf9848477a6561a40be7c57c46f2abc49d0ca05
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Wed Apr 21 23:21:03 2010 +0000
gdb ChangeLog
* gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
fields.
* gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
builtin_char32 fields.
* printcmd.c (decode_format): Set char size to '\0'
for strings unless explicit size is given.
(print_formatted): Correct calculation of NEXT_ADDRESS
for 16 or 32 bit strings.
(do_examine): Do not force byte size for strings.
Use builtin_char16 and builtin_char32 types to display
16 or 32 bit-wide strings.
(x_command): Set LAST_SIZE to 'b' for string type.
gdb/doc ChangeLog
* gdb.texinfo (Examining memory): Update for
change in string display with explicit size.
gdb/testsuite ChangeLog
* gdb.base/charset.c (Strin16, String32): New variables.
* gdb.base/charset.exp (gdb_test): Test correct display
of 16 or 32 bit strings.
commit c2b2e301e54bb219b900d8499cd59fa4f4b7f0da
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 21 20:23:03 2010 +0000
Reformat.
commit 1ef00b9be705584d5817a359e4ccebeb8e461acf
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 21 20:22:14 2010 +0000
Properly read i386 coredump.
2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
PR corefiles/11523
* amd64-linux-tdep.c (amd64_linux_core_read_description): Check
XCR0 first.
* i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
there is no .reg-xstate section.
(i386_linux_core_read_description): Check XCR0 first.
commit 9663d5addd595ff276e3bd8a6d0055f51441fb52
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Apr 21 20:13:41 2010 +0000
gdb: workaround sparc memcpy fortify error
Building on an x86_64-linux system with --enable-targets=all fails on the
sparc code with a fortify error:
cc1: warnings being treated as errors
In file included from /usr/include/string.h:640,
from gnulib/string.h:23,
from ../../gdb/gdb_string.h:25,
from ../../gdb/vec.h:25,
from ../../gdb/memattr.h:24,
from ../../gdb/target.h:60,
from ../../gdb/exec.h:23,
from ../../gdb/gdbcore.h:31,
from ../../gdb/sparc-tdep.c:29:
In function 'memcpy',
inlined from 'sparc32_store_return_value' at ../../gdb/sparc-tdep.c:1112,
inlined from 'sparc32_return_value' at ../../gdb/sparc-tdep.c:1170:
/usr/include/bits/string3.h:52: error: call to __builtin___memcpy_chk will
always overflow destination buffer
make: *** [sparc-tdep.o] Error 1
This is due to the gcc optimizer bug PR37060, so tweak the gdb_assert ()
to avoid the issue.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 601b03265c0ab7aadd8446abef13683d294c78c5
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 21 20:23:03 2010 +0000
Reformat.
commit 93720bdabf1e7e6d402f9959a131df333c13f396
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 21 20:22:14 2010 +0000
Properly read i386 coredump.
2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
PR corefiles/11523
* amd64-linux-tdep.c (amd64_linux_core_read_description): Check
XCR0 first.
* i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
there is no .reg-xstate section.
(i386_linux_core_read_description): Check XCR0 first.
commit 151bf6fbf3eecce5ffeb1af216ff581b80fd3200
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Apr 21 20:13:41 2010 +0000
gdb: workaround sparc memcpy fortify error
Building on an x86_64-linux system with --enable-targets=all fails on the
sparc code with a fortify error:
cc1: warnings being treated as errors
In file included from /usr/include/string.h:640,
from gnulib/string.h:23,
from ../../gdb/gdb_string.h:25,
from ../../gdb/vec.h:25,
from ../../gdb/memattr.h:24,
from ../../gdb/target.h:60,
from ../../gdb/exec.h:23,
from ../../gdb/gdbcore.h:31,
from ../../gdb/sparc-tdep.c:29:
In function 'memcpy',
inlined from 'sparc32_store_return_value' at ../../gdb/sparc-tdep.c:1112,
inlined from 'sparc32_return_value' at ../../gdb/sparc-tdep.c:1170:
/usr/include/bits/string3.h:52: error: call to __builtin___memcpy_chk will
always overflow destination buffer
make: *** [sparc-tdep.o] Error 1
This is due to the gcc optimizer bug PR37060, so tweak the gdb_assert ()
to avoid the issue.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 492e9eaccb02b1322b102f52059d952cb452354a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 21 20:23:03 2010 +0000
Reformat.
commit 2e9157d5ff407b896faf67e01efcd7f943c5032a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 21 20:22:14 2010 +0000
Properly read i386 coredump.
2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
PR corefiles/11523
* amd64-linux-tdep.c (amd64_linux_core_read_description): Check
XCR0 first.
* i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
there is no .reg-xstate section.
(i386_linux_core_read_description): Check XCR0 first.
commit 369d8b6a68317b868746581b3f03340a18bd49d8
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Apr 21 20:13:41 2010 +0000
gdb: workaround sparc memcpy fortify error
Building on an x86_64-linux system with --enable-targets=all fails on the
sparc code with a fortify error:
cc1: warnings being treated as errors
In file included from /usr/include/string.h:640,
from gnulib/string.h:23,
from ../../gdb/gdb_string.h:25,
from ../../gdb/vec.h:25,
from ../../gdb/memattr.h:24,
from ../../gdb/target.h:60,
from ../../gdb/exec.h:23,
from ../../gdb/gdbcore.h:31,
from ../../gdb/sparc-tdep.c:29:
In function 'memcpy',
inlined from 'sparc32_store_return_value' at ../../gdb/sparc-tdep.c:1112,
inlined from 'sparc32_return_value' at ../../gdb/sparc-tdep.c:1170:
/usr/include/bits/string3.h:52: error: call to __builtin___memcpy_chk will
always overflow destination buffer
make: *** [sparc-tdep.o] Error 1
This is due to the gcc optimizer bug PR37060, so tweak the gdb_assert ()
to avoid the issue.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 93e702af0fc5693d8c8f811068f490e7ff9e75bd
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Wed Apr 21 18:56:45 2010 +0000
gas/testsuite:
* gas/tic6x/insns-c674x.s, gas/tic6x/insns-c674x.d: Also test
"b .S2 b3".
include/opcode:
* tic6x-insn-formats.h (s_branch): Correct typo in bitmask.
commit d54f5671e190a5c0ca8fd1ff070372bf20eb42a8
Author: cmoller <cmoller>
Date: Wed Apr 21 17:33:51 2010 +0000
PR 9167
* cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
method of popping recursion-detection stack with a method based on
obstack_object_size().
* gdb.cp/Makefile.in (EXECUTABLES): Added pr9167.
* gdb.cp/pr9167.cc: New file.
* gdb.cp/pr9167.exp: New file.
commit 1e85eb412378e25d0f65e49ddcfc54b774e7c63f
Author: Andrew Haley <aph@redhat.com>
Date: Wed Apr 21 16:32:25 2010 +0000
2010-04-15 Andrew Haley <aph@redhat.com>
* emultempl/armelf.em (merge_exidx_entries): New variable.
(OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
("no-merge-exidx-entries"): New option.
* ld.texinfo (merge-exidx-entries): Document this option.
2010-04-15 Andrew Haley <aph@redhat.com>
* bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
merge_exidx_entries.
* bfd-in2.h: Likewise.
* elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
control merging of exidx entries.
2010-04-15 Andrew Haley <aph@redhat.com>
* options.h (merge_exidx_entries): New option.
* arm.cc (class Arm_exidx_fixup): Add new arg, merge_exidx_entries.
(class Arm_exidx_fixup::merge_exidx_entries_): New member.
(Output_section::fix_exidx_coverage): Add new arg, merge_exidx_entries.
(Target_arm::merge_exidx_entries): New function.
(process_exidx_entry): Don't merge if merge_exidx_entries_ is false.
(Arm_output_section::fix_exidx_coverage): Pass merge_exidx_entries
to Arm_exidx_fixup constructor.
Add new arg, merge_exidx_entries.
(Target_arm::fix_exidx_coverage): pass merge_exidx_entries to
Arm_output_section::fix_exidx_coverage.
commit e4baba782ed583a21b8c4498a1a32bef653ac824
Author: Aleksandar Ristovski <aristovski@qnx.com>
Date: Wed Apr 21 13:42:56 2010 +0000
* Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
* nto-x86-low.c: Include server.h
commit c2ca0c40da5e38e72592a07d3db8e3304ca24128
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Wed Apr 21 09:54:58 2010 +0000
gdb ChangeLog
PR pascal/11492.
* p-valprint.c (pascal_val_print): Fix default printing of integer
arrays.
gdb/testsuite ChangeLog
PR pascal/11492.
* gdb.pascal/gdb11492.pas: New file.
* gdb.pascal/gdb11492.exp: New file.
commit 135d95fa2aeb55f8100bd7f98f086b06b1b85b12
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Wed Apr 21 08:44:47 2010 +0000
Fix compilation warning on gcc-4.1.2.
* rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
local variable`pc' to zero.
commit ca91f46b20ba544ccef7d50f8d3a63078e90e8b1
Author: Doug Evans <dje@google.com>
Date: Wed Apr 21 03:27:35 2010 +0000
* gdb.base/source-test.gdb: New file.
Remove duplicate entry.
commit 9ab3392d43a277c68581db1d80b8abc32e560cd6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Apr 21 00:00:34 2010 +0000
*** empty log message ***
commit a67f6c69b74ab0823b5a954e3648f7758b0e0ec7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Apr 21 00:00:04 2010 +0000
daily update
commit a119e44e706d94dd0fa555d3dc838abc0ef0d8b0
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 23:14:12 2010 +0000
Implement thread support with core files on alpha-tru64
Thread support currently does not work with core files. Note that,
in order to thread support to work on tru64, one need to allow GDB
to write in the core file (this is because the thread debug library
needs to write).
An obvious visible symptom of the problem is that "info threads" does
not list the various threads:
(gdb) info threads
* 1 <main task> 0x000003ff805c0918 in __nxm_thread_kill ()
from /usr/shlib/libpthread.so
One other noticeable consequence is that GDB generates some warnings
when using "info tasks":
(gdb) info tasks
warning: Could not find thread id from THREAD = 0x3ffc01b6000
warning: Could not find thread id from THREAD = 0x20000e2b4c0
ID TID P-ID Pri State Name
* 1 140051000 0 30 Runnable main_task
* 2 14005c000 1 30 Accept or Select Term my_t
(notice also how both tasks are marked as being the active task,
which cannot be true).
The problem is that the dec-thread module has not updated its thread list
after the core file got loaded. In fact, the list only gets resync'ed
at the end of each target-wait. The solution was to implement the
find_new_threads target_ops method.
gdb/ChangeLog:
Implement thread support with core files on alpha-tru64.
* dec-thread.c (dec_thread_find_new_threads): New function,
extracted from resync_thread_list.
(resync_thread_list): Add OPS parameter. Replace extracted-out
code by call to dec_thread_find_new_threads.
(dec_thread_wait): Update call to resync_thread_list.
(init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
commit 7c9af59093f29ff2608d9fbbed4036d2d88152b4
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 22:51:24 2010 +0000
Add missing directory name in last ChangeLog entry.
commit b5778c6067ff8b88f0ecdddafb7e0656038dabc2
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 22:40:36 2010 +0000
[AVR] inferior call of subprogram with pointer as argument
On AVR, the gdb view of an address is different from the machine view of the
same address. We need to use special machinery implemented by value_pointer
to take the pointer of a value.
For instance, considering the following function...
procedure Trace (Unit : T; Message : String);
... where T is an access Integer (a pointer to an integer), call to this
function currently triggers the following warnings:
(gdb) call debug.trace (me, "You")
warning: Value does not fit in 16 bits.
warning: Value does not fit in 16 bits.
Tracing message: You
It could have been worse if Trace actually tried to dereference the Unit
argument...
gdb/ChangeLog (from Tristan Gingold):
* ada-lang.c (value_pointer): New function.
(make_array_descriptor): Call value_pointer to convert addresses to
pointers.
Tested on avr and x86_64-linux.
commit 0189a027029f5791fe4067bbde52db33ac4340f1
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 22:38:53 2010 +0000
[AIX] Memory error while checking if pointer is descriptor.
A long time ago (Oct 2009), I noticed a problem on AIX, where something
failed with an error while the debugger was checking whether an address
was a descriptor or not. Unfortunately, like an idiot, I forgot to write
notes about the scenario where the problem occured - I am usually pretty
meticulous about that because my memory of these things is really bad.
I hope you'll forgive me for not providing a solid testcase - if it's
any consolation, I've searched for a long time before giving up :-(.
Based on the testsuite reports that I have, I think that this happened
while inserting a breakpoint, as follow:
(gdb) break x
Cannot access memory at address 0x200093b4
What happened is that rs6000_convert_from_func_ptr_addr tried to read
the memory at the given address, and fail because of an exception.
It seems pretty clear that, if the address was in fact a descriptor,
GDB would have been able to read the target memory region.
So this patch protects the memory-read against exceptions, and treats
such exceptions as an indication that our address is not a descriptor.
gdb/ChangeLog:
* rs6000-aix-tdep.c: #include exceptions.h.
(rs6000_convert_from_func_ptr_addr): If an exception is thrown
while reading the memory at ADDR, then ADDR cannot be a function
descriptor.
commit 0df8296ccbe06c092d21cf9e808d4f634ca1a6c2
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 22:38:01 2010 +0000
"unsupported language" error in info types when using Ada.
This implements a rudimentary version of the la_print_typedef method
for Ada. Ada usually does not use typedefs, but there is one exception:
pointers to unconstrained arrays. Without this patch, we sometimes
get an error in the "info types" output:
(gdb) info types new_integer_type
All types matching regular expression "new_integer_type":
File foo.adb:
Language not supported.
For now, we treat the typedef as if it did not exist - using the
underlying type instead. This is the right thing to do for most cases,
the only exception being access to array types. Since we already have
a general issue in handling these pointers (we confuse them with fat
pointers), we will enhance ada_print_typedef to handle these pointers
at the same time we address the general issue.
gdb/ChangeLog:
* ada-typeprint.c (ada_print_typedef): New function.
* ada-lang.h (ada_print_typedef): Add declaration.
* ada-lang.c (ada_language_defn): set la_print_typdef field
to ada_print_typedef.
gdb/testsuite/ChangeLog:
* info_types.c, info_types.exp: New files.
Tested on x86_64-linux.
commit 949ed6ecaacec61013e66818f1f1d0c17369b185
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 22:36:35 2010 +0000
Unused function in procfs.c on alpha-tru64.
The procfs_address_to_host_pointer function was not used outside of
alpha-tru64, and thus was triggering a compiler warning. Adjusted
accordingly.
gdb/ChangeLog:
* procfs.c (procfs_address_to_host_pointer): Only define when used.
commit 95194f81a233801fcb414f861da13a39c0cc3825
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 22:35:57 2010 +0000
procfs.c: iterate_over_mappings callback has wrong profile.
The function proc_find_memory_regions calls iterate_over_mappings as
follow:
> return iterate_over_mappings (pi, func, data,
> find_memory_regions_callback);
The problem is that both func and find_memory_regions_callback
do not match the profile expected by iterate_over_mappings:
> iterate_over_mappings (procinfo *pi, int (*child_func) (), void *data,
> int (*func) (struct prmap *map,
> int (*child_func) (),
> void *data))
We cannot change proc_find_memory_regions such that FUNC is a pointer
to a function that takes no argument (in place of the 6 that it has).
This is because proc_find_memory_regions is used as a target_ops method.
However, it turns out that changing iterate_over_mappings to conform
to the profile imposed by the target_ops vector is possible without
much effort.
gdb/ChangeLog:
* procfs.c (iterate_over_mappings_cb_ftype): New typedef.
(iterate_over_mappings): Adjust function profile. Add declaration.
(insert_dbx_link_bpt_in_region, info_mappings_callback):
Adjust accordingly.
commit 0a784d2742791209e8042a9c7c35f58f3cdcb36d
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 22:35:03 2010 +0000
procfs.c: Move solib_mappings_callback up to avoid compiler warning.
There are currently 2 issues with the placement of this routine:
- It's defined after it is being used (causing an implicit declaration);
- It looks like it's being defined all the time, whereas it is used
only on mips-irix (AFAICT) - shouldn't have this triggered a warning
on sparc-solaris, for instance???
In any case, this patch moves this function up, inside the right region,
just before the function where it is actually used.
gdb/ChangeLog:
* procfs.c (solib_mappings_callback): Move function up to avoid
a compiler warning.
commit f91cf5763ac25e9926943c26e64caff6d2c976b0
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 22:34:09 2010 +0000
procfs.c: Move find_signalled_thread and find_stop_signal.
These two functions are only used from procfs_make_note_section, which
itself is only defined if:
#if defined (UNIXWARE) || defined (PIOCOPENLWP) || defined (PCAGENT)
So these two functions are unused on mips-irix, and they get flagged
by -Wunused-function. This patch simply moves these functions closer
to the function that uses them, which also has the effect of putting
them inside the same #if block as procfs_make_note_section. Thus
they are defined only when used.
gdb/ChangeLog:
* procfs.c (find_signalled_thread, find_stop_signal): Move
these functions down to define them only when used.
commit 36ccd968aa12f631c23256b314822943f1e4ac22
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Apr 20 22:26:56 2010 +0000
Wrong value printed by info locals for dynamic object.
The problem is printing the wrong value for dynamic local variables
when using the "info locals" command. Consider the following code:
procedure Print (I1 : Positive; I2 : Positive) is
type My_String is array (I1 .. I2) of Character;
I : My_String := (others => 'A');
S : String (1 .. I2 + 3) := (others => ' ');
begin
S (I1 .. I2) := String (I); -- BREAK
Put_Line (S);
end Print;
After the debugger stopped at BREAK, we try printing all local variables.
Here is what we get:
(gdb) info locals
i = "["00"]["00"]"
s = "["00"]["00"]["00"]["00"]["00"]["00"]["00"]["00"]"
Curiously, printing their value using the "print" command works:
(gdb) print i
$1 = "AA"
(gdb) print s
$2 = " "
We traced the problem to trying to get the contents of a variable
(call to value_contents) before "fix'ing" it. For those not familiar
with the Ada language support, "fixing" a value consists of swapping
the value's dynamic type with a static version that is appropriate
for our actual value. As a result, the dynamic type was used to
determine the value size, which is zero, and thus the value contents
was empty.
gdb/ChangeLog:
* valprint.c (common_val_print): Fix the value before extracting
its contents.
* ada-lang.c (ada_to_fixed_value): Make this function extern.
* ada-lang.h (ada_to_fixed_value): New function declaration.
* ada-valprint.c (ada_value_print): Use ada_to_fixed_value
to avoid code duplication and fix a bug in the handling of
fixed types contents.
gdb/testsuite/ChangeLog:
* gdb.ada/dyn_loc: New testcase.
commit c0fe155d4ef80977ebeab93976d0f1f25516e783
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Tue Apr 20 22:02:56 2010 +0000
bfd:
* elf32-tic6x.h: New.
* elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
* elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
(elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
elf32_tic6x_relocate_section): Handle REL relocations.
(elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
gas:
* config/tc-tic6x.c (OPTION_MGENERATE_REL): New.
(md_longopts): Add -mgenerate-rel.
(tic6x_generate_rela): New.
(md_parse_option): Handle -mgenerate-rel.
(md_show_usage): Add comment that -mgenerate-rel is undocumented.
(tic6x_init_after_args): New.
(md_apply_fix): Correct shift calculations for SB-relative
relocations.
(md_pcrel_from): Change to tic6x_pcrel_from_section. Do not
adjust addresses for relocations referencing symbols in other
sections.
(tc_gen_reloc): Adjust addend calculations for REL relocations.
* config/tc-tic6x.h (MD_PCREL_FROM_SECTION,
tic6x_pcrel_from_section, tc_init_after_args,
tic6x_init_after_args): New.
ld/testsuite:
* ld-tic6x/data-reloc-global-rel.d,
ld-tic6x/data-reloc-global-rel.s,
ld-tic6x/data-reloc-local-r-rel.d,
ld-tic6x/data-reloc-local-rel.d, ld-tic6x/mvk-reloc-global-rel.d,
ld-tic6x/mvk-reloc-global-rel.s, ld-tic6x/mvk-reloc-local-1-rel.s,
ld-tic6x/mvk-reloc-local-2-rel.s,
ld-tic6x/mvk-reloc-local-r-rel.d, ld-tic6x/mvk-reloc-local-rel.d,
ld-tic6x/pcrel-reloc-global-rel.d,
ld-tic6x/pcrel-reloc-local-r-rel.d,
ld-tic6x/pcrel-reloc-local-rel.d, ld-tic6x/sbr-reloc-global-rel.d,
ld-tic6x/sbr-reloc-global-rel.s, ld-tic6x/sbr-reloc-local-1-rel.s,
ld-tic6x/sbr-reloc-local-2-rel.s,
ld-tic6x/sbr-reloc-local-r-rel.d, ld-tic6x/sbr-reloc-local-rel.d:
New.
commit 669907bd6d54ae8e85b1278f0f16f8641ce6802d
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Apr 20 21:19:07 2010 +0000
* dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
(read_partial_die): Likewise.
(dwarf_attr_name): Likewise.
commit 78c144e8c3ae7bb36d632f6bfaaaad9c97199ce6
Author: cmoller <cmoller>
Date: Tue Apr 20 20:22:09 2010 +0000
PR 10867
* cp-valprint.c (global): Adding new static array recursion
detection obstack.
(cp_print_value_fields, cp_print_static_field): Added new static
array recursion detection code.
* gdb.cp/Makefile.in (EXECUTABLES): Added pr10687
* gdb.cp/pr10687.cc: New file.
* gdb.cp/pr10687.exp: New file
commit a5100fac1feb40667d8417391a427ae61487b4ee
Author: Mark Kettenis <kettenis@gnu.org>
Date: Tue Apr 20 19:39:49 2010 +0000
* i386-linux-tdep.c (i386_linux_regset_sections): Size of the
general-purpose register set should be 68 instead of 144.
(i386_linux_sse_regset_sections): Likewise.
(i386_linux_avx_regset_sections): Likewise.
commit a96a30ba457510a1daf70a2d671b99c55b13a970
Author: Stan Shebs <shebs@apple.com>
Date: Tue Apr 20 18:52:58 2010 +0000
2010-04-20 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
* dwarf2loc.c (struct axs_var_loc): New struct.
(dwarf2_tracepoint_var_loc): New function.
(dwarf2_tracepoint_var_access): New function.
(dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
with DW_OP_piece.
(locexpr_describe_location_piece): New function.
(locexpr_describe_location_1): New function.
(locexpr_describe_location): Call it, update signature.
(loclist_describe_location): Rewrite to loop over locations,
update signature.
* symtab.h (struct symbol_computed_ops): Add address to
describe_location arguments, return void.
* printcmd.c (address_info): Get context PC, pass to computed
location description.
* tracepoint.c (scope_info): Ditto.
* ax-gdb.c (trace_kludge): Export.
commit be1f57c90bdf86477b9bc69cc982171d6ad5df56
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Apr 20 17:33:13 2010 +0000
* dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
(struct dwarf2_cie) <segment_size>: New field.
* dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
(skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
DW_FORM_exprloc.
(read_attribute_value): Handle DW_FORM_flag_present,
DW_FORM_sec_offset, DW_FORM_exprloc.
(dump_die_shallow): Likewise.
(attr_form_is_section_offset): Handle DW_FORM_sec_offset.
(dwarf2_const_value): Handle DW_FORM_exprloc.
(attr_form_is_block): Likewise.
(struct line_header) <maximum_ops_per_instruction>: New field.
(dwarf_decode_line_header): Set new field.
(dwarf_decode_lines): Handle new field.
commit 8ee302683860723cc53c405bf12cebfe2d70fae1
Author: sergiodj <sergiodj>
Date: Tue Apr 20 17:22:14 2010 +0000
gdb/ChangeLog:
2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* f-exp.y: Add new production to recognize the `logical*8' type.
(LOGICAL_S8_KEYWORD): New token.
* f-lang.c (enum f_primitive_types)
<f_primitive_type_logical_s8>: New field.
(f_language_arch_info): Handling `logical*8' type.
(build_fortran_types): Building `logical*8' type.
* f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
gdb/testsuite/ChangeLog:
2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
Sergio Durigan Junior <sergiodj@redhat.com>
* gdb.fortran/logical.exp: New testcase.
* gdb.fortran/logical.f90: New file.
commit d7fff800bc0d0b41183b0d7171394ba23cfac48e
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Apr 20 09:58:42 2010 +0000
* win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
be consistent with other sources of this directory.
(init_registers_amd64): Correct name of source file of this function
in the comment.
commit 01bb9f51ab954354722aac3e7d41c04016494457
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue Apr 20 09:53:05 2010 +0000
* dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
commit 0845b5bcaed448f890af5f05c043d3014ccbc20b
Author: Doug Evans <dje@google.com>
Date: Tue Apr 20 06:06:38 2010 +0000
(generic_readchar): Tweak previous checkin, close error_fd if EOF.
commit 07ed1d58ab86b51ff98fc9b4f9f6104ea6a2edea
Author: Doug Evans <dje@google.com>
Date: Tue Apr 20 05:52:06 2010 +0000
* ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
* ser-pipe.c (pipe_open): Fix file descriptor leaks.
(pipe_close): Ditto.
commit e38d9943877fcd65c83701b901fc9c4ddfa4bf77
Author: Doug Evans <dje@google.com>
Date: Tue Apr 20 05:36:02 2010 +0000
* gdb.base/help.exp (help source): Update expected output.
commit 3dcbf5579175d84836dea85fae0d346af3540269
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Apr 20 00:21:30 2010 +0000
* configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
commit 74a4aafb0e70c5f50588fae4d8ceddcc71639cb8
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Apr 20 00:19:35 2010 +0000
* configure.srv (x86_64-*-mingw*): New configuration for Windows
64-bit executables.
commit 7779ca9c5b2e8d7a337a942879a2853efb61a083
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Apr 20 00:17:04 2010 +0000
* win32-i386-low.c: Add 64-bit support.
(CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
(init_registers_amd64): Declare.
(mappings): Add 64-bit version of array.
(init_windows_x86): New function.
(the_low_target): Change init_arch field to init_windows_x86.
commit 926c78553c0c2a5164b6b23e08ea8b4a220afb2d
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Apr 20 00:07:43 2010 +0000
* win32-low.c: Adapt to support also 64-bit architecture.
(child_xfer_memory): Use uintptr_t type for local variable `addr'.
(get_image_name): Use SIZE_T type for local variable `done'.
(psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
(toolhelp_get_dll_name): Idem.
(handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
Use uintptr_t typecast to avoid warning.
(handle_unload_dll): Use uintptr_t typecast to avoid warning.
(handle_exception): Use phex_nz to avoid warning.
(win32_wait): Remove unused local variable `process'.
commit 369c4d97d5539446d56e92e010e69536b122ed1a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Apr 20 00:00:06 2010 +0000
daily update
commit 840611126e1efd3cc57bdcb9a38498682121a8dd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Apr 20 00:00:03 2010 +0000
*** empty log message ***
commit 18446285228b830f3e0b7dbc86df580dfa1725b9
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Apr 19 23:52:11 2010 +0000
* windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
type to void function.
commit 0f8aa2a477151133bb58079af6da7212644e1453
Author: Stan Shebs <shebs@apple.com>
Date: Mon Apr 19 22:06:16 2010 +0000
2010-04-19 Stan Shebs <stan@codesourcery.com>
Vladimir Prus <vladimir@codesourcery.com>
* tracepoint.c (tfind_1): Add missing newline, report exit from
tfind mode as such.
* target.c (update_current_target): Make default
to_trace_find return -1.
commit 237c2dc7c52137e20f901b7f99d9c7510a529e24
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Apr 19 19:51:38 2010 +0000
gdb: objc-lang: check symbol name before accessing memory
The current ObjC logic will check both the symbol name and the target
address space when trying to locate an appropriate selector. The problem
is that first the target address space is checked before the symbol name.
This may lead to a lot of unnecessary host<->target transactions when
dealing with a non-OjbC target that does use function descriptors to
describe functions as every symbol will have its FD read just to have the
result thrown away with non-matching symbol names.
It also may lead to problems when a non-FD symbol is found that points near
the end of the address space as the target will throw up a memory_error().
One such example are symbols that are not functions, smaller than a FD,
and are the last valid location. Obviously treating it as a larger data
struct can cause memory overflows.
So to speed things up and not screw over such targets, check the symbol
name (which we already have locally) first before attempting to read the
function's descriptor. This fixes breakpoints with Blackfin Linux FDPIC
ELFs, and seems to cause no native regressions on my x86_64/Linux system.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 59c88a4654dc522a78e35349afc22b01ee6b9c58
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Apr 19 19:03:28 2010 +0000
sim: mn10300: convert to new sockser status code
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 69a911070b9cc4409ca96062b8be09dd758d7e19
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Apr 19 18:42:00 2010 +0000
sim: add --model-info helper option
There is an architecture-info flag for listing possible arch values, but
there is on equivalent for listing possible model values. So add the
equivalent for models.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 07ed560d9cc91d0e341657907900e2cd12815ed9
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Apr 19 17:06:08 2010 +0000
* ada-lang.c (print_recreate_exception)
<ex_catch_exception_unhandled>: It's "catch exception unhandled",
not "catch unhandled".
commit 2cc27dee809ad8183b317e9705cde12358d52b8d
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Apr 19 14:08:05 2010 +0000
* configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
`amd64-avx.o'.
commit c8eb11c3a5c192caae27d7d3238932703776c127
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Apr 19 08:46:45 2010 +0000
* archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
arhdrpos variable.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
attribute to warned variable. Remove unused val, type and type2
variables.
commit b5f20afcbdea985a35dbab687dbe3ea7c2adccfd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Apr 19 03:13:06 2010 +0000
gdb/testsuite/
* gdb.base/solib-display.exp: Replace gdb_exit, gdb_start,
gdb_reinitialize_dir and gdb_load by clean_restart. Remove trailing
gdb_exit and return.
(executable): New variable.
(binfile): Use it.
commit 036094daebe2a94efe7873677edcb9c31843c1ce
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Apr 19 01:08:25 2010 +0000
Fix format of previous-previous entry.
commit 2786d01bf75bf58995083baee229f8a9cdf3aba6
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Apr 19 00:48:42 2010 +0000
PR breakpoints/8554.
Implement `save-breakpoints'.
gdb/
* breakpoint.c (save_cmdlist): New.
(breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
to save_cmdlist.
(print_recreate_catch_fork): New.
(catch_fork_breakpoint_ops): Install it.
(print_recreate_catch_vfork): New.
(catch_vfork_breakpoint_ops): Install it.
(print_recreate_catch_syscall): New.
(catch_syscall_breakpoint_ops): Install it.
(print_recreate_catch_exec): New.
(catch_exec_breakpoint_ops): Install it.
(print_recreate_exception_catchpoint): New.
(gnu_v3_exception_catchpoint_ops): Install it.
(save_breakpoints): New, based on tracepoint_save_command, but
handle all breakpoint types.
(save_breakpoints_command): New.
(tracepoint_save_command): Rename to...
(save_tracepoints_command): ... this, and reimplement using
save_breakpoints.
(save_command): New.
(_initialize_breakpoints): Install the "save" command prefix.
Install the "save breakpoints" command. Make "save-tracepoints" a
deprecated alias for "save tracepoints".
* breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
* ada-lang.c (print_recreate_exception): New.
(print_recreate_catch_exception): New.
(catch_exception_breakpoint_ops): Install it.
(print_recreate_catch_exception_unhandled): New.
(catch_exception_unhandled_breakpoint_ops): Install it.
(print_recreate_catch_assert): New.
(catch_assert_breakpoint_ops): Install it.
* NEWS: Mention the new `save breakpoints' command. Mention the
new `save tracepoints' alias and that `save-tracepoints' is now
deprecated.
gdb/doc/
* gdb.texinfo (Save Breakpoints): New node.
(save-tracepoints): Rename to ...
(save tracepoints): ... this. Mention that `save-tracepoints' is
a deprecated alias to `save tracepoints'.
gdb/testsuite/
* gdb.trace/save-trace.exp: Adjust.
commit abeaf4a297056e0092051a7a9be14d89f1344174
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Apr 19 00:00:34 2010 +0000
*** empty log message ***
commit 37f62e955c561cffa75973aaa49cd24eb7246194
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Apr 19 00:00:05 2010 +0000
daily update
commit 9cf7bd5857f0fe4d75c732b6fcf7178588bc6404
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Apr 18 00:11:54 2010 +0000
PR tui/9217
* tui/tui-out.c: Include cli-out.h.
(tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
(tui_begin, tui_end, tui_field_int, tui_field_skip)
(tui_field_string, tui_field_fmt, tui_spaces, tui_text)
(tui_message, tui_wrap_hint, tui_flush): Delete forward
declarations.
(struct ui_out_data): Rename to...
(struct tui_ui_out_data): ... this. Remove `stream' and
`suppress_output' fields, and inherit cli_ui_out_data.
(tui_out_data): New typedef.
(tui_ui_out_impl): Don't initialize fields staticaly.
(tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
(tui_begin, tui_end): Delete.
(tui_field_int): Adjust to delegate most work to the base type.
(tui_field_skip): Delete.
(tui_field_string, tui_field_fmt): Adjust comment. Adjust to
delegate most work to the base type.
(tui_spaces): Delete.
(tui_text): Adjust to delegate most work to the base type.
(tui_message): Delete.
(tui_wrap_hint): Delete.
(tui_flush): Delete.
(out_field_fmt): Delete.
(field_separator): Delete.
(tui_out_new): Adjust to initialize the base type.
(_initialize_tui_out): Initialize tui_ui_out_impl.
* cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
cli_ui_out_data.
(cli_out_data): Adjust.
(cli_ui_out_impl): Make extern.
(cli_table_header, cli_field_int, cli_field_skip): Use
uo_field_string instead of cli_field_string.
(cli_redirect): Adjust to use cli_out_data.
(cli_out_data_ctor): New.
(cli_out_new): Use it.
* cli-out.h (struct ui_file): Remove forward declaration.
(struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
(cli_ui_out_impl): Declare.
(cli_out_data_ctor): Declare.
* ui-out.c (struct ui_out) <data>: Change type to void pointer.
(uo_field_string): No longer static.
(ui_out_data): Change return type to void pointer.
(ui_out_new): Change `data' parameter type to void pointer.
* ui-out.h (struct ui_out_data): Don't forward declare.
(ui_out_data): Change return type to void pointer.
(ui_out_new): Change `data' parameter type to void pointer.
(uo_field_string): Declare.
commit 928300f07f84b4c3b68f4caa961b8e01da9a210d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Apr 18 00:00:34 2010 +0000
*** empty log message ***
commit cb561e51f18b20d5e8b1a015b93b751459bb0330
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Apr 18 00:00:04 2010 +0000
daily update
commit d8ddf47ca6ebf4f501050e28d83a88871cdb572f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Apr 17 23:56:26 2010 +0000
* ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
instead of always false.
commit 8997115c02953f3ea7b851ab4c564264f442c1d7
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Sat Apr 17 20:43:13 2010 +0000
* configure.ac: Use `ws2_32' library for srv_mingw.
* configure: Regenerate.
* gdbreplay.c: Include winsock2.h instead of winsock.h.
* remote-utils.c: Likewise.
commit 1e5ccfab8b5a3019552434a16a4c925b00fa56db
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Apr 17 18:53:45 2010 +0000
gdb/
2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
PR corefiles/11511
* amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
orig_rax.
gdb/testsuite/
2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
PR corefiles/11511
* gdb.arch/system-gcore.exp: New.
* gdb.arch/gcore.c: Likewise.
commit 6d680648882f9cf3c88ec6a448d2882d19952fd9
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Apr 17 18:42:45 2010 +0000
* breakpoint.c (watchpoints_triggered): Use
is_hardware_watchpoint.
(watchpoints_triggered): Ditto.
(bpstat_check_location): Use is_watchpoint and
is_hardware_watchpoint.
(bpstat_check_watchpoint): Use is_watchpoint and
is_hardware_watchpoint.
(bpstat_stop_status): Fix comment.
(user_settable_breakpoint): Use is_watchpoint.
(hw_watchpoint_used_count): Use is_hardware_watchpoint.
(disable_watchpoints_before_interactive_call_start): Use
is_watchpoint.
(enable_watchpoints_after_interactive_call_stop): Use
is_watchpoint.
(clear_command): Use is_watchpoint.
(do_enable_breakpoint): Use is_watchpoint.
commit f4fddb98b8116a394a64b22c8ad51365b0d2b2b1
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Apr 17 14:12:30 2010 +0000
Define xmltarget_amd64_linux_no_xml only for amd64.
2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
* linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
if __x86_64__ is defined.
commit cea95405664b51402b236702187ef911a5dff0c6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Apr 17 00:00:04 2010 +0000
*** empty log message ***
commit a15e31f5095167b585a71233176e3c7ae6d60a2c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Apr 17 00:00:04 2010 +0000
daily update
commit d53f7b278bcc93ee99f809775889afd38c6d2cfc
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Apr 16 22:47:42 2010 +0000
gdb: fdpic/frv: fix shared library loading
The recent change to reload_shared_libraries() broke FDPIC shared libraries as
the solib-frv.c code was implicitly relying on the initial order of calls
(first solib_addr() and then solib_create_inferior_hook()). It was
maintaining internal state via enable_break{1,2}_done to handle this.
While I could tweak these values a bit more, the original code wasn't terribly
bullet proof -- if during the initial debug you attempted to view shared
libraries, the enable2_break() code would whine about the ldso internal debug
addresses being unfetchable (and would actually attempt to read address 0x8 on
the target). So I've dropped this implicit dependency on order (i.e.
enable_break1_done) and updated the ldso poking code (i.e. enable_break2) to
silently return when the internal debug address is still set to 0. It will
remain this way until the ldso gets a chance to initialize at which point the
code will act the same as before.
While I have no way of testing the FRV, the Blackfin FDPIC code is using this
same base in a 100% copy & paste method since we implemented FDPIC the same
way as the FRV guys (I'll address this in the future). This fix was required
in order to handle shared libraries with Blackfin FDPIC properly, and I see no
reason why it wouldn't also work for FRV (since the uClibc ldso FDPIC code is
the same too and that's really what this is poking).
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 1bb6976a02799aef34e892d2401e6cf77c4336ba
Author: Kevin Buettner <kevinb@redhat.com>
Date: Fri Apr 16 22:46:26 2010 +0000
* m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
instead of an error if no PLT entry is found. Return a
potentially useful result.
(m32c_m16c_pointer_to_address): Add code to search for function
address when no .plt entry is found.
commit 37596b94cb368ef8600e45ff203218ca340e0e13
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Apr 16 21:37:08 2010 +0000
Remove extra breack.
commit 79db1f76c0b566c4557f492c0d050285fca26304
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Apr 16 21:35:23 2010 +0000
Return bad_opcode on unknown bits in opcode.
2010-04-16 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (get_valid_dis386): Return bad_opcode on unknown
bits in opcode.
commit 5713f086abf837ab8ec3c1d788d0e1e04f698b59
Author: Stan Shebs <shebs@apple.com>
Date: Fri Apr 16 18:21:59 2010 +0000
2010-04-16 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (trace_variable_command): Run a cleanup.
commit 3785734c373ca825a1a040fe5c5a2e35c2fcfae6
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Apr 16 16:22:15 2010 +0000
* configure: Regenerate.
commit 649c9171090a2d3d4f015535eff2637d0919e9fd
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Apr 16 14:38:53 2010 +0000
2010-04-16 Andreas Schwab <schwab@redhat.com>
* vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
strict-aliasing rules.
commit 315b4dc5797d8d68cd915c0b262834eadd1dc41e
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Apr 16 14:23:41 2010 +0000
2010-04-16 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
(_bfd_vms_get_object_record): Always assume there is a pad byte
for alignment.
* vms-lib.c: Add a few comments.
commit e20375c65f85c024d89f654a4ee86d455fcda984
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Apr 16 08:12:59 2010 +0000
* p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
commit 52ef2062ce3bd741b845da02e774031f4af6f332
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Apr 16 07:49:33 2010 +0000
Support for Windows OS Thread Information Block.
* NEWS: Document new feature.
* remote.c (PACKET_qGetTIBAddr): New enum element.
(remote_get_tib_address): New function.
(init_remote_ops): Set to_get_tib_address field
to remote_get_tib_address.
(_initialize_remote): Add add_packet_config_cmd
for PACKET_qGetTIBAddr.
* target.c (update_current_target): Set default value for
new to_get_tib_address field.
* target.h (target_ops): New field to_get_tib_address.
(target_get_tib_address): New macro.
* windows-nat.c (thread_info): Add thread_local_base field.
(windows_add_thread): Add tlb argument of type 'void *'.
(fake_create_process): Adapt windows_add_thread call.
(get_windows_debug_event): Idem.
(windows_get_tib_address): New function.
(init_windows_ops): Set to_get_tib_address field
to remote_get_tib_address.
(_initialize_windows_nat): Replace info_w32_cmdlist
initialization by a call to init_w32_command_list.
(info_w32_command, info_w32_cmdlist): Removed from here...
to windows-tdep.c file.
* windows-tdep.h (info_w32_cmdlist): Declare.
(init_w32_command_list): New external function
declaration.
* windows-tdep.c: Add several headers.
(info_w32_cmdlist): to here, made global.
(thread_information_32): New struct.
(thread_information_64): New struct.
(TIB_NAME): New char array.
(MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
(maint_display_all_tib): New static variable.
(windows_get_tlb_type): New function.
(tlb_value_read, tlb_value_write): New functions.
(tlb_value_funcs): New static struct.
(tlb_make_value): New function.
(display_one_tib): New function.
(display_tib): New function.
(show_maint_show_all_tib):New function.
(info_w32_command): Moved from windows-nat.c.
(init_w32_command_list): New function.
(_initialize_windows_tdep): New function.
New "maint set/show show-all-tib" command
New "$_tlb" internal variable.
gdbserver/ChangeLog entry:
* server.c (handle_query): Handle 'qGetTIBAddr' query.
* target.h (target_ops): New get_tib_address field.
* win32-low.h (win32_thread_info): Add thread_local_base field.
* win32-low.c (child_add_thread): Add tlb argument.
Set thread_local_base field to TLB.
(get_child_debug_event): Adapt to child_add_thread change.
(win32_get_tib_address): New function.
(win32_target_ops): Set get_tib_address field to
win32_get_tib_address.
* linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
doc/ChangeLog entry:
gdb.texinfo ($_tlb): Document new automatic convinience variable.
(info w32 thread-information-block): Document new command.
(qGetTIBAddress): Document new gdbserver query.
(maint set/show show-all-tib): Document new command.
commit 6f64c2e1fbefbe0d3f0a04384bcbb6fd31aa2574
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Apr 16 04:34:30 2010 +0000
* tui/tui-regs.c (tui_display_register): Add comment about
a couple of casts.
* tui/tui-stack.c (tui_show_locator_content): Ditto.
commit 06da7f140e0561b82135ae12a8a6394102e72401
Author: Stan Shebs <shebs@apple.com>
Date: Fri Apr 16 01:12:06 2010 +0000
2010-04-15 Stan Shebs <stan@codesourcery.com>
* frame.c: Include tracepoint.h.
(get_current_frame): Allow a trace frame to be an alternate source
of stack frame data.
* tracepoint.c (tfind_1): Don't try to get current stack frame if
it won't succeed.
commit b2492cd13f871898c026b45f1424e4e06b526ff6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Apr 16 00:00:33 2010 +0000
*** empty log message ***
commit b9f1271123edb907e4e8cf4a0cf969117d699fb2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Apr 16 00:00:04 2010 +0000
daily update
commit 8747b8f0dda734b806bca8812b315977c4fc58f1
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 15 23:46:11 2010 +0000
s/Pedro Alves/Pedro Alves/
commit 4366e0e6bed6fed39ba5665da4bbbd5f8e86c2f8
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 15 23:43:40 2010 +0000
Fix date format in one entry. Fix whitespace throughout while there.
commit 29596e34e7c1f23aa51f289d36802e1ef0f89129
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 15 22:36:44 2010 +0000
Remove src/gdb/ from entry.
commit eb6db2b9ca2e0a9ebb25fad233734e1b5e0ea295
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 15 20:19:24 2010 +0000
* ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
flags.
* solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
commit e9d705a60bf1225789ae97759e148e5cc799dc6f
Author: Doug Evans <dje@google.com>
Date: Thu Apr 15 19:54:12 2010 +0000
* NEWS: Add entry for python program space support.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
(SUBDIR_PYTHON_SRCS): Add py-progspace.c.
(py-progspace.o): New rule.
* python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
function.
(find_pretty_printer_from_progspace): New function.
(find_pretty_printer_from_gdb): New function.
(find_pretty_printer): Rewrite.
* python/py-progspace.c: New file.
* python/python-internal.h (program_space): Add forward decl.
(pspace_to_pspace_object, pspy_get_printers): Declare.
(gdbpy_initialize_pspace): Declare.
* python/python.c: #include "progspace.h".
(gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
(_initialize_python): Call gdbpy_initialize_pspace.
(GdbMethods): Add current_progspace, progspaces.
doc/
* gdb.texinfo (Python API): Add progspaces section.
(Selecting Pretty-Printers): Progspace pretty-printers are
searched too.
(Progspaces In Python): New section.
testsuite/
* gdb.python/py-progspace.c: New file.
* gdb.python/py-progspace.exp: New file.
commit 66d9e8ff6e25790500e408a591c9a62b7c00b74b
Author: Doug Evans <dje@google.com>
Date: Thu Apr 15 17:45:49 2010 +0000
Add -s option to source command.
* NEWS: Document new option.
* cli/cli-cmds.c (find_and_open_script): Add function comment.
Delete from_tty and cleanupp args. Split filep arg into file and
full_pathp. New arg search_path.
(source_script_from_stream): New function.
(source_script_with_search): New function.
(source_script): Rewrite.
(source_command): Parse "-s" option.
(init_cli_cmds): Add "-s" docs to source command help, and reformat.
* python/python.c (source_python_script): Make file arg a const char *.
Don't call fclose, leave for caller.
* python/python.h (source_python_script): Update.
testsuite/
* gdb.base/source-test.gdb: New file.
* gdb.base/source.exp: Add tests for "source -s".
doc/
* gdb.texinfo (Command Files): Add docs for new "source -s" option.
commit 184084de04b19fb72af34fb967d504d027961139
Author: mgretton <mgretton>
Date: Thu Apr 15 10:56:33 2010 +0000
* ld/testsuite/ld-arm/attr-merge-2.attr: Update for changes in attribute output.
* ld/testsuite/ld-arm/attr-merge-3.attr: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-1.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-1r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-2.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-2r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-3.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-3r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-4.d: Likeiwse.
* ld/testsuite/ld-arm/attr-merge-vfp-4r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-5.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-5r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-00-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-00.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-02-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-02.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-04-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-04.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-20-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-20.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-22-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-22.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-24-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-40-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-40.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-42-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-44-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-44.d: Likewise.
* ld/testsuite/ld-arm/attr-merge.attr: Likewise.
* binutils/readelf.c (arm_attr_tag_FP_arch): Rename from arm_attr_tag_VFP_arch.
(arm_attr_tag_ABI_align8_needed): Remove.
(arm_attr_tag_ABI_align8_preserved): Remove.
(arm_attr_tag_ABI_HardFP_use): Update text strings.
(arm_attr_public_tags): Add strings for ABI v2.08 attribute tags.
(display_arm_attribute): Add decoding of ABI v2.08 attributes.
* include/elf/arm.h (Tag_FP_arch, Tag_ABI_align_needed, Tag_ABI_align_preserved,
Tag_FP_HP_extension): Add new ABI attribute tags.
* gas/config/tc-arm.c (arm_convert_symbolic_attribute): Add support for
new tag names in v2.08 of ARM ABI.
* gas/doc/c-arm.texi: Document new tag names in ABI.
* gas/testsuite/gas/arm/attr-mcpu.d: Update for new attribute tag names.
* gas/testsuite/gas/arm/attr-mfpu-arm1020e.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1020t.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1136jf-s.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1136jfs.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-neon-fp16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-neon.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-softvfp+vfp.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp10-r0.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp10.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp3.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp9.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv2.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv3-d16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv3.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv4-d16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv4.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpxd.d: Likewise.
* gas/testsuite/gas/arm/attr-names.d: Add test to make sure all attribute names
are recognised.
* gas/testsuite/gas/arm/attr-names.s: Likewise.
commit b4078918df2212ecd820a0dcc271cab5f4fe9029
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Apr 15 10:26:05 2010 +0000
Upgrade header files to use GPLv3
commit 14ca3db824a85073e5d359d6b5fb7c2f6eb47b39
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Apr 15 02:54:01 2010 +0000
* config.bfd (vax*-*-*vms*): Delete.
commit af9323291f3347482d3ef6db41f2a35144cce9fc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Apr 15 00:00:33 2010 +0000
*** empty log message ***
commit c67a70d037a365e133e85976351c33b9ac8818b8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Apr 15 00:00:04 2010 +0000
daily update
commit 829a902da291e72ad17e8c44fa8d9ead3db41b1f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Apr 14 23:20:05 2010 +0000
Avoid rereading shared libraries that haven't changed.
* solib.c (free_so_symbols): New function, from ...
(free_so): ... here. Call it.
(solib_read_symbols): Don't warn here if symbols have already been
loaded.
(solib_add): Warn here instead, if a pattern was specified.
(reload_shared_libraries_1): New.
(reload_shared_libraries): Rewrite to not fetch the library list.
commit 5aa7992bf144ce9cdfd4e3c72290cbd66c0cc920
Author: Doug Evans <dje@google.com>
Date: Wed Apr 14 21:27:01 2010 +0000
fix typo in previous entry
commit 91d9eeefda9104c815db741b502c366a2e8e92ad
Author: Doug Evans <dje@google.com>
Date: Wed Apr 14 21:22:27 2010 +0000
* source.c (open): Strip DOS drive letter if present before
concatenating string to search path.
commit 746027ffb0c72c3f5cd93d373ed534ec5c3eac2c
Author: Doug Evans <dje@google.com>
Date: Wed Apr 14 21:18:27 2010 +0000
* filenames.h (HAS_DRIVE_SPEC, STRIP_DRIVE_SPEC): New macros.
commit baeb5c93610f1d8d11432e872156eb6fcab3d5a7
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Apr 14 17:26:08 2010 +0000
* objfiles.h (gdb_bfd_close_or_warn): Declare.
* objfiles.c (gdb_bfd_close_or_warn): New.
* corelow.c: Include objfiles.h
(core_close): Use gdb_bfd_close_or_warn.
* elfread.c (build_id_verify): Ditto.
* exec.c (exec_close, exec_close_1): Ditto.
commit 325409e50f6be845b0f3d9719d62f9dc78dbe048
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Apr 14 17:26:08 2010 +0000
* objfiles.h (gdb_bfd_close_or_warn): Declare.
* objfiles.c (gdb_bfd_close_or_warn): New.
* corelow.c: Include objfiles.h
(core_close): Use gdb_bfd_close_or_warn.
* elfread.c (build_id_verify): Ditto.
* exec.c (exec_close, exec_close_1): Ditto.
commit e12b767fb287127671d514eef227486777f0a972
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Apr 14 13:49:52 2010 +0000
Group errors for many missing shared libraries.
* solist.h (struct so_list): Remove from_tty.
* solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
(solib_map_sections): Take so_list argument. Return 0 if we
failed to open a BFD. Add target sections here.
(symbol_add_stub): Delete.
(solib_read_symbols): Inline symbol_add_stub. Use current flags,
not from_tty copied from the so_list. Don't warn a second time
for a missing library.
(update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
add to the section table here. Print out a single warning for all
missing libraries.
* bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
flags.
commit e92d216e7f362371836c6bad86dd5d065c62260a
Author: pmuldoon <pmuldoon>
Date: Wed Apr 14 13:18:51 2010 +0000
2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
* python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
error/warning messages. Capitalize and use complete sentences.
(blpy_block_syms_iternext): Likewise.
* python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
* python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
(frame_info_to_frame_object, frapy_read_var)
(gdbpy_frame_stop_reason_string): Likewise.
* python/py-lazy-string.c (stpy_convert_to_value)
(gdbpy_create_lazy_string_object): Likewise.
* python/py-objfile.c (objfpy_set_printers): Likewise.
* python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
* python/python.c (parameter_to_python): Likewise.
* python/py-type.c (typy_range, typy_target): Likewise.
* python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
(valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
commit e5ea8d026015c2a0c7774788b425914857de1ffb
Author: pmuldoon <pmuldoon>
Date: Wed Apr 14 12:02:42 2010 +0000
2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
PR python/11381
* python/py-prettyprint.c (pretty_print_one_value): Test for
Py_None.
(print_string_repr): Test for Py_None. Set flags accordingly.
Return value depending on return type.
(print_children): Take a value indicating whether data was printed
before this function was called. Alter output accordingly.
(apply_val_pretty_printer): Capture return value from
print_string_repr and pass to print_children.
2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-prettyprint.py (NoStringContainerPrinter): New printer.
* gdb.python/py-prettyprint.c: Add justchildren struct, typedefs.
* gdb.python/py-prettyprint.exp: New test for to_string returning None.
* gdb.python/py-mi.exp: New test for to_string returning None.
2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Pretty Printing): Document behaviour when to_string
returns None.
commit a9a471371a0bfbe3df0c96fb818fb923119bdb5b
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Apr 14 09:28:48 2010 +0000
2010-04-14 Tristan Gingold <gingold@adacore.com>
* configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs.
* configure: Regenerate.
commit 20e2cc4290d787cca8f2b0444c2852d5e43ca0ea
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Apr 14 09:24:58 2010 +0000
2010-04-14 Tristan Gingold <gingold@adacore.com>
* Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
vms-tir.lo, vms.lo and add vms-alpha.lo
(BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
vms-tir.c, vms.c and add vms-alpha.c
* Makefile.in: Regenerate.
* configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
Remove vms_vax_vec.
* configure: Regenerate.
* targets.c (vms_vax_vec): Remove the declaration.
(_bfd_target_vector): Remove vms_vax_vec.
* vms-alpha.c: New file.
* vms-gsd.c: Removed, rewritten in vms-alpha.c
* vms-hdr.c: Ditto.
* vms-tir.c: Ditto.
* vms.c: Ditto.
* vms-misc.c: Fix indentation and comments. Replace most of
#if VMS_DEBUG/vms_debug with vms_debug2.
(_bfd_vms_hash_newfunc): Moved to vms-alpha.c
(hash_string): Ditto.
(_bfd_vms_length_hash_symbol): Ditto.
(maybe_adjust_record_pointer_for_object): Ditto.
(_bfd_vms_get_object_record): Ditto.
(vms_get_remaining_object_record): Ditto.
(_bfd_vms_push): Ditto.
(_bfd_vms_pop): Ditto.
(_bfd_vms_get_header_values): Removed.
(_bfd_vms_get_first_record): Removed.
(vms_get_remaining_image_record): Removed.
(new_symbol): Removed.
(_bfd_vms_enter_symbol): Removed.
(_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
(_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
parameter with struct vms_rec_wr.
(_bfd_vms_output_push): Removed and replaced by ...
(_bfd_vms_output_begin_subrec): ... new function.
(_bfd_vms_output_alignment): Replace bfd parameter with
struct vms_rec_wr, and adjust.
(_bfd_vms_output_check): Ditto
(_bfd_vms_output_byte): Ditto.
(_bfd_vms_output_short): Ditto.
(_bfd_vms_output_long): Ditto.
(_bfd_vms_output_quad): Ditto.
(_bfd_vms_output_counted): Ditto.
(_bfd_vms_output_dump): Ditto.
(_bfd_vms_output_fill): Ditto.
(_bfd_vms_output_pop): Removed and replaced by ...
(_bfd_vms_output_end_subrec): ... new function.
(_bfd_vms_output_flush): Removed.
(_bfd_vms_output_align): New function.
(_bfd_vms_output_end): Add recwr parameter. Adjust for this new
parameter.
(vms_convert_to_var): New function imported from vms.c
(vms_convert_to_var_1): Ditto.
(vms_convert_to_var_unix_filename): Ditto.
(vms_get_module_name): Ditto.
(get_vms_time_string): Ditto.
(vms_time_to_time_t): Ditto.
(vms_rawtime_to_time_t): Ditto.
* vms.h: All macros for the VMS file format are now in include/vms.
Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
have been removed.
(struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
(struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
(struct funcinfo, struct vms_private_data_struct): Ditto.
(struct vms_section_data_struct): Ditto.
(struct vms_rec_rd, stryct vms_rec_wr): New declarations.
(vms_get_module_name, get_vms_time_string): New declarations.
(vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
(_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
(_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
(_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
(_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
(_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
(_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
(_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
(_bfd_vms_output_fill): Ditto.
(bfd_vms_set_section_flags): Ditto.
commit 0d32580f43a7359eba5251655977aaa1ef990e6d
Author: mgretton <mgretton>
Date: Wed Apr 14 08:29:32 2010 +0000
* bfd/elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
exit due to merging the same weak symbol to test that the symbols are
actually weak.
commit a3960ae0be37da1d6e57a748129c0d9effa77400
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Apr 14 07:38:03 2010 +0000
sim: constify sim_write source buffer (part 2)
As pointed out by Sandra Loosemore, a bunch of targets define sim_write
themselves instead of using the common/ code. So constify them too.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit f80965c8b03b9ca637edcc810d70011ac5dfc3d9
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 14 00:40:13 2010 +0000
Correct PR number for PR corefiles/11481.
commit 79ebeac8f7f059b7407e5027c5bb94c95063cf5a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 14 00:38:03 2010 +0000
Mention PR corefiles/11467.
commit bf763a271e28a4ffd6a7bb20050c7af3b22669cd
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Apr 14 00:00:05 2010 +0000
daily update
commit 60fc8896b1299b023e3900afbe39d36f26231764
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Apr 14 00:00:03 2010 +0000
*** empty log message ***
commit ed70aeaec4fa89ae8cba95fcae434c90754e24df
Author: Mark Kettenis <kettenis@gnu.org>
Date: Tue Apr 13 21:07:15 2010 +0000
* i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
register note sections.
(i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
New variables.
(i386_linux_init_abi): Install list of supported register note
sections that matches the target description.
commit 567bc1952033cdcfbad781cd391b530a0fd5e896
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Apr 13 20:58:54 2010 +0000
sim: dv-sockser: pass up connected state
A few ports rely on internal dv-sockser state in order to detect whether
a connection has been made (look for 'extern sockser_addr'). Rather than
continuing that tradition, extend the existing status function to return
the socket connection status.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 84684895ff9d6710b681dc3c0914c669e648a792
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Apr 13 20:39:44 2010 +0000
sim: drop PARAMS
The PARAMS macro is no longer useful, so drop it from the sim includes.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit eed093668ca1e5ba56374feaf14ae1c8e99f5673
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Apr 13 20:28:19 2010 +0000
sim: constify sim_write source buffer
Most the sim write functions declare their source buffer const because
they only ever read from it. The global sim_write() function does not
follow this convention though which causes some warnings when trying to
pass it const strings or buffers.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 9b35db8589d6c93837adb1e0b2ada219330f3f0b
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Apr 13 16:08:24 2010 +0000
* remote.c (remote_get_noisy_reply): Don't error out on empty
replies.
(remote_start_remote): Update and merge tracepoints and trace
state variables as long as the target supports tracepoints.
(remote_trace_init): Fix prototype.
(remote_download_trace_state_variable): Validate reply.
(remote_trace_set_readonly_regions): Fix prototype.
(remote_trace_start): Fix prototype. Check for empty reply.
(remote_get_trace_status): Small cleanup.
(remote_trace_stop): Fix prototype. Check for empty reply.
(remote_trace_find): Check for empty reply.
(remote_save_trace_data): Validate reply.
(remote_set_disconnected_tracing): Check for empty reply, and
validate reply.
(remote_set_circular_trace_buffer): Ditto.
commit 52a13319b890f4624e3e6e8df27f12ff702ec437
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Tue Apr 13 12:11:05 2010 +0000
Suppress unused value warning during compilation.
* tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
calls to void.
* tui/tui-stack.c (tui_show_locator_content): Likewise.
commit 02202ae492b14960c45e9c5934ee7317a9806e18
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Apr 13 04:05:27 2010 +0000
* elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
when optimizing high got_tlsgd/ld insns.
commit 31ad63b78fed65237a81c9767a9c66600e9cf62b
Author: Stan Shebs <shebs@apple.com>
Date: Tue Apr 13 03:53:49 2010 +0000
2010-04-12 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (tfile_xfer_partial): Check read result.
commit edada3266c0f23e81e9baf98a0a213ad7f6d6b5e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Apr 13 00:00:33 2010 +0000
*** empty log message ***
commit d46fcd242a5f859f64c163d6a32cdfeb4217718c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Apr 13 00:00:04 2010 +0000
daily update
commit fc61c2c20bd61d403463e6437a294ffcdf198f3f
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Apr 12 21:44:46 2010 +0000
sim: add more hacking notes
I found the documentation lacking in many places, so I tried filling in a
lot of holes that I personally fell into.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 58fbf93a07e88c6f0103aa2ef3432d2ef4946243
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Apr 12 17:46:05 2010 +0000
Remove gdb/gdbserver/ line.
commit b85579f12a452fb5dd104e9a198667a91e0c06c6
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Apr 12 17:39:41 2010 +0000
gdb/gdbserver/
* linux-low.c (linux_mourn): Also remove the process.
* server.c (handle_target_event): Don't remove the process here.
* nto-low.c (nto_mourn): New.
(nto_target_ops): Install it.
* spu-low.c (spu_mourn): New.
(spu_target_ops): Install it.
* win32-low.c (win32_mourn): New.
(win32_target_ops): Install it.
commit d691350337a747dc827c09a265859df1ac86e79b
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Apr 12 16:57:24 2010 +0000
sim: add helper macros for branch profiling
The profile code has a lot of helper macros already, but none yet for the
branch profiling code. So add ones for the basic functions -- taken and
untaken branches.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 7bbdc114c3787e8be817374c9ca3fff4e6944413
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Apr 12 16:53:32 2010 +0000
sim: add missing values to array initializers
The sim code has a lot of static initializer for options and devices, but
since they aren't using newer struct style, they have to specify a value
for every option otherwise gcc spits a lot of warnings about "missing
initializer". So add NULL/0 stubs for pointers/values.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit f5bf6a8c39808e17bbacf43fa89a04e0bf3d0875
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Apr 12 16:04:38 2010 +0000
gdb: constify remote files_info
The sim and m32r remote targets declare a local "file" variable and only
assign const strings to it before passing it to a printf() func. So add
const markings to avoid gcc warnings like:
gdb/remote-sim.c: In function 'gdbsim_files_info':
gdb/remote-sim.c:789: warning: initialization discards qualifiers
from pointer target type
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit a382f5de08276818170fa82880064af2426a0f46
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Apr 12 16:00:43 2010 +0000
sim: constify dup_arg_p
The dup_arg_p function is only given const strings, and it maintains a
local table of those const strings. So constify the whole thing to fix
the GCC warnings:
common/sim-options.c: In function 'sim_parse_args':
common/sim-options.c:559: warning: passing argument 1 of 'dup_arg_p'
discards qualifiers from pointer target type
common/sim-options.c: In function 'print_help':
common/sim-options.c:675: warning: passing argument 1 of 'dup_arg_p'
discards qualifiers from pointer target type
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit b819a8a84d172277e832f56c471acc8b0f4234f4
Author: Richard Earnshaw <richard.earnshaw@arm.com>
Date: Mon Apr 12 13:52:38 2010 +0000
2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
* arm-linux-nat.c (arm_linux_vfp_register_count): New
variable.
(fetch_vfp_registers): New function to fetch VFP registers.
(store_vfp_registers): New function to store VFP registers.
(arm_linux_fetch_inferior_registers): Add support for VFP
registers.
(arm_linux_store_inferior_registers): Likewise.
(arm_linux_read_description): Likewise.
(_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
until we need it.
commit 2aff82e00a7f93afe1884bffa8199691e18dac0b
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Apr 12 13:51:22 2010 +0000
* server.h (buffer_xml_printf): Remove redundant `;'.
commit 66e4d3883383c9d42113c7e8c614dff8646deb35
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Apr 12 13:25:51 2010 +0000
* regcache.c (set_register_cache): Invalidate regcaches before
changing the register cache layout.
(regcache_invalidate_one): Allow a NULL regcache.
* linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
regcaches before changing the register cache layout or the target
regsets.
commit 63222cac28a232f0e4610a6c17ea72ab4d3d6372
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Apr 12 13:18:12 2010 +0000
Avoid unused variable warning on Linux/x86-64.
2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
* linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
variable warning on Linux/x86-64.
commit a9b58442902b891555f27beb7ea65626def562fa
Author: pmuldoon <pmuldoon>
Date: Mon Apr 12 09:49:34 2010 +0000
2010-04-12 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-breakpoint.c: Make result global.
commit aac14cecc4807e485bd0e7c3d41575d50cf89cd3
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Apr 12 00:00:05 2010 +0000
daily update
commit 1c5326e5cce6ef8ea11c942374e9214c5e8db53c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Apr 12 00:00:03 2010 +0000
*** empty log message ***
commit ed8a7fd9b04e7b81ecc763ca9892a566aba90ada
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Apr 11 20:20:30 2010 +0000
Remove the unused variable in amd64-tdep.c.
2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
* amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
tdep.
(amd64_collect_xstateregset): Likewise.
commit 46989a29cc78aaed3e7c34175ad443c6f21f2584
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Apr 11 16:33:55 2010 +0000
GDBserver disconnected tracing support.
* linux-low.c (linux_remove_process): Delete.
(add_lwp): Don't set last_resume_kind here.
(linux_kill): Use `mourn'.
(linux_detach): Use `thread_db_detach', and `mourn'.
(linux_mourn): New.
(linux_attach_lwp_1): Adjust comment.
(linux_attach): last_resume_kind moved the thread_info; adjust.
(status_pending_p_callback): Adjust.
(linux_wait_for_event_1): Adjust.
(count_events_callback, select_singlestep_lwp_callback)
(select_event_lwp_callback, cancel_breakpoints_callback)
(db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
(proceed_one_lwp): Adjust.
(linux_async): Add debug output.
(linux_thread_stopped): New.
(linux_pause_all): New.
(linux_target_ops): Install linux_mourn, linux_thread_stopped and
linux_pause_all.
* linux-low.h (struct lwp_info): Delete last_resume_kind field.
(thread_db_free): Delete declaration.
(thread_db_detach, thread_db_mourn): Declare.
* thread-db.c (thread_db_init): Use thread_db_mourn.
(thread_db_free): Delete, split in two.
(disable_thread_event_reporting): New.
(thread_db_detach): New.
(thread_db_mourn): New.
* server.h (struct thread_info) <last_resume_kind>: New field.
<attached>: Add comment.
<gdb_detached>: New field.
(handler_func): Change return type to int.
(handle_serial_event, handle_target_event): Ditto.
(gdb_connected): Declare.
(tracing): Delete.
(disconnected_tracing): Declare.
(stop_tracing): Declare.
* server.c (handle_query) <qSupported>: Report support for
disconnected tracing.
(queue_stop_reply_callback): Account for running threads.
(gdb_wants_thread_stopped): New.
(gdb_wants_all_threads_stopped): New.
(gdb_reattached_process): New.
(handle_status): Clear the `gdb_detached' flag of all processes.
In all-stop, stop all threads.
(main): Be sure to leave tfind mode. Handle disconnected tracing.
(process_serial_event): If the remote connection breaks, or if an
exit was forced with "monitor exit", force an event loop exit.
Handle disconnected tracing on detach.
(handle_serial_event): Adjust.
(handle_target_event): If GDB isn't connected, forward events back
to the inferior, unless the last process exited, in which case,
exit gdbserver. Adjust interface.
* remote-utils.c (remote_open): Don't block in accept. Instead
register an event loop source on the listen socket file
descriptor. Refactor bits into ...
(listen_desc): ... this new global.
(gdb_connected): ... this new function.
(enable_async_notification): ... this new function.
(handle_accept_event): ... this new function.
(remote_close): Clear remote_desc.
* inferiors.c (add_thread): Set the new thread's last_resume_kind.
* target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
New fields.
(mourn_inferior): Define.
(target_process_qsupported): Avoid the dangling else problem.
(thread_stopped): Define.
(pause_all): Define.
(target_waitstatus_to_string): Declare.
* target.c (target_waitstatus_to_string): New.
* tracepoint.c (tracing): Make extern.
(disconnected_tracing): New.
(stop_tracing): Make extern. Handle tracing stops due to GDB
disconnecting.
(cmd_qtdisconnected): New.
(cmd_qtstatus): Report disconnected tracing status in trace reply.
(handle_tracepoint_general_set): Handle QTDisconnected.
* event-loop.c (event_handler_func): Change return type to int.
(process_event): Bail out if the event handler wants the event
loop to stop.
(handle_file_event): Ditto.
(start_event_loop): Bail out if the event handler wants the event
loop to stop.
* nto-low.c (nto_target_ops): Adjust.
* spu-low.c (spu_wait): Don't remove the process here.
(spu_target_ops): Adjust.
* win32-low.c (win32_wait): Don't remove the process here.
(win32_target_ops): Adjust.
commit 055148f7383dbef6dfef69ebf09a5d2aaaadeb89
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Apr 11 01:47:48 2010 +0000
* regcache.c (realloc_register_cache): Invalidate inferior's
regcache before recreating it.
commit 2830e8f6791aa574cff47c03ffe8108fbfd0e729
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Apr 11 00:00:04 2010 +0000
daily update
commit 6295c80119e0b738616d665bb066fad1bca54e76
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Apr 11 00:00:02 2010 +0000
*** empty log message ***
commit 79243e9e95af00b8d410bff66ced0fd286d5c80d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Apr 10 22:52:36 2010 +0000
Undefine HAVE_PRPSINFO32_T/HAVE_PRSTATUS32_T before define.
2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
* hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
define.
(HAVE_PRSTATUS32_T): Likewise.
commit d56b8df4755faaa982e8d7943c84a092c7d01f9c
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Apr 10 22:21:30 2010 +0000
Support 32bit core note sections on Linux/x86-64.
2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
PR corefiles/11467
* configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
for x86_64-*-linux*.
* config.in: Regenerated.
* configure: Likewise.
* elf.c: Include CORE_HEADER if it is defined.
2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
* hosts/x86-64linux.h: New.
commit 819aac763059a73c81114fb4aefacb0891ed8483
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat Apr 10 21:25:05 2010 +0000
sim: also constify sim_fpu_print_func
commit cf24e72f4f92deeda903dda540c789cbc83b6ccb
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat Apr 10 20:29:54 2010 +0000
sim: constify sim_fpu_print_status
I've committed the following patch as obvious. The local "prefix"
variable is only assigned const strings, and only passed to printf()
functions, so add "const" to avoid gcc warnings:
common/sim-fpu.c: In function 'sim_fpu_print_status':
common/sim-fpu.c:2508: warning: initialization discards qualifiers
from pointer target type
common/sim-fpu.c:2566: warning: assignment discards qualifiers
from pointer target type
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit c8b2d4f95fb122595bf264c7c573adbfa27b718d
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat Apr 10 08:26:45 2010 +0000
sim: drop duplicate break statements in sim-fpu
commit 9e9dec16e23f809c5d8ac6246f2c0f1580f5fa10
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat Apr 10 08:00:58 2010 +0000
sim: constify save_data()
The local save_data() function takes a pointer to a buffer and only uses it as
the source to the memcpy() function. Since it is given const strings, GCC
likes to spit out warnings:
common/sim-trace.c: In function 'trace_prefix':
common/sim-trace.c:697: warning: passing argument 5 of 'save_data' discards
qualifiers from pointer target type
So I've committed this as obvious.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 27992c79e2bf8361dcc227a2c425b74ca99a000d
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat Apr 10 07:35:35 2010 +0000
sim: add const markings to env string
The sim-options code assigns a const string to "char *" in decoding the
current environment settings, and only uses it to pass to a printf. GCC
outputs the warnings:
common/sim-options.c: In function 'standard_option_handler':
common/sim-options.c:271: warning: assignment discards qualifiers from pointer
target type
common/sim-options.c:272: warning: assignment discards qualifiers from pointer
target type
common/sim-options.c:273: warning: assignment discards qualifiers from pointer
target type
So I've committed this as "obvious".
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
commit 17b932068d27d862c0ad42dbd3875b191d323c85
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Apr 10 00:00:06 2010 +0000
*** empty log message ***
commit 8f50b8b9357758896d79fca447f8ed23bdcb2391
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Apr 10 00:00:06 2010 +0000
daily update
commit b617b34276afa69dc2b9e70a188a27c049857ab4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Apr 9 20:50:46 2010 +0000
gdb/testsuite/
Fix non-GNU make compatibility.
* Makefile.in ($(TEST_TARGETS)): Conditionalize it by @GMAKE_TRUE@.
commit ad999f438dae72b316d2fe2868027af848a634d4
Author: Stan Shebs <shebs@apple.com>
Date: Fri Apr 9 20:46:39 2010 +0000
2010-04-09 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (trace_status_mi): Report frames created.
* gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>:
Describe the `frames-created' field, tweak grammar.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +
bfd/ChangeLog | 188 +
bfd/Makefile.am | 10 +-
bfd/Makefile.in | 17 +-
bfd/archive64.c | 6 +-
bfd/bfd-in.h | 2 +-
bfd/bfd-in2.h | 2 +-
bfd/config.bfd | 4 -
bfd/config.in | 3 +
bfd/configure | 14 +-
bfd/configure.in | 11 +-
bfd/dwarf2.c | 8 +-
bfd/elf-bfd.h | 1 +
bfd/elf.c | 86 +-
bfd/elf32-arm.c | 42 +-
bfd/elf32-spu.c | 3 +-
bfd/elf32-tic6x.c | 712 ++-
gdb/windows-tdep.h => bfd/elf32-tic6x.h | 22 +-
bfd/elf64-ppc.c | 2 +-
bfd/elf64-x86-64.c | 23 +-
bfd/elflink.c | 11 +-
bfd/hosts/x86-64linux.h | 195 +
bfd/po/bfd.pot | 712 +-
bfd/po/vi.po | 716 +-
bfd/targets.c | 2 -
bfd/version.h | 2 +-
bfd/vms-alpha.c | 8962 ++++++++++++++++++++
bfd/vms-gsd.c | 1082 ---
bfd/vms-hdr.c | 1382 ---
bfd/vms-lib.c | 4 +
bfd/vms-misc.c | 959 +--
bfd/vms-tir.c | 2808 ------
bfd/vms.c | 1518 ----
bfd/vms.h | 878 +--
configure | 2 +-
configure.ac | 2 +-
gdb/ChangeLog | 879 ++-
gdb/Makefile.in | 17 +-
gdb/NEWS | 60 +-
gdb/ada-lang.c | 118 +-
gdb/ada-lang.h | 5 +
gdb/ada-typeprint.c | 11 +
gdb/ada-valprint.c | 9 +-
gdb/alpha-mdebug-tdep.c | 36 +-
gdb/alpha-tdep.c | 134 +
gdb/amd64-linux-nat.c | 31 +-
gdb/amd64-linux-tdep.c | 30 +-
gdb/amd64-tdep.c | 2 -
gdb/amd64-tdep.h | 3 +
gdb/arm-linux-nat.c | 168 +-
gdb/arm-symbian-tdep.c | 4 +
gdb/arm-tdep.h | 1 +
gdb/arm-wince-tdep.c | 4 +
gdb/ax-gdb.c | 33 +-
gdb/ax-general.c | 112 +-
gdb/ax.h | 148 +-
gdb/breakpoint.c | 351 +-
gdb/breakpoint.h | 3 +
gdb/bsd-uthread.c | 2 +-
gdb/c-lang.c | 1 +
gdb/cli-out.c | 47 +-
gdb/cli-out.h | 18 +-
gdb/cli/cli-cmds.c | 180 +-
gdb/cli/cli-cmds.h | 5 +
gdb/config/djgpp/fnchange.lst | 1 +
gdb/configure | 7 +-
gdb/configure.ac | 7 +-
gdb/configure.tgt | 1 +
gdb/corelow.c | 5 +-
gdb/cp-valprint.c | 89 +-
gdb/dec-thread.c | 29 +-
gdb/defs.h | 6 +-
gdb/doc/ChangeLog | 77 +
gdb/doc/gdb.texinfo | 619 ++-
gdb/doc/refcard.tex | 3 +-
gdb/dwarf2-frame.c | 19 +-
gdb/dwarf2loc.c | 553 +-
gdb/dwarf2read.c | 103 +-
gdb/elfread.c | 4 +-
gdb/exec.c | 8 +-
gdb/f-exp.y | 4 +
gdb/f-lang.c | 7 +
gdb/f-lang.h | 1 +
gdb/filesystem.c | 103 +
gdb/filesystem.h | 58 +
gdb/frame.c | 17 +-
gdb/gdbarch.c | 23 +
gdb/gdbarch.h | 7 +
gdb/gdbarch.sh | 5 +
gdb/gdbserver/ChangeLog | 210 +
gdb/gdbserver/Makefile.in | 5 +
gdb/gdbserver/configure | 10 +-
gdb/gdbserver/configure.ac | 2 +-
gdb/gdbserver/configure.srv | 8 +-
gdb/gdbserver/event-loop.c | 23 +-
gdb/gdbserver/gdbreplay.c | 2 +-
gdb/gdbserver/inferiors.c | 1 +
gdb/gdbserver/linux-low.c | 145 +-
gdb/gdbserver/linux-low.h | 6 +-
gdb/gdbserver/linux-x86-low.c | 10 +-
gdb/gdbserver/nto-low.c | 7 +
gdb/gdbserver/nto-x86-low.c | 2 +-
gdb/gdbserver/regcache.c | 9 +
gdb/gdbserver/remote-utils.c | 145 +-
gdb/gdbserver/server.c | 277 +-
gdb/gdbserver/server.h | 24 +-
gdb/gdbserver/spu-low.c | 9 +-
gdb/gdbserver/target.c | 42 +
gdb/gdbserver/target.h | 37 +-
gdb/gdbserver/thread-db.c | 54 +-
gdb/gdbserver/tracepoint.c | 48 +-
gdb/gdbserver/win32-i386-low.c | 92 +-
gdb/gdbserver/win32-low.c | 87 +-
gdb/gdbserver/win32-low.h | 3 +
gdb/gdbtypes.c | 7 +
gdb/gdbtypes.h | 3 +
gdb/i386-cygwin-tdep.c | 4 +
gdb/i386-linux-nat.c | 44 +-
gdb/i386-linux-tdep.c | 55 +-
gdb/i386-linux-tdep.h | 2 +
gdb/i386-tdep.c | 2 +
gdb/jv-lang.c | 1 +
gdb/m2-lang.c | 1 +
gdb/m32c-tdep.c | 53 +-
gdb/main.c | 15 +
gdb/objc-lang.c | 19 +-
gdb/objfiles.c | 21 +-
gdb/objfiles.h | 1 +
gdb/p-lang.c | 4 +-
gdb/p-valprint.c | 13 +-
gdb/parse.c | 145 +
gdb/parser-defs.h | 20 +
gdb/ppc-linux-nat.c | 644 ++-
gdb/ppc-linux-tdep.c | 2 +-
gdb/printcmd.c | 123 +-
gdb/procfs.c | 171 +-
gdb/python/py-auto-load.c | 493 ++
gdb/python/py-block.c | 4 +-
gdb/python/py-cmd.c | 12 +-
gdb/python/py-frame.c | 14 +-
gdb/python/py-lazy-string.c | 4 +-
gdb/python/py-objfile.c | 4 +-
gdb/python/py-prettyprint.c | 230 +-
gdb/python/{py-objfile.c => py-progspace.c} | 118 +-
gdb/python/py-type.c | 5 +-
gdb/python/py-value.c | 22 +-
gdb/python/python-internal.h | 16 +-
gdb/python/python.c | 159 +-
gdb/python/python.h | 6 +-
gdb/remote-m32r-sdi.c | 2 +-
gdb/remote-sim.c | 2 +-
gdb/remote.c | 108 +-
gdb/rs6000-aix-tdep.c | 20 +-
gdb/scm-lang.c | 1 +
gdb/ser-base.c | 7 +
gdb/ser-pipe.c | 15 +-
gdb/solib-frv.c | 33 +-
gdb/solib-spu.c | 2 +-
gdb/solib-svr4.c | 39 +-
gdb/solib.c | 449 +-
gdb/solist.h | 8 +-
gdb/source.c | 4 +
gdb/sparc-tdep.c | 1 +
gdb/stabsread.c | 38 +
gdb/symtab.c | 27 +-
gdb/symtab.h | 9 +-
gdb/target.c | 6 +-
gdb/target.h | 7 +
gdb/testsuite/ChangeLog | 131 +
gdb/testsuite/Makefile.in | 6 +-
gdb/testsuite/gdb.ada/dyn_loc.exp | 53 +
gdb/testsuite/gdb.ada/dyn_loc/p.adb | 21 +
gdb/testsuite/gdb.ada/dyn_loc/pack.adb | 29 +
gdb/testsuite/gdb.ada/dyn_loc/pack.ads | 20 +
.../gdb.ada/info_types.c} | 31 +-
gdb/testsuite/gdb.ada/info_types.exp | 31 +
gdb/testsuite/gdb.arch/gcore.c | 70 +
gdb/testsuite/gdb.arch/system-gcore.exp | 238 +
gdb/testsuite/gdb.base/Makefile.in | 3 +-
gdb/testsuite/gdb.base/charset.c | 3 +
gdb/testsuite/gdb.base/charset.exp | 17 +
gdb/testsuite/gdb.base/help.exp | 4 +-
gdb/testsuite/gdb.base/pr10179-a.c | 17 +
gdb/testsuite/gdb.base/pr10179-b.c | 6 +
gdb/testsuite/gdb.base/pr10179.exp | 38 +
gdb/testsuite/gdb.base/solib-corrupted.exp | 46 +
gdb/testsuite/gdb.base/solib-display.exp | 158 +-
gdb/testsuite/gdb.base/source.exp | 13 +
gdb/testsuite/gdb.cp/Makefile.in | 2 +-
gdb/testsuite/gdb.cp/pr10687.cc | 24 +
gdb/testsuite/gdb.cp/pr10687.exp | 31 +
gdb/testsuite/gdb.cp/pr9167.cc | 36 +
gdb/testsuite/gdb.cp/pr9167.exp | 31 +
gdb/testsuite/gdb.fortran/logical.exp | 38 +
gdb/testsuite/gdb.fortran/logical.f90 | 31 +
gdb/testsuite/gdb.pascal/gdb11492.exp | 60 +
gdb/testsuite/gdb.pascal/gdb11492.pas | 40 +
gdb/testsuite/gdb.python/py-breakpoint.c | 2 +-
gdb/testsuite/gdb.python/py-frame.exp | 2 +-
gdb/testsuite/gdb.python/py-mi.exp | 35 +
gdb/testsuite/gdb.python/py-prettyprint.c | 17 +-
gdb/testsuite/gdb.python/py-prettyprint.exp | 1 +
gdb/testsuite/gdb.python/py-prettyprint.py | 29 +
.../gdb.python/py-progspace.c} | 20 +-
gdb/testsuite/gdb.python/py-progspace.exp | 47 +
.../{py-breakpoint.c => py-section-script.c} | 48 +-
gdb/testsuite/gdb.python/py-section-script.exp | 65 +
gdb/testsuite/gdb.python/py-section-script.py | 63 +
.../py-breakpoint.c => gdb.stabs/gdb11479.c} | 58 +-
gdb/testsuite/gdb.stabs/gdb11479.exp | 56 +
gdb/testsuite/gdb.threads/watchthreads.exp | 4 +-
gdb/testsuite/gdb.trace/save-trace.exp | 4 +-
gdb/testsuite/lib/gdb.exp | 3 +
gdb/tracepoint.c | 92 +-
gdb/tui/tui-out.c | 351 +-
gdb/tui/tui-regs.c | 14 +-
gdb/tui/tui-stack.c | 9 +-
gdb/ui-file.c | 3 +-
gdb/ui-out.c | 10 +-
gdb/ui-out.h | 8 +-
gdb/valprint.c | 8 +
gdb/version.in | 2 +-
gdb/windows-nat.c | 51 +-
gdb/windows-tdep.c | 403 +
gdb/windows-tdep.h | 4 +
include/ChangeLog | 46 +-
include/aout/ChangeLog | 16 +
include/aout/adobe.h | 13 +-
include/aout/aout64.h | 7 +-
include/aout/ar.h | 7 +-
include/aout/dynix3.h | 11 +-
include/aout/encap.h | 27 +-
include/aout/host.h | 7 +-
include/aout/hp.h | 27 +-
include/aout/hp300hpux.h | 20 +-
include/aout/ranlib.h | 25 +-
include/aout/reloc.h | 25 +-
include/aout/stab.def | 7 +-
include/aout/stab_gnu.h | 7 +-
include/aout/sun4.h | 7 +-
include/bout.h | 13 +-
include/coff/ChangeLog | 45 +-
include/coff/alpha.h | 7 +-
include/coff/apollo.h | 7 +-
include/coff/arm.h | 4 +-
include/coff/aux-coff.h | 7 +-
include/coff/ecoff.h | 7 +-
include/coff/external.h | 7 +-
include/coff/go32exe.h | 7 +-
include/coff/h8300.h | 7 +-
include/coff/h8500.h | 7 +-
include/coff/i386.h | 7 +-
include/coff/i860.h | 7 +-
include/coff/i960.h | 7 +-
include/coff/ia64.h | 7 +-
include/coff/internal.h | 9 +-
include/coff/m68k.h | 7 +-
include/coff/m88k.h | 7 +-
include/coff/maxq.h | 4 +-
include/coff/mcore.h | 27 +-
include/coff/mips.h | 7 +-
include/coff/mipspe.h | 7 +-
include/coff/or32.h | 7 +-
include/coff/pe.h | 4 +-
include/coff/powerpc.h | 7 +-
include/coff/rs6000.h | 19 +-
include/coff/rs6k64.h | 7 +-
include/coff/sh.h | 7 +-
include/coff/sparc.h | 7 +-
include/coff/ti.h | 8 +-
include/coff/tic30.h | 7 +-
include/coff/tic4x.h | 7 +-
include/coff/tic54x.h | 7 +-
include/coff/tic80.h | 7 +-
include/coff/w65.h | 7 +-
include/coff/we32k.h | 8 +-
include/coff/x86_64.h | 7 +-
include/coff/xcoff.h | 7 +-
include/coff/z80.h | 4 +-
include/coff/z8k.h | 7 +-
include/dis-asm.h | 2 +-
include/elf/ChangeLog | 78 +
include/elf/alpha.h | 27 +-
include/elf/arc.h | 27 +-
include/elf/arm.h | 20 +-
include/elf/avr.h | 6 +-
include/elf/bfin.h | 26 +-
include/elf/common.h | 6 +-
include/elf/cr16.h | 4 +-
include/elf/cr16c.h | 4 +-
include/elf/cris.h | 26 +-
include/elf/crx.h | 4 +-
include/elf/d10v.h | 4 +-
include/elf/d30v.h | 4 +-
include/elf/dlx.h | 4 +-
include/elf/dwarf.h | 31 +-
include/elf/external.h | 30 +-
include/elf/fr30.h | 26 +-
include/elf/frv.h | 26 +-
include/elf/h8.h | 4 +-
include/elf/hppa.h | 7 +-
include/elf/i370.h | 27 +-
include/elf/i386.h | 4 +-
include/elf/i860.h | 4 +-
include/elf/i960.h | 4 +-
include/elf/ia64.h | 7 +-
include/elf/internal.h | 81 +-
include/elf/ip2k.h | 8 +-
include/elf/iq2000.h | 26 +-
include/elf/lm32.h | 6 +-
include/elf/m32c.h | 26 +-
include/elf/m32r.h | 8 +-
include/elf/m68hc11.h | 4 +-
include/elf/m68k.h | 4 +-
include/elf/mcore.h | 29 +-
include/elf/mep.h | 9 +-
include/elf/microblaze.h | 6 +-
include/elf/mips.h | 27 +-
include/elf/mmix.h | 30 +-
include/elf/mn10200.h | 29 +-
include/elf/moxie.h | 4 +-
include/elf/msp430.h | 8 +-
include/elf/mt.h | 26 +-
include/elf/openrisc.h | 26 +-
include/elf/or32.h | 7 +-
include/elf/pj.h | 4 +-
include/elf/ppc.h | 34 +-
include/elf/ppc64.h | 27 +-
include/elf/reloc-macros.h | 4 +-
include/elf/rx.h | 6 +-
include/elf/s390.h | 4 +-
include/elf/sh.h | 5 +-
include/elf/sparc.h | 27 +-
include/elf/spu.h | 4 +-
include/elf/v850.h | 7 +-
include/elf/vax.h | 4 +-
include/elf/vxworks.h | 28 +-
include/elf/x86-64.h | 4 +-
include/elf/xc16x.h | 9 +-
include/elf/xstormy16.h | 26 +-
include/elf/xtensa.h | 4 +-
include/filenames.h | 50 +-
include/gdb/ChangeLog | 9 +
include/gdb/callback.h | 98 +-
include/gdb/remote-sim.h | 26 +-
include/hp-symtab.h | 5 +-
include/libiberty.h | 11 +
include/nlm/ChangeLog | 12 +-
include/nlm/alpha-ext.h | 27 +-
include/nlm/common.h | 32 +-
include/nlm/external.h | 36 +-
include/nlm/i386-ext.h | 27 +-
include/nlm/internal.h | 32 +-
include/nlm/ppc-ext.h | 27 +-
include/nlm/sparc32-ext.h | 27 +-
include/oasys.h | 8 +-
include/opcode/ChangeLog | 65 +-
include/opcode/alpha.h | 27 +-
include/opcode/arc.h | 7 +-
include/opcode/arm.h | 10 +-
include/opcode/avr.h | 7 +-
include/opcode/bfin.h | 27 +-
include/opcode/cgen.h | 28 +-
include/opcode/convex.h | 27 +-
include/opcode/cr16.h | 4 +-
include/opcode/cris.h | 27 +-
include/opcode/crx.h | 7 +-
include/opcode/d10v.h | 27 +-
include/opcode/d30v.h | 28 +-
include/opcode/dlx.h | 7 +-
include/opcode/h8300.h | 4 +-
include/opcode/hppa.h | 27 +-
include/opcode/i370.h | 28 +-
include/opcode/i386.h | 7 +-
include/opcode/i860.h | 30 +-
include/opcode/i960.h | 32 +-
include/opcode/ia64.h | 20 +-
include/opcode/m68hc11.h | 27 +-
include/opcode/m68k.h | 8 +-
include/opcode/m88k.h | 27 +-
include/opcode/maxq.h | 6 +-
include/opcode/mips.h | 25 +-
include/opcode/mmix.h | 27 +-
include/opcode/mn10200.h | 27 +-
include/opcode/mn10300.h | 27 +-
include/opcode/msp430.h | 7 +-
include/opcode/np1.h | 35 +-
include/opcode/ns32k.h | 28 +-
include/opcode/or32.h | 7 +-
include/opcode/pdp11.h | 31 +-
include/opcode/pj.h | 26 +-
include/opcode/pn.h | 27 +-
include/opcode/ppc.h | 31 +-
include/opcode/pyr.h | 4 +-
include/opcode/rx.h | 4 +-
include/opcode/s390.h | 4 +-
include/opcode/score-datadep.h | 4 +-
include/opcode/score-inst.h | 4 +-
include/opcode/sparc.h | 6 +-
include/opcode/spu-insns.h | 4 +-
include/opcode/spu.h | 5 +-
include/opcode/tic30.h | 28 +-
include/opcode/tic4x.h | 8 +-
include/opcode/tic54x.h | 28 +-
include/opcode/tic6x-insn-formats.h | 2 +-
include/opcode/tic80.h | 27 +-
include/opcode/v850.h | 27 +-
include/opcode/vax.h | 27 +-
include/progress.h | 31 +-
include/sha1.h | 4 +-
include/xtensa-isa-internal.h | 4 +-
include/xtensa-isa.h | 4 +-
libiberty/ChangeLog | 8 +
libiberty/Makefile.in | 2 +-
libiberty/lbasename.c | 28 +-
opcodes/ChangeLog | 10 +
opcodes/i386-dis.c | 21 +-
opcodes/po/opcodes.pot | 32 +-
opcodes/po/vi.po | 36 +-
sim/ChangeLog | 4 +
sim/README-HACKING | 245 +
sim/arm/ChangeLog | 4 +
sim/arm/wrapper.c | 2 +-
sim/avr/ChangeLog | 3 +
sim/avr/interp.c | 2 +-
sim/common/ChangeLog | 87 +
sim/common/cgen-scache.c | 2 +-
sim/common/dv-core.c | 2 +-
sim/common/dv-glue.c | 6 +-
sim/common/dv-pal.c | 4 +-
sim/common/dv-sockser.c | 7 +-
sim/common/dv-sockser.h | 5 +-
sim/common/hw-ports.c | 2 +-
sim/common/sim-fpu.c | 12 +-
sim/common/sim-fpu.h | 2 +-
sim/common/sim-hrw.c | 2 +-
sim/common/sim-hw.c | 16 +-
sim/common/sim-model.c | 33 +-
sim/common/sim-options.c | 16 +-
sim/common/sim-profile.c | 275 +-
sim/common/sim-profile.h | 18 +-
sim/common/sim-trace.c | 40 +-
sim/common/sim-utils.h | 2 +-
sim/common/sim-watch.c | 6 +-
sim/cr16/ChangeLog | 4 +
sim/cr16/interp.c | 2 +-
sim/d10v/ChangeLog | 4 +
sim/d10v/interp.c | 2 +-
sim/erc32/ChangeLog | 4 +
sim/erc32/interf.c | 2 +-
sim/frv/ChangeLog | 4 +
sim/frv/profile.c | 2 +-
sim/h8300/ChangeLog | 4 +
sim/h8300/compile.c | 2 +-
sim/m32c/ChangeLog | 6 +
sim/m32c/gdb-if.c | 2 +-
sim/m32c/mem.c | 4 +-
sim/m32c/mem.h | 2 +-
sim/mcore/ChangeLog | 4 +
sim/mcore/interp.c | 2 +-
sim/microblaze/ChangeLog | 3 +
sim/microblaze/interp.c | 2 +-
sim/mips/ChangeLog | 4 +
sim/mips/interp.c | 2 +-
sim/mn10300/ChangeLog | 7 +
sim/mn10300/dv-mn103ser.c | 33 +-
sim/moxie/ChangeLog | 4 +
sim/moxie/interp.c | 2 +-
sim/ppc/ChangeLog | 4 +
sim/ppc/sim_calls.c | 2 +-
sim/rx/ChangeLog | 4 +
sim/rx/gdb-if.c | 2 +-
sim/sh/ChangeLog | 4 +
sim/sh/interp.c | 4 +-
474 files changed, 22845 insertions(+), 12927 deletions(-)
copy gdb/windows-tdep.h => bfd/elf32-tic6x.h (57%)
create mode 100644 bfd/hosts/x86-64linux.h
create mode 100644 bfd/vms-alpha.c
delete mode 100644 bfd/vms-gsd.c
delete mode 100644 bfd/vms-hdr.c
delete mode 100644 bfd/vms-tir.c
delete mode 100644 bfd/vms.c
create mode 100644 gdb/filesystem.c
create mode 100644 gdb/filesystem.h
create mode 100644 gdb/python/py-auto-load.c
copy gdb/python/{py-objfile.c => py-progspace.c} (54%)
create mode 100644 gdb/testsuite/gdb.ada/dyn_loc.exp
create mode 100644 gdb/testsuite/gdb.ada/dyn_loc/p.adb
create mode 100644 gdb/testsuite/gdb.ada/dyn_loc/pack.adb
create mode 100644 gdb/testsuite/gdb.ada/dyn_loc/pack.ads
copy gdb/{windows-tdep.h => testsuite/gdb.ada/info_types.c} (65%)
create mode 100644 gdb/testsuite/gdb.ada/info_types.exp
create mode 100644 gdb/testsuite/gdb.arch/gcore.c
create mode 100644 gdb/testsuite/gdb.arch/system-gcore.exp
create mode 100644 gdb/testsuite/gdb.base/pr10179-a.c
create mode 100644 gdb/testsuite/gdb.base/pr10179-b.c
create mode 100644 gdb/testsuite/gdb.base/pr10179.exp
create mode 100644 gdb/testsuite/gdb.base/solib-corrupted.exp
create mode 100644 gdb/testsuite/gdb.cp/pr10687.cc
create mode 100644 gdb/testsuite/gdb.cp/pr10687.exp
create mode 100644 gdb/testsuite/gdb.cp/pr9167.cc
create mode 100644 gdb/testsuite/gdb.cp/pr9167.exp
create mode 100644 gdb/testsuite/gdb.fortran/logical.exp
create mode 100644 gdb/testsuite/gdb.fortran/logical.f90
create mode 100644 gdb/testsuite/gdb.pascal/gdb11492.exp
create mode 100644 gdb/testsuite/gdb.pascal/gdb11492.pas
copy gdb/{windows-tdep.h => testsuite/gdb.python/py-progspace.c} (66%)
create mode 100644 gdb/testsuite/gdb.python/py-progspace.exp
copy gdb/testsuite/gdb.python/{py-breakpoint.c => py-section-script.c} (53%)
create mode 100644 gdb/testsuite/gdb.python/py-section-script.exp
create mode 100644 gdb/testsuite/gdb.python/py-section-script.py
copy gdb/testsuite/{gdb.python/py-breakpoint.c => gdb.stabs/gdb11479.c} (52%)
create mode 100644 gdb/testsuite/gdb.stabs/gdb11479.exp
create mode 100644 sim/avr/ChangeLog
create mode 100644 sim/microblaze/ChangeLog
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index cf51807..0871057 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-14 Tristan Gingold <gingold@adacore.com>
+
+ * configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs.
+ * configure: Regenerate.
+
2010-04-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Merge from gcc:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 55aeba2..89ecc40 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,191 @@
+2010-04-23 Alan Modra <amodra@gmail.com>
+
+ * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
+ ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
+ throughout file.
+ (assign_file_positions_for_load_sections): Modify section in
+ segment warning to ignore overlay vmas.
+ * elf32-spu.c (spu_elf_object_p): Replace use of
+ ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
+
+2010-04-22 Nick Clifton <nickc@redhat.com>
+
+ * po/bfd.pot: Updated by the Translation project.
+ * po/vi.po: Updated Vietnamese translation.
+
+2010-04-22 Alan Modra <amodra@gmail.com>
+
+ * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
+ change. Tidy. Don't error on sections not allocated in segment.
+
+2010-04-15 Andrew Haley <aph@redhat.com>
+
+ * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
+ merge_exidx_entries.
+ * bfd-in2.h: Likewise.
+ * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
+ control merging of exidx entries.
+
+2010-04-20 Joseph Myers <joseph@codesourcery.com>
+
+ * elf32-tic6x.h: New.
+ * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
+ * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
+ elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
+ elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
+ elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
+ bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
+ (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
+ elf32_tic6x_relocate_section): Handle REL relocations.
+ (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
+
+2010-04-20 Jakub Jelinek <jakub@redhat.com>
+
+ * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
+ DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
+
+2010-04-19 Nick Clifton <nickc@redhat.com>
+
+ * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
+ arhdrpos variable.
+ * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
+ attribute to warned variable. Remove unused val, type and type2
+ variables.
+
+2010-04-16 Andreas Schwab <schwab@redhat.com>
+
+ * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
+ strict-aliasing rules.
+
+2010-04-16 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
+ (_bfd_vms_get_object_record): Always assume there is a pad byte
+ for alignment.
+
+ * vms-lib.c: Add a few comments.
+
+2010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
+ attributes in v2.08 of the ABI.
+
+2010-04-15 Alan Modra <amodra@gmail.com>
+
+ * config.bfd (vax*-*-*vms*): Delete.
+
+2010-04-14 Tristan Gingold <gingold@adacore.com>
+
+ * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
+ vms-tir.lo, vms.lo and add vms-alpha.lo
+ (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
+ vms-tir.c, vms.c and add vms-alpha.c
+ * Makefile.in: Regenerate.
+ * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
+ Remove vms_vax_vec.
+ * configure: Regenerate.
+ * targets.c (vms_vax_vec): Remove the declaration.
+ (_bfd_target_vector): Remove vms_vax_vec.
+ * vms-alpha.c: New file.
+ * vms-gsd.c: Removed, rewritten in vms-alpha.c
+ * vms-hdr.c: Ditto.
+ * vms-tir.c: Ditto.
+ * vms.c: Ditto.
+ * vms-misc.c: Fix indentation and comments. Replace most of
+ #if VMS_DEBUG/vms_debug with vms_debug2.
+ (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
+ (hash_string): Ditto.
+ (_bfd_vms_length_hash_symbol): Ditto.
+ (maybe_adjust_record_pointer_for_object): Ditto.
+ (_bfd_vms_get_object_record): Ditto.
+ (vms_get_remaining_object_record): Ditto.
+ (_bfd_vms_push): Ditto.
+ (_bfd_vms_pop): Ditto.
+ (_bfd_vms_get_header_values): Removed.
+ (_bfd_vms_get_first_record): Removed.
+ (vms_get_remaining_image_record): Removed.
+ (new_symbol): Removed.
+ (_bfd_vms_enter_symbol): Removed.
+ (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
+ (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
+ parameter with struct vms_rec_wr.
+ (_bfd_vms_output_push): Removed and replaced by ...
+ (_bfd_vms_output_begin_subrec): ... new function.
+ (_bfd_vms_output_alignment): Replace bfd parameter with
+ struct vms_rec_wr, and adjust.
+ (_bfd_vms_output_check): Ditto
+ (_bfd_vms_output_byte): Ditto.
+ (_bfd_vms_output_short): Ditto.
+ (_bfd_vms_output_long): Ditto.
+ (_bfd_vms_output_quad): Ditto.
+ (_bfd_vms_output_counted): Ditto.
+ (_bfd_vms_output_dump): Ditto.
+ (_bfd_vms_output_fill): Ditto.
+ (_bfd_vms_output_pop): Removed and replaced by ...
+ (_bfd_vms_output_end_subrec): ... new function.
+ (_bfd_vms_output_flush): Removed.
+ (_bfd_vms_output_align): New function.
+ (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
+ parameter.
+ (vms_convert_to_var): New function imported from vms.c
+ (vms_convert_to_var_1): Ditto.
+ (vms_convert_to_var_unix_filename): Ditto.
+ (vms_get_module_name): Ditto.
+ (get_vms_time_string): Ditto.
+ (vms_time_to_time_t): Ditto.
+ (vms_rawtime_to_time_t): Ditto.
+ * vms.h: All macros for the VMS file format are now in include/vms.
+ Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
+ have been removed.
+ (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
+ (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
+ (struct funcinfo, struct vms_private_data_struct): Ditto.
+ (struct vms_section_data_struct): Ditto.
+ (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
+ (vms_get_module_name, get_vms_time_string): New declarations.
+ (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
+ (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
+ (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
+ (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
+ (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
+ (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
+ (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
+ (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
+ (_bfd_vms_output_fill): Ditto.
+ (bfd_vms_set_section_flags): Ditto.
+
+2010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
+ exit due to merging the same weak symbol to test that the symbols are
+ actually weak.
+
+2010-04-13 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
+ when optimizing high got_tlsgd/ld insns.
+
+2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
+ define.
+ (HAVE_PRSTATUS32_T): Likewise.
+
+2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR corefiles/11467
+ * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
+ for x86_64-*-linux*.
+ * config.in: Regenerated.
+ * configure: Likewise.
+
+ * elf.c: Include CORE_HEADER if it is defined.
+
+2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * hosts/x86-64linux.h: New.
+
2010-04-09 Nick Clifton <nickc@redhat.com>
* aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index ac38177..ef545f5 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -391,12 +391,9 @@ BFD32_BACKENDS = \
vaxbsd.lo \
vaxnetbsd.lo \
versados.lo \
- vms-gsd.lo \
- vms-hdr.lo \
+ vms-alpha.lo \
vms-lib.lo \
vms-misc.lo \
- vms-tir.lo \
- vms.lo \
xcofflink.lo \
xsym.lo \
xtensa-isa.lo \
@@ -576,12 +573,9 @@ BFD32_BACKENDS_CFILES = \
vaxbsd.c \
vaxnetbsd.c \
versados.c \
- vms-gsd.c \
- vms-hdr.c \
+ vms-alpha.c \
vms-lib.c \
vms-misc.c \
- vms-tir.c \
- vms.c \
xcofflink.c \
xsym.c \
xtensa-isa.c \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index ed626c9..7134a70 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -688,12 +688,9 @@ BFD32_BACKENDS = \
vaxbsd.lo \
vaxnetbsd.lo \
versados.lo \
- vms-gsd.lo \
- vms-hdr.lo \
- vms-lib.lo \
vms-misc.lo \
- vms-tir.lo \
- vms.lo \
+ vms-alpha.lo \
+ vms-lib.lo \
xcofflink.lo \
xsym.lo \
xtensa-isa.lo \
@@ -873,12 +870,9 @@ BFD32_BACKENDS_CFILES = \
vaxbsd.c \
vaxnetbsd.c \
versados.c \
- vms-gsd.c \
- vms-hdr.c \
+ vms-alpha.c \
vms-lib.c \
vms-misc.c \
- vms-tir.c \
- vms.c \
xcofflink.c \
xsym.c \
xtensa-isa.c \
@@ -1488,12 +1482,9 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vaxnetbsd.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/verilog.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/versados.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-gsd.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-hdr.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-alpha.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-lib.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-misc.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-tir.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xcofflink.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xsym.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xtensa-isa.Plo@am__quote@
diff --git a/bfd/archive64.c b/bfd/archive64.c
index 0a1f6ed..067fbb9 100644
--- a/bfd/archive64.c
+++ b/bfd/archive64.c
@@ -1,6 +1,6 @@
/* MIPS-specific support for 64-bit ELF
- Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007
- Free Software Foundation, Inc.
+ Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007,
+ 2010 Free Software Foundation, Inc.
Ian Lance Taylor, Cygnus Support
Linker support added by Mark Mitchell, CodeSourcery, LLC.
<mark@codesourcery.com>
@@ -43,7 +43,6 @@ bfd_elf64_archive_slurp_armap (bfd *abfd)
{
struct artdata *ardata = bfd_ardata (abfd);
char nextname[17];
- file_ptr arhdrpos;
bfd_size_type i, parsed_size, nsymz, stringsize, carsym_size, ptrsize;
struct areltdata *mapdata;
bfd_byte int_buf[8];
@@ -55,7 +54,6 @@ bfd_elf64_archive_slurp_armap (bfd *abfd)
ardata->symdefs = NULL;
/* Get the name of the first element. */
- arhdrpos = bfd_tell (abfd);
i = bfd_bread (nextname, 16, abfd);
if (i == 0)
return TRUE;
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 07f2fae..cfa5225 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -906,7 +906,7 @@ extern bfd_boolean elf32_arm_build_stubs
/* ARM unwind section editing support. */
extern bfd_boolean elf32_arm_fix_exidx_coverage
- (struct bfd_section **, unsigned int, struct bfd_link_info *);
+(struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean);
/* PowerPC @tls opcode transform/validate. */
extern unsigned int _bfd_elf_ppc_at_tls_transform
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 9cf4f64..a3f8ccc 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -913,7 +913,7 @@ extern bfd_boolean elf32_arm_build_stubs
/* ARM unwind section editing support. */
extern bfd_boolean elf32_arm_fix_exidx_coverage
- (struct bfd_section **, unsigned int, struct bfd_link_info *);
+ (struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean);
/* PowerPC @tls opcode transform/validate. */
extern unsigned int _bfd_elf_ppc_at_tls_transform
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 1c1c988..ffae428 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -1511,10 +1511,6 @@ case "${targ}" in
targ_defvec=bfd_elf32_vax_vec
;;
- vax*-*-*vms*)
- targ_defvec=vms_vax_vec
- ;;
-
we32k-*-*)
targ_defvec=we32kcoff_vec
;;
diff --git a/bfd/config.in b/bfd/config.in
index 5881b8d..065c905 100644
--- a/bfd/config.in
+++ b/bfd/config.in
@@ -1,5 +1,8 @@
/* config.in. Generated from configure.in by autoheader. */
+/* Name of host specific core header file to include in elf.c. */
+#undef CORE_HEADER
+
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#undef ENABLE_NLS
diff --git a/bfd/configure b/bfd/configure
index f4aba27..7d16fab 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -13810,6 +13810,7 @@ fi
# If we are configured native, pick a core file support file.
COREFILE=
COREFLAG=
+CORE_HEADER=
TRAD_HEADER=
if test "${target}" = "${host}"; then
case "${host}" in
@@ -14034,6 +14035,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/vaxbsd.h"'
;;
+ x86_64-*-linux*)
+ CORE_HEADER='"hosts/x86-64linux.h"'
+ ;;
x86_64-*-netbsd* | x86_64-*-openbsd*)
COREFILE=netbsd-core.lo
;;
@@ -14701,6 +14705,13 @@ $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
fi
+if test -n "$CORE_HEADER"; then
+
+cat >>confdefs.h <<_ACEOF
+#define CORE_HEADER $CORE_HEADER
+_ACEOF
+
+fi
if test -n "$TRAD_HEADER"; then
cat >>confdefs.h <<_ACEOF
@@ -15272,9 +15283,8 @@ do
vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
versados_vec) tb="$tb versados.lo" ;;
- vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
+ vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
- vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
diff --git a/bfd/configure.in b/bfd/configure.in
index dfbd0a2..eb9d7e7 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -211,6 +211,7 @@ AM_ZLIB
# If we are configured native, pick a core file support file.
COREFILE=
COREFLAG=
+CORE_HEADER=
TRAD_HEADER=
if test "${target}" = "${host}"; then
case "${host}" in
@@ -443,6 +444,9 @@ changequote([,])dnl
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/vaxbsd.h"'
;;
+ x86_64-*-linux*)
+ CORE_HEADER='"hosts/x86-64linux.h"'
+ ;;
x86_64-*-netbsd* | x86_64-*-openbsd*)
COREFILE=netbsd-core.lo
;;
@@ -487,6 +491,10 @@ changequote([,])dnl
fi
AC_SUBST(COREFILE)
AC_SUBST(COREFLAG)
+if test -n "$CORE_HEADER"; then
+ AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
+ [Name of host specific core header file to include in elf.c.])
+fi
if test -n "$TRAD_HEADER"; then
AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
[Name of host specific header file to include in trad-core.c.])
@@ -919,9 +927,8 @@ do
vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
versados_vec) tb="$tb versados.lo" ;;
- vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
+ vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
- vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 11618c0..9b194aa 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -1950,13 +1950,15 @@ find_abstract_instance_name (struct comp_unit *unit,
switch (attr.name)
{
case DW_AT_name:
- /* Prefer DW_AT_MIPS_linkage_name over DW_AT_name. */
+ /* Prefer DW_AT_MIPS_linkage_name or DW_AT_linkage_name
+ over DW_AT_name. */
if (name == NULL)
name = attr.u.str;
break;
case DW_AT_specification:
name = find_abstract_instance_name (unit, &attr);
break;
+ case DW_AT_linkage_name:
case DW_AT_MIPS_linkage_name:
name = attr.u.str;
break;
@@ -2126,11 +2128,13 @@ scan_unit_for_symbols (struct comp_unit *unit)
break;
case DW_AT_name:
- /* Prefer DW_AT_MIPS_linkage_name over DW_AT_name. */
+ /* Prefer DW_AT_MIPS_linkage_name or DW_AT_linkage_name
+ over DW_AT_name. */
if (func->name == NULL)
func->name = attr.u.str;
break;
+ case DW_AT_linkage_name:
case DW_AT_MIPS_linkage_name:
func->name = attr.u.str;
break;
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 05e17c8..0c975dc 100644
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-04-09 20:37 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-04-09 20:37 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 11d4e9ae12b8f0af69795094b06f94a73d416570 (commit)
via 9db9366d60fc9ab89ad1c0fa87a179865a3959fc (commit)
via ce78ee2489391a63f426567525dd95cc810f9d6a (commit)
via 0a86927d5ab21634f7a3045e211106294681c3a4 (commit)
via cc167cb51970e9bb1047c4649aadcaa7db753c19 (commit)
via 3b86122f90a64bb6df4e82881f8f2ff84dcc8362 (commit)
via 4c0797587506811121d376a9a1bae75989be9652 (commit)
via b2c4e58d0aa2fd0ca42c3342183723b5c1f3f14c (commit)
via 8c08b82f83aa91f476c7a28f28aa1c6c28ced6b9 (commit)
via 6732966215286477029fe239966883e140dbef8a (commit)
via c86d68befad2b8e65a1ed79297d4ab3e7b70df9e (commit)
via 7c56ce7fac5a1fc63fbb8e870eb23ab3c347cb8e (commit)
via 50ba11bfbd98c77382666f0dced10fd6847b02f5 (commit)
via d78b864ebaf997c804a6085f4721d6095efe1cb4 (commit)
via 18e127d2a47b63d3cd583c2b9d0760243ab8d3b0 (commit)
via 980d51455ce50ddb70f2d041d34983a04cd789af (commit)
via ffd6d540460595f58238379b15eb29dadcdde176 (commit)
via 21fe208137529a8b48e9e1590d80aff8aaf882f8 (commit)
via 279e10d66f1cb952c52b84c6b439ecf9da0808f2 (commit)
via 1132471a8b57619dbb9f0183f3fc0705809c3234 (commit)
via 77ab259477c5c036a4cf63c4c3538eb80864e4c5 (commit)
via 084fa560a689c7ad6a426848e4b0b2d73f25f6cb (commit)
via a32a3824a1368fca82d31ee6e9e5ad4db466ca88 (commit)
via 603816a6140e4214520378150a1ee190725ba98f (commit)
via a61bc0d5dd1a4ae7ab30cafbbc885e96419dcdb5 (commit)
via e684154fe996ce95eedbdb45cd344a32ba8d33de (commit)
via d130f0d0d3d7c678d9d0d90fd2611451042752e2 (commit)
via d659712a8cd07b21f90089c1ac78874d67c94058 (commit)
via d17bf2e38a28ffacb76cd8e880f163a4bb8a1183 (commit)
via 55c3cfa08993adf8472f222391e1e145d137f872 (commit)
via d0aa472c6770baccb29dc37d0e64a81afda99911 (commit)
via 93383e6f24261a4140bfd760972e98668cd2244d (commit)
via 7a9fe1bacea2b45f885f4750ae9b49a4c7758085 (commit)
via f3162a56e7ede302bbc31dc588cce91fb0f76bc7 (commit)
via 27ad93b9b3ddf3b88df23a9f228905587a887df4 (commit)
via 8b810c0220bcaa267d857d26b81e1398caeb2d5b (commit)
via 764856f0e74e6e13648ddd2242819e59d209344b (commit)
via 86df4f48719d87e67489e8507ecfc043caf41089 (commit)
via efe95bc91df29b92dbebc317fe52308f9fb87fd3 (commit)
via 8f8911f2cb35b2b794bbdf0902d75e6e9bbe6874 (commit)
via d19fe7a1b7935fee4e8c784a8246c4dd69237112 (commit)
via 1126b8c32474dec859e4e9e93d4103c235a10265 (commit)
from 8ee8053cd1289310eedfdb50714154101b95c8fd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 11d4e9ae12b8f0af69795094b06f94a73d416570
Merge: 8ee8053cd1289310eedfdb50714154101b95c8fd 9db9366d60fc9ab89ad1c0fa87a179865a3959fc
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Apr 9 22:37:35 2010 +0200
Merge remote branch 'gdb/master'
commit 9db9366d60fc9ab89ad1c0fa87a179865a3959fc
Author: Stan Shebs <shebs@apple.com>
Date: Fri Apr 9 19:34:56 2010 +0000
2010-04-09 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (trace_dump_command): Include default-collect
expressions.
commit ce78ee2489391a63f426567525dd95cc810f9d6a
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Apr 9 15:31:40 2010 +0000
* symtab.c (find_function_start_sal): Never return SAL pointing
before function start address, even if line info is missing.
commit 0a86927d5ab21634f7a3045e211106294681c3a4
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Apr 9 15:26:53 2010 +0000
* NEWS: Mention tracepoints support.
commit cc167cb51970e9bb1047c4649aadcaa7db753c19
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Apr 9 15:22:08 2010 +0000
gdb/
* tracepoint.c (trace_status_mi): Report disconnected tracing and
circular trace buffer statuses.
gdb/doc/
* gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>:
Describe the `circular' and `disconnected' fields.
commit 3b86122f90a64bb6df4e82881f8f2ff84dcc8362
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Apr 9 15:15:02 2010 +0000
gdb/
* config/djgpp/fnchange.lst: Fix typo in translations for
symbol-without-target_section.exp and symbol-without-target_section.c.
commit 4c0797587506811121d376a9a1bae75989be9652
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Apr 9 15:12:31 2010 +0000
Mention unavailable and invisible registers.
2010-04-09 H.J. Lu <hongjiu.lu@intel.com>
* gdb.texinfo (maint print registers): Mention unavailable and
invisible registers.
commit b2c4e58d0aa2fd0ca42c3342183723b5c1f3f14c
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Apr 9 14:40:48 2010 +0000
* tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
commit 8c08b82f83aa91f476c7a28f28aa1c6c28ced6b9
Author: Nick Clifton <nickc@redhat.com>
Date: Fri Apr 9 14:40:14 2010 +0000
bfd/ChangeLog
2010-04-09 Nick Clifton <nickc@redhat.com>
* aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
* elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
variables htab and hdr_info and mark info parameter as unused.
* elf.c (prep_headers): Remove unused variable i_phdrp.
(_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
* elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
as unused.
* peXXigen.c (pe_print_reloc): Remove unused variable datasize.
* verilog.c (verilog_write_section): Remove unused variable
address.
binutils/ChangeLog
2010-04-09 Nick Clifton <nickc@redhat.com>
* dwarf.c (process_debug_info): Remove unused variable
cu_abbrev_offset_ptr.
(display_debug_lines_decoded): Remove unused variable prev_line.
* elfedit.c (process_archive): Remove unused variable
file_name_size.
* ieee.c (ieee_start_compilation_unit): Remove unused variable
nindx.
(ieee_set_type): Remove unused variables info, targetindx and
baseindx.
* objdump.c (disassmble_byte): Remove unused variable done_dot.
* rddbg.c (read_section_stabs_debugging_info): Remove unused
variable other.
* readelf.c (dump_section_as_strings): Remove unused variable
addr.
(process_archive): Remove unused variable file_name_size.
* stabs.c (parse_stab_string): Mark desc parameter as unused.
Remove unused variable lineno.
(parse_stab_struct_type): Remove unused variable orig.
(stab_demangle_type): Remove unused variables constp, volatilep
and hold.
gas/ChangeLog
2010-04-09 Nick Clifton <nickc@redhat.com>
* as.c (create_obj_attrs_section): Remove unused variable addr.
* listing.c (listing_listing): Remove unused variable message.
* read.c: Remove unnecessary register type qualifiers.
(s_mri): Only define/use old_flag variable if MRI_MODE_CHANGE is
defined.
ld/ChangeLog
2010-04-09 Nick Clifton <nickc@redhat.com>
* ldlang.c (wild_sort): Remove unused variable section_name.
opcodes/ChangeLog
2010-04-09 Nick Clifton <nickc@redhat.com>
* i386-dis.c (print_insn): Remove unused variable op.
(OP_sI): Remove unused variable mask.
commit 6732966215286477029fe239966883e140dbef8a
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Apr 9 13:56:07 2010 +0000
* breakpoint.c (condition_command): Pass condition expression to
set_breakpoint_condition stripped from breakpoint number.
commit c86d68befad2b8e65a1ed79297d4ab3e7b70df9e
Author: pmuldoon <pmuldoon>
Date: Fri Apr 9 09:41:40 2010 +0000
2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
Tom Tromey <tromey@redhat.com>
* breakpoint.c (condition_command): Simplify. Move condition
setting code to ...
(set_breakpoint_condition): ... here. New function.
* breakpoint.h (set_breakpoint_condition): Declare.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-breakpoint.o): New rule.
* python/py-breakpoint.c: New file.
* python/python-internal.h (gdbpy_breakpoints)
(gdbpy_initialize_breakpoints): Declare.
(GDB_PY_SET_HANDLE_EXCEPTION) Define.
2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-breakpoint.exp: New File.
* gdb.python/py-breakpoint.C: Ditto.
2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Breakpoints In Python): New Node.
commit 7c56ce7fac5a1fc63fbb8e870eb23ab3c347cb8e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Apr 9 03:39:59 2010 +0000
gdb/gdbserver/
* server.h (LONGEST): New.
(struct thread_info) <while_stepping>: New field.
(unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
Declare.
(initialize_tracepoint, handle_tracepoint_general_set)
(handle_tracepoint_query, tracepoint_finished_step)
(tracepoint_was_hit, release_while_stepping_state_list):
(current_traceframe): Declare.
* server.c (handle_general_set): Handle tracepoint packets.
(read_memory): New.
(write_memory): New.
(handle_search_memory_1): Use read_memory.
(handle_query): Report support for conditional tracepoints, trace
state variables, and tracepoint sources. Handle tracepoint
queries.
(main): Initialize the tracepoints module.
(process_serial_event): Handle traceframe reads/writes.
* linux-low.c (handle_tracepoints): New.
(linux_wait_1): Call it.
(linux_resume_one_lwp): Handle while-stepping.
(linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
(linux_target_ops): Install them.
* linux-low.h (struct linux_target_ops) <supports_tracepoints>:
New field.
* linux-x86-low.c (x86_supports_tracepoints): New.
(the_low_target). Install it.
* mem-break.h (delete_breakpoint): Declare.
* mem-break.c (delete_breakpoint): Make external.
* target.h (struct target_ops): Add `supports_tracepoints',
`read_pc', and `write_pc' fields.
(target_supports_tracepoints): Define.
* utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
(phex_nz): New.
* regcache.h (struct regcache) <registers_owned>: New field.
(init_register_cache, regcache_cpy): Declare.
(regcache_read_pc, regcache_write_pc): Declare.
(register_cache_size): Declare.
(supply_regblock): Declare.
* regcache.c (init_register_cache): New.
(new_register_cache): Use it.
(regcache_cpy): New.
(register_cache_size): New.
(supply_regblock): New.
(regcache_read_pc, regcache_write_pc): New.
* tracepoint.c: New.
* Makefile.in (OBS): Add tracepoint.o.
(tracepoint.o): New rule.
gdb/
* regformats/regdat.sh: Include server.h. Don't include
regcache.h.
commit 50ba11bfbd98c77382666f0dced10fd6847b02f5
Author: Stan Shebs <shebs@apple.com>
Date: Fri Apr 9 03:00:56 2010 +0000
2010-04-08 Stan Shebs <stan@codesourcery.com>
Pedro Alves <pedro@codesourcery.com>
* tracepoint.h (struct trace_status): New fields disconnected_tracing
and circular_buffer.
(disconnect_tracing): Rename from disconnect_or_stop_tracing.
* tracepoint.c (trace_status_command): Display target's status for
disconnected tracing and circular buffer.
(disconnect_tracing): Rename from disconnect_or_stop_tracing, add
query for non-disconnected-tracing case, remove the stop_tracing
call.
(tfile_open): Clear disconnected and circular buffer status.
(trace_save): Save disconnected and circular buffer status.
(parse_trace_status): Parse disconnected and circular buffer status,
also recognize disconnected as a stop reason.
* remote.c (remote_set_disconnected_tracing): Only set
QTDisconnected if the remote end supports disconnected tracing.
Warn otherwise, if trying to enable disconnected tracing.
* infcmd.c (detach_command): Update disconnect_tracing call.
* cli/cli-cmds.c (quit_command): Ditto.
* gdb.texinfo (Tracepoint Packets): Describe disconn and circular
trace status fields.
commit d78b864ebaf997c804a6085f4721d6095efe1cb4
Author: Stan Shebs <shebs@apple.com>
Date: Fri Apr 9 00:49:59 2010 +0000
2010-04-08 Stan Shebs <stan@codesourcery.com>
* gdb.trace/actions.exp: Clear default-collect.
* gdb.trace/save-trace.exp: Clear default-collect.
commit 18e127d2a47b63d3cd583c2b9d0760243ab8d3b0
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Apr 9 00:18:52 2010 +0000
Replace abort with internal_error.
2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
* i387-tdep.c (i387_collect_xsave): Replace abort with
internal_error.
commit 980d51455ce50ddb70f2d041d34983a04cd789af
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Apr 9 00:00:05 2010 +0000
daily update
commit ffd6d540460595f58238379b15eb29dadcdde176
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Apr 9 00:00:03 2010 +0000
*** empty log message ***
commit 21fe208137529a8b48e9e1590d80aff8aaf882f8
Author: Stan Shebs <shebs@apple.com>
Date: Thu Apr 8 23:13:46 2010 +0000
2010-04-08 Stan Shebs <stan@codesourcery.com>
* breakpoint.c (default_collect_info): New function.
(breakpoints_info): Call it.
(maintenance_info_breakpoints): Ditto.
(tracepoints_info): Ditto.
commit 279e10d66f1cb952c52b84c6b439ecf9da0808f2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Apr 8 22:50:33 2010 +0000
Re-indent i387_collect_xsave.
commit 1132471a8b57619dbb9f0183f3fc0705809c3234
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Apr 8 22:32:35 2010 +0000
Support i386 without SSE.
gdb/
2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
* i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
if HAVE_PTRACE_GETFPXREGS is defined.
(i386_linux_read_description): Set have_ptrace_getfpxregs and
have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
* i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
(i386_linux_core_read_description): Return tdesc_i386_mmx_linux
if .reg-xfp section doesn't exist.
(_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
* i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
* i386-tdep.c: Include "features/i386/i386-mmx.c".
(i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
(i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
(i386_gdbarch_init): Update comments.
(_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
* common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
* config/djgpp/fnchange.lst: Add i386 MMX XML files.
* features/Makefile (i386/i386-mmx-expedite): New.
(i386/i386-mmx-linux-expedite): Likewise.
($(outdir)/i386/i386-mmx.dat): Likewise.
($(outdir)/i386/i386-mmx-linux.dat): Likewise.
* features/i386/i386-mmx-linux.c: New.
* features/i386/i386-mmx-linux.xml: Likewise.
* features/i386/i386-mmx.c: Likewise.
* features/i386/i386-mmx.xml: Likewise.
* regformats/i386/i386-mmx-linux.dat: Likewise.
* regformats/i386/i386-mmx.dat: Likewise.
* features/Makefile (WHICH): Add i386/i386-mmx and
i386/i386-mmx-linux.
gdb/doc/
2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
* gdb.texinfo (i386 Features): Make org.gnu.gdb.i386.avx
optional. Make org.gnu.gdb.i386.avx requires
org.gnu.gdb.i386.avx.
gdb/gdbserver/
2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
(i386-mmx.o): New.
(i386-mmx.c): Likewise.
(i386-mmx-linux.o): Likewise.
(i386-mmx-linux.c): Likewise.
* configure.srv (srv_i386_regobj): Add i386-mmx.o.
(srv_i386_linux_regobj): Add i386-mmx-linux.o.
(srv_i386_xmlfiles): Add i386/i386-mmx.xml.
(srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
* linux-x86-low.c (init_registers_i386_mmx_linux): New.
(x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
commit 77ab259477c5c036a4cf63c4c3538eb80864e4c5
Author: Doug Evans <dje@google.com>
Date: Thu Apr 8 21:08:39 2010 +0000
* source.c (openp): Skip $cdir in PATH.
doc/
* gdb.texinfo (Command Files): Document that gdb skips $cdir in
search path, and document that gdb only scans the search path if
the script's path doesn't specify a directory.
commit 084fa560a689c7ad6a426848e4b0b2d73f25f6cb
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Thu Apr 8 19:44:08 2010 +0000
/:
Merge from gcc:
PR bootstrap/43615
PR bootstrap/43328
Revert:
2010-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac: Do not pass --enable-multilib nor
--disable-multilib in baseargs. Accept explicitly passed
--enable_multilib.
* configure: Regenerate.
commit a32a3824a1368fca82d31ee6e9e5ad4db466ca88
Author: pmuldoon <pmuldoon>
Date: Thu Apr 8 10:47:56 2010 +0000
2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
* python/py-lazy-string.c (stpy_convert_to_value): Add i8n to error string.
commit 603816a6140e4214520378150a1ee190725ba98f
Author: pmuldoon <pmuldoon>
Date: Thu Apr 8 10:28:41 2010 +0000
2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
PR python/11417
* python/py-lazy-string.c (stpy_convert_to_value): Check for
a NULL address.
(gdbpy_create_lazy_string_object): Allow strings with a NULL
address and a zero length.
2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-value: Add null string variable.
(test_lazy_string): Test zero length, NULL address lazy
strings.
commit a61bc0d5dd1a4ae7ab30cafbbc885e96419dcdb5
Author: Hui Zhu <teawater@gmail.com>
Date: Thu Apr 8 09:23:05 2010 +0000
2010-04-08 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_process_record): Add support for insn
rdtsc.
commit e684154fe996ce95eedbdb45cd344a32ba8d33de
Author: Doug Evans <dje@google.com>
Date: Thu Apr 8 04:57:23 2010 +0000
* python/python.c (source_python_script): Use ensure_python_env
to prepare environment for script.
commit d130f0d0d3d7c678d9d0d90fd2611451042752e2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Apr 8 02:09:58 2010 +0000
* internal.h (ELF_IS_SECTION_IN_SEGMENT): PT_PHDR program headers
cannot contain any sections.
commit d659712a8cd07b21f90089c1ac78874d67c94058
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Apr 8 00:00:05 2010 +0000
daily update
commit d17bf2e38a28ffacb76cd8e880f163a4bb8a1183
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Apr 8 00:00:03 2010 +0000
*** empty log message ***
commit 55c3cfa08993adf8472f222391e1e145d137f872
Author: DJ Delorie <dj@delorie.com>
Date: Wed Apr 7 21:16:24 2010 +0000
merge from gcc
commit d0aa472c6770baccb29dc37d0e64a81afda99911
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 7 18:49:43 2010 +0000
Add x86 AVX support to gdbserver.
2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in (clean): Updated.
(i386-avx.o): New.
(i386-avx.c): Likewise.
(i386-avx-linux.o): Likewise.
(i386-avx-linux.c): Likewise.
(amd64-avx.o): Likewise.
(amd64-avx.c): Likewise.
(amd64-avx-linux.o): Likewise.
(amd64-avx-linux.c): Likewise.
* configure.srv (srv_i386_regobj): Add i386-avx.o.
(srv_i386_linux_regobj): Add i386-avx-linux.o.
(srv_amd64_regobj): Add amd64-avx.o.
(srv_amd64_linux_regobj): Add amd64-avx-linux.o.
(srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
(srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
(srv_i386_xmlfiles): Add i386/i386-avx.xml.
(srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
(srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
(srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
* i387-fp.c: Include "i386-xstate.h".
(i387_xsave): New.
(i387_cache_to_xsave): Likewise.
(i387_xsave_to_cache): Likewise.
(x86_xcr0): Likewise.
* i387-fp.h (i387_cache_to_xsave): Likewise.
(i387_xsave_to_cache): Likewise.
(x86_xcr0): Likewise.
* linux-arm-low.c (target_regsets): Initialize nt_type to 0.
* linux-crisv32-low.c (target_regsets): Likewise.
* linux-m68k-low.c (target_regsets): Likewise.
* linux-mips-low.c (target_regsets): Likewise.
* linux-ppc-low.c (target_regsets): Likewise.
* linux-s390-low.c (target_regsets): Likewise.
* linux-sh-low.c (target_regsets): Likewise.
* linux-sparc-low.c (target_regsets): Likewise.
* linux-xtensa-low.c (target_regsets): Likewise.
* linux-low.c: Include <sys/uio.h>.
(regsets_fetch_inferior_registers): Support nt_type.
(regsets_store_inferior_registers): Likewise.
(linux_process_qsupported): New.
(linux_target_ops): Add linux_process_qsupported.
* linux-low.h (regset_info): Add nt_type.
(linux_target_ops): Add process_qsupported.
* linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
and <sys/uio.h>.
(init_registers_i386_avx_linux): New.
(init_registers_amd64_avx_linux): Likewise.
(xmltarget_i386_linux_no_xml): Likewise.
(xmltarget_amd64_linux_no_xml): Likewise.
(PTRACE_GETREGSET): Likewise.
(PTRACE_SETREGSET): Likewise.
(x86_fill_xstateregset): Likewise.
(x86_store_xstateregset): Likewise.
(use_xml): Likewise.
(x86_linux_update_xmltarget): Likewise.
(x86_linux_process_qsupported): Likewise.
(target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
(x86_arch_setup): Don't call init_registers_amd64_linux nor
init_registers_i386_linux here. Call
x86_linux_update_xmltarget.
(the_low_target): Add x86_linux_process_qsupported.
* server.c (handle_query): Call target_process_qsupported.
* target.h (target_ops): Add process_qsupported.
(target_process_qsupported): New.
commit 93383e6f24261a4140bfd760972e98668cd2244d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 7 18:47:57 2010 +0000
Checkin gdb.arch/i386-avx.exp.
commit 7a9fe1bacea2b45f885f4750ae9b49a4c7758085
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 7 18:46:49 2010 +0000
Support amd64 AVX.
gdb/
2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
* amd64-linux-nat.c: Include "regset.h", "elf/common.h",
<sys/uio.h> and "i386-xstate.h".
(PTRACE_GETREGSET): New.
(PTRACE_SETREGSET): Likewise.
(have_ptrace_getregset): Likewise.
(amd64_linux_gregset64_reg_offset): Include 16 upper YMM
registers.
(amd64_linux_gregset32_reg_offset): Include 8 upper YMM
registers.
(amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
(amd64_linux_store_inferior_registers): Likewise.
(amd64_linux_read_description): Check and enable AVX target
descriptions.
* amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
and "features/i386/amd64-avx-linux.c".
(amd64_linux_regset_sections): New.
(amd64_linux_core_read_description): Check and enable AVX
target description.
(amd64_linux_init_abi): Set xsave_xcr0_offset. Call
set_gdbarch_core_regset_sections.
(_initialize_amd64_linux_tdep): Call
initialize_tdesc_amd64_avx_linux.
* amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
(tdesc_amd64_avx_linux): New.
(amd64_linux_update_xstateregset): Likewise.
* amd64-tdep.c: Include "features/i386/amd64-avx.c".
(amd64_ymm_names): New.
(amd64_ymmh_names): Likewise.
(amd64_register_name): Likewise.
(amd64_supply_xstateregset): Likewise.
(amd64_collect_xstateregset): Likewise.
(amd64_supply_xsave): Likewise.
(amd64_collect_xsave): Likewise.
(AMD64_NUM_REGS): Removed.
(amd64_dwarf_reg_to_regnum): Return %ymmN register number for
%xmmN if AVX is available.
(amd64_pseudo_register_name): Support pseudo YMM registers.
(amd64_regset_from_core_section): Support .reg-xstate section.
(amd64_init_abi): Set ymmh_register_names, num_ymm_regs
and ymm0h_regnum. Call set_gdbarch_register_name.
(amd64_init_abi): Call initialize_tdesc_amd64_avx.
* amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
AMD64_YMM15H_REGNUM.
(AMD64_NUM_REGS): New.
(amd64_supply_xsave): Likewise.
(amd64_collect_xsave): Likewise.
(amd64_register_name): Removed.
(amd64_register_type): Likewise.
gdb/testsuite/
2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
* gdb.arch/i386-avx.c: New.
* gdb.arch/i386-avx.exp: Likewise.
* gdb.arch/i386-cpuid.h: Updated from gcc 4.4.
commit f3162a56e7ede302bbc31dc588cce91fb0f76bc7
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 7 18:44:51 2010 +0000
Support i387 AVX.
2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
* i387-tdep.c: Include "i386-xstate.h".
(XSAVE_XSTATE_BV_ADDR): New.
(xsave_avxh_offset): Likewise.
(XSAVE_AVXH_ADDR): Likewise.
(i387_supply_xsave): Likewise.
(i387_collect_xsave): Likewise.
* i387-tdep.h (I387_NUM_YMM_REGS): New.
(I387_YMM0H_REGNUM): Likewise.
(I387_YMMENDH_REGNUM): Likewise.
(i387_supply_xsave): Likewise.
(i387_collect_xsave): Likewise.
commit 27ad93b9b3ddf3b88df23a9f228905587a887df4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 7 18:43:44 2010 +0000
Support i386 AVX.
2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
* i386-linux-nat.c: Include "regset.h", "elf/common.h",
<sys/uio.h> and "i386-xstate.h".
(PTRACE_GETREGSET): New.
(PTRACE_SETREGSET): Likewise.
(fetch_xstateregs): Likewise.
(store_xstateregs): Likewise.
(GETXSTATEREGS_SUPPLIES): Likewise.
(regmap): Include 8 upper YMM registers.
(i386_linux_fetch_inferior_registers): Support XSAVE extended
state.
(i386_linux_store_inferior_registers): Likewise.
(i386_linux_read_description): Check and enable AVX target
descriptions.
* i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
"i386-xstate.h" and "features/i386/i386-avx-linux.c".
(i386_linux_regset_sections): Add ".reg-xstate".
(i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
(i386_linux_core_read_xcr0): New.
(i386_linux_core_read_description): Check and enable AVX target
description.
(i386_linux_init_abi): Set xsave_xcr0_offset.
(_initialize_i386_linux_tdep): Call
initialize_tdesc_i386_avx_linux.
* i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
(i386_linux_core_read_xcr0): New.
(tdesc_i386_avx_linux): Likewise.
(I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
* i386-tdep.c: Include "i386-xstate.h" and
"features/i386/i386-avx.c".
(i386_ymm_names): New.
(i386_ymmh_names): Likewise.
(i386_ymmh_regnum_p): Likewise.
(i386_ymm_regnum_p): Likewise.
(i386_xmm_regnum_p): Likewise.
(i386_register_name): Likewise.
(i386_ymm_type): Likewise.
(i386_supply_xstateregset): Likewise.
(i386_collect_xstateregset): Likewise.
(i386_sse_regnum_p): Removed.
(i386_pseudo_register_name): Support pseudo YMM registers.
(i386_pseudo_register_type): Likewise.
(i386_pseudo_register_read): Likewise.
(i386_pseudo_register_write): Likewise.
(i386_dbx_reg_to_regnum): Return %ymmN register number for
%xmmN if AVX is available.
(i386_regset_from_core_section): Support .reg-xstate section.
(i386_register_reggroup_p): Supper upper YMM and YMM registers.
(i386_process_record): Replace i386_sse_regnum_p with
i386_xmm_regnum_p.
(i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
(i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
Set ymm0_regnum.
(_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
* i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
i386_ymm_type.
(i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
(I386_AVX_NUM_REGS): New.
(i386_xmm_regnum_p): Likewise.
(i386_ymm_regnum_p): Likewise.
(i386_ymmh_regnum_p): Likewise.
* common/i386-xstate.h: New.
commit 8b810c0220bcaa267d857d26b81e1398caeb2d5b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 7 18:41:47 2010 +0000
Add x86 AVX XML files.
2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
* config/djgpp/fnchange.lst: Add x86 AVX XML files.
* features/Makefile (WHICH): Add i386/i386-avx,
i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
(i386/i386-avx-expedite): New.
(i386/i386-avx-linux-expedite): Likewise.
(i386/x86-64-avx-expedite):Likewise.
(i386/x86-64-avx-linux-expedite): Likewise.
($(outdir)/i386/i386-avx.dat): New dependency.
($(outdir)/i386/i386-avx-linux.dat): Likewise.
($(outdir)/i386/x86-avx-64.dat): Likewise.
($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
* features/i386/32bit-avx.xml: New.
* features/i386/64bit-avx.xml: Likewise.
* features/i386/i386-avx-linux.c: Likewise.
* features/i386/i386-avx-linux.xml: Likewise.
* features/i386/i386-avx.c: Likewise.
* features/i386/i386-avx.xml: Likewise.
* features/i386/x86-64-avx-linux.c: Likewise.
* features/i386/x86-64-avx-linux.xml: Likewise.
* features/i386/x86-64-avx.c: Likewise.
* features/i386/x86-64-avx.xml: Likewise.
* regformats/i386/i386-avx-linux.dat: Likewise.
* regformats/i386/i386-avx.dat: Likewise.
* regformats/i386/x86-64-avx-linux.dat: Likewise.
* regformats/i386/x86-64-avx.dat: Likewise.
commit 764856f0e74e6e13648ddd2242819e59d209344b
Author: Doug Evans <dje@google.com>
Date: Wed Apr 7 16:54:37 2010 +0000
* top.c (source_file_name): Make const char *.
* top.h (source_file_name): Update.
* cli/cli-script.c (source_cleanup_lines_args): Make old_file
const char *.
(script_from_file): Change `file' arg to const char *.
* cli/cli-script.h (script_from_file): Update.
commit 86df4f48719d87e67489e8507ecfc043caf41089
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Apr 7 07:19:28 2010 +0000
* configure: Regenerate.
commit efe95bc91df29b92dbebc317fe52308f9fb87fd3
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Apr 7 07:19:00 2010 +0000
* warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
* configure: Regenerate.
commit 8f8911f2cb35b2b794bbdf0902d75e6e9bbe6874
Author: Doug Evans <dje@google.com>
Date: Wed Apr 7 03:47:22 2010 +0000
Fix regexps in previous checkin.
commit d19fe7a1b7935fee4e8c784a8246c4dd69237112
Author: Doug Evans <dje@google.com>
Date: Wed Apr 7 03:42:54 2010 +0000
* cli/cli-cmds.c (source_command): Run cleanups.
testsuite/
* gdb.base/source-test.gdb: New file.
* gdb.base/source.exp: Test source -v.
commit 1126b8c32474dec859e4e9e93d4103c235a10265
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Apr 7 02:41:29 2010 +0000
Don't bind unique symbol locally.
bfd/
2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11434
* elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
ld/testsuite/
2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11434
* ld/testsuite/ld-x86-64/unique1.d: New.
* ld/testsuite/ld-x86-64/unique1.s: Likewise.
* ld-x86-64/x86-64.exp: Run unique1.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 12 +
bfd/ChangeLog | 23 +
bfd/aoutx.h | 6 +-
bfd/configure | 16 +-
bfd/elf-bfd.h | 5 +-
bfd/elf-eh-frame.c | 7 +-
bfd/elf.c | 7 +-
bfd/elf32-i386.c | 2 +-
bfd/peXXigen.c | 4 +-
bfd/verilog.c | 5 +-
bfd/version.h | 2 +-
bfd/warning.m4 | 5 +-
configure | 11 +-
configure.ac | 11 +-
gdb/ChangeLog | 338 ++
gdb/Makefile.in | 6 +
gdb/NEWS | 9 +-
gdb/amd64-linux-nat.c | 114 +-
gdb/amd64-linux-tdep.c | 26 +-
gdb/amd64-linux-tdep.h | 3 +-
gdb/amd64-tdep.c | 127 +-
gdb/amd64-tdep.h | 20 +-
gdb/breakpoint.c | 128 +-
gdb/breakpoint.h | 4 +
gdb/cli/cli-cmds.c | 6 +-
gdb/cli/cli-script.c | 4 +-
gdb/cli/cli-script.h | 2 +-
gdb/common/i386-xstate.h | 42 +
gdb/config/djgpp/fnchange.lst | 16 +-
gdb/doc/ChangeLog | 33 +
gdb/doc/gdb.texinfo | 215 ++-
gdb/features/Makefile | 17 +
gdb/features/i386/32bit-avx.xml | 18 +
gdb/features/i386/64bit-avx.xml | 26 +
gdb/features/i386/amd64-avx-linux.c | 171 +
gdb/features/i386/amd64-avx-linux.xml | 18 +
gdb/features/i386/amd64-avx.c | 166 +
gdb/features/i386/amd64-avx.xml | 16 +
gdb/features/i386/i386-avx-linux.c | 147 +
gdb/features/i386/i386-avx-linux.xml | 18 +
gdb/features/i386/i386-avx.c | 142 +
gdb/features/i386/i386-avx.xml | 16 +
gdb/features/i386/i386-mmx-linux.c | 76 +
gdb/features/i386/i386-mmx-linux.xml | 16 +
gdb/features/i386/i386-mmx.c | 71 +
gdb/features/i386/i386-mmx.xml | 14 +
gdb/gdbserver/ChangeLog | 154 +
gdb/gdbserver/Makefile.in | 24 +-
gdb/gdbserver/configure.srv | 20 +-
gdb/gdbserver/i387-fp.c | 267 ++
gdb/gdbserver/i387-fp.h | 5 +
gdb/gdbserver/linux-arm-low.c | 8 +-
gdb/gdbserver/linux-crisv32-low.c | 4 +-
gdb/gdbserver/linux-low.c | 156 +-
gdb/gdbserver/linux-low.h | 9 +
gdb/gdbserver/linux-m68k-low.c | 6 +-
gdb/gdbserver/linux-mips-low.c | 6 +-
gdb/gdbserver/linux-ppc-low.c | 10 +-
gdb/gdbserver/linux-s390-low.c | 4 +-
gdb/gdbserver/linux-sh-low.c | 4 +-
gdb/gdbserver/linux-sparc-low.c | 6 +-
gdb/gdbserver/linux-x86-low.c | 225 ++-
gdb/gdbserver/linux-xtensa-low.c | 6 +-
gdb/gdbserver/mem-break.c | 2 +-
gdb/gdbserver/mem-break.h | 4 +
gdb/gdbserver/regcache.c | 82 +-
gdb/gdbserver/regcache.h | 14 +
gdb/gdbserver/server.c | 103 +-
gdb/gdbserver/server.h | 53 +
gdb/gdbserver/target.h | 21 +
gdb/gdbserver/tracepoint.c | 3399 ++++++++++++++++++++
gdb/gdbserver/utils.c | 125 +
gdb/i386-linux-nat.c | 141 +-
gdb/i386-linux-tdep.c | 61 +-
gdb/i386-linux-tdep.h | 29 +-
gdb/i386-tdep.c | 384 ++-
gdb/i386-tdep.h | 34 +-
gdb/i387-tdep.c | 472 +++
gdb/i387-tdep.h | 14 +
gdb/infcmd.c | 2 +-
gdb/python/py-breakpoint.c | 862 +++++
gdb/python/py-lazy-string.c | 12 +-
gdb/python/python-internal.h | 15 +
gdb/python/python.c | 10 +-
gdb/regformats/i386/amd64-avx-linux.dat | 78 +
gdb/regformats/i386/amd64-avx.dat | 77 +
gdb/regformats/i386/i386-avx-linux.dat | 54 +
gdb/regformats/i386/i386-avx.dat | 53 +
gdb/regformats/i386/i386-mmx-linux.dat | 46 +
gdb/regformats/i386/i386-mmx.dat | 36 +
gdb/regformats/regdat.sh | 2 +-
gdb/remote.c | 15 +-
gdb/source.c | 10 +
gdb/symtab.c | 12 +
gdb/testsuite/ChangeLog | 28 +
gdb/testsuite/gdb.arch/i386-avx.c | 128 +
gdb/testsuite/gdb.arch/i386-avx.exp | 110 +
gdb/testsuite/gdb.arch/i386-cpuid.h | 231 +-
.../gdb.base/{source.exp => source-test.gdb} | 24 +-
gdb/testsuite/gdb.base/source.exp | 18 +-
gdb/testsuite/gdb.python/Makefile.in | 2 +-
gdb/testsuite/gdb.python/py-breakpoint.c | 46 +
gdb/testsuite/gdb.python/py-breakpoint.exp | 142 +
gdb/testsuite/gdb.python/py-value.c | 2 +-
gdb/testsuite/gdb.python/py-value.exp | 6 +
gdb/testsuite/gdb.trace/actions.exp | 4 +
gdb/testsuite/gdb.trace/save-trace.exp | 2 +
gdb/top.c | 2 +-
gdb/top.h | 2 +-
gdb/tracepoint.c | 107 +-
gdb/tracepoint.h | 12 +-
gdb/version.in | 2 +-
include/elf/ChangeLog | 5 +
include/elf/internal.h | 5 +-
libiberty/ChangeLog | 5 +
libiberty/regex.c | 6 +-
opcodes/ChangeLog | 9 +
opcodes/configure | 16 +-
opcodes/i386-dis.c | 8 -
119 files changed, 9771 insertions(+), 428 deletions(-)
create mode 100644 gdb/common/i386-xstate.h
create mode 100644 gdb/features/i386/32bit-avx.xml
create mode 100644 gdb/features/i386/64bit-avx.xml
create mode 100644 gdb/features/i386/amd64-avx-linux.c
create mode 100644 gdb/features/i386/amd64-avx-linux.xml
create mode 100644 gdb/features/i386/amd64-avx.c
create mode 100644 gdb/features/i386/amd64-avx.xml
create mode 100644 gdb/features/i386/i386-avx-linux.c
create mode 100644 gdb/features/i386/i386-avx-linux.xml
create mode 100644 gdb/features/i386/i386-avx.c
create mode 100644 gdb/features/i386/i386-avx.xml
create mode 100644 gdb/features/i386/i386-mmx-linux.c
create mode 100644 gdb/features/i386/i386-mmx-linux.xml
create mode 100644 gdb/features/i386/i386-mmx.c
create mode 100644 gdb/features/i386/i386-mmx.xml
create mode 100644 gdb/gdbserver/tracepoint.c
create mode 100644 gdb/python/py-breakpoint.c
create mode 100644 gdb/regformats/i386/amd64-avx-linux.dat
create mode 100644 gdb/regformats/i386/amd64-avx.dat
create mode 100644 gdb/regformats/i386/i386-avx-linux.dat
create mode 100644 gdb/regformats/i386/i386-avx.dat
create mode 100644 gdb/regformats/i386/i386-mmx-linux.dat
create mode 100644 gdb/regformats/i386/i386-mmx.dat
create mode 100644 gdb/testsuite/gdb.arch/i386-avx.c
create mode 100644 gdb/testsuite/gdb.arch/i386-avx.exp
copy gdb/testsuite/gdb.base/{source.exp => source-test.gdb} (57%)
create mode 100644 gdb/testsuite/gdb.python/py-breakpoint.c
create mode 100644 gdb/testsuite/gdb.python/py-breakpoint.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 027f923..cf51807 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2010-04-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Merge from gcc:
+ PR bootstrap/43615
+ PR bootstrap/43328
+ Revert:
+ 2010-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * configure.ac: Do not pass --enable-multilib nor
+ --disable-multilib in baseargs. Accept explicitly passed
+ --enable_multilib.
+ * configure: Regenerate.
+
2010-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR bootstrap/43328
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6d425d1..55aeba2 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,26 @@
+2010-04-09 Nick Clifton <nickc@redhat.com>
+
+ * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
+ * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
+ variables htab and hdr_info and mark info parameter as unused.
+ * elf.c (prep_headers): Remove unused variable i_phdrp.
+ (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
+ * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
+ as unused.
+ * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
+ * verilog.c (verilog_write_section): Remove unused variable
+ address.
+
+2010-04-07 Alan Modra <amodra@gmail.com>
+
+ * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
+ * configure: Regenerate.
+
+2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11434
+ * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
+
2010-04-06 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 7488256..c3366b6 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -1,6 +1,6 @@
/* BFD semi-generic back-end for a.out binaries.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -5233,8 +5233,6 @@ aout_link_write_symbols (struct aout_final_link_info *finfo, bfd *input_bfd)
static bfd_boolean
aout_link_input_bfd (struct aout_final_link_info *finfo, bfd *input_bfd)
{
- bfd_size_type sym_count;
-
BFD_ASSERT (bfd_get_format (input_bfd) == bfd_object);
/* If this is a dynamic object, it may need special handling. */
@@ -5248,8 +5246,6 @@ aout_link_input_bfd (struct aout_final_link_info *finfo, bfd *input_bfd)
if (! aout_get_external_symbols (input_bfd))
return FALSE;
- sym_count = obj_aout_external_sym_count (input_bfd);
-
/* Write out the symbols and get a map of the new indices. The map
is placed into finfo->symbol_map. */
if (! aout_link_write_symbols (finfo, input_bfd))
diff --git a/bfd/configure b/bfd/configure
index 0f73da3..f4aba27 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -12128,7 +12128,19 @@ fi
-GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
+GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+__GNUC__
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "^[0-3]$" >/dev/null 2>&1; then :
+
+else
+ GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
+fi
+rm -f conftest*
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
@@ -12140,7 +12152,7 @@ if test "${enable_werror+set}" = set; then :
fi
-# Enable -Wno-format by default when using gcc on mingw
+# Disable -Wformat by default when using gcc on mingw
case "${host}" in
*-*-mingw32*)
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 74348d3..05e17c8 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2328,8 +2328,9 @@ extern asection _bfd_elf_large_com_section;
while (0)
/* Will a symbol be bound to the the definition within the shared
- library, if any. */
+ library, if any. A unique symbol can never be bound locally. */
#define SYMBOLIC_BIND(INFO, H) \
- ((INFO)->symbolic || ((INFO)->dynamic && !(H)->dynamic))
+ (!(H)->unique_global \
+ && ((INFO)->symbolic || ((INFO)->dynamic && !(H)->dynamic)))
#endif /* _LIBELF_H_ */
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index c948df2..8380ef8 100644
--- a/bfd/elf-eh-frame.c
+++ b/bfd/elf-eh-frame.c
@@ -1278,13 +1278,11 @@ _bfd_elf_maybe_strip_eh_frame_hdr (struct bfd_link_info *info)
bfd_vma
_bfd_elf_eh_frame_section_offset (bfd *output_bfd ATTRIBUTE_UNUSED,
- struct bfd_link_info *info,
+ struct bfd_link_info *info ATTRIBUTE_UNUSED,
asection *sec,
bfd_vma offset)
{
struct eh_frame_sec_info *sec_info;
- struct elf_link_hash_table *htab;
- struct eh_frame_hdr_info *hdr_info;
unsigned int lo, hi, mid;
if (sec->sec_info_type != ELF_INFO_TYPE_EH_FRAME)
@@ -1294,9 +1292,6 @@ _bfd_elf_eh_frame_section_offset (bfd *output_bfd ATTRIBUTE_UNUSED,
if (offset >= sec->rawsize)
return offset - sec->rawsize + sec->size;
- htab = elf_hash_table (info);
- hdr_info = &htab->eh_info;
-
lo = 0;
hi = sec_info->count;
mid = 0;
diff --git a/bfd/elf.c b/bfd/elf.c
index cee9b7a..8f8bd61 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1062,7 +1062,6 @@ _bfd_elf_copy_private_bfd_data (bfd *ibfd, bfd *obfd)
/* Copy object attributes. */
_bfd_elf_copy_obj_attributes (ibfd, obfd);
-
return TRUE;
}
@@ -4872,8 +4871,7 @@ assign_file_positions_except_relocs (bfd *abfd,
static bfd_boolean
prep_headers (bfd *abfd)
{
- Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */
- Elf_Internal_Phdr *i_phdrp = 0; /* Program header table, internal form */
+ Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form. */
struct elf_strtab_hash *shstrtab;
const struct elf_backend_data *bed = get_elf_backend_data (abfd);
@@ -4941,7 +4939,6 @@ prep_headers (bfd *abfd)
else
{
i_ehdrp->e_phentsize = 0;
- i_phdrp = 0;
i_ehdrp->e_phoff = 0;
}
@@ -4989,7 +4986,6 @@ bfd_boolean
_bfd_elf_write_object_contents (bfd *abfd)
{
const struct elf_backend_data *bed = get_elf_backend_data (abfd);
- Elf_Internal_Ehdr *i_ehdrp;
Elf_Internal_Shdr **i_shdrp;
bfd_boolean failed;
unsigned int count, num_sec;
@@ -4999,7 +4995,6 @@ _bfd_elf_write_object_contents (bfd *abfd)
return FALSE;
i_shdrp = elf_elfsections (abfd);
- i_ehdrp = elf_elfheader (abfd);
failed = FALSE;
bfd_map_over_sections (abfd, bed->s->write_relocs, &failed);
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 6872072..395a6bb 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -2946,7 +2946,7 @@ elf_i386_relocate_section (bfd *output_bfd,
}
else
{
- bfd_boolean warned;
+ bfd_boolean warned ATTRIBUTE_UNUSED;
RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
r_symndx, symtab_hdr, sym_hashes,
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index 8f56f21..f977467 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -1,6 +1,6 @@
/* Support for the generic parts of PE/PEI; the common executable parts.
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Written by Cygnus Solutions.
This file is part of BFD, the Binary File Descriptor library.
@@ -1922,7 +1922,6 @@ pe_print_reloc (bfd * abfd, void * vfile)
FILE *file = (FILE *) vfile;
bfd_byte *data = 0;
asection *section = bfd_get_section_by_name (abfd, ".reloc");
- bfd_size_type datasize;
bfd_size_type i;
bfd_size_type start, stop;
@@ -1935,7 +1934,6 @@ pe_print_reloc (bfd * abfd, void * vfile)
fprintf (file,
_("\n\nPE File Base Relocations (interpreted .reloc section contents)\n"));
- datasize = section->size;
if (! bfd_malloc_and_get_section (abfd, section, &data))
{
if (data != NULL)
diff --git a/bfd/verilog.c b/bfd/verilog.c
index 2c60849..551e5c4 100644
--- a/bfd/verilog.c
+++ b/bfd/verilog.c
@@ -1,5 +1,5 @@
/* BFD back-end for verilog hex memory dump files.
- Copyright 2009
+ Copyright 2009, 2010
Free Software Foundation, Inc.
Written by Anthony Green <green@moxielogic.com>
@@ -222,14 +222,11 @@ verilog_write_section (bfd *abfd,
verilog_write_address (abfd, list->where);
while (octets_written < list->size)
{
- bfd_vma address;
unsigned int octets_this_chunk = list->size - octets_written;
if (octets_this_chunk > 16)
octets_this_chunk = 16;
- address = list->where + octets_written / bfd_octets_per_byte (abfd);
-
if (! verilog_write_record (abfd,
location,
location + octets_this_chunk))
diff --git a/bfd/version.h b/bfd/version.h
index 0214f9d..68220f5 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100407
+#define BFD_VERSION_DATE 20100409
#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/bfd/warning.m4 b/bfd/warning.m4
index b4a2f48..6b846bf 100644
--- a/bfd/warning.m4
+++ b/bfd/warning.m4
@@ -1,7 +1,8 @@
dnl Common configure.in fragment
AC_DEFUN([AM_BINUTILS_WARNINGS],[
-GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
+GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+AC_EGREP_CPP([^[0-3]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow")
AC_ARG_ENABLE(werror,
[ --enable-werror treat compile warnings as errors],
@@ -11,7 +12,7 @@ AC_ARG_ENABLE(werror,
*) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
esac])
-# Enable -Wno-format by default when using gcc on mingw
+# Disable -Wformat by default when using gcc on mingw
case "${host}" in
*-*-mingw32*)
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
diff --git a/configure b/configure
index d885973..c2c406e 100755
--- a/configure
+++ b/configure
@@ -7778,9 +7778,6 @@ do
skip_next=$separate_arg
continue
;;
- --enable-multilib | --disable-multilib)
- continue
- ;;
-*)
# An option. Add it.
case $ac_arg in
@@ -7849,12 +7846,10 @@ if test x${is_cross_compiler} = xyes ; then
target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
fi
-# Pass --enable-multilib to target dirs; default to --enable-multilib.
-case $enable_multilib in
-'' | yes)
+# Default to --enable-multilib.
+if test x${enable_multilib} = x ; then
target_configargs="--enable-multilib ${target_configargs}"
- ;;
-esac
+fi
# Pass --with-newlib if appropriate. Note that target_configdirs has
# changed from the earlier setting of with_newlib.
diff --git a/configure.ac b/configure.ac
index 55e9998..72407f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2882,9 +2882,6 @@ do
skip_next=$separate_arg
continue
;;
- --enable-multilib | --disable-multilib)
- continue
- ;;
-*)
# An option. Add it.
case $ac_arg in
@@ -2953,12 +2950,10 @@ if test x${is_cross_compiler} = xyes ; then
target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
fi
-# Pass --enable-multilib to target dirs; default to --enable-multilib.
-case $enable_multilib in
-'' | yes)
+# Default to --enable-multilib.
+if test x${enable_multilib} = x ; then
target_configargs="--enable-multilib ${target_configargs}"
- ;;
-esac
+fi
# Pass --with-newlib if appropriate. Note that target_configdirs has
# changed from the earlier setting of with_newlib.
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2cc9f29..f7ab074 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,341 @@
+2010-04-09 Stan Shebs <stan@codesourcery.com>
+
+ * tracepoint.c (trace_dump_command): Include default-collect
+ expressions.
+
+2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * symtab.c (find_function_start_sal): Never return SAL pointing
+ before function start address, even if line info is missing.
+
+2010-04-09 Pedro Alves <pedro@codesourcery.com>
+
+ * NEWS: Mention tracepoints support.
+
+2010-04-09 Pedro Alves <pedro@codesourcery.com>
+
+ * tracepoint.c (trace_status_mi): Report disconnected tracing and
+ circular trace buffer statuses.
+
+2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * config/djgpp/fnchange.lst: Fix typo in translations for
+ symbol-without-target_section.exp and symbol-without-target_section.c.
+
+2010-04-09 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (condition_command): Pass condition expression to
+ set_breakpoint_condition stripped from breakpoint number.
+
+2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * breakpoint.c (condition_command): Simplify. Move condition
+ setting code to ...
+ (set_breakpoint_condition): ... here. New function.
+ * breakpoint.h (set_breakpoint_condition): Declare.
+ * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
+ (SUBDIR_PYTHON_SRCS): Likewise.
+ (py-breakpoint.o): New rule.
+ * python/py-breakpoint.c: New file.
+ * python/python-internal.h (gdbpy_breakpoints)
+ (gdbpy_initialize_breakpoints): Declare.
+ (GDB_PY_SET_HANDLE_EXCEPTION) Define.
+
+2010-04-09 Pedro Alves <pedro@codesourcery.com>
+
+ * regformats/regdat.sh: Include server.h. Don't include
+ regcache.h.
+
+2010-04-08 Stan Shebs <stan@codesourcery.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ * tracepoint.h (struct trace_status): New fields disconnected_tracing
+ and circular_buffer.
+ (disconnect_tracing): Rename from disconnect_or_stop_tracing.
+ * tracepoint.c (trace_status_command): Display target's status for
+ disconnected tracing and circular buffer.
+ (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
+ query for non-disconnected-tracing case, remove the stop_tracing
+ call.
+ (tfile_open): Clear disconnected and circular buffer status.
+ (trace_save): Save disconnected and circular buffer status.
+ (parse_trace_status): Parse disconnected and circular buffer status,
+ also recognize disconnected as a stop reason.
+ * remote.c (remote_set_disconnected_tracing): Only set
+ QTDisconnected if the remote end supports disconnected tracing.
+ Warn otherwise, if trying to enable disconnected tracing.
+ * infcmd.c (detach_command): Update disconnect_tracing call.
+ * cli/cli-cmds.c (quit_command): Ditto.
+
+2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i387-tdep.c (i387_collect_xsave): Replace abort with
+ internal_error.
+
+2010-04-08 Stan Shebs <stan@codesourcery.com>
+
+ * breakpoint.c (default_collect_info): New function.
+ (breakpoints_info): Call it.
+ (maintenance_info_breakpoints): Ditto.
+ (tracepoints_info): Ditto.
+
+2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i387-tdep.c (i387_collect_xsave): Re-indent.
+
+2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
+ if HAVE_PTRACE_GETFPXREGS is defined.
+ (i386_linux_read_description): Set have_ptrace_getfpxregs and
+ have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
+
+ * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
+ (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
+ if .reg-xfp section doesn't exist.
+ (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
+
+ * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
+
+ * i386-tdep.c: Include "features/i386/i386-mmx.c".
+ (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
+ (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
+ xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
+ (i386_gdbarch_init): Update comments.
+ (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
+
+ * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
+
+ * config/djgpp/fnchange.lst: Add i386 MMX XML files.
+
+ * features/Makefile (i386/i386-mmx-expedite): New.
+ (i386/i386-mmx-linux-expedite): Likewise.
+ ($(outdir)/i386/i386-mmx.dat): Likewise.
+ ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
+
+ * features/i386/i386-mmx-linux.c: New.
+ * features/i386/i386-mmx-linux.xml: Likewise.
+ * features/i386/i386-mmx.c: Likewise.
+ * features/i386/i386-mmx.xml: Likewise.
+ * regformats/i386/i386-mmx-linux.dat: Likewise.
+ * regformats/i386/i386-mmx.dat: Likewise.
+
+ * features/Makefile (WHICH): Add i386/i386-mmx and
+ i386/i386-mmx-linux.
+
+2010-04-08 Doug Evans <dje@google.com>
+
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-04-07 1:41 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-04-07 1:41 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 8ee8053cd1289310eedfdb50714154101b95c8fd (commit)
via 84f21d145adc2bcaf44b1a50068c7a75b0f55853 (commit)
via 4ae9d3a11ef7c9f4897f5968cc532c27307c0e44 (commit)
via 04aa25c7a725dca6cddba9a952781fc0f67c0284 (commit)
via 862505f46570b891ffc7218ffe8c803f1a084ef2 (commit)
via 1e90d47c183954857d6fe59d5da05d4a3dea1dbc (commit)
via 031a72d190fd37f62a284593449bfd420ca5d7a1 (commit)
via a39036c41bc624929dc9fd96d43f65a847a79885 (commit)
via 312a8f136440200a63ea4a7099a2c8ad2b405daf (commit)
via 920a13856b00ab06567369726c67d95003f41a95 (commit)
via 0354d1d51a785386faa60e41de4633cc307d23c6 (commit)
via 3e2fefbed7993e6be4534db127be625845c08fa0 (commit)
via ea005d16b33904f41fd1d50d5cf7a5a766802261 (commit)
via bd1bd2abbca397bb54f6588e12d7e4b8b0da4b37 (commit)
via a568c9181a1f54fa3d8fec88fe72202c852ae23c (commit)
via 7bebc910a083e8ec400f894fe5df4f37c29ce2b2 (commit)
via bbd95525d7b932f80023fc44e7920f49b3f5a1b3 (commit)
via e6e38b866099c1269b40307341365189dd93b60d (commit)
via cc8ec105c32e167eacf2def61fa1542a98d71860 (commit)
via 706c5ec0898490bf3d4ccc0d9fd9d47e160a6370 (commit)
via ed49fa9539ca97896096ed0060ebbb1665db65a0 (commit)
via 946e3883bc26ffa347b1505950667d1916e40d13 (commit)
via 18be4d41bb4d1879f0aed9cbbd10d20a20016539 (commit)
from 57303b18fb693cb2d299f3ae922ce2ba15070dd1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 8ee8053cd1289310eedfdb50714154101b95c8fd
Merge: 57303b18fb693cb2d299f3ae922ce2ba15070dd1 84f21d145adc2bcaf44b1a50068c7a75b0f55853
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Apr 7 03:41:38 2010 +0200
Merge remote branch 'gdb/master'
commit 84f21d145adc2bcaf44b1a50068c7a75b0f55853
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Apr 7 00:00:34 2010 +0000
*** empty log message ***
commit 4ae9d3a11ef7c9f4897f5968cc532c27307c0e44
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Apr 7 00:00:05 2010 +0000
daily update
commit 04aa25c7a725dca6cddba9a952781fc0f67c0284
Author: Stan Shebs <shebs@apple.com>
Date: Tue Apr 6 17:47:35 2010 +0000
2010-04-06 Stan Shebs <stan@codesourcery.com>
* defs.h (char_ptr): Move typedef here from...
* ada-lang.c (char_ptr): Remove.
* charset.c (char_ptr): Remove.
* tracepoint.h (struct uploaded_string): Remove.
(struct uploaded_tp): Use vectors for string arrays.
* tracepoint.c (trace_save): Use vectors of actions.
(parse_tracepoint_definition): Ditto.
(get_uploaded_tp): Clear vectors.
* breakpoint.c (create_tracepoint_from_upload): Use vectors.
(next_cmd): Change to an int.
(read_next_cmd): Use vector of command strings.
commit 862505f46570b891ffc7218ffe8c803f1a084ef2
Author: Doug Evans <dje@google.com>
Date: Tue Apr 6 16:51:11 2010 +0000
* top.h (source_script, cd_command): Delete.
* main.c: #include "cli/cli-cmds.h"
commit 1e90d47c183954857d6fe59d5da05d4a3dea1dbc
Author: Peter Bergner <bergner@vnet.ibm.com>
Date: Tue Apr 6 16:04:34 2010 +0000
opcodes/
* ppc-opc.c (RBOPT): New define.
("dccci"): Enable for PPCA2. Make operands optional.
("iccci"): Likewise. Do not deprecate for PPC476.
gas/testsuite/
* gas/ppc/476.d ("dccci", "dci", "iccci"): Add tests.
* gas/ppc/476.s: Likewise.
* gas/ppc/a2.d ("dccci", "dci", "iccci", "ici"): Add tests.
* gas/ppc/a2.s: Likewise.
commit 031a72d190fd37f62a284593449bfd420ca5d7a1
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Apr 6 15:41:43 2010 +0000
* cr16-opc.c (cr16_instruction): Fix typo in comment.
commit a39036c41bc624929dc9fd96d43f65a847a79885
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Apr 6 13:55:33 2010 +0000
2010-04-06 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
commit 312a8f136440200a63ea4a7099a2c8ad2b405daf
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Tue Apr 6 12:45:21 2010 +0000
* gdb.cp/inherit.exp (test_print_anon_union): Fix re_class pattern.
commit 920a13856b00ab06567369726c67d95003f41a95
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue Apr 6 07:39:30 2010 +0000
merge from gcc
commit 0354d1d51a785386faa60e41de4633cc307d23c6
Author: Kevin Buettner <kevinb@redhat.com>
Date: Tue Apr 6 00:14:24 2010 +0000
* m32c-tdep.c (make_types): When calling `arch_type', pass size of
type in bytes, not bits.
commit 3e2fefbed7993e6be4534db127be625845c08fa0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Apr 6 00:00:12 2010 +0000
*** empty log message ***
commit ea005d16b33904f41fd1d50d5cf7a5a766802261
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Apr 6 00:00:08 2010 +0000
daily update
commit bd1bd2abbca397bb54f6588e12d7e4b8b0da4b37
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Apr 5 22:43:47 2010 +0000
* gdb/stabsread.c (define_symbol): Add support for char
and string constants.
* gdb/testsuite/gdb.stabs/aout.sed: Convert all backslash to double backslash
within one line, unless it is followed by a double quote.
* gdb/testsuite/gdb.stabs/hppa.sed: Idem.
* gdb/testsuite/gdb.stabs/weird.def: Add char and String constants
* gdb/testsuite/gdb.stabs/weird.exp: Check for correct parsing of
chhar and string constants.
* gdb/testsuite/gdb.stabs/xcoff.sed: Ignore escaped quote quotes
in .stabs to .stabx substitution.
commit a568c9181a1f54fa3d8fec88fe72202c852ae23c
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Mon Apr 5 22:18:52 2010 +0000
Remove remaining "%ll" uses.
* go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
hex_string call.
* rs6000-nat.c (rs6000_ptrace64): Idem.
* solib-pa64.c (pa64_current_sos): Idem.
* solib-spu.c (spu_current_sos): Idem.
* linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
plongest call.
* nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
phex (VAR, 8) call.
* sh64-tdep.c (sh64_show_media_regs): Idem.
commit 7bebc910a083e8ec400f894fe5df4f37c29ce2b2
Author: Stan Shebs <shebs@apple.com>
Date: Mon Apr 5 21:57:13 2010 +0000
2010-04-05 Stan Shebs <stan@codesourcery.com>
* tracepoint.c: Include gdbcore.h.
(tfile_xfer_partial): Return partial results, also try reading
from executable.
(tfile_has_all_memory): New function.
(init_tfile_ops): Use it.
* gdb.trace/tfile.c: Add a variable split across two blocks, and a
constant global.
* gdb.trace/tfile.exp: Try to print them.
commit bbd95525d7b932f80023fc44e7920f49b3f5a1b3
Author: DJ Delorie <dj@delorie.com>
Date: Mon Apr 5 20:13:18 2010 +0000
merge from gcc
commit e6e38b866099c1269b40307341365189dd93b60d
Author: Jakub Jelinek <jakub@redhat.com>
Date: Mon Apr 5 19:32:01 2010 +0000
bfd/
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
provided that it has the expected address size and zero segment
length.
binutils/
* dwarf.c (struct Frame_Chunk): Add ptr_size and segment_size
fields.
(display_debug_frames): Handle CIE version 4.
commit cc8ec105c32e167eacf2def61fa1542a98d71860
Author: Jakub Jelinek <jakub@redhat.com>
Date: Mon Apr 5 19:29:24 2010 +0000
include/
* dwarf2.h (DWARF2_Internal_LineInfo): Add li_max_ops_per_insn
field.
bfd/
* dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
(struct line_info): Add op_index field, change end_sequence type to
unsigned char.
(new_line_sorts_after): For the same address compare op_index.
(add_line_info): Add op_index argument, store it into the structure.
(decode_line_info): Complain about unknown versions of .debug_line.
Initialize maximum_ops_per_insn. Add op_index state register and
track it.
binutils/
* dwarf.c (struct State_Machine_Registers): Add op_index field,
change end_sequence type to unsigned char.
(reset_state_machine): Clear op_index.
(process_extended_line_op): For DW_LNE_set_address clear op_index.
(display_debug_lines_raw): Initialize li_max_ops_per_insn.
Track op_index state machine register and print it if
li_max_ops_per_insn is != 1.
(display_debug_lines_decoded): Likewise.
commit 706c5ec0898490bf3d4ccc0d9fd9d47e160a6370
Author: DJ Delorie <dj@delorie.com>
Date: Mon Apr 5 18:02:20 2010 +0000
merge from gcc
commit ed49fa9539ca97896096ed0060ebbb1665db65a0
Author: Doug Evans <dje@google.com>
Date: Mon Apr 5 17:14:56 2010 +0000
* gdb.texinfo (maint show python auto-load): Fix typo.
commit 946e3883bc26ffa347b1505950667d1916e40d13
Author: sergiodj <sergiodj>
Date: Mon Apr 5 15:58:51 2010 +0000
2010-03-23 Sergio Durigan Junior <sergiodj@redhat.com>
PR gdb/10736:
* xml-syscall.c (my_gdb_datadir): New variable to keep track of
the changes in data-directory.
(init_sysinfo): Reload the syscall XML file if the data-directory
has changed.
commit 18be4d41bb4d1879f0aed9cbbd10d20a20016539
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Apr 5 10:07:30 2010 +0000
gdb/
Code cleanup.
* breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 19 +++++++
bfd/dwarf2.c | 89 +++++++++++++++++++++++++++----
bfd/elf-eh-frame.c | 13 ++++-
bfd/version.h | 2 +-
bfd/vms-lib.c | 7 ++-
gdb/ChangeLog | 64 +++++++++++++++++++++++
gdb/ada-lang.c | 1 -
gdb/breakpoint.c | 21 +++-----
gdb/charset.c | 1 -
gdb/defs.h | 4 ++
gdb/doc/ChangeLog | 4 ++
gdb/doc/gdb.texinfo | 4 +-
gdb/go32-nat.c | 4 +-
gdb/linux-nat.c | 4 +-
gdb/m32c-tdep.c | 9 ++-
gdb/main.c | 2 +-
gdb/nto-procfs.c | 4 +-
gdb/rs6000-nat.c | 4 +-
gdb/sh64-tdep.c | 24 ++++----
gdb/solib-pa64.c | 22 ++++----
gdb/solib-spu.c | 3 +-
gdb/stabsread.c | 69 ++++++++++++++++++++++++
gdb/testsuite/ChangeLog | 21 +++++++
gdb/testsuite/gdb.cp/inherit.exp | 2 +-
gdb/testsuite/gdb.stabs/aout.sed | 2 +-
gdb/testsuite/gdb.stabs/hppa.sed | 2 +-
gdb/testsuite/gdb.stabs/weird.def | 14 +++++
gdb/testsuite/gdb.stabs/weird.exp | 13 ++++-
gdb/testsuite/gdb.stabs/xcoff.sed | 2 +-
gdb/testsuite/gdb.trace/tfile.c | 38 ++++++++++----
gdb/testsuite/gdb.trace/tfile.exp | 7 +++
gdb/top.h | 2 -
gdb/tracepoint.c | 104 ++++++++++++++++++++++++-------------
gdb/tracepoint.h | 18 +++----
gdb/version.in | 2 +-
gdb/xml-syscall.c | 22 +++++++-
include/ChangeLog | 5 ++
include/dwarf2.h | 4 +-
intl/ChangeLog | 4 ++
intl/aclocal.m4 | 2 +-
libdecnumber/ChangeLog | 4 ++
libdecnumber/aclocal.m4 | 2 +-
opcodes/ChangeLog | 10 ++++
opcodes/cr16-opc.c | 4 +-
opcodes/ppc-opc.c | 13 +++--
45 files changed, 525 insertions(+), 146 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index aa32144..6d425d1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,22 @@
+2010-04-06 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
+
+2010-04-05 Jakub Jelinek <jakub@redhat.com>
+
+ * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
+ provided that it has the expected address size and zero segment
+ length.
+
+ * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
+ (struct line_info): Add op_index field, change end_sequence type to
+ unsigned char.
+ (new_line_sorts_after): For the same address compare op_index.
+ (add_line_info): Add op_index argument, store it into the structure.
+ (decode_line_info): Complain about unknown versions of .debug_line.
+ Initialize maximum_ops_per_insn. Add op_index state register and
+ track it.
+
2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
* elf32-ppc.c (apuinfo_set): New static var.
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index adc8314..11618c0 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -45,6 +45,7 @@ struct line_head
unsigned short version;
bfd_vma prologue_length;
unsigned char minimum_instruction_length;
+ unsigned char maximum_ops_per_insn;
unsigned char default_is_stmt;
int line_base;
unsigned char line_range;
@@ -928,7 +929,8 @@ struct line_info
char *filename;
unsigned int line;
unsigned int column;
- int end_sequence; /* End of (sequential) code sequence. */
+ unsigned char op_index;
+ unsigned char end_sequence; /* End of (sequential) code sequence. */
};
struct fileinfo
@@ -1002,7 +1004,9 @@ new_line_sorts_after (struct line_info *new_line, struct line_info *line)
{
return (new_line->address > line->address
|| (new_line->address == line->address
- && new_line->end_sequence < line->end_sequence));
+ && (new_line->op_index > line->op_index
+ || (new_line->op_index == line->op_index
+ && new_line->end_sequence < line->end_sequence))));
}
@@ -1014,6 +1018,7 @@ new_line_sorts_after (struct line_info *new_line, struct line_info *line)
static bfd_boolean
add_line_info (struct line_info_table *table,
bfd_vma address,
+ unsigned char op_index,
char *filename,
unsigned int line,
unsigned int column,
@@ -1028,6 +1033,7 @@ add_line_info (struct line_info_table *table,
/* Set member data of 'info'. */
info->address = address;
+ info->op_index = op_index;
info->line = line;
info->column = column;
info->end_sequence = end_sequence;
@@ -1059,6 +1065,7 @@ add_line_info (struct line_info_table *table,
if (seq
&& seq->last_line->address == address
+ && seq->last_line->op_index == op_index
&& seq->last_line->end_sequence == end_sequence)
{
/* We only keep the last entry with the same address and end
@@ -1254,6 +1261,11 @@ compare_sequences (const void* a, const void* b)
if (seq1->last_line->address > seq2->last_line->address)
return -1;
+ if (seq1->last_line->op_index < seq2->last_line->op_index)
+ return 1;
+ if (seq1->last_line->op_index > seq2->last_line->op_index)
+ return -1;
+
return 0;
}
@@ -1384,6 +1396,13 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
}
line_end = line_ptr + lh.total_length;
lh.version = read_2_bytes (abfd, line_ptr);
+ if (lh.version < 2 || lh.version > 4)
+ {
+ (*_bfd_error_handler)
+ (_("Dwarf Error: Unhandled .debug_line version %d."), lh.version);
+ bfd_set_error (bfd_error_bad_value);
+ return NULL;
+ }
line_ptr += 2;
if (offset_size == 4)
lh.prologue_length = read_4_bytes (abfd, line_ptr);
@@ -1392,6 +1411,20 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
line_ptr += offset_size;
lh.minimum_instruction_length = read_1_byte (abfd, line_ptr);
line_ptr += 1;
+ if (lh.version >= 4)
+ {
+ lh.maximum_ops_per_insn = read_1_byte (abfd, line_ptr);
+ line_ptr += 1;
+ }
+ else
+ lh.maximum_ops_per_insn = 1;
+ if (lh.maximum_ops_per_insn == 0)
+ {
+ (*_bfd_error_handler)
+ (_("Dwarf Error: Invalid maximum operations per instruction."));
+ bfd_set_error (bfd_error_bad_value);
+ return NULL;
+ }
lh.default_is_stmt = read_1_byte (abfd, line_ptr);
line_ptr += 1;
lh.line_base = read_1_signed_byte (abfd, line_ptr);
@@ -1472,6 +1505,7 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
{
/* State machine registers. */
bfd_vma address = 0;
+ unsigned char op_index = 0;
char * filename = table->num_files ? concat_filename (table, 1) : NULL;
unsigned int line = 1;
unsigned int column = 0;
@@ -1495,11 +1529,21 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
{
/* Special operand. */
adj_opcode = op_code - lh.opcode_base;
- address += (adj_opcode / lh.line_range)
- * lh.minimum_instruction_length;
+ if (lh.maximum_ops_per_insn == 1)
+ address += (adj_opcode / lh.line_range)
+ * lh.minimum_instruction_length;
+ else
+ {
+ address += ((op_index + (adj_opcode / lh.line_range))
+ / lh.maximum_ops_per_insn)
+ * lh.minimum_instruction_length;
+ op_index = (op_index + (adj_opcode / lh.line_range))
+ % lh.maximum_ops_per_insn;
+ }
line += lh.line_base + (adj_opcode % lh.line_range);
/* Append row to matrix using current values. */
- if (!add_line_info (table, address, filename, line, column, 0))
+ if (!add_line_info (table, address, op_index, filename,
+ line, column, 0))
goto line_fail;
if (address < low_pc)
low_pc = address;
@@ -1518,8 +1562,8 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
{
case DW_LNE_end_sequence:
end_sequence = 1;
- if (!add_line_info (table, address, filename, line, column,
- end_sequence))
+ if (!add_line_info (table, address, op_index, filename,
+ line, column, end_sequence))
goto line_fail;
if (address < low_pc)
low_pc = address;
@@ -1530,6 +1574,7 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
break;
case DW_LNE_set_address:
address = read_address (unit, line_ptr);
+ op_index = 0;
line_ptr += unit->addr_size;
break;
case DW_LNE_define_file:
@@ -1572,7 +1617,8 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
}
break;
case DW_LNS_copy:
- if (!add_line_info (table, address, filename, line, column, 0))
+ if (!add_line_info (table, address, op_index,
+ filename, line, column, 0))
goto line_fail;
if (address < low_pc)
low_pc = address;
@@ -1580,8 +1626,18 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
high_pc = address;
break;
case DW_LNS_advance_pc:
- address += lh.minimum_instruction_length
- * read_unsigned_leb128 (abfd, line_ptr, &bytes_read);
+ if (lh.maximum_ops_per_insn == 1)
+ address += lh.minimum_instruction_length
+ * read_unsigned_leb128 (abfd, line_ptr,
+ &bytes_read);
+ else
+ {
+ bfd_vma adjust = read_unsigned_leb128 (abfd, line_ptr,
+ &bytes_read);
+ address = ((op_index + adjust) / lh.maximum_ops_per_insn)
+ * lh.minimum_instruction_length;
+ op_index = (op_index + adjust) % lh.maximum_ops_per_insn;
+ }
line_ptr += bytes_read;
break;
case DW_LNS_advance_line:
@@ -1611,11 +1667,20 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
case DW_LNS_set_basic_block:
break;
case DW_LNS_const_add_pc:
- address += lh.minimum_instruction_length
- * ((255 - lh.opcode_base) / lh.line_range);
+ if (lh.maximum_ops_per_insn == 1)
+ address += lh.minimum_instruction_length
+ * ((255 - lh.opcode_base) / lh.line_range);
+ else
+ {
+ bfd_vma adjust = ((255 - lh.opcode_base) / lh.line_range);
+ address += lh.minimum_instruction_length
+ * ((op_index + adjust) / lh.maximum_ops_per_insn);
+ op_index = (op_index + adjust) % lh.maximum_ops_per_insn;
+ }
break;
case DW_LNS_fixed_advance_pc:
address += read_2_bytes (abfd, line_ptr);
+ op_index = 0;
line_ptr += 2;
break;
default:
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index 37c9255..c948df2 100644
--- a/bfd/elf-eh-frame.c
+++ b/bfd/elf-eh-frame.c
@@ -1,5 +1,5 @@
/* .eh_frame section optimization.
- Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Jakub Jelinek <jakub@redhat.com>.
@@ -636,7 +636,9 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
REQUIRE (read_byte (&buf, end, &cie->version));
/* Cannot handle unknown versions. */
- REQUIRE (cie->version == 1 || cie->version == 3);
+ REQUIRE (cie->version == 1
+ || cie->version == 3
+ || cie->version == 4);
REQUIRE (strlen ((char *) buf) < sizeof (cie->augmentation));
strcpy (cie->augmentation, (char *) buf);
@@ -651,6 +653,13 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
REQUIRE (skip_bytes (&buf, end, ptr_size));
SKIP_RELOCS (buf);
}
+ if (cie->version >= 4)
+ {
+ REQUIRE (buf + 1 < end);
+ REQUIRE (buf[0] == ptr_size);
+ REQUIRE (buf[1] == 0);
+ buf += 2;
+ }
REQUIRE (read_uleb128 (&buf, end, &cie->code_align));
REQUIRE (read_sleb128 (&buf, end, &cie->data_align));
if (cie->version == 1)
diff --git a/bfd/version.h b/bfd/version.h
index d687826..0214f9d 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100405
+#define BFD_VERSION_DATE 20100407
#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/bfd/vms-lib.c b/bfd/vms-lib.c
index cdef1f5..4f7da81 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -1608,6 +1608,7 @@ _bfd_vms_lib_write_archive_contents (bfd *arch)
unsigned char blk[VMS_BLOCK_SIZE];
struct vms_lhd *lhd = (struct vms_lhd *)blk;
struct vms_idd *idd = (struct vms_idd *)(blk + sizeof (*lhd));
+ unsigned int idd_flags;
memset (blk, 0, sizeof (blk));
@@ -1638,13 +1639,15 @@ _bfd_vms_lib_write_archive_contents (bfd *arch)
bfd_putl32 (vbn - 1, lhd->hiprusd);
/* First index (modules name). */
- bfd_putl16 (IDD__FLAGS_ASCII | IDD__FLAGS_VARLENIDX, idd->flags);
+ idd_flags = IDD__FLAGS_ASCII | IDD__FLAGS_VARLENIDX
+ | IDD__FLAGS_NOCASECMP | IDD__FLAGS_NOCASENTR;
+ bfd_putl16 (idd_flags, idd->flags);
bfd_putl16 (MAX_KEYLEN, idd->keylen);
bfd_putl16 (mod_idx_vbn, idd->vbn);
idd++;
/* Second index (symbols name). */
- bfd_putl16 (IDD__FLAGS_ASCII | IDD__FLAGS_VARLENIDX, idd->flags);
+ bfd_putl16 (idd_flags, idd->flags);
bfd_putl16 (MAX_KEYLEN, idd->keylen);
bfd_putl16 (sym_idx_vbn, idd->vbn);
idd++;
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d47b862..2cc9f29 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,67 @@
+2010-04-06 Stan Shebs <stan@codesourcery.com>
+
+ * defs.h (char_ptr): Move typedef here from...
+ * ada-lang.c (char_ptr): Remove.
+ * charset.c (char_ptr): Remove.
+ * tracepoint.h (struct uploaded_string): Remove.
+ (struct uploaded_tp): Use vectors for string arrays.
+ * tracepoint.c (trace_save): Use vectors of actions.
+ (parse_tracepoint_definition): Ditto.
+ (get_uploaded_tp): Clear vectors.
+ * breakpoint.c (create_tracepoint_from_upload): Use vectors.
+ (next_cmd): Change to an int.
+ (read_next_cmd): Use vector of command strings.
+
+2010-04-06 Doug Evans <dje@google.com>
+
+ * top.h (source_script, cd_command): Delete.
+ * main.c: #include "cli/cli-cmds.h"
+
+2010-04-06 Kevin Buettner <kevinb@redhat.com>
+
+ * m32c-tdep.c (make_types): When calling `arch_type', pass size of
+ type in bytes, not bits.
+
+2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * stabsread.c (define_symbol): Add support for char
+ and string constants.
+
+2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Remove remaining "%ll" uses.
+ * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
+ hex_string call.
+ * rs6000-nat.c (rs6000_ptrace64): Idem.
+ * solib-pa64.c (pa64_current_sos): Idem.
+ * solib-spu.c (spu_current_sos): Idem.
+ * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
+ plongest call.
+ * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
+ phex (VAR, 8) call.
+ * sh64-tdep.c (sh64_show_media_regs): Idem.
+
+2010-04-05 Stan Shebs <stan@codesourcery.com>
+
+ * tracepoint.c: Include gdbcore.h.
+ (tfile_xfer_partial): Return partial results, also try reading
+ from executable.
+ (tfile_has_all_memory): New function.
+ (init_tfile_ops): Use it.
+
+2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ PR gdb/10736:
+ * xml-syscall.c (my_gdb_datadir): New variable to keep track of
+ the changes in data-directory.
+ (init_sysinfo): Reload the syscall XML file if the data-directory
+ has changed.
+
+2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup.
+ * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
+
2010-04-04 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index ea79500..df92993 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -5076,7 +5076,6 @@ symbol_completion_match (const char *sym_name,
return sym_name;
}
-typedef char *char_ptr;
DEF_VEC_P (char_ptr);
/* A companion function to ada_make_symbol_completion_list().
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 2efb766..c1c8b97 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -4141,12 +4141,8 @@ bpstat_stop_status (struct address_space *aspace,
not have changed, but the intermediate memory locations we are
watching may have. Don't bother if we're stopping; this will get
done later. */
- for (bs = root_bs->next; bs != NULL; bs = bs->next)
- if (bs->stop)
- break;
-
need_remove_insert = 0;
- if (bs == NULL)
+ if (! bpstat_causes_stop (root_bs->next))
for (bs = root_bs->next; bs != NULL; bs = bs->next)
if (!bs->stop
&& bs->breakpoint_at->owner
@@ -10352,18 +10348,16 @@ ftrace_command (char *arg, int from_tty)
list that was acquired during tracepoint uploading. */
static struct uploaded_tp *this_utp;
-static struct uploaded_string *next_cmd;
+static int next_cmd;
static char *
read_uploaded_action (void)
{
char *rslt;
- if (!next_cmd)
- return NULL;
+ VEC_iterate (char_ptr, this_utp->cmd_strings, next_cmd, rslt);
- rslt = next_cmd->str;
- next_cmd = next_cmd->next;
+ next_cmd++;
return rslt;
}
@@ -10429,18 +10423,19 @@ create_tracepoint_from_upload (struct uploaded_tp *utp)
special-purpose "reader" function and call the usual command line
reader, then pass the result to the breakpoint command-setting
function. */
- if (utp->cmd_strings)
+ if (!VEC_empty (char_ptr, utp->cmd_strings))
{
struct command_line *cmd_list;
this_utp = utp;
- next_cmd = utp->cmd_strings;
+ next_cmd = 0;
cmd_list = read_command_lines_1 (read_uploaded_action, 1, NULL, NULL);
breakpoint_set_commands (tp, cmd_list);
}
- else if (utp->numactions > 0 || utp->num_step_actions > 0)
+ else if (!VEC_empty (char_ptr, utp->actions)
+ || !VEC_empty (char_ptr, utp->step_actions))
warning (_("Uploaded tracepoint %d actions have no source form, ignoring them"),
utp->number);
diff --git a/gdb/charset.c b/gdb/charset.c
index b60c5fa..c422056 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -702,7 +702,6 @@ wchar_iterate (struct wchar_iterator *iter,
extern initialize_file_ftype _initialize_charset; /* -Wmissing-prototype */
-typedef char *char_ptr;
DEF_VEC_P (char_ptr);
static VEC (char_ptr) *charsets;
diff --git a/gdb/defs.h b/gdb/defs.h
index b7fd97a..e8a1dd4 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -312,6 +312,10 @@ struct cleanup
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
+/* vec.h-style vectors of strings want a typedef for char * . */
+
+typedef char * char_ptr;
+
/* Needed for various prototypes */
struct symtab;
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 9d9939f..a85e56a 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-05 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (maint show python auto-load): Fix typo.
+
2010-04-04 Stan Shebs <stan@codesourcery.com>
* gdb.texinfo (Setting Breakpoints): "info watch" no longer a synonym.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-04-05 10:11 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-04-05 10:11 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 57303b18fb693cb2d299f3ae922ce2ba15070dd1 (commit)
via 07d9fe7c61bc1b0ad689957904b1565c09f306a2 (commit)
via 693a21a0d6289b9cf29ae161c392c201ad305793 (commit)
via e6e5e0c6e011759aec776260969dfc3e55c01729 (commit)
via d2ddf83a91c8bf81f421f425699fd7b2b8e7f911 (commit)
via 91d6d46b0c1d3b5ae3602be139cb8780ded5b418 (commit)
via ef9b9ef1ad140e93ebeec10320972a2c639d2e57 (commit)
from d7e58fcbe0967f09883b314a2b414f265c41121a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 57303b18fb693cb2d299f3ae922ce2ba15070dd1
Merge: d7e58fcbe0967f09883b314a2b414f265c41121a 07d9fe7c61bc1b0ad689957904b1565c09f306a2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Apr 5 12:10:41 2010 +0200
Merge remote branch 'gdb/master'
commit 07d9fe7c61bc1b0ad689957904b1565c09f306a2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Apr 5 00:00:07 2010 +0000
daily update
commit 693a21a0d6289b9cf29ae161c392c201ad305793
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Apr 5 00:00:03 2010 +0000
*** empty log message ***
commit e6e5e0c6e011759aec776260969dfc3e55c01729
Author: Stan Shebs <shebs@apple.com>
Date: Sun Apr 4 23:46:58 2010 +0000
2010-04-04 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
* breakpoint.c (breakpoint_1): Add filter argument, return number of
breakpoints printed.
(is_hardware_watchpoint): Make argument const.
(is_watchpoint): Ditto.
(is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
use it everywhere.
(breakpoints_info): Pass NULL to breakpoint_1.
(maintenance_info_breakpoints): Ditto.
(watchpoints_info): New function.
(tracepoints_info): Use breakpoint_1 filter.
(set_ignore_count): Warn that tracepoint ignore count will be ignored.
(_initialize_breakpoint): Make "info watchpoints" its own command.
* breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
* mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
* gdb.texinfo (Setting Breakpoints): "info watch" no longer a synonym.
(Setting Watchpoints): Update description of "info watch".
(Disabling Breakpoints): Only "info break" lists all.
* gdb.base/completion.exp: Update for new "info watchpoints".
* gdb.base/default.exp: Ditto.
* gdb.base/help.exp: Ditto.
* gdb.base/watchpoint.exp: Ditto.
* gdb.trace/infotrace.exp: Update "info tracpoints" output.
commit d2ddf83a91c8bf81f421f425699fd7b2b8e7f911
Author: Stan Shebs <shebs@apple.com>
Date: Sun Apr 4 23:31:19 2010 +0000
2010-04-04 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (tfile_fetch_registers): Add fallback case.
* gdb.texinfo (Tracepoint Restrictions): Document PC inference.
(tdump): Explain how tdump works.
* gdb.trace/tfile.exp: Sharpen tfind test.
commit 91d6d46b0c1d3b5ae3602be139cb8780ded5b418
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Apr 4 22:12:04 2010 +0000
gdb/
* infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
* config/djgpp/fnchange.lst: Add translation for break-entry.exp.
gdb/testsuite/
* gdb.base/break-entry.exp: New.
commit ef9b9ef1ad140e93ebeec10320972a2c639d2e57
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Apr 4 13:54:42 2010 +0000
gdb/
* breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
* breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 32 ++++++
gdb/breakpoint.c | 190 +++++++++++++++----------------
gdb/breakpoint.h | 13 +--
gdb/config/djgpp/fnchange.lst | 1 +
gdb/doc/ChangeLog | 9 ++
gdb/doc/gdb.texinfo | 39 ++++++-
gdb/infcmd.c | 5 +-
gdb/mi/mi-cmd-break.c | 2 +-
gdb/testsuite/ChangeLog | 16 +++
gdb/testsuite/gdb.base/break-entry.exp | 43 +++++++
gdb/testsuite/gdb.base/completion.exp | 2 +-
gdb/testsuite/gdb.base/default.exp | 2 +-
gdb/testsuite/gdb.base/help.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint.exp | 10 +-
gdb/testsuite/gdb.trace/infotrace.exp | 2 +-
gdb/testsuite/gdb.trace/tfile.exp | 5 +-
gdb/tracepoint.c | 40 +++++++-
gdb/version.in | 2 +-
19 files changed, 282 insertions(+), 135 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/break-entry.exp
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index fb0f801..d687826 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100404
+#define BFD_VERSION_DATE 20100405
#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 0bcb4a1..d47b862 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,35 @@
+2010-04-04 Stan Shebs <stan@codesourcery.com>
+ Nathan Sidwell <nathan@codesourcery.com>
+
+ * breakpoint.c (breakpoint_1): Add filter argument, return number of
+ breakpoints printed.
+ (is_hardware_watchpoint): Make argument const.
+ (is_watchpoint): Ditto.
+ (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
+ use it everywhere.
+ (breakpoints_info): Pass NULL to breakpoint_1.
+ (maintenance_info_breakpoints): Ditto.
+ (watchpoints_info): New function.
+ (tracepoints_info): Use breakpoint_1 filter.
+ (set_ignore_count): Warn that tracepoint ignore count will be ignored.
+ (_initialize_breakpoint): Make "info watchpoints" its own command.
+ * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
+ * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
+
+2010-04-04 Stan Shebs <stan@codesourcery.com>
+
+ * tracepoint.c (tfile_fetch_registers): Add fallback case.
+
+2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
+ * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
+
+2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
+ * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
+
2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf2read.c (read_namespace_type): Use common "return set_die_type"
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 46a50b9..2efb766 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -130,7 +130,9 @@ static int watchpoint_locations_match (struct bp_location *loc1,
static void breakpoints_info (char *, int);
-static void breakpoint_1 (int, int);
+static void watchpoints_info (char *, int);
+
+static int breakpoint_1 (int, int, int (*) (const struct breakpoint *));
static bpstat bpstat_alloc (const struct bp_location *, bpstat);
@@ -204,9 +206,9 @@ static void update_global_location_list (int);
static void update_global_location_list_nothrow (int);
-static int is_hardware_watchpoint (struct breakpoint *bpt);
+static int is_hardware_watchpoint (const struct breakpoint *bpt);
-static int is_watchpoint (struct breakpoint *bpt);
+static int is_watchpoint (const struct breakpoint *bpt);
static void insert_breakpoint_locations (void);
@@ -366,7 +368,7 @@ static int overlay_events_enabled;
#define ALL_TRACEPOINTS(B) \
for (B = breakpoint_chain; B; B = B->next) \
- if (tracepoint_type (B))
+ if (is_tracepoint (B))
/* Chains of all breakpoints defined. */
@@ -464,14 +466,6 @@ clear_breakpoint_hit_counts (void)
b->hit_count = 0;
}
-/* Encapsulate tests for different types of tracepoints. */
-
-static int
-tracepoint_type (const struct breakpoint *b)
-{
- return (b->type == bp_tracepoint || b->type == bp_fast_tracepoint);
-}
-
/* Allocate a new counted_command_line with reference count of 1.
The new structure owns COMMANDS. */
@@ -817,20 +811,14 @@ check_no_tracepoint_commands (struct command_line *commands)
}
}
+/* Encapsulate tests for different types of tracepoints. */
+
int
-breakpoint_is_tracepoint (const struct breakpoint *b)
+is_tracepoint (const struct breakpoint *b)
{
- switch (b->type)
- {
- case bp_tracepoint:
- case bp_fast_tracepoint:
- return 1;
- default:
- return 0;
-
- }
+ return (b->type == bp_tracepoint || b->type == bp_fast_tracepoint);
}
-
+
/* A helper function that validsates that COMMANDS are valid for a
breakpoint. This function will throw an exception if a problem is
found. */
@@ -839,7 +827,7 @@ static void
validate_commands_for_breakpoint (struct breakpoint *b,
struct command_line *commands)
{
- if (breakpoint_is_tracepoint (b))
+ if (is_tracepoint (b))
{
/* We need to verify that each top-level element of commands
is valid for tracepoints, that there's at most one while-stepping
@@ -949,7 +937,7 @@ do_map_commands_command (struct breakpoint *b, void *data)
l = read_command_lines (str,
info->from_tty, 1,
- (breakpoint_is_tracepoint (b)
+ (is_tracepoint (b)
? check_tracepoint_command : 0),
b);
@@ -1175,7 +1163,7 @@ insert_catchpoint (struct ui_out *uo, void *args)
/* Return true if BPT is of any hardware watchpoint kind. */
static int
-is_hardware_watchpoint (struct breakpoint *bpt)
+is_hardware_watchpoint (const struct breakpoint *bpt)
{
return (bpt->type == bp_hardware_watchpoint
|| bpt->type == bp_read_watchpoint
@@ -1186,7 +1174,7 @@ is_hardware_watchpoint (struct breakpoint *bpt)
software. */
static int
-is_watchpoint (struct breakpoint *bpt)
+is_watchpoint (const struct breakpoint *bpt)
{
return (is_hardware_watchpoint (bpt)
|| bpt->type == bp_watchpoint);
@@ -1589,7 +1577,7 @@ should_be_inserted (struct bp_location *bpt)
/* Tracepoints are inserted by the target at a time of its choosing,
not by us. */
- if (tracepoint_type (bpt->owner))
+ if (is_tracepoint (bpt->owner))
return 0;
return 1;
@@ -2963,36 +2951,6 @@ bpstat_find_breakpoint (bpstat bsp, struct breakpoint *breakpoint)
return NULL;
}
-/* Find a step_resume breakpoint associated with this bpstat.
- (If there are multiple step_resume bp's on the list, this function
- will arbitrarily pick one.)
-
- It is an error to use this function if BPSTAT doesn't contain a
- step_resume breakpoint.
-
- See wait_for_inferior's use of this function. */
-struct breakpoint *
-bpstat_find_step_resume_breakpoint (bpstat bsp)
-{
- int current_thread;
-
- gdb_assert (bsp != NULL);
-
- current_thread = pid_to_thread_id (inferior_ptid);
-
- for (; bsp != NULL; bsp = bsp->next)
- {
- if ((bsp->breakpoint_at != NULL)
- && (bsp->breakpoint_at->owner->type == bp_step_resume)
- && (bsp->breakpoint_at->owner->thread == current_thread
- || bsp->breakpoint_at->owner->thread == -1))
- return bsp->breakpoint_at->owner;
- }
-
- internal_error (__FILE__, __LINE__, _("No step_resume breakpoint found."));
-}
-
-
/* Put in *NUM the breakpoint number of the first breakpoint we are stopped
at. *BSP upon return is a bpstat which points to the remaining
breakpoints stopped at (but which is not guaranteed to be good for
@@ -3733,7 +3691,7 @@ bpstat_check_location (const struct bp_location *bl,
/* By definition, the inferior does not report stops at
tracepoints. */
- if (tracepoint_type (b))
+ if (is_tracepoint (b))
return 0;
if (b->type != bp_watchpoint
@@ -4788,7 +4746,7 @@ print_one_breakpoint_location (struct breakpoint *b,
because the condition is an internal implementation detail
that we do not want to expose to the user. */
annotate_field (7);
- if (tracepoint_type (b))
+ if (is_tracepoint (b))
ui_out_text (uiout, "\ttrace only if ");
else
ui_out_text (uiout, "\tstop only if ");
@@ -4968,7 +4926,7 @@ user_settable_breakpoint (const struct breakpoint *b)
return (b->type == bp_breakpoint
|| b->type == bp_catchpoint
|| b->type == bp_hardware_breakpoint
- || tracepoint_type (b)
+ || is_tracepoint (b)
|| b->type == bp_watchpoint
|| b->type == bp_read_watchpoint
|| b->type == bp_access_watchpoint
@@ -4976,11 +4934,14 @@ user_settable_breakpoint (const struct breakpoint *b)
}
/* Print information on user settable breakpoint (watchpoint, etc)
- number BNUM. If BNUM is -1 print all user settable breakpoints.
- If ALLFLAG is non-zero, include non- user settable breakpoints. */
+ number BNUM. If BNUM is -1 print all user-settable breakpoints.
+ If ALLFLAG is non-zero, include non-user-settable breakpoints. If
+ FILTER is non-NULL, call it on each breakpoint and only include the
+ ones for which it returns non-zero. Return the total number of
+ breakpoints listed. */
-static void
-breakpoint_1 (int bnum, int allflag)
+static int
+breakpoint_1 (int bnum, int allflag, int (*filter) (const struct breakpoint *))
{
struct breakpoint *b;
struct bp_location *last_loc = NULL;
@@ -4998,6 +4959,10 @@ breakpoint_1 (int bnum, int allflag)
if (bnum == -1
|| bnum == b->number)
{
+ /* If we have a filter, only list the breakpoints it accepts. */
+ if (filter && !filter (b))
+ continue;
+
if (allflag || user_settable_breakpoint (b))
{
int addr_bit = breakpoint_address_bits (b);
@@ -5053,6 +5018,10 @@ breakpoint_1 (int bnum, int allflag)
if (bnum == -1
|| bnum == b->number)
{
+ /* If we have a filter, only list the breakpoints it accepts. */
+ if (filter && !filter (b))
+ continue;
+
/* We only print out user settable breakpoints unless the
allflag is set. */
if (allflag || user_settable_breakpoint (b))
@@ -5064,11 +5033,15 @@ breakpoint_1 (int bnum, int allflag)
if (nr_printable_breakpoints == 0)
{
- if (bnum == -1)
- ui_out_message (uiout, 0, "No breakpoints or watchpoints.\n");
- else
- ui_out_message (uiout, 0, "No breakpoint or watchpoint number %d.\n",
- bnum);
+ /* If there's a filter, let the caller decide how to report empty list. */
+ if (!filter)
+ {
+ if (bnum == -1)
+ ui_out_message (uiout, 0, "No breakpoints or watchpoints.\n");
+ else
+ ui_out_message (uiout, 0, "No breakpoint or watchpoint number %d.\n",
+ bnum);
+ }
}
else
{
@@ -5079,6 +5052,8 @@ breakpoint_1 (int bnum, int allflag)
/* FIXME? Should this be moved up so that it is only called when
there have been breakpoints? */
annotate_breakpoints_table_end ();
+
+ return nr_printable_breakpoints;
}
static void
@@ -5089,7 +5064,26 @@ breakpoints_info (char *bnum_exp, int from_tty)
if (bnum_exp)
bnum = parse_and_eval_long (bnum_exp);
- breakpoint_1 (bnum, 0);
+ breakpoint_1 (bnum, 0, NULL);
+}
+
+static void
+watchpoints_info (char *wpnum_exp, int from_tty)
+{
+ int wpnum = -1, num_printed;
+
+ if (wpnum_exp)
+ wpnum = parse_and_eval_long (wpnum_exp);
+
+ num_printed = breakpoint_1 (wpnum, 0, is_watchpoint);
+
+ if (num_printed == 0)
+ {
+ if (wpnum == -1)
+ ui_out_message (uiout, 0, "No watchpoints.\n");
+ else
+ ui_out_message (uiout, 0, "No watchpoint number %d.\n", wpnum);
+ }
}
static void
@@ -5100,7 +5094,7 @@ maintenance_info_breakpoints (char *bnum_exp, int from_tty)
if (bnum_exp)
bnum = parse_and_eval_long (bnum_exp);
- breakpoint_1 (bnum, 1);
+ breakpoint_1 (bnum, 1, NULL);
}
static int
@@ -5429,7 +5423,7 @@ set_breakpoint_location_function (struct bp_location *loc)
{
if (loc->owner->type == bp_breakpoint
|| loc->owner->type == bp_hardware_breakpoint
- || tracepoint_type (loc->owner))
+ || is_tracepoint (loc->owner))
{
find_pc_partial_function (loc->address, &(loc->function_name),
NULL, NULL);
@@ -5716,7 +5710,7 @@ disable_breakpoints_in_shlibs (void)
if (((b->type == bp_breakpoint)
|| (b->type == bp_jit_event)
|| (b->type == bp_hardware_breakpoint)
- || (tracepoint_type (b)))
+ || (is_tracepoint (b)))
&& loc->pspace == current_program_space
&& !loc->shlib_disabled
#ifdef PC_SOLIB
@@ -9072,7 +9066,7 @@ update_global_location_list (int should_insert)
|| !loc->enabled
|| loc->shlib_disabled
|| !breakpoint_address_is_meaningful (b)
- || tracepoint_type (b))
+ || is_tracepoint (b))
continue;
/* Permanent breakpoint should always be inserted. */
@@ -9732,6 +9726,14 @@ set_ignore_count (int bptnum, int count, int from_tty)
ALL_BREAKPOINTS (b)
if (b->number == bptnum)
{
+ if (is_tracepoint (b))
+ {
+ if (from_tty && count != 0)
+ printf_filtered (_("Ignore count ignored for tracepoint %d."),
+ bptnum);
+ return;
+ }
+
b->ignore_count = count;
if (from_tty)
{
@@ -10451,29 +10453,20 @@ create_tracepoint_from_upload (struct uploaded_tp *utp)
static void
tracepoints_info (char *tpnum_exp, int from_tty)
{
- struct breakpoint *b;
- int tps_to_list = 0;
+ int tpnum = -1, num_printed;
+
+ if (tpnum_exp)
+ tpnum = parse_and_eval_long (tpnum_exp);
- /* In the no-arguments case, say "No tracepoints" if none found. */
- if (tpnum_exp == 0)
+ num_printed = breakpoint_1 (tpnum, 0, is_tracepoint);
+
+ if (num_printed == 0)
{
- ALL_TRACEPOINTS (b)
- {
- if (b->number >= 0)
- {
- tps_to_list = 1;
- break;
- }
- }
- if (!tps_to_list)
- {
- ui_out_message (uiout, 0, "No tracepoints.\n");
- return;
- }
+ if (tpnum == -1)
+ ui_out_message (uiout, 0, "No tracepoints.\n");
+ else
+ ui_out_message (uiout, 0, "No tracepoint number %d.\n", tpnum);
}
-
- /* Otherwise be the same as "info break". */
- breakpoints_info (tpnum_exp, from_tty);
}
/* The 'enable trace' command enables tracepoints.
@@ -10522,7 +10515,7 @@ delete_trace_command (char *arg, int from_tty)
{
ALL_BREAKPOINTS_SAFE (b, temp)
{
- if (tracepoint_type (b)
+ if (is_tracepoint (b)
&& b->number >= 0)
delete_breakpoint (b);
}
@@ -11164,8 +11157,9 @@ A watchpoint stops execution of your program whenever the value of\n\
an expression is either read or written."));
set_cmd_completer (c, expression_completer);
- add_info ("watchpoints", breakpoints_info,
- _("Synonym for ``info breakpoints''."));
+ add_info ("watchpoints", watchpoints_info, _("\
+Status of watchpoints, or watchpoint number NUMBER."));
+
/* XXX: cagney/2005-02-23: This should be a boolean, and should
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 3da6188..912cc3c 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -651,17 +651,6 @@ struct bpstat_what bpstat_what (bpstat);
/* Find the bpstat associated with a breakpoint. NULL otherwise. */
bpstat bpstat_find_breakpoint (bpstat, struct breakpoint *);
-/* Find a step_resume breakpoint associated with this bpstat.
- (If there are multiple step_resume bp's on the list, this function
- will arbitrarily pick one.)
-
- It is an error to use this function if BPSTAT doesn't contain a
- step_resume breakpoint.
-
- See wait_for_inferior's use of this function.
- */
-extern struct breakpoint *bpstat_find_step_resume_breakpoint (bpstat);
-
/* Nonzero if a signal that we got in wait() was due to circumstances
explained by the BS. */
/* Currently that is true if we have hit a breakpoint, or if there is
@@ -1041,7 +1030,7 @@ extern struct breakpoint *get_tracepoint_by_number (char **arg, int multi_p,
is newly allocated; the caller should free when done with it. */
extern VEC(breakpoint_p) *all_tracepoints (void);
-extern int breakpoint_is_tracepoint (const struct breakpoint *b);
+extern int is_tracepoint (const struct breakpoint *b);
/* Function that can be passed to read_command_line to validate
that each command is suitable for tracepoint command list. */
diff --git a/gdb/config/djgpp/fnchange.lst b/gdb/config/djgpp/fnchange.lst
index 3982f1d..eb9e835 100644
--- a/gdb/config/djgpp/fnchange.lst
+++ b/gdb/config/djgpp/fnchange.lst
@@ -371,6 +371,7 @@
@V@/gdb/testsuite/gdb.arch/powerpc-prologue.exp @V@/gdb/testsuite/gdb.arch/ppc-prologue.exp
@V@/gdb/testsuite/gdb.base/bitfields2.c @V@/gdb/testsuite/gdb.base/bitfiel2.c
@V@/gdb/testsuite/gdb.base/bitfields2.exp @V@/gdb/testsuite/gdb.base/bitfiel2.exp
+@V@/gdb/testsuite/gdb.base/break-entry.exp @V@/gdb/testsuite/gdb.base/brkentry.exp
@V@/gdb/testsuite/gdb.base/coremaker2.c @V@/gdb/testsuite/gdb.base/core2maker.c
@V@/gdb/testsuite/gdb.base/hashline1.exp @V@/gdb/testsuite/gdb.base/hash1line.exp
@V@/gdb/testsuite/gdb.base/hashline2.exp @V@/gdb/testsuite/gdb.base/hash2line.exp
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index a792152..9d9939f 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,12 @@
+2010-04-04 Stan Shebs <stan@codesourcery.com>
+
+ * gdb.texinfo (Setting Breakpoints): "info watch" no longer a synonym.
+ (Setting Watchpoints): Update description of "info watch".
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-04-04 11:58 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-04-04 11:58 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via d7e58fcbe0967f09883b314a2b414f265c41121a (commit)
via 834cef0c48a6b349926fba6ca9479a8f71b6d041 (commit)
via c196003fe1aea3dd0253116683b086e9518afcd5 (commit)
via c75c7b5544a4f06d63bdf20195897633d4c4650a (commit)
via 510010aff3b77f5d3906a9f54c80fb16fcfcf7fa (commit)
via 381afd77fede8964237416abe563b403eb9fff64 (commit)
via c3702819b1531f10d32ffcec1869158c0cb2a47d (commit)
via 7eefff46dab59928e9e224cbb1303249e6e20e1a (commit)
via 0ffeba00d655e8a16d34a4d3314759f59a28e934 (commit)
via 7d4cba3b3c89718ffc76737ad52f4b2928ebb59f (commit)
via 106fded0d9e101ccdcc0e8c85b0143d5b3dbd5f5 (commit)
via 278e2330b2de5ec0fe9de3cd3d692dfccccffef3 (commit)
via f6e01f0c5e388abe5ffd0f9329dd27fc5a95bf34 (commit)
via 24649440976356375b007725fff4a67214bd75ce (commit)
via 2d2d08d940be6c633064480efb635dd5060937e5 (commit)
via a68ec9e91005a9dbcb163fac03fcd0a3afa419ea (commit)
via 45e296f62230c57b4973002eeea387b38756a225 (commit)
via 9961a945ba4754e0b6f56d1bef23ed4d6009903b (commit)
via fcf9ef36ae5f01a5df4fc32b3d2a807f40909441 (commit)
via 5362e5e1dc4cfac24fbd58773aaa7a82c615b662 (commit)
via c3f49676292e5890706c55b27159381617a56d87 (commit)
via 1c3cddd06abdb2f67dc9e5b6597a4db2c22aafdd (commit)
via 2dbd07ff3b52a1f746bc256d0edd181fde98c77e (commit)
via 3d30645a80848e4a3bdccfd36baccf78b9657f64 (commit)
via ed9f1947e9fb57950d2eeec6f0b86fb8b1753f2b (commit)
via ec8933b41740f5fb1bce773676556802d4fc6db2 (commit)
via 71c157d7d82a84ef3a99352cff70c21d764c607c (commit)
via 0c6a98e6684fb004a5572e931e1846f3477ca561 (commit)
via 86519cf32808e9a1352acbb08b1985d21c68a6b2 (commit)
via b91451bbd8f6f78f1b1410b4de9726de2d88fb02 (commit)
via 5264087a1d130ea7d5d76c76d9838ed587135c92 (commit)
via 28775c16c26e7ef6687602604cdde263ce3791bc (commit)
via aa0d92f77ebcf274cb2e23c1a949c8ce839597c5 (commit)
via a19c18a1498aaa85cd92d80cc1c061701aca8cf4 (commit)
via 7e8e956c34e0fd4f0b59ef1c46f8966c66fffbf3 (commit)
via 846612a12ca071e6087bb4b2fb0b7b84ebac68ef (commit)
via 9d6fc2c28a2f39f9ceff98cdc993e6daaed9cd1d (commit)
via 8a6a1705426318b250a68619668bca39004e9a3c (commit)
via 9f3564d1f33bfda04e51952caf6ea32dd4a6fd59 (commit)
via b5ce0a92d38f4d60305eea9ecc1251f1f3813024 (commit)
via aaf7ddda357e835cbc69c3baf851ae5614eeb024 (commit)
via 82bc607b85c3cbfb8d4beef7329dd4eaa8aba9dd (commit)
via 2734812547b9fe0e797ea3770dce729326d586e6 (commit)
via ca7c2194b048f0a73a5b7a2ad4f8430922cdfe59 (commit)
via 704351e1a181751067c37f0d93d5f88d65f3afaa (commit)
via 1411fbd6ffdc4ee04d81903c1f991c5c99f1373b (commit)
via 089db151b0147d56173a2e6a952ae7161b1937f4 (commit)
via 081abf00a4d534b044c787059f4fb2f8429e06ba (commit)
via 1783236742f37bfbf438324691efe39378a43244 (commit)
via c9cf4a0b7b334c8c508153c0a75a4fab1a4b3df9 (commit)
via 46482279f27048d1e96d80cfc4acc73a4090fced (commit)
via a1d32bec03fab72ec665e0663a2f8a81191e3876 (commit)
via ff85badd8b7dac0094f5632ce2f3984a038ec294 (commit)
via b09b79e142b9a2de819e142398ac46a9fe9f1727 (commit)
via bd1ec112562a09a6f9a771f1e6623b927877835f (commit)
via fb26707875cdabd2c42e06ec01cc4da36ee9b815 (commit)
via 35f63f9ca57cf5b4e6d1f275f0cab2205f7580cb (commit)
via d3dc1456c6891924ddad6e7c5e04a667a79910bc (commit)
via d2b0be7794ce4462b5c38e8536b50cf9d9013d23 (commit)
via 0688bc9acffd42b34c5e5b77e63574bd6ba67448 (commit)
via 684341392f3ca6703dc28dac548d3051811bff47 (commit)
via 8a589464780f33401b3ecd25ea7c0bc5559a3c02 (commit)
via d5ea7042210f5ad319ad19910bce13fd5717c6d6 (commit)
via f6e7d25dc886cca5874f07da06a0fd7ae3a3f513 (commit)
via 19ae1bee09a39599b531c5bcc36df436b189934c (commit)
via 7344acc907cfb7e2ee5856d9cd1f02a5d3b79f77 (commit)
via 49f93ee6aafa584f8a80b87721b9a2c12dcab4a8 (commit)
via 76edd1a97f8b72ef92d60b50da904d0fd272ab62 (commit)
via a3aae1ff51350ba047cf5243cb21dbbf3ac9e7c6 (commit)
via b1113f7ef99c831f4166e52471e0cf0ca481f80d (commit)
via 619692094ba4391c5049a8776e540250830cf888 (commit)
via a1bf308373901f33bc54e5d21bf3c80117d2d2e0 (commit)
via 78803ba316c6f60c3794fd1e3becf242b4a91fe9 (commit)
via 1101194cfd827d5bad14c20a5342d5ff2bd6a782 (commit)
via 352dcf01c2e94e0778f65a40ce9e59178c8983a2 (commit)
via 3bc453fe84f67671c99f4c3add103621b9de239b (commit)
via 2aad26cc57d104bbd5144402856586be2ee1150a (commit)
via 58c221fe4314b56322516dad04341ec9939150c4 (commit)
via 692ee4f856ea8e13108f09d4fc932da00c03dfe0 (commit)
via 9b971f654a355f1b729613a62a2a301a2e2afed3 (commit)
via f811583aeb766b0a97fcc4a93d61bee9394c5eca (commit)
via b499644e6cf65779ced4c801f04c72075e67ad2e (commit)
via 1a22ea4cdab8208882d1214e843f9e8c7c881113 (commit)
via 4f612e310090488507bc31bbc780d6b2ba89d38f (commit)
via d31b7483ee01a76fe2666d62ae17f2f5027eb31e (commit)
via 90280ea36b4e93ee207324ef76b648571efbebbe (commit)
via 46ccfdba5c26799db48495f85350da16417c901a (commit)
via 7c6d57193dd59fb6317ec867e7b7acf969619c7c (commit)
via 5e40af195bd74a66d300d8f481cab1f2ba533f3a (commit)
via c218397846b823fb3c46574cc17a30ae1d281353 (commit)
via 2bdf4c43d498a1d275dc14b2d0889c0ba404a93a (commit)
via 2640a66ac74a182f6c45f76a28931803040aa6ea (commit)
via 8602539728bdbb1c76abdce52211f953e7ce4cfa (commit)
via ed9bd5194bf25b1ceb799d7a270fc9e69e379c41 (commit)
via 71ed052ecbe335aaa569615c304a9eef5e3489dc (commit)
via db5fe9a765bc7cb7df7c7fad50e12177ac6bafd1 (commit)
via 690feb7aad67c6143ab57b7588b8386d959f78c1 (commit)
via 5b39c21c8214afcdf8ed9de37fd68786aaeece23 (commit)
via f8cfb4a87c864abbfb7faace74b88b5e07854cf8 (commit)
via b2c39012cc6906417a9305fc2bfa66f7e0dc06d5 (commit)
via 1337fe6467a18f2d98163640a29b2682fa2bbf7d (commit)
via 70ae8d6bdd495cd0eeb36ab5053aaf448114c6d0 (commit)
via 60fa470a7908d2ab57a9ba84368e87a635e17b8a (commit)
via 39233d1eca42857f5cf67b618e89f59594b4e262 (commit)
via 93ad27bbc56b9c0209d9b49851d538afc80723dd (commit)
via e8ccc664ba5035cddc2698563837ca26d4fd453b (commit)
via e2cfe63fba5a44bebf21b4e0f192966c39f61342 (commit)
via 1a7b6469998b9e1c25e68f59fc23ad3fc00499a7 (commit)
via 8bc0d48889dae5d3cf7afa83f9e65827b153f423 (commit)
via deaf54a59090bb65be744d6ef73545781df4bae0 (commit)
via 5656cf7095af75d390aadfe2ec6e128f4a88b432 (commit)
via ebf554c190f8b78b664c6b0ae085c01467c8c079 (commit)
via f1d05b0b602243cc952205181090ab92b23a9e90 (commit)
via bd1fb1900ebc0bd2331f901edc042403007616f8 (commit)
via 9f958a99b58d8c6bbecefd3390a19003c5a5fa40 (commit)
via 9dcf5e86d3ceed89776ab03ca0d3b5bb79459d0d (commit)
via ed2e4b0e511a9d99fcc33335c5f5d7e6d3a04a90 (commit)
via fb68d8a2556cda8a1b57b1b70bfdc7cb27e2de4f (commit)
via 4f8baa5d53b1206bcda8bba3f21a06e5e034ac16 (commit)
from 5b63371fc09b5eba3ab4fe2767fb51e582bf6a62 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit d7e58fcbe0967f09883b314a2b414f265c41121a
Merge: 5b63371fc09b5eba3ab4fe2767fb51e582bf6a62 834cef0c48a6b349926fba6ca9479a8f71b6d041
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Apr 4 13:57:30 2010 +0200
Merge remote branch 'gdb/master'
commit 834cef0c48a6b349926fba6ca9479a8f71b6d041
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Apr 4 00:00:45 2010 +0000
*** empty log message ***
commit c196003fe1aea3dd0253116683b086e9518afcd5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Apr 4 00:00:11 2010 +0000
daily update
commit c75c7b5544a4f06d63bdf20195897633d4c4650a
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Apr 3 23:14:18 2010 +0000
* inferiors.c (add_thread): Set last_status kind to
TARGET_WAITKIND_IGNORE.
* linux-low.c (cancel_breakpoint): Remove unnecessary regcache
fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
(linux_wait_1): Move `thread' local definition to block that uses
it. Don't NULL initialize `event_child'.
(linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
* linux-x86-low.c (x86_breakpoint_at): Read raw memory.
commit 510010aff3b77f5d3906a9f54c80fb16fcfcf7fa
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Apr 3 00:00:10 2010 +0000
*** empty log message ***
commit 381afd77fede8964237416abe563b403eb9fff64
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Apr 2 23:00:06 2010 +0000
daily update
commit c3702819b1531f10d32ffcec1869158c0cb2a47d
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Apr 2 18:25:27 2010 +0000
sim: fix typos in hw-ports.h
commit 7eefff46dab59928e9e224cbb1303249e6e20e1a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Apr 2 15:21:38 2010 +0000
gdb/
* dwarf2read.c (read_namespace_type): Use common "return set_die_type"
code form.
commit 0ffeba00d655e8a16d34a4d3314759f59a28e934
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Apr 2 05:13:07 2010 +0000
2010-04-02 Hui Zhu <teawater@gmail.com>
Michael Snyder <msnyder@vmware.com>
* gdb.reverse/i386-sse-reverse.exp: New file.
* gdb.reverse/i386-sse-reverse.c: New file.
commit 7d4cba3b3c89718ffc76737ad52f4b2928ebb59f
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Apr 2 05:09:28 2010 +0000
2010-04-02 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (OT_DQUAD): New enum.
(i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
SSE3, SSSE3 and SSE4.
commit 106fded0d9e101ccdcc0e8c85b0143d5b3dbd5f5
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Apr 2 05:04:56 2010 +0000
2010-04-02 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
"*addr = 0".
commit 278e2330b2de5ec0fe9de3cd3d692dfccccffef3
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Apr 2 01:39:48 2010 +0000
* tracepoint.c (trace_dump_actions): New, factored out from
trace_dump_command, and adjusted to recurse into while-stepping's
action list.
(trace_dump_command): Use it.
commit f6e01f0c5e388abe5ffd0f9329dd27fc5a95bf34
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Apr 2 01:31:58 2010 +0000
* gdb.trace/tfind.exp: Adjust expected disassembly output.
commit 24649440976356375b007725fff4a67214bd75ce
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Apr 2 01:18:34 2010 +0000
* breakpoint.h (struct counted_command_line): Moved definition to
breakpoint.c, and forward declare.
(breakpoint_commands): Declare.
* breakpoint.c (struct counted_command_line): Moved here.
(breakpoint_commands): New.
* tracepoint.c (encode_actions): Use breakpoint_commands.
* remote.c (remote_download_tracepoint): Ditto.
commit 2d2d08d940be6c633064480efb635dd5060937e5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Apr 2 00:00:34 2010 +0000
*** empty log message ***
commit a68ec9e91005a9dbcb163fac03fcd0a3afa419ea
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Apr 1 23:13:23 2010 +0000
Use hex_string instead of phex_nz for error.
2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
* remote.c (remote_parse_stop_reply): Use hex_string instead
of phex_nz for error.
commit 45e296f62230c57b4973002eeea387b38756a225
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Apr 1 23:00:04 2010 +0000
daily update
commit 9961a945ba4754e0b6f56d1bef23ed4d6009903b
Author: Stan Shebs <shebs@apple.com>
Date: Thu Apr 1 22:57:07 2010 +0000
2010-04-01 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
* tracepoint.h (enum actionline_type): Remove.
(validate_actionline): Change return to void.
* tracepoint.c (report_agent_reqs_errors): New function.
(validate_actionline): Call it, change return to void, report errors
more consistently.
(collect_symbol): Call report_agent_reqs_errors.
(encode_actions_1): Ditto.
(encode_actions): Don't expect a result from validate_actionline.
* gdb.trace/actions.exp: Tweak expected output.
* gdb.trace/while-stepping.exp: Tweak expected output.
commit fcf9ef36ae5f01a5df4fc32b3d2a807f40909441
Author: Stan Shebs <shebs@apple.com>
Date: Thu Apr 1 20:30:55 2010 +0000
2010-04-01 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (trace_start_command): Confirm if trace is running.
(trace_stop_command): Error if trace not running.
commit 5362e5e1dc4cfac24fbd58773aaa7a82c615b662
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Apr 1 20:02:07 2010 +0000
Support "ah", "bh", "ch", "dh" on amd64.
gdb/
2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
* amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
(AMD64_NUM_LOWER_BYTE_REGS): New.
(amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
(amd64_pseudo_register_write): Likewise.
(amd64_init_abi): Set num_byte_regs to 20.
gdb/testsuite/
2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
* gdb.arch/amd64-byte.exp: Check "ah", "bh", "ch", "dh".
commit c3f49676292e5890706c55b27159381617a56d87
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 1 15:31:26 2010 +0000
* linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
an extended waitstatus, or by a watchpoint.
(cancel_breakpoints_callback): Don't cancel a breakpoint if the
thread was stepping or has been stopped by a watchpoint.
commit 1c3cddd06abdb2f67dc9e5b6597a4db2c22aafdd
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 1 14:26:53 2010 +0000
* mem-break.c (struct raw_breakpoint): New field shlib_disabled.
(set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
of another, then delete the previous, and validate all
breakpoints.
(validate_inserted_breakpoint): New.
(delete_disabled_breakpoints): New.
(validate_breakpoints): New.
(check_mem_read): Validate breakpoints before trusting their
shadow. Delete disabled breakpoints.
(check_mem_write): Validate breakpoints before trusting they
should be inserted. Delete disabled breakpoints.
* mem-break.h (validate_breakpoints):
* server.c (handle_query): Validate breakpoints when we see a
qSymbol query.
commit 2dbd07ff3b52a1f746bc256d0edd181fde98c77e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 1 14:25:34 2010 +0000
* linux-low.c (linux_wait_1): Avoid setting need_step_over is
there's a GDB breakpoint at stop_pc. Always report a trap to GDB
if we could tell there's a GDB breakpoint at stop_pc.
(need_step_over_p): Don't do a step over if we find a GDB
breakpoint at the resume PC.
* mem-break.c (struct raw_breakpoint): New.
(enum bkpt_type): New type `gdb_breakpoint'.
(struct breakpoint): Delete the `PC', `old_data' and `inserted'
fields. New field `raw'.
(find_raw_breakpoint_at): New.
(set_raw_breakpoint_at): Handle refcounting. Create a raw
breakpoint instead.
(set_breakpoint_at): Adjust.
(delete_raw_breakpoint): New.
(release_breakpoint): New.
(delete_breakpoint): Rename to...
(delete_breakpoint_1): ... this. Add proc parameter. Use
release_breakpoint. Return ENOENT.
(delete_breakpoint): Reimplement.
(find_breakpoint_at): Delete.
(find_gdb_breakpoint_at): New.
(delete_breakpoint_at): Delete.
(set_gdb_breakpoint_at): New.
(delete_gdb_breakpoint_at): New.
(gdb_breakpoint_here): New.
(set_reinsert_breakpoint): Use release_breakpoint.
(uninsert_breakpoint): Rename to ...
(uninsert_raw_breakpoint): ... this.
(uninsert_breakpoints_at): Adjust to handle raw breakpoints.
(reinsert_raw_breakpoint): Change parameter type to
raw_breakpoint.
(reinsert_breakpoints_at): Adjust to handle raw breakpoints
instead.
(check_breakpoints): Adjust. Use release_breakpoint.
(breakpoint_here): Rewrite using find_raw_breakpoint_at.
(breakpoint_inserted_here): Ditto.
(check_mem_read): Adjust to iterate over raw breakpoints instead.
Don't trust the breakpoint's shadow if it is not inserted.
(check_mem_write): Adjust to iterate over raw breakpoints instead.
(delete_all_breakpoints): Adjust.
(free_all_breakpoints): Mark all breakpoints as uninserted, and
use delete_breakpoint_1.
* mem-break.h (breakpoints_supported): Delete declaration.
(set_gdb_breakpoint_at): Declare.
(gdb_breakpoint_here): Declare.
(delete_breakpoint_at): Delete.
(delete_gdb_breakpoint_at): Declare.
* server.h (struct raw_breakpoint): Forward declare.
(struct process_info): New field `raw_breakpoints'.
* linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
breakpoints.
commit 3d30645a80848e4a3bdccfd36baccf78b9657f64
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 1 14:11:18 2010 +0000
gdb/
* breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
(prev_breakpoint_count): New.
(set_breakpoint_count): Adjust.
(rbreak_start_breakpoint_count): New.
(start_rbreak_breakpoints): Adjust.
(end_rbreak_breakpoints): Adjust.
(struct commands_info) <arg>: New field.
(do_map_commands_command): Tweak output to include breakpoint spec
range.
(commands_command_1): Adjust. Avoid setting an xfree cleanup if
ARG was empty on entry. Set INFO's arg.
(create_breakpoint): Adjust.
* NEWS: Clarify `commands' changes.
gdb/doc/
* gdb.texinfo (Break Commands): Clarify `commands' changes, and
add cross reference.
gdb/testsuite/
* gdb.base/commands.exp: Adjust.
* gdb.cp/extern-c.exp: Adjust.
commit ed9f1947e9fb57950d2eeec6f0b86fb8b1753f2b
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Apr 1 13:07:19 2010 +0000
Add missing file from my previous commit.
commit ec8933b41740f5fb1bce773676556802d4fc6db2
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 1 11:23:58 2010 +0000
gdb/
* tracepoint.c: Include stack.h.
(struct add_local_symbols_data): New.
(do_collect_symbol): New.
(add_local_symbols): Rewrite using iterate_over_block_arg_vars and
iterate_over_block_local_vars.
* stack.c (print_block_frame_locals): Rewrite as ...
(iterate_over_block_locals): ... this. Take a callback function
pointer and generic data pointer, and call that instead of
print_variable_and_value.
(struct print_variable_and_value_data): New.
(do_print_variable_and_value): New.
(iterate_over_block_local_vars): New, abstracted out from
print_frame_local_vars.
(print_frame_local_vars): Rewrite using
iterate_over_block_local_vars.
(iterate_over_block_arg_vars): New, abstracted out from
print_frame_arg_vars.
(print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
* stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
(iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
gdb/testsuite/
* gdb.trace/collection.c (local_test_func): Define a local struct,
and instanciate it.
commit 71c157d7d82a84ef3a99352cff70c21d764c607c
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Thu Apr 1 10:02:27 2010 +0000
bfd/
* elf32-ppc.c (apuinfo_set): New static var.
(ppc_elf_begin_write_processing): Set it here, always create an
APUinfo section if there were any in the inputs.
(ppc_elf_write_section): Check apuinfo_set.
(ppc_elf_final_write_processing): Likewise.
ld/testsuite/
* ld-powerpc/apuinfo-nul.rd: New.
* ld-powerpc/apuinfo-nul1.s: New.
* ld-powerpc/powerpc.exp: Add it.
commit 0c6a98e6684fb004a5572e931e1846f3477ca561
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Apr 1 09:47:13 2010 +0000
2010-04-01 Tristan Gingold <gingold@adacore.com>
* vms.h: Include time.h. Add prototypes for vms_get_module_name,
vms_time_to_time_t and vms_rawtime_to_time_t.
* vms.c (vms_alpha_vec): Add archives support.
* vms-misc.c: Include safe-ctype.h
(vms_get_module_name): New function.
(vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
* vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
vms_get_module_name function. Use this function.
* targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
* libbfd-in.h: Add prototype for _bfd_append_relative_path.
Add prototypes for vms-lib.c
* libbfd.h: Regenerate.
* configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
vms-lib.lo to vms_alpha_vec.
* config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
* configure: Regenerate.
* bfd.c: Add selective_search field.
* bfd-in2.h: Regenerate.
* archive.c (append_relative_path): Rename to
_bfd_append_relative_path and make it public.
(_bfd_get_elt_at_filepos): Adjust for above renaming.
* Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
(BFD32_BACKENDS_CFILES): Add vms-lib.c
* Makefile.in: Regenerate.
commit 86519cf32808e9a1352acbb08b1985d21c68a6b2
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu Apr 1 05:24:51 2010 +0000
* dwarf2.c (read_attribute_value): Handle CU version 4
for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
and DW_FORM_flag_present. For unknown form value return NULL.
(scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
like DW_FORM_block.
(parse_comp_unit): Allow CU version 4.
commit b91451bbd8f6f78f1b1410b4de9726de2d88fb02
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Apr 1 00:55:02 2010 +0000
* gdb.trace/collection.exp (gdb_collect_args_test)
(gdb_collect_argarray_test): XFAIL the tests that assume the
argarray argument's elements are collected.
commit 5264087a1d130ea7d5d76c76d9838ed587135c92
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Apr 1 00:00:03 2010 +0000
*** empty log message ***
commit 28775c16c26e7ef6687602604cdde263ce3791bc
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Mar 31 23:00:06 2010 +0000
daily update
commit aa0d92f77ebcf274cb2e23c1a949c8ce839597c5
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Wed Mar 31 22:44:49 2010 +0000
* elf32-cris.c (cris_elf_relocate_section): Correct first argument
to _bfd_elf_get_dynamic_reloc_section.
(elf_cris_discard_excess_dso_dynamics): Ditto.
commit a19c18a1498aaa85cd92d80cc1c061701aca8cf4
Author: Richard Earnshaw <richard.earnshaw@arm.com>
Date: Wed Mar 31 22:10:05 2010 +0000
* arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
instructions. Use the PC+4 if the base of the TBB or TBH is the
PC register.
commit 7e8e956c34e0fd4f0b59ef1c46f8966c66fffbf3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Mar 31 18:13:37 2010 +0000
gdb/
Fix crash on reading wrong function declaration DWARF.
* dwarf2read.c (read_subroutine_type): New variable void_type.
Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
more close to their use.
gdb/testsuite/
* gdb.dwarf2/dw2-bad-parameter-type.exp,
gdb.dwarf2/dw2-bad-parameter-type.S: New.
commit 846612a12ca071e6087bb4b2fb0b7b84ebac68ef
Author: Stan Shebs <shebs@apple.com>
Date: Wed Mar 31 17:59:48 2010 +0000
2010-03-31 Stan Shebs <stan@codesourcery.com>
* breakpoint.c (tracepoint_save_command): Include variables,
conditionals, tracepoint types, and default-collect.
* tracepoint.c (save_trace_state_variables): New function.
* tracepoint.h (save_trace_state_variables): Declare it.
* gdb.trace/save-trace.exp: Test save/restore of default-collect
and tracepoint conditionals.
(gdb_verify_tracepoints): Delete unused return.
commit 9d6fc2c28a2f39f9ceff98cdc993e6daaed9cd1d
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Wed Mar 31 16:32:01 2010 +0000
2010-03-31 Kai Tietz <kai.tietz@onevision.com>
* coff-i386.c (in_reloc_p): Check also for R_SECREL32.
* coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
commit 8a6a1705426318b250a68619668bca39004e9a3c
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Wed Mar 31 14:36:40 2010 +0000
* src/gdb/remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
commit 9f3564d1f33bfda04e51952caf6ea32dd4a6fd59
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Mar 31 12:19:52 2010 +0000
* gdb.texinfo (TUI Commands): Mention that in some cases, these
commands error out.
commit b5ce0a92d38f4d60305eea9ecc1251f1f3813024
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Mar 31 07:53:39 2010 +0000
* elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
TPREL16_HI and TPREL16_HA insns.
commit aaf7ddda357e835cbc69c3baf851ae5614eeb024
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Mar 31 07:35:54 2010 +0000
2010-03-31 Tristan Gingold <gingold@adacore.com>
* dcx.h: New file.
* dsc.h: New file.
* esdfm.h: New file.
* esdfv.h: New file.
* internal.h: New file.
* lbr.h: New file.
* prt.h: New file.
* shl.h (struct vms_shl): Add comments.
* esrf.h (ESRF__B_NAMLNG): New macro.
* esdf.h (ESDF__B_NAMLNG): New macro.
* emh.h: Add macros for fields maximum value.
* eisd.h (EISD__M_PROTECT): Fix typo in comment.
Add macros for offsets, version, section type and match control.
Merge vms_eisd_ext into vms_eisd.
* eihvn.h (EIHVN__MULTI_PROCESSING_BIT, EIHVN__GALAXY_BIT): Added.
* eihs.h: Remove blank line.
* eihd.h (struct vms_eihd): Add comments, add image subtype names.
* eiha.h (struct vms_eiha): Add inishr and inishr_h fields.
* eiaf.h (struct vms_eiaf): Fix base_va size.
* egsy.h: Add comments.
* egsd.h: Remove blank line.
* egps.h: Add flag names.
* eeom.h (EEOM__M_WKTFR): Added.
* dst.h (DST__K_CXX): Added, and reident languages.
(DST__K_SRC_INCRLNUM_B): Added.
Indent and order pcline commands.
Add record begin/end, enumerations, type specification, value
specification, label, discontinue range definitions.
commit 82bc607b85c3cbfb8d4beef7329dd4eaa8aba9dd
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Wed Mar 31 05:44:00 2010 +0000
Fix toplevel configure --enable-multilib handling.
/:
PR bootstrap/43328
* configure.ac: Do not pass --enable-multilib nor
--disable-multilib in baseargs. Accept explicitly passed
--enable_multilib.
* configure: Regenerate.
commit 2734812547b9fe0e797ea3770dce729326d586e6
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Wed Mar 31 03:38:25 2010 +0000
PR ld/11458
* elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
assert of empty pcrel_relocs_copied on the direct symbol. Instead
of moving the list from the indirect symbol to the direct symbol,
merge into any existing list.
(cris_elf_check_relocs): Store the original section in the
pcrel_relocs_copied list, not the relocation section.
(elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
the relocation section, for reducing its size. Change the
BFD_ASSERT into a check for the section being read-only, and only
emit warnings and TEXTREL marker when there's an entry for a
read-only section.
commit ca7c2194b048f0a73a5b7a2ad4f8430922cdfe59
Author: Keith Seitz <keiths@redhat.com>
Date: Wed Mar 31 00:48:28 2010 +0000
* c-typeprint.c (c_type_print_args): Don't print "void"
for java, regardless of whether it is TYPE_PROTOTYPED.
Use the passed-in language instead of current_language.
(c_type_print_varspec_suffix): Use current_language instead
of assuming language_c.
* jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
any return type specifier from the physname.
commit 704351e1a181751067c37f0d93d5f88d65f3afaa
Author: Keith Seitz <keiths@redhat.com>
Date: Wed Mar 31 00:47:23 2010 +0000
* gdb.java/jmisc.exp (ptype jmisc): Allow the constructor to
appear in the output before main.
Remove KFAIL for gdb/2215 aka bz 9320.
commit 1411fbd6ffdc4ee04d81903c1f991c5c99f1373b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Mar 31 00:00:33 2010 +0000
*** empty log message ***
commit 089db151b0147d56173a2e6a952ae7161b1937f4
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 23:43:03 2010 +0000
sim: v850: fix build failure after watchpoint constification
commit 081abf00a4d534b044c787059f4fb2f8429e06ba
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 23:09:48 2010 +0000
sim: use socklen_t with accept()
The accept() function takes a socklen_t, not an int. Using an int causes:
dv-sockser.c: In function 'connected_p':
dv-sockser.c:273: warning: pointer targets in passing argument 3
of 'accept' differ in signedness
So use the same socklen_t detection code as gdb and convert the accept().
commit 1783236742f37bfbf438324691efe39378a43244
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Mar 30 23:00:04 2010 +0000
daily update
commit c9cf4a0b7b334c8c508153c0a75a4fab1a4b3df9
Author: Doug Evans <dje@google.com>
Date: Tue Mar 30 22:25:58 2010 +0000
* gdb.arch/amd64-word.exp: Rename hex to hexr, the former is defined
by dejagnu.
* gdb.arch/amd64-dword.exp: Ditto.
commit 46482279f27048d1e96d80cfc4acc73a4090fced
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Mar 30 22:21:33 2010 +0000
* tui/tui-interp.c (tui_is_toplevel): New.
(tui_init): Set it.
(tui_allowed_p): New.
* tui/tui.c (tui_enable): Check if the TUI is allowed before
enabling it.
* tui/tui.h (tui_allowed_p): Declare.
commit a1d32bec03fab72ec665e0663a2f8a81191e3876
Author: Doug Evans <dje@google.com>
Date: Tue Mar 30 22:12:07 2010 +0000
* gdb.base/annota1.exp (break handle_USR1): Make fail and pass text
match.
(break printf): Ditto.
commit ff85badd8b7dac0094f5632ce2f3984a038ec294
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 20:43:36 2010 +0000
sim: fix printf format warning about non-string literal
This is the normal "passing a buffer straight to printf makes GCC warn".
While we know this particular case is fine, the trend in this source tree
is to fix this anyways to avoid the warnings.
commit b09b79e142b9a2de819e142398ac46a9fe9f1727
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 20:42:02 2010 +0000
sim: constify watchpoint interrupt names
GCC issues warnings because const strings like "foo" are passed as char*.
sim-watch.c: In function 'watchpoint_type_to_str':
sim-watch.c:120: warning: return discards qualifiers from pointer target type
commit bd1ec112562a09a6f9a771f1e6623b927877835f
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 20:40:27 2010 +0000
sim: change raddr to address_word
The sim read/write buffer functions deal with address_word's, not
unsigned_words's, so make sure the local raddr variable matches
accordingly.
commit fb26707875cdabd2c42e06ec01cc4da36ee9b815
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 20:39:38 2010 +0000
sim: fix unused cpu_nr warnings
The trace_option_handler() function only uses cpu_nr when the
SIM_HAVE_ADDR_RANGE define is enabled. So move the decl down
to where the code exists. Otherwise GCC warns:
sim-trace.c: In function 'trace_option_handler':
sim-trace.c:236: warning: unused variable 'cpu_nr'
commit 35f63f9ca57cf5b4e6d1f275f0cab2205f7580cb
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 20:38:26 2010 +0000
sim: update device_error() prototype
The device_error() takes a printf style string, so update the prototype
accordingly. The message should be const and it should use an attribute.
This fixes gcc warnings like:
sim-core.c: In function 'sim_core_map_attach':
sim-core.c:200: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type
sim-core.c:237: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type
sim-core.c: In function 'sim_core_attach':
sim-core.c:304: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type
sim-core.c:314: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type
sim-core.c:335: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type
sim-core.c:348: warning: passing argument 2 of 'device_error' discards qualifiers from pointer target type
commit d3dc1456c6891924ddad6e7c5e04a667a79910bc
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 20:35:39 2010 +0000
sim: fix unused profile_print_addr_ranges warning
The profile_print_addr_ranges() function is only used when
SIM_HAVE_ADDR_RANGE is defined, so #ifdef it accordingly.
commit d2b0be7794ce4462b5c38e8536b50cf9d9013d23
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 19:45:32 2010 +0000
sim: tweak static order on hw_glue_ports
GCC likes to warn when static comes after const:
dv-glue.c:191: warning: 'static' is not at beginning of declaration
commit 0688bc9acffd42b34c5e5b77e63574bd6ba67448
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 30 19:43:42 2010 +0000
sim: convert old style function definitions
GCC currently emits warnings like:
nrun.c: In function 'usage':
nrun.c:223: warning: old-style function definition
commit 684341392f3ca6703dc28dac548d3051811bff47
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Mar 30 18:37:03 2010 +0000
Add org.gnu.gdb.i386.avx.
2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
* gdb.texinfo (i386 Features): Add org.gnu.gdb.i386.avx.
commit 8a589464780f33401b3ecd25ea7c0bc5559a3c02
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Mar 30 18:08:02 2010 +0000
2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
* serial.h: Include winsock2.h before windows.h.
commit d5ea7042210f5ad319ad19910bce13fd5717c6d6
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Mar 30 15:45:08 2010 +0000
Add xmlRegisters= to qSupported packet.
gdb/
2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
* NEWS: Mention xmlRegisters= in qSupported packet.
* i386-tdep.c: Include "remote.h".
(_initialize_i386_tdep): Call register_remote_support_xml.
* remote.c (remote_support_xml): New.
(register_remote_support_xml): Likewise.
(remote_query_supported_append): Likewise.
(remote_query_supported): Support remote_support_xml.
* remote.h (register_remote_support_xml): New.
gdb/doc/
2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
* gdb.texinfo (General Query Packets): Add xmlRegisters.
commit f6e7d25dc886cca5874f07da06a0fd7ae3a3f513
Author: Stan Shebs <shebs@apple.com>
Date: Tue Mar 30 00:19:43 2010 +0000
2010-03-29 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (trace_find_line_command): Remove dead code.
commit 19ae1bee09a39599b531c5bcc36df436b189934c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Mar 30 00:00:33 2010 +0000
*** empty log message ***
commit 7344acc907cfb7e2ee5856d9cd1f02a5d3b79f77
Author: Stan Shebs <shebs@apple.com>
Date: Mon Mar 29 23:47:28 2010 +0000
2010-03-29 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
* gdb.texinfo (GDB/MI Tracepoint Commands): Add notes about the
GDBN equivalent.
(Set Tracepoints): Remove mention that conditional tracepoints
don't exist.
(Tracepoint Actions): Clarify when while-stepping collection
happens, note that while-stepping does not automatically collect
$pc.
commit 49f93ee6aafa584f8a80b87721b9a2c12dcab4a8
Author: Stan Shebs <shebs@apple.com>
Date: Mon Mar 29 23:45:04 2010 +0000
2010-03-29 Stan Shebs <stan@codesourcery.com>
* tracepoint.h (struct uploaded_string): New struct.
(struct uploaded_tp): New fields for source strings.
* breakpoint.c (this_utp, next_cmd): New globals.
(read_uploaded_action): New function.
(create_tracepoint_from_upload): Fill in more parts
of a tracepoint.
* tracepoint.c (encode_source_string): New function.
(trace_save): Write out source strings, fix error checks.
(parse_tracepoint_definition): Add source string parsing.
* remote.c (PACKET_TracepointSource): New packet type.
(remote_download_command_source): New function.
(remote_download_tracepoint): Download source pieces also.
(_initialize_remote): Add packet config command.
* gdb.texinfo (Tracepoint Packets): Describe QTDPsrc.
(General Query Packets): Describe TracepointSource.
commit 76edd1a97f8b72ef92d60b50da904d0fd272ab62
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Mar 29 23:00:04 2010 +0000
daily update
commit a3aae1ff51350ba047cf5243cb21dbbf3ac9e7c6
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Mar 29 20:42:54 2010 +0000
bfd/
* elf32-arm.c (using_thumb_only): Handle v6-M.
ld/testsuite/
* ld-arm/arm-elf.exp (armeabitests): Add v6-M farcall test.
commit b1113f7ef99c831f4166e52471e0cf0ca481f80d
Author: swagiaal <swagiaal>
Date: Mon Mar 29 20:35:19 2010 +0000
2010-03-29 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/nsusing.exp: Marked imported declaration test as xfail with
gcc < 4.4.
* gdb.cp/shadow.exp: Ditto.
commit 619692094ba4391c5049a8776e540250830cf888
Author: Stan Shebs <shebs@apple.com>
Date: Mon Mar 29 17:58:16 2010 +0000
2010-03-29 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
expression handler.
commit a1bf308373901f33bc54e5d21bf3c80117d2d2e0
Author: Stan Shebs <shebs@apple.com>
Date: Mon Mar 29 17:41:37 2010 +0000
2010-03-29 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (start_tracing): Check tracepoints before sending
commands to target, don't start if all tracepoints disabled.
commit 78803ba316c6f60c3794fd1e3becf242b4a91fe9
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Mar 29 00:46:54 2010 +0000
* gdb.trace/collection.exp (run_trace_experiment): Make sure
"tstart" is silent.
commit 1101194cfd827d5bad14c20a5342d5ff2bd6a782
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Mar 29 00:00:03 2010 +0000
*** empty log message ***
commit 352dcf01c2e94e0778f65a40ce9e59178c8983a2
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Mar 28 23:17:57 2010 +0000
* gdb.trace/collection.exp (executable): New.
(binfile): Use it.
(fpreg, spreg, pcreg): New.
(test_register): Use gdb_test_multiple. Pass /x to print.
(prepare_for_trace_test): New.
(run_trace_experiment): Use "continue", not gdb_run_cmd.
(gdb_collect_args_test, gdb_collect_argstruct_test)
(gdb_collect_argarray_test, gdb_collect_locals_test): Use
prepare_for_trace_test.
(gdb_collect_registers_test): Use prepare_for_trace_test. Use
fpreg, spreg and pcreg.
(gdb_collect_expression_test, gdb_collect_globals_test): Use
prepare_for_trace_test.
(gdb_trace_collection_test): Use fpreg, spreg and pcreg. Don't
try to detect tracing support here. Don't set breakpoints at
`begin' or `end' here.
<global scope>: Use clean_restart. Run to main before checking
for tracing support. Check for for tracing support here.
commit 3bc453fe84f67671c99f4c3add103621b9de239b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Mar 28 23:00:04 2010 +0000
daily update
commit 2aad26cc57d104bbd5144402856586be2ee1150a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Mar 28 19:08:23 2010 +0000
gdb/testsuite/
* gdb.base/break-interp.exp (test_core, test_attach, test_ld): Add
" as $displacement" to "seen displacement message".
commit 58c221fe4314b56322516dad04341ec9939150c4
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Mar 28 18:11:20 2010 +0000
Whoops. Use tab, not spaces.
commit 692ee4f856ea8e13108f09d4fc932da00c03dfe0
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Mar 28 18:00:54 2010 +0000
gdb/
* cli/cli-script.c (process_next_line): Handle 'stepping'.
gdb/testsuite/
* gdb.trace/while-dyn.exp (executable): New variable.
(binfile): Use it.
(test_while_stepping): New function. Move most tests here. Call
it once for each of the while-stepping, stepping and ws aliases.
commit 9b971f654a355f1b729613a62a2a301a2e2afed3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Mar 28 00:00:03 2010 +0000
*** empty log message ***
commit f811583aeb766b0a97fcc4a93d61bee9394c5eca
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Mar 27 23:00:06 2010 +0000
daily update
commit b499644e6cf65779ced4c801f04c72075e67ad2e
Author: Eli Zaretskii <eliz@gnu.org>
Date: Sat Mar 27 09:01:26 2010 +0000
* gdb.texinfo (ARM): Document arguments to "target sim".
(Set Catchpoints): Use @dots{} instead of @r{...}.
commit 1a22ea4cdab8208882d1214e843f9e8c7c881113
Author: Stan Shebs <shebs@apple.com>
Date: Sat Mar 27 00:12:33 2010 +0000
2010-03-26 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
commit 4f612e310090488507bc31bbc780d6b2ba89d38f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Mar 27 00:00:34 2010 +0000
*** empty log message ***
commit d31b7483ee01a76fe2666d62ae17f2f5027eb31e
Author: Stan Shebs <shebs@apple.com>
Date: Fri Mar 26 23:49:30 2010 +0000
2010-03-26 Tom Tromey <tromey@redhat.com>
* breakpoint.c (commands_command_1): Duplicate 'arg'.
commit 90280ea36b4e93ee207324ef76b648571efbebbe
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Mar 26 23:00:07 2010 +0000
daily update
commit 46ccfdba5c26799db48495f85350da16417c901a
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Mar 26 19:41:49 2010 +0000
* breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
(skip_prologue_sal): Remove local definition.
(resolve_sal_pc): Remove now unnecessary code.
* linespec.c (minsym_found): Call skip_prologue_sal.
* symtab.c (find_function_start_pc): Remove.
(find_function_start_sal): Extract prologue skipping into ...
(skip_prologue_sal): ... this new function. Handle code both
with and without debug info. Respect SAL's explicit_pc and
explicit_line flags. Inline old find_function_start_pc.
* symtab.h (find_function_start_pc): Remove.
(skip_prologue_sal): Add prototype.
commit 7c6d57193dd59fb6317ec867e7b7acf969619c7c
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Mar 26 18:55:29 2010 +0000
* dwarf2read.c (read_func_scope): Also scan specification DIEs
for DW_TAG_imported_module children.
commit 5e40af195bd74a66d300d8f481cab1f2ba533f3a
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Mar 26 18:05:41 2010 +0000
ChangeLog:
* dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
ignoring spurious DW_AT_name attributes for unnamed structs or unions.
* completer.c (add_struct_fields): Fix inverted logic.
testsuite/ChangeLog:
* gdb.cp/inherit.exp (test_ptype_si): XFAIL test for GCC versions
that do not provide the tagless_struct type name at all.
(test_print_anon_union): Do not check value of uninitialized
union member. Do not use cp_test_ptype_class, so we can accept
"long" as well as "long int".
commit c218397846b823fb3c46574cc17a30ae1d281353
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Mar 26 16:41:53 2010 +0000
* breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
commit 2bdf4c43d498a1d275dc14b2d0889c0ba404a93a
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 26 15:26:27 2010 +0000
* tracepoint.c (current_trace_status): Don't make sure error_desc
is non-NULL here.
(parse_trace_status): Release a previous error_desc string, and
set it to NULL by default. If stop reason is tracepoint_error,
make sure error_desc is not left NULL.
commit 2640a66ac74a182f6c45f76a28931803040aa6ea
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 26 14:31:45 2010 +0000
gdb/
* tracepoint.c (trace_save): Remove X from tracepoint error
description.
gdb/testsuite/
* gdb.trace/tfile.c (tohex, bin2hex): New.
(write_error_trace_file): Hexify error description.
commit 8602539728bdbb1c76abdce52211f953e7ce4cfa
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 26 13:35:05 2010 +0000
gdb/
* tracepoint.c (parse_trace_status): Don't allow plain strings in
the terror description. Don't expect an X prefix.
gdb/doc/
* gdb.texinfo (Tracepoint Packets): Remove mention that
terror:string may be plain text, and drop mention of X prefix.
commit ed9bd5194bf25b1ceb799d7a270fc9e69e379c41
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Mar 26 08:34:23 2010 +0000
* elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
* bfd-in.h (elf_discarded_section): Clarify comment.
* reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
* bfd-in2.h: Regenerate.
commit 71ed052ecbe335aaa569615c304a9eef5e3489dc
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Fri Mar 26 08:08:07 2010 +0000
* gdb.texinfo (GDB/MI Tracepoint Commands): Add comma after @xref.
commit db5fe9a765bc7cb7df7c7fad50e12177ac6bafd1
Author: Stan Shebs <shebs@apple.com>
Date: Fri Mar 26 01:46:27 2010 +0000
2010-03-25 Stan Shebs <stan@codesourcery.com>
* tracepoint.h (trace_stop_reason): Add tracepoint_error.
(struct trace_status): New field error_desc.
* tracepoint.c (stop_reason_names): Add terror.
(current_trace_status): Ensure non-NULL error description.
(trace_status_command): Add error report.
(trace_status_mi): Ditto.
(trace_save): Add special case for error description.
(parse_trace_status): Add case for errors.
* gdb.texinfo (Tracepoint Packets): Document trace error status.
* gdb.trace/tfile.c: Generate an additional trace file, improve
portability.
* gdb.trace/tfile.exp: Test trace file with an error stop, delete
files in a better way.
commit 690feb7aad67c6143ab57b7588b8386d959f78c1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Mar 26 01:40:39 2010 +0000
* archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
as unique in the armap.
commit 5b39c21c8214afcdf8ed9de37fd68786aaeece23
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Mar 26 00:35:57 2010 +0000
PR ld/11375
* elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
possible stub on branches.
commit f8cfb4a87c864abbfb7faace74b88b5e07854cf8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Mar 26 00:19:29 2010 +0000
add pr ref
commit b2c39012cc6906417a9305fc2bfa66f7e0dc06d5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Mar 26 00:00:03 2010 +0000
*** empty log message ***
commit 1337fe6467a18f2d98163640a29b2682fa2bbf7d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Mar 25 23:00:05 2010 +0000
daily update
commit 70ae8d6bdd495cd0eeb36ab5053aaf448114c6d0
Author: Keith Seitz <keiths@redhat.com>
Date: Thu Mar 25 22:13:15 2010 +0000
* dwarf2read.c (read_subroutine_type): If the compilation unit
language is Java, mark any formal parameter named "this" as
artificial (GCC/43521).
(dwarf2_name): Add special handling for Java constructors.
commit 60fa470a7908d2ab57a9ba84368e87a635e17b8a
Author: Keith Seitz <keiths@redhat.com>
Date: Thu Mar 25 22:12:06 2010 +0000
* gdb.java/jprint.exp: XFAIL printing of static class members
because of GCC debuginfo problem.
commit 39233d1eca42857f5cf67b618e89f59594b4e262
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Thu Mar 25 21:12:25 2010 +0000
bfd:
* Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
(ALL_MACHINES_CFILES): Add cpu-tic6x.c.
(BFD32_BACKENDS): Add elf32-tic6x.lo.
(BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
* Makefile.in: Regenerate.
* archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
(bfd_archures_list): Update.
* config.bfd (tic6x-*-elf): New.
* configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
New.
* configure: Regenerate.
* cpu-tic6x.c, elf32-tic6x.c: New.
* reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
* targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
(_bfd_target_vector): Update.
* bfd-in2.h, libbfd.h: Regenerate.
binutils:
* MAINTAINERS: Add self as TI C6X maintainer.
* NEWS: Add news entry for TI C6X support.
* readelf.c: Include elf/tic6x.h.
(guess_is_rela): Handle EM_TI_C6000.
(dump_relocations): Likewise.
(get_tic6x_dynamic_type): New.
(get_dynamic_type): Call it.
(get_machine_flags): Handle EF_C6000_REL.
(get_osabi_name): Handle machine-specific values only for relevant
machines. Handle C6X values.
(get_tic6x_segment_type): New.
(get_segment_type): Call it.
(get_tic6x_section_type_name): New.
(get_section_type_name): Call it.
(is_32bit_abs_reloc, is_16bit_abs_reloc, is_none_reloc): Handle
EM_TI_C6000.
gas:
* Makefile.am (TARGET_CPU_CFILES): Add config/tc-tic6x.c.
(TARGET_CPU_HFILES): Add config/tc-tic6x.h.
* Makefile.in: Regenerate.
* NEWS: Add news entry for TI C6X support.
* app.c (do_scrub_chars): Handle "||^" for TI C6X. Handle
TC_PREDICATE_START_CHAR and TC_PREDICATE_END_CHAR. Keep spaces in
operands if TC_KEEP_OPERAND_SPACES.
* configure.tgt (tic6x-*-*): New.
* config/tc-ia64.h (TC_PREDICATE_START_CHAR,
TC_PREDICATE_END_CHAR): Define.
* config/tc-tic6x.c, config/tc-tic6x.h: New.
* doc/Makefile.am (CPU_DOCS): Add c-tic6x.texi.
* doc/Makefile.in: Regenerate.
* doc/all.texi (TIC6X): Define.
* doc/as.texinfo: Add TI C6X documentation. Include c-tic6x.texi.
* doc/c-tic6x.texi: New.
gas/testsuite:
* gas/tic6x: New directory and testcases.
include:
* dis-asm.h (print_insn_tic6x): Declare.
include/elf:
* common.h (ELFOSABI_C6000_ELFABI, ELFOSABI_C6000_LINUX): Define.
* tic6x.h: New.
include/opcode:
* tic6x-control-registers.h, tic6x-insn-formats.h,
tic6x-opcode-table.h, tic6x.h: New.
ld:
* Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
eelf32_tic6x_le.o.
(eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
* NEWS: Add news entry for TI C6X support.
* configure.tgt (tic6x-*-*): New.
* emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
ld/testsuite:
* ld-elf/flags1.d, ld-elf/merge.d: XFAIL for tic6x-*-*.
* ld-elf/sec-to-seg.exp: Set B_test_same_seg to 0 for tic6x-*-*.
* ld-tic6x: New directory and testcases.
opcodes:
* Makefile.am (TARGET_LIBOPCODES_CFILES): Add tic6x-dis.c.
* Makefile.in: Regenerate.
* configure.in (bfd_tic6x_arch): New.
* configure: Regenerate.
* disassemble.c (ARCH_tic6x): Define if ARCH_all.
(disassembler): Handle TI C6X.
* tic6x-dis.c: New.
commit 93ad27bbc56b9c0209d9b49851d538afc80723dd
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Mar 25 20:48:52 2010 +0000
PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
* infrun.c (handle_inferior_event): Change initialization of
stop_stack_dummy.
(handle_inferior_event): Change assignment to stop_stack_dummy.
(normal_stop): Update use of stop_stack_dummy.
(struct inferior_status) <stop_stack_dummy>: Change type.
* inferior.h (stop_stack_dummy): Update.
* infcmd.c (stop_stack_dummy): Change type.
* infcall.c (cleanup_delete_std_terminate_breakpoint): New
function.
(call_function_by_hand): Call set_std_terminate_breakpoint.
Rewrite std::terminate handling.
* breakpoint.h (enum bptype) <bp_std_terminate,
bp_std_terminate_master>: New.
(enum stop_stack_kind): New.
(struct bpstat_what) <call_dummy>: Change type.
(set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
Declare.
* breakpoint.c (create_std_terminate_master_breakpoint): New
function.
(update_breakpoints_after_exec): Handle bp_std_terminate_master.
Call create_std_terminate_master_breakpoint.
(print_it_typical): Handle new breakpoint kinds.
(bpstat_stop_status): Handle bp_std_terminate_master.
(bpstat_what): Correctly set call_dummy field. Handle
bp_std_terminate_master and bp_std_terminate.
(print_one_breakpoint_location): Update.
(allocate_bp_location): Update.
(set_std_terminate_breakpoint): New function.
(delete_std_terminate_breakpoint): Likewise.
(create_thread_event_breakpoint): Update.
(delete_command): Update.
(breakpoint_re_set_one): Update.
(breakpoint_re_set): Call create_std_terminate_master_breakpoint.
commit e8ccc664ba5035cddc2698563837ca26d4fd453b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Mar 25 20:29:27 2010 +0000
gdb/
* symfile.c (build_section_addr_info_from_bfd): New.
(build_section_addr_info_from_objfile): Base it on
build_section_addr_info_from_bfd.
(addrs_section_compar, addrs_section_sort): New.
(addr_info_make_relative): New variables my_cleanup, abfd_addrs,
addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
addrs_to_abfd_addrs. Use it for recalculating ADDRS.
gdb/testsuite/
* gdb.base/dup-sect.exp, gdb.base/dup-sect.S: New.
commit e2cfe63fba5a44bebf21b4e0f192966c39f61342
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 25 00:00:33 2010 +0000
*** empty log message ***
commit 1a7b6469998b9e1c25e68f59fc23ad3fc00499a7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Mar 24 23:00:05 2010 +0000
daily update
commit 8bc0d48889dae5d3cf7afa83f9e65827b153f423
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Mar 24 21:58:31 2010 +0000
2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
* elfread.c (find_separate_debug_file_by_buildid):
Remove unused local variable.
commit deaf54a59090bb65be744d6ef73545781df4bae0
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Mar 24 21:28:13 2010 +0000
* gdb.base/completion.exp: Allow long instead of long int.
* gdb.base/ending-run.exp: Match _rt_entry.* for RealView.
* gdb.base/gdbvars.c (main): Remove unused usestubs code. Reference
variable p.
* gdb.base/maint.exp: Allow ER_RO and ER_RW instead of .text and .data.
* gdb.base/pointers.exp: Allow long instead of long int.
* gdb.base/printcmds.exp: XFAIL for RealView on ARM EABI.
* gdb.base/step-line.exp: Allow a directory before the source file name.
commit 5656cf7095af75d390aadfe2ec6e128f4a88b432
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Mar 24 21:24:07 2010 +0000
gdb
PR breakpoints/9352:
* NEWS: Mention changes to `commands' and `rbreak'.
* symtab.c (do_end_rbreak_breakpoints): New function.
(rbreak_command): Call start_rbreak_breakpoints; arrange to call
end_rbreak_breakpoints.
* breakpoint.c (breakpoint_count, tracepoint_count): Now static.
(set_breakpoint_count): Likewise. Clear last_was_multi.
(multi_start, multi_end, last_was_multi): New globals.
(start_rbreak_breakpoints, end_rbreak_breakpoints): New
functions.
(struct commands_info): New
(do_map_commands_command): New function.
(commands_command_1): New function.
(commands_command): Use it.
(commands_from_control_command): Likewise.
(do_delete_breakpoint): New function.
(delete_command): Use it.
(map_breakpoint_numbers): Add 'data' argument. Pass to callback.
(do_map_disable_breakpoint): New function.
(disable_command): Use it.
(do_map_enable_breakpoint): New function.
(enable_command): Use it.
(enable_once_breakpoint): Add argument.
(enable_once_command): Update.
(enable_delete_breakpoint): Add argument.
(enable_delete_command): Update.
(break_command_really): Set last_was_multi when needed.
(check_tracepoint_command): Fix formatting.
(validate_commands_for_breakpoint): New function.
(breakpoint_set_commands): Use it.
(tracepoint_save_command): Update.
* breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
Declare.
gdb/doc
PR breakpoints/9352:
* gdb.texinfo (Break Commands): Update.
gdb/testsuite
PR breakpoints/9352:
* gdb.base/default.exp: Update.
* gdb.base/commands.exp: Update.
* gdb.cp/extern-c.exp: Test setting commands on multiple
breakpoints at once.
commit ebf554c190f8b78b664c6b0ae085c01467c8c079
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Mar 24 21:20:39 2010 +0000
* gdb.base/call-signal-resume.exp, gdb.base/unwindonsignal.exp: Skip
if gdb,nosignals.
* gdb.base/watchpoints.c: Do not include unnecessary headers.
* lib/gdb.exp (gdb_test_multiple): Relax pattern for "the program
exited".
commit f1d05b0b602243cc952205181090ab92b23a9e90
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Mar 24 21:12:45 2010 +0000
* linux-low.c (status_pending_p_callback): Fix comment.
(linux_wait_for_event_1): Move most of the internal breakpoint
handling from here...
(linux_wait_1): ... to here.
(count_events_callback): New.
(select_singlestep_lwp_callback): New.
(select_event_lwp_callback): New.
(cancel_breakpoints_callback): New.
(select_event_lwp): New.
(linux_wait_1): Simplify internal breakpoint handling. Give equal
priority to all LWPs that have had events that should be reported
to the client. Cancel breakpoints when about to reporting the
event to the client, not while stopping lwps. No longer cancel
finished single-steps here.
(cancel_finished_single_step): Delete.
(cancel_finished_single_steps): Delete.
commit bd1fb1900ebc0bd2331f901edc042403007616f8
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Mar 24 21:12:18 2010 +0000
* breakpoint.h (struct counted_command_line): New struct.
(struct breakpoint) <commands>: Change type.
(struct bpstats) <commands>: Change type.
<commands_left>: New field.
* breakpoint.c (alloc_counted_command_line): New function.
(incref_counted_command_line): Likewise.
(decref_counted_command_line): Likewise.
(do_cleanup_counted_command_line): Likewise.
(make_cleanup_decref_counted_command_line): Likewise.
(breakpoint_set_commands): Use decref_counted_command_line and
alloc_counted_command_line.
(commands_command): Don't error if breakpoint commands are
executing.
(commands_from_control_command): Likewise.
(bpstat_free): Update.
(bpstat_copy): Likewise.
(bpstat_clear_actions): Likewise.
(bpstat_do_actions_1): Likewise.
(bpstat_stop_status): Likewise.
(print_one_breakpoint_location): Likewise.
(delete_breakpoint): Likewise.
(bpstat_alloc): Initialize new field.
(tracepoint_save_command): Update.
* tracepoint.c (encode_actions): Update.
(trace_dump_command): Update.
commit 9f958a99b58d8c6bbecefd3390a19003c5a5fa40
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Mar 24 21:11:25 2010 +0000
* mem-break.c (enum bkpt_type): New.
(struct breakpoint): New field `type'.
(set_breakpoint_at): Change return type to struct breakpoint
pointer. Set type to `other_breakpoint' by default.
(delete_breakpoint): Rewrite, supporting more than one breakpoint
in the breakpoint list.
(delete_reinsert_breakpoints): Only delete reinsert breakpoints.
(reinsert_breakpoint): Rename to ...
(reinsert_raw_breakpoint): ... this.
(reinsert_breakpoints_at): Adjust.
* mem-break.h (struct breakpoint): Declare.
(set_breakpoint_at): Change return type to struct breakpoint
pointer.
commit 9dcf5e86d3ceed89776ab03ca0d3b5bb79459d0d
Author: Stan Shebs <shebs@apple.com>
Date: Wed Mar 24 21:11:06 2010 +0000
2010-03-24 Stan Shebs <stan@codesourcery.com>
* gdb.trace/tfile.exp: Expect "trace frame", with a space.
commit ed2e4b0e511a9d99fcc33335c5f5d7e6d3a04a90
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Mar 24 21:06:28 2010 +0000
* dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
* dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
(read_structure_type): For RealView, set TYPE_STUB on structures with
no byte size and no children.
(read_subroutine_type): Mark functions as prototyped by default.
* symtab.c (producer_is_realview): New function.
* symtab.h (expand_line_sal): Fix declaration formatting.
(producer_is_realview): Declare.
testsuite/
* gdb.base/callfuncs.exp (do_function_calls): Add XFAILs for RealView.
* gdb.base/ptype.exp (ptype_maybe_prototyped): Add overprototyped
argument. Handle "short" and "long".
(Top level): Pass overprototyped output for old_fptr and xptr.
commit fb68d8a2556cda8a1b57b1b70bfdc7cb27e2de4f
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Mar 24 20:23:13 2010 +0000
* arm-tdep.c (skip_prologue_function): New function.
(submask, bit, bits, sbits, BranchDest): Move higher in the file.
(thumb_analyze_prologue): Document return value. Recognize more
Thumb instructions, skippable calls, and some Thumb-2 instructions.
Add debug output.
(arm_skip_prologue): Remove call dummy check. Check the prologue
for non-GNU compilers.
(arm_instruction_changes_pc): New function.
(arm_analyze_prologue): New function, broken out from
arm_scan_prologue. Recognize more ARM instructions and skippable
calls. Update comments. Handle NULL cache. Return the address
of the first unrecognized instruction. Do not skip past other
instructions which change control flow. Add debug output.
(arm_scan_prologue): Use arm_analyze_prologue.
(ARM_PC_32): Delete.
(shifted_reg_val): Simplify ARM_PC_32 check.
commit 4f8baa5d53b1206bcda8bba3f21a06e5e034ac16
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed Mar 24 19:37:05 2010 +0000
* tracepoint.c (tvariables_info_1): Actually compute
the number of rows in the result.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 +
bfd/ChangeLog | 135 +-
bfd/Makefile.am | 6 +
bfd/Makefile.in | 9 +
bfd/archive.c | 7 +-
bfd/archures.c | 3 +
bfd/bfd-in.h | 2 +-
bfd/bfd-in2.h | 40 +-
bfd/bfd.c | 4 +
bfd/coff-i386.c | 3 +-
bfd/coff-x86_64.c | 11 +-
bfd/config.bfd | 6 +
bfd/configure | 5 +-
bfd/configure.in | 5 +-
include/vms/esrf.h => bfd/cpu-tic6x.c | 38 +-
bfd/dwarf2.c | 19 +-
bfd/elf32-arm.c | 3 +
bfd/elf32-cris.c | 74 +-
bfd/elf32-ppc.c | 21 +-
bfd/elf32-tic6x.c | 1000 ++++++++
bfd/elf64-ppc.c | 46 +-
bfd/libbfd-in.h | 26 +
bfd/libbfd.h | 55 +-
bfd/reloc.c | 60 +-
bfd/targets.c | 6 +
bfd/version.h | 2 +-
bfd/vms-hdr.c | 40 +-
bfd/vms-lib.c | 1704 +++++++++++++
bfd/vms-misc.c | 91 +
bfd/vms.c | 8 +-
bfd/vms.h | 6 +
configure | 11 +-
configure.ac | 11 +-
gdb/ChangeLog | 457 ++++-
gdb/NEWS | 10 +
gdb/amd64-tdep.c | 48 +-
gdb/arm-tdep.c | 755 +++++--
gdb/breakpoint.c | 691 ++++--
gdb/breakpoint.h | 49 +-
gdb/c-typeprint.c | 6 +-
gdb/cli/cli-script.c | 3 +-
gdb/completer.c | 2 +-
gdb/doc/ChangeLog | 111 +-
gdb/doc/gdb.texinfo | 165 ++-
gdb/dwarf2-frame.c | 54 +-
gdb/dwarf2read.c | 129 +-
gdb/elfread.c | 1 -
gdb/gdbserver/ChangeLog | 129 +
gdb/gdbserver/inferiors.c | 1 +
gdb/gdbserver/linux-low.c | 686 +++---
gdb/gdbserver/linux-x86-low.c | 6 +-
gdb/gdbserver/mem-break.c | 462 +++-
gdb/gdbserver/mem-break.h | 24 +-
gdb/gdbserver/server.c | 12 +
gdb/gdbserver/server.h | 4 +
gdb/i386-tdep.c | 874 +++++++-
gdb/infcall.c | 69 +-
gdb/infcmd.c | 2 +-
gdb/inferior.h | 2 +-
gdb/infrun.c | 8 +-
gdb/jv-typeprint.c | 16 +-
gdb/linespec.c | 21 +-
gdb/remote.c | 167 ++-
gdb/remote.h | 1 +
gdb/serial.h | 1 +
gdb/stack.c | 141 +-
gdb/stack.h | 12 +
gdb/symfile.c | 139 +-
gdb/symtab.c | 212 ++-
gdb/symtab.h | 12 +-
gdb/testsuite/ChangeLog | 173 ++
gdb/testsuite/gdb.arch/amd64-byte.exp | 30 +-
gdb/testsuite/gdb.arch/amd64-dword.exp | 8 +-
gdb/testsuite/gdb.arch/amd64-word.exp | 8 +-
gdb/testsuite/gdb.base/annota1.exp | 10 +-
gdb/testsuite/gdb.base/break-interp.exp | 6 +-
gdb/testsuite/gdb.base/call-signal-resume.exp | 5 +
gdb/testsuite/gdb.base/callfuncs.exp | 6 +
gdb/testsuite/gdb.base/commands.exp | 6 +-
gdb/testsuite/gdb.base/completion.exp | 2 +-
gdb/testsuite/gdb.base/default.exp | 2 +-
gdb/{stack.h => testsuite/gdb.base/dup-sect.S} | 20 +-
gdb/testsuite/gdb.base/dup-sect.exp | 79 +
gdb/testsuite/gdb.base/ending-run.exp | 2 +-
gdb/testsuite/gdb.base/gdbvars.c | 6 +-
gdb/testsuite/gdb.base/maint.exp | 26 +-
gdb/testsuite/gdb.base/pointers.exp | 2 +-
gdb/testsuite/gdb.base/printcmds.exp | 8 +
gdb/testsuite/gdb.base/ptype.exp | 28 +-
gdb/testsuite/gdb.base/step-line.exp | 2 +-
gdb/testsuite/gdb.base/unwindonsignal.exp | 5 +
gdb/testsuite/gdb.base/watchpoints.c | 3 -
gdb/testsuite/gdb.cp/extern-c.exp | 19 +
gdb/testsuite/gdb.cp/inherit.exp | 28 +-
gdb/testsuite/gdb.cp/nsusing.exp | 5 +
gdb/testsuite/gdb.cp/shadow.exp | 9 +
gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S | 73 +
.../gdb.dwarf2/dw2-bad-parameter-type.exp | 44 +
gdb/testsuite/gdb.java/jmisc.exp | 7 +-
gdb/testsuite/gdb.java/jprint.exp | 3 +
gdb/testsuite/gdb.reverse/i386-sse-reverse.c | 101 +
gdb/testsuite/gdb.reverse/i386-sse-reverse.exp | 705 ++++++
gdb/testsuite/gdb.trace/actions.exp | 2 +-
gdb/testsuite/gdb.trace/collection.c | 1 +
gdb/testsuite/gdb.trace/collection.exp | 179 +-
gdb/testsuite/gdb.trace/save-trace.exp | 14 +-
gdb/testsuite/gdb.trace/tfile.c | 114 +-
gdb/testsuite/gdb.trace/tfile.exp | 17 +-
gdb/testsuite/gdb.trace/tfind.exp | 2 +-
gdb/testsuite/gdb.trace/while-dyn.exp | 74 +-
gdb/testsuite/gdb.trace/while-stepping.exp | 2 +-
gdb/testsuite/lib/gdb.exp | 2 +-
gdb/tracepoint.c | 586 +++--
gdb/tracepoint.h | 49 +-
gdb/tui/tui-interp.c | 17 +
gdb/tui/tui.c | 3 +
gdb/tui/tui.h | 4 +
gdb/version.in | 2 +-
include/ChangeLog | 4 +
include/dis-asm.h | 3 +-
include/elf/ChangeLog | 5 +
include/elf/common.h | 2 +
include/elf/tic6x.h | 128 +
include/opcode/ChangeLog | 5 +
include/opcode/tic6x-control-registers.h | 54 +
include/opcode/tic6x-insn-formats.h | 198 ++
include/opcode/tic6x-opcode-table.h | 2549 ++++++++++++++++++++
include/opcode/tic6x.h | 614 +++++
include/vms/ChangeLog | 31 +
include/vms/{egps.h => dcx.h} | 46 +-
include/vms/dsc.h | 129 +
include/vms/dst.h | 135 +-
include/vms/eeom.h | 2 +
include/vms/egps.h | 14 +
include/vms/egsd.h | 1 -
include/vms/egsy.h | 16 +-
include/vms/eiaf.h | 2 +-
include/vms/eiha.h | 4 +
include/vms/eihd.h | 15 +-
include/vms/eihs.h | 1 -
include/vms/eihvn.h | 2 +
include/vms/eisd.h | 35 +-
include/vms/emh.h | 7 +
include/vms/esdf.h | 2 +
include/vms/{egps.h => esdfm.h} | 23 +-
include/vms/{egps.h => esdfv.h} | 23 +-
include/vms/esrf.h | 2 +
include/vms/internal.h | 63 +
include/vms/lbr.h | 255 ++
include/vms/{egsy.h => prt.h} | 55 +-
include/vms/shl.h | 6 +-
opcodes/ChangeLog | 10 +
opcodes/Makefile.am | 1 +
opcodes/Makefile.in | 2 +
opcodes/configure | 1 +
opcodes/configure.in | 1 +
opcodes/disassemble.c | 8 +-
opcodes/tic6x-dis.c | 1110 +++++++++
sim/common/ChangeLog | 59 +
sim/common/config.in | 29 +-
sim/common/configure | 68 +
sim/common/configure.ac | 5 +
sim/common/dv-glue.c | 2 +-
sim/common/dv-sockser.c | 6 +-
sim/common/hw-ports.h | 10 +-
sim/common/nrun.c | 2 +-
sim/common/sim-core.c | 4 +-
sim/common/sim-core.h | 2 +-
sim/common/sim-hw.c | 2 +-
sim/common/sim-options.c | 11 +-
sim/common/sim-profile.c | 2 +
sim/common/sim-trace.c | 14 +-
sim/common/sim-utils.c | 12 +-
sim/common/sim-watch.c | 8 +-
sim/common/sim-watch.h | 2 +-
sim/cris/ChangeLog | 3 +
sim/cris/devices.c | 2 +-
sim/frv/ChangeLog | 4 +
sim/frv/devices.c | 2 +-
sim/m32r/ChangeLog | 4 +
sim/m32r/devices.c | 2 +-
sim/v850/ChangeLog | 5 +
sim/v850/interp.c | 4 +-
183 files changed, 15320 insertions(+), 1954 deletions(-)
copy include/vms/esrf.h => bfd/cpu-tic6x.c (56%)
create mode 100644 bfd/elf32-tic6x.c
create mode 100644 bfd/vms-lib.c
copy gdb/{stack.h => testsuite/gdb.base/dup-sect.S} (57%)
create mode 100644 gdb/testsuite/gdb.base/dup-sect.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp
create mode 100644 gdb/testsuite/gdb.reverse/i386-sse-reverse.c
create mode 100644 gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
create mode 100644 include/elf/tic6x.h
create mode 100644 include/opcode/tic6x-control-registers.h
create mode 100644 include/opcode/tic6x-insn-formats.h
create mode 100644 include/opcode/tic6x-opcode-table.h
create mode 100644 include/opcode/tic6x.h
copy include/vms/{egps.h => dcx.h} (64%)
create mode 100644 include/vms/dsc.h
copy include/vms/{egps.h => esdfm.h} (77%)
copy include/vms/{egps.h => esdfv.h} (78%)
create mode 100644 include/vms/internal.h
create mode 100644 include/vms/lbr.h
copy include/vms/{egsy.h => prt.h} (52%)
create mode 100644 opcodes/tic6x-dis.c
create mode 100644 sim/cris/ChangeLog
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index cf2d209..027f923 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ PR bootstrap/43328
+ * configure.ac: Do not pass --enable-multilib nor
+ --disable-multilib in baseargs. Accept explicitly passed
+ --enable_multilib.
+ * configure: Regenerate.
+
2010-03-23 Joseph Myers <joseph@codesourcery.com>
* configure.ac (tic6x-*-*): New case.
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ac67a21..aa32144 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,131 @@
+2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
+
+ * elf32-ppc.c (apuinfo_set): New static var.
+ (ppc_elf_begin_write_processing): Set it here, always create an
+ APUinfo section if there were any in the inputs.
+ (ppc_elf_write_section): Check apuinfo_set.
+ (ppc_elf_final_write_processing): Likewise.
+
+2010-04-01 Tristan Gingold <gingold@adacore.com>
+
+ * vms.h: Include time.h. Add prototypes for vms_get_module_name,
+ vms_time_to_time_t and vms_rawtime_to_time_t.
+ * vms.c (vms_alpha_vec): Add archives support.
+ * vms-misc.c: Include safe-ctype.h
+ (vms_get_module_name): New function.
+ (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
+ * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
+ vms_get_module_name function. Use this function.
+ * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
+ * libbfd-in.h: Add prototype for _bfd_append_relative_path.
+ Add prototypes for vms-lib.c
+ * libbfd.h: Regenerate.
+ * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
+ vms-lib.lo to vms_alpha_vec.
+ * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
+ * configure: Regenerate.
+ * bfd.c: Add selective_search field.
+ * bfd-in2.h: Regenerate.
+ * archive.c (append_relative_path): Rename to
+ _bfd_append_relative_path and make it public.
+ (_bfd_get_elt_at_filepos): Adjust for above renaming.
+ * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
+ (BFD32_BACKENDS_CFILES): Add vms-lib.c
+ * Makefile.in: Regenerate.
+
+2010-04-01 Jakub Jelinek <jakub@redhat.com>
+
+ * dwarf2.c (read_attribute_value): Handle CU version 4
+ for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
+ and DW_FORM_flag_present. For unknown form value return NULL.
+ (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
+ like DW_FORM_block.
+ (parse_comp_unit): Allow CU version 4.
+
+2010-04-01 Hans-Peter Nilsson <hp@axis.com>
+
+ * elf32-cris.c (cris_elf_relocate_section): Correct first argument
+ to _bfd_elf_get_dynamic_reloc_section.
+ (elf_cris_discard_excess_dso_dynamics): Ditto.
+
+2010-03-31 Kai Tietz <kai.tietz@onevision.com>
+
+ * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
+ * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
+
+2010-03-31 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
+ TPREL16_HI and TPREL16_HA insns.
+
+2010-03-31 Hans-Peter Nilsson <hp@axis.com>
+
+ PR ld/11458
+ * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
+ assert of empty pcrel_relocs_copied on the direct symbol. Instead
+ of moving the list from the indirect symbol to the direct symbol,
+ merge into any existing list.
+ (cris_elf_check_relocs): Store the original section in the
+ pcrel_relocs_copied list, not the relocation section.
+ (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
+ the relocation section, for reducing its size. Change the
+ BFD_ASSERT into a check for the section being read-only, and only
+ emit warnings and TEXTREL marker when there's an entry for a
+ read-only section.
+
+2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elf32-arm.c (using_thumb_only): Handle v6-M.
+
+2010-03-26 Alan Modra <amodra@gmail.com>
+
+ * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
+ * bfd-in.h (elf_discarded_section): Clarify comment.
+ * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
+ * bfd-in2.h: Regenerate.
+
+2010-03-26 Matt Rice <ratmice@gmail.com>
+
+ * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
+ as unique in the armap.
+
+2010-03-26 Alan Modra <amodra@gmail.com>
+
+ PR ld/11375
+ * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
+ possible stub on branches.
+
+2010-03-25 Joseph Myers <joseph@codesourcery.com>
+
+ * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
+ (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
+ (BFD32_BACKENDS): Add elf32-tic6x.lo.
+ (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
+ * Makefile.in: Regenerate.
+ * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
+ (bfd_archures_list): Update.
+ * config.bfd (tic6x-*-elf): New.
+ * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
+ New.
+ * configure: Regenerate.
+ * cpu-tic6x.c, elf32-tic6x.c: New.
+ * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
+ BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
+ BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
+ BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
+ BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
+ BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
+ BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
+ BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
+ BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
+ BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
+ BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
+ BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
+ BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
+ * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
+ (_bfd_target_vector): Update.
+ * bfd-in2.h, libbfd.h: Regenerate.
+
2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
* aout-target.h: Update copyright year.
@@ -75,6 +203,7 @@
2010-03-17 Alan Modra <amodra@gmail.com>
+ PR binutils/11382
* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
proper type.
@@ -331,7 +460,7 @@
elfcore_write_s390_prefix): New.
(elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
- (elfcore_write_register_note): Handle .reg-s390-timer,
+ (elfcore_write_register_note): Handle .reg-s390-timer,
.reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
.reg-s390-prefix section.
@@ -727,10 +856,10 @@
2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
Alan Modra <amodra@gmail.com>
- * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
+ * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
(elf_object_p): Read e_phnum extension.
(elf_write_shdrs_and_ehdr): Write e_phnum extension.
- * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
+ * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
that we can read last program header.
2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 03aa24b..ac38177 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -129,6 +129,7 @@ ALL_MACHINES = \
cpu-tic30.lo \
cpu-tic4x.lo \
cpu-tic54x.lo \
+ cpu-tic6x.lo \
cpu-tic80.lo \
cpu-v850.lo \
cpu-vax.lo \
@@ -201,6 +202,7 @@ ALL_MACHINES_CFILES = \
cpu-tic30.c \
cpu-tic4x.c \
cpu-tic54x.c \
+ cpu-tic6x.c \
cpu-tic80.c \
cpu-v850.c \
cpu-vax.c \
@@ -317,6 +319,7 @@ BFD32_BACKENDS = \
elf32-sh64.lo \
elf32-sparc.lo \
elf32-spu.lo \
+ elf32-tic6x.lo \
elf32-v850.lo \
elf32-vax.lo \
elf32-xc16x.lo \
@@ -390,6 +393,7 @@ BFD32_BACKENDS = \
versados.lo \
vms-gsd.lo \
vms-hdr.lo \
+ vms-lib.lo \
vms-misc.lo \
vms-tir.lo \
vms.lo \
@@ -501,6 +505,7 @@ BFD32_BACKENDS_CFILES = \
elf32-sh64.c \
elf32-sparc.c \
elf32-spu.c \
+ elf32-tic6x.c \
elf32-v850.c \
elf32-vax.c \
elf32-xc16x.c \
@@ -573,6 +578,7 @@ BFD32_BACKENDS_CFILES = \
versados.c \
vms-gsd.c \
vms-hdr.c \
+ vms-lib.c \
vms-misc.c \
vms-tir.c \
vms.c \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 639817d..ed626c9 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -425,6 +425,7 @@ ALL_MACHINES = \
cpu-tic30.lo \
cpu-tic4x.lo \
cpu-tic54x.lo \
+ cpu-tic6x.lo \
cpu-tic80.lo \
cpu-v850.lo \
cpu-vax.lo \
@@ -497,6 +498,7 @@ ALL_MACHINES_CFILES = \
cpu-tic30.c \
cpu-tic4x.c \
cpu-tic54x.c \
+ cpu-tic6x.c \
cpu-tic80.c \
cpu-v850.c \
cpu-vax.c \
@@ -614,6 +616,7 @@ BFD32_BACKENDS = \
elf32-sh64.lo \
elf32-sparc.lo \
elf32-spu.lo \
+ elf32-tic6x.lo \
elf32-v850.lo \
elf32-vax.lo \
elf32-xc16x.lo \
@@ -687,6 +690,7 @@ BFD32_BACKENDS = \
versados.lo \
vms-gsd.lo \
vms-hdr.lo \
+ vms-lib.lo \
vms-misc.lo \
vms-tir.lo \
vms.lo \
@@ -798,6 +802,7 @@ BFD32_BACKENDS_CFILES = \
elf32-sh64.c \
elf32-sparc.c \
elf32-spu.c \
+ elf32-tic6x.c \
elf32-v850.c \
elf32-vax.c \
elf32-xc16x.c \
@@ -870,6 +875,7 @@ BFD32_BACKENDS_CFILES = \
versados.c \
vms-gsd.c \
vms-hdr.c \
+ vms-lib.c \
vms-misc.c \
vms-tir.c \
vms.c \
@@ -1287,6 +1293,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tic30.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tic4x.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tic54x.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tic6x.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tic80.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-v850.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-vax.Plo@am__quote@
@@ -1363,6 +1370,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32-sh64.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32-sparc.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32-spu.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32-tic6x.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32-v850.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32-vax.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32-xc16x.Plo@am__quote@
@@ -1482,6 +1490,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/versados.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-gsd.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-hdr.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-lib.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-misc.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-tir.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms.Plo@am__quote@
diff --git a/bfd/archive.c b/bfd/archive.c
index 6fad826..e6c1e83 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -536,8 +536,8 @@ _bfd_generic_read_ar_hdr_mag (bfd *abfd, const char *mag)
/* Append the relative pathname for a member of the thin archive
to the pathname of the directory containing the archive. */
-static char *
-append_relative_path (bfd *arch, char *elt_name)
+char *
+_bfd_append_relative_path (bfd *arch, char *elt_name)
{
const char *arch_name = arch->filename;
const char *base_name = lbasename (arch_name);
@@ -591,7 +591,7 @@ _bfd_get_elt_at_filepos (bfd *archive, file_ptr filepos)
/* This is a proxy entry for an external file. */
if (! IS_ABSOLUTE_PATH (filename))
{
- filename = append_relative_path (archive, filename);
+ filename = _bfd_append_relative_path (archive, filename);
if (filename == NULL)
return NULL;
}
@@ -2196,6 +2196,7 @@ _bfd_compute_and_write_armap (bfd *arch, unsigned int elength)
if ((flags & BSF_GLOBAL
|| flags & BSF_WEAK
|| flags & BSF_INDIRECT
+ || flags & BSF_GNU_UNIQUE
|| bfd_is_com_section (sec))
&& ! bfd_is_und_section (sec))
{
diff --git a/bfd/archures.c b/bfd/archures.c
index c1aefec..a8a8b9c 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -305,6 +305,7 @@ DESCRIPTION
.#define bfd_mach_tic3x 30
.#define bfd_mach_tic4x 40
. bfd_arch_tic54x, {* Texas Instruments TMS320C54X *}
+. bfd_arch_tic6x, {* Texas Instruments TMS320C6X *}
. bfd_arch_tic80, {* TI TMS320c80 (MVP) *}
. bfd_arch_v850, {* NEC V850 *}
.#define bfd_mach_v850 1
@@ -526,6 +527,7 @@ extern const bfd_arch_info_type bfd_spu_arch;
extern const bfd_arch_info_type bfd_tic30_arch;
extern const bfd_arch_info_type bfd_tic4x_arch;
extern const bfd_arch_info_type bfd_tic54x_arch;
+extern const bfd_arch_info_type bfd_tic6x_arch;
extern const bfd_arch_info_type bfd_tic80_arch;
extern const bfd_arch_info_type bfd_v850_arch;
extern const bfd_arch_info_type bfd_vax_arch;
@@ -600,6 +602,7 @@ static const bfd_arch_info_type * const bfd_archures_list[] =
&bfd_tic30_arch,
&bfd_tic4x_arch,
&bfd_tic54x_arch,
+ &bfd_tic6x_arch,
&bfd_tic80_arch,
&bfd_v850_arch,
&bfd_vax_arch,
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index c775a0b..07f2fae 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -294,7 +294,7 @@ typedef struct bfd_section *sec_ptr;
(((sec)->rawsize ? (sec)->rawsize : (sec)->size) \
/ bfd_octets_per_byte (bfd))
-/* Return TRUE if section has been discarded. */
+/* Return TRUE if input section SEC has been discarded. */
#define elf_discarded_section(sec) \
(!bfd_is_abs_section (sec) \
&& bfd_is_abs_section ((sec)->output_section) \
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 31af74f..9cf4f64 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -301,7 +301,7 @@ typedef struct bfd_section *sec_ptr;
(((sec)->rawsize ? (sec)->rawsize : (sec)->size) \
/ bfd_octets_per_byte (bfd))
-/* Return TRUE if section has been discarded. */
+/* Return TRUE if input section SEC has been discarded. */
#define elf_discarded_section(sec) \
(!bfd_is_abs_section (sec) \
&& bfd_is_abs_section ((sec)->output_section) \
@@ -1971,6 +1971,7 @@ enum bfd_architecture
#define bfd_mach_tic3x 30
#define bfd_mach_tic4x 40
bfd_arch_tic54x, /* Texas Instruments TMS320C54X */
+ bfd_arch_tic6x, /* Texas Instruments TMS320C6X */
bfd_arch_tic80, /* TI TMS320c80 (MVP) */
bfd_arch_v850, /* NEC V850 */
#define bfd_mach_v850 1
@@ -2243,10 +2244,7 @@ struct reloc_howto_struct
when doing overflow checking. */
unsigned int bitsize;
- /* Notes that the relocation is relative to the location in the
- data section of the addend. The relocation function will
- subtract from the relocation value the address of the location
- being relocated. */
+ /* The relocation is relative to the field being relocated. */
bfd_boolean pc_relative;
/* The bit position of the reloc value in the destination.
@@ -3639,6 +3637,34 @@ significant 7 bits of a 23-bit extended address are placed into
the opcode. */
BFD_RELOC_TIC54X_MS7_OF_23,
+/* TMS320C6000 relocations. */
+ BFD_RELOC_C6000_PCR_S21,
+ BFD_RELOC_C6000_PCR_S12,
+ BFD_RELOC_C6000_PCR_S10,
+ BFD_RELOC_C6000_PCR_S7,
+ BFD_RELOC_C6000_ABS_S16,
+ BFD_RELOC_C6000_ABS_L16,
+ BFD_RELOC_C6000_ABS_H16,
+ BFD_RELOC_C6000_SBR_U15_B,
+ BFD_RELOC_C6000_SBR_U15_H,
+ BFD_RELOC_C6000_SBR_U15_W,
+ BFD_RELOC_C6000_SBR_S16,
+ BFD_RELOC_C6000_SBR_L16_B,
+ BFD_RELOC_C6000_SBR_L16_H,
+ BFD_RELOC_C6000_SBR_L16_W,
+ BFD_RELOC_C6000_SBR_H16_B,
+ BFD_RELOC_C6000_SBR_H16_H,
+ BFD_RELOC_C6000_SBR_H16_W,
+ BFD_RELOC_C6000_SBR_GOT_U15_W,
+ BFD_RELOC_C6000_SBR_GOT_L16_W,
+ BFD_RELOC_C6000_SBR_GOT_H16_W,
+ BFD_RELOC_C6000_DSBT_INDEX,
+ BFD_RELOC_C6000_PREL31,
+ BFD_RELOC_C6000_COPY,
+ BFD_RELOC_C6000_ALIGN,
+ BFD_RELOC_C6000_FPHEAD,
+ BFD_RELOC_C6000_NOCMP,
+
/* This is a 48 bit reloc for the FR30 that stores 32 bits. */
BFD_RELOC_FR30_48,
@@ -5093,6 +5119,10 @@ struct bfd
/* Set if this is a thin archive. */
unsigned int is_thin_archive : 1;
+
+ /* Set if only required symbols should be added in the link hash table for
+ this object. Used by VMS linkers. */
+ unsigned int selective_search : 1;
};
typedef enum bfd_error
diff --git a/bfd/bfd.c b/bfd/bfd.c
index eef9f36..771989b 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -286,6 +286,10 @@ CODE_FRAGMENT
.
. {* Set if this is a thin archive. *}
. unsigned int is_thin_archive : 1;
+.
+. {* Set if only required symbols should be added in the link hash table for
+. this object. Used by VMS linkers. *}
+. unsigned int selective_search : 1;
.};
.
*/
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c
index e7c4e8a..57c47d0 100644
--- a/bfd/coff-i386.c
+++ b/bfd/coff-i386.c
@@ -195,7 +195,8 @@ static bfd_boolean in_reloc_p (abfd, howto)
bfd * abfd ATTRIBUTE_UNUSED;
reloc_howto_type *howto;
{
- return ! howto->pc_relative && howto->type != R_IMAGEBASE;
+ return ! howto->pc_relative && howto->type != R_IMAGEBASE
+ && howto->type != R_SECREL32;
}
#endif /* COFF_WITH_PE */
diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c
index 4d500fe..8083d97 100644
--- a/bfd/coff-x86_64.c
+++ b/bfd/coff-x86_64.c
@@ -192,7 +192,8 @@ coff_amd64_reloc (bfd *abfd,
static bfd_boolean
in_reloc_p (bfd *abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto)
{
- return ! howto->pc_relative && howto->type != R_AMD64_IMAGEBASE;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-03-22 23:58 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-03-22 23:58 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 713d061b09ead71bcccc8503fbe49df3a821f33f (commit)
via 2e4df6dd505568118e0780e67b1714f678595104 (commit)
via 3bd2e4d152d2453c63643c27b2415370662a5f5a (commit)
via f16453f8b31f08e9d4a484b8e1e97196323bb3d7 (commit)
via e5bb40e00d71972311d6207174d3f292a1c2f64d (commit)
via a9e1546a056797697be5d8ea43f815f04d010820 (commit)
via 7ea8a74abbe9e3c8e6f14d81ca109f04e25bf921 (commit)
via 6be4bd7bfeb81725bbfc76e24627b9929beb685f (commit)
via b52f2ffd484c946aa3f6e61e7c9b897f3a29f516 (commit)
via 7d0b7f12d06710d3d31819525838f223f5a7ee60 (commit)
via 3939f9e9b3496c2cbb14f20f16d3e1081a29681d (commit)
via 48ef3afe0624a22465c957ff66ecd262ed8e19da (commit)
via dc891e0d4ff2333e3bc7d502165dbe1879c3be36 (commit)
via 6a3fffc27019951f0a4131e6c77fd12cebdf84bc (commit)
via 7dc80b518fecb3ea5512b6b4fa55d8d054efed31 (commit)
from 7726c14b2b55c88218cc622bd3629c05238ba648 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 713d061b09ead71bcccc8503fbe49df3a821f33f
Merge: 7726c14b2b55c88218cc622bd3629c05238ba648 2e4df6dd505568118e0780e67b1714f678595104
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Mar 23 00:57:55 2010 +0100
Merge remote branch 'gdb/master'
commit 2e4df6dd505568118e0780e67b1714f678595104
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Mar 22 23:10:39 2010 +0000
sim: always enable support for the --endian option
The gdb code always passes down -E <little|big> to the sim core when using
the sim target. But the sim core only recognizes this option when the sim
supports big endian systems. So for little endian simulators, any attempt
to use the sim target fails with:
(gdb) target sim
gdbsim: invalid option -- 'E'
unable to create simulator instance
Since always respecting the option doesn't cause any problems, do just
that. If someone tries to use an invalid endian, they'll get an error
anyways.
commit 3bd2e4d152d2453c63643c27b2415370662a5f5a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Mar 22 23:01:42 2010 +0000
daily update
commit f16453f8b31f08e9d4a484b8e1e97196323bb3d7
Author: DJ Delorie <dj@delorie.com>
Date: Mon Mar 22 21:39:42 2010 +0000
merge from gcc
commit e5bb40e00d71972311d6207174d3f292a1c2f64d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Mar 22 20:38:57 2010 +0000
gdb/testsuite/
* dg-extract-results.sh: Sync with GCC HEAD (import r155655, r157175
and r157645).
commit a9e1546a056797697be5d8ea43f815f04d010820
Author: Stan Shebs <shebs@apple.com>
Date: Mon Mar 22 18:46:57 2010 +0000
2010-03-22 Stan Shebs <stan@codesourcery.com>
* value.c (value_static_field): Be lazy about the field's value.
commit 7ea8a74abbe9e3c8e6f14d81ca109f04e25bf921
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Mar 22 17:36:25 2010 +0000
2010-03-22 Reid Kleckner <reid@kleckner.net>
PR gdb/11094
* breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
bp_jit_event.
(disable_breakpoints_in_shlibs): Likewise.
commit 6be4bd7bfeb81725bbfc76e24627b9929beb685f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Mar 22 16:53:19 2010 +0000
gdb/testsuite/
* gdb.dwarf2/dw2-empty-namespace.exp, gdb.dwarf2/dw2-empty-namespace.S:
New.
commit b52f2ffd484c946aa3f6e61e7c9b897f3a29f516
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Mar 22 15:32:26 2010 +0000
* gdb.python/Makefile.in (EXECUTABLES): Add py-mi.
* gdb.python/py-mi.exp (binfile): Rename to py-mi.
commit 7d0b7f12d06710d3d31819525838f223f5a7ee60
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Mon Mar 22 13:21:38 2010 +0000
* dwarf2read.c (partial_die_parent_scope): Work around buggy
GCC 4.1 debug info generation (GCC PR c++/28460).
(determine_prefix): Likewise.
commit 3939f9e9b3496c2cbb14f20f16d3e1081a29681d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Mar 22 00:00:03 2010 +0000
*** empty log message ***
commit 48ef3afe0624a22465c957ff66ecd262ed8e19da
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Mar 21 23:26:31 2010 +0000
Check !executable instead of shared for PIE.
2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11413
* elflink.c (_bfd_elf_add_default_symbol): Check !executable
instead of shared.
commit dc891e0d4ff2333e3bc7d502165dbe1879c3be36
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Mar 21 23:01:36 2010 +0000
daily update
commit 6a3fffc27019951f0a4131e6c77fd12cebdf84bc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Mar 21 00:00:09 2010 +0000
*** empty log message ***
commit 7dc80b518fecb3ea5512b6b4fa55d8d054efed31
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Mar 20 23:01:30 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 6 +
bfd/elflink.c | 4 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 17 ++++
gdb/breakpoint.c | 5 +-
gdb/dwarf2read.c | 19 ++++
gdb/testsuite/ChangeLog | 15 +++
gdb/testsuite/dg-extract-results.sh | 8 +-
gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S | 108 ++++++++++++++++++++++
gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp | 43 +++++++++
gdb/testsuite/gdb.python/Makefile.in | 2 +-
gdb/testsuite/gdb.python/py-mi.exp | 2 +-
gdb/value.c | 8 +-
gdb/version.in | 2 +-
libiberty/ChangeLog | 4 +
libiberty/cp-demangle.c | 4 +-
libiberty/testsuite/demangle-expected | 4 +-
sim/common/ChangeLog | 6 +
sim/common/sim-options.c | 6 -
19 files changed, 240 insertions(+), 25 deletions(-)
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1558883..e48165e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11413
+ * elflink.c (_bfd_elf_add_default_symbol): Check !executable
+ instead of shared.
+
2010-03-19 Jie Zhang <jie@codesourcery.com>
* elf32-arm.c (struct section_list): Remove.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 8f6b5f4..98ea753 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -1715,7 +1715,7 @@ _bfd_elf_add_default_symbol (bfd *abfd,
{
if (! dynamic)
{
- if (info->shared
+ if (! info->executable
|| hi->ref_dynamic)
*dynsym = TRUE;
}
@@ -1784,7 +1784,7 @@ nondefault:
{
if (! dynamic)
{
- if (info->shared
+ if (! info->executable
|| hi->ref_dynamic)
*dynsym = TRUE;
}
diff --git a/bfd/version.h b/bfd/version.h
index 8fe0c65..5dafdb6 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100320
+#define BFD_VERSION_DATE 20100323
#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 6507b66..cb02278 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,20 @@
+2010-03-22 Stan Shebs <stan@codesourcery.com>
+
+ * value.c (value_static_field): Be lazy about the field's value.
+
+2010-03-22 Reid Kleckner <reid@kleckner.net>
+
+ PR gdb/11094
+ * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
+ bp_jit_event.
+ (disable_breakpoints_in_shlibs): Likewise.
+
+2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * dwarf2read.c (partial_die_parent_scope): Work around buggy
+ GCC 4.1 debug info generation (GCC PR c++/28460).
+ (determine_prefix): Likewise.
+
2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
* tui/tui-disasm.c (tui_get_begin_asm_address): Default to
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 1b4ab57..b9b3e85 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5392,6 +5392,7 @@ disable_breakpoints_in_shlibs (void)
all breakpoints. If we don't set shlib_disabled here, we'll try
to insert those breakpoints and fail. */
if (((b->type == bp_breakpoint)
+ || (b->type == bp_jit_event)
|| (b->type == bp_hardware_breakpoint)
|| (tracepoint_type (b)))
&& loc->pspace == current_program_space
@@ -5432,7 +5433,9 @@ disable_breakpoints_in_unloaded_shlib (struct so_list *solib)
|| loc->loc_type == bp_loc_software_breakpoint)
&& solib->pspace == loc->pspace
&& !loc->shlib_disabled
- && (b->type == bp_breakpoint || b->type == bp_hardware_breakpoint)
+ && (b->type == bp_breakpoint
+ || b->type == bp_jit_event
+ || b->type == bp_hardware_breakpoint)
&& solib_contains_address_p (solib, loc->address))
{
loc->shlib_disabled = 1;
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 92cda0e..ed7923e 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2307,6 +2307,19 @@ partial_die_parent_scope (struct partial_die_info *pdi,
grandparent_scope = partial_die_parent_scope (parent, cu);
+ /* GCC 4.0 and 4.1 had a bug (PR c++/28460) where they generated bogus
+ DW_TAG_namespace DIEs with a name of "::" for the global namespace.
+ Work around this problem here. */
+ if (cu->language == language_cplus
+ && parent->tag == DW_TAG_namespace
+ && strcmp (parent->name, "::") == 0
+ && grandparent_scope == NULL)
+ {
+ parent->scope = NULL;
+ parent->scope_set = 1;
+ return NULL;
+ }
+
if (parent->tag == DW_TAG_namespace
|| parent->tag == DW_TAG_structure_type
|| parent->tag == DW_TAG_class_type
@@ -9029,6 +9042,12 @@ determine_prefix (struct die_info *die, struct dwarf2_cu *cu)
{
case DW_TAG_namespace:
parent_type = read_type_die (parent, cu);
+ /* GCC 4.0 and 4.1 had a bug (PR c++/28460) where they generated bogus
+ DW_TAG_namespace DIEs with a name of "::" for the global namespace.
+ Work around this problem here. */
+ if (cu->language == language_cplus
+ && strcmp (TYPE_TAG_NAME (parent_type), "::") == 0)
+ return "";
/* We give a name to even anonymous namespaces. */
return TYPE_TAG_NAME (parent_type);
case DW_TAG_class_type:
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 2f67aa0..7bfecc7 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,18 @@
+2010-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dg-extract-results.sh: Sync with GCC HEAD (import r155655, r157175
+ and r157645).
+
+2010-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.dwarf2/dw2-empty-namespace.exp, gdb.dwarf2/dw2-empty-namespace.S:
+ New.
+
+2010-03-22 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb.python/Makefile.in (EXECUTABLES): Add py-mi.
+ * gdb.python/py-mi.exp (binfile): Rename to py-mi.
+
2010-03-19 Stan Shebs <stan@codesourcery.com>
* gdb.trace/ax.exp: New file.
diff --git a/gdb/testsuite/dg-extract-results.sh b/gdb/testsuite/dg-extract-results.sh
index 518c19f..0ad85cb 100755
--- a/gdb/testsuite/dg-extract-results.sh
+++ b/gdb/testsuite/dg-extract-results.sh
@@ -6,7 +6,7 @@
# The resulting file can be used with test result comparison scripts for
# results from tests that were run in parallel. See usage() below.
-# Copyright (C) 2008, 2009 Free Software Foundation
+# Copyright (C) 2008, 2009, 2010 Free Software Foundation
# Contributed by Janis Johnson <janis187@us.ibm.com>
#
# This file is part of GCC.
@@ -299,7 +299,7 @@ BEGIN {
next
}
}
-/\===/ { curvar = ""; next }
+/^\t\t=== .* ===$/ { curvar = ""; next }
/^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED|WARNING|ERROR|UNSUPPORTED|UNTESTED|KFAIL):/ {
testname=\$2
# Ugly hack for gfortran.dg/dg.exp
@@ -365,8 +365,8 @@ BEGIN {
END {
printf ("\t\t=== %s Summary for %s ===\n\n", tool, variant)
if (passcnt != 0) printf ("# of expected passes\t\t%d\n", passcnt)
- if (xpasscnt != 0) printf ("# of unexpected successes\t%d\n", xpasscnt)
if (failcnt != 0) printf ("# of unexpected failures\t%d\n", failcnt)
+ if (xpasscnt != 0) printf ("# of unexpected successes\t%d\n", xpasscnt)
if (xfailcnt != 0) printf ("# of expected failures\t\t%d\n", xfailcnt)
if (untstcnt != 0) printf ("# of untested testcases\t\t%d\n", untstcnt)
if (unrescnt != 0) printf ("# of unresolved testcases\t%d\n", unrescnt)
@@ -418,6 +418,6 @@ cat ${TMP}/var-* | $AWK -f $TOTAL_AWK
# This is ugly, but if there's version output from the compiler under test
# at the end of the file, we want it. The other thing that might be there
# is the final summary counts.
-tail -n 2 $FIRST_SUM | grep -q '^#' || tail -n 2 $FIRST_SUM
+tail -2 $FIRST_SUM | grep -q '^#' || tail -2 $FIRST_SUM
exit 0
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S
new file mode 100644
index 0000000..a77222f
--- /dev/null
+++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S
@@ -0,0 +1,108 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2009, 2010 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* Test G++ 4.1 producing DW_TAG_namespace with DW_AT_name "::". */
+
+ .data
+var: .4byte 1
+
+ .section .debug_info
+.Lcu1_begin:
+ /* CU header */
+ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */
+.Lcu1_start:
+ .2byte 2 /* DWARF Version */
+ .4byte .Labbrev1_begin /* Offset into abbrev section */
+ .byte 4 /* Pointer size */
+
+ /* CU die */
+ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */
+ .ascii "file1.txt\0" /* DW_AT_name */
+ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */
+ .byte 4 /* DW_LANG_C_plus_plus (C++) */
+
+.Ltype_int:
+ .uleb128 2 /* Abbrev: DW_TAG_base_type */
+ .ascii "int\0" /* DW_AT_name */
+ .byte 4 /* DW_AT_byte_size */
+ .byte 5 /* DW_AT_encoding */
+
+ .uleb128 3 /* Abbrev: DW_TAG_namespace */
+ .ascii "::\0" /* DW_AT_name */
+
+ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */
+ .ascii "var\0" /* DW_AT_name */
+ .byte 2f - 1f /* DW_AT_location */
+1: .byte 3 /* DW_OP_addr */
+ .4byte var /* <addr> */
+2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */
+
+ .byte 0 /* End of children of DW_TAG_namespace */
+
+ .byte 0 /* End of children of CU */
+
+.Lcu1_end:
+
+/* Abbrev table */
+ .section .debug_abbrev
+.Labbrev1_begin:
+ .uleb128 1 /* Abbrev code */
+ .uleb128 0x11 /* DW_TAG_compile_unit */
+ .byte 1 /* has_children */
+ .uleb128 0x3 /* DW_AT_name */
+ .uleb128 0x8 /* DW_FORM_string */
+ .uleb128 0x25 /* DW_AT_producer */
+ .uleb128 0x8 /* DW_FORM_string */
+ .uleb128 0x13 /* DW_AT_language */
+ .uleb128 0xb /* DW_FORM_data1 */
+ .byte 0x0 /* Terminator */
+ .byte 0x0 /* Terminator */
+
+ .uleb128 2 /* Abbrev code */
+ .uleb128 0x24 /* DW_TAG_base_type */
+ .byte 0 /* has_children */
+ .uleb128 0x3 /* DW_AT_name */
+ .uleb128 0x8 /* DW_FORM_string */
+ .uleb128 0xb /* DW_AT_byte_size */
+ .uleb128 0xb /* DW_FORM_data1 */
+ .uleb128 0x3e /* DW_AT_encoding */
+ .uleb128 0xb /* DW_FORM_data1 */
+ .byte 0x0 /* Terminator */
+ .byte 0x0 /* Terminator */
+
+ .uleb128 3 /* Abbrev code */
+ .uleb128 0x39 /* DW_TAG_namespace */
+ .byte 1 /* has_children */
+ .uleb128 0x3 /* DW_AT_name */
+ .uleb128 0x8 /* DW_FORM_string */
+ .byte 0x0 /* Terminator */
+ .byte 0x0 /* Terminator */
+
+ .uleb128 7 /* Abbrev code (location) */
+ .uleb128 0x34 /* DW_TAG_variable */
+ .byte 0 /* has_children */
+ .uleb128 0x3 /* DW_AT_name */
+ .uleb128 0x8 /* DW_FORM_string */
+ .uleb128 0x2 /* DW_AT_location */
+ .uleb128 0xa /* DW_FORM_block1 */
+ .uleb128 0x49 /* DW_AT_type */
+ .uleb128 0x13 /* DW_FORM_ref4 */
+ .byte 0x0 /* Terminator */
+ .byte 0x0 /* Terminator */
+
+ .byte 0x0 /* Terminator */
+ .byte 0x0 /* Terminator */
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp
new file mode 100644
index 0000000..d491eaf
--- /dev/null
+++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp
@@ -0,0 +1,43 @@
+# Copyright 2009, 2010 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Test G++ 4.1 producing DW_TAG_namespace with DW_AT_name "::".
+
+# This test can only be run on targets which support DWARF-2 and use gas.
+# For now pick a sampling of likely targets.
+if {![istarget *-*-linux*]
+ && ![istarget *-*-gnu*]
+ && ![istarget *-*-elf*]
+ && ![istarget *-*-openbsd*]
+ && ![istarget arm-*-eabi*]
+ && ![istarget powerpc-*-eabi*]} {
+ return 0
+}
+
+set testfile "dw2-empty-namespace"
+set srcfile ${testfile}.S
+set executable ${testfile}.x
+
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objdir}/${subdir}/${executable}" object {nodebug}] != "" } {
+ return -1
+}
+
+clean_restart $executable
+
+# `p var' below can work without identified DWARF DIE just based on its ELF symbol.
+# Catch it here as `type = <data variable, no debug info>'.
+gdb_test "ptype var" "type = int"
+
+gdb_test "p var" " = 1"
diff --git a/gdb/testsuite/gdb.python/Makefile.in b/gdb/testsuite/gdb.python/Makefile.in
index 06f8c9c..578ac54 100644
--- a/gdb/testsuite/gdb.python/Makefile.in
+++ b/gdb/testsuite/gdb.python/Makefile.in
@@ -2,7 +2,7 @@ VPATH = @srcdir@
srcdir = @srcdir@
EXECUTABLES = py-type py-value py-prettyprint py-template py-block \
- py-symbol
+ py-symbol py-mi
all info install-info dvi install uninstall installcheck check:
@echo "Nothing to be done for $@..."
diff --git a/gdb/testsuite/gdb.python/py-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp
index 5f25fe6..6589a62 100644
--- a/gdb/testsuite/gdb.python/py-mi.exp
+++ b/gdb/testsuite/gdb.python/py-mi.exp
@@ -26,7 +26,7 @@ if [mi_gdb_start] {
set testfile "py-prettyprint"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/py-mi
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } {
untested mi2-var-child.exp
return -1
diff --git a/gdb/value.c b/gdb/value.c
index b9c4722..19386b6 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1813,8 +1813,8 @@ value_static_field (struct type *type, int fieldno)
if (TYPE_FIELD_LOC_KIND (type, fieldno) == FIELD_LOC_KIND_PHYSADDR)
{
- retval = value_at (TYPE_FIELD_TYPE (type, fieldno),
- TYPE_FIELD_STATIC_PHYSADDR (type, fieldno));
+ retval = value_at_lazy (TYPE_FIELD_TYPE (type, fieldno),
+ TYPE_FIELD_STATIC_PHYSADDR (type, fieldno));
}
else
{
@@ -1831,8 +1831,8 @@ value_static_field (struct type *type, int fieldno)
return NULL;
else
{
- retval = value_at (TYPE_FIELD_TYPE (type, fieldno),
- SYMBOL_VALUE_ADDRESS (msym));
+ retval = value_at_lazy (TYPE_FIELD_TYPE (type, fieldno),
+ SYMBOL_VALUE_ADDRESS (msym));
}
}
else
diff --git a/gdb/version.in b/gdb/version.in
index ad26dfb..5fb9d5e 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.1.50.20100320-cvs
+7.1.50.20100322-cvs
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index cf80e38..176dd4d 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-22 Jason Merrill <jason@redhat.com>
+
+ * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
+
2010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.in (all): Do not use exec.
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index b1319cf..98c64db 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -4506,9 +4506,9 @@ d_print_mod (struct d_print_info *dpi,
d_print_comp (dpi, d_left (mod));
return;
case DEMANGLE_COMPONENT_VECTOR_TYPE:
- d_append_string (dpi, " vector[");
+ d_append_string (dpi, " __vector(");
d_print_comp (dpi, d_left (mod));
- d_append_char (dpi, ']');
+ d_append_char (dpi, ')');
return;
default:
diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected
index 010faec..672f352 100644
--- a/libiberty/testsuite/demangle-expected
+++ b/libiberty/testsuite/demangle-expected
@@ -3928,10 +3928,10 @@ _Z1fN1SUt_E
f(S::{unnamed type#1})
--format=gnu-v3
_Z1fDv32_f
-f(float vector[32])
+f(float __vector(32))
--format=gnu-v3
_Z1fIfLi4EEvDv_T0__T_
-void f<float, 4>(float vector[4])
+void f<float, 4>(float __vector(4))
--format=gnu-v3
_Z1fI1AEDTclonplfp_fp_EET_
decltype ((operator+)({parm#1}, {parm#1})) f<A>(A)
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 32f4dc3..1b1bd3b 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-22 Mike Frysinger <vapier@gentoo.org>
+
+ * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
+ (standard_options): Likewise.
+ (standard_option_handler): Likewise.
+
2010-03-16 Mike Frysinger <vapier@gentoo.org>
* hw-ports.c (TRACE): Delete.
diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c
index 82a502e..3369ca2 100644
--- a/sim/common/sim-options.c
+++ b/sim/common/sim-options.c
@@ -100,9 +100,7 @@ typedef enum {
OPTION_ENVIRONMENT,
OPTION_ALIGNMENT,
OPTION_VERBOSE,
-#if defined (SIM_HAVE_BIENDIAN)
OPTION_ENDIAN,
-#endif
OPTION_DEBUG,
#ifdef SIM_HAVE_FLATMEM
OPTION_MEM_SIZE,
@@ -124,11 +122,9 @@ static const OPTION standard_options[] =
'v', NULL, "Verbose output",
standard_option_handler },
-#if defined (SIM_HAVE_BIENDIAN) /* ??? && WITH_TARGET_BYTE_ORDER == 0 */
{ {"endian", required_argument, NULL, OPTION_ENDIAN},
'E', "big|little", "Set endianness",
standard_option_handler },
-#endif
#ifdef SIM_HAVE_ENVIRONMENT
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-03-20 17:23 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-03-20 17:23 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 7726c14b2b55c88218cc622bd3629c05238ba648 (commit)
via 403b00d53bbb55160acc789a5221d92baaf9fba4 (commit)
via f46c1895c13607eec2dbb614e368938bd3cb958f (commit)
via ab4a27848e235e08d16c1f3067cf6efa7c3775e5 (commit)
via d8e4cc35d768efb16a7175c58e9dbcc363606cad (commit)
via 7681473b359bcaf543fbe8a27451741fafa69572 (commit)
via 7374133f755918dd0933502abc8c4e915b8e4cb7 (commit)
via 58521a5d58a51f258e44267e7388bfc741776805 (commit)
via 609bf01b52df2370256e870e8e1701126e05fb15 (commit)
via fc1c5dc9208297f79e1459d0697872b699c248f2 (commit)
via cac8d8783acf3401a8ff30f2803936c5bb2fd998 (commit)
via c0d0f337070b16f366840164860667654684defa (commit)
via 59da13e09bd259b4b0fab96258f139ff006f252a (commit)
via 175ca91d848088ffa726d1893e373fb6c22b28ec (commit)
via 824eed9133dacbdeadbdd89621306c8172855b6c (commit)
via c1b2dfc6d628431b37ecc57511c77015b05c832c (commit)
via 9996828e666a4a9c3947a1971e5cc3f80fb3d170 (commit)
via f9237cb4c91c6f7c1cf34129c95e73f9b57103ae (commit)
via 5ec0df9d361446395ef3b31f14ce7867443a665f (commit)
via 4826048a48f3e0b7b9f2bf243d4e104b33f0bc77 (commit)
via 1195a74372b34eb9acc86122537fef1a7bb5053c (commit)
via fe46fadfa1c830b1a20f222b9189b1b223cf1690 (commit)
from f3b002fc7b744d9be2395b48843742b96bb90c56 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 7726c14b2b55c88218cc622bd3629c05238ba648
Merge: f3b002fc7b744d9be2395b48843742b96bb90c56 403b00d53bbb55160acc789a5221d92baaf9fba4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Mar 20 18:23:45 2010 +0100
Merge remote branch 'gdb/master'
commit 403b00d53bbb55160acc789a5221d92baaf9fba4
Author: Daniel Jacobowitz <dan@debian.org>
Date: Sat Mar 20 05:17:10 2010 +0000
* tui/tui-disasm.c (tui_get_begin_asm_address): Default to
get_current_arch.
* tui/tui-layout.c (extract_display_start_addr): Likewise.
commit f46c1895c13607eec2dbb614e368938bd3cb958f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Mar 20 00:00:04 2010 +0000
*** empty log message ***
commit ab4a27848e235e08d16c1f3067cf6efa7c3775e5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Mar 19 23:01:24 2010 +0000
daily update
commit d8e4cc35d768efb16a7175c58e9dbcc363606cad
Author: Stan Shebs <shebs@apple.com>
Date: Fri Mar 19 22:00:16 2010 +0000
2010-03-19 Stan Shebs <stan@codesourcery.com>
* ax-gdb.c (gen_fetch): Handle bool.
(gen_usual_unary): Ditto.
(gen_cast): Ditto.
(gen_equal): New function.
(gen_less): New function.
(gen_expr_binop_rest): Call them, also return integer type from
logical operations.
(gen_expr): Ditto.
* gdb.trace/ax.exp: New file.
commit 7681473b359bcaf543fbe8a27451741fafa69572
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Mar 19 19:08:40 2010 +0000
* jv-lang.c (jv_dynamics_objfile_data_key)
(jv_type_objfile_data_key): New globals.
(class_symtab): Move earlier.
(jv_per_objfile_free): New function.
(get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
parameter.
Remove ancient #if 1.
(add_class_symbol): Remove redundant declaration.
(java_lookup_class): Use alloc_type, not alloc_type_arch.
(java_link_class_type): Mark as static. Update.
(jv_clear_object_type): New function.
(set_java_object_type): Likewise.
(get_java_object_type): Use set_java_object_type.
(is_object_type): Likewise.
(_initialize_java_language): Register new objfile keys.
(get_java_class_symtab): Add 'gdbarch' parameter.
(add_class_symtab_symbol): Update.
(type_from_class): Update.
commit 7374133f755918dd0933502abc8c4e915b8e4cb7
Author: Stan Shebs <shebs@apple.com>
Date: Fri Mar 19 18:21:01 2010 +0000
2010-03-19 Stan Shebs <stan@codesourcery.com>
* ax-general.c (ax_const_l): Fix a sizing bug.
commit 58521a5d58a51f258e44267e7388bfc741776805
Author: Doug Evans <dje@google.com>
Date: Fri Mar 19 17:59:37 2010 +0000
* lib/gdb.exp (gdb_compile_test): Watch for "compiler not installed"
output from gcc.
commit 609bf01b52df2370256e870e8e1701126e05fb15
Author: Doug Evans <dje@google.com>
Date: Fri Mar 19 17:57:17 2010 +0000
* gdb.base/break-interp.exp (prelinkNO): Handle prelink binaries
named /usr/sbin/prelink<foo>.
commit fc1c5dc9208297f79e1459d0697872b699c248f2
Author: Jie Zhang <jie.zhang@analog.com>
Date: Fri Mar 19 17:04:15 2010 +0000
* elf32-arm.c (struct section_list): Remove.
(section_list): Remove typedef.
(record_section_with_arm_elf_section_data): Remove.
(find_arm_elf_section_entry): Remove.
(get_arm_elf_section_data): Use is_arm_elf.
(unrecord_section_with_arm_elf_section_data): Remove.
(elf32_arm_new_section_hook): Don't call
record_section_with_arm_elf_section_data.
(elf32_arm_write_section): Set mapcount to -1 when
the map has been used. Don't call
unrecord_section_with_arm_elf_section_data.
(unrecord_section_via_map_over_sections): Remove.
(elf32_arm_close_and_cleanup): Remove.
(elf32_arm_bfd_free_cached_info): Remove.
(bfd_elf32_close_and_cleanup): Don't define.
(bfd_elf32_bfd_free_cached_info): Don't define.
commit cac8d8783acf3401a8ff30f2803936c5bb2fd998
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Mar 19 00:00:03 2010 +0000
*** empty log message ***
commit c0d0f337070b16f366840164860667654684defa
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Mar 18 23:01:18 2010 +0000
daily update
commit 59da13e09bd259b4b0fab96258f139ff006f252a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 18 22:25:24 2010 +0000
GDB 7.1 released.
commit 175ca91d848088ffa726d1893e373fb6c22b28ec
Author: Stan Shebs <shebs@apple.com>
Date: Thu Mar 18 21:23:32 2010 +0000
2010-03-18 Stan Shebs <stan@codesourcery.com>
Pedro Alves <pedro@codesourcery.com>
* target.h (struct target_ops): New method
to_set_circular_trace_buffer.
(target_set_circular_trace_buffer): New macro.
* target.c (update_current_target): Add
to_set_circular_trace_buffer, fix to_set_disconnected_tracing
default behavior.
* remote.c (remote_set_circular_trace_buffer): New function.
(init_remote_ops): Add it to vector.
* tracepoint.h (struct trace_status): New field traceframes_created,
change buffer_size and buffer_free to int.
* tracepoint.c (circular_trace_buffer): New global.
(start_tracing): Send values of disconnected tracing and circular
trace buffer settings.
(set_circular_trace_buffer): New function.
(parse_trace_state): Handle total space and frames created.
(trace_status_command): Display total space and total frames
created.
(trace_save): Write out new status values.
(parse_trace_status): Set traceframe_count, traceframes_created,
buffer_free and buffer_size to -1 by default.
(_initialize_tracepoint): New setshow for circular-trace-buffer.
* NEWS: Mention the circular trace buffer option.
* gdb.texinfo (Starting and Stopping Trace Experiments): Describe
circular-trace-buffer.
(Tracepoint Packets): Describe QTBuffer, and details of the
qTStatus reply.
* gdb.trace/circ.exp: Test circular-trace-buffer.
* gdb.trace/tfile.exp: Update tstatus test.
commit 824eed9133dacbdeadbdd89621306c8172855b6c
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Mar 18 18:35:52 2010 +0000
[dwarf] Anonymous nested function causes SEGV during psymbol read
According to the DWARF3 standard, a function always has a name attribute
(Section 3.3 - Subroutine and Entry Point Entries). The only exception
is when a DW_AT_abstract_origin attribute is provided, in which case
the name may be inherited from the referenced DIE.
The problem occured because our compiler generated a subprogram DIE
for a nested function where the name attribute was missing (and no
abstract-origin either). Our code in add_partial_symbol is not
prepared to deal with the situation, and happily just tries to compute
the length of the (NULL) function name.
This normally cannot happen, because there is already a guard in
scan_partial_symbols, where we (silently!) ignore anonymous dies,
including anonymous subprograms. Unfortunately, there is a flaw that
affects Ada and other languages that allow nested subprograms. For
nested subprograms, we do not go through scan_partial_symbols and
thus we are missing the name check.
This patch adds the name check in the nested subprogram case. It also
adds a complaint which is emitted during the psymtab->symtab conversion
phase.
gdb/ChangeLog:
* dwarf2read.c (add_partial_subprogram): Make sure the subprogram
DIE has a name before creating the associated partial symbol.
(read_func_scope): Emit a complaint if the subprogram does not
have a name or when we can't extract the subprogram PC bounds.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-anonymous-func.S: New file.
* gdb.dwarf2/dw2-anonymous-func.exp: New testcase.
Tested on x86_64-linux, no regression. Note that the testcase also
verifies that the psymtab->symtab conversion does not crash (this is
the purpose of the "list file1.txt:1" test.
commit c1b2dfc6d628431b37ecc57511c77015b05c832c
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Mar 18 18:01:58 2010 +0000
* infcmd.c (finish_command_continuation): Wrap print_return_value
in TRY_CATCH.
commit 9996828e666a4a9c3947a1971e5cc3f80fb3d170
Author: Stan Shebs <shebs@apple.com>
Date: Thu Mar 18 16:01:29 2010 +0000
Fix last checkin
commit f9237cb4c91c6f7c1cf34129c95e73f9b57103ae
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Mar 18 14:44:44 2010 +0000
Move ChangeLog entries to proper place.
commit 5ec0df9d361446395ef3b31f14ce7867443a665f
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Thu Mar 18 13:25:17 2010 +0000
ChangeLog:
* mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
instead of selected frame architecture.
testsuite/ChangeLog:
* gdb.mi/gdb680.exp: Revert 2009-06-17 change.
commit 4826048a48f3e0b7b9f2bf243d4e104b33f0bc77
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Mar 18 13:21:33 2010 +0000
gdb/
* infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
a valid selected thread, and that it is not running.
(advance_command): Ditto.
(finish_command): Ditto.
gdb/testsuite/
* gdb.base/default.exp: Adjust.
commit 1195a74372b34eb9acc86122537fef1a7bb5053c
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Mar 18 12:27:14 2010 +0000
Don't add IMAGE_FILE_RELOCS_STRIPPED for PIE.
2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/11396
* libcoff-in.h (pe_tdata): Add dont_strip_reloc.
* libcoff.h: Regenerated.
* peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
if dont_strip_reloc is set.
(_bfd_XX_bfd_copy_private_bfd_data_common): Set
dont_strip_reloc on output if there is no .reloc and
IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
commit fe46fadfa1c830b1a20f222b9189b1b223cf1690
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Mar 18 11:22:43 2010 +0000
bfd/
2010-03-15 Wei Guozhi <carrot@google.com>
PR gas/11323
* bfd-in2.h (enum bfd_reloc_code_real): New BFD_RELOC_GOT_PREL type.
* elf32-arm.c (elf32_arm_reloc_map): BFD_RELOC_GOT_PREL to
R_ARM_GOT_PREL map.
* libbfd.h (bfd_reloc_code_real_names): BFD_RELOC_GOT_PREL name.
* reloc.c (comments): Document the new relocation.
gas/
2010-03-15 Wei Guozhi <carrot@google.com>
PR gas/11323
* config/tc-arm.c (reloc_names): New relocation names.
(md_apply_fix): New case for BFD_RELOC_ARM_GOT_PREL.
(tc_gen_reloc): New case for BFD_RELOC_ARM_GOT_PREL.
* doc/c-arm.texi (ARM-Relocations): Document the new relocation.
gas/testsuite
2010-03-15 Wei Guozhi <carrot@google.com>
PR gas/11323
* gas/arm/got_prel.s: New test case.
* gas/arm/got_prel.d: Likewise.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 40 ++++
bfd/bfd-in2.h | 1 +
bfd/elf32-arm.c | 135 +------------
bfd/libbfd.h | 1 +
bfd/libcoff-in.h | 1 +
bfd/libcoff.h | 1 +
bfd/peXXigen.c | 11 +-
bfd/reloc.c | 2 +
bfd/version.h | 2 +-
gdb/ChangeLog | 96 +++++++++
gdb/NEWS | 19 ++-
gdb/ax-gdb.c | 77 +++++---
gdb/ax-general.c | 2 +-
gdb/doc/ChangeLog | 7 +
gdb/doc/gdb.texinfo | 96 +++++++++-
gdb/dwarf2read.c | 27 ++-
gdb/infcmd.c | 31 ++-
gdb/jv-lang.c | 92 +++++++--
gdb/mi/mi-main.c | 4 +-
gdb/remote.c | 13 ++
gdb/target.c | 6 +-
gdb/target.h | 4 +
gdb/testsuite/ChangeLog | 31 +++
gdb/testsuite/gdb.base/break-interp.exp | 2 +-
gdb/testsuite/gdb.base/default.exp | 6 +-
gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S | 248 +++++++++++++++++++++++
gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp | 53 +++++
gdb/testsuite/gdb.mi/gdb680.exp | 2 +-
gdb/testsuite/gdb.trace/ax.exp | 138 +++++++++++++
gdb/testsuite/gdb.trace/circ.exp | 9 +
gdb/testsuite/gdb.trace/tfile.exp | 4 +-
gdb/testsuite/lib/gdb.exp | 2 +
gdb/tracepoint.c | 86 +++++++-
gdb/tracepoint.h | 14 +-
gdb/tui/tui-disasm.c | 3 +-
gdb/tui/tui-layout.c | 3 +-
gdb/version.in | 2 +-
include/ChangeLog | 9 -
include/elf/ChangeLog | 9 +
39 files changed, 1049 insertions(+), 240 deletions(-)
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S
create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp
create mode 100644 gdb/testsuite/gdb.trace/ax.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0172fdf..1558883 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,43 @@
+2010-03-19 Jie Zhang <jie@codesourcery.com>
+
+ * elf32-arm.c (struct section_list): Remove.
+ (section_list): Remove typedef.
+ (record_section_with_arm_elf_section_data): Remove.
+ (find_arm_elf_section_entry): Remove.
+ (get_arm_elf_section_data): Use is_arm_elf.
+ (unrecord_section_with_arm_elf_section_data): Remove.
+ (elf32_arm_new_section_hook): Don't call
+ record_section_with_arm_elf_section_data.
+ (elf32_arm_write_section): Set mapcount to -1 when
+ the map has been used. Don't call
+ unrecord_section_with_arm_elf_section_data.
+ (unrecord_section_via_map_over_sections): Remove.
+ (elf32_arm_close_and_cleanup): Remove.
+ (elf32_arm_bfd_free_cached_info): Remove.
+ (bfd_elf32_close_and_cleanup): Don't define.
+ (bfd_elf32_bfd_free_cached_info): Don't define.
+
+2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/11396
+ * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
+ * libcoff.h: Regenerated.
+
+ * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
+ if dont_strip_reloc is set.
+ (_bfd_XX_bfd_copy_private_bfd_data_common): Set
+ dont_strip_reloc on output if there is no .reloc and
+ IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
+
+2010-03-18 Wei Guozhi <carrot@google.com>
+
+ PR gas/11323
+ * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
+ R_ARM_GOT_PREL.
+ * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+
2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
* reloc.c (BFD_RELOC_SPU_PIC18): Removed.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index c90ac2d..31af74f 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3114,6 +3114,7 @@ pc-relative or some form of GOT-indirect relocation. */
BFD_RELOC_ARM_RELATIVE,
BFD_RELOC_ARM_GOTOFF,
BFD_RELOC_ARM_GOTPC,
+ BFD_RELOC_ARM_GOT_PREL,
/* ARM thread-local storage relocations. */
BFD_RELOC_ARM_TLS_GD32,
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index eede7ec..565861e 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -1721,6 +1721,7 @@ static const struct elf32_arm_reloc_map elf32_arm_reloc_map[] =
{BFD_RELOC_ARM_RELATIVE, R_ARM_RELATIVE},
{BFD_RELOC_ARM_GOTOFF, R_ARM_GOTOFF32},
{BFD_RELOC_ARM_GOTPC, R_ARM_GOTPC},
+ {BFD_RELOC_ARM_GOT_PREL, R_ARM_GOT_PREL},
{BFD_RELOC_ARM_GOT32, R_ARM_GOT32},
{BFD_RELOC_ARM_PLT32, R_ARM_PLT32},
{BFD_RELOC_ARM_TARGET1, R_ARM_TARGET1},
@@ -12786,108 +12787,15 @@ elf32_arm_section_from_shdr (bfd *abfd,
return TRUE;
}
-/* A structure used to record a list of sections, independently
- of the next and prev fields in the asection structure. */
-typedef struct section_list
-{
- asection * sec;
- struct section_list * next;
- struct section_list * prev;
-}
-section_list;
-
-/* Unfortunately we need to keep a list of sections for which
- an _arm_elf_section_data structure has been allocated. This
- is because it is possible for functions like elf32_arm_write_section
- to be called on a section which has had an elf_data_structure
- allocated for it (and so the used_by_bfd field is valid) but
- for which the ARM extended version of this structure - the
- _arm_elf_section_data structure - has not been allocated. */
-static section_list * sections_with_arm_elf_section_data = NULL;
-
-static void
-record_section_with_arm_elf_section_data (asection * sec)
-{
- struct section_list * entry;
-
- entry = (struct section_list *) bfd_malloc (sizeof (* entry));
- if (entry == NULL)
- return;
- entry->sec = sec;
- entry->next = sections_with_arm_elf_section_data;
- entry->prev = NULL;
- if (entry->next != NULL)
- entry->next->prev = entry;
- sections_with_arm_elf_section_data = entry;
-}
-
-static struct section_list *
-find_arm_elf_section_entry (asection * sec)
-{
- struct section_list * entry;
- static struct section_list * last_entry = NULL;
-
- /* This is a short cut for the typical case where the sections are added
- to the sections_with_arm_elf_section_data list in forward order and
- then looked up here in backwards order. This makes a real difference
- to the ld-srec/sec64k.exp linker test. */
- entry = sections_with_arm_elf_section_data;
- if (last_entry != NULL)
- {
- if (last_entry->sec == sec)
- entry = last_entry;
- else if (last_entry->next != NULL
- && last_entry->next->sec == sec)
- entry = last_entry->next;
- }
-
- for (; entry; entry = entry->next)
- if (entry->sec == sec)
- break;
-
- if (entry)
- /* Record the entry prior to this one - it is the entry we are most
- likely to want to locate next time. Also this way if we have been
- called from unrecord_section_with_arm_elf_section_data() we will not
- be caching a pointer that is about to be freed. */
- last_entry = entry->prev;
-
- return entry;
-}
-
static _arm_elf_section_data *
get_arm_elf_section_data (asection * sec)
{
- struct section_list * entry;
-
- entry = find_arm_elf_section_entry (sec);
-
- if (entry)
- return elf32_arm_section_data (entry->sec);
+ if (sec && sec->owner && is_arm_elf (sec->owner))
+ return elf32_arm_section_data (sec);
else
return NULL;
}
-static void
-unrecord_section_with_arm_elf_section_data (asection * sec)
-{
- struct section_list * entry;
-
- entry = find_arm_elf_section_entry (sec);
-
- if (entry)
- {
- if (entry->prev != NULL)
- entry->prev->next = entry->next;
- if (entry->next != NULL)
- entry->next->prev = entry->prev;
- if (entry == sections_with_arm_elf_section_data)
- sections_with_arm_elf_section_data = entry->next;
- free (entry);
- }
-}
-
-
typedef struct
{
void *finfo;
@@ -13312,8 +13220,6 @@ elf32_arm_new_section_hook (bfd *abfd, asection *sec)
sec->used_by_bfd = sdata;
}
- record_section_with_arm_elf_section_data (sec);
-
return _bfd_elf_new_section_hook (abfd, sec);
}
@@ -13744,44 +13650,13 @@ elf32_arm_write_section (bfd *output_bfd,
}
free (map);
- arm_data->mapcount = 0;
+ arm_data->mapcount = -1;
arm_data->mapsize = 0;
arm_data->map = NULL;
- unrecord_section_with_arm_elf_section_data (sec);
return FALSE;
}
-static void
-unrecord_section_via_map_over_sections (bfd * abfd ATTRIBUTE_UNUSED,
- asection * sec,
- void * ignore ATTRIBUTE_UNUSED)
-{
- unrecord_section_with_arm_elf_section_data (sec);
-}
-
-static bfd_boolean
-elf32_arm_close_and_cleanup (bfd * abfd)
-{
- if (abfd->sections)
- bfd_map_over_sections (abfd,
- unrecord_section_via_map_over_sections,
- NULL);
-
- return _bfd_elf_close_and_cleanup (abfd);
-}
-
-static bfd_boolean
-elf32_arm_bfd_free_cached_info (bfd * abfd)
-{
- if (abfd->sections)
- bfd_map_over_sections (abfd,
- unrecord_section_via_map_over_sections,
- NULL);
-
- return _bfd_free_cached_info (abfd);
-}
-
/* Display STT_ARM_TFUNC symbols as functions. */
static void
@@ -13968,8 +13843,6 @@ const struct elf_size_info elf32_arm_size_info =
#define bfd_elf32_find_inliner_info elf32_arm_find_inliner_info
#define bfd_elf32_new_section_hook elf32_arm_new_section_hook
#define bfd_elf32_bfd_is_target_special_symbol elf32_arm_is_target_special_symbol
-#define bfd_elf32_close_and_cleanup elf32_arm_close_and_cleanup
-#define bfd_elf32_bfd_free_cached_info elf32_arm_bfd_free_cached_info
#define bfd_elf32_bfd_final_link elf32_arm_final_link
#define elf_backend_get_symbol_type elf32_arm_get_symbol_type
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index fa9d187..65cfccf 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -1330,6 +1330,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_ARM_RELATIVE",
"BFD_RELOC_ARM_GOTOFF",
"BFD_RELOC_ARM_GOTPC",
+ "BFD_RELOC_ARM_GOT_PREL",
"BFD_RELOC_ARM_TLS_GD32",
"BFD_RELOC_ARM_TLS_LDO32",
"BFD_RELOC_ARM_TLS_LDM32",
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index cf0a319..e2b60c5 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -118,6 +118,7 @@ typedef struct pe_tdata
struct internal_extra_pe_aouthdr pe_opthdr;
int dll;
int has_reloc_section;
+ int dont_strip_reloc;
bfd_boolean (*in_reloc_p) (bfd *, reloc_howto_type *);
flagword real_flags;
} pe_data_type;
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index db5e290..966f71e 100644
--- a/bfd/libcoff.h
+++ b/bfd/libcoff.h
@@ -122,6 +122,7 @@ typedef struct pe_tdata
struct internal_extra_pe_aouthdr pe_opthdr;
int dll;
int has_reloc_section;
+ int dont_strip_reloc;
bfd_boolean (*in_reloc_p) (bfd *, reloc_howto_type *);
flagword real_flags;
} pe_data_type;
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index 87e66d7..8f56f21 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -740,7 +740,8 @@ _bfd_XXi_only_swap_filehdr_out (bfd * abfd, void * in, void * out)
struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in;
struct external_PEI_filehdr *filehdr_out = (struct external_PEI_filehdr *) out;
- if (pe_data (abfd)->has_reloc_section)
+ if (pe_data (abfd)->has_reloc_section
+ || pe_data (abfd)->dont_strip_reloc)
filehdr_in->f_flags &= ~F_RELFLG;
if (pe_data (abfd)->dll)
@@ -2206,6 +2207,14 @@ _bfd_XX_bfd_copy_private_bfd_data_common (bfd * ibfd, bfd * obfd)
pe_data (obfd)->pe_opthdr.DataDirectory[PE_BASE_RELOCATION_TABLE].VirtualAddress = 0;
pe_data (obfd)->pe_opthdr.DataDirectory[PE_BASE_RELOCATION_TABLE].Size = 0;
}
+
+ /* For PIE, if there is .reloc, we won't add IMAGE_FILE_RELOCS_STRIPPED.
+ But there is no .reloc, we make sure that IMAGE_FILE_RELOCS_STRIPPED
+ won't be added. */
+ if (! pe_data (ibfd)->has_reloc_section
+ && ! (pe_data (ibfd)->real_flags & IMAGE_FILE_RELOCS_STRIPPED))
+ pe_data (obfd)->dont_strip_reloc = 1;
+
return TRUE;
}
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 1974851..cacd0de 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -2936,6 +2936,8 @@ ENUMX
BFD_RELOC_ARM_GOTOFF
ENUMX
BFD_RELOC_ARM_GOTPC
+ENUMX
+ BFD_RELOC_ARM_GOT_PREL
ENUMDOC
Relocations for setting up GOTs and PLTs for shared libraries.
diff --git a/bfd/version.h b/bfd/version.h
index c9fbf2d..8fe0c65 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100318
+#define BFD_VERSION_DATE 20100320
#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 f961562..6507b66 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,99 @@
+2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
+ get_current_arch.
+ * tui/tui-layout.c (extract_display_start_addr): Likewise.
+
+2010-03-19 Stan Shebs <stan@codesourcery.com>
+
+ * ax-gdb.c (gen_fetch): Handle bool.
+ (gen_usual_unary): Ditto.
+ (gen_cast): Ditto.
+ (gen_equal): New function.
+ (gen_less): New function.
+ (gen_expr_binop_rest): Call them, also return integer type from
+ logical operations.
+ (gen_expr): Ditto.
+
+2010-03-19 Tom Tromey <tromey@redhat.com>
+
+ * jv-lang.c (jv_dynamics_objfile_data_key)
+ (jv_type_objfile_data_key): New globals.
+ (class_symtab): Move earlier.
+ (jv_per_objfile_free): New function.
+ (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
+ parameter.
+ Remove ancient #if 1.
+ (add_class_symbol): Remove redundant declaration.
+ (java_lookup_class): Use alloc_type, not alloc_type_arch.
+ (java_link_class_type): Mark as static. Update.
+ (jv_clear_object_type): New function.
+ (set_java_object_type): Likewise.
+ (get_java_object_type): Use set_java_object_type.
+ (is_object_type): Likewise.
+ (_initialize_java_language): Register new objfile keys.
+ (get_java_class_symtab): Add 'gdbarch' parameter.
+ (add_class_symtab_symbol): Update.
+ (type_from_class): Update.
+
+2010-03-19 Stan Shebs <stan@codesourcery.com>
+
+ * ax-general.c (ax_const_l): Fix a sizing bug.
+
+2010-03-18 Joel Brobecker <brobecker@adacore.com>
+
+ GDB 7.1 released.
+
+2010-03-18 Stan Shebs <stan@codesourcery.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ * target.h (struct target_ops): New method
+ to_set_circular_trace_buffer.
+ (target_set_circular_trace_buffer): New macro.
+ * target.c (update_current_target): Add
+ to_set_circular_trace_buffer, fix to_set_disconnected_tracing
+ default behavior.
+ * remote.c (remote_set_circular_trace_buffer): New function.
+ (init_remote_ops): Add it to vector.
+ * tracepoint.h (struct trace_status): New field traceframes_created,
+ change buffer_size and buffer_free to int.
+ * tracepoint.c (circular_trace_buffer): New global.
+ (start_tracing): Send values of disconnected tracing and circular
+ trace buffer settings.
+ (set_circular_trace_buffer): New function.
+ (parse_trace_state): Handle total space and frames created.
+ (trace_status_command): Display total space and total frames
+ created.
+ (trace_save): Write out new status values.
+ (parse_trace_status): Set traceframe_count, traceframes_created,
+ buffer_free and buffer_size to -1 by default.
+ (_initialize_tracepoint): New setshow for circular-trace-buffer.
+ * NEWS: Mention the circular trace buffer option.
+
+2010-03-18 Tom Tromey <tromey@redhat.com>
+
+ * infcmd.c (finish_command_continuation): Wrap print_return_value
+ in TRY_CATCH.
+
+2010-03-18 Joel Brobecker <brobecker@adacore.com>
+
+ * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
+ DIE has a name before creating the associated partial symbol.
+ (read_func_scope): Emit a complaint if the subprogram does not
+ have a name or when we can't extract the subprogram PC bounds.
+
+2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
+ instead of selected frame architecture.
+
+2010-03-18 Pedro Alves <pedro@codesourcery.com>
+
+ * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
+ a valid selected thread, and that it is not running.
+ (advance_command): Ditto.
+ (finish_command): Ditto.
+
2010-03-17 Stan Shebs <stan@codesourcery.com>
* ax-gdb.c (require_rvalue): Disallow non-scalars.
diff --git a/gdb/NEWS b/gdb/NEWS
index 64c48f6..ff4e4af 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -114,7 +114,14 @@ Renesas RX rx
tracing run at the moment that it was saved. To create a trace
file, use "tsave <filename>", and to use it, do "target tfile
<name>".
-
+
+ ** Circular trace buffer
+
+ You can ask the target agent to handle the trace buffer as a
+ circular buffer, discarding the oldest trace frames to make room for
+ newer ones, by setting circular-trace-buffer to on. This feature may
+ not be available for all target agents.
+
* Changed commands
disassemble
@@ -215,6 +222,13 @@ show disconnected-tracing
loses its connection to GDB. If 0, the target is to stop tracing
upon disconnection.
+set circular-trace-buffer
+show circular-trace-buffer
+ If set to on, the target is instructed to use a circular trace buffer
+ and discard the oldest trace frames instead of stopping the trace due
+ to a full trace buffer. If set to off, the trace stops when the buffer
+ fills up. Some targets may not support this.
+
set script-extension off|soft|strict
show script-extension
If set to "off", the debugger does not perform any script language
@@ -258,6 +272,9 @@ qTV
QTDisconnected
Set desired tracing behavior upon disconnection.
+QTBuffer:circular
+ Set the trace buffer to be linear or circular.
+
qTfP, qTsP
Get data about the tracepoints currently in use.
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 4307de3..e79fe38 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -478,6 +478,7 @@ gen_fetch (struct agent_expr *ax, struct type *type)
case TYPE_CODE_ENUM:
case TYPE_CODE_INT:
case TYPE_CODE_CHAR:
+ case TYPE_CODE_BOOL:
/* It's a scalar value, so we know how to dereference it. How
many bytes long is it? */
switch (TYPE_LENGTH (type))
@@ -752,7 +753,7 @@ require_rvalue (struct agent_expr *ax, struct axs_value *value)
|| TYPE_CODE (value->type) == TYPE_CODE_STRUCT
|| TYPE_CODE (value->type) == TYPE_CODE_UNION
|| TYPE_CODE (value->type) == TYPE_CODE_FUNC)
- error ("Value not scalar: cannot be an rvalue.");
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-03-18 10:01 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-03-18 10:01 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via f3b002fc7b744d9be2395b48843742b96bb90c56 (commit)
via 8780a14a916cc43b8c25d084bcb30299c1e1a6e9 (commit)
via 8850d00dc9ce1059186667f577841ad5edd093b1 (commit)
via 9ed708883a6e59c12ba179a641e6a5969eb61bf0 (commit)
via 25f4e2ad6a1acf0c53cc063592cf3be120988ef6 (commit)
via ee7d895d7256654a800e35c123f651beaa384877 (commit)
via 3a39aee4d5c907d507a005affc64760a70e555eb (commit)
via 3ee1cd2497b44c9b334fd72e23ca1fbecee96ef2 (commit)
via cd72547fd2b8c0884abd18b192af7f281d50831c (commit)
from f54a9f9a7fef3412659e5b966f9d7a37ae1804d3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f3b002fc7b744d9be2395b48843742b96bb90c56
Merge: f54a9f9a7fef3412659e5b966f9d7a37ae1804d3 8780a14a916cc43b8c25d084bcb30299c1e1a6e9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Mar 18 11:01:00 2010 +0100
Merge remote branch 'gdb/master'
commit 8780a14a916cc43b8c25d084bcb30299c1e1a6e9
Author: Stan Shebs <shebs@apple.com>
Date: Thu Mar 18 01:47:33 2010 +0000
2010-03-17 Stan Shebs <stan@codesourcery.com>
* ax-gdb.c (require_rvalue): Disallow non-scalars.
commit 8850d00dc9ce1059186667f577841ad5edd093b1
Author: Stan Shebs <shebs@apple.com>
Date: Thu Mar 18 01:09:25 2010 +0000
2010-03-17 Stan Shebs <stan@codesourcery.com>
* infcall.c: Include tracepoint.h.
(call_function_by_hand): Disallow calls in tfind mode.
* infcmd.c: Include tracepoint.h.
(ensure_not_tfind_mode): New function.
(continue_1): Call it.
(step_1) Ditto.
(jump_command): Ditto.
(signal_command): Ditto.
(advance_command): Ditto.
(until_command): Ditto.
(finish_command): Ditto.
* tracepoint.h (disconnect_or_stop_tracing): Declare.
commit 9ed708883a6e59c12ba179a641e6a5969eb61bf0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 18 00:00:34 2010 +0000
*** empty log message ***
commit 25f4e2ad6a1acf0c53cc063592cf3be120988ef6
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Mar 17 23:01:13 2010 +0000
daily update
commit ee7d895d7256654a800e35c123f651beaa384877
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Mar 17 23:00:02 2010 +0000
Revert accidental changes.
2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
* reloc.c (BFD_RELOC_SPU_PIC18): Removed.
(BFD_RELOC_SPU_STUB): Likewise.
commit 3a39aee4d5c907d507a005affc64760a70e555eb
Author: Stan Shebs <shebs@apple.com>
Date: Wed Mar 17 22:04:43 2010 +0000
2010-03-17 Stan Shebs <stan@codesourcery.com>
* ax-gdb.h (struct axs_value): New field optimized_out.
(gen_trace_for_var): Add gdbarch argument.
* ax-gdb.c (gen_trace_static_fields): New function.
(gen_traced_pop): Call it, add gdbarch argument.
(gen_trace_for_expr): Update call to it.
(gen_trace_for_var): Ditto, and report optimized-out variables.
(gen_struct_ref_recursive): Check for optimized-out value.
(gen_struct_elt_for_reference): Ditto.
(gen_static_field): Pass gdbarch instead of expression, assume
optimization if field not found.
(gen_var_ref): Set the optimized_out flag.
(gen_expr): Error on optimized-out variable.
* tracepoint.c (collect_symbol): Handle struct-valued vars as
expressions, skip optimized-out variables with computed locations.
* dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
erroring out if location expression missing.
(loclist_tracepoint_var_ref): Don't error out here.
commit 3ee1cd2497b44c9b334fd72e23ca1fbecee96ef2
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Mar 17 19:16:02 2010 +0000
* dwarf2read.c (dwarf2_get_section_info): Handle case where no
DWARF data is available.
commit cd72547fd2b8c0884abd18b192af7f281d50831c
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Mar 17 18:08:10 2010 +0000
* symfile.c (generic_load): Reset breakpoints after loading.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 5 ++
bfd/reloc.c | 4 --
bfd/version.h | 2 +-
gdb/ChangeLog | 44 +++++++++++++++++
gdb/ax-gdb.c | 143 ++++++++++++++++++++++++++++++++++++++++++++++++------
gdb/ax-gdb.h | 7 ++-
gdb/dwarf2loc.c | 12 ++---
gdb/dwarf2read.c | 10 ++++
gdb/infcall.c | 4 ++
gdb/infcmd.c | 25 +++++++++-
gdb/symfile.c | 10 ++++
gdb/tracepoint.c | 103 +++++++++++++++++++++++----------------
gdb/tracepoint.h | 2 +
gdb/version.in | 2 +-
14 files changed, 299 insertions(+), 74 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index bcfae55..0172fdf 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
+ (BFD_RELOC_SPU_STUB): Likewise.
+
2010-03-17 Jie Zhang <jie@codesourcery.com>
* elf.c (assign_file_positions_for_load_sections): Avoid
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 0249662..1974851 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -2025,10 +2025,6 @@ ENUMX
BFD_RELOC_SPU_PPU64
ENUMX
BFD_RELOC_SPU_ADD_PIC
-ENUMX
- BFD_RELOC_SPU_PIC18
-ENUMX
- BFD_RELOC_SPU_STUB
ENUMDOC
SPU Relocations.
diff --git a/bfd/version.h b/bfd/version.h
index b1aa51f..c9fbf2d 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100317
+#define BFD_VERSION_DATE 20100318
#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 5578d4f..f961562 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,47 @@
+2010-03-17 Stan Shebs <stan@codesourcery.com>
+
+ * ax-gdb.c (require_rvalue): Disallow non-scalars.
+
+ * infcall.c: Include tracepoint.h.
+ (call_function_by_hand): Disallow calls in tfind mode.
+ * infcmd.c: Include tracepoint.h.
+ (ensure_not_tfind_mode): New function.
+ (continue_1): Call it.
+ (step_1) Ditto.
+ (jump_command): Ditto.
+ (signal_command): Ditto.
+ (advance_command): Ditto.
+ (until_command): Ditto.
+ (finish_command): Ditto.
+ * tracepoint.h (disconnect_or_stop_tracing): Declare.
+
+ * ax-gdb.h (struct axs_value): New field optimized_out.
+ (gen_trace_for_var): Add gdbarch argument.
+ * ax-gdb.c (gen_trace_static_fields): New function.
+ (gen_traced_pop): Call it, add gdbarch argument.
+ (gen_trace_for_expr): Update call to it.
+ (gen_trace_for_var): Ditto, and report optimized-out variables.
+ (gen_struct_ref_recursive): Check for optimized-out value.
+ (gen_struct_elt_for_reference): Ditto.
+ (gen_static_field): Pass gdbarch instead of expression, assume
+ optimization if field not found.
+ (gen_var_ref): Set the optimized_out flag.
+ (gen_expr): Error on optimized-out variable.
+ * tracepoint.c (collect_symbol): Handle struct-valued vars as
+ expressions, skip optimized-out variables with computed locations.
+ * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
+ erroring out if location expression missing.
+ (loclist_tracepoint_var_ref): Don't error out here.
+
+2010-03-17 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (dwarf2_get_section_info): Handle case where no
+ DWARF data is available.
+
+2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * symfile.c (generic_load): Reset breakpoints after loading.
+
2010-03-17 Tom Tromey <tromey@redhat.com>
* linux-nat.c (linux_nat_detach): Check debug_linux_nat.
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 0e95bdf..4307de3 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -70,7 +70,7 @@ static struct value *const_var_ref (struct symbol *var);
static struct value *const_expr (union exp_element **pc);
static struct value *maybe_const_expr (union exp_element **pc);
-static void gen_traced_pop (struct agent_expr *, struct axs_value *);
+static void gen_traced_pop (struct gdbarch *, struct agent_expr *, struct axs_value *);
static void gen_sign_extend (struct agent_expr *, struct type *);
static void gen_extend (struct agent_expr *, struct type *);
@@ -144,7 +144,7 @@ static void gen_struct_ref (struct expression *exp, struct agent_expr *ax,
struct axs_value *value,
char *field,
char *operator_name, char *operand_name);
-static void gen_static_field (struct expression *exp,
+static void gen_static_field (struct gdbarch *gdbarch,
struct agent_expr *ax, struct axs_value *value,
struct type *type, int fieldno);
static void gen_repeat (struct expression *exp, union exp_element **pc,
@@ -331,11 +331,64 @@ maybe_const_expr (union exp_element **pc)
emits the trace bytecodes at the appropriate points. */
static int trace_kludge;
+/* Scan for all static fields in the given class, including any base
+ classes, and generate tracing bytecodes for each. */
+
+static void
+gen_trace_static_fields (struct gdbarch *gdbarch,
+ struct agent_expr *ax,
+ struct type *type)
+{
+ int i, nbases = TYPE_N_BASECLASSES (type);
+ struct axs_value value;
+
+ CHECK_TYPEDEF (type);
+
+ for (i = TYPE_NFIELDS (type) - 1; i >= nbases; i--)
+ {
+ if (field_is_static (&TYPE_FIELD (type, i)))
+ {
+ gen_static_field (gdbarch, ax, &value, type, i);
+ if (value.optimized_out)
+ continue;
+ switch (value.kind)
+ {
+ case axs_lvalue_memory:
+ {
+ int length = TYPE_LENGTH (check_typedef (value.type));
+
+ ax_const_l (ax, length);
+ ax_simple (ax, aop_trace);
+ }
+ break;
+
+ case axs_lvalue_register:
+ /* We need to mention the register somewhere in the bytecode,
+ so ax_reqs will pick it up and add it to the mask of
+ registers used. */
+ ax_reg (ax, value.u.reg);
+
+ default:
+ break;
+ }
+ }
+ }
+
+ /* Now scan through base classes recursively. */
+ for (i = 0; i < nbases; i++)
+ {
+ struct type *basetype = check_typedef (TYPE_BASECLASS (type, i));
+
+ gen_trace_static_fields (gdbarch, ax, basetype);
+ }
+}
+
/* Trace the lvalue on the stack, if it needs it. In either case, pop
the value. Useful on the left side of a comma, and at the end of
an expression being used for tracing. */
static void
-gen_traced_pop (struct agent_expr *ax, struct axs_value *value)
+gen_traced_pop (struct gdbarch *gdbarch,
+ struct agent_expr *ax, struct axs_value *value)
{
if (trace_kludge)
switch (value->kind)
@@ -371,6 +424,12 @@ gen_traced_pop (struct agent_expr *ax, struct axs_value *value)
else
/* If we're not tracing, just pop the value. */
ax_simple (ax, aop_pop);
+
+ /* To trace C++ classes with static fields stored elsewhere. */
+ if (trace_kludge
+ && (TYPE_CODE (value->type) == TYPE_CODE_STRUCT
+ || TYPE_CODE (value->type) == TYPE_CODE_UNION))
+ gen_trace_static_fields (gdbarch, ax, value->type);
}
\f
@@ -554,6 +613,7 @@ gen_var_ref (struct gdbarch *gdbarch, struct agent_expr *ax,
{
/* Dereference any typedefs. */
value->type = check_typedef (SYMBOL_TYPE (var));
+ value->optimized_out = 0;
/* I'm imitating the code in read_var_value. */
switch (SYMBOL_CLASS (var))
@@ -650,8 +710,9 @@ gen_var_ref (struct gdbarch *gdbarch, struct agent_expr *ax,
break;
case LOC_OPTIMIZED_OUT:
- error (_("The variable `%s' has been optimized out."),
- SYMBOL_PRINT_NAME (var));
+ /* Flag this, but don't say anything; leave it up to callers to
+ warn the user. */
+ value->optimized_out = 1;
break;
default:
@@ -684,6 +745,15 @@ gen_int_literal (struct agent_expr *ax, struct axs_value *value, LONGEST k,
static void
require_rvalue (struct agent_expr *ax, struct axs_value *value)
{
+ /* Only deal with scalars, structs and such may be too large
+ to fit in a stack entry. */
+ value->type = check_typedef (value->type);
+ if (TYPE_CODE (value->type) == TYPE_CODE_ARRAY
+ || TYPE_CODE (value->type) == TYPE_CODE_STRUCT
+ || TYPE_CODE (value->type) == TYPE_CODE_UNION
+ || TYPE_CODE (value->type) == TYPE_CODE_FUNC)
+ error ("Value not scalar: cannot be an rvalue.");
+
switch (value->kind)
{
case axs_rvalue:
@@ -1342,7 +1412,10 @@ gen_struct_ref_recursive (struct expression *exp, struct agent_expr *ax,
being handled as a global. */
if (field_is_static (&TYPE_FIELD (type, i)))
{
- gen_static_field (exp, ax, value, type, i);
+ gen_static_field (exp->gdbarch, ax, value, type, i);
+ if (value->optimized_out)
+ error (_("static field `%s' has been optimized out, cannot use"),
+ field);
return 1;
}
@@ -1425,7 +1498,7 @@ gen_maybe_namespace_elt (struct expression *exp,
const struct type *curtype, char *name);
static void
-gen_static_field (struct expression *exp,
+gen_static_field (struct gdbarch *gdbarch,
struct agent_expr *ax, struct axs_value *value,
struct type *type, int fieldno)
{
@@ -1434,15 +1507,27 @@ gen_static_field (struct expression *exp,
ax_const_l (ax, TYPE_FIELD_STATIC_PHYSADDR (type, fieldno));
value->kind = axs_lvalue_memory;
value->type = TYPE_FIELD_TYPE (type, fieldno);
+ value->optimized_out = 0;
}
else
{
char *phys_name = TYPE_FIELD_STATIC_PHYSNAME (type, fieldno);
struct symbol *sym = lookup_symbol (phys_name, 0, VAR_DOMAIN, 0);
- if (sym == NULL)
- error (_("symbol not found"));
- gen_var_ref (exp->gdbarch, ax, value, sym);
+ if (sym)
+ {
+ gen_var_ref (gdbarch, ax, value, sym);
+
+ /* Don't error if the value was optimized out, we may be
+ scanning all static fields and just want to pass over this
+ and continue with the rest. */
+ }
+ else
+ {
+ /* Silently assume this was optimized out; class printing
+ will let the user know why the data is missing. */
+ value->optimized_out = 1;
+ }
}
}
@@ -1468,7 +1553,10 @@ gen_struct_elt_for_reference (struct expression *exp,
{
if (field_is_static (&TYPE_FIELD (t, i)))
{
- gen_static_field (exp, ax, value, t, i);
+ gen_static_field (exp->gdbarch, ax, value, t, i);
+ if (value->optimized_out)
+ error (_("static field `%s' has been optimized out, cannot use"),
+ fieldname);
return 1;
}
if (TYPE_FIELD_PACKED (t, i))
@@ -1526,6 +1614,10 @@ gen_maybe_namespace_elt (struct expression *exp,
gen_var_ref (exp->gdbarch, ax, value, sym);
+ if (value->optimized_out)
+ error (_("`%s' has been optimized out, cannot use"),
+ SYMBOL_PRINT_NAME (sym));
+
return 1;
}
@@ -1815,7 +1907,7 @@ gen_expr (struct expression *exp, union exp_element **pc,
/* Don't just dispose of the left operand. We might be tracing,
in which case we want to emit code to trace it if it's an
lvalue. */
- gen_traced_pop (ax, &value1);
+ gen_traced_pop (exp->gdbarch, ax, &value1);
gen_expr (exp, pc, ax, value);
/* It's the consumer's responsibility to trace the right operand. */
break;
@@ -1831,6 +1923,11 @@ gen_expr (struct expression *exp, union exp_element **pc,
case OP_VAR_VALUE:
gen_var_ref (exp->gdbarch, ax, value, (*pc)[2].symbol);
+
+ if (value->optimized_out)
+ error (_("`%s' has been optimized out, cannot use"),
+ SYMBOL_PRINT_NAME ((*pc)[2].symbol));
+
(*pc) += 4;
break;
@@ -2004,6 +2101,11 @@ gen_expr (struct expression *exp, union exp_element **pc,
error (_("no `%s' found"), this_name);
gen_var_ref (exp->gdbarch, ax, value, sym);
+
+ if (value->optimized_out)
+ error (_("`%s' has been optimized out, cannot use"),
+ SYMBOL_PRINT_NAME (sym));
+
(*pc) += 2;
}
break;
@@ -2199,7 +2301,8 @@ cannot subscript requested type: cannot call user defined functions"));
name comes from a list of local variables of a function. */
struct agent_expr *
-gen_trace_for_var (CORE_ADDR scope, struct symbol *var)
+gen_trace_for_var (CORE_ADDR scope, struct gdbarch *gdbarch,
+ struct symbol *var)
{
struct cleanup *old_chain = 0;
struct agent_expr *ax = new_agent_expr (scope);
@@ -2208,10 +2311,18 @@ gen_trace_for_var (CORE_ADDR scope, struct symbol *var)
old_chain = make_cleanup_free_agent_expr (ax);
trace_kludge = 1;
- gen_var_ref (NULL, ax, &value, var);
+ gen_var_ref (gdbarch, ax, &value, var);
+
+ /* If there is no actual variable to trace, flag it by returning
+ an empty agent expression. */
+ if (value.optimized_out)
+ {
+ do_cleanups (old_chain);
+ return NULL;
+ }
/* Make sure we record the final object, and get rid of it. */
- gen_traced_pop (ax, &value);
+ gen_traced_pop (gdbarch, ax, &value);
/* Oh, and terminate. */
ax_simple (ax, aop_end);
@@ -2245,7 +2356,7 @@ gen_trace_for_expr (CORE_ADDR scope, struct expression *expr)
gen_expr (expr, &pc, ax, &value);
/* Make sure we record the final object, and get rid of it. */
- gen_traced_pop (ax, &value);
+ gen_traced_pop (expr->gdbarch, ax, &value);
/* Oh, and terminate. */
ax_simple (ax, aop_end);
diff --git a/gdb/ax-gdb.h b/gdb/ax-gdb.h
index a5f3768..4ec21e1 100644
--- a/gdb/ax-gdb.h
+++ b/gdb/ax-gdb.h
@@ -81,6 +81,10 @@ struct axs_value
"pointer to" an object of this type. */
struct type *type;
+ /* If nonzero, this is a variable which does not actually exist in
+ the program. */
+ char optimized_out;
+
union
{
/* if kind == axs_lvalue_register, this is the register number */
@@ -99,7 +103,8 @@ struct axs_value
function to discover which registers the expression uses. */
extern struct agent_expr *gen_trace_for_expr (CORE_ADDR, struct expression *);
-extern struct agent_expr *gen_trace_for_var (CORE_ADDR, struct symbol *);
+extern struct agent_expr *gen_trace_for_var (CORE_ADDR, struct gdbarch *,
+ struct symbol *);
extern struct agent_expr *gen_eval_for_expr (CORE_ADDR, struct expression *);
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 20ede3e..ed7dfb9 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -619,11 +619,11 @@ dwarf2_tracepoint_var_ref (struct symbol *symbol, struct gdbarch *gdbarch,
struct agent_expr *ax, struct axs_value *value,
gdb_byte *data, int size)
{
- if (size == 0)
- error (_("Symbol \"%s\" has been optimized out."),
- SYMBOL_PRINT_NAME (symbol));
-
- if (size == 1
+ if (!data || size == 0)
+ {
+ value->optimized_out = 1;
+ }
+ else if (size == 1
&& data[0] >= DW_OP_reg0
&& data[0] <= DW_OP_reg31)
{
@@ -883,8 +883,6 @@ loclist_tracepoint_var_ref (struct symbol *symbol, struct gdbarch *gdbarch,
size_t size;
data = find_location_expression (dlbaton, &size, ax->scope);
- if (data == NULL)
- error (_("Variable \"%s\" is not available."), SYMBOL_NATURAL_NAME (symbol));
dwarf2_tracepoint_var_ref (symbol, gdbarch, ax, value, data, size);
}
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index cbb7424..3789d09 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1397,6 +1397,16 @@ dwarf2_get_section_info (struct objfile *objfile, const char *section_name,
struct dwarf2_per_objfile *data
= objfile_data (objfile, dwarf2_objfile_data_key);
struct dwarf2_section_info *info;
+
+ /* We may see an objfile without any DWARF, in which case we just
+ return nothing. */
+ if (data == NULL)
+ {
+ *sectp = NULL;
+ *bufp = NULL;
+ *sizep = 0;
+ return;
+ }
if (section_is_p (section_name, EH_FRAME_SECTION))
info = &data->eh_frame;
else if (section_is_p (section_name, FRAME_SECTION))
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 2d8bd2c..d6a8de3 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -21,6 +21,7 @@
#include "defs.h"
#include "breakpoint.h"
+#include "tracepoint.h"
#include "target.h"
#include "regcache.h"
#include "inferior.h"
@@ -453,6 +454,9 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
if (!target_has_execution)
noprocess ();
+ if (get_traceframe_number () >= 0)
+ error (_("May not call functions while looking at trace frames."));
+
frame = get_current_frame ();
gdbarch = get_frame_arch (frame);
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 29cf427..8cc516d 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -54,8 +54,7 @@
#include "gdbthread.h"
#include "valprint.h"
#include "inline-frame.h"
-
-extern void disconnect_or_stop_tracing (int from_tty);
+#include "tracepoint.h"
/* Functions exported for general use, in inferior.h: */
@@ -648,10 +647,23 @@ ensure_valid_thread (void)
Cannot execute this command without a live selected thread."));
}
+/* If the user is looking at trace frames, any resumption of execution
+ is likely to mix up recorded and live target data. So simply
+ disallow those commands. */
+
+void
+ensure_not_tfind_mode (void)
+{
+ if (get_traceframe_number () >= 0)
+ error (_("\
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-03-17 18:04 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-03-17 18:04 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via f54a9f9a7fef3412659e5b966f9d7a37ae1804d3 (commit)
via fc777f8cee862299a424e43b69e0b9da4a2aa954 (commit)
via 5cfbb29e780ef787a4bef5184a61a685d014d122 (commit)
via b321473ae6f4a1c706bea7bd870d11b746249fb0 (commit)
via 48a790738aa1b8fb22f100e7fedcb0a015d08374 (commit)
via 3b7090fcada6c5dfb0fe09cff53a9cb34af2f5c7 (commit)
via 74b782fa497cf943b2ccb0e97311f48a748f875c (commit)
via 67f7d65ba82e853cf12980ff947e6e502c7c79ac (commit)
via 86aef2728d39f65f99c0af5b44f936a060edb180 (commit)
via 86f51730f4e41c01c326821e76e04aaf14f981f9 (commit)
via 3281e3f737859ac08eb10d799c589fb89459b924 (commit)
via 970e609616fb71b63ebb8f58e9a8c3670c823c02 (commit)
via 835fdca6f42a4e0c5e97fb4d062a7a4cc17658aa (commit)
via dd73b8b455e02478aa74ba03b3337ebf03af07de (commit)
via 898e66d56b7886f6cd75d6eb8b72f9b91a12309d (commit)
via a184f5638c8c86086a9de85534eeeaf3a626da80 (commit)
via 439339a7d8e579c36c4fa9ddb4c4e332fe586f97 (commit)
via 2333cd7e933ae2809e5013b9c7b57032a1f20b2e (commit)
via de58c14ccccd5a6bb524f85331b3e7298ad3ed26 (commit)
via 2d581c0999e65b6083360ca31ae4a868880329a1 (commit)
via 036197e5dc5422ff012532fed4915917b3d496a5 (commit)
via 9bd9a915707cd425865a33238566566394844969 (commit)
via fca80a284194f500a3f205eaa066d7bf172e8e4b (commit)
via 31b3aec7058e59abbdeb8f43fb9db95c9fe1ebe0 (commit)
via 986befffb3106b806122e617ef965b3d6cf69099 (commit)
via d3504efe9827a14b74111f4d5cf3fec1218dd08d (commit)
via b11086bf3dddcb3d5ce03d08f55280943c44427e (commit)
via 0a9b5162bf77945639d4995dee9ca804da3aee75 (commit)
via cc3e71651e2fd0168a2d3dd4efc2d3e15fd508dd (commit)
via 43e112ddbb339de9371e3397521d3a958e5d1aea (commit)
via 045bbd33e4441627f70f2f28857ee1522eafb6ca (commit)
via 5222346fc63842e2fc54a4f325991c3df106bf8f (commit)
via 7a16cfcbc00d3e3b2024e24e6b8c1c36540f0f79 (commit)
via bcd841deb53d23e6bcf2095013b8ea5f88392685 (commit)
via 8892a2753eccfb3b46ed40e9b4d7c5c61aee5efa (commit)
via e8098eb45a1beb730dc4ce5cd09660bad91496b9 (commit)
via afbf08456c366e0895e1b196768b046ac5e5e68c (commit)
via 3fe454dc46a84a39d3444d620aaa28f1c67ab266 (commit)
via 0758e3257353d889c65f67823329925b5d4cab54 (commit)
via 430356f7da77d6a8c9eadde0a22d21b1def7eb60 (commit)
via a91198a94c644c996a766a208bac1a373b2abd7b (commit)
via ea9821c276ba217f4649463379fa091fb49affb2 (commit)
via 9689e45a485dd8fb7e2d6bdbb0192548fe12c7fb (commit)
via c29bb8ea06c5fb6b713db4747318dc787eb06e3a (commit)
via 1633b7e7767d612d6b7fa9dd552282df3ffe7b5b (commit)
via 8be4bf46ab274f40ce02e7c950726ac10fc02194 (commit)
via 434e0dfa46139c9a485c677a18dda849ed4b747c (commit)
via 02cb9906833f7a112100ac1a3e654cb45569ba77 (commit)
via a0569be1a33498fd93f14aaa899cc121fce88ea7 (commit)
via d45053e897cd4a9b64820582243933fd4bc03827 (commit)
via 61d21c9c0a3cb8cb3c9a0ee393e538711d68741a (commit)
via 4f912c53a0bf4307dc02bba43cbbbe904ede6128 (commit)
via 77f560b8814240fbf7770d5c238ce660ef1eadbe (commit)
via b630b63f466313ca3922bb47511886256a3ca199 (commit)
via d414e6ea585b19e7089f681791fada37ccc8f546 (commit)
via 837e11c081d1342e72b3525b9a56329c6f34e967 (commit)
from 4a3f8e3fbf71cb4369d985e6a98b0db10040ab36 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f54a9f9a7fef3412659e5b966f9d7a37ae1804d3
Merge: 4a3f8e3fbf71cb4369d985e6a98b0db10040ab36 fc777f8cee862299a424e43b69e0b9da4a2aa954
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Mar 17 19:04:15 2010 +0100
Merge remote branch 'gdb/master'
commit fc777f8cee862299a424e43b69e0b9da4a2aa954
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Mar 17 16:16:58 2010 +0000
* linux-nat.c (linux_nat_detach): Check debug_linux_nat.
commit 5cfbb29e780ef787a4bef5184a61a685d014d122
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Mar 17 13:46:35 2010 +0000
Avoid overflow.
2010-03-17 Jie Zhang <jie@codesourcery.com>
* elf.c (assign_file_positions_for_load_sections): Avoid
overflow.
commit b321473ae6f4a1c706bea7bd870d11b746249fb0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Mar 17 13:38:54 2010 +0000
gdb/
* spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
create_breakpoint call, adjust the parameters.
commit 48a790738aa1b8fb22f100e7fedcb0a015d08374
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Mar 17 08:50:36 2010 +0000
* plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
proper type.
commit 3b7090fcada6c5dfb0fe09cff53a9cb34af2f5c7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Mar 17 07:57:04 2010 +0000
warning fixes
commit 74b782fa497cf943b2ccb0e97311f48a748f875c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Mar 17 00:00:33 2010 +0000
*** empty log message ***
commit 67f7d65ba82e853cf12980ff947e6e502c7c79ac
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Mar 16 23:01:07 2010 +0000
daily update
commit 86aef2728d39f65f99c0af5b44f936a060edb180
Author: Mike Frysinger <vapier@gentoo.org>
Date: Tue Mar 16 20:58:53 2010 +0000
sim: avoid TRACE redefine warnings
The common code sets up an autoconf option --enable-sim-trace which adds
-DTRACE= to CPPFLAGS. This causes warnings in the building of some files
that declare a local TRACE() helper macro. So punt it from hw-ports.c
(since it isn't actually used) and convert hw-properties.c to HW_TRACE().
commit 86f51730f4e41c01c326821e76e04aaf14f981f9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Mar 16 20:51:23 2010 +0000
gdb/
* dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
* valarith.c (value_subscripted_rvalue): Suppress error if
TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
commit 3281e3f737859ac08eb10d799c589fb89459b924
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Mar 16 18:47:14 2010 +0000
Avoid switch to invalid ptid during Ada task switch.
This is to prevent an internal error during an Ada task switch. A task
switch is simply a thread switch under the hood. What we do is collect
the info from the Ada Task Control Block, deduce the associated thread
ptid, and then switch to that thread. If the thread ptid computation
routine has not been implemented for the target, of if there is a bug,
then we end up computing a bogus ptid which GDB does not know about,
which eventually leads to an assertion failure:
(gdb) task 1
[New Thread 5715]
/[...]/gdb/thread.c:595: internal-error: is_thread_state:
Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
When this happens, it's just nicer for the user to print an error
message, and cancel the task switch. After this patch is applied,
this is what we get:
(gdb) task 1
[New Thread 10250]
Unable to compute thread ID for task 1.
Cannot switch to this task.
gdb/ChangeLog:
* ada-tasks.c (task_command_1): Check that the task ptid is valid
before doing the associated thread switch.
commit 970e609616fb71b63ebb8f58e9a8c3670c823c02
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Mar 16 17:47:52 2010 +0000
gdb/gdbserver/
* server.h (internal_error): Declare.
(gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
* utils.c (internal_error): New function.
commit 835fdca6f42a4e0c5e97fb4d062a7a4cc17658aa
Author: Hui Zhu <teawater@gmail.com>
Date: Tue Mar 16 17:01:19 2010 +0000
2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
* linux-record.c (record_linux_msghdr): Remove unintended semicolons.
commit dd73b8b455e02478aa74ba03b3337ebf03af07de
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Mar 16 13:59:35 2010 +0000
* MAINTAINERS: Update my email address.
commit 898e66d56b7886f6cd75d6eb8b72f9b91a12309d
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Tue Mar 16 08:42:19 2010 +0000
Simplify MI breakpoint setting.
* breakpoint.c (break_command_really): Make nonstatic and
rename to...
(create_breakpoint): ...this. Rename prior function by this name
to...
(create_breakpoint_sal): ...this.
(create_breakpoints): Rename to...
(create_breakpoints_sal): ...this.
(set_breakpoint): Remove.
* breakpoint.h: Adjust to above changes.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
commit a184f5638c8c86086a9de85534eeeaf3a626da80
Author: Stan Shebs <shebs@apple.com>
Date: Tue Mar 16 00:52:54 2010 +0000
Fix a commit snafu
commit 439339a7d8e579c36c4fa9ddb4c4e332fe586f97
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Mar 16 00:40:36 2010 +0000
* elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
(ppc64_elf_edit_toc): Set it here.
(ha_reloc_match): New function.
(ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
commit 2333cd7e933ae2809e5013b9c7b57032a1f20b2e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Mar 16 00:00:03 2010 +0000
*** empty log message ***
commit de58c14ccccd5a6bb524f85331b3e7298ad3ed26
Author: Stan Shebs <shebs@apple.com>
Date: Mon Mar 15 23:53:21 2010 +0000
2010-03-15 Stan Shebs <stan@codesourcery.com>
* ax-gdb.c: Include cp-support.h.
(find_field): Remove.
(gen_primitive_field): New function.
(gen_struct_ref_recursive): New function.
(gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
of find_field.
(gen_static_field): New function.
(gen_struct_elt_for_reference): New.
(gen_namespace_elt): New.
(gen_maybe_namespace_elt): New.
(gen_aggregate_elt_ref): New.
(gen_expr): Add OP_SCOPE, display opcode name in error message.
commit 2d581c0999e65b6083360ca31ae4a868880329a1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Mar 15 23:01:00 2010 +0000
daily update
commit 036197e5dc5422ff012532fed4915917b3d496a5
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Mar 15 20:49:53 2010 +0000
* dwarf2read.c (die_needs_namespace): Also return 0 for
DW_TAG_subprogram.
commit 9bd9a915707cd425865a33238566566394844969
Author: DJ Delorie <dj@delorie.com>
Date: Mon Mar 15 17:33:40 2010 +0000
merge from gcc
commit fca80a284194f500a3f205eaa066d7bf172e8e4b
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Mar 15 17:32:55 2010 +0000
Requalify Ralf Corsepius' change as a "tiny change".
Ralf's copyright assignment does not cover GDB for the moment.
He only contributed one other change, in 2005, so this should be fine.
commit 31b3aec7058e59abbdeb8f43fb9db95c9fe1ebe0
Author: swagiaal <swagiaal>
Date: Mon Mar 15 17:29:36 2010 +0000
2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
PR c++/7936:
* cp-support.h: Added char *declaration element to using_direct
data struct.
(cp_add_using): Added char *declaration argument.
(cp_add_using_directive): Ditto.
(cp_lookup_symbol_imports): made extern.
* cp-namespace.c: Updated with the above changes.
* dwarf2read.c (read_import_statement): Ditto.
(read_namespace): Ditto.
(read_import_statement): Support import declarations.
* cp-namespace.c (cp_lookup_symbol_imports): Check for imported
declarations.
Added support for 'declaration_only' search.
(cp_lookup_symbol_namespace): Attempt to search for the name as
is before consideration of imports.
* symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
search at every block level search.
Now takes language argument.
(lookup_symbol_aux): Updated.
2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/shadow.exp: Removed kfail; test has been fix.
* gdb.cp/nsusing.exp: Ditto.
commit 986befffb3106b806122e617ef965b3d6cf69099
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Mar 15 17:26:46 2010 +0000
gdb
* c-exp.y (name_not_typename): Add 'operator' clause.
gdb/testsuite
* gdb.cp/userdef.exp: Add tests for explicit calls to operator==.
* gdb.cp/userdef.cc (operator==): New function.
(main): New locals mem1, mem2.
commit d3504efe9827a14b74111f4d5cf3fec1218dd08d
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Mar 15 17:06:41 2010 +0000
Fix date in latest entry.
commit b11086bf3dddcb3d5ce03d08f55280943c44427e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Mar 15 17:03:00 2010 +0000
Fail gdb configure if target is not supported.
* configure.ac: Exit if ${gdb_target_obs}" is not set.
* configure: Regenerate.
commit 0a9b5162bf77945639d4995dee9ca804da3aee75
Author: Andreas Schwab <schwab@suse.de>
Date: Mon Mar 15 16:35:28 2010 +0000
* configure.srv: Fix typo setting srv_regobj.
commit cc3e71651e2fd0168a2d3dd4efc2d3e15fd508dd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Mar 15 09:31:30 2010 +0000
gdb/
* symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
and ".sdynbss". Update the comment.
commit 43e112ddbb339de9371e3397521d3a958e5d1aea
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Mar 15 07:14:25 2010 +0000
sim: rename bool argument to avoid stdbool clash
Including stdbool.h before hw-properties.h results in a build error due
to the hw_add_boolean_property function having an argument named "bool"
in its prototype. The source file has already be renamed to not use
this ("boolean" instead), so match the header to the source.
commit 045bbd33e4441627f70f2f28857ee1522eafb6ca
Author: Jie Zhang <jie.zhang@analog.com>
Date: Mon Mar 15 03:48:46 2010 +0000
* MAINTAINERS: Update my email address.
commit 5222346fc63842e2fc54a4f325991c3df106bf8f
Author: Jie Zhang <jie.zhang@analog.com>
Date: Mon Mar 15 03:43:13 2010 +0000
* lib/mi-support.exp (mi_gdb_target_load): Delete unused timeout var.
Declare and use new loadtimeout variable.
commit 7a16cfcbc00d3e3b2024e24e6b8c1c36540f0f79
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Mar 15 02:57:57 2010 +0000
* gdb.base/printcmds.exp: Use gdb_file_cmd instead of gdb_load.
Use gdb_load later.
commit bcd841deb53d23e6bcf2095013b8ea5f88392685
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Mar 15 02:42:50 2010 +0000
* gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
commit 8892a2753eccfb3b46ed40e9b4d7c5c61aee5efa
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Mar 15 01:59:56 2010 +0000
* elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
* elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
commit e8098eb45a1beb730dc4ce5cd09660bad91496b9
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Mar 15 00:31:16 2010 +0000
* linux-low.c (fetch_register): Avoid passing a non string literal
format to `error'.
(usr_store_inferior_registers): Ditto.
commit afbf08456c366e0895e1b196768b046ac5e5e68c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Mar 15 00:00:03 2010 +0000
*** empty log message ***
commit 3fe454dc46a84a39d3444d620aaa28f1c67ab266
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Mar 14 23:00:54 2010 +0000
daily update
commit 0758e3257353d889c65f67823329925b5d4cab54
Author: Daniel Jacobowitz <dan@debian.org>
Date: Sun Mar 14 22:38:37 2010 +0000
* charset.c [USE_WIN32API]: Include <windows.h>.
(_initialize_charset): Correct type of w32_host_default_charset.
commit 430356f7da77d6a8c9eadde0a22d21b1def7eb60
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Mar 14 19:34:47 2010 +0000
* linux-low.c (linux_write_memory): Bail out early if peeking
memory failed.
commit a91198a94c644c996a766a208bac1a373b2abd7b
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Mar 14 18:46:40 2010 +0000
* linux-low.h (struct lwp_info): New fields
`stopped_by_watchpoint' and `stopped_data_address'.
* linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
here, and cache them in the lwp object.
(wait_for_sigstop): Check stopped_by_watchpoint lwp field
directly.
(linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
field.
(linux_stopped_by_watchpoint): Rewrite.
(linux_stopped_data_address): Rewrite.
commit ea9821c276ba217f4649463379fa091fb49affb2
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Mar 14 17:46:50 2010 +0000
* gdb.base/solib-disc.c (main): Make format of fprintf a string
literal. Add missing endlines to prints to stderr.
commit 9689e45a485dd8fb7e2d6bdbb0192548fe12c7fb
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Mar 14 17:35:20 2010 +0000
* infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
commit c29bb8ea06c5fb6b713db4747318dc787eb06e3a
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Sun Mar 14 16:00:37 2010 +0000
Merge from gcc:
2010-01-11 Richard Guenther <rguenther@suse.de>
PR lto/41569
* Makefile.def (all-lto-plugin): Depend on all-gcc.
* Makefile.in: Regenerated.
commit 1633b7e7767d612d6b7fa9dd552282df3ffe7b5b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Mar 14 07:05:35 2010 +0000
bfd/
PR ld/11378
* elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
* elf64-ppc.c (call_check_done): Define.
(ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
(ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
(ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
(toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
Simplify return logic. Iterate over all .init and .fini fragments
by recursion. Set makes_toc_func_call here..
(ppc64_elf_next_input_section): ..rather than here.
(check_pasted_section, ppc64_elf_check_init_fini): New functions.
ld/
PR ld/11378
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
commit 8be4bf46ab274f40ce02e7c950726ac10fc02194
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Mar 14 00:00:03 2010 +0000
*** empty log message ***
commit 434e0dfa46139c9a485c677a18dda849ed4b747c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Mar 13 23:00:48 2010 +0000
daily update
commit 02cb9906833f7a112100ac1a3e654cb45569ba77
Author: Tom Tromey <tromey@redhat.com>
Date: Sat Mar 13 00:27:11 2010 +0000
gdb
PR c++/9708:
* dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
in a lexical block does not need a namespace.
(new_symbol) <DW_TAG_variable>: Put extern variables on
list_in_scope in all cases.
gdb/testsuite
PR c++/9708:
* gdb.cp/m-static.exp: Add regression test.
* gdb.cp/m-static.cc (method): New method.
(main): Call it.
commit a0569be1a33498fd93f14aaa899cc121fce88ea7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Mar 13 00:00:33 2010 +0000
*** empty log message ***
commit d45053e897cd4a9b64820582243933fd4bc03827
Author: Stan Shebs <shebs@apple.com>
Date: Fri Mar 12 23:13:18 2010 +0000
2010-03-12 Stan Shebs <stan@codesourcery.com>
* ax-gdb.c (gen_expr): Add shift expressions.
(gen_expr_binop_rest): Ditto.
commit 61d21c9c0a3cb8cb3c9a0ee393e538711d68741a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Mar 12 23:00:42 2010 +0000
daily update
commit 4f912c53a0bf4307dc02bba43cbbbe904ede6128
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Mar 12 22:31:15 2010 +0000
PR ld/11375
* elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
function descriptor symbol if there is one, not just for plt stubs.
(ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
commit 77f560b8814240fbf7770d5c238ce660ef1eadbe
Author: swagiaal <swagiaal>
Date: Fri Mar 12 21:13:15 2010 +0000
2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
* buildsym.c (finish_block): Reset using_directives pointer
after block initialization.
2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/gdb2384-base.h: Created 'namespace B'.
* gdb.cp/gdb2384-base.cc: Use 'namespace B'.
commit b630b63f466313ca3922bb47511886256a3ca199
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 12 21:07:51 2010 +0000
gdb/testsuite/
* lib/gdb.exp (gdb_test_multiple): Handle -timeout.
commit d414e6ea585b19e7089f681791fada37ccc8f546
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 12 19:17:01 2010 +0000
gdb/testsuite/
* lib/gdb.exp (skip_stl_tests): New.
(gdb_compile): Symbian needs -ldl.
(shlib_target_file): New.
(shlib_symbol_file): New.
(gdb_load_shlibs): Use shlib_target_file.
* lib/mi-support.exp (mi_load_shlibs): Use shlib_target_file.
* gdb.cp/exception.exp: Use skip_stl_tests.
* gdb.cp/bs15503.exp: Use skip_stl_tests. Use untested.
* gdb.cp/try_catch.exp: Use skip_stl_tests.
* gdb.cp/mb-templates.exp: Ditto.
* gdb.base/commands.exp: Relax regexes.
* gdb.base/watchpoint-solib.exp: Don't skip on symbian. Use
shlib_target_file and shlib_symbol_file.
* gdb.base/maint.exp: Allow lowercase t. Allow .rodata in
sections.
* gdb.base/ending-run.exp: Accept E32Main for symbian.
* gdb.base/solib-disc.exp: Use
shlib_target_file and shlib_symbol_file.
* gdb.base/unload.exp: Don't skip on symbian. Use
shlib_target_file and shlib_symbol_file.
* gdb.base/list.exp: Check use_gdb_stub instead of is_remote.
commit 837e11c081d1342e72b3525b9a56329c6f34e967
Author: Stan Shebs <shebs@apple.com>
Date: Fri Mar 12 19:15:52 2010 +0000
2010-03-12 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
* gdb.texinfo (Tracepoint Actions): Clarify that while-stepping is
doing instruction stepping.
(Tracepoint Restrictions): New node.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 +
Makefile.def | 2 +-
Makefile.in | 18 +-
bfd/ChangeLog | 47 +++
bfd/elf.c | 2 +-
bfd/elf32-arm.c | 2 +-
bfd/elf64-ppc.c | 513 ++++++++++++++++++---------
bfd/elf64-ppc.h | 4 +
bfd/plugin.c | 4 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 135 +++++++
gdb/MAINTAINERS | 12 +-
gdb/ada-tasks.c | 13 +
gdb/ax-gdb.c | 317 ++++++++++++++---
gdb/breakpoint.c | 171 ++++-----
gdb/breakpoint.h | 15 +-
gdb/buildsym.c | 1 +
gdb/c-exp.y | 8 +
gdb/charset.c | 5 +-
gdb/configure | 4 +
gdb/configure.ac | 3 +
gdb/cp-namespace.c | 84 ++++-
gdb/cp-support.h | 17 +-
gdb/doc/ChangeLog | 7 +
gdb/doc/gdb.texinfo | 75 ++++-
gdb/dwarf2read.c | 67 +++-
gdb/eval.c | 2 +-
gdb/gdbserver/ChangeLog | 34 ++
gdb/gdbserver/configure.srv | 4 +-
gdb/gdbserver/linux-low.c | 96 ++++--
gdb/gdbserver/linux-low.h | 10 +
gdb/gdbserver/server.h | 30 ++
gdb/gdbserver/utils.c | 16 +
gdb/gdbtypes.h | 3 +-
gdb/infrun.c | 3 +-
gdb/linux-nat.c | 9 +-
gdb/linux-record.c | 4 +-
gdb/mi/mi-cmd-break.c | 53 +--
gdb/spu-tdep.c | 12 +-
gdb/symfile.c | 19 +-
gdb/symtab.c | 25 +-
gdb/testsuite/ChangeLog | 66 ++++
gdb/testsuite/gdb.base/commands.exp | 4 +-
gdb/testsuite/gdb.base/ending-run.exp | 4 +
gdb/testsuite/gdb.base/list.exp | 2 +-
gdb/testsuite/gdb.base/maint.exp | 5 +-
gdb/testsuite/gdb.base/printcmds.exp | 3 +-
gdb/testsuite/gdb.base/solib-disc.c | 4 +-
gdb/testsuite/gdb.base/solib-disc.exp | 4 +-
gdb/testsuite/gdb.base/unload.exp | 17 +-
gdb/testsuite/gdb.base/watchpoint-solib.exp | 9 +-
gdb/testsuite/gdb.cp/bs15503.exp | 4 +-
gdb/testsuite/gdb.cp/exception.exp | 2 +-
gdb/testsuite/gdb.cp/gdb2384-base.cc | 2 +
gdb/testsuite/gdb.cp/gdb2384-base.h | 4 +
gdb/testsuite/gdb.cp/m-static.cc | 11 +-
gdb/testsuite/gdb.cp/m-static.exp | 5 +
gdb/testsuite/gdb.cp/mb-templates.exp | 2 +-
gdb/testsuite/gdb.cp/nsusing.exp | 2 +-
gdb/testsuite/gdb.cp/shadow.cc | 6 +-
gdb/testsuite/gdb.cp/shadow.exp | 1 -
gdb/testsuite/gdb.cp/try_catch.exp | 2 +-
gdb/testsuite/gdb.cp/userdef.cc | 9 +
gdb/testsuite/gdb.cp/userdef.exp | 6 +-
gdb/testsuite/lib/gdb.exp | 48 +++-
gdb/testsuite/lib/mi-support.exp | 30 +-
gdb/valarith.c | 3 +-
gdb/valops.c | 4 +-
gdb/version.in | 2 +-
libiberty/ChangeLog | 4 +
libiberty/Makefile.in | 2 +-
sim/common/ChangeLog | 14 +
sim/common/hw-ports.c | 2 -
sim/common/hw-properties.c | 18 +-
sim/common/hw-properties.h | 2 +-
75 files changed, 1604 insertions(+), 555 deletions(-)
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 12f2049..3daf60d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-14 Joseph Myers <joseph@codesourcery.com>
+
+ Merge from gcc:
+ 2010-01-11 Richard Guenther <rguenther@suse.de>
+ PR lto/41569
+ * Makefile.def (all-lto-plugin): Depend on all-gcc.
+ * Makefile.in: Regenerated.
+
2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libstdc++/32499
diff --git a/Makefile.def b/Makefile.def
index ba23767..7dce699 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -352,7 +352,7 @@ dependencies = { module=all-fixincludes; on=all-libiberty; };
dependencies = { module=all-gnattools; on=all-target-libada; };
-dependencies = { module=all-lto-plugin; on=all-libiberty; };
+dependencies = { module=all-lto-plugin; on=all-gcc; };
dependencies = { module=configure-mpfr; on=all-gmp; };
dependencies = { module=configure-mpc; on=all-mpfr; };
diff --git a/Makefile.in b/Makefile.in
index c9ff0e5..93f66b6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2658,7 +2658,7 @@ local-distclean:
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
-rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
- -find . -name config.cache -exec rm -f {} \; 2>/dev/null
+ -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
local-maintainer-clean:
@echo "This command is intended for maintainers to use;"
@@ -57943,14 +57943,14 @@ all-stageprofile-libcpp: maybe-all-stageprofile-intl
all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
all-fixincludes: maybe-all-libiberty
all-gnattools: maybe-all-target-libada
-all-lto-plugin: maybe-all-libiberty
-
-all-stage1-lto-plugin: maybe-all-stage1-libiberty
-all-stage2-lto-plugin: maybe-all-stage2-libiberty
-all-stage3-lto-plugin: maybe-all-stage3-libiberty
-all-stage4-lto-plugin: maybe-all-stage4-libiberty
-all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
-all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
+all-lto-plugin: maybe-all-gcc
+
+all-stage1-lto-plugin: maybe-all-stage1-gcc
+all-stage2-lto-plugin: maybe-all-stage2-gcc
+all-stage3-lto-plugin: maybe-all-stage3-gcc
+all-stage4-lto-plugin: maybe-all-stage4-gcc
+all-stageprofile-lto-plugin: maybe-all-stageprofile-gcc
+all-stagefeedback-lto-plugin: maybe-all-stagefeedback-gcc
configure-mpfr: maybe-all-gmp
configure-stage1-mpfr: maybe-all-stage1-gmp
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 201e132..bcfae55 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,50 @@
+2010-03-17 Jie Zhang <jie@codesourcery.com>
+
+ * elf.c (assign_file_positions_for_load_sections): Avoid
+ overflow.
+
+2010-03-17 Alan Modra <amodra@gmail.com>
+
+ * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
+ proper type.
+
+2010-03-17 Alan Modra <amodra@gmail.com>
+
+ * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
+
+2010-03-16 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
+ (ppc64_elf_edit_toc): Set it here.
+ (ha_reloc_match): New function.
+ (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
+
+2010-03-15 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
+ * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
+
+2010-03-14 Alan Modra <amodra@gmail.com>
+
+ PR ld/11378
+ * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
+ * elf64-ppc.c (call_check_done): Define.
+ (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
+ (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
+ (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
+ (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
+ Simplify return logic. Iterate over all .init and .fini fragments
+ by recursion. Set makes_toc_func_call here..
+ (ppc64_elf_next_input_section): ..rather than here.
+ (check_pasted_section, ppc64_elf_check_init_fini): New functions.
+
+2010-03-13 Alan Modra <amodra@gmail.com>
+
+ PR ld/11375
+ * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
+ function descriptor symbol if there is one, not just for plt stubs.
+ (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
+
2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
diff --git a/bfd/elf.c b/bfd/elf.c
index dbb13d4..cee9b7a 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4452,7 +4452,7 @@ assign_file_positions_for_load_sections (bfd *abfd,
{
bfd_signed_vma adjust = sec->vma - (p->p_vaddr + p->p_memsz);
- if (adjust < 0)
+ if (sec->vma < p->p_vaddr + p->p_memsz)
{
(*_bfd_error_handler)
(_("%B: section %A vma 0x%lx overlaps previous sections"),
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index cc9ce59..eede7ec 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -4080,7 +4080,7 @@ cortex_a8_erratum_scan (bfd *input_bfd,
&& last_was_32bit
&& ! last_was_branch)
{
- bfd_signed_vma offset;
+ bfd_signed_vma offset = 0;
bfd_boolean force_target_arm = FALSE;
bfd_boolean force_target_thumb = FALSE;
bfd_vma target;
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index ffd37dd..b1527f9 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -3788,6 +3788,7 @@ struct ppc_link_hash_table
unsigned int do_multi_toc:1;
unsigned int multi_toc_needed:1;
unsigned int second_toc_pass:1;
+ unsigned int do_toc_opt:1;
/* Set on error. */
unsigned int stub_error:1;
@@ -3820,6 +3821,7 @@ struct ppc_link_hash_table
/* Recursion protection when determining above flag. */
#define call_check_in_progress sec_flg4
+#define call_check_done sec_flg5
/* Get the ppc64 ELF linker hash table from a link_info structure. */
@@ -4573,7 +4575,7 @@ ppc64_elf_add_symbol_hook (bfd *ibfd,
else if (ELF_ST_TYPE (isym->st_info) == STT_FUNC)
;
else if (*sec != NULL
- && strcmp (bfd_get_section_name (ibfd, *sec), ".opd") == 0)
+ && strcmp ((*sec)->name, ".opd") == 0)
isym->st_info = ELF_ST_INFO (ELF_ST_BIND (isym->st_info), STT_FUNC);
return TRUE;
@@ -4880,7 +4882,7 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
sreloc = NULL;
opd_sym_map = NULL;
- if (strcmp (bfd_get_section_name (abfd, sec), ".opd") == 0)
+ if (strcmp (sec->name, ".opd") == 0)
{
/* Garbage collection needs some extra help with .opd sections.
We don't want to necessarily keep everything referenced by
@@ -7881,7 +7883,9 @@ ppc64_elf_edit_toc (struct bfd_link_info *info)
{
bfd *ibfd;
struct adjust_toc_info toc_inf;
+ struct ppc_link_hash_table *htab = ppc_hash_table (info);
+ htab->do_toc_opt = 1;
toc_inf.global_toc_syms = TRUE;
for (ibfd = info->input_bfds; ibfd != NULL; ibfd = ibfd->link_next)
{
@@ -8273,6 +8277,16 @@ ppc64_elf_edit_toc (struct bfd_link_info *info)
return TRUE;
}
+/* Return true iff input section I references the TOC using
+ instructions limited to +/-32k offsets. */
+
+bfd_boolean
+ppc64_elf_has_small_toc_reloc (asection *i)
+{
+ return (is_ppc64_elf (i->owner)
+ && ppc64_elf_tdata (i->owner)->has_small_toc_reloc);
+}
+
/* Allocate space for one GOT entry. */
static void
@@ -8811,7 +8825,7 @@ ppc64_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
/* Strip this section if we don't need it; see the
comment below. */
}
- else if (CONST_STRNEQ (bfd_get_section_name (dynobj, s), ".rela"))
+ else if (CONST_STRNEQ (s->name, ".rela"))
{
if (s->size != 0)
{
@@ -8976,13 +8990,15 @@ ppc_type_of_stub (asection *input_sec,
struct ppc_link_hash_entry *fdh = h;
if (h->oh != NULL
&& h->oh->is_func_descriptor)
- fdh = ppc_follow_link (h->oh);
+ {
+ fdh = ppc_follow_link (h->oh);
+ *hash = fdh;
+ }
for (ent = fdh->elf.plt.plist; ent != NULL; ent = ent->next)
if (ent->addend == rel->r_addend
&& ent->plt.offset != (bfd_vma) -1)
{
- *hash = fdh;
*plt_ent = ent;
return ppc_stub_plt_call;
}
@@ -10123,9 +10139,6 @@ ppc64_elf_finish_multitoc_partition (struct bfd_link_info *info)
{
struct ppc_link_hash_table *htab = ppc_hash_table (info);
- if (htab == NULL)
- return;
-
/* After the second pass, toc_curr tracks the TOC offset used
for code sections below in ppc64_elf_next_input_section. */
htab->toc_curr = TOC_BASE_OFF;
@@ -10142,10 +10155,10 @@ ppc64_elf_finish_multitoc_partition (struct bfd_link_info *info)
static int
toc_adjusting_stub_needed (struct bfd_link_info *info, asection *isec)
{
- Elf_Internal_Rela *relstart, *rel;
- Elf_Internal_Sym *local_syms;
int ret;
- struct ppc_link_hash_table *htab;
+
+ /* Mark this section as checked. */
+ isec->call_check_done = 1;
/* We know none of our code bearing sections will need toc stubs. */
if ((isec->flags & SEC_LINKER_CREATED) != 0)
@@ -10157,179 +10170,189 @@ toc_adjusting_stub_needed (struct bfd_link_info *info, asection *isec)
if (isec->output_section == NULL)
return 0;
- if (isec->reloc_count == 0)
- return 0;
-
- relstart = _bfd_elf_link_read_relocs (isec->owner, isec, NULL, NULL,
- info->keep_memory);
- if (relstart == NULL)
- return -1;
-
- /* Look for branches to outside of this section. */
- local_syms = NULL;
ret = 0;
- htab = ppc_hash_table (info);
- if (htab == NULL)
- return -1;
-
- for (rel = relstart; rel < relstart + isec->reloc_count; ++rel)
+ if (isec->reloc_count != 0)
{
- enum elf_ppc64_reloc_type r_type;
- unsigned long r_symndx;
- struct elf_link_hash_entry *h;
- struct ppc_link_hash_entry *eh;
- Elf_Internal_Sym *sym;
- asection *sym_sec;
- struct _opd_sec_data *opd;
- bfd_vma sym_value;
- bfd_vma dest;
-
- r_type = ELF64_R_TYPE (rel->r_info);
- if (r_type != R_PPC64_REL24
- && r_type != R_PPC64_REL14
- && r_type != R_PPC64_REL14_BRTAKEN
- && r_type != R_PPC64_REL14_BRNTAKEN)
- continue;
-
- r_symndx = ELF64_R_SYM (rel->r_info);
- if (!get_sym_h (&h, &sym, &sym_sec, NULL, &local_syms, r_symndx,
- isec->owner))
- {
- ret = -1;
- break;
- }
-
- /* Calls to dynamic lib functions go through a plt call stub
- that uses r2. */
- eh = (struct ppc_link_hash_entry *) h;
- if (eh != NULL
- && (eh->elf.plt.plist != NULL
- || (eh->oh != NULL
- && ppc_follow_link (eh->oh)->elf.plt.plist != NULL)))
- {
- ret = 1;
- break;
- }
+ Elf_Internal_Rela *relstart, *rel;
+ Elf_Internal_Sym *local_syms;
+ struct ppc_link_hash_table *htab;
- if (sym_sec == NULL)
- /* Ignore other undefined symbols. */
- continue;
+ relstart = _bfd_elf_link_read_relocs (isec->owner, isec, NULL, NULL,
+ info->keep_memory);
+ if (relstart == NULL)
+ return -1;
- /* Assume branches to other sections not included in the link need
- stubs too, to cover -R and absolute syms. */
- if (sym_sec->output_section == NULL)
- {
- ret = 1;
- break;
- }
+ /* Look for branches to outside of this section. */
+ local_syms = NULL;
+ htab = ppc_hash_table (info);
+ if (htab == NULL)
+ return -1;
- if (h == NULL)
- sym_value = sym->st_value;
- else
+ for (rel = relstart; rel < relstart + isec->reloc_count; ++rel)
{
- if (h->root.type != bfd_link_hash_defined
- && h->root.type != bfd_link_hash_defweak)
- abort ();
- sym_value = h->root.u.def.value;
- }
- sym_value += rel->r_addend;
+ enum elf_ppc64_reloc_type r_type;
+ unsigned long r_symndx;
+ struct elf_link_hash_entry *h;
+ struct ppc_link_hash_entry *eh;
+ Elf_Internal_Sym *sym;
+ asection *sym_sec;
+ struct _opd_sec_data *opd;
+ bfd_vma sym_value;
+ bfd_vma dest;
+
+ r_type = ELF64_R_TYPE (rel->r_info);
+ if (r_type != R_PPC64_REL24
+ && r_type != R_PPC64_REL14
+ && r_type != R_PPC64_REL14_BRTAKEN
+ && r_type != R_PPC64_REL14_BRNTAKEN)
+ continue;
- /* If this branch reloc uses an opd sym, find the code section. */
- opd = get_opd_info (sym_sec);
- if (opd != NULL)
- {
- if (h == NULL && opd->adjust != NULL)
+ r_symndx = ELF64_R_SYM (rel->r_info);
+ if (!get_sym_h (&h, &sym, &sym_sec, NULL, &local_syms, r_symndx,
+ isec->owner))
{
- long adjust;
+ ret = -1;
+ break;
+ }
- adjust = opd->adjust[sym->st_value / 8];
- if (adjust == -1)
- /* Assume deleted functions won't ever be called. */
- continue;
- sym_value += adjust;
+ /* Calls to dynamic lib functions go through a plt call stub
+ that uses r2. */
+ eh = (struct ppc_link_hash_entry *) h;
+ if (eh != NULL
+ && (eh->elf.plt.plist != NULL
+ || (eh->oh != NULL
+ && ppc_follow_link (eh->oh)->elf.plt.plist != NULL)))
+ {
+ ret = 1;
+ break;
}
- dest = opd_entry_value (sym_sec, sym_value, &sym_sec, NULL);
- if (dest == (bfd_vma) -1)
+ if (sym_sec == NULL)
+ /* Ignore other undefined symbols. */
continue;
- }
- else
- dest = (sym_value
- + sym_sec->output_offset
- + sym_sec->output_section->vma);
- /* Ignore branch to self. */
- if (sym_sec == isec)
- continue;
+ /* Assume branches to other sections not included in the
+ link need stubs too, to cover -R and absolute syms. */
+ if (sym_sec->output_section == NULL)
+ {
+ ret = 1;
+ break;
+ }
- /* If the called function uses the toc, we need a stub. */
- if (sym_sec->has_toc_reloc
- || sym_sec->makes_toc_func_call)
- {
- ret = 1;
- break;
- }
+ if (h == NULL)
+ sym_value = sym->st_value;
+ else
+ {
+ if (h->root.type != bfd_link_hash_defined
+ && h->root.type != bfd_link_hash_defweak)
+ abort ();
+ sym_value = h->root.u.def.value;
+ }
+ sym_value += rel->r_addend;
- /* Assume any branch that needs a long branch stub might in fact
- need a plt_branch stub. A plt_branch stub uses r2. */
- else if (dest - (isec->output_offset
- + isec->output_section->vma
- + rel->r_offset) + (1 << 25) >= (2 << 25))
- {
- ret = 1;
- break;
- }
+ /* If this branch reloc uses an opd sym, find the code section. */
+ opd = get_opd_info (sym_sec);
+ if (opd != NULL)
+ {
+ if (h == NULL && opd->adjust != NULL)
+ {
+ long adjust;
- /* If calling back to a section in the process of being tested, we
- can't say for sure that no toc adjusting stubs are needed, so
- don't return zero. */
- else if (sym_sec->call_check_in_progress)
- ret = 2;
+ adjust = opd->adjust[sym->st_value / 8];
+ if (adjust == -1)
+ /* Assume deleted functions won't ever be called. */
+ continue;
+ sym_value += adjust;
+ }
- /* Branches to another section that itself doesn't have any TOC
- references are OK. Recursively call ourselves to check. */
- else if (sym_sec->id <= htab->top_id
- && htab->stub_group[sym_sec->id].toc_off == 0)
- {
- int recur;
+ dest = opd_entry_value (sym_sec, sym_value, &sym_sec, NULL);
+ if (dest == (bfd_vma) -1)
+ continue;
+ }
+ else
+ dest = (sym_value
+ + sym_sec->output_offset
+ + sym_sec->output_section->vma);
- /* Mark current section as indeterminate, so that other
- sections that call back to current won't be marked as
- known. */
- isec->call_check_in_progress = 1;
- recur = toc_adjusting_stub_needed (info, sym_sec);
- isec->call_check_in_progress = 0;
+ /* Ignore branch to self. */
+ if (sym_sec == isec)
+ continue;
- if (recur < 0)
+ /* If the called function uses the toc, we need a stub. */
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-03-12 18:35 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-03-12 18:35 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 4a3f8e3fbf71cb4369d985e6a98b0db10040ab36 (commit)
via 49f8d1c24c639d891f58a3b9feda425833b702fb (commit)
via 9ee1f0d1e3963d410df9d27cd57c11acc92b5af8 (commit)
via 353762204c8de7f70ad90afa25f9539f8b6be83d (commit)
via a363667ef6a448f1362c4e1de048e0b2b52b6a05 (commit)
via ae2e976476dfe2c7e01b34d31826eb46dd55c945 (commit)
via 5855954454f19a801f76bbf7baafd11a693c5d33 (commit)
via 043e5eaafd16dec9eb216f138b2c2d35269d3b57 (commit)
via ac0e061653f12e6efebaece55b71fc361ee7033d (commit)
via 3121ab4f8263680620099055999818e93e54e8fd (commit)
via 7ebe1c43a3bf0694a9dee87580fa3d192a4769ab (commit)
via a2544b6d0024147ad7dd01fd4dad0403c761bb2f (commit)
via 264e6edfb36d5c827cd0918c1c500dba983b6fca (commit)
from 302ba51bb83ba461b5084cde82076eb69e7506f6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 4a3f8e3fbf71cb4369d985e6a98b0db10040ab36
Merge: 302ba51bb83ba461b5084cde82076eb69e7506f6 49f8d1c24c639d891f58a3b9feda425833b702fb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Mar 12 19:35:50 2010 +0100
Merge remote branch 'gdb/master'
commit 49f8d1c24c639d891f58a3b9feda425833b702fb
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Mar 12 15:12:34 2010 +0000
Restore sp for x86.
2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
* amd64-tdep.c (amd64_word_names): Replace "sp" with "".
* i386-tdep.c (i386_word_names): Likewise.
commit 9ee1f0d1e3963d410df9d27cd57c11acc92b5af8
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 12 04:04:39 2010 +0000
* gdb.trace/backtrace.exp: Adjust for x86 and x86_64.
* gdb.trace/report.exp: Adjust for x86 and x86_64.
Issue a tfind end before looking for a tracepoint frame.
* gdb.trace/tfind.exp: Adjust tstatus output.
Adjust disassembly output.
* gdb.trace/while-dyn.exp: Adjust for x86 and x86_64.
commit 353762204c8de7f70ad90afa25f9539f8b6be83d
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 12 03:54:45 2010 +0000
* target.c (memory_xfer_partial): Don't use the stack cache if
inspecting trace frames.
* tracepoint.c (finish_tfind_command): Invalidate the target
dcache.
commit a363667ef6a448f1362c4e1de048e0b2b52b6a05
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Mar 12 00:01:04 2010 +0000
*** empty log message ***
commit ae2e976476dfe2c7e01b34d31826eb46dd55c945
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Mar 11 23:00:37 2010 +0000
daily update
commit 5855954454f19a801f76bbf7baafd11a693c5d33
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Mar 11 22:07:00 2010 +0000
gdb/
* solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
for the PIC displacement, print also the displacement value.
(svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
gdb/testsuite/
* gdb.base/break-interp.exp: Create new displacement parameter value
for the test_ld calls.
(reach): New parameter displacement, verify its content. New push of
pf_prefix "reach-$func:". Import global expect_out.
(test_core): New parameter displacement, verify its content. New push
of pf_prefix "core:". New command "set verbose on". Import global
expect_out.
(test_attach): New parameter displacement, verify its content. New
push of pf_prefix "attach:". New command "set verbose on". Import
global expect_out.
(test_ld): New parameter displacement, pass it to the reach, test_core
and test_attach calls and verify its content in the "ld.so exit" test.
* gdb.base/prelink.exp: Remove gdb_exit and final return.
(prelink): Update expected text, use gdb_test.
commit 043e5eaafd16dec9eb216f138b2c2d35269d3b57
Author: Kevin Buettner <kevinb@redhat.com>
Date: Thu Mar 11 03:45:48 2010 +0000
* remote-mips.c (close_ports, mips_initialize_cleanups)
(mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
(ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
(mips_stopped_by_watchpoint, send_srec, pmon_checkset)
(pmon_make_fastrec, pmon_check_ack, mips_expect_download)
(pmon_check_entry_address, pmon_check_total, pmon_end_download)
(pmon_download, pmon_load_fast, _initialize_remote_mips): Add
comments describing each of these functions.
(mips_enter_debug, mips_exit_debug, common_open)
(mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
blank line after the comment describing the function.
commit ac0e061653f12e6efebaece55b71fc361ee7033d
Author: Doug Evans <dje@google.com>
Date: Thu Mar 11 00:20:29 2010 +0000
* gdb.base/checkpoint.exp: Fix comment.
Lengthen timeout while doing >600 checkpoints test.
Rename duplicate "kill all one" test to keep test names unique.
commit 3121ab4f8263680620099055999818e93e54e8fd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 11 00:00:03 2010 +0000
*** empty log message ***
commit 7ebe1c43a3bf0694a9dee87580fa3d192a4769ab
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Mar 10 23:00:30 2010 +0000
daily update
commit a2544b6d0024147ad7dd01fd4dad0403c761bb2f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Mar 10 20:55:41 2010 +0000
gdb/
* solib-svr4.c (svr4_exec_displacement): Return now success, new
parameter displacementp. Update comment.
(svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
element exists. Return if svr4_exec_displacement was not successful.
Update comment.
commit 264e6edfb36d5c827cd0918c1c500dba983b6fca
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Mar 10 20:50:48 2010 +0000
gdb/
* solib-svr4.c (read_program_header): Support type == -1 to read
all program headers.
(read_program_headers_from_bfd): New function.
(svr4_static_exec_displacement): Remove and move the comment ...
(svr4_exec_displacement): ... here. Remove variable found. New
variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
targets using read_program_headers_from_bfd. Remove the call of
svr4_static_exec_displacement.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 53 ++++++++
gdb/amd64-tdep.c | 2 +-
gdb/i386-tdep.c | 2 +-
gdb/remote-mips.c | 117 +++++++++++++++++
gdb/solib-svr4.c | 213 +++++++++++++++++++++----------
gdb/target.c | 5 +
gdb/testsuite/ChangeLog | 32 +++++
gdb/testsuite/gdb.base/break-interp.exp | 204 ++++++++++++++++++++++++++----
gdb/testsuite/gdb.base/checkpoint.exp | 12 ++-
gdb/testsuite/gdb.base/prelink.exp | 13 +--
gdb/testsuite/gdb.trace/backtrace.exp | 15 ++-
gdb/testsuite/gdb.trace/report.exp | 30 ++++-
gdb/testsuite/gdb.trace/tfind.exp | 5 +-
gdb/testsuite/gdb.trace/while-dyn.exp | 10 ++-
gdb/tracepoint.c | 1 +
gdb/version.in | 2 +-
17 files changed, 600 insertions(+), 118 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index c6d5737..570604d 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100310
+#define BFD_VERSION_DATE 20100312
#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 a90f0a9..d49b5c0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,56 @@
+2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
+ * i386-tdep.c (i386_word_names): Likewise.
+
+2010-03-12 Pedro Alves <pedro@codesourcery.com>
+
+ * target.c (memory_xfer_partial): Don't use the stack cache if
+ inspecting trace frames.
+ * tracepoint.c (finish_tfind_command): Invalidate the target
+ dcache.
+
+2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
+ for the PIC displacement, print also the displacement value.
+ (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
+
+2010-03-10 Kevin Buettner <kevinb@redhat.com>
+
+ * remote-mips.c (close_ports, mips_initialize_cleanups)
+ (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
+ (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
+ (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
+ (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
+ (pmon_check_entry_address, pmon_check_total, pmon_end_download)
+ (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
+ comments describing each of these functions.
+ (mips_enter_debug, mips_exit_debug, common_open)
+ (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
+ blank line after the comment describing the function.
+
+2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (svr4_exec_displacement): Return now success, new
+ parameter displacementp. Update comment.
+ (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
+ element exists. Return if svr4_exec_displacement was not successful.
+ Update comment.
+
+2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Daniel Jacobowitz <dan@codesourcery.com>
+
+ * solib-svr4.c (read_program_header): Support type == -1 to read
+ all program headers.
+ (read_program_headers_from_bfd): New function.
+ (svr4_static_exec_displacement): Remove and move the comment ...
+ (svr4_exec_displacement): ... here. Remove variable found. New
+ variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
+ alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
+ targets using read_program_headers_from_bfd. Remove the call of
+ svr4_static_exec_displacement.
+
2010-03-10 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (struct pubnames_header): Remove.
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 8c41a8a..e5cfa71 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -222,7 +222,7 @@ static const char *amd64_byte_names[] =
static const char *amd64_word_names[] =
{
- "ax", "bx", "cx", "dx", "si", "di", "bp", "sp",
+ "ax", "bx", "cx", "dx", "si", "di", "bp", "",
"r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w"
};
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index f386237..83275ac 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -94,7 +94,7 @@ static const char *i386_byte_names[] =
static const char *i386_word_names[] =
{
"ax", "cx", "dx", "bx",
- "sp", "bp", "si", "di"
+ "", "bp", "si", "di"
};
/* MMX register? */
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index b763175..3e12365 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -451,6 +451,9 @@ static int monitor_warnings;
inferior_ptid. */
static ptid_t remote_mips_ptid;
+/* Close any ports which might be open. Reset certain globals indicating
+ the state of those ports. */
+
static void
close_ports (void)
{
@@ -1290,18 +1293,25 @@ mips_request (int cmd,
return rresponse;
}
+/* Cleanup associated with mips_initialize(). */
+
static void
mips_initialize_cleanups (void *arg)
{
mips_initializing = 0;
}
+/* Cleanup associated with mips_exit_debug(). */
+
static void
mips_exit_cleanups (void *arg)
{
mips_exiting = 0;
}
+/* Send a command and wait for that command to be echoed back. Wait,
+ too, for the following prompt. */
+
static void
mips_send_command (const char *cmd, int prompt)
{
@@ -1313,6 +1323,7 @@ mips_send_command (const char *cmd, int prompt)
}
/* Enter remote (dbx) debug mode: */
+
static void
mips_enter_debug (void)
{
@@ -1343,6 +1354,7 @@ mips_enter_debug (void)
}
/* Exit remote (dbx) debug mode, returning to the monitor prompt: */
+
static int
mips_exit_debug (void)
{
@@ -1505,6 +1517,7 @@ mips_initialize (void)
}
/* Open a connection to the remote board. */
+
static void
common_open (struct target_ops *ops, char *name, int from_tty,
enum mips_monitor_type new_monitor,
@@ -1629,6 +1642,8 @@ device is attached to the target board (e.g., /dev/ttya).\n"
xfree (serial_port_name);
}
+/* Open a connection to an IDT board. */
+
static void
mips_open (char *name, int from_tty)
{
@@ -1652,12 +1667,16 @@ mips_open (char *name, int from_tty)
common_open (&mips_ops, name, from_tty, MON_IDT, monitor_prompt);
}
+/* Open a connection to a PMON board. */
+
static void
pmon_open (char *name, int from_tty)
{
common_open (&pmon_ops, name, from_tty, MON_PMON, "PMON> ");
}
+/* Open a connection to a DDB board. */
+
static void
ddb_open (char *name, int from_tty)
{
@@ -1672,6 +1691,8 @@ rockhopper_open (char *name, int from_tty)
common_open (&rockhopper_ops, name, from_tty, MON_ROCKHOPPER, "NEC01>");
}
+/* Open a connection to an LSI board. */
+
static void
lsi_open (char *name, int from_tty)
{
@@ -1735,6 +1756,7 @@ mips_resume (struct target_ops *ops,
/* Return the signal corresponding to SIG, where SIG is the number which
the MIPS protocol uses for the signal. */
+
static enum target_signal
mips_signal_from_protocol (int sig)
{
@@ -2324,6 +2346,8 @@ mips_insert_breakpoint (struct gdbarch *gdbarch,
return memory_insert_breakpoint (gdbarch, bp_tgt);
}
+/* Remove a breakpoint. */
+
static int
mips_remove_breakpoint (struct gdbarch *gdbarch,
struct bp_target_info *bp_tgt)
@@ -2382,6 +2406,8 @@ mips_insert_watchpoint (CORE_ADDR addr, int len, int type)
return 0;
}
+/* Remove a watchpoint. */
+
int
mips_remove_watchpoint (CORE_ADDR addr, int len, int type)
{
@@ -2391,6 +2417,9 @@ mips_remove_watchpoint (CORE_ADDR addr, int len, int type)
return 0;
}
+/* Test to see if a watchpoint has been hit. Return 1 if so; return 0,
+ if not. */
+
int
mips_stopped_by_watchpoint (void)
{
@@ -2685,6 +2714,11 @@ mips_common_breakpoint (%s): Got error: 0x%x\n",
return 0;
}
\f
+/* Send one S record as specified by SREC of length LEN, starting
+ at ADDR. Note, however, that ADDR is not used except to provide
+ a useful message to the user in the event that a NACK is received
+ from the board. */
+
static void
send_srec (char *srec, int len, CORE_ADDR addr)
{
@@ -2905,6 +2939,7 @@ static char encoding[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01
at a time (range 0..63). Keep a checksum if required (passed
pointer non-NULL). The function returns the number of encoded
characters written into the buffer. */
+
static int
pmon_makeb64 (unsigned long v, char *p, int n, int *chksum)
{
@@ -2949,6 +2984,7 @@ pmon_makeb64 (unsigned long v, char *p, int n, int *chksum)
/* Shorthand function (that could be in-lined) to output the zero-fill
escape sequence into the data stream. */
+
static int
pmon_zeroset (int recsize, char **buff, int *amount, unsigned int *chksum)
{
@@ -2961,6 +2997,20 @@ pmon_zeroset (int recsize, char **buff, int *amount, unsigned int *chksum)
return (recsize + count + 2);
}
+/* Add the checksum specified by *VALUE to end of the record under
+ construction. *BUF specifies the location at which to begin
+ writing characters comprising the checksum information. RECSIZE
+ specifies the size of the record constructed thus far. (A trailing
+ NUL character may be present in the buffer holding the record, but
+ the record size does not include this character.)
+
+ Return the total size of the record after adding the checksum escape,
+ the checksum itself, and the trailing newline.
+
+ The checksum specified by *VALUE is zeroed out prior to returning.
+ Additionally, *BUF is updated to refer to the location just beyond
+ the record elements added by this call. */
+
static int
pmon_checkset (int recsize, char **buff, int *value)
{
@@ -2991,6 +3041,32 @@ pmon_checkset (int recsize, char **buff, int *value)
/* NOTE: This constant depends on the monitor being used. This value
is for PMON 5.x on the Cogent Vr4300 board. */
+/* Create a FastLoad format record.
+
+ *OUTBUF is the buffer into which a FastLoad formatted record is
+ written. On return, the pointer position represented by *OUTBUF
+ is updated to point at the end of the data, i.e. the next position
+ in the buffer that may be written. No attempt is made to NUL-
+ terminate this portion of the record written to the buffer.
+
+ INBUF contains the binary input data from which the FastLoad
+ formatted record will be built. *INPTR is an index into this
+ buffer. *INPTR is updated as the input is consumed. Thus, on
+ return, the caller has access to the position of the next input
+ byte yet to be processed. INAMOUNT is the size, in bytes, of the
+ input data.
+
+ *RECSIZE will be written with the size of the record written to the
+ output buffer prior to returning. This size does not include a
+ NUL-termination byte as none is written to the output buffer.
+
+ *CSUM is the output buffer checksum. It is updated as data is
+ written to the output buffer.
+
+ *ZEROFILL is the current number of 3-byte zero sequences that have
+ been encountered. It is both an input and an output to this
+ function. */
+
static void
pmon_make_fastrec (char **outbuf, unsigned char *inbuf, int *inptr,
int inamount, int *recsize, unsigned int *csum,
@@ -3048,6 +3124,10 @@ pmon_make_fastrec (char **outbuf, unsigned char *inbuf, int *inptr,
return;
}
+/* Attempt to read an ACK. If an ACK is not read in a timely manner,
+ output the message specified by MESG. Return -1 for failure, 0
+ for success. */
+
static int
pmon_check_ack (char *mesg)
{
@@ -3090,6 +3170,12 @@ pmon_start_download (void)
}
}
+/* Look for the string specified by STRING sent from the target board
+ during a download operation. If the string in question is not
+ seen, output an error message, remove the temporary file, if
+ appropriate, and return 0. Otherwise, return 1 to indicate
+ success. */
+
static int
mips_expect_download (char *string)
{
@@ -3104,6 +3190,15 @@ mips_expect_download (char *string)
return 1;
}
+/* Look for messages from the target board associated with the entry
+ address.
+
+ NOTE: This function doesn't indicate success or failure, so we
+ have no way to determine whether or not the output from the board
+ was correctly seen. However, given that other items are checked
+ after this, it seems unlikely that those checks will pass if this
+ check doesn't first (silently) pass. */
+
static void
pmon_check_entry_address (char *entry_address, int final)
{
@@ -3114,6 +3209,10 @@ pmon_check_entry_address (char *entry_address, int final)
mips_expect ("\r\n");
}
+/* Look for messages from the target board showing the total number of
+ bytes downloaded to the board. Output 1 for success if the tail
+ end of the message was read correctly, 0 otherwise. */
+
static int
pmon_check_total (int bintotal)
{
@@ -3124,6 +3223,13 @@ pmon_check_total (int bintotal)
return mips_expect_download (" bytes\r\n");
}
+/* Look for the termination messages associated with the end of
+ a download to the board.
+
+ Also, when `tftp_in_use' is set, issue the load command to the
+ board causing the file to be transferred. (This is done prior
+ to looking for the above mentioned termination messages.) */
+
static void
pmon_end_download (int final, int bintotal)
{
@@ -3190,6 +3296,10 @@ pmon_end_download (int final, int bintotal)
remove (tftp_localname); /* Remove temporary file */
}
+/* Write the buffer specified by BUFFER of length LENGTH to either
+ the board or the temporary file that'll eventually be transferred
+ to the board. */
+
static void
pmon_download (char *buffer, int length)
{
@@ -3199,6 +3309,9 @@ pmon_download (char *buffer, int length)
serial_write (udp_in_use ? udp_desc : mips_desc, buffer, length);
}
+/* Open object or executable file, FILE, and send it to the board
+ using the FastLoad format. */
+
static void
pmon_load_fast (char *file)
{
@@ -3430,6 +3543,10 @@ pmon_command (char *args, int from_tty)
\f
extern initialize_file_ftype _initialize_remote_mips; /* -Wmissing-prototypes */
+/* Initialize mips_ops, lsi_ops, ddb_ops, pmon_ops, and rockhopper_ops.
+ Create target specific commands and perform other initializations
+ specific to this file. */
+
void
_initialize_remote_mips (void)
{
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index d4e8a85..bae7200 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -243,12 +243,10 @@ LM_ADDR_CHECK (struct so_list *so, bfd *abfd)
l_addr = l_dynaddr - dynaddr;
if (info_verbose)
- {
- warning (_(".dynamic section for \"%s\" "
- "is not at the expected address"), so->so_name);
- warning (_("difference appears to be caused by prelink, "
- "adjusting expectations"));
- }
+ printf_unfiltered (_("Using PIC (Position Independent Code) "
+ "prelink displacement %s for \"%s\".\n"),
+ paddress (target_gdbarch, l_addr),
+ so->so_name);
}
else
warning (_(".dynamic section for \"%s\" "
@@ -451,6 +449,9 @@ bfd_lookup_symbol (bfd *abfd, char *symname)
/* Read program header TYPE from inferior memory. The header is found
by scanning the OS auxillary vector.
+ If TYPE == -1, return the program headers instead of the contents of
+ one program header.
+
Return a pointer to allocated memory holding the program header contents,
or NULL on failure. If sucessful, and unless P_SECT_SIZE is NULL, the
size of those contents is returned to P_SECT_SIZE. Likewise, the target
@@ -483,8 +484,13 @@ read_program_header (int type, int *p_sect_size, int *p_arch_size)
else
return 0;
- /* Find .dynamic section via the PT_DYNAMIC PHDR. */
- if (arch_size == 32)
+ /* Find the requested segment. */
+ if (type == -1)
+ {
+ sect_addr = at_phdr;
+ sect_size = at_phent * at_phnum;
+ }
+ else if (arch_size == 32)
{
Elf32_External_Phdr phdr;
int i;
@@ -1625,58 +1631,36 @@ svr4_special_symbol_handling (void)
svr4_relocate_main_executable ();
}
-/* Decide if the objfile needs to be relocated. As indicated above,
- we will only be here when execution is stopped at the beginning
- of the program. Relocation is necessary if the address at which
- we are presently stopped differs from the start address stored in
- the executable AND there's no interpreter section. The condition
- regarding the interpreter section is very important because if
- there *is* an interpreter section, execution will begin there
- instead. When there is an interpreter section, the start address
- is (presumably) used by the interpreter at some point to start
- execution of the program.
-
- If there is an interpreter, it is normal for it to be set to an
- arbitrary address at the outset. The job of finding it is
- handled in enable_break().
-
- So, to summarize, relocations are necessary when there is no
- interpreter section and the start address obtained from the
- executable is different from the address at which GDB is
- currently stopped.
-
- [ The astute reader will note that we also test to make sure that
- the executable in question has the DYNAMIC flag set. It is my
- opinion that this test is unnecessary (undesirable even). It
- was added to avoid inadvertent relocation of an executable
- whose e_type member in the ELF header is not ET_DYN. There may
- be a time in the future when it is desirable to do relocations
- on other types of files as well in which case this condition
- should either be removed or modified to accomodate the new file
- type. (E.g, an ET_EXEC executable which has been built to be
- position-independent could safely be relocated by the OS if
- desired. It is true that this violates the ABI, but the ABI
- has been known to be bent from time to time.) - Kevin, Nov 2000. ]
- */
+/* Read the ELF program headers from ABFD. Return the contents and
+ set *PHDRS_SIZE to the size of the program headers. */
-static CORE_ADDR
-svr4_static_exec_displacement (void)
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-03-04 22:28 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-03-04 22:28 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 2b35288411132b75fce60ccad3464bd073d52119 (commit)
via 569145aec27fb30f19d29cbad4b4ac6ac2d7b1ac (commit)
via f36360e524e44f3b7ecdc61fb80e42fd58c6c612 (commit)
via a1490edc7e86ca7d87391706c70ab89f0a997746 (commit)
via 9111c036728abb105adcb10628e075d077a36f77 (commit)
via 32e6d152b685ace8d3f27a32c27c99f206e4c303 (commit)
via 1f45d129fe085ce84fa66d20b9587ff426f7500c (commit)
via a1b0b74c2c4185fba42b2198fb429f57216a7097 (commit)
via 56e3b00367a23ec5ccbaa37e63405c2f97c9c2f7 (commit)
via 4fd8a9865d7e901c418fbfb66cf83e38b7389336 (commit)
via 27c36f74c56a394fe2635c288ba4b6168670e7bf (commit)
via fcc33f8180a0375fe57baf542f6a39a83da7a729 (commit)
via 0ebd6efef3d1fa23cc96c86014559ad32d1a6a99 (commit)
via 3019c3cfcb7ba7ba7e4a1e6251397df6fffa151f (commit)
via c48c69149c39ffa66702a823f15855485fbaaad1 (commit)
via 13f02314106d8d62d70d0362424cd77051a76130 (commit)
via c7f35a76b2c6d37e5909383a74bfe893e425d69f (commit)
via 68ec7d056169a3250f2e93d7bf0dfa943d6a4a78 (commit)
via fbca217ebce918603b2c91c28f35d6bb0c5640e5 (commit)
via 6448aace637843e8e7c021d7f8c5d5d5fdd71974 (commit)
via bffef5e307cf8d4c793cdcb851a56f6250e31a8e (commit)
via 5471d6aee6b7daf86ff36dc35c0993d9fad29848 (commit)
via 0a80bc76bcd16cda82a639b90a05c544a67fe70c (commit)
via 2b2adaeb003a6fb04b79eeb1ed391cdb58ffe250 (commit)
via 4b09efab1cdc4bc6eaab05f6cf44c120b38a715c (commit)
via 93f70109e8252edbdb587662787aec940b73d45a (commit)
via 770b4b6663cb2397f85a0628f3bd9126b50a70cf (commit)
via 86bda87a81664487ff216230c8acf9148bfb116c (commit)
via 5009187f09e4dcbbffc78d4f1417602d5dfb82e1 (commit)
via 9d625812f24608f99fd99e8591ef3c80d729f9b5 (commit)
via 3a18ddeea30dea5222f274e287ccc699c0446590 (commit)
via 94a4d5a06ca52328b0d85f4acfb90a674c85a128 (commit)
via 9c66cd86a5327e6d87c1ce59f9c7ce5da73f0cae (commit)
via bf590a572ff3bd482d409163e138b8eeedc569fb (commit)
via c8a32411626edd977c35f850e4970a6290f082db (commit)
via 91b6af64553672a42624538f8989229f350eeee9 (commit)
from 53082d4bffd1583084c10411a48cf3d7ce984557 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 2b35288411132b75fce60ccad3464bd073d52119
Merge: 53082d4bffd1583084c10411a48cf3d7ce984557 569145aec27fb30f19d29cbad4b4ac6ac2d7b1ac
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Mar 4 23:28:26 2010 +0100
Merge remote branch 'gdb/master'
commit 569145aec27fb30f19d29cbad4b4ac6ac2d7b1ac
Author: Doug Evans <dje@google.com>
Date: Thu Mar 4 19:00:18 2010 +0000
* arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
unwound_fp.
commit f36360e524e44f3b7ecdc61fb80e42fd58c6c612
Author: Keith Seitz <keiths@redhat.com>
Date: Thu Mar 4 18:38:34 2010 +0000
* linespec.c (decode_line_1): Update comments for is_quote_enclosed.
If the filename portion of the linespec was quoted, recheck the
remainder for additional quoting.
(locate_first_half): Skip over completer chars, too.
commit a1490edc7e86ca7d87391706c70ab89f0a997746
Author: Keith Seitz <keiths@redhat.com>
Date: Thu Mar 4 18:38:15 2010 +0000
* gdb.cp/overload.exp: Test that the filename portion of a linespec
can be quoted. Test that both the filename and function/line
portions can be quoted at the same time.
commit 9111c036728abb105adcb10628e075d077a36f77
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Mar 4 18:21:39 2010 +0000
* printcmd.c (printf_command): Pass dummy argument to
printf_filtered.
commit 32e6d152b685ace8d3f27a32c27c99f206e4c303
Author: Daniel Jacobowitz <dan@debian.org>
Date: Thu Mar 4 17:16:08 2010 +0000
* elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
sections.
commit 1f45d129fe085ce84fa66d20b9587ff426f7500c
Author: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Date: Thu Mar 4 17:12:46 2010 +0000
PR libstdc++/32499
* configure.ac (RANLIB): Default to true.
(STRIP): Likewise.
(RANLIB_FOR_TARGET): Remove superfluous : argument.
* configure: Regenerate.
commit a1b0b74c2c4185fba42b2198fb429f57216a7097
Author: Doug Evans <dje@google.com>
Date: Thu Mar 4 16:39:56 2010 +0000
* arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
commit 56e3b00367a23ec5ccbaa37e63405c2f97c9c2f7
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Mar 4 15:37:23 2010 +0000
gdb/
* breakpoint.c (update_watchpoint): Create a sentinel location if
the software watchpoint isn't watching any memory.
(breakpoint_address_bits): Skip dummy software watchpoint locations.
gdb/testsuite/
* gdb.base/watch-non-mem.c, gdb.base/watch-non-mem.exp: New.
commit 4fd8a9865d7e901c418fbfb66cf83e38b7389336
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Mar 4 14:58:38 2010 +0000
* utils.c (fputs_maybe_filtered): Check if there's already a top
level interpreter before dereferencing it. If there isn't one,
don't paginate either.
commit 27c36f74c56a394fe2635c288ba4b6168670e7bf
Author: Daniel Jacobowitz <dan@debian.org>
Date: Thu Mar 4 13:42:11 2010 +0000
2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
the state right when single stepping.
(arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
Get the next PC along with the instruction state.
(thumb_get_next_pc): Remove.
(arm_get_next_pc): Modified to use arm_get_next_pc_raw.
commit fcc33f8180a0375fe57baf542f6a39a83da7a729
Author: Hui Zhu <teawater@gmail.com>
Date: Thu Mar 4 07:53:18 2010 +0000
2010-03-04 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
commit 0ebd6efef3d1fa23cc96c86014559ad32d1a6a99
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Mar 4 04:01:52 2010 +0000
PR 11302
* dwarf2.c (read_abbrevs): Return NULL on alloc failures.
(read_attribute_value, decode_line_info): Likewise.
(add_line_info, read_rangelist): Return FALSE on alloc failures.
(arange_add, sort_line_sequences): Likewise.
(find_abstract_instance_name): Handle failures from called funcs.
(scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
(find_line): Realloc to a temp, and handle alloc fail.
commit 3019c3cfcb7ba7ba7e4a1e6251397df6fffa151f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Mar 4 01:06:28 2010 +0000
* utils.c (fputs_maybe_filtered): Always disable pagination if the
top level interpreter is MI.
commit c48c69149c39ffa66702a823f15855485fbaaad1
Author: Stan Shebs <shebs@apple.com>
Date: Thu Mar 4 00:32:49 2010 +0000
2010-03-03 Stan Shebs <stan@codesourcery.com>
* remote.c (remote_download_tracepoint): Iterate over locations.
* tracepoint.c (validate_actionline): Ditto.
(encode_actions): Add location argument.
(trace_dump_command): Check all locations to see if stepping
frame.
commit 13f02314106d8d62d70d0362424cd77051a76130
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 4 00:00:33 2010 +0000
*** empty log message ***
commit c7f35a76b2c6d37e5909383a74bfe893e425d69f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Mar 3 23:00:06 2010 +0000
daily update
commit 68ec7d056169a3250f2e93d7bf0dfa943d6a4a78
Author: Doug Evans <dje@google.com>
Date: Wed Mar 3 22:19:05 2010 +0000
* lib/gdb.exp (gdb_compile_pthreads): Handle case where
libc contains libpthread.
commit fbca217ebce918603b2c91c28f35d6bb0c5640e5
Author: Doug Evans <dje@google.com>
Date: Wed Mar 3 22:13:51 2010 +0000
* gdb.threads/linux-dp.c (shared_random): Call rand instead of rand_r.
* gdb.threads/linux-dp.exp: Compile with gdb_compile_pthreads instead
of gdb_compile. Add another pattern to match android backtrace.
commit 6448aace637843e8e7c021d7f8c5d5d5fdd71974
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Mar 3 20:19:48 2010 +0000
Mention improvement for X86 general purpose registers.
2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
Eli Zaretskii <eliz@gnu.org>
* NEWS: Add X86 general purpose registers section.
commit bffef5e307cf8d4c793cdcb851a56f6250e31a8e
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Mar 3 18:32:43 2010 +0000
PR mi/11098:
* varobj.c (install_new_value): Handle case where new print_value
is NULL.
commit 5471d6aee6b7daf86ff36dc35c0993d9fad29848
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Mar 3 18:05:01 2010 +0000
gdb
2010-03-03 Dainis Jonitis <jonitis@gmail.com>
PR gdb/11345:
* printcmd.c (printf_command): Print end of format string using
printf_filtered.
gdb/testsuite
2010-03-03 Tom Tromey <tromey@redhat.com>
PR gdb/11345:
* gdb.base/printcmds.exp (test_printf): Add test.
commit 0a80bc76bcd16cda82a639b90a05c544a67fe70c
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Mar 3 17:56:23 2010 +0000
* elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
a mapping symbol to an empty section.
commit 2b2adaeb003a6fb04b79eeb1ed391cdb58ffe250
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Mar 3 00:00:32 2010 +0000
*** empty log message ***
commit 4b09efab1cdc4bc6eaab05f6cf44c120b38a715c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Mar 2 23:00:06 2010 +0000
daily update
commit 93f70109e8252edbdb587662787aec940b73d45a
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Mar 2 21:46:26 2010 +0000
* mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
* defs.h (read_command_lines_1): Add missing 'void'.
* cli/cli-script.c (recurse_read_control_structure): Add missing
'void'.
(read_next_line): Likewise.
(read_command_lines_1): Likewise.
commit 770b4b6663cb2397f85a0628f3bd9126b50a70cf
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Tue Mar 2 20:21:06 2010 +0000
* spu-tdep.c (spu_analyze_prologue): Track instruction to
store backchain as part of prologue.
commit 86bda87a81664487ff216230c8acf9148bfb116c
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Mar 2 17:55:39 2010 +0000
* progspace.c (update_address_spaces): Update inferior address spaces
also.
commit 5009187f09e4dcbbffc78d4f1417602d5dfb82e1
Author: Doug Evans <dje@google.com>
Date: Tue Mar 2 17:19:53 2010 +0000
* dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
lowpc,highpc args to addrmap_set_empty.
commit 9d625812f24608f99fd99e8591ef3c80d729f9b5
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Mar 2 13:14:28 2010 +0000
Support x86 pseudo byte, word and dword registers.
gdb/
2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
* amd64-tdep.c (amd64_byte_names): New.
(amd64_word_names): Likewise.
(amd64_dword_names): Likewise.
(amd64_pseudo_register_name): Likewise.
(amd64_pseudo_register_read): Likewise.
(amd64_pseudo_register_write): Likewise.
(amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
set_gdbarch_pseudo_register_write and
set_tdesc_pseudo_register_name. Don't call
set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
* i386-tdep.c (i386_num_mmx_regs): Removed.
(i386_num_pseudo_regs): Likewise.
(i386_byte_names): New.
(i386_word_names): Likewise.
(i386_byte_regnum_p): Likewise.
(i386_word_regnum_p): Likewise.
(i386_mmx_regnum_p): Updated.
(i386_pseudo_register_name): Make it global. Handle byte and
word pseudo-registers.
(i386_pseudo_register_read): Likewise.
(i386_pseudo_register_write): Likewise.
(i386_pseudo_register_type): Handle byte, word and dword
pseudo-registers
(i386_register_reggroup_p): Don't include pseudo
registers, except for MXX, in any register groups. Don't
include pseudo byte, word, dword registers in general_reggroup.
(i386_gdbarch_init): Set num_byte_regs, num_word_regs,
num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
pseudo-registers after word pseudo-registers. Call
set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
* i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
al_regnum, num_word_regs, ax_regnum, num_dword_regs and
eax_regnum.
(i386_byte_regnum_p): New.
(i386_word_regnum_p): Likewise.
(i386_dword_regnum_p): Likewise.
(i386_pseudo_register_name): Likewise.
(i386_pseudo_register_read): Likewise.
(i386_pseudo_register_write): Likewise.
gdb/testsuite/
2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
* gdb.arch/amd64-byte.exp: New.
* gdb.arch/amd64-dword.exp: Likewise.
* gdb.arch/amd64-pseudo.c: Likewise.
* gdb.arch/amd64-word.exp: Likewise.
* gdb.arch/i386-byte.exp: Likewise.
* gdb.arch/i386-pseudo.c: Likewise.
* gdb.arch/i386-word.exp: Likewise.
commit 3a18ddeea30dea5222f274e287ccc699c0446590
Author: mgretton <mgretton>
Date: Tue Mar 2 11:40:23 2010 +0000
* ld/testsuite/ld-arm/arm-merge-incompatible.d: New test.
* ld/testsuite/ld-arm/arm-merge-incompatiblea.s: Likewise.
* ld/testsuite/ld-arm/arm-merge-incompatibleb.s: Likewise.
* ld/testsuite/ld-arm/arm-elf.exp: Run the new test.
* bfd/elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
return value from the call to _bfd_elf_merge_object_attributes.
commit 94a4d5a06ca52328b0d85f4acfb90a674c85a128
Author: clyon <clyon>
Date: Tue Mar 2 08:19:53 2010 +0000
2010-03-02 Christophe Lyon <christophe.lyon@st.com>
Alan Modra <amodra@gmail.com>
bfd/
* elf32-arm.c (a8_erratum_fix): Add st_type field to record the
destination mode of the a8 stub.
(elf32_arm_link_hash_table): Add top_id field.
(elf32_arm_link_hash_table_create): Initialize top_id.
(arm_type_of_stub): Update prototype, st_type can now be updated
by this function. Actual destination address in case of PLT is
computed here, to help factorizing code.
(elf32_arm_stub_name): Update prototype, use stub_type additional
parameter to build stub name.
(elf32_arm_get_stub_entry): Update prototype, use stub_type
additional parameter to build stub entry.
(arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
Call elf32_arm_final_link_relocate to process all in-stub
relocations.
(elf32_arm_setup_section_lists): Update top_id.
(cortex_a8_erratum_scan): Record stub destination mode.
(elf32_arm_size_stubs): Update call to arm_type_of_stub according
to new prototype.
(elf32_arm_final_link_relocate): Enable processing of in-stub
REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
needed, enabling code factorization.
(elf32_arm_final_link): Process stub sections.
(elf32_arm_output_map_sym): Add entry to code/data map.
ld/testsuite/
* ld-arm/arm-elf.exp: Change .text start address for
farcall-thumb-arm tests. Add v4t variant for farcall-mixed-lib
test.
* ld-arm/farcall-mixed-lib-v4t.d: New test.
* ld-arm/farcall-mixed-lib1.s: Don't force armv5t.
* ld-arm/farcall-mixed-lib2.s: Likewise.
* ld-arm/arm-call.d: Update expected results.
* ld-arm/cortex-a8-far.d: Likewise.
* ld-arm/farcall-group-size2.d: Likewise.
* ld-arm/farcall-group.d: Likewise.
* ld-arm/farcall-mix.d: Likewise.
* ld-arm/farcall-mix2.d: Likewise.
* ld-arm/farcall-mixed-app-v5.d: Likewise.
* ld-arm/farcall-mixed-app.d: Likewise.
* ld-arm/farcall-mixed-lib.d: Likewise.
* ld-arm/farcall-thumb-arm.d: Likewise.
* ld-arm/farcall-thumb-arm-blx.d: Likewise.
* ld-arm/farcall-thumb-arm-pic-veneer.d: Likewise.
* ld-arm/farcall-thumb-arm-blx-pic-veneer.d: Likewise.
* ld-arm/farcall-thumb-arm.s: Update test. Add a new call to
potentially generate different types of stubs.
commit 9c66cd86a5327e6d87c1ce59f9c7ce5da73f0cae
Author: David S. Miller <davem@redhat.com>
Date: Tue Mar 2 07:42:37 2010 +0000
* elfxx-sparc.c (struct elf_reloc_map): Delete.
(sparc_reloc_map): Delete.
(_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
relocation type in switch statements.
commit bf590a572ff3bd482d409163e138b8eeedc569fb
Author: David S. Miller <davem@redhat.com>
Date: Tue Mar 2 01:46:08 2010 +0000
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
h->def_regular, set h->ref_regular.
(allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
and dynamic relocations if h->ref_regular.
commit c8a32411626edd977c35f850e4970a6290f082db
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Mar 2 00:00:04 2010 +0000
*** empty log message ***
commit 91b6af64553672a42624538f8989229f350eeee9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Mar 1 23:00:05 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 +
bfd/ChangeLog | 66 ++++++
bfd/dwarf2.c | 179 ++++++++++-----
bfd/elf32-arm.c | 279 ++++++++++++++---------
bfd/elfxx-sparc.c | 356 +++++++++++++++++++++---------
bfd/version.h | 2 +-
configure | 4 +-
configure.ac | 10 +-
gdb/ChangeLog | 143 ++++++++++++
gdb/NEWS | 8 +
gdb/amd64-tdep.c | 118 ++++++++++-
gdb/arm-tdep.c | 123 ++++++-----
gdb/breakpoint.c | 22 ++-
gdb/cli/cli-script.c | 10 +-
gdb/defs.h | 2 +-
gdb/dwarf2read.c | 3 +-
gdb/i386-tdep.c | 263 +++++++++++++++++++----
gdb/i386-tdep.h | 37 +++
gdb/linespec.c | 32 ++-
gdb/mi/mi-cmd-break.c | 2 +-
gdb/printcmd.c | 9 +-
gdb/progspace.c | 30 ++-
gdb/remote.c | 192 +++++++++--------
gdb/spu-tdep.c | 12 +-
gdb/testsuite/ChangeLog | 34 +++
gdb/testsuite/gdb.arch/amd64-byte.exp | 121 ++++++++++
gdb/testsuite/gdb.arch/amd64-dword.exp | 123 ++++++++++
gdb/testsuite/gdb.arch/amd64-pseudo.c | 91 ++++++++
gdb/testsuite/gdb.arch/amd64-word.exp | 123 ++++++++++
gdb/testsuite/gdb.arch/i386-byte.exp | 98 ++++++++
gdb/testsuite/gdb.arch/i386-pseudo.c | 51 +++++
gdb/testsuite/gdb.arch/i386-word.exp | 84 +++++++
gdb/testsuite/gdb.base/printcmds.exp | 4 +
gdb/testsuite/gdb.base/watch-non-mem.c | 27 +++
gdb/testsuite/gdb.base/watch-non-mem.exp | 40 ++++
gdb/testsuite/gdb.cp/overload.exp | 2 +
gdb/testsuite/gdb.threads/linux-dp.c | 3 +-
gdb/testsuite/gdb.threads/linux-dp.exp | 6 +-
gdb/testsuite/lib/gdb.exp | 2 +-
gdb/tracepoint.c | 130 +++++++-----
gdb/utils.c | 8 +-
gdb/varobj.c | 5 +-
gdb/version.in | 2 +-
43 files changed, 2297 insertions(+), 567 deletions(-)
create mode 100644 gdb/testsuite/gdb.arch/amd64-byte.exp
create mode 100644 gdb/testsuite/gdb.arch/amd64-dword.exp
create mode 100644 gdb/testsuite/gdb.arch/amd64-pseudo.c
create mode 100644 gdb/testsuite/gdb.arch/amd64-word.exp
create mode 100644 gdb/testsuite/gdb.arch/i386-byte.exp
create mode 100644 gdb/testsuite/gdb.arch/i386-pseudo.c
create mode 100644 gdb/testsuite/gdb.arch/i386-word.exp
create mode 100644 gdb/testsuite/gdb.base/watch-non-mem.c
create mode 100644 gdb/testsuite/gdb.base/watch-non-mem.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index eed5123..12f2049 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR libstdc++/32499
+ * configure.ac (RANLIB): Default to true.
+ (STRIP): Likewise.
+ (RANLIB_FOR_TARGET): Remove superfluous : argument.
+ * configure: Regenerate.
+
2010-02-17 Nick Clifton <nickc@redhat.com>
PR 11238
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f864302..98e14e7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,69 @@
+2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
+ sections.
+
+2010-03-04 Alan Modra <amodra@gmail.com>
+
+ PR 11302
+ * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
+ (read_attribute_value, decode_line_info): Likewise.
+ (add_line_info, read_rangelist): Return FALSE on alloc failures.
+ (arange_add, sort_line_sequences): Likewise.
+ (find_abstract_instance_name): Handle failures from called funcs.
+ (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
+ (find_line): Realloc to a temp, and handle alloc fail.
+
+2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
+ a mapping symbol to an empty section.
+
+2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
+ return value from the call to _bfd_elf_merge_object_attributes.
+
+2010-03-02 Christophe Lyon <christophe.lyon@st.com>
+ Alan Modra <amodra@gmail.com>
+
+ * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
+ destination mode of the a8 stub.
+ (elf32_arm_link_hash_table): Add top_id field.
+ (elf32_arm_link_hash_table_create): Initialize top_id.
+ (arm_type_of_stub): Update prototype, st_type can now be updated
+ by this function. Actual destination address in case of PLT is
+ computed here, to help factorizing code.
+ (elf32_arm_stub_name): Update prototype, use stub_type additional
+ parameter to build stub name.
+ (elf32_arm_get_stub_entry): Update prototype, use stub_type
+ additional parameter to build stub entry.
+ (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
+ put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
+ Call elf32_arm_final_link_relocate to process all in-stub
+ relocations.
+ (elf32_arm_setup_section_lists): Update top_id.
+ (cortex_a8_erratum_scan): Record stub destination mode.
+ (elf32_arm_size_stubs): Update call to arm_type_of_stub according
+ to new prototype.
+ (elf32_arm_final_link_relocate): Enable processing of in-stub
+ REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
+ needed, enabling code factorization.
+ (elf32_arm_final_link): Process stub sections.
+ (elf32_arm_output_map_sym): Add entry to code/data map.
+
+2010-03-01 David S. Miller <davem@davemloft.net>
+
+ * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
+ h->def_regular, set h->ref_regular.
+ (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
+ and dynamic relocations if h->ref_regular.
+
+ * elfxx-sparc.c (struct elf_reloc_map): Delete.
+ (sparc_reloc_map): Delete.
+ (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
+ relocation type in switch statements.
+
2010-02-25 Alan Modra <amodra@gmail.com>
PR ld/11304
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 89d9f4b..1eae5e1 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -646,10 +646,12 @@ read_abbrevs (bfd *abfd, bfd_uint64_t offset, struct dwarf2_debug *stash)
if (! read_section (abfd, ".debug_abbrev", ".zdebug_abbrev",
stash->syms, offset,
&stash->dwarf_abbrev_buffer, &stash->dwarf_abbrev_size))
- return 0;
+ return NULL;
amt = sizeof (struct abbrev_info*) * ABBREV_HASH_SIZE;
abbrevs = (struct abbrev_info **) bfd_zalloc (abfd, amt);
+ if (abbrevs == NULL)
+ return NULL;
abbrev_ptr = stash->dwarf_abbrev_buffer + offset;
abbrev_number = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
@@ -660,6 +662,8 @@ read_abbrevs (bfd *abfd, bfd_uint64_t offset, struct dwarf2_debug *stash)
{
amt = sizeof (struct abbrev_info);
cur_abbrev = (struct abbrev_info *) bfd_zalloc (abfd, amt);
+ if (cur_abbrev == NULL)
+ return NULL;
/* Read in abbrev header. */
cur_abbrev->number = abbrev_number;
@@ -773,6 +777,8 @@ read_attribute_value (struct attribute *attr,
case DW_FORM_block2:
amt = sizeof (struct dwarf_block);
blk = (struct dwarf_block *) bfd_alloc (abfd, amt);
+ if (blk == NULL)
+ return NULL;
blk->size = read_2_bytes (abfd, info_ptr);
info_ptr += 2;
blk->data = read_n_bytes (abfd, info_ptr, blk->size);
@@ -782,6 +788,8 @@ read_attribute_value (struct attribute *attr,
case DW_FORM_block4:
amt = sizeof (struct dwarf_block);
blk = (struct dwarf_block *) bfd_alloc (abfd, amt);
+ if (blk == NULL)
+ return NULL;
blk->size = read_4_bytes (abfd, info_ptr);
info_ptr += 4;
blk->data = read_n_bytes (abfd, info_ptr, blk->size);
@@ -811,6 +819,8 @@ read_attribute_value (struct attribute *attr,
case DW_FORM_block:
amt = sizeof (struct dwarf_block);
blk = (struct dwarf_block *) bfd_alloc (abfd, amt);
+ if (blk == NULL)
+ return NULL;
blk->size = read_unsigned_leb128 (abfd, info_ptr, &bytes_read);
info_ptr += bytes_read;
blk->data = read_n_bytes (abfd, info_ptr, blk->size);
@@ -820,6 +830,8 @@ read_attribute_value (struct attribute *attr,
case DW_FORM_block1:
amt = sizeof (struct dwarf_block);
blk = (struct dwarf_block *) bfd_alloc (abfd, amt);
+ if (blk == NULL)
+ return NULL;
blk->size = read_1_byte (abfd, info_ptr);
info_ptr += 1;
blk->data = read_n_bytes (abfd, info_ptr, blk->size);
@@ -987,7 +999,7 @@ new_line_sorts_after (struct line_info *new_line, struct line_info *line)
highest to lowest VMA (with possible duplicates); that is,
line_info->prev_line always accesses an equal or smaller VMA. */
-static void
+static bfd_boolean
add_line_info (struct line_info_table *table,
bfd_vma address,
char *filename,
@@ -999,6 +1011,9 @@ add_line_info (struct line_info_table *table,
struct line_sequence* seq = table->sequences;
struct line_info* info = (struct line_info *) bfd_alloc (table->abfd, amt);
+ if (info == NULL)
+ return FALSE;
+
/* Set member data of 'info'. */
info->address = address;
info->line = line;
@@ -1008,8 +1023,9 @@ add_line_info (struct line_info_table *table,
if (filename && filename[0])
{
info->filename = (char *) bfd_alloc (table->abfd, strlen (filename) + 1);
- if (info->filename)
- strcpy (info->filename, filename);
+ if (info->filename == NULL)
+ return FALSE;
+ strcpy (info->filename, filename);
}
else
info->filename = NULL;
@@ -1045,6 +1061,8 @@ add_line_info (struct line_info_table *table,
/* Start a new line sequence. */
amt = sizeof (struct line_sequence);
seq = (struct line_sequence *) bfd_malloc (amt);
+ if (seq == NULL)
+ return FALSE;
seq->low_pc = address;
seq->prev_sequence = table->sequences;
seq->last_line = info;
@@ -1092,6 +1110,7 @@ add_line_info (struct line_info_table *table,
if (address < seq->low_pc)
seq->low_pc = address;
}
+ return TRUE;
}
/* Extract a fully qualified filename from a line info table.
@@ -1158,8 +1177,9 @@ concat_filename (struct line_info_table *table, unsigned int file)
return strdup (filename);
}
-static void
-arange_add (bfd *abfd, struct arange *first_arange, bfd_vma low_pc, bfd_vma high_pc)
+static bfd_boolean
+arange_add (bfd *abfd, struct arange *first_arange,
+ bfd_vma low_pc, bfd_vma high_pc)
{
struct arange *arange;
@@ -1168,7 +1188,7 @@ arange_add (bfd *abfd, struct arange *first_arange, bfd_vma low_pc, bfd_vma high
{
first_arange->low = low_pc;
first_arange->high = high_pc;
- return;
+ return TRUE;
}
/* Next see if we can cheaply extend an existing range. */
@@ -1178,12 +1198,12 @@ arange_add (bfd *abfd, struct arange *first_arange, bfd_vma low_pc, bfd_vma high
if (low_pc == arange->high)
{
arange->high = high_pc;
- return;
+ return TRUE;
}
if (high_pc == arange->low)
{
arange->low = low_pc;
- return;
+ return TRUE;
}
arange = arange->next;
}
@@ -1192,10 +1212,13 @@ arange_add (bfd *abfd, struct arange *first_arange, bfd_vma low_pc, bfd_vma high
/* Need to allocate a new arange and insert it into the arange list.
Order isn't significant, so just insert after the first arange. */
arange = (struct arange *) bfd_zalloc (abfd, sizeof (*arange));
+ if (arange == NULL)
+ return FALSE;
arange->low = low_pc;
arange->high = high_pc;
arange->next = first_arange->next;
first_arange->next = arange;
+ return TRUE;
}
/* Compare function for line sequences. */
@@ -1224,7 +1247,7 @@ compare_sequences (const void* a, const void* b)
/* Sort the line sequences for quick lookup. */
-static void
+static bfd_boolean
sort_line_sequences (struct line_info_table* table)
{
bfd_size_type amt;
@@ -1235,11 +1258,13 @@ sort_line_sequences (struct line_info_table* table)
bfd_vma last_high_pc;
if (num_sequences == 0)
- return;
+ return TRUE;
/* Allocate space for an array of sequences. */
amt = sizeof (struct line_sequence) * num_sequences;
sequences = (struct line_sequence *) bfd_alloc (table->abfd, amt);
+ if (sequences == NULL)
+ return FALSE;
/* Copy the linked list into the array, freeing the original nodes. */
seq = table->sequences;
@@ -1285,6 +1310,7 @@ sort_line_sequences (struct line_info_table* table)
table->sequences = sequences;
table->num_sequences = num_sequences;
+ return TRUE;
}
/* Decode the line number information for UNIT. */
@@ -1305,10 +1331,12 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
if (! read_section (abfd, ".debug_line", ".zdebug_line",
stash->syms, unit->line_offset,
&stash->dwarf_line_buffer, &stash->dwarf_line_size))
- return 0;
+ return NULL;
amt = sizeof (struct line_info_table);
table = (struct line_info_table *) bfd_alloc (abfd, amt);
+ if (table == NULL)
+ return NULL;
table->abfd = abfd;
table->comp_dir = unit->comp_dir;
@@ -1385,10 +1413,7 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
tmp = (char **) bfd_realloc (table->dirs, amt);
if (tmp == NULL)
- {
- free (table->dirs);
- return NULL;
- }
+ goto fail;
table->dirs = tmp;
}
@@ -1411,11 +1436,7 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
tmp = (struct fileinfo *) bfd_realloc (table->files, amt);
if (tmp == NULL)
- {
- free (table->files);
- free (table->dirs);
- return NULL;
- }
+ goto fail;
table->files = tmp;
}
@@ -1466,7 +1487,8 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
* lh.minimum_instruction_length;
line += lh.line_base + (adj_opcode % lh.line_range);
/* Append row to matrix using current values. */
- add_line_info (table, address, filename, line, column, 0);
+ if (!add_line_info (table, address, filename, line, column, 0))
+ goto line_fail;
if (address < low_pc)
low_pc = address;
if (address > high_pc)
@@ -1484,13 +1506,15 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
{
case DW_LNE_end_sequence:
end_sequence = 1;
- add_line_info (table, address, filename, line, column,
- end_sequence);
+ if (!add_line_info (table, address, filename, line, column,
+ end_sequence))
+ goto line_fail;
if (address < low_pc)
low_pc = address;
if (address > high_pc)
high_pc = address;
- arange_add (unit->abfd, &unit->arange, low_pc, high_pc);
+ if (!arange_add (unit->abfd, &unit->arange, low_pc, high_pc))
+ goto line_fail;
break;
case DW_LNE_set_address:
address = read_address (unit, line_ptr);
@@ -1507,12 +1531,7 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
amt *= sizeof (struct fileinfo);
tmp = (struct fileinfo *) bfd_realloc (table->files, amt);
if (tmp == NULL)
- {
- free (table->files);
- free (table->dirs);
- free (filename);
- return NULL;
- }
+ goto line_fail;
table->files = tmp;
}
table->files[table->num_files].name = cur_file;
@@ -1534,14 +1553,15 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
default:
(*_bfd_error_handler) (_("Dwarf Error: mangled line number section."));
bfd_set_error (bfd_error_bad_value);
- free (filename);
- free (table->files);
- free (table->dirs);
- return NULL;
+ line_fail:
+ if (filename != NULL)
+ free (filename);
+ goto fail;
}
break;
case DW_LNS_copy:
- add_line_info (table, address, filename, line, column, 0);
+ if (!add_line_info (table, address, filename, line, column, 0))
+ goto line_fail;
if (address < low_pc)
low_pc = address;
if (address > high_pc)
@@ -1601,9 +1621,17 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
free (filename);
}
- sort_line_sequences (table);
+ if (sort_line_sequences (table))
+ return table;
- return table;
+ fail:
+ if (table->sequences != NULL)
+ free (table->sequences);
+ if (table->files != NULL)
+ free (table->files);
+ if (table->dirs != NULL)
+ free (table->dirs);
+ return NULL;
}
/* If ADDR is within TABLE set the output parameters and return TRUE,
@@ -1838,7 +1866,10 @@ find_abstract_instance_name (struct comp_unit *unit,
{
for (i = 0; i < abbrev->num_attrs; ++i)
{
- info_ptr = read_attribute (&attr, &abbrev->attrs[i], unit, info_ptr);
+ info_ptr = read_attribute (&attr, &abbrev->attrs[i], unit,
+ info_ptr);
+ if (info_ptr == NULL)
+ break;
switch (attr.name)
{
case DW_AT_name:
@@ -1858,11 +1889,12 @@ find_abstract_instance_name (struct comp_unit *unit,
}
}
}
- return (name);
+ return name;
}
-static void
-read_rangelist (struct comp_unit *unit, struct arange *arange, bfd_uint64_t offset)
+static bfd_boolean
+read_rangelist (struct comp_unit *unit, struct arange *arange,
+ bfd_uint64_t offset)
{
bfd_byte *ranges_ptr;
bfd_vma base_address = unit->base_address;
@@ -1870,7 +1902,7 @@ read_rangelist (struct comp_unit *unit, struct arange *arange, bfd_uint64_t offs
if (! unit->stash->dwarf_ranges_buffer)
{
if (! read_debug_ranges (unit))
- return;
+ return FALSE;
}
ranges_ptr = unit->stash->dwarf_ranges_buffer + offset;
@@ -1889,8 +1921,13 @@ read_rangelist (struct comp_unit *unit, struct arange *arange, bfd_uint64_t offs
if (low_pc == -1UL && high_pc != -1UL)
base_address = high_pc;
else
- arange_add (unit->abfd, arange, base_address + low_pc, base_address + high_pc);
+ {
+ if (!arange_add (unit->abfd, arange,
+ base_address + low_pc, base_address + high_pc))
+ return FALSE;
+ }
}
+ return TRUE;
}
/* DWARF2 Compilation unit functions. */
@@ -1938,11 +1975,11 @@ scan_unit_for_symbols (struct comp_unit *unit)
abbrev = lookup_abbrev (abbrev_number,unit->abbrevs);
if (! abbrev)
{
- (*_bfd_error_handler) (_("Dwarf Error: Could not find abbrev number %u."),
- abbrev_number);
+ (*_bfd_error_handler)
+ (_("Dwarf Error: Could not find abbrev number %u."),
+ abbrev_number);
bfd_set_error (bfd_error_bad_value);
- free (nested_funcs);
- return FALSE;
+ goto fail;
}
var = NULL;
@@ -1952,6 +1989,8 @@ scan_unit_for_symbols (struct comp_unit *unit)
{
bfd_size_type amt = sizeof (struct funcinfo);
func = (struct funcinfo *) bfd_zalloc (abfd, amt);
+ if (func == NULL)
+ goto fail;
func->tag = abbrev->tag;
func->prev_func = unit->function_table;
unit->function_table = func;
@@ -1973,6 +2012,8 @@ scan_unit_for_symbols (struct comp_unit *unit)
{
bfd_size_type amt = sizeof (struct varinfo);
var = (struct varinfo *) bfd_zalloc (abfd, amt);
+ if (var == NULL)
+ goto fail;
var->tag = abbrev->tag;
var->stack = 1;
var->prev_var = unit->variable_table;
@@ -1987,13 +2028,16 @@ scan_unit_for_symbols (struct comp_unit *unit)
for (i = 0; i < abbrev->num_attrs; ++i)
{
info_ptr = read_attribute (&attr, &abbrev->attrs[i], unit, info_ptr);
+ if (info_ptr == NULL)
+ return FALSE;
if (func)
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-03-01 22:16 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-03-01 22:16 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 53082d4bffd1583084c10411a48cf3d7ce984557 (commit)
via 0257d639d42f896a359993ae8adb5792e280f65f (commit)
via cb928c67c90cfb5bbb0636d91855b95e51ad275d (commit)
via d454b7529a5e6134ace8541b341d079534f2062a (commit)
via 90d7b35b968bd2f73ac1f139b3dd0a237fc61277 (commit)
via 240930a7119a7bfc505ef72ef9581f0d0085a8f5 (commit)
via 1adc8aa7d7c9331a13d7f8b977c8f07e4fe44310 (commit)
via 1a9fd27f886899de2bbb7077ac45854b6253e3a0 (commit)
via 75d7477e9cbf06af52f4c3961bc2898ed260f1dd (commit)
via cc25e514e8175c5732c800d372caf20f6f0f1940 (commit)
via 99f36d6a521caa3db72192d194b429dd84a36be8 (commit)
via 5b1220ec1e5f9eebf895e7b50d1f00e2dc5877d8 (commit)
via e72d57bcb16d1d23aaa98f58d36b5288518acd2f (commit)
via e8e532599625996095d7a41e54a0e57b4856c71d (commit)
via 4efa96f5684f25f148794e7afd5ca1672b0c139b (commit)
via 74f369fb3cc80bcc069bec3eaee6b1404da26ce0 (commit)
via f40547609d6a7886dce04b7a54a20d1ae3fdc731 (commit)
from c813b82173576d0901b82cce3a7854d24e76cc43 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 53082d4bffd1583084c10411a48cf3d7ce984557
Merge: c813b82173576d0901b82cce3a7854d24e76cc43 0257d639d42f896a359993ae8adb5792e280f65f
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Mon Mar 1 23:16:14 2010 +0100
Merge remote branch 'gdb/master'
commit 0257d639d42f896a359993ae8adb5792e280f65f
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Mar 1 17:26:02 2010 +0000
Remove TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
* target-descriptions.c (tdesc_type): Remove
TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
(tdesc_predefined_types): Likewise.
(tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
if flag name is empty.
(maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
* features/i386/32bit-core.xml: Define i386_eflags.
* features/i386/64bit-core.xml: Likewise.
* features/i386/32bit-sse.xml: Define i386_mxcsr.
* features/i386/64bit-sse.xml: Likewise.
* features/i386/amd64-linux.c: Regenerated.
* features/i386/amd64.c: Likewise.
* features/i386/i386-linux.c: Likewise.
* features/i386/i386.c: Likewise.
commit cb928c67c90cfb5bbb0636d91855b95e51ad275d
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Mar 1 17:19:21 2010 +0000
* gdbtypes.c (append_composite_type_field_raw): New.
(append_composite_type_field_aligned): Use the new function.
* gdbtypes.h (append_composite_type_field_raw): Declare.
* target-descriptions.c (struct tdesc_type_field): Add start and end.
(struct tdesc_type_flag): New type.
(struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
kind. Add size to u.u. Add u.f for flags.
(tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
(tdesc_free_type): Likewise.
(tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
(tdesc_add_field): Handle TDESC_TYPE_STRUCT.
(tdesc_add_bitfield, tdesc_add_flag): New.
* target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
(tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
* xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
current_type. Add current_type_size and current_type_is_flags.
(tdesc_start_union): Clear the new fields.
(tdesc_start_struct, tdesc_start_flags): New.
(tdesc_start_field): Handle struct fields, including bitfields.
(field_attributes): Make type optional. Add start and end.
(union_children): Rename to struct_union_children.
(union_attributes): Rename to struct_union_attributes. Add optional
size.
(flags_attributes): New.
(feature_children): Add struct and flags.
* features/gdb-target.dtd: Add flags and struct to features.
Make field type optional. Add field start and end.
doc/
* gdb.texinfo (Types): Describe <struct> and <flags>.
testsuite/
* gdb.xml/extra-regs.xml: Add struct1, struct2, and flags
types. Add structreg, bitfields, and flags registers.
* gdb.xml/tdesc-regs.exp: Test structreg and bitfields
registers.
commit d454b7529a5e6134ace8541b341d079534f2062a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Mar 1 15:33:29 2010 +0000
Enable XML target descriptions for x86.
gdb/
2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
* amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
(amd64_linux_read_description): Likewise.
(_initialize_amd64_linux_nat): Set to_read_description to
amd64_linux_read_description.
* amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
(amd64_linux_register_name): Removed.
(amd64_linux_register_type): Likewise.
(amd64_linux_core_read_description): New.
(amd64_linux_init_abi): Set target description to
tdesc_amd64_linux if needed. Support orig_rax in target
description. Don't call set_gdbarch_register_name nor
set_gdbarch_register_type. Call
set_gdbarch_core_read_description.
(_initialize_amd64_linux_tdep): Call
initialize_tdesc_amd64_linux.
* amd64-linux-tdep.h (tdesc_amd64_linux): New.
* amd64-tdep.c: Include "features/i386/amd64.c".
(amd64_register_names): Removed.
(amd64_register_name): Likewise.
(amd64_register_type): Likewise.
(amd64_init_abi): Set num_core_regs and register_names. Set
target description to tdesc_amd64 if needed. Don't call
set_gdbarch_register_name nor set_gdbarch_register_type.
(_initialize_amd64_tdep): New.
* i386-linux-nat.c (i386_linux_read_description): New.
(_initialize_i386_linux_nat): Set to_read_description to
i386_linux_read_description.
* i386-linux-tdep.c: Include "features/i386/i386-linux.c".
(i386_linux_register_name): Removed.
(i386_linux_core_read_description): New.
(i386_linux_read_description): Likewise.
(i386_linux_init_abi): Don't call set_gdbarch_register_name.
Set target description to tdesc_i386_linux if needed. Support
orig_eax. Set register_reggroup_p. Call
set_gdbarch_core_read_description.
(_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
* i386-linux-tdep.h (tdesc_i386_linux): New.
* i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
with I387_NUM_REGS.
* i386-tdep.c: Include "features/i386/i386.c".
(i386_register_names): Make it const.
(i386_mmx_names): Likewise.
(i386_num_register_names): Removed.
(i386_register_name): Likewise.
(i386_eflags_type): Likewise.
(i386_mxcsr_type): Likewise.
(i386_sse_type): Likewise.
(i386_register_type): Likewise.
(i387_ext_type): Call tdesc_find_type instead of arch_float_type.
(i386_pseudo_register_name): New.
(i386_pseudo_register_type): Likewise.
(i386_mmx_type): Make it static.
(i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
I387_NUM_REGS. Set num_core_regs and register_names. Don't
call set_gdbarch_register_name nor set_gdbarch_register_type.
Set register_reggroup_p. Set target description to tdesc_i386
if needed. Call set_tdesc_pseudo_register_type,
set_tdesc_pseudo_register_name and tdesc_use_registers.
(_initialize_i386_tdep): Call initialize_tdesc_i386.
initialize_tdesc_x86_64.
* i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
i386_mxcsr_type and i386_sse_type. Add num_core_regs,
register_names, tdesc and register_reggroup_p.
(I386_NUM_FREGS): Removed.
(i386_eflags_type): Likewise.
(i386_mxcsr_type): Likewise.
(i386_mmx_type): Likewise.
(i386_sse_type): Likewise.
(i386_register_name): Likewise.
(i386_regnum): Add I386_MXCSR_REGNUM.
(I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
* i387-tdep.h (I387_NUM_REGS): New.
* regformats/i386/i386-linux.dat: Generated.
* regformats/i386/i386.dat: Likewise.
* regformats/i386/amd64-linux.dat: Likewise.
* regformats/i386/amd64.dat: Likewise.
* regformats/reg-i386-linux.dat: Removed.
* regformats/reg-i386.dat: Likewise.
* regformats/reg-x86-64-linux.dat: Likewise.
* regformats/reg-x86-64.dat: Likewise.
gdb/gdbserver/
2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
i386-linux.c and amd64-linux.c.
(reg-i386.o): Removed.
(reg-i386.c): Likewise.
(reg-i386-linux.o): Likewise.
(reg-i386-linux.c): Likewise.
(reg-x86-64.o): Likewise.
(reg-x86-64.c): Likewise.
(reg-x86-64-linux.o): Likewise.
(reg-x86-64-linux.c): Likewise.
(i386.o): New.
(i386.c): Likewise.
(i386-linux.o): Likewise.
(i386-linux.c): Likewise.
(amd64.o): Likewise.
(amd64.c): Likewise.
(amd64-linux.o): Likewise.
(amd64-linux.c): Likewise.
* configure.srv (srv_i386_regobj): New.
(srv_i386_linux_regobj): Likewise.
(srv_amd64_regobj): Likewise.
(srv_amd64_linux_regobj): Likewise.
(srv_i386_32bit_xmlfiles): Likewise.
(srv_i386_64bit_xmlfiles): Likewise.
(srv_i386_xmlfiles): Likewise.
(srv_amd64_xmlfiles): Likewise.
(srv_i386_linux_xmlfiles): Likewise.
(srv_amd64_linux_xmlfiles): Likewise.
(i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
srv_xmlfiles to $srv_i386_xmlfiles.
(i[34567]86-*-mingw32ce*): Likewise.
(i[34567]86-*-mingw*): Likewise.
(i[34567]86-*-nto*): Likewise.
(i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
and $srv_amd64_linux_regobj. Set srv_xmlfiles to
$srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
(x86_64-*-linux*): Likewise.
* linux-x86-low.c (init_registers_x86_64_linux): Removed.
(init_registers_amd64_linux): New.
(x86_arch_setup): Replace init_registers_x86_64_linux with
init_registers_amd64_linux.
gdb/testsuite/
2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
* gdb.xml/tdesc-regs.exp (architecture): New. Set it for x86.
(load_description): Set architecture if defined.
commit 90d7b35b968bd2f73ac1f139b3dd0a237fc61277
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Mon Mar 1 09:09:23 2010 +0000
* remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
cygwin_conv_path API rather than the deprecated
cygwin_conv_to_full_posix_path.
* windows-nat.c:
(GetModuleFileNameExA): Undefine for Cygwin.
(GetModuleFileNameExW): Define for Cygwin.
(get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
Call GetModuleFileNameExW and convert path to POSIX using
cygwin_conv_path.
(windows_make_so): Always define p. Drop unused variable m.
Don't use Win32 functions to check file existance, rather use
access on Cygwin. Fetch system directory using GetSystemDirectoryW.
Use canonicalize_file_name to get full path.
(get_image_name): Use wcstombs, rather than WideCharToMultiByte
to convert Unicode pathname to multibyte on Cygwin. Otherwise,
use correct target buffer size in call to WideCharToMultiByte.
(handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
(windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
(windows_create_inferior): Convert all paths and arguments to wchar_t
and use CreateProcessW on Cygwin.
(_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
(bad_GetModuleFileNameExA): Undefine for Cygwin.
(bad_GetModuleFileNameExW): Define for Cygwin.
(_initialize_loadable): Load GetModuleFileNameExW into
dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
commit 240930a7119a7bfc505ef72ef9581f0d0085a8f5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Mar 1 00:00:33 2010 +0000
*** empty log message ***
commit 1adc8aa7d7c9331a13d7f8b977c8f07e4fe44310
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Feb 28 23:00:05 2010 +0000
daily update
commit 1a9fd27f886899de2bbb7077ac45854b6253e3a0
Author: pmuldoon <pmuldoon>
Date: Sun Feb 28 21:56:47 2010 +0000
2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
PR python/11036
* python/py-frame.c (frapy_read_var): Add block argument and logic
to cope with user provided blocks.
2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Frames In Python): Add block parameter and
description to read_var text.
2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-frame.exp: Add read_var block tests.
* gdb.python/py-frame.c (block): New function.
commit 75d7477e9cbf06af52f4c3961bc2898ed260f1dd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Feb 28 17:56:36 2010 +0000
gdb/
* infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
New comment.
gdb/testsuite/
* gdb.base/callfuncs.exp: New tests for $spval 0 and -1. Remove return.
commit cc25e514e8175c5732c800d372caf20f6f0f1940
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Sun Feb 28 15:04:10 2010 +0000
* Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
(COMMON_OBS): ... to here since it's used unconditionally.
(SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
(SFILES): To here.
commit 99f36d6a521caa3db72192d194b429dd84a36be8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Feb 28 00:00:33 2010 +0000
*** empty log message ***
commit 5b1220ec1e5f9eebf895e7b50d1f00e2dc5877d8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Feb 27 23:00:05 2010 +0000
daily update
commit e72d57bcb16d1d23aaa98f58d36b5288518acd2f
Author: David Daney <ddaney@avtrex.com>
Date: Sat Feb 27 03:49:01 2010 +0000
2010-02-26 David Daney <ddaney@caviumnetworks.com>
* mips-linux-tdep.c: Update struct sigframe comments.
(SIGFRAME_CODE_OFFSET): Delete macro.
(mips_linux_o32_sigframe_init): Calculate sigcontext_base using
this_frame's sp.
(mips_linux_n32n64_sigframe_init): Same.
commit e8e532599625996095d7a41e54a0e57b4856c71d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Feb 27 01:24:37 2010 +0000
sim/moxie/
* interp.c (sim_create_inferior): Fix crashes on zero PROG_BFD or ARGV.
commit 4efa96f5684f25f148794e7afd5ca1672b0c139b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Feb 27 00:00:05 2010 +0000
*** empty log message ***
commit 74f369fb3cc80bcc069bec3eaee6b1404da26ce0
Author: Kevin Buettner <kevinb@redhat.com>
Date: Fri Feb 26 23:11:21 2010 +0000
* remote-mips.c (mips_load): Don't use pseudo-register when
invalidating regcache.
commit f40547609d6a7886dce04b7a54a20d1ae3fdc731
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Feb 26 23:00:04 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 204 +++++++++++++++
gdb/Makefile.in | 6 +-
gdb/amd64-linux-nat.c | 35 +++
gdb/amd64-linux-tdep.c | 73 ++++--
gdb/amd64-linux-tdep.h | 3 +
gdb/amd64-tdep.c | 62 ++---
gdb/doc/ChangeLog | 9 +
gdb/doc/gdb.texinfo | 51 ++++-
gdb/features/gdb-target.dtd | 17 +-
gdb/features/i386/32bit-core.xml | 20 ++
gdb/features/i386/32bit-sse.xml | 16 ++
gdb/features/i386/64bit-core.xml | 20 ++
gdb/features/i386/64bit-sse.xml | 16 ++
gdb/features/i386/amd64-linux.c | 35 +++
gdb/features/i386/amd64.c | 35 +++
gdb/features/i386/i386-linux.c | 35 +++
gdb/features/i386/i386.c | 35 +++
gdb/gdbserver/ChangeLog | 47 ++++
gdb/gdbserver/Makefile.in | 30 +-
gdb/gdbserver/configure.srv | 33 ++-
gdb/gdbserver/linux-x86-low.c | 8 +-
gdb/gdbtypes.c | 19 +-
gdb/gdbtypes.h | 2 +
gdb/i386-linux-nat.c | 10 +
gdb/i386-linux-tdep.c | 66 ++++--
gdb/i386-linux-tdep.h | 3 +
gdb/i386-nto-tdep.c | 2 +-
gdb/i386-tdep.c | 270 +++++++------------
gdb/i386-tdep.h | 29 +-
gdb/i387-tdep.h | 3 +
gdb/infcall.c | 7 +-
gdb/mips-linux-tdep.c | 29 +--
gdb/python/py-frame.c | 39 ++-
.../{reg-x86-64.dat => i386/amd64-linux.dat} | 5 +-
.../{reg-x86-64-linux.dat => i386/amd64.dat} | 7 +-
.../{reg-i386-linux.dat => i386/i386-linux.dat} | 4 +-
gdb/regformats/{reg-i386.dat => i386/i386.dat} | 3 +-
gdb/remote-fileio.c | 10 +-
gdb/remote-mips.c | 2 +-
gdb/target-descriptions.c | 259 +++++++++++++++-----
gdb/target-descriptions.h | 10 +
gdb/testsuite/ChangeLog | 22 ++
gdb/testsuite/gdb.base/callfuncs.exp | 14 +-
gdb/testsuite/gdb.python/py-frame.c | 16 ++
gdb/testsuite/gdb.python/py-frame.exp | 24 ++
gdb/testsuite/gdb.xml/extra-regs.xml | 18 ++
gdb/testsuite/gdb.xml/tdesc-regs.exp | 20 ++
gdb/version.in | 2 +-
gdb/windows-nat.c | 258 +++++++++++++------
gdb/xml-tdesc.c | 164 +++++++++++--
sim/moxie/ChangeLog | 4 +
sim/moxie/interp.c | 5 +-
53 files changed, 1614 insertions(+), 504 deletions(-)
rename gdb/regformats/{reg-x86-64.dat => i386/amd64-linux.dat} (81%)
rename gdb/regformats/{reg-x86-64-linux.dat => i386/amd64.dat} (86%)
rename gdb/regformats/{reg-i386-linux.dat => i386/i386-linux.dat} (82%)
rename gdb/regformats/{reg-i386.dat => i386/i386.dat} (84%)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 34bf6f3..39e8e3f 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100226
+#define BFD_VERSION_DATE 20100301
#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 1e16950..bd07d44 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,207 @@
+2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ * target-descriptions.c (tdesc_type): Remove
+ TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
+ (tdesc_predefined_types): Likewise.
+ (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
+ if flag name is empty.
+ (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
+
+ * features/i386/32bit-core.xml: Define i386_eflags.
+ * features/i386/64bit-core.xml: Likewise.
+
+ * features/i386/32bit-sse.xml: Define i386_mxcsr.
+ * features/i386/64bit-sse.xml: Likewise.
+
+ * features/i386/amd64-linux.c: Regenerated.
+ * features/i386/amd64.c: Likewise.
+ * features/i386/i386-linux.c: Likewise.
+ * features/i386/i386.c: Likewise.
+
+2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdbtypes.c (append_composite_type_field_raw): New.
+ (append_composite_type_field_aligned): Use the new function.
+ * gdbtypes.h (append_composite_type_field_raw): Declare.
+ * target-descriptions.c (struct tdesc_type_field): Add start and end.
+ (struct tdesc_type_flag): New type.
+ (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
+ kind. Add size to u.u. Add u.f for flags.
+ (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
+ (tdesc_free_type): Likewise.
+ (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
+ (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
+ (tdesc_add_bitfield, tdesc_add_flag): New.
+ * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
+ (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
+ * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
+ current_type. Add current_type_size and current_type_is_flags.
+ (tdesc_start_union): Clear the new fields.
+ (tdesc_start_struct, tdesc_start_flags): New.
+ (tdesc_start_field): Handle struct fields, including bitfields.
+ (field_attributes): Make type optional. Add start and end.
+ (union_children): Rename to struct_union_children.
+ (union_attributes): Rename to struct_union_attributes. Add optional
+ size.
+ (flags_attributes): New.
+ (feature_children): Add struct and flags.
+ * features/gdb-target.dtd: Add flags and struct to features.
+ Make field type optional. Add field start and end.
+
+2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
+ (amd64_linux_read_description): Likewise.
+ (_initialize_amd64_linux_nat): Set to_read_description to
+ amd64_linux_read_description.
+
+ * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
+ (amd64_linux_register_name): Removed.
+ (amd64_linux_register_type): Likewise.
+ (amd64_linux_core_read_description): New.
+ (amd64_linux_init_abi): Set target description to
+ tdesc_amd64_linux if needed. Support orig_rax in target
+ description. Don't call set_gdbarch_register_name nor
+ set_gdbarch_register_type. Call
+ set_gdbarch_core_read_description.
+ (_initialize_amd64_linux_tdep): Call
+ initialize_tdesc_amd64_linux.
+
+ * amd64-linux-tdep.h (tdesc_amd64_linux): New.
+
+ * amd64-tdep.c: Include "features/i386/amd64.c".
+ (amd64_register_names): Removed.
+ (amd64_register_name): Likewise.
+ (amd64_register_type): Likewise.
+ (amd64_init_abi): Set num_core_regs and register_names. Set
+ target description to tdesc_amd64 if needed. Don't call
+ set_gdbarch_register_name nor set_gdbarch_register_type.
+ (_initialize_amd64_tdep): New.
+
+ * i386-linux-nat.c (i386_linux_read_description): New.
+ (_initialize_i386_linux_nat): Set to_read_description to
+ i386_linux_read_description.
+
+ * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
+ (i386_linux_register_name): Removed.
+ (i386_linux_core_read_description): New.
+ (i386_linux_read_description): Likewise.
+ (i386_linux_init_abi): Don't call set_gdbarch_register_name.
+ Set target description to tdesc_i386_linux if needed. Support
+ orig_eax. Set register_reggroup_p. Call
+ set_gdbarch_core_read_description.
+ (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
+
+ * i386-linux-tdep.h (tdesc_i386_linux): New.
+
+ * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
+ with I387_NUM_REGS.
+
+ * i386-tdep.c: Include "features/i386/i386.c".
+ (i386_register_names): Make it const.
+ (i386_mmx_names): Likewise.
+ (i386_num_register_names): Removed.
+ (i386_register_name): Likewise.
+ (i386_eflags_type): Likewise.
+ (i386_mxcsr_type): Likewise.
+ (i386_sse_type): Likewise.
+ (i386_register_type): Likewise.
+ (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
+ (i386_pseudo_register_name): New.
+ (i386_pseudo_register_type): Likewise.
+ (i386_mmx_type): Make it static.
+ (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
+ I387_NUM_REGS. Set num_core_regs and register_names. Don't
+ call set_gdbarch_register_name nor set_gdbarch_register_type.
+ Set register_reggroup_p. Set target description to tdesc_i386
+ if needed. Call set_tdesc_pseudo_register_type,
+ set_tdesc_pseudo_register_name and tdesc_use_registers.
+ (_initialize_i386_tdep): Call initialize_tdesc_i386.
+ initialize_tdesc_x86_64.
+
+ * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
+ i386_mxcsr_type and i386_sse_type. Add num_core_regs,
+ register_names, tdesc and register_reggroup_p.
+ (I386_NUM_FREGS): Removed.
+ (i386_eflags_type): Likewise.
+ (i386_mxcsr_type): Likewise.
+ (i386_mmx_type): Likewise.
+ (i386_sse_type): Likewise.
+ (i386_register_name): Likewise.
+ (i386_regnum): Add I386_MXCSR_REGNUM.
+ (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
+
+ * i387-tdep.h (I387_NUM_REGS): New.
+
+ * regformats/i386/i386-linux.dat: Generated.
+ * regformats/i386/i386.dat: Likewise.
+ * regformats/i386/amd64-linux.dat: Likewise.
+ * regformats/i386/amd64.dat: Likewise.
+
+ * regformats/reg-i386-linux.dat: Removed.
+ * regformats/reg-i386.dat: Likewise.
+ * regformats/reg-x86-64-linux.dat: Likewise.
+ * regformats/reg-x86-64.dat: Likewise.
+
+2010-03-01 Corinna Vinschen <vinschen@redhat.com>
+
+ * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
+ cygwin_conv_path API rather than the deprecated
+ cygwin_conv_to_full_posix_path.
+ * windows-nat.c:
+ (GetModuleFileNameExA): Undefine for Cygwin.
+ (GetModuleFileNameExW): Define for Cygwin.
+ (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
+ Call GetModuleFileNameExW and convert path to POSIX using
+ cygwin_conv_path.
+ (windows_make_so): Always define p. Drop unused variable m.
+ Don't use Win32 functions to check file existance, rather use
+ access on Cygwin. Fetch system directory using GetSystemDirectoryW.
+ Use canonicalize_file_name to get full path.
+ (get_image_name): Use wcstombs, rather than WideCharToMultiByte
+ to convert Unicode pathname to multibyte on Cygwin. Otherwise,
+ use correct target buffer size in call to WideCharToMultiByte.
+ (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
+ (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
+ (windows_create_inferior): Convert all paths and arguments to wchar_t
+ and use CreateProcessW on Cygwin.
+ (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
+ (bad_GetModuleFileNameExA): Undefine for Cygwin.
+ (bad_GetModuleFileNameExW): Define for Cygwin.
+ (_initialize_loadable): Load GetModuleFileNameExW into
+ dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
+
+2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
+
+ PR python/11036
+ * python/py-frame.c (frapy_read_var): Add block argument and logic
+ to cope with user provided blocks.
+
+2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
+ New comment.
+
+2010-02-28 Corinna Vinschen <vinschen@redhat.com>
+
+ * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
+ (COMMON_OBS): ... to here since it's used unconditionally.
+ (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
+ (SFILES): To here.
+
+2010-02-26 David Daney <ddaney@caviumnetworks.com>
+
+ * mips-linux-tdep.c: Update struct sigframe comments.
+ (SIGFRAME_CODE_OFFSET): Delete macro.
+ (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
+ this_frame's sp.
+ (mips_linux_n32n64_sigframe_init): Same.
+
+2010-02-26 Kevin Buettner <kevinb@redhat.com>
+
+ * remote-mips.c (mips_load): Don't use pseudo-register when
+ invalidating regcache.
+
2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
* arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 6394d66..46570a6 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -202,14 +202,14 @@ SUBDIR_MI_OBS = \
mi-cmds.o mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o \
mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o \
mi-interp.o \
- mi-main.o mi-parse.o mi-getopt.o mi-common.o
+ mi-main.o mi-parse.o mi-getopt.o
SUBDIR_MI_SRCS = \
mi/mi-out.c mi/mi-console.c \
mi/mi-cmds.c mi/mi-cmd-env.c \
mi/mi-cmd-var.c mi/mi-cmd-break.c mi/mi-cmd-stack.c \
mi/mi-cmd-file.c mi/mi-cmd-disas.c mi/mi-symbol-cmds.c \
mi/mi-cmd-target.c mi/mi-interp.c \
- mi/mi-main.c mi/mi-parse.c mi/mi-getopt.c mi/mi-common.c
+ mi/mi-main.c mi/mi-parse.c mi/mi-getopt.c
SUBDIR_MI_DEPS =
SUBDIR_MI_LDFLAGS=
SUBDIR_MI_CFLAGS= \
@@ -669,6 +669,7 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c \
macrotab.c macroexp.c macrocmd.c macroscope.c main.c maint.c \
mdebugread.c memattr.c mem-break.c minsyms.c mipsread.c memory-map.c \
+ mi/mi-common.c \
objc-exp.y objc-lang.c \
objfiles.c osabi.c observer.c osdata.c \
p-exp.y p-lang.c p-typeprint.c p-valprint.c parse.c printcmd.c \
@@ -809,6 +810,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
interps.o \
main.o \
macrotab.o macrocmd.o macroexp.o macroscope.o \
+ mi-common.o \
event-loop.o event-top.o inf-loop.o completer.o \
gdbarch.o arch-utils.o gdbtypes.o osabi.o copying.o \
memattr.o mem-break.o target.o parse.o language.o buildsym.o \
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c
index 5c9e558..b9d5833 100644
--- a/gdb/amd64-linux-nat.c
+++ b/gdb/amd64-linux-nat.c
@@ -674,6 +674,39 @@ amd64_linux_siginfo_fixup (struct siginfo *native, gdb_byte *inf, int direction)
return 0;
}
+/* Get Linux/x86 target description from running target.
+
+ Value of CS segment register:
+ 1. 64bit process: 0x33.
+ 2. 32bit process: 0x23.
+ */
+
+#define AMD64_LINUX_USER64_CS 0x33
+
+static const struct target_desc *
+amd64_linux_read_description (struct target_ops *ops)
+{
+ unsigned long cs;
+ int tid;
+
+ /* GNU/Linux LWP ID's are process ID's. */
+ tid = TIDGET (inferior_ptid);
+ if (tid == 0)
+ tid = PIDGET (inferior_ptid); /* Not a threaded program. */
+
+ /* Get CS register. */
+ errno = 0;
+ cs = ptrace (PTRACE_PEEKUSER, tid,
+ offsetof (struct user_regs_struct, cs), 0);
+ if (errno != 0)
+ perror_with_name (_("Couldn't get CS register"));
+
+ if (cs == AMD64_LINUX_USER64_CS)
+ return tdesc_amd64_linux;
+ else
+ return tdesc_i386_linux;
+}
+
/* Provide a prototype to silence -Wmissing-prototypes. */
void _initialize_amd64_linux_nat (void);
@@ -712,6 +745,8 @@ _initialize_amd64_linux_nat (void)
t->to_fetch_registers = amd64_linux_fetch_inferior_registers;
t->to_store_registers = amd64_linux_store_inferior_registers;
+ t->to_read_description = amd64_linux_read_description;
+
/* Register the target. */
linux_nat_add_target (t);
linux_nat_set_new_thread (t, amd64_linux_new_thread);
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index c28eef7..4ad6dc9 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -37,6 +37,8 @@
#include "solib-svr4.h"
#include "xml-syscall.h"
+#include "features/i386/amd64-linux.c"
+
/* The syscall's XML filename for i386. */
#define XML_SYSCALL_FILENAME_AMD64 "syscalls/amd64-linux.xml"
@@ -234,26 +236,6 @@ static int amd64_linux_sc_reg_offset[] =
-1 /* %gs */
};
-/* Replacement register functions which know about %orig_rax. */
-
-static const char *
-amd64_linux_register_name (struct gdbarch *gdbarch, int reg)
-{
- if (reg == AMD64_LINUX_ORIG_RAX_REGNUM)
- return "orig_rax";
-
- return amd64_register_name (gdbarch, reg);
-}
-
-static struct type *
-amd64_linux_register_type (struct gdbarch *gdbarch, int reg)
-{
- if (reg == AMD64_LINUX_ORIG_RAX_REGNUM)
- return builtin_type (gdbarch)->builtin_int64;
-
- return amd64_register_type (gdbarch, reg);
-}
-
static int
amd64_linux_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
struct reggroup *group)
@@ -1260,10 +1242,32 @@ amd64_linux_record_signal (struct gdbarch *gdbarch,
return 0;
}
+/* Get Linux/x86 target description from core dump. */
+
+static const struct target_desc *
+amd64_linux_core_read_description (struct gdbarch *gdbarch,
+ struct target_ops *target,
+ bfd *abfd)
+{
+ asection *section = bfd_get_section_by_name (abfd, ".reg2");
+
+ if (section == NULL)
+ return NULL;
+
+ /* Linux/x86-64. */
+ return tdesc_amd64_linux;
+}
+
static void
amd64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+ const struct target_desc *tdesc = info.target_desc;
+ struct tdesc_arch_data *tdesc_data = (void *) info.tdep_info;
+ const struct tdesc_feature *feature;
+ int valid_p;
+
+ gdb_assert (tdesc_data);
tdep->gregset_reg_offset = amd64_linux_gregset_reg_offset;
tdep->gregset_num_regs = ARRAY_SIZE (amd64_linux_gregset_reg_offset);
@@ -1271,6 +1275,23 @@ amd64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
amd64_init_abi (info, gdbarch);
+ /* Reserve a number for orig_rax. */
+ set_gdbarch_num_regs (gdbarch, AMD64_LINUX_NUM_REGS);
+
+ if (! tdesc_has_registers (tdesc))
+ tdesc = tdesc_amd64_linux;
+ tdep->tdesc = tdesc;
+
+ feature = tdesc_find_feature (tdesc, "org.gnu.gdb.i386.linux");
+ if (feature == NULL)
+ return;
+
+ valid_p = tdesc_numbered_register (feature, tdesc_data,
+ AMD64_LINUX_ORIG_RAX_REGNUM,
+ "orig_rax");
+ if (!valid_p)
+ return;
+
tdep->sigtramp_p = amd64_linux_sigtramp_p;
tdep->sigcontext_addr = amd64_linux_sigcontext_addr;
tdep->sc_reg_offset = amd64_linux_sc_reg_offset;
@@ -1282,10 +1303,8 @@ amd64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* Add the %orig_rax register used for syscall restarting. */
set_gdbarch_write_pc (gdbarch, amd64_linux_write_pc);
- set_gdbarch_num_regs (gdbarch, AMD64_LINUX_NUM_REGS);
- set_gdbarch_register_name (gdbarch, amd64_linux_register_name);
- set_gdbarch_register_type (gdbarch, amd64_linux_register_type);
- set_gdbarch_register_reggroup_p (gdbarch, amd64_linux_register_reggroup_p);
+
+ tdep->register_reggroup_p = amd64_linux_register_reggroup_p;
/* Functions for 'catch syscall'. */
set_xml_syscall_file_name (XML_SYSCALL_FILENAME_AMD64);
@@ -1299,6 +1318,9 @@ amd64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* GNU/Linux uses SVR4-style shared libraries. */
set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
+ set_gdbarch_core_read_description (gdbarch,
+ amd64_linux_core_read_description);
+
/* Displaced stepping. */
set_gdbarch_displaced_step_copy_insn (gdbarch,
amd64_displaced_step_copy_insn);
@@ -1492,4 +1514,7 @@ _initialize_amd64_linux_tdep (void)
{
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
GDB_OSABI_LINUX, amd64_linux_init_abi);
+
+ /* Initialize the Linux target description */
+ initialize_tdesc_amd64_linux ();
}
diff --git a/gdb/amd64-linux-tdep.h b/gdb/amd64-linux-tdep.h
index 20a15ca..33316fb 100644
--- a/gdb/amd64-linux-tdep.h
+++ b/gdb/amd64-linux-tdep.h
@@ -31,6 +31,9 @@
/* Total number of registers for GNU/Linux. */
#define AMD64_LINUX_NUM_REGS (AMD64_LINUX_ORIG_RAX_REGNUM + 1)
+/* Linux target description. */
+extern struct target_desc *tdesc_amd64_linux;
+
/* Enum that defines the syscall identifiers for amd64 linux.
Used for process record/replay, these will be translated into
a gdb-canonical set of syscall ids in linux-record.c. */
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 2b15141..0ec60c1 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -42,6 +42,8 @@
#include "amd64-tdep.h"
#include "i387-tdep.h"
+#include "features/i386/amd64.c"
+
/* Note that the AMD64 architecture was previously known as x86-64.
The latter is (forever) engraved into the canonical system name as
returned by config.guess, and used as the name for the AMD64 port
@@ -83,47 +85,6 @@ static int amd64_dummy_call_integer_regs[] =
9 /* %r9 */
};
-/* Return the name of register REGNUM. */
-
-const char *
-amd64_register_name (struct gdbarch *gdbarch, int regnum)
-{
- if (regnum >= 0 && regnum < AMD64_NUM_REGS)
- return amd64_register_names[regnum];
-
- return NULL;
-}
-
-/* Return the GDB type object for the "standard" data type of data in
- register REGNUM. */
-
-struct type *
-amd64_register_type (struct gdbarch *gdbarch, int regnum)
-{
- if (regnum >= AMD64_RAX_REGNUM && regnum <= AMD64_RDI_REGNUM)
- return builtin_type (gdbarch)->builtin_int64;
- if (regnum == AMD64_RBP_REGNUM || regnum == AMD64_RSP_REGNUM)
- return builtin_type (gdbarch)->builtin_data_ptr;
- if (regnum >= AMD64_R8_REGNUM && regnum <= AMD64_R15_REGNUM)
- return builtin_type (gdbarch)->builtin_int64;
- if (regnum == AMD64_RIP_REGNUM)
- return builtin_type (gdbarch)->builtin_func_ptr;
- if (regnum == AMD64_EFLAGS_REGNUM)
- return i386_eflags_type (gdbarch);
- if (regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM)
- return builtin_type (gdbarch)->builtin_int32;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-02-26 22:16 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-02-26 22:16 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via c813b82173576d0901b82cce3a7854d24e76cc43 (commit)
via e3c0612364d60089f2d2fa158bf0bce446b403c6 (commit)
from ca310775e216d1c75c8da2f2fdbdd274ce36d402 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit c813b82173576d0901b82cce3a7854d24e76cc43
Merge: ca310775e216d1c75c8da2f2fdbdd274ce36d402 e3c0612364d60089f2d2fa158bf0bce446b403c6
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Fri Feb 26 23:16:38 2010 +0100
Merge remote branch 'gdb/master'
commit e3c0612364d60089f2d2fa158bf0bce446b403c6
Author: Daniel Jacobowitz <dan@debian.org>
Date: Fri Feb 26 20:46:00 2010 +0000
* arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 4 ++++
gdb/arm-tdep.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 554b743..1e16950 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
+
2010-02-26 Pedro Alves <pedro@codesourcery.com>
* NEWS: Add "New targets" section, and mention ARM Symbian
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 524e4ac..b932c81 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -2503,7 +2503,7 @@ thumb_get_next_pc (struct frame_info *frame, CORE_ADDR pc)
nextpc = get_frame_register_unsigned (frame, ARM_LR_REGNUM);
nextpc -= inst2 & 0x00ff;
}
- else if ((inst2 & 0xd000) == 0xc000 && (inst1 & 0x0380) != 0x0380)
+ else if ((inst2 & 0xd000) == 0x8000 && (inst1 & 0x0380) != 0x0380)
{
/* Conditional branch. */
if (condition_true (bits (inst1, 6, 9), status))
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-02-26 17:50 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-02-26 17:50 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via ca310775e216d1c75c8da2f2fdbdd274ce36d402 (commit)
via cf2bb4dbd0774efa59feba2a3f29924fd1866d4c (commit)
via 96c23bfd2863bcca7388653a7bc4c9f8a64a03be (commit)
via 19adc57b71e929bb4ee1b807750ce92f8f01363f (commit)
via 9e1796e9a4a9f95d2c2c580fcdce9bda794a6b42 (commit)
via b3b1da048cb26c48c6244d58cf6365162d630b06 (commit)
via 00ac3c866427a6ed7aad2f0adf74968b2f15753a (commit)
via ba2fe9e294571f3cd743e73bba95a805eb7760e0 (commit)
via 54548eb1d89b33c661e1b934e3a144ad95b8a15a (commit)
via dd54093fb676cd53ee950955adc7641af170e640 (commit)
via 843c58b91df63db4a3b8b7767bc0f62db0703252 (commit)
via 3032800e2944edf58305c955cdd80c01d1da7c4c (commit)
via 355ac0383d2738bbaefdf4fe7fdf0ee73ca49a3d (commit)
via 057e39a32e1c3452366447ef0f643f214a25699d (commit)
via 2de5199d4a8605fa2841e8519907ad086c007b4c (commit)
via 6e1af507d8d0e5f1c8d11c75438953efebb25844 (commit)
via f3baed3e4944f202f114e9e5d8780196f92892d2 (commit)
via 07b30454a1c30ce45e3fc6b664425e4855b4eb20 (commit)
via 11e54c1bd90cb4cabcde507e8d56e2724b4ca458 (commit)
via b787cf42b1bd5f6ea342e602880a82ad9bcda7d7 (commit)
via 2ce44621c197854d3eeeae52be5216136b8a414f (commit)
via 9da779365c02b4a979f58503157c0a86866d1741 (commit)
via e07f0f96488858cfca1dedbd7cb08bd48688fa5a (commit)
via db816ff7acb5565e5697639e335312f795274c96 (commit)
via ac58779be4c37e91a3698ec45c761d96e36b0074 (commit)
via c343803c424bdf125a07ad296ad54fa3dc78bf6b (commit)
via 8bf6105071ab1aa991a0761581fae80457f1a33d (commit)
via f68240a5e33eced3032b0bfca5c00be8944fd275 (commit)
via a75df5cc5dbb693f5a3d3fe1ad19e47b6b17b79e (commit)
via e0605102fdc1d9fb8ece9a153cd133629b68c130 (commit)
via dec1ff82828c0b4204098cca0098f57fbeb798a0 (commit)
via 467de4645f4a796e272b2177b371fc746c50d5f2 (commit)
via 0ecfd9a6f8fba15684db7bc4bcf47b40b23ef0d6 (commit)
via 3a929926a790230e4b3318416ee6eebb0e3e35c5 (commit)
via 3d2f6604064f5b1c97380e47a18e845d3c249916 (commit)
via d07af9c058900dd21ebb83c73368581e52ef0a7c (commit)
via 56e02e3cda921077c89036f7218ba2d7ff6a1924 (commit)
via a3e8ea1a16851333fe7edceaee56ac820fe038dc (commit)
via bd52951129aa12bbc76ea8f5e82dfd52fc84bf27 (commit)
via bc789818d9edd2a590c3ec88241a286c955a25d0 (commit)
via e1d57e45916ac9ae96db9a0e43ff813960a7e0c2 (commit)
via 21d8857dbd932f03974c637113dd41d290c9f886 (commit)
via 676f51cb9d6476a1babfde63a929337870d0f6f9 (commit)
via a755137c422f4e4d6731f88b351c019860dc29d4 (commit)
via c5f57473b148124bf0e9715e2362abf93bb981e3 (commit)
via bd0d1758171d2af069e2a277eed5e6fa65919ab5 (commit)
via 072ca5eae217783c4bb986bac3db1dd7c0b70c4b (commit)
from 5adcde54c088d5ba957133330569afa65b8aea0d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ca310775e216d1c75c8da2f2fdbdd274ce36d402
Merge: 5adcde54c088d5ba957133330569afa65b8aea0d cf2bb4dbd0774efa59feba2a3f29924fd1866d4c
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Fri Feb 26 18:48:20 2010 +0100
Merge remote branch 'gdb/master'
commit cf2bb4dbd0774efa59feba2a3f29924fd1866d4c
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Feb 26 15:03:09 2010 +0000
* NEWS: Add "New targets" section, and mention ARM Symbian
support.
commit 96c23bfd2863bcca7388653a7bc4c9f8a64a03be
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Feb 26 12:48:17 2010 +0000
* dwarf2loc.c (struct piece_closure): Remove ARCH member,
add ADDR_SIZE member.
(allocate_piece_closure): Update.
(copy_pieced_value_closure): Likewise.
(dwarf2_evaluate_loc_desc): Likewise.
(read_pieced_value): Use DWARF address size instead of
GDB's gdbarch_addr_bit as size of values on the DWARF stack.
commit 19adc57b71e929bb4ee1b807750ce92f8f01363f
Author: pmuldoon <pmuldoon>
Date: Fri Feb 26 09:08:08 2010 +0000
2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
* python/py-type.c (typy_lookup_typename): Add in block argument.
If provided restrict lookup to specified blocks.
(gdbpy_lookup_type): Likewise.
(typy_lookup_type): Likewise.
2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Types In Python): Describe block argument in
template_argument and gdb.lookup_type.
commit 9e1796e9a4a9f95d2c2c580fcdce9bda794a6b42
Author: David S. Miller <davem@redhat.com>
Date: Fri Feb 26 05:50:34 2010 +0000
gdb: Enable catch syscall test on sparc*-*-liunx and fix logic bug.
gdb/testsuite/
2010-02-25 David S. Miller <davem@davemloft.net>
* gdb.base/catch-syscall.exp: Allow to run on sparc*-*-linux and
fix logic for setting all_syscalls_numbers.
commit b3b1da048cb26c48c6244d58cf6365162d630b06
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Feb 26 00:00:33 2010 +0000
*** empty log message ***
commit 00ac3c866427a6ed7aad2f0adf74968b2f15753a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Feb 25 23:00:05 2010 +0000
daily update
commit ba2fe9e294571f3cd743e73bba95a805eb7760e0
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Feb 25 20:30:58 2010 +0000
Symbian config
gdb/
* arm-symbian-tdep.c: New.
* configure.tgt (arm*-*-symbianelf*): New target.
(*-*-symbianelf*): New OS.
* osabi.c (gdb_osabi_names): Add Symbian.
* defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
* Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
(ALLDEPFILES): Add arm-symbian-tdep.c.
commit 54548eb1d89b33c661e1b934e3a144ad95b8a15a
Author: Daniel Jacobowitz <dan@debian.org>
Date: Thu Feb 25 15:39:58 2010 +0000
* symfile.c (find_lowest_section): Include SEC_ALLOC sections.
commit dd54093fb676cd53ee950955adc7641af170e640
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Feb 25 11:15:48 2010 +0000
* config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,
mips_fix_loongson2f_jump): New variables.
(md_longopts): Add New options -mfix-loongson2f-nop/jump,
-mno-fix-loongson2f-nop/jump.
(md_parse_option): Initialize variables via above options.
(options): New enums for the above options.
(md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN.
(fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump):
New functions.
(append_insn): call fix_loongson2f().
(mips_handle_align): Replace the implicit nops.
* config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified
for the new mips_handle_align().
* doc/c-mips.texi: Document the new options.
* gas/mips/loongson-2f-2.s: New test of -mfix-loongson2f-nop.
* gas/mips/loongson-2f-2.d: Likewise.
* gas/mips/loongson-2f-3.s: New test of -mfix-loongson2f-jump.
* gas/mips/loongson-2f-3.d: Likewise.
* gas/mips/mips.exp: Run the new tests.
* opcode/mips.h (LOONGSON2F_NOP_INSN): New macro.
commit 843c58b91df63db4a3b8b7767bc0f62db0703252
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Feb 25 03:49:13 2010 +0000
bfd/
PR ld/11304
* elf.c (_bfd_elf_init_private_section_data): Rename need_group
to final_link and invert. For final link allow some flags to
differ. Don't specially allow flags to be all zero.
ld/
* ldlang.c (init_os): Remove isec param. Don't check for
bfd_section already set or call bfd_init_private_section_data
here.
(exp_init_os): Update init_os call.
(lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
flags. Call bfd_init_private_section_data here.
(map_input_to_output_sections): Tidy. Update init_os calls.
Use os->sectype to select sec flags for lang_data_statement.
commit 3032800e2944edf58305c955cdd80c01d1da7c4c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Feb 25 01:00:13 2010 +0000
* ppc-dis.c (ppc_opts): Add PPC_OPCODE_E500MC for "e500mc64".
commit 355ac0383d2738bbaefdf4fe7fdf0ee73ca49a3d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Feb 25 00:00:03 2010 +0000
*** empty log message ***
commit 057e39a32e1c3452366447ef0f643f214a25699d
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Feb 24 23:11:27 2010 +0000
* mi/mi-main.c (mi_cmd_execute): Fix typo.
commit 2de5199d4a8605fa2841e8519907ad086c007b4c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Feb 24 23:00:05 2010 +0000
daily update
commit 6e1af507d8d0e5f1c8d11c75438953efebb25844
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Feb 24 22:20:24 2010 +0000
* gdb.texinfo (Cygwin Native): Fix typo.
commit f3baed3e4944f202f114e9e5d8780196f92892d2
Author: pmuldoon <pmuldoon>
Date: Wed Feb 24 21:18:26 2010 +0000
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
* python/python.c (_initialize_python): Call
gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
gdbpy_initialize_blocks.
* python/python-internal.h: Declare struct symbol, block and
symtab_and_line. Declare block_object_type and
symbol_object_type
(gdbpy_lookup_symbol gdbpy_block_for_pc)
(symtab_and_line_to_sal_object, symtab_to_symtab_object)
(symbol_to_symbol_object, block_to_block_object)
(gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
(gdbpy_initialize_blocks ): Declare.
* python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
(frapy_select): Add methods.
(frapy_read_var): Add symbol branch.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
py-block.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-symbol.o): New rule.
(py-symtab.o): Likewise.
(py-block.o): Likewise.
* python/py-symbol.c: New file.
* python/py-symtab.c: Likewise.
* python/py-block.c: Likewise.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* Makefile.in: Add py-block and py-symbol.
* gdb.python/py-symbol.exp: New File.
* gdb.python/py-symtab.exp: New File.
* gdb.python/py-block.exp: New File.
* gdb.python/py-symbol.c: New File.
* gdb.python/py-block.c: New File.
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Frames In Python): Add block, find_sal, function
and select method descriptions.
(Python API): Add Blocks In Python, Symbols in Python and Symbol
Tables in Python to menu.
(Blocks In Python): New node.
(Symbols In Python): New node.
(Symbol Tables in Python): New node.
commit 07b30454a1c30ce45e3fc6b664425e4855b4eb20
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Feb 24 20:49:50 2010 +0000
PR gdb/11321
* inferior.h (prepare_for_detach): Declare.
(struct inferior) <detaching>: New field.
* infrun.c (prepare_for_detach): New.
(handle_inferior_event) <random signal>: Don't stop if detaching.
* target.c (target_detach): Call prepare_for_detach.
commit 11e54c1bd90cb4cabcde507e8d56e2724b4ca458
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Feb 24 20:47:22 2010 +0000
Per-process displaced stepping queue.
* infrun.c (displaced_step_ptid, displaced_step_request_queue)
(displaced_step_gdbarch, displaced_step_closure,
(displaced_step_original, displaced_step_copy): Move globals to
this...
(struct displaced_step_inferior_state): ... new structure.
(displaced_step_inferior_states): New global.
(get_displaced_stepping_state, add_displaced_stepping_state)
(remove_displaced_stepping_state, infrun_inferior_exit): New
functions.
(displaced_step_clear): Add displaced_step_inferior_state
parameter, and adjust to handle it.
(displaced_step_clear_cleanup): Parameter is now a
displaced_step_inferior_state. Adjust.
(displaced_step_prepare): Adjust.
(displaced_step_fixup, displaced_step_fixup)
(infrun_thread_ptid_changed, resume): Adjust.
(init_wait_for_inferior): Don't call displaced_step_clear.
(infrun_thread_stop_requested): Rewrite.
(_initialize_infrun): Install infrun_inferior_exit as
inferior_exit observer.
commit b787cf42b1bd5f6ea342e602880a82ad9bcda7d7
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Feb 24 17:01:50 2010 +0000
* inferior.h (ptid_match): Declare.
* infrun.c (ptid_match): New.
* remote.c (queued_stop_reply): Rewrite and use ptid_match.
(handle_notification): Add debug output.
* linux-nat.c (ptid_match): Delete.
commit 2ce44621c197854d3eeeae52be5216136b8a414f
Author: David S. Miller <davem@redhat.com>
Date: Wed Feb 24 15:14:30 2010 +0000
gdb: Add sparc*-*-linux catch syscall support.
2010-02-24 David S. Miller <davem@davemloft.net>
* gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
* syscalls/sparc-linux.xml: New.
* syscalls/sparc64-linux.xml: New.
* Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
* sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
(sparc32_linux_get_syscall_number): New function.
(sparc32_linux_init_abi): Set syscall XML file name and hook up
syscall number fetcher.
* sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
(sparc64_linux_get_syscall_number): New function.
(sparc64_linux_init_abi): Set syscall XML file name and hook up
syscall number fetcher.
commit 9da779365c02b4a979f58503157c0a86866d1741
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Feb 24 15:11:42 2010 +0000
PR binutils/6773
* arm-dis.c (arm_opcodes): Replace <prefix>addsubx with
<prefix>asx. Replace <prefix>subaddx with <prefix>sax.
(thumb32_opcodes): Likewise.
* gas/arm/arch7em.d: Replace expected disassembly of
<prefix>addsubx with <prefix>asx. Also replace <prefix>subaddx
with <prefix>sax.
* gas/arm/archv6.d: Likewise.
* gas/arm/thumb32.d: Likewise.
commit e07f0f96488858cfca1dedbd7cb08bd48688fa5a
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Feb 24 14:21:50 2010 +0000
PR binutils/10858
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
table.
commit db816ff7acb5565e5697639e335312f795274c96
Author: pmuldoon <pmuldoon>
Date: Wed Feb 24 11:11:16 2010 +0000
2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
PR python/11314
* lib/gdb.exp (skip_python_tests): New function.
* gdb.python/py-cmd.exp: Use skip_python_tests.
* gdb.python/py-frame.exp: Likewise.
* gdb.python/py-function.exp: Likewise.
* gdb.python/py-prettyprint.exp: Likewise.
* gdb.python/py-template.exp: Likewise.
* gdb.python/py-type.exp: Likewise.
* gdb.python/py-value.exp: Likewise.
commit ac58779be4c37e91a3698ec45c761d96e36b0074
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed Feb 24 07:51:44 2010 +0000
Multiexec MI
* breakpoint.c (clear_syscall_counts): Take struct inferior*.
* inferior.c (add_inferior_silent): Notify inferior_added
observer.
(delete_inferior_1): Notify inferior_removed observer.
(exit_inferior_1): Pass inferior, not pid, to observer.
(inferior_appeared): Likewise.
(add_inferior_with_spaces): New.
(add_inferior_command): Use the above.
* inferior.h (delete_inferior_1, add_inferior_with_spaces):
Declare.
* inflow.c (inflow_inferior_exit): Likewise.
* jit.c (jit_inferior_exit_hook): Likewise.
* mi/mi-cmds.c (mi_cmds): Register add-inferior and
remove-inferior.
* mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
* mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
(report_initial_inferior): New.
(mi_inferior_removed): Register the above. Make sure
inferior_added observer is called on the first inferior.
(mi_new_thread, mi_thread_exit): Thread group is now identified by
inferior number, not pid.
(mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
affected.
* mi/mi-main.c (current_context): New.
(proceed_thread_callback): Use typed closure.
Proceed everything if pid is 0. Most implementation split into
(proceed_thread): ... this.
(run_one_inferior): New.
(mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
Adjust for multiexec behaviour.
(mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
(mi_cmd_execute): Handle the 'thread-group' option here.
Do some extra checks.
* mi-parse.c (mi_parse): Handle the --all and --thread-group
options.
* mi-parse.h (struct mi_parse): New fields all and thread_group.
commit c343803c424bdf125a07ad296ad54fa3dc78bf6b
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed Feb 24 07:33:54 2010 +0000
Make -exec-run a proper MI commands.
* mi/mi-cmds.h (mi_cmd_exec_run): Declare.
* mi/mi-cmds.c (mi_cmds): Adjust.
* mi/mi-main.c (mi_cmd_exec_run): New.
commit 8bf6105071ab1aa991a0761581fae80457f1a33d
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Feb 24 01:06:27 2010 +0000
* tracepoint.h (set_traceframe_number)
(cleanup_restore_current_traceframe): Declare.
* tracepoint.c (set_traceframe_number): New.
(struct current_traceframe_cleanup): New.
(do_restore_current_traceframe_cleanup)
(restore_current_traceframe_cleanup_dtor)
(make_cleanup_restore_current_traceframe): New.
* infrun.c: Include tracepoint.h.
(fetch_inferior_event): Switch out and in of tfind mode.
commit f68240a5e33eced3032b0bfca5c00be8944fd275
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Feb 24 00:29:01 2010 +0000
* breakpoint.c (breakpoint_init_inferior): Also delete
bp_shlib_event breakpoints.
* solib-frv.c (enable_break): Remove call to
remove_solib_event_breakpoints.
* solib-svr4.c (enable_break): Ditto.
* solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
* solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
* solib-som.c (som_solib_create_inferior_hook): Ditto.
* solib-spu.c (spu_enable_break): Ditto.
commit a75df5cc5dbb693f5a3d3fe1ad19e47b6b17b79e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Feb 24 00:00:33 2010 +0000
*** empty log message ***
commit e0605102fdc1d9fb8ece9a153cd133629b68c130
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Feb 23 23:00:05 2010 +0000
daily update
commit dec1ff82828c0b4204098cca0098f57fbeb798a0
Author: mkuvyrkov <mkuvyrkov>
Date: Tue Feb 23 19:16:16 2010 +0000
* configure.ac: Check for libdl. If it is not available link against
static libthread_db.
* configure: Regenerate.
commit 467de4645f4a796e272b2177b371fc746c50d5f2
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Feb 23 17:03:50 2010 +0000
2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
* c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
commit 0ecfd9a6f8fba15684db7bc4bcf47b40b23ef0d6
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Feb 23 17:01:54 2010 +0000
2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
* varobj.c (varobj_update): Avoid non-constants in initializers.
commit 3a929926a790230e4b3318416ee6eebb0e3e35c5
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Feb 23 16:14:36 2010 +0000
* dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
handle big-endian values.
(dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
commit 3d2f6604064f5b1c97380e47a18e845d3c249916
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Feb 23 11:38:34 2010 +0000
PR 11297: Add support for 8-bit relocations to the AVR toolchain.
commit d07af9c058900dd21ebb83c73368581e52ef0a7c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Feb 23 00:00:03 2010 +0000
*** empty log message ***
commit 56e02e3cda921077c89036f7218ba2d7ff6a1924
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Feb 22 23:35:15 2010 +0000
2010-02-22 Pedro Alves <pedro@codesourcery.com>
PR9605
gdb/
* breakpoint.c (insert_bp_location): If inserting the read
watchpoint failed, fallback to an access watchpoint.
(bpstat_check_watchpoint): Stop for read watchpoint triggers even
if the value changed, if not watching the same memory for writes.
(watchpoint_locations_match): Add comment.
(update_global_location_list): Copy the location's watchpoint type.
* i386-nat.c (i386_length_and_rw_bits): It's an internal error to
handle read watchpoints here.
(i386_insert_watchpoint): Read watchpoints aren't supported.
* remote.c (remote_insert_watchpoint): Return 1 for unsupported
packets.
* target.h (target_insert_watchpoint): Update description.
2010-02-22 Pedro Alves <pedro@codesourcery.com>
PR9605
gdbserver/
* i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
handing a read watchpoint.
(i386_low_insert_watchpoint): Read watchpoints aren't supported.
2010-02-22 Pedro Alves <pedro@codesourcery.com>
PR9605
gdb/testsuite/
* gdb.base/watch-read.c, gdb.base/watch-read.exp: New files.
commit a3e8ea1a16851333fe7edceaee56ac820fe038dc
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 22 23:00:04 2010 +0000
daily update
commit bd52951129aa12bbc76ea8f5e82dfd52fc84bf27
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Feb 22 00:00:03 2010 +0000
*** empty log message ***
commit bc789818d9edd2a590c3ec88241a286c955a25d0
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Feb 21 23:00:04 2010 +0000
daily update
commit e1d57e45916ac9ae96db9a0e43ff813960a7e0c2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Feb 21 22:24:02 2010 +0000
* reloc.c (bfd_check_overflow): When forming addrmask, shift
fieldmask left by rightshift.
(_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
overflow checks.
commit 21d8857dbd932f03974c637113dd41d290c9f886
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Feb 21 00:00:33 2010 +0000
*** empty log message ***
commit 676f51cb9d6476a1babfde63a929337870d0f6f9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Feb 20 23:00:04 2010 +0000
daily update
commit a755137c422f4e4d6731f88b351c019860dc29d4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Feb 20 15:47:02 2010 +0000
Don't check STT_GNU_IFUNC on large common symbol.
2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
STT_GNU_IFUNC on large common symbol.
commit c5f57473b148124bf0e9715e2362abf93bb981e3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Feb 20 00:00:33 2010 +0000
*** empty log message ***
commit bd0d1758171d2af069e2a277eed5e6fa65919ab5
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Feb 19 23:00:04 2010 +0000
daily update
commit 072ca5eae217783c4bb986bac3db1dd7c0b70c4b
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Feb 19 22:22:48 2010 +0000
* p-typeprint.c (pascal_type_print_varspec_prefix): Update.
* m2-typeprint.c (m2_print_type): Update.
* gdbtypes.c (recursive_dump_type): Update.
(copy_type_recursive): Update.
* c-typeprint.c (c_type_print_varspec_prefix): Update.
(c_type_print_base): Update.
* gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
Remove.
(struct cplus_struct_type) <ntemplate_args>: Remove.
<struct template_arg>: Remove.
<is_dynamic>: Move earlier.
(TYPE_TEMPLATE_ARGS): Remove.
(TYPE_NTEMPLATE_ARGS): Remove.
(TYPE_TEMPLATE_ARG): Remove.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 32 ++
bfd/elf.c | 17 +-
bfd/elf32-avr.c | 23 +-
bfd/elf64-x86-64.c | 2 +-
bfd/elfxx-mips.c | 4 +-
bfd/reloc.c | 14 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 255 +++++++++++++
gdb/Makefile.in | 26 ++-
gdb/NEWS | 9 +
gdb/arm-symbian-tdep.c | 121 ++++++
gdb/breakpoint.c | 152 +++++++-
gdb/c-exp.y | 2 +-
gdb/c-typeprint.c | 21 -
gdb/configure.tgt | 6 +
gdb/defs.h | 3 +-
gdb/doc/ChangeLog | 37 ++
gdb/doc/gdb.texinfo | 408 ++++++++++++++++++++-
gdb/doc/observer.texi | 24 +-
gdb/dwarf2loc.c | 36 +-
gdb/gdb_ptrace.h | 6 +-
gdb/gdbserver/ChangeLog | 14 +
gdb/gdbserver/configure | 71 ++++-
gdb/gdbserver/configure.ac | 27 +-
gdb/gdbserver/i386-low.c | 5 +-
gdb/gdbtypes.c | 7 -
gdb/gdbtypes.h | 36 +--
gdb/i386-nat.c | 6 +-
gdb/inferior.c | 43 ++-
gdb/inferior.h | 19 +
gdb/inflow.c | 3 +-
gdb/infrun.c | 398 ++++++++++++++++-----
gdb/jit.c | 2 +-
gdb/linux-nat.c | 27 --
gdb/m2-typeprint.c | 3 -
gdb/mi/mi-cmds.c | 4 +-
gdb/mi/mi-cmds.h | 5 +-
gdb/mi/mi-interp.c | 117 +++++-
gdb/mi/mi-main.c | 252 ++++++++++---
gdb/mi/mi-parse.c | 31 ++-
gdb/mi/mi-parse.h | 2 +
gdb/osabi.c | 3 +-
gdb/p-typeprint.c | 2 -
gdb/python/py-block.c | 418 +++++++++++++++++++++
gdb/python/py-frame.c | 119 ++++++-
gdb/python/py-symbol.c | 419 +++++++++++++++++++++
gdb/python/py-symtab.c | 523 +++++++++++++++++++++++++++
gdb/python/py-type.c | 56 +++-
gdb/python/python-internal.h | 19 +
gdb/python/python.c | 12 +-
gdb/remote.c | 50 ++--
gdb/solib-darwin.c | 4 -
gdb/solib-frv.c | 4 -
gdb/solib-pa64.c | 4 -
gdb/solib-som.c | 4 -
gdb/solib-spu.c | 4 -
gdb/solib-svr4.c | 4 -
gdb/sparc-linux-tdep.c | 30 ++
gdb/sparc64-linux-tdep.c | 30 ++
gdb/symfile.c | 2 +-
gdb/syscalls/sparc-linux.xml | 344 ++++++++++++++++++
gdb/syscalls/sparc64-linux.xml | 326 +++++++++++++++++
gdb/target.c | 2 +
gdb/target.h | 7 +-
gdb/testsuite/ChangeLog | 32 ++
gdb/testsuite/gdb.base/catch-syscall.exp | 12 +-
gdb/testsuite/gdb.base/watch-read.c | 33 ++
gdb/testsuite/gdb.base/watch-read.exp | 109 ++++++
gdb/testsuite/gdb.mi/mi-nonstop.exp | 2 +-
gdb/testsuite/gdb.python/Makefile.in | 3 +-
gdb/testsuite/gdb.python/py-block.c | 41 ++
gdb/testsuite/gdb.python/py-block.exp | 79 ++++
gdb/testsuite/gdb.python/py-cmd.exp | 9 +-
gdb/testsuite/gdb.python/py-frame.exp | 9 +-
gdb/testsuite/gdb.python/py-function.exp | 9 +-
gdb/testsuite/gdb.python/py-prettyprint.exp | 10 +-
gdb/testsuite/gdb.python/py-symbol.c | 62 ++++
gdb/testsuite/gdb.python/py-symbol.exp | 132 +++++++
gdb/testsuite/gdb.python/py-symtab.exp | 73 ++++
gdb/testsuite/gdb.python/py-template.exp | 9 +-
gdb/testsuite/gdb.python/py-type.exp | 23 +-
gdb/testsuite/gdb.python/py-value.exp | 9 +-
gdb/testsuite/lib/gdb.exp | 15 +
gdb/tracepoint.c | 61 +++
gdb/tracepoint.h | 3 +
gdb/varobj.c | 18 +-
gdb/version.in | 2 +-
include/elf/ChangeLog | 19 +-
include/elf/avr.h | 3 +-
include/opcode/ChangeLog | 4 +
include/opcode/mips.h | 6 +-
opcodes/ChangeLog | 11 +
opcodes/arm-dis.c | 50 ++--
opcodes/ppc-dis.c | 4 +-
94 files changed, 4961 insertions(+), 549 deletions(-)
create mode 100644 gdb/arm-symbian-tdep.c
create mode 100644 gdb/python/py-block.c
create mode 100644 gdb/python/py-symbol.c
create mode 100644 gdb/python/py-symtab.c
create mode 100644 gdb/syscalls/sparc-linux.xml
create mode 100644 gdb/syscalls/sparc64-linux.xml
create mode 100644 gdb/testsuite/gdb.base/watch-read.c
create mode 100644 gdb/testsuite/gdb.base/watch-read.exp
create mode 100644 gdb/testsuite/gdb.python/py-block.c
create mode 100644 gdb/testsuite/gdb.python/py-block.exp
create mode 100644 gdb/testsuite/gdb.python/py-symbol.c
create mode 100644 gdb/testsuite/gdb.python/py-symbol.exp
create mode 100644 gdb/testsuite/gdb.python/py-symtab.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7ff3959..f864302 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,35 @@
+2010-02-25 Alan Modra <amodra@gmail.com>
+
+ PR ld/11304
+ * elf.c (_bfd_elf_init_private_section_data): Rename need_group
+ to final_link and invert. For final link allow some flags to
+ differ. Don't specially allow flags to be all zero.
+
+2010-02-24 Alan Modra <amodra@gmail.com>
+
+ PR binutils/10858
+ * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
+ SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
+ table.
+
+2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
+
+ PR binutils/11297
+ * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
+ (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
+
+2010-02-22 Alan Modra <amodra@gmail.com>
+
+ * reloc.c (bfd_check_overflow): When forming addrmask, shift
+ fieldmask left by rightshift.
+ (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
+ overflow checks.
+
+2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
+ STT_GNU_IFUNC on large common symbol.
+
2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_add_symbol_hook): Don't set
diff --git a/bfd/elf.c b/bfd/elf.c
index 20b82a7..dbb13d4 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6056,18 +6056,21 @@ _bfd_elf_init_private_section_data (bfd *ibfd,
{
Elf_Internal_Shdr *ihdr, *ohdr;
- bfd_boolean need_group = link_info == NULL || link_info->relocatable;
+ bfd_boolean final_link = link_info != NULL && !link_info->relocatable;
if (ibfd->xvec->flavour != bfd_target_elf_flavour
|| obfd->xvec->flavour != bfd_target_elf_flavour)
return TRUE;
- /* Don't copy the output ELF section type from input if the
- output BFD section flags have been set to something different.
- elf_fake_sections will set ELF section type based on BFD
- section flags. */
+ /* For objcopy and relocatable link, don't copy the output ELF
+ section type from input if the output BFD section flags have been
+ set to something different. For a final link allow some flags
+ that the linker clears to differ. */
if (elf_section_type (osec) == SHT_NULL
- && (osec->flags == isec->flags || !osec->flags))
+ && (osec->flags == isec->flags
+ || (final_link
+ && ((osec->flags ^ isec->flags)
+ & ~ (SEC_LINK_ONCE | SEC_LINK_DUPLICATES)) == 0)))
elf_section_type (osec) = elf_section_type (isec);
/* FIXME: Is this correct for all OS/PROC specific flags? */
@@ -6078,7 +6081,7 @@ _bfd_elf_init_private_section_data (bfd *ibfd,
SHT_GROUP section will have its elf_next_in_group pointing back
to the input group members. Ignore linker created group section.
See elfNN_ia64_object_p in elfxx-ia64.c. */
- if (need_group)
+ if (!final_link)
{
if (elf_sec_group (isec) == NULL
|| (elf_sec_group (isec)->flags & SEC_LINKER_CREATED) == 0)
diff --git a/bfd/elf32-avr.c b/bfd/elf32-avr.c
index 0b85105..92c5be9 100644
--- a/bfd/elf32-avr.c
+++ b/bfd/elf32-avr.c
@@ -473,7 +473,7 @@ static reloc_howto_type elf_avr_howto_table[] =
0xffff, /* dst_mask */
FALSE), /* pcrel_offset */
/* A low 8 bit absolute relocation of 24 bit program memory address.
- For LDI command. Will be changed when linker stubs are needed. */
+ For LDI command. Will be changed when linker stubs are needed. */
HOWTO (R_AVR_LO8_LDI_GS, /* type */
1, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
@@ -488,7 +488,7 @@ static reloc_howto_type elf_avr_howto_table[] =
0xffff, /* dst_mask */
FALSE), /* pcrel_offset */
/* A low 8 bit absolute relocation of 24 bit program memory address.
- For LDI command. Will be changed when linker stubs are needed. */
+ For LDI command. Will be changed when linker stubs are needed. */
HOWTO (R_AVR_HI8_LDI_GS, /* type */
9, /* rightshift */
1, /* size (0 = byte, 1 = short, 2 = long) */
@@ -501,7 +501,21 @@ static reloc_howto_type elf_avr_howto_table[] =
FALSE, /* partial_inplace */
0xffff, /* src_mask */
0xffff, /* dst_mask */
- FALSE) /* pcrel_offset */
+ FALSE), /* pcrel_offset */
+ /* 8 bit offset. */
+ HOWTO (R_AVR_8, /* type */
+ 0, /* rightshift */
+ 0, /* size (0 = byte, 1 = short, 2 = long) */
+ 8, /* bitsize */
+ FALSE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_bitfield,/* complain_on_overflow */
+ bfd_elf_generic_reloc, /* special_function */
+ "R_AVR_8", /* name */
+ FALSE, /* partial_inplace */
+ 0x000000ff, /* src_mask */
+ 0x000000ff, /* dst_mask */
+ FALSE), /* pcrel_offset */
};
/* Map BFD reloc types to AVR ELF reloc types. */
@@ -539,7 +553,8 @@ static const struct avr_reloc_map avr_reloc_map[] =
{ BFD_RELOC_AVR_CALL, R_AVR_CALL },
{ BFD_RELOC_AVR_LDI, R_AVR_LDI },
{ BFD_RELOC_AVR_6, R_AVR_6 },
- { BFD_RELOC_AVR_6_ADIW, R_AVR_6_ADIW }
+ { BFD_RELOC_AVR_6_ADIW, R_AVR_6_ADIW },
+ { BFD_RELOC_8, R_AVR_8 }
};
/* Meant to be filled one day with the wrap around address for the
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 373a8da..82a869a 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -4254,7 +4254,7 @@ elf64_x86_64_add_symbol_hook (bfd *abfd,
}
*secp = lcomm;
*valp = sym->st_size;
- break;
+ return TRUE;
}
if ((abfd->flags & DYNAMIC) == 0
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 6f686bb..a94e609 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -5755,9 +5755,7 @@ mips_elf_create_dynamic_relocation (bfd *output_bfd,
/* We must now calculate the dynamic symbol table index to use
in the relocation. */
- if (h != NULL
- && (!h->root.def_regular
- || (info->shared && !info->symbolic && !h->root.forced_local)))
+ if (h != NULL && ! SYMBOL_REFERENCES_LOCAL (info, &h->root))
{
indx = h->root.dynindx;
if (SGI_COMPAT (output_bfd))
diff --git a/bfd/reloc.c b/bfd/reloc.c
index dca56d9..0249662 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -1,6 +1,6 @@
/* BFD support for handling relocation entries.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -504,7 +504,7 @@ bfd_check_overflow (enum complain_overflow how,
overflow check. */
fieldmask = N_ONES (bitsize);
signmask = ~fieldmask;
- addrmask = N_ONES (addrsize) | fieldmask;
+ addrmask = N_ONES (addrsize) | (fieldmask << rightshift);
a = (relocation & addrmask) >> rightshift;;
switch (how)
@@ -1434,9 +1434,11 @@ _bfd_relocate_contents (reloc_howto_type *howto,
See also bfd_check_overflow. */
fieldmask = N_ONES (howto->bitsize);
signmask = ~fieldmask;
- addrmask = N_ONES (bfd_arch_bits_per_address (input_bfd)) | fieldmask;
+ addrmask = (N_ONES (bfd_arch_bits_per_address (input_bfd))
+ | (fieldmask << rightshift));
a = (relocation & addrmask) >> rightshift;
b = (x & howto->src_mask & addrmask) >> bitpos;
+ addrmask >>= rightshift;
switch (howto->complain_on_overflow)
{
@@ -1454,7 +1456,7 @@ _bfd_relocate_contents (reloc_howto_type *howto,
field. Note that when bfd_vma is 32 bits, a 32-bit reloc
can't overflow, which is exactly what we want. */
ss = a & signmask;
- if (ss != 0 && ss != ((addrmask >> rightshift) & signmask))
+ if (ss != 0 && ss != (addrmask & signmask))
flag = bfd_reloc_overflow;
/* We only need this next bit of code if the sign bit of B
@@ -2023,6 +2025,10 @@ ENUMX
BFD_RELOC_SPU_PPU64
ENUMX
BFD_RELOC_SPU_ADD_PIC
+ENUMX
+ BFD_RELOC_SPU_PIC18
+ENUMX
+ BFD_RELOC_SPU_STUB
ENUMDOC
SPU Relocations.
diff --git a/bfd/version.h b/bfd/version.h
index fead589..34bf6f3 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100219
+#define BFD_VERSION_DATE 20100226
#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 8d222f5..554b743 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,258 @@
+2010-02-26 Pedro Alves <pedro@codesourcery.com>
+
+ * NEWS: Add "New targets" section, and mention ARM Symbian
+ support.
+
+2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * dwarf2loc.c (struct piece_closure): Remove ARCH member,
+ add ADDR_SIZE member.
+ (allocate_piece_closure): Update.
+ (copy_pieced_value_closure): Likewise.
+ (dwarf2_evaluate_loc_desc): Likewise.
+ (read_pieced_value): Use DWARF address size instead of
+ GDB's gdbarch_addr_bit as size of values on the DWARF stack.
+
+2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
+ Tom Tromey <tromey@redhat.com>
+
+ * python/py-type.c (typy_lookup_typename): Add in block argument.
+ If provided restrict lookup to specified blocks.
+ (gdbpy_lookup_type): Likewise.
+ (typy_lookup_type): Likewise.
+
+2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
+
+ Symbian config
+
+ gdb/
+ * arm-symbian-tdep.c: New.
+ * configure.tgt (arm*-*-symbianelf*): New target.
+ (*-*-symbianelf*): New OS.
+ * osabi.c (gdb_osabi_names): Add Symbian.
+ * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
+ * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
+ (ALLDEPFILES): Add arm-symbian-tdep.c.
+
+2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
+
+2010-02-24 Pedro Alves <pedro@codesourcery.com>
+
+ * mi/mi-main.c (mi_cmd_execute): Fix typo.
+
+2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
+ Tom Tromey <tromey@redhat.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * python/python.c (_initialize_python): Call
+ gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
+ gdbpy_initialize_blocks.
+ * python/python-internal.h: Declare struct symbol, block and
+ symtab_and_line. Declare block_object_type and
+ symbol_object_type
+ (gdbpy_lookup_symbol gdbpy_block_for_pc)
+ (symtab_and_line_to_sal_object, symtab_to_symtab_object)
+ (symbol_to_symbol_object, block_to_block_object)
+ (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
+ (gdbpy_initialize_blocks ): Declare.
+ * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
+ (frapy_select): Add methods.
+ (frapy_read_var): Add symbol branch.
+ * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
+ py-block.
+ (SUBDIR_PYTHON_SRCS): Likewise.
+ (py-symbol.o): New rule.
+ (py-symtab.o): Likewise.
+ (py-block.o): Likewise.
+ * python/py-symbol.c: New file.
+ * python/py-symtab.c: Likewise.
+ * python/py-block.c: Likewise.
+
+2010-02-24 Pedro Alves <pedro@codesourcery.com>
+
+ PR gdb/11321
+
+ * inferior.h (prepare_for_detach): Declare.
+ (struct inferior) <detaching>: New field.
+ * infrun.c (prepare_for_detach): New.
+ (handle_inferior_event) <random signal>: Don't stop if detaching.
+ * target.c (target_detach): Call prepare_for_detach.
+
+2010-02-24 Pedro Alves <pedro@codesourcery.com>
+
+ Per-process displaced stepping queue.
+
+ * infrun.c (displaced_step_ptid, displaced_step_request_queue)
+ (displaced_step_gdbarch, displaced_step_closure,
+ (displaced_step_original, displaced_step_copy): Move globals to
+ this...
+ (struct displaced_step_inferior_state): ... new structure.
+ (displaced_step_inferior_states): New global.
+ (get_displaced_stepping_state, add_displaced_stepping_state)
+ (remove_displaced_stepping_state, infrun_inferior_exit): New
+ functions.
+ (displaced_step_clear): Add displaced_step_inferior_state
+ parameter, and adjust to handle it.
+ (displaced_step_clear_cleanup): Parameter is now a
+ displaced_step_inferior_state. Adjust.
+ (displaced_step_prepare): Adjust.
+ (displaced_step_fixup, displaced_step_fixup)
+ (infrun_thread_ptid_changed, resume): Adjust.
+ (init_wait_for_inferior): Don't call displaced_step_clear.
+ (infrun_thread_stop_requested): Rewrite.
+ (_initialize_infrun): Install infrun_inferior_exit as
+ inferior_exit observer.
+
+2010-02-24 Pedro Alves <pedro@codesourcery.com>
+
+ * inferior.h (ptid_match): Declare.
+ * infrun.c (ptid_match): New.
+ * remote.c (queued_stop_reply): Rewrite and use ptid_match.
+ (handle_notification): Add debug output.
+ * linux-nat.c (ptid_match): Delete.
+
+2010-02-24 David S. Miller <davem@davemloft.net>
+
+ * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
+ * syscalls/sparc-linux.xml: New.
+ * syscalls/sparc64-linux.xml: New.
+ * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
+ * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
+ (sparc32_linux_get_syscall_number): New function.
+ (sparc32_linux_init_abi): Set syscall XML file name and hook up
+ syscall number fetcher.
+ * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
+ (sparc64_linux_get_syscall_number): New function.
+ (sparc64_linux_init_abi): Set syscall XML file name and hook up
+ syscall number fetcher.
+
+2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ Multiexec MI
+
+ * breakpoint.c (clear_syscall_counts): Take struct inferior*.
+ * inferior.c (add_inferior_silent): Notify inferior_added
+ observer.
+ (delete_inferior_1): Notify inferior_removed observer.
+ (exit_inferior_1): Pass inferior, not pid, to observer.
+ (inferior_appeared): Likewise.
+ (add_inferior_with_spaces): New.
+ (add_inferior_command): Use the above.
+ * inferior.h (delete_inferior_1, add_inferior_with_spaces):
+ Declare.
+
+ * inflow.c (inflow_inferior_exit): Likewise.
+ * jit.c (jit_inferior_exit_hook): Likewise.
+
+ * mi/mi-cmds.c (mi_cmds): Register add-inferior and
+ remove-inferior.
+ * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
+ * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
+ (report_initial_inferior): New.
+ (mi_inferior_removed): Register the above. Make sure
+ inferior_added observer is called on the first inferior.
+ (mi_new_thread, mi_thread_exit): Thread group is now identified by
+ inferior number, not pid.
+ (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
+ affected.
+ * mi/mi-main.c (current_context): New.
+ (proceed_thread_callback): Use typed closure.
+ Proceed everything if pid is 0. Most implementation split into
+ (proceed_thread): ... this.
+ (run_one_inferior): New.
+ (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
+ Adjust for multiexec behaviour.
+ (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
+ (mi_cmd_execute): Handle the 'thread-group' option here.
+ Do some extra checks.
+ * mi-parse.c (mi_parse): Handle the --all and --thread-group
+ options.
+ * mi-parse.h (struct mi_parse): New fields all and thread_group.
+
+2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
+
+ Make -exec-run a proper MI commands.
+
+ * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
+ * mi/mi-cmds.c (mi_cmds): Adjust.
+ * mi/mi-main.c (mi_cmd_exec_run): New.
+
+2010-02-24 Pedro Alves <pedro@codesourcery.com>
+ Stan Shebs <stan@codesourcery.com>
+
+ * tracepoint.h (set_traceframe_number)
+ (cleanup_restore_current_traceframe): Declare.
+ * tracepoint.c (set_traceframe_number): New.
+ (struct current_traceframe_cleanup): New.
+ (do_restore_current_traceframe_cleanup)
+ (restore_current_traceframe_cleanup_dtor)
+ (make_cleanup_restore_current_traceframe): New.
+ * infrun.c: Include tracepoint.h.
+ (fetch_inferior_event): Switch out and in of tfind mode.
+
+2010-02-24 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (breakpoint_init_inferior): Also delete
+ bp_shlib_event breakpoints.
+ * solib-frv.c (enable_break): Remove call to
+ remove_solib_event_breakpoints.
+ * solib-svr4.c (enable_break): Ditto.
+ * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
+ * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
+ * solib-som.c (som_solib_create_inferior_hook): Ditto.
+ * solib-spu.c (spu_enable_break): Ditto.
+
+2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
+
+ * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
+
+2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
+
+ * varobj.c (varobj_update): Avoid non-constants in initializers.
+
+2010-02-23 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
+ handle big-endian values.
+ (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
+
+2010-02-22 Pedro Alves <pedro@codesourcery.com>
+
+ PR9605
+
+ gdb/
+ * breakpoint.c (insert_bp_location): If inserting the read
+ watchpoint failed, fallback to an access watchpoint.
+ (bpstat_check_watchpoint): Stop for read watchpoint triggers even
+ if the value changed, if not watching the same memory for writes.
+ (watchpoint_locations_match): Add comment.
+ (update_global_location_list): Copy the location's watchpoint type.
+ * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
+ handle read watchpoints here.
+ (i386_insert_watchpoint): Read watchpoints aren't supported.
+ * remote.c (remote_insert_watchpoint): Return 1 for unsupported
+ packets.
+ * target.h (target_insert_watchpoint): Update description.
+
+2010-02-19 Tom Tromey <tromey@redhat.com>
+
+ * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
+ * m2-typeprint.c (m2_print_type): Update.
+ * gdbtypes.c (recursive_dump_type): Update.
+ (copy_type_recursive): Update.
+ * c-typeprint.c (c_type_print_varspec_prefix): Update.
+ (c_type_print_base): Update.
+ * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
+ Remove.
+ (struct cplus_struct_type) <ntemplate_args>: Remove.
+ <struct template_arg>: Remove.
+ <is_dynamic>: Move earlier.
+ (TYPE_TEMPLATE_ARGS): Remove.
+ (TYPE_NTEMPLATE_ARGS): Remove.
+ (TYPE_TEMPLATE_ARG): Remove.
+
2010-02-19 Tom Tromey <tromey@redhat.com>
PR c++/8693, PR c++/9496:
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 98f42b9..6394d66 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -267,23 +267,29 @@ SUBDIR_TUI_CFLAGS= \
#
SUBDIR_PYTHON_OBS = \
python.o \
+ py-block.o \
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-02-17 16:01 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-02-17 16:01 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 36010 bytes --]
The branch, master has been updated
via 028ca042bd428446ef47cd72451e5462ebddada2 (commit)
via 398318c54fefd8e20412613e403cf43ff7aa613e (commit)
via ef5d914ca7b0ff7b3118a4afa95ef0a9c96c72ed (commit)
via 70f7b24844aa36c3609628187e4cf8b961ad0637 (commit)
via 9bda7986b31bcba4943fb262abbe5e4e86a64af8 (commit)
via 74d94577be67541784a200e92d38bcaa3df6adf7 (commit)
via 440995e23e6c1cbe1d95a607fbc2afe96b9b8108 (commit)
via 0ffbfae55adfdf8e5960e0a331d3f560005ea454 (commit)
via 25eeae047975d2f5c9b7cfe28df567e140c39888 (commit)
via 057dc844b14660a577ba62a3dfa8ab9bd2dfcb9d (commit)
via ea900af9648329d461a8829002fe6d63826a7b8c (commit)
via 64c986836f3b35e76fb377f2d55e15bd6a85bdd9 (commit)
via 6ae551d7da9171e199824d2339a2e71c11f98470 (commit)
via 67e36d48f2a31e8b475324a0333d359bb341d51a (commit)
via aeb7962a890a6ebd6bc223937670470d7c735f08 (commit)
via 2b0d300a9fd199e105501144a5a2883632eec088 (commit)
via d4276fb4f58e25c0e426d91140f09de0beaf1e2b (commit)
via f0f68e11719f68799561fef1299871f1007cd13d (commit)
via ec6579e9c6771650031096299d59b019551bffc2 (commit)
via 66f11cc3df716dd6b48056f9ae7abbfc4437e1d9 (commit)
via 383dcc343a903e7cdd5467cbb87c4bc7c56448d7 (commit)
via 72c85a087a7b6c6d41da9fb4fa7fcb7b5077ea42 (commit)
via fb5d9eef4cafb7880d07e42213509a2714170efb (commit)
via 0f7996184e9b13adab8c87b29f6b9c280c1dd6bf (commit)
via 833961f7c23d3815b1d4ba4a64a96fae3f7b17b6 (commit)
via de928c1f2f82a160b85488fcaa986905f8482074 (commit)
via 5efb5752da0afc397a23fe4a19eb8cb2f3bd8b46 (commit)
via d62624d01c9b336f74b50e3b9a53f1b33794497b (commit)
via b89320fa840142461b254e99ec32f5e0cb053152 (commit)
via a5c67f4b5ee3e522ccfacc2ff800cd42e9243c68 (commit)
via d8be1ca0736a3ff60225468bdefbc9556c97aaaf (commit)
via c60c88d25e244d2501520a554ab06300191d3bba (commit)
via 84010b340ba82ad2792e5a0764d9451101a91f34 (commit)
via abece227974721020f37e51fe8319ae9a5d1a4b6 (commit)
via 02778e3ee6b52f99209a712a5f1eb37809ad5072 (commit)
via ad3dc28ac7a047561dd7f6ae0c482b4a52baa13e (commit)
via 15152029688130df2045d1d1131cf8488e206dc6 (commit)
via 5595ac6a6c8378ad2187a66c70e0166cbf29be46 (commit)
via 205587dcaf298c8eee61808c86360e9af5edb1db (commit)
via 550b23035923da25185122c74b43a4b5d6554c8f (commit)
via 45e16cffd9bc15e3ae32918f4c53b63b5b08d53a (commit)
from 37b5c31ccae82f7f9be290048c73c2e85f9fffc5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 028ca042bd428446ef47cd72451e5462ebddada2
Merge: 37b5c31ccae82f7f9be290048c73c2e85f9fffc5 398318c54fefd8e20412613e403cf43ff7aa613e
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Wed Feb 17 10:59:38 2010 -0500
Merge remote branch 'gdb/master'
commit 398318c54fefd8e20412613e403cf43ff7aa613e
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Wed Feb 17 14:58:53 2010 +0000
* python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
PyThreadState_Swap): Avoid "statement with no effect" warning.
commit ef5d914ca7b0ff7b3118a4afa95ef0a9c96c72ed
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Feb 17 11:37:23 2010 +0000
gdb/
* solib-svr4.c (enable_break <target_auxv_search>): New variable
addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
commit 70f7b24844aa36c3609628187e4cf8b961ad0637
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Feb 17 11:02:54 2010 +0000
* Makefile.tpl: Use "-exec rm {}" rather than "-delete" to delete
the config.cache files found by the find command.
commit 9bda7986b31bcba4943fb262abbe5e4e86a64af8
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Feb 17 10:39:10 2010 +0000
2010-02-17 Tristan Gingold <gingold@adacore.com>
Petr HluzÃ<petr.hluzin@gmail.com>
* avr-tdep.c (avr_scan_prologue): Convert an if statement to a
gdb_assert. Fix info->size for SIG prologue.
commit 74d94577be67541784a200e92d38bcaa3df6adf7
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Feb 17 10:12:48 2010 +0000
2010-02-17 Tristan Gingold <gingold@adacore.com>
* dmt.h, dst.h, eeom.h, egps.h, egsd.h, egst.h, egsy.h: New Files.
* eiaf.h, eicp.h, eiha.h, eihd.h, eihi.h, eihs.h, eihvn.h: Ditto.
* eisd.h, emh.h, eobjrec.h, esdf.h, esrf.h, etir.h, shl.h: Ditto.
commit 440995e23e6c1cbe1d95a607fbc2afe96b9b8108
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Feb 17 10:05:50 2010 +0000
PR 11238
* Makefile.tpl (local-distclean): Also remove config.cache files in
sub-directories as there may not be Makefiles present in the
sub-directories.
* Makefile.in: Regenerate.
* configure.ac: Revert previous delta.
* configure: Regenerate.
commit 0ffbfae55adfdf8e5960e0a331d3f560005ea454
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Feb 17 00:00:03 2010 +0000
*** empty log message ***
commit 25eeae047975d2f5c9b7cfe28df567e140c39888
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Feb 16 23:00:04 2010 +0000
daily update
commit 057dc844b14660a577ba62a3dfa8ab9bd2dfcb9d
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 21:26:47 2010 +0000
gdb/testsuite/
* gdb.xml/tdesc-arch.exp, gdb.xml/tdesc-regs.exp: Rewrite file
creation to support remote host testing.
commit ea900af9648329d461a8829002fe6d63826a7b8c
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 21:22:46 2010 +0000
gdb/testsuite/
* gdb.base/valgrind-db-attach.exp: Use unsupported instead of xfail.
Recognize "command not found".
commit 64c986836f3b35e76fb377f2d55e15bd6a85bdd9
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 21:20:13 2010 +0000
gdb/testsuite/
* gdb.arch/thumb2-it.exp (test_it_break): Handle hardware
single-stepping.
commit 6ae551d7da9171e199824d2339a2e71c11f98470
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 21:18:46 2010 +0000
gdb/
* infcmd.c (show_inferior_tty_command): Check for NULL.
Correct output message.
commit 67e36d48f2a31e8b475324a0333d359bb341d51a
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 21:13:10 2010 +0000
* gdb.python/py-value.exp (test_value_in_inferior): Skip arg0 test
if arguments are not supported.
commit aeb7962a890a6ebd6bc223937670470d7c735f08
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 21:09:32 2010 +0000
gdb/testsuite/
* gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to
be const or non-const.
commit 2b0d300a9fd199e105501144a5a2883632eec088
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 21:08:10 2010 +0000
gdb/testsuite/
* gdb.mi/mi-break.exp (test_breakpoint_commands): Use
mi_send_resuming_command to send -exec-continue.
commit d4276fb4f58e25c0e426d91140f09de0beaf1e2b
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 20:51:49 2010 +0000
gdb/
* linespec.c (decode_line_1): Handle FILE:FUNCTION even if
FUNCTION contains parentheses. Improve removal of a trailing
single quote.
gdb/testsuite/
* gdb.base/list.exp (test_list_filename_and_function): Add test
with single quotes.
* gdb.cp/overload.cc (intToChar): Rewrite onto one line for easy
matching.
* gdb.cp/overload.exp: Add tests with filename, function, and quotes.
Add KFAIL'd tests for PR gdb/11289.
commit f0f68e11719f68799561fef1299871f1007cd13d
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 20:48:51 2010 +0000
gdb/
* gcore.c (do_bfd_delete_cleanup): New function.
(gcore_command): Use it. Discard the cleanup after success.
(gcore_copy_callback): Delete dead code.
commit ec6579e9c6771650031096299d59b019551bffc2
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 20:28:06 2010 +0000
gdb/
* symfile.c (addr_info_make_relative): Always use
find_lowest_section.
commit 66f11cc3df716dd6b48056f9ae7abbfc4437e1d9
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 20:23:43 2010 +0000
gdb/testsuite/
* gdb.cp/cpcompletion.exp: Specify source file name explicitly.
commit 383dcc343a903e7cdd5467cbb87c4bc7c56448d7
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 20:18:53 2010 +0000
gdb/testsuite/
* gdb.base/comp-dir/subdir/dummy.txt: New file.
* gdb.base/completion.exp: Use comp-dir/subdir instead of creating
a temporary directory.
commit 72c85a087a7b6c6d41da9fb4fa7fcb7b5077ea42
Author: Daniel Jacobowitz <dan@debian.org>
Date: Tue Feb 16 20:13:14 2010 +0000
gdb/testsuite/
* gdb.base/charset.exp: Use a single regular expression to match
show host-charset and show target-charset output.
commit fb5d9eef4cafb7880d07e42213509a2714170efb
Author: swagiaal <swagiaal>
Date: Tue Feb 16 15:52:46 2010 +0000
2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
* NEWS: Added entry for namespace fixes.
commit 0f7996184e9b13adab8c87b29f6b9c280c1dd6bf
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Feb 16 00:00:03 2010 +0000
*** empty log message ***
commit 833961f7c23d3815b1d4ba4a64a96fae3f7b17b6
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 15 23:00:04 2010 +0000
daily update
commit de928c1f2f82a160b85488fcaa986905f8482074
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Feb 15 20:48:57 2010 +0000
* dwarf2read.c (guess_structure_name): Allocate name on the
objfile obstack.
commit 5efb5752da0afc397a23fe4a19eb8cb2f3bd8b46
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Feb 15 20:42:28 2010 +0000
* c-typeprint.c (c_type_print_base): Reverse order of test.
commit d62624d01c9b336f74b50e3b9a53f1b33794497b
Author: Dave Korn <dave.korn@artimi.com>
Date: Mon Feb 15 19:25:47 2010 +0000
bfd/ChangeLog:
PR binutils/11280
* configure.host (*-*-solaris2.11): Add host define to select
valid default code page for windres/windmc on solaris.
commit b89320fa840142461b254e99ec32f5e0cb053152
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Feb 15 17:37:35 2010 +0000
gdb/
* solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
initialize it from ELF BFD. Extend the prelink condition by it.
commit a5c67f4b5ee3e522ccfacc2ff800cd42e9243c68
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Feb 15 17:35:48 2010 +0000
gdb/
* defs.h (parse_pid_to_attach): New.
* utils.c (parse_pid_to_attach): New.
* darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
* gnu-nat.c (gnu_attach): Likewise.
* nto-procfs.c (procfs_attach): Likewise.
* procfs.c (procfs_attach): Likewise.
* windows-nat.c (windows_attach): Likewise.
* inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
* inf-ttrace.c (inf_ttrace_attach): Likewise.
* remote.c (extended_remote_attach_1): Likewise. New comment on getpid
check.
gdb/testsuite/
* gdb.base/attach.exp (attach to nonsense is prohibited): Make the
"Illegal process-id" expect string more exact.
(attach to digits-starting nonsense is prohibited): New.
commit d8be1ca0736a3ff60225468bdefbc9556c97aaaf
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Feb 15 10:53:35 2010 +0000
PR 11238
* configure.ac: Delete config.cache files in sub-directories when
deleting Makefiles.
* configure: Regenerate.
commit c60c88d25e244d2501520a554ab06300191d3bba
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Feb 15 10:37:54 2010 +0000
Sync from gcc mainline.
commit 84010b340ba82ad2792e5a0764d9451101a91f34
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Feb 15 10:09:36 2010 +0000
Updated Vietnamese translation.
commit abece227974721020f37e51fe8319ae9a5d1a4b6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Feb 15 00:00:02 2010 +0000
*** empty log message ***
commit 02778e3ee6b52f99209a712a5f1eb37809ad5072
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Feb 14 23:00:05 2010 +0000
daily update
commit ad3dc28ac7a047561dd7f6ae0c482b4a52baa13e
Author: Andreas Schwab <schwab@suse.de>
Date: Sun Feb 14 10:00:46 2010 +0000
* ppc-instructions: Fix missing assignment in last change.
commit 15152029688130df2045d1d1131cf8488e206dc6
Author: monaka <monaka>
Date: Sun Feb 14 07:37:11 2010 +0000
* configure.in: Check if the host has getopt.h.
* configure: Regenerate.
* config.in: Regenerate.
* main.c: Include config.h.
Use HAVE_STDLIB_H, HAVE_UNISTD_H, HAVE_GETOPT_H.
Include getopt.h in case HAVE_GETOPT_H is defined.
commit 5595ac6a6c8378ad2187a66c70e0166cbf29be46
Author: monaka <monaka>
Date: Sun Feb 14 07:15:57 2010 +0000
* interp.c: Don't include sysdep.h.
Include stdio.h and errno.h.
Include string.h strings.h stdlib.h sys/stat.h if present.
commit 205587dcaf298c8eee61808c86360e9af5edb1db
Author: monaka <monaka>
Date: Sun Feb 14 06:50:44 2010 +0000
* MAINTAINERS: Add myself for write after approval privileges.
commit 550b23035923da25185122c74b43a4b5d6554c8f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Feb 14 00:00:03 2010 +0000
*** empty log message ***
commit 45e16cffd9bc15e3ae32918f4c53b63b5b08d53a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Feb 13 23:00:04 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 25 ++++
Makefile.in | 1 +
Makefile.tpl | 1 +
bfd/ChangeLog | 10 ++
bfd/configure.host | 6 +
bfd/po/vi.po | 8 +-
bfd/version.h | 2 +-
config/ChangeLog | 4 +
config/elf.m4 | 27 ++++
configure | 82 ++++++++----
configure.ac | 48 ++++---
gdb/ChangeLog | 74 ++++++++++
gdb/MAINTAINERS | 1 +
gdb/NEWS | 8 +
gdb/avr-tdep.c | 6 +-
gdb/c-typeprint.c | 2 +-
gdb/darwin-nat.c | 7 +-
gdb/defs.h | 2 +
gdb/dwarf2read.c | 2 +-
gdb/gcore.c | 22 ++-
gdb/gnu-nat.c | 7 +-
gdb/inf-ptrace.c | 10 +--
gdb/inf-ttrace.c | 9 +-
gdb/infcmd.c | 8 +-
gdb/linespec.c | 44 +++++--
gdb/nto-procfs.c | 5 +-
gdb/procfs.c | 4 +-
gdb/python/python-internal.h | 4 +-
gdb/remote.c | 11 +-
gdb/solib-svr4.c | 37 +++++-
gdb/symfile.c | 8 +-
gdb/testsuite/ChangeLog | 60 ++++++++
gdb/testsuite/gdb.arch/thumb2-it.exp | 8 +-
gdb/testsuite/gdb.base/attach.exp | 23 +++-
gdb/testsuite/gdb.base/charset.exp | 47 ++-----
gdb/testsuite/gdb.base/comp-dir/subdir/dummy.txt | 1 +
gdb/testsuite/gdb.base/completion.exp | 5 +-
gdb/testsuite/gdb.base/list.exp | 3 +
gdb/testsuite/gdb.base/valgrind-db-attach.exp | 12 +-
gdb/testsuite/gdb.cp/cpcompletion.exp | 3 +-
gdb/testsuite/gdb.cp/overload.cc | 5 +-
gdb/testsuite/gdb.cp/overload.exp | 19 +++-
gdb/testsuite/gdb.mi/mi-break.exp | 7 +-
gdb/testsuite/gdb.python/py-value.exp | 4 +-
gdb/testsuite/gdb.xml/tdesc-arch.exp | 13 ++-
gdb/testsuite/gdb.xml/tdesc-regs.exp | 15 +-
gdb/utils.c | 20 +++
gdb/version.in | 2 +-
gdb/windows-nat.c | 5 +-
include/vms/ChangeLog | 5 +
include/vms/dmt.h | 45 ++++++
include/vms/dst.h | 165 ++++++++++++++++++++++
include/vms/eeom.h | 60 ++++++++
include/vms/egps.h | 50 +++++++
include/vms/egsd.h | 61 ++++++++
include/vms/egst.h | 39 +++++
include/vms/egsy.h | 54 +++++++
include/vms/eiaf.h | 80 +++++++++++
include/vms/eicp.h | 38 +++++
include/vms/eiha.h | 50 +++++++
include/vms/eihd.h | 140 ++++++++++++++++++
include/vms/eihi.h | 50 +++++++
include/vms/eihs.h | 63 ++++++++
include/vms/eihvn.h | 56 ++++++++
include/vms/eisd.h | 95 +++++++++++++
include/vms/emh.h | 72 ++++++++++
include/vms/eobjrec.h | 48 +++++++
include/vms/esdf.h | 39 +++++
include/vms/esrf.h | 34 +++++
include/vms/etir.h | 114 +++++++++++++++
include/vms/shl.h | 51 +++++++
opcodes/ChangeLog | 4 +
opcodes/po/vi.po | 8 +-
sim/ppc/ChangeLog | 4 +
sim/ppc/ppc-instructions | 1 +
sim/rx/ChangeLog | 9 ++
sim/rx/config.in | 107 ++++++++++++++
sim/rx/configure | 13 ++
sim/rx/configure.in | 1 +
sim/rx/main.c | 8 +
sim/sh/ChangeLog | 6 +
sim/sh/interp.c | 19 +++-
82 files changed, 2123 insertions(+), 203 deletions(-)
create mode 100644 config/elf.m4
create mode 100644 gdb/testsuite/gdb.base/comp-dir/subdir/dummy.txt
create mode 100644 include/vms/ChangeLog
create mode 100644 include/vms/dmt.h
create mode 100644 include/vms/dst.h
create mode 100644 include/vms/eeom.h
create mode 100644 include/vms/egps.h
create mode 100644 include/vms/egsd.h
create mode 100644 include/vms/egst.h
create mode 100644 include/vms/egsy.h
create mode 100644 include/vms/eiaf.h
create mode 100644 include/vms/eicp.h
create mode 100644 include/vms/eiha.h
create mode 100644 include/vms/eihd.h
create mode 100644 include/vms/eihi.h
create mode 100644 include/vms/eihs.h
create mode 100644 include/vms/eihvn.h
create mode 100644 include/vms/eisd.h
create mode 100644 include/vms/emh.h
create mode 100644 include/vms/eobjrec.h
create mode 100644 include/vms/esdf.h
create mode 100644 include/vms/esrf.h
create mode 100644 include/vms/etir.h
create mode 100644 include/vms/shl.h
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 7d8f7f2..eed5123 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+2010-02-17 Nick Clifton <nickc@redhat.com>
+
+ PR 11238
+ * Makefile.tpl (local-distclean): Also remove config.cache files in
+ sub-directories as there may not be Makefiles present in the
+ sub-directories.
+ * Makefile.tpl: Use "-exec rm {}" rather than "-delete" to delete
+ the config.cache files found by the find command.
+
+ * Makefile.in: Regenerate.
+ * configure.ac: Revert previous delta.
+ * configure: Regenerate.
+
+2010-02-15 Nick Clifton <nickc@redhat.com>
+
+ PR 11238
+ * configure.ac: Delete config.cache files in sub-directories when
+ deleting Makefiles.
+ * configure: Regenerate.
+
+2010-02-15 Nick Clifton <nickc@redhat.com>
+
+ * configure.ac: Sync from gcc.
+ * configure: Regenerate.
+
2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sync from gcc:
diff --git a/Makefile.in b/Makefile.in
index 8f9be0c..c9ff0e5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2658,6 +2658,7 @@ local-distclean:
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
-rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
+ -find . -name config.cache -exec rm -f {} \; 2>/dev/null
local-maintainer-clean:
@echo "This command is intended for maintainers to use;"
diff --git a/Makefile.tpl b/Makefile.tpl
index 889c040..98b526c 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -771,6 +771,7 @@ local-distclean:
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
-rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
+ -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
local-maintainer-clean:
@echo "This command is intended for maintainers to use;"
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a3bec44..3ec31fe 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,13 @@
+2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ PR binutils/11280
+ * configure.host (*-*-solaris2.11): Add host define to select
+ valid default code page for windres/windmc on solaris.
+
+2010-02-15 Nick Clifton <nickc@redhat.com>
+
+ * po/vi.po: Updated Vietnamese translation.
+
2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
* elf32-arm.c (elf32_arm_output_arch_local_syms): add
diff --git a/bfd/configure.host b/bfd/configure.host
index 11b42e0..eb7bfe9 100644
--- a/bfd/configure.host
+++ b/bfd/configure.host
@@ -56,6 +56,12 @@ mips*-*-riscos*) HDEFINES="-G 4" ;;
m68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;;
+# Some Solaris systems (osol0906 at least) have a libc that doesn't recognise
+# the "MS-ANSI" code page name, so we define an override for CP_ACP (sets the
+# default code page used by windres/windmc when not specified by a commandline
+# option) to select the "WINDOWS-1252" name instead. See PR11280 for details.
+*-*-solaris2.11) HDEFINES=-DCP_ACP=1 ;;
+
*-*-windows*)
HOST_64BIT_TYPE=__int64
HOST_U_64BIT_TYPE="unsigned __int64"
diff --git a/bfd/po/vi.po b/bfd/po/vi.po
index 8664ce7..102a4c1 100644
--- a/bfd/po/vi.po
+++ b/bfd/po/vi.po
@@ -1,15 +1,15 @@
# Vietnamese translation for BFD.
-# Copyright © 2009 Free Software Foundation, Inc.
+# Copyright © 2010 Free Software Foundation, Inc.
# This file is distributed under the same license as the binutils package.
# Phần VÄ©nh Thá»nh <teppi@gmail.com>, 2005.
-# Clytie Siddall <clytie@riverland.net.au>, 2008-2009.
+# Clytie Siddall <clytie@riverland.net.au>, 2008-2010.
#
msgid ""
msgstr ""
-"Project-Id-Version: bfd 2.19.90\n"
+"Project-Id-Version: bfd 2.20\n"
"Report-Msgid-Bugs-To: bug-binutils@gnu.org\n"
"POT-Creation-Date: 2009-09-07 14:05+0200\n"
-"PO-Revision-Date: 2009-09-18 16:56+0930\n"
+"PO-Revision-Date: 2010-02-13 19:00+1030\n"
"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
"MIME-Version: 1.0\n"
diff --git a/bfd/version.h b/bfd/version.h
index df75bf5..8afccd5 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100213
+#define BFD_VERSION_DATE 20100217
#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/config/ChangeLog b/config/ChangeLog
index 9e524fc..9593e9a 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-15 Nick Clifton <nickc@redhat.com>
+
+ * elf.m4: Import from gcc mainline.
+
2009-11-30 Joseph Myers <joseph@codesourcery.com>
* largefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and
diff --git a/config/elf.m4 b/config/elf.m4
new file mode 100644
index 0000000..44d0249
--- /dev/null
+++ b/config/elf.m4
@@ -0,0 +1,27 @@
+dnl Copyright (C) 2010 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl From Paolo Bonzini.
+
+dnl usage: ACX_ELF_TARGET_IFELSE([if-elf], [if-not-elf])
+AC_DEFUN([ACX_ELF_TARGET_IFELSE], [
+AC_REQUIRE([AC_CANONICAL_TARGET])
+
+target_elf=no
+case $target in
+ *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
+ *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
+ alpha*-dec-osf* | *-interix*)
+ target_elf=no
+ ;;
+ *)
+ target_elf=yes
+ ;;
+esac
+
+AS_IF([test $target_elf = yes], [$1], [$2])
+])
diff --git a/configure b/configure
index e6cde58..fd65298 100755
--- a/configure
+++ b/configure
@@ -684,8 +684,8 @@ clooginc
clooglibs
pplinc
ppllibs
-poststage1_libs
poststage1_ldflags
+poststage1_libs
stage1_libs
stage1_ldflags
extra_mpc_mpfr_configure_flags
@@ -797,8 +797,8 @@ with_gmp_lib
with_host_libstdcxx
with_stage1_ldflags
with_stage1_libs
-with_boot_ldflags
with_boot_libs
+with_boot_ldflags
with_ppl
with_ppl_include
with_ppl_lib
@@ -1532,8 +1532,8 @@ Optional Packages:
when linking with PPL
--with-stage1-ldflags=FLAGS Linker flags for stage1
-with-stage1-libs=LIBS Libraries for stage1
- --with-boot-ldflags=FLAGS Linker flags for stage2 and later
--with-boot-libs=LIBS Libraries for stage2 and later
+ --with-boot-ldflags=FLAGS Linker flags for stage2 and later
--with-ppl=PATH Specify prefix directory for the installed PPL package
Equivalent to --with-ppl-include=PATH/include
plus --with-ppl-lib=PATH/lib
@@ -3261,6 +3261,7 @@ case "${target}" in
case "${target}" in
i*86-*-*) ;;
alpha*-*-*) ;;
+ x86_64-*-*) ;;
*)
noconfigdirs="$noconfigdirs ${libgcj}"
;;
@@ -5738,25 +5739,6 @@ fi
-# Linker flags to use for stage2 and later builds.
-
-# Check whether --with-boot-ldflags was given.
-if test "${with_boot_ldflags+set}" = set; then :
- withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
- poststage1_ldflags=
- else
- poststage1_ldflags=$withval
- fi
-else
- if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
- poststage1_ldflags=-static-libstdc++
- else
- poststage1_ldflags=
- fi
-fi
-
-
-
# Libraries to use for stage2 and later builds. This defaults to the
# argument passed to --with-host-libstdcxx.
@@ -5773,6 +5755,27 @@ fi
+# Linker flags to use for stage2 and later builds.
+
+# Check whether --with-boot-ldflags was given.
+if test "${with_boot_ldflags+set}" = set; then :
+ withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
+ poststage1_ldflags=
+ else
+ poststage1_ldflags=$withval
+ fi
+else
+ poststage1_ldflags=
+ # With --enable-build-with-cxx, default to linking libstdc++ and
+ # libgcc statically. But if the user explicitly specified the
+ # libraries to use, trust that they are doing what they want.
+ if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
+ poststage1_ldflags="-static-libstdc++ -static-libgcc"
+ fi
+fi
+
+
+
# Check for PPL
ppl_major_version=0
ppl_minor_version=10
@@ -5927,8 +5930,8 @@ fi
if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
-$as_echo_n "checking for correct version of CLooG... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
+$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "cloog/cloog.h"
@@ -5936,7 +5939,7 @@ int
main ()
{
- #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
+ #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
choke me
#endif
@@ -5968,6 +5971,35 @@ else
fi
+
+
+
+target_elf=no
+case $target in
+ *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
+ *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
+ alpha*-dec-osf* | *-interix*)
+ target_elf=no
+ ;;
+ *)
+ target_elf=yes
+ ;;
+esac
+
+if test $target_elf = yes; then :
+
+else
+ if test x"$default_enable_lto" = x"yes" ; then
+ enable_lto=no
+else
+ if test x"$enable_lto" = x"yes"; then
+ as_fn_error "LTO support requires an ELF target." "$LINENO" 5
+ fi
+fi
+default_enable_lto=no
+fi
+
+
if test x"$enable_lto" = x"yes" ; then
# Make sure that libelf.h and gelf.h are available.
diff --git a/configure.ac b/configure.ac
index be6337b..3464166 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,7 @@
m4_include(config/acx.m4)
m4_include(config/override.m4)
m4_include(config/proginstall.m4)
+m4_include(config/elf.m4)
m4_include([libtool.m4])
m4_include([ltoptions.m4])
m4_include([ltsugar.m4])
@@ -497,6 +498,7 @@ case "${target}" in
case "${target}" in
i*86-*-*) ;;
alpha*-*-*) ;;
+ x86_64-*-*) ;;
*)
noconfigdirs="$noconfigdirs ${libgcj}"
;;
@@ -1475,21 +1477,6 @@ AC_ARG_WITH(stage1-libs,
[stage1_libs=$with_host_libstdcxx])
AC_SUBST(stage1_libs)
-# Linker flags to use for stage2 and later builds.
-AC_ARG_WITH(boot-ldflags,
-[ --with-boot-ldflags=FLAGS Linker flags for stage2 and later],
-[if test "$withval" = "no" -o "$withval" = "yes"; then
- poststage1_ldflags=
- else
- poststage1_ldflags=$withval
- fi],
-[if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
- poststage1_ldflags=-static-libstdc++
- else
- poststage1_ldflags=
- fi])
-AC_SUBST(poststage1_ldflags)
-
# Libraries to use for stage2 and later builds. This defaults to the
# argument passed to --with-host-libstdcxx.
AC_ARG_WITH(boot-libs,
@@ -1502,6 +1489,23 @@ AC_ARG_WITH(boot-libs,
[poststage1_libs=$with_host_libstdcxx])
AC_SUBST(poststage1_libs)
+# Linker flags to use for stage2 and later builds.
+AC_ARG_WITH(boot-ldflags,
+[ --with-boot-ldflags=FLAGS Linker flags for stage2 and later],
+[if test "$withval" = "no" -o "$withval" = "yes"; then
+ poststage1_ldflags=
+ else
+ poststage1_ldflags=$withval
+ fi],
+[poststage1_ldflags=
+ # With --enable-build-with-cxx, default to linking libstdc++ and
+ # libgcc statically. But if the user explicitly specified the
+ # libraries to use, trust that they are doing what they want.
+ if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
+ poststage1_ldflags="-static-libstdc++ -static-libgcc"
+ fi])
+AC_SUBST(poststage1_ldflags)
+
# Check for PPL
ppl_major_version=0
ppl_minor_version=10
@@ -1605,9 +1609,9 @@ ENABLE_CLOOG_CHECK=yes)
if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
- AC_MSG_CHECKING([for correct version of CLooG])
+ AC_MSG_CHECKING([for version 0.15.5 (or later revision) of CLooG])
AC_TRY_COMPILE([#include "cloog/cloog.h"],[
- #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
+ #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
choke me
#endif
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); clooglibs= ; clooginc= ])
@@ -1624,6 +1628,16 @@ AC_ARG_ENABLE(lto,
enable_lto=$enableval,
enable_lto=yes; default_enable_lto=yes)
+ACX_ELF_TARGET_IFELSE([],
+if test x"$default_enable_lto" = x"yes" ; then
+ enable_lto=no
+else
+ if test x"$enable_lto" = x"yes"; then
+ AC_MSG_ERROR([LTO support requires an ELF target.])
+ fi
+fi
+default_enable_lto=no)
+
if test x"$enable_lto" = x"yes" ; then
# Make sure that libelf.h and gelf.h are available.
AC_ARG_WITH(libelf, [ --with-libelf=PATH Specify prefix directory for the installed libelf package
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5181d4d..c510a58 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,77 @@
+2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
+ PyThreadState_Swap): Avoid "statement with no effect" warning.
+
+2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (enable_break <target_auxv_search>): New variable
+ addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
+
+2010-02-17 Tristan Gingold <gingold@adacore.com>
+ Petr HluzÃn <petr.hluzin@gmail.com>
+
+ * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
+ gdb_assert. Fix info->size for SIG prologue.
+
+2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * infcmd.c (show_inferior_tty_command): Check for NULL.
+ Correct output message.
+
+2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
+ FUNCTION contains parentheses. Improve removal of a trailing
+ single quote.
+
+2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gcore.c (do_bfd_delete_cleanup): New function.
+ (gcore_command): Use it. Discard the cleanup after success.
+ (gcore_copy_callback): Delete dead code.
+
+2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * symfile.c (addr_info_make_relative): Always use
+ find_lowest_section.
+
+2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * NEWS: Added entry for namespace fixes.
+
+2010-02-15 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (guess_structure_name): Allocate name on the
+ objfile obstack.
+
+2010-02-15 Tom Tromey <tromey@redhat.com>
+
+ * c-typeprint.c (c_type_print_base): Reverse order of test.
+
+2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
+ initialize it from ELF BFD. Extend the prelink condition by it.
+
+2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * defs.h (parse_pid_to_attach): New.
+ * utils.c (parse_pid_to_attach): New.
+ * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
+ * gnu-nat.c (gnu_attach): Likewise.
+ * nto-procfs.c (procfs_attach): Likewise.
+ * procfs.c (procfs_attach): Likewise.
+ * windows-nat.c (windows_attach): Likewise.
+ * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
+ * inf-ttrace.c (inf_ttrace_attach): Likewise.
+ * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
+ check.
+
+2010-02-14 Masaki Muranaka <monaka@monami-software.com>
+
+ * MAINTAINERS: Add myself for write after approval privileges.
+
2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
* solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-02-13 22:51 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-02-13 22:51 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 37b5c31ccae82f7f9be290048c73c2e85f9fffc5 (commit)
via 59ec84e6bdc758158a5043cce90320ceab786eb7 (commit)
via 1f7c8203fe01165c0e4fd04f37c42bfc92013dc3 (commit)
via f02842e73c7abed3e77be88cb5b5d87df174bd60 (commit)
via 7f5fe81c4a076d33cf5b0725e3ada7fb4fcd7fbe (commit)
via 9f20db258493a7b37ac5da11c66c4ad7cf47dc53 (commit)
via d56e6f9d7a223b2acfb2de2d78265f5afb21f67b (commit)
via eca2228ba5a05545eaee1ba256d482fb606225b0 (commit)
via ee9af7804cf3aa2d01e005f024ab2f44bc7983d1 (commit)
via 1d06b9ebc52e330cc045a277e821fe52a628890d (commit)
via d069ae5b6a0e1a93b600268d6eba6ab253824a5d (commit)
via 71fadacfac822c161ba8410d8e9254063e969f2e (commit)
via 57095064e159c09ee2af3c8bd8ff002258c0782f (commit)
via 6b51955cbec69cd2605fe09ee0eb79b5092e846d (commit)
via 86abe3f6a8811e6b0b22233422702ad4aa146086 (commit)
via d06a71829478d8c250e131eaf06640f13e193687 (commit)
via 3d0bdcd4069504b30e5e90dfb34ecc49bb8bc716 (commit)
via b7783d93ed7e5b59b07b002e30ce65e074ec2f1f (commit)
via 715ab176efb97cd57c6e5d99a19a90a39b042586 (commit)
via 7427df42f9c7dffbdfcf5d6a8b36ec080c4b6ec6 (commit)
via 8fce282e0182d70026d07c8cbc26a56d2a2e84e3 (commit)
via 4481527da488fd6703315d72077dcc019d7c89b1 (commit)
via bff503e7a6e2e821483f34219940bed7fd7a194c (commit)
via 63a17d3bde774b7cff5c6531219861ba8b43e5d2 (commit)
via f09f824e6e2a3b2aabe07905be8554a5999b26aa (commit)
via 36663e6f040ca515380fc95aa80e162f4f748f91 (commit)
via 415267d28ef90ab39995d6659bf7a0e3d925201e (commit)
via 33e6eadefb7cc3b47dec9e2049c4121cf69e0a60 (commit)
via bacbb3545e164203e005e28b36c2b206b0228f2e (commit)
via dec1097401c00231536294d57de3318cd68e724f (commit)
via 8f3a0977193da2f1ad128b56a6e5d00d45d532f3 (commit)
via 490305e9ae294ad8d0129fbd32add846d7324156 (commit)
via 29358440d19f9907e482575b6a2bb8b8733d0ebd (commit)
via 12fb15aa6a46cb01ac0c70dd7b9cc3f1094d9428 (commit)
from b97aedc0ebe8e565b86b700acea4e4dc9f4c6308 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 37b5c31ccae82f7f9be290048c73c2e85f9fffc5
Merge: b97aedc0ebe8e565b86b700acea4e4dc9f4c6308 59ec84e6bdc758158a5043cce90320ceab786eb7
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Sat Feb 13 23:51:19 2010 +0100
Merge remote branch 'gdb/master'
commit 59ec84e6bdc758158a5043cce90320ceab786eb7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Feb 13 13:36:55 2010 +0000
gdb/
* solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
block.
commit 1f7c8203fe01165c0e4fd04f37c42bfc92013dc3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Feb 13 12:02:26 2010 +0000
gdb/
* solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
only if INFO_VERBOSE.
gdb/testsuite/
* gdb.base/prelink.exp (set verbose on): New.
commit f02842e73c7abed3e77be88cb5b5d87df174bd60
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Feb 13 04:57:11 2010 +0000
Document new gdb_test_timeout global variable.
* gdbint.texinfo (Testsuite): New section "Testsuite Configuration",
documenting the gdb_test_timeout variable.
commit 7f5fe81c4a076d33cf5b0725e3ada7fb4fcd7fbe
Author: Doug Evans <dje@google.com>
Date: Sat Feb 13 04:44:41 2010 +0000
regenerate cgen-based files
commit 9f20db258493a7b37ac5da11c66c4ad7cf47dc53
Author: Doug Evans <dje@google.com>
Date: Sat Feb 13 04:38:57 2010 +0000
* lm32-opinst.c: Regenerate.
commit d56e6f9d7a223b2acfb2de2d78265f5afb21f67b
Author: Doug Evans <dje@google.com>
Date: Sat Feb 13 01:13:54 2010 +0000
* linux-low.c (linux_supports_tracefork_flag): Document.
(linux_look_up_symbols): Add comment.
commit eca2228ba5a05545eaee1ba256d482fb606225b0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Feb 13 00:00:33 2010 +0000
*** empty log message ***
commit ee9af7804cf3aa2d01e005f024ab2f44bc7983d1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Feb 12 23:00:05 2010 +0000
daily update
commit 1d06b9ebc52e330cc045a277e821fe52a628890d
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Feb 12 21:39:27 2010 +0000
2010-02-12 Tomas Holmberg <th@virtutech.com>
* mi-reverse.exp: New file. Test for reverse option to the
following MI commands: exec-continue, exec-finish, exec-next,
exec-step, exec-next-instruction, exec-step-instruction.
commit d069ae5b6a0e1a93b600268d6eba6ab253824a5d
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Feb 12 21:35:54 2010 +0000
2010-02-12 Jakob Engblom <jakob@virtutech.com>
* gdb.texinfo (MI commands): Added documentation of --reverse
option to a set of MI commands. Restructured documentation of MI
commands --exec-continue to reflect the complexity of reverse
execution.
commit 71fadacfac822c161ba8410d8e9254063e969f2e
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Feb 12 21:28:25 2010 +0000
2010-02-12 Tomas Holmberg <th@virtutech.com>
* mi/mi-main.c: Added the --reverse flag to the following MI
commands: exec-continue, exec-finish, exec-next, exec-step,
exec-next-instruction, exec-step-instruction. This is to
support reverse execution over the MI interface to gdb.
commit 57095064e159c09ee2af3c8bd8ff002258c0782f
Author: dgutson <dgutson>
Date: Fri Feb 12 20:52:51 2010 +0000
2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
bfd/
* elf32-arm.c (elf32_arm_output_arch_local_syms): add
missing mapping symbol to data only sections.
ld/testsuite/
* ld-arm/arm-elf.exp (armelftests): New test case added.
* ld-arm/data-only-map.s: New file.
* ld-arm/data-only-map.d: New file.
* ld-arm/data-only-map.ld: New file.
commit 6b51955cbec69cd2605fe09ee0eb79b5092e846d
Author: dgutson <dgutson>
Date: Fri Feb 12 20:18:46 2010 +0000
*** empty log message ***
commit 86abe3f6a8811e6b0b22233422702ad4aa146086
Author: dgutson <dgutson>
Date: Fri Feb 12 20:15:12 2010 +0000
gas/
* config/tc-arm.c (asm_opcode): operands type
change.
(BAD_PC_ADDRESSING): New macro message.
(BAD_PC_WRITEBACK): Likewise.
(MIX_ARM_THUMB_OPERANDS): New macro.
(operand_parse_code): Added enum values.
(parse_operands): Added thumb/arm distinction,
plus new enum values handling.
(encode_arm_addr_mode_2): Validations enhanced.
(encode_arm_addr_mode_3): Likewise.
(do_rm_rd_rn): Likewise.
(encode_thumb32_addr_mode): Likewise.
(do_t_ldrex): Likewise.
(do_t_ldst): Likewise.
(do_t_strex): Likewise.
(md_assemble): Call parse_operands with
a new parameter.
(OPS_1): New macro.
(OPS_2): Likewise.
(OPS_3): Likewise.
(OPS_4): Likewise.
(OPS_5): Likewise.
(OPS_6): Likewise.
(insns): Updated insns operands.
gas/testsuite/
* gas/arm/sp-pc-validations-bad.d: New testcase.
* gas/arm/sp-pc-validations-bad.l: New file.
* gas/arm/sp-pc-validations-bad.s: New file.
* gas/arm/sp-pc-validations-bad-t.d: New testcase.
* gas/arm/sp-pc-validations-bad-t.l: New file.
* gas/arm/sp-pc-validations-bad-t.s: New file.
* gas/arm/sp-pc-usage-t.d: Removed invalid insns.
* gas/arm/sp-pc-usage-t.s: Likewise.
* gas/arm/unpredictable.d: Likewise.
* gas/arm/unpredictable.s: Likewise.
* gas/arm/thumb2_bcond.d: Added test.
* gas/arm/thumb2_bcond.s: Likewise.
commit d06a71829478d8c250e131eaf06640f13e193687
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Feb 12 16:15:22 2010 +0000
gdb/doc/
* gdb.texinfo (Using the Collected Data): Specify that the address
range of `tfind outsize' is exclusive, and that the address range
of `tfind range' is inclusive.
(Tracepoint Packets): Specify that the address range of
`QTFrame:range' is inclusive, and that the address range of
`QTFrame:outside' is exclusive
gdb/
* tracepoint.c (_initialize_tracepoint): Specify that the address
range of `tfind outsize' is exclusive, and that the address range
of `tfind range' is inclusive, in the commands' help strings.
commit 3d0bdcd4069504b30e5e90dfb34ecc49bb8bc716
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Fri Feb 12 10:34:47 2010 +0000
* gdb.texinfo (GDB/MI Result Records): Clarify ^running.
commit b7783d93ed7e5b59b07b002e30ce65e074ec2f1f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Feb 12 04:55:15 2010 +0000
Spurious "dll not found" error messages on x64-windows.
* windows-nat.c: Add include of complaints.h.
(handle_unload_dll): Change dll-not-found error into a complaint.
commit 715ab176efb97cd57c6e5d99a19a90a39b042586
Author: Doug Evans <dje@google.com>
Date: Fri Feb 12 04:42:27 2010 +0000
* cgen-dis.in (print_normal): Delete CGEN_PRINT_NORMAL.
(print_address): Delete CGEN_PRINT_ADDRESS.
* fr30-dis.c, * frv-dis.c, * ip2k-dis.c, * iq2000-dis.c,
* lm32-dis.c, * m32c-dis.c, * m32r-desc.c, * m32r-desc.h,
* m32r-dis.c, * mep-dis.c, * mt-dis.c, * openrisc-dis.c,
* xc16x-dis.c, * xstormy16-dis.c: Regenerate.
commit 7427df42f9c7dffbdfcf5d6a8b36ec080c4b6ec6
Author: Doug Evans <dje@google.com>
Date: Fri Feb 12 04:38:21 2010 +0000
* m32r.cpu (HASH-PREFIX): Delete.
(duhpo, dshpo): New pmacros.
(simm8, simm16): Delete HASH-PREFIX attribute, define with dshpo.
(uimm3, uimm4, uimm5, uimm8, uimm16, imm1): Delete HASH-PREFIX
attribute, define with dshpo.
(uimm24): Delete HASH-PREFIX attribute.
* m32r.opc (CGEN_PRINT_NORMAL): Delete.
(print_signed_with_hash_prefix): New function.
(print_unsigned_with_hash_prefix): New function.
* xc16x.cpu (dowh): New pmacro.
(upof16): Define with dowh, specify print handler.
(qbit, qlobit, qhibit): Ditto.
(upag16): Ditto.
* xc16x.opc (CGEN_PRINT_NORMAL): Delete.
(print_with_dot_prefix): New functions.
(print_with_pof_prefix, print_with_pag_prefix): New functions.
commit 8fce282e0182d70026d07c8cbc26a56d2a2e84e3
Author: Doug Evans <dje@google.com>
Date: Fri Feb 12 03:25:48 2010 +0000
* fr30-desc.c, * fr30-desc.h, * fr30-opc.c,
* frv-desc.c, * frv-desc.h, * frv-opc.c,
* ip2k-desc.c, * ip2k-desc.h, * ip2k-opc.c,
* iq2000-desc.c, * iq2000-desc.h, * iq2000-opc.c,
* lm32-desc.c, * lm32-desc.h, * lm32-opc.c, * lm32-opinst.c,
* m32c-desc.c, * m32c-desc.h, * m32c-opc.c,
* m32r-desc.c, * m32r-desc.h, * m32r-opc.c, * m32r-opinst.c,
* mep-desc.c, * mep-desc.h, * mep-opc.c,
* mt-desc.c, * mt-desc.h, * mt-opc.c,
* openrisc-desc.c, * openrisc-desc.h, * openrisc-opc.c,
* xc16x-desc.c, * xc16x-desc.h, * xc16x-opc.c,
* xstormy16-desc.c, * xstormy16-desc.h, * xstormy16-opc.c: Regenerate.
commit 4481527da488fd6703315d72077dcc019d7c89b1
Author: Doug Evans <dje@google.com>
Date: Fri Feb 12 02:44:22 2010 +0000
Regenerate cgen-derived files.
commit bff503e7a6e2e821483f34219940bed7fd7a194c
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Feb 12 01:24:08 2010 +0000
* breakpoint.c (allocate_bp_location): Use bp_loc_other for
bp_tracepoint and bp_fast_tracepoint, not
bp_loc_software_breakpoint.
(update_global_location_list): Tracepoints are never duplicates of
anything.
commit 63a17d3bde774b7cff5c6531219861ba8b43e5d2
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Feb 12 00:47:53 2010 +0000
* breakpoint.c (break_command_really): Change return type to int.
Return false if no breakpoint was created, true otherwise.
(trace_command): Don't set the tracepoint count if no tracepoint
was created.
(ftrace_command): Ditto.
(create_tracepoint_from_upload): Bail out if the tracepoint wasn't
created in the breakpoints table.
commit f09f824e6e2a3b2aabe07905be8554a5999b26aa
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Feb 12 00:00:03 2010 +0000
*** empty log message ***
commit 36663e6f040ca515380fc95aa80e162f4f748f91
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Feb 11 23:07:22 2010 +0000
gdb/
* solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
commit 415267d28ef90ab39995d6659bf7a0e3d925201e
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Feb 11 23:03:21 2010 +0000
* ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
the offset value isn't of integral type.
commit 33e6eadefb7cc3b47dec9e2049c4121cf69e0a60
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Feb 11 23:00:04 2010 +0000
daily update
commit bacbb3545e164203e005e28b36c2b206b0228f2e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Feb 11 22:25:26 2010 +0000
gdb/
* breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
New.
commit dec1097401c00231536294d57de3318cd68e724f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Feb 11 21:45:25 2010 +0000
* ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
non-subscriptable types.
* valarith.c (binop_types_user_defined_p): New, abstracted out
from ...
(binop_user_defined_p): ... this.
* value.h (binop_types_user_defined_p): Declare.
commit 8f3a0977193da2f1ad128b56a6e5d00d45d532f3
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Feb 11 21:00:12 2010 +0000
* tracepoint.c (tfile_open): Remove spurious discard_cleanups.
Merge uploaded TSVs before merging uploaded tracepoints.
commit 490305e9ae294ad8d0129fbd32add846d7324156
Author: David S. Miller <davem@redhat.com>
Date: Thu Feb 11 19:57:40 2010 +0000
bfd/
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
symbols.
(_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
these relocs on global symbols.
(gdopoff): New.
(_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
local symbol references which are not STT_GNU_IFUNC. Handle
relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
and deal with negative vs. non-negative values properly.
ld/testsuite
* ld-sparc/gotop32.s: Add local symbol case.
* ld-sparc/gotop64.s: Likewise.
* ld-sparc/gotop32.rd: Adjust expected results.
* ld-sparc/gotop32.td: Likewise.
* ld-sparc/gotop64.dd: Likewise.
* ld-sparc/gotop64.rd: Likewise.
* ld-sparc/gotop64.td: Likewise.
commit 29358440d19f9907e482575b6a2bb8b8733d0ebd
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Feb 11 18:24:57 2010 +0000
* ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
commit 12fb15aa6a46cb01ac0c70dd7b9cc3f1094d9428
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Feb 11 13:41:19 2010 +0000
Update copyright.
gas/
2010-02-11 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c: Update copyright.
opcodes/
2010-02-11 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c: Update copyright.
* i386-gen.c: Likewise.
* i386-opc.h: Likewise.
* i386-opc.tbl: Likewise.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 18 ++
bfd/elf32-arm.c | 31 +++-
bfd/elfxx-sparc.c | 111 ++++++++---
bfd/version.h | 2 +-
cpu/ChangeLog | 19 ++
cpu/m32r.cpu | 48 +++--
cpu/m32r.opc | 41 +++-
cpu/xc16x.cpu | 19 ++-
cpu/xc16x.opc | 67 +++++-
gdb/ChangeLog | 80 +++++++
gdb/ax-gdb.c | 39 +++-
gdb/breakpoint.c | 115 ++++++-----
gdb/doc/ChangeLog | 25 +++
gdb/doc/gdb.texinfo | 94 ++++++---
gdb/doc/gdbint.texinfo | 32 +++
gdb/gdbserver/ChangeLog | 5 +
gdb/gdbserver/linux-low.c | 4 +
gdb/mi/mi-main.c | 71 ++++++-
gdb/solib-svr4.c | 29 ++-
gdb/testsuite/ChangeLog | 10 +
gdb/testsuite/gdb.base/prelink.exp | 3 +
gdb/testsuite/gdb.mi/mi-reverse.exp | 174 +++++++++++++++
gdb/tracepoint.c | 11 +-
gdb/valarith.c | 21 ++-
gdb/value.h | 4 +
gdb/version.in | 2 +-
gdb/windows-nat.c | 12 +-
opcodes/ChangeLog | 33 +++
opcodes/cgen-dis.in | 8 -
opcodes/fr30-desc.c | 26 +---
opcodes/fr30-desc.h | 4 -
opcodes/fr30-dis.c | 8 -
opcodes/fr30-opc.c | 24 --
opcodes/frv-desc.c | 26 +---
opcodes/frv-desc.h | 4 -
opcodes/frv-dis.c | 8 -
opcodes/frv-opc.c | 24 --
opcodes/i386-dis.c | 2 +-
opcodes/i386-gen.c | 4 +-
opcodes/i386-opc.h | 2 +-
opcodes/i386-opc.tbl | 2 +-
opcodes/ip2k-desc.c | 26 +---
opcodes/ip2k-desc.h | 4 -
opcodes/ip2k-dis.c | 8 -
opcodes/ip2k-opc.c | 24 --
opcodes/iq2000-desc.c | 26 +---
opcodes/iq2000-desc.h | 4 -
opcodes/iq2000-dis.c | 8 -
opcodes/iq2000-opc.c | 24 --
opcodes/lm32-desc.c | 26 +---
opcodes/lm32-desc.h | 4 -
opcodes/lm32-dis.c | 8 -
opcodes/lm32-opc.c | 24 --
opcodes/lm32-opinst.c | 22 ++-
opcodes/m32c-desc.c | 26 +---
opcodes/m32c-desc.h | 6 -
opcodes/m32c-dis.c | 8 -
opcodes/m32c-opc.c | 24 --
opcodes/m32r-desc.c | 45 +---
opcodes/m32r-desc.h | 9 +-
opcodes/m32r-dis.c | 65 ++++---
opcodes/m32r-opc.c | 24 --
opcodes/m32r-opinst.c | 4 -
opcodes/mep-desc.c | 26 +---
opcodes/mep-desc.h | 4 -
opcodes/mep-dis.c | 8 -
opcodes/mep-opc.c | 24 --
opcodes/mt-desc.c | 26 +---
opcodes/mt-desc.h | 4 -
opcodes/mt-dis.c | 8 -
opcodes/mt-opc.c | 24 --
opcodes/openrisc-desc.c | 26 +---
opcodes/openrisc-desc.h | 4 -
opcodes/openrisc-dis.c | 8 -
opcodes/openrisc-opc.c | 24 --
opcodes/xc16x-desc.c | 26 +---
opcodes/xc16x-desc.h | 4 -
opcodes/xc16x-dis.c | 85 ++++++--
opcodes/xc16x-opc.c | 24 --
opcodes/xstormy16-desc.c | 26 +---
opcodes/xstormy16-desc.h | 4 -
opcodes/xstormy16-dis.c | 8 -
opcodes/xstormy16-opc.c | 24 --
sim/ChangeLog | 7 +
sim/cris/cpuv10.h | 2 +-
sim/cris/cpuv32.h | 2 +-
sim/cris/cris-desc.c | 26 +---
sim/cris/cris-desc.h | 4 -
sim/cris/decodev10.c | 11 +-
sim/cris/decodev32.c | 9 +-
sim/cris/modelv10.c | 6 +-
sim/cris/modelv32.c | 4 +-
sim/cris/semcrisv10f-switch.c | 22 +--
sim/cris/semcrisv32f-switch.c | 20 +-
sim/frv/ChangeLog | 8 +
sim/frv/cpu.h | 2 +-
sim/frv/decode.c | 408 ++++++++++++++++++++++++++++++++---
sim/frv/decode.h | 79 ++++----
sim/frv/model.c | 350 +++++++++++++++---------------
sim/frv/sem.c | 66 +++---
sim/iq2000/ChangeLog | 4 +
sim/iq2000/cpu.h | 2 +-
sim/iq2000/decode.c | 11 +-
sim/iq2000/model.c | 146 +++++++-------
sim/iq2000/sem-switch.c | 162 +++++++-------
sim/iq2000/sem.c | 162 +++++++-------
sim/lm32/ChangeLog | 4 +
sim/lm32/cpu.h | 2 +-
sim/lm32/decode.c | 7 +-
sim/lm32/model.c | 4 +-
sim/lm32/sem-switch.c | 20 +-
sim/lm32/sem.c | 20 +-
sim/m32r/ChangeLog | 6 +
sim/m32r/cpu.h | 2 +-
sim/m32r/cpu2.h | 2 +-
sim/m32r/cpux.h | 2 +-
sim/m32r/decode.c | 11 +-
sim/m32r/decode2.c | 13 +-
sim/m32r/decodex.c | 13 +-
sim/m32r/model.c | 16 +-
sim/m32r/model2.c | 10 +-
sim/m32r/modelx.c | 10 +-
sim/m32r/sem-switch.c | 24 +--
sim/m32r/sem.c | 24 +--
sim/m32r/sem2-switch.c | 46 ++---
sim/m32r/semx-switch.c | 46 ++---
sim/sh64/ChangeLog | 10 +
sim/sh64/decode-compact.c | 23 +-
sim/sh64/decode-media.c | 182 ++++++++++++++--
sim/sh64/decode-media.h | 40 ++--
sim/sh64/defs-compact.h | 2 +-
sim/sh64/defs-media.h | 2 +-
sim/sh64/sem-compact-switch.c | 38 ++--
sim/sh64/sem-compact.c | 38 ++--
sim/sh64/sem-media-switch.c | 28 +--
sim/sh64/sem-media.c | 28 +--
sim/sh64/sh-desc.c | 26 +---
sim/sh64/sh-desc.h | 4 -
138 files changed, 2407 insertions(+), 1877 deletions(-)
create mode 100644 gdb/testsuite/gdb.mi/mi-reverse.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0e0646e..a3bec44 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,21 @@
+2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_output_arch_local_syms): add
+ missing mapping symbol to data only sections.
+
+2010-02-11 David S. Miller <davem@davemloft.net>
+
+ * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
+ and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
+ symbols.
+ (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
+ these relocs on global symbols.
+ (gdopoff): New.
+ (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
+ local symbol references which are not STT_GNU_IFUNC. Handle
+ relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
+ and deal with negative vs. non-negative values properly.
+
2010-02-09 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 8f8d32c..0661369 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -13004,7 +13004,9 @@ arm_map_one_stub (struct bfd_hash_entry * gen_entry,
return TRUE;
}
-/* Output mapping symbols for linker generated sections. */
+/* Output mapping symbols for linker generated sections,
+ and for those data-only sections that do not have a
+ $d. */
static bfd_boolean
elf32_arm_output_arch_local_syms (bfd *output_bfd,
@@ -13019,6 +13021,7 @@ elf32_arm_output_arch_local_syms (bfd *output_bfd,
struct elf32_arm_link_hash_table *htab;
bfd_vma offset;
bfd_size_type size;
+ bfd *input_bfd;
htab = elf32_arm_hash_table (info);
if (htab == NULL)
@@ -13030,6 +13033,32 @@ elf32_arm_output_arch_local_syms (bfd *output_bfd,
osi.info = info;
osi.func = func;
+ /* Add a $d mapping symbol to data-only sections that
+ don't have any mapping symbol. This may result in (harmless) redundant
+ mapping symbols. */
+ for (input_bfd = info->input_bfds;
+ input_bfd != NULL;
+ input_bfd = input_bfd->link_next)
+ {
+ if ((input_bfd->flags & (BFD_LINKER_CREATED | HAS_SYMS)) == HAS_SYMS)
+ for (osi.sec = input_bfd->sections;
+ osi.sec != NULL;
+ osi.sec = osi.sec->next)
+ {
+ if (osi.sec->output_section != NULL
+ && (osi.sec->flags & (SEC_HAS_CONTENTS | SEC_LINKER_CREATED))
+ == SEC_HAS_CONTENTS
+ && get_arm_elf_section_data (osi.sec) != NULL
+ && get_arm_elf_section_data (osi.sec)->mapcount == 0)
+ {
+ osi.sec_shndx = _bfd_elf_section_from_bfd_section
+ (output_bfd, osi.sec->output_section);
+ if (osi.sec_shndx != (int)SHN_BAD)
+ elf32_arm_output_map_sym (&osi, ARM_MAP_DATA, 0);
+ }
+ }
+ }
+
/* ARM->Thumb glue. */
if (htab->arm_glue_size > 0)
{
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c
index bc36920..1947d1a 100644
--- a/bfd/elfxx-sparc.c
+++ b/bfd/elfxx-sparc.c
@@ -1345,8 +1345,6 @@ _bfd_sparc_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
case R_SPARC_GOT10:
case R_SPARC_GOT13:
case R_SPARC_GOT22:
- case R_SPARC_GOTDATA_HIX22:
- case R_SPARC_GOTDATA_LOX10:
case R_SPARC_GOTDATA_OP_HIX22:
case R_SPARC_GOTDATA_OP_LOX10:
tls_type = GOT_NORMAL;
@@ -1386,7 +1384,16 @@ _bfd_sparc_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
_bfd_sparc_elf_local_got_tls_type (abfd)
= (char *) (local_got_refcounts + symtab_hdr->sh_info);
}
- local_got_refcounts[r_symndx] += 1;
+ switch (r_type)
+ {
+ case R_SPARC_GOTDATA_OP_HIX22:
+ case R_SPARC_GOTDATA_OP_LOX10:
+ break;
+
+ default:
+ local_got_refcounts[r_symndx] += 1;
+ break;
+ }
old_tls_type = _bfd_sparc_elf_local_got_tls_type (abfd) [r_symndx];
}
@@ -1766,8 +1773,17 @@ _bfd_sparc_elf_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info,
}
else
{
- if (local_got_refcounts[r_symndx] > 0)
- local_got_refcounts[r_symndx]--;
+ switch (r_type)
+ {
+ case R_SPARC_GOTDATA_OP_HIX22:
+ case R_SPARC_GOTDATA_OP_LOX10:
+ break;
+
+ default:
+ if (local_got_refcounts[r_symndx] > 0)
+ local_got_refcounts[r_symndx]--;
+ break;
+ }
}
break;
@@ -2672,6 +2688,21 @@ tpoff (struct bfd_link_info *info, bfd_vma address)
return address - htab->tls_size - htab->tls_sec->vma;
}
+/* Return the relocation value for a %gdop relocation. */
+
+static bfd_vma
+gdopoff (struct bfd_link_info *info, bfd_vma address)
+{
+ struct elf_link_hash_table *htab = elf_hash_table (info);
+ bfd_vma got_base;
+
+ got_base = (htab->hgot->root.u.def.value
+ + htab->hgot->root.u.def.section->output_offset
+ + htab->hgot->root.u.def.section->output_section->vma);
+
+ return address - got_base;
+}
+
/* Relocate a SPARC ELF section. */
bfd_boolean
@@ -2821,10 +2852,17 @@ _bfd_sparc_elf_relocate_section (bfd *output_bfd,
switch (r_type)
{
- case R_SPARC_GOTDATA_HIX22:
- case R_SPARC_GOTDATA_LOX10:
+ case R_SPARC_GOTDATA_OP:
+ continue;
+
case R_SPARC_GOTDATA_OP_HIX22:
case R_SPARC_GOTDATA_OP_LOX10:
+ r_type = (r_type == R_SPARC_GOTDATA_OP_HIX22
+ ? R_SPARC_GOT22
+ : R_SPARC_GOT10);
+ howto = _bfd_sparc_elf_howto_table + r_type;
+ /* Fall through. */
+
case R_SPARC_GOT10:
case R_SPARC_GOT13:
case R_SPARC_GOT22:
@@ -2911,19 +2949,37 @@ _bfd_sparc_elf_relocate_section (bfd *output_bfd,
switch (r_type)
{
- case R_SPARC_GOTDATA_HIX22:
- case R_SPARC_GOTDATA_LOX10:
case R_SPARC_GOTDATA_OP_HIX22:
case R_SPARC_GOTDATA_OP_LOX10:
- /* We don't support these code transformation optimizations
- yet, so just leave the sequence alone and treat as
- GOT22/GOT10. */
- if (r_type == R_SPARC_GOTDATA_HIX22
- || r_type == R_SPARC_GOTDATA_OP_HIX22)
- r_type = R_SPARC_GOT22;
+ if (SYMBOL_REFERENCES_LOCAL (info, h))
+ r_type = (r_type == R_SPARC_GOTDATA_OP_HIX22
+ ? R_SPARC_GOTDATA_HIX22
+ : R_SPARC_GOTDATA_LOX10);
else
- r_type = R_SPARC_GOT10;
- /* Fall through. */
+ r_type = (r_type == R_SPARC_GOTDATA_OP_HIX22
+ ? R_SPARC_GOT22
+ : R_SPARC_GOT10);
+ howto = _bfd_sparc_elf_howto_table + r_type;
+ break;
+
+ case R_SPARC_GOTDATA_OP:
+ if (SYMBOL_REFERENCES_LOCAL (info, h))
+ {
+ bfd_vma insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
+
+ /* {ld,ldx} [%rs1 + %rs2], %rd --> add %rs1, %rs2, %rd */
+ relocation = 0x80000000 | (insn & 0x3e07c01f);
+ bfd_put_32 (output_bfd, relocation, contents + rel->r_offset);
+ }
+ continue;
+ }
+
+ switch (r_type)
+ {
+ case R_SPARC_GOTDATA_HIX22:
+ case R_SPARC_GOTDATA_LOX10:
+ relocation = gdopoff (info, relocation);
+ break;
case R_SPARC_GOT10:
case R_SPARC_GOT13:
@@ -3576,11 +3632,6 @@ _bfd_sparc_elf_relocate_section (bfd *output_bfd,
}
continue;
- case R_SPARC_GOTDATA_OP:
- /* We don't support gotdata code transformation optimizations
- yet, so simply leave the sequence as-is. */
- continue;
-
case R_SPARC_TLS_IE_LD:
case R_SPARC_TLS_IE_LDX:
if (! info->shared && (h == NULL || h->dynindx == -1))
@@ -3704,12 +3755,15 @@ _bfd_sparc_elf_relocate_section (bfd *output_bfd,
r = bfd_reloc_ok;
}
- else if (r_type == R_SPARC_HIX22)
+ else if (r_type == R_SPARC_HIX22
+ || r_type == R_SPARC_GOTDATA_HIX22)
{
bfd_vma x;
relocation += rel->r_addend;
- relocation = relocation ^ MINUS_ONE;
+ if (r_type == R_SPARC_HIX22
+ || (bfd_signed_vma) relocation < 0)
+ relocation = relocation ^ MINUS_ONE;
x = bfd_get_32 (input_bfd, contents + rel->r_offset);
x = (x & ~(bfd_vma) 0x3fffff) | ((relocation >> 10) & 0x3fffff);
@@ -3720,12 +3774,17 @@ _bfd_sparc_elf_relocate_section (bfd *output_bfd,
bfd_arch_bits_per_address (input_bfd),
relocation);
}
- else if (r_type == R_SPARC_LOX10)
+ else if (r_type == R_SPARC_LOX10
+ || r_type == R_SPARC_GOTDATA_LOX10)
{
bfd_vma x;
relocation += rel->r_addend;
- relocation = (relocation & 0x3ff) | 0x1c00;
+ if (r_type == R_SPARC_LOX10
+ || (bfd_signed_vma) relocation < 0)
+ relocation = (relocation & 0x3ff) | 0x1c00;
+ else
+ relocation = (relocation & 0x3ff);
x = bfd_get_32 (input_bfd, contents + rel->r_offset);
x = (x & ~(bfd_vma) 0x1fff) | relocation;
diff --git a/bfd/version.h b/bfd/version.h
index e405ed3..df75bf5 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100211
+#define BFD_VERSION_DATE 20100213
#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/cpu/ChangeLog b/cpu/ChangeLog
index 939544c..975feea 100644
--- a/cpu/ChangeLog
+++ b/cpu/ChangeLog
@@ -1,3 +1,22 @@
+2010-02-11 Doug Evans <dje@sebabeach.org>
+
+ * m32r.cpu (HASH-PREFIX): Delete.
+ (duhpo, dshpo): New pmacros.
+ (simm8, simm16): Delete HASH-PREFIX attribute, define with dshpo.
+ (uimm3, uimm4, uimm5, uimm8, uimm16, imm1): Delete HASH-PREFIX
+ attribute, define with dshpo.
+ (uimm24): Delete HASH-PREFIX attribute.
+ * m32r.opc (CGEN_PRINT_NORMAL): Delete.
+ (print_signed_with_hash_prefix): New function.
+ (print_unsigned_with_hash_prefix): New function.
+ * xc16x.cpu (dowh): New pmacro.
+ (upof16): Define with dowh, specify print handler.
+ (qbit, qlobit, qhibit): Ditto.
+ (upag16): Ditto.
+ * xc16x.opc (CGEN_PRINT_NORMAL): Delete.
+ (print_with_dot_prefix): New functions.
+ (print_with_pof_prefix, print_with_pag_prefix): New functions.
+
2010-01-24 Doug Evans <dje@sebabeach.org>
* frv.cpu (floating-point-conversion): Update call to fp conv op.
diff --git a/cpu/m32r.cpu b/cpu/m32r.cpu
index e24fc3d..003c848 100644
--- a/cpu/m32r.cpu
+++ b/cpu/m32r.cpu
@@ -638,13 +638,21 @@
; code. Usually there's a bit of over-specification, but in more complicated
; instruction sets there isn't.
-; M32R specific operand attributes:
+;; Print some operands take a hash prefix.
+;; ??? Why don't we also handle one when parsing?
-(define-attr
- (for operand)
- (type boolean)
- (name HASH-PREFIX)
- (comment "immediates have an optional '#' prefix")
+(define-pmacro (duhpo x-name x-comment x-attrs x-type x-index)
+ (define-operand (name x-name) (comment x-comment)
+ (.splice attrs (.unsplice x-attrs))
+ (type x-type) (index x-index)
+ (handlers (print "unsigned_with_hash_prefix")))
+)
+
+(define-pmacro (dshpo x-name x-comment x-attrs x-type x-index)
+ (define-operand (name x-name) (comment x-comment)
+ (.splice attrs (.unsplice x-attrs))
+ (type x-type) (index x-index)
+ (handlers (print "signed_with_hash_prefix")))
)
; ??? Convention says this should be o-sr, but then the insn definitions
@@ -662,21 +670,23 @@
(dnop scr "source control register" () h-cr f-r2)
(dnop dcr "destination control register" () h-cr f-r1)
-(dnop simm8 "8 bit signed immediate" (HASH-PREFIX) h-sint f-simm8)
-(dnop simm16 "16 bit signed immediate" (HASH-PREFIX) h-sint f-simm16)
-(dnop uimm3 "3 bit unsigned number" (HASH-PREFIX) h-uint f-uimm3)
-(dnop uimm4 "4 bit trap number" (HASH-PREFIX) h-uint f-uimm4)
-(dnop uimm5 "5 bit shift count" (HASH-PREFIX) h-uint f-uimm5)
-(dnop uimm8 "8 bit unsigned immediate" (HASH-PREFIX) h-uint f-uimm8)
-(dnop uimm16 "16 bit unsigned immediate" (HASH-PREFIX) h-uint f-uimm16)
+(dshpo simm8 "8 bit signed immediate" () h-sint f-simm8)
+(dshpo simm16 "16 bit signed immediate" () h-sint f-simm16)
+(duhpo uimm3 "3 bit unsigned number" () h-uint f-uimm3)
+(duhpo uimm4 "4 bit trap number" () h-uint f-uimm4)
+(duhpo uimm5 "5 bit shift count" () h-uint f-uimm5)
+(duhpo uimm8 "8 bit unsigned immediate" () h-uint f-uimm8)
+(duhpo uimm16 "16 bit unsigned immediate" () h-uint f-uimm16)
+
+(duhpo imm1 "1 bit immediate" ((MACH m32rx,m32r2)) h-uint f-imm1)
-(dnop imm1 "1 bit immediate" ((MACH m32rx,m32r2) HASH-PREFIX) h-uint f-imm1)
-(dnop accd "accumulator destination register" ((MACH m32rx,m32r2)) h-accums f-accd)
-(dnop accs "accumulator source register" ((MACH m32rx,m32r2)) h-accums f-accs)
-(dnop acc "accumulator reg (d)" ((MACH m32rx,m32r2)) h-accums f-acc)
+(dnop accd "accumulator destination register" ((MACH m32rx,m32r2)) h-accums f-accd)
+(dnop accs "accumulator source register" ((MACH m32rx,m32r2)) h-accums f-accs)
+(dnop acc "accumulator reg (d)" ((MACH m32rx,m32r2)) h-accums f-acc)
; slo16,ulo16 are used in both with-hash-prefix/no-hash-prefix cases.
-; e.g. add3 r3,r3,#1 and ld r3,@(4,r4). We could use HASH-PREFIX.
+; e.g. add3 r3,r3,#1 and ld r3,@(4,r4). We could use special handlers on
+; the operands themselves.
; Instead we create a fake operand `hash'. The m32r is an illustration port,
; so we often try out various ways of doing things.
@@ -716,7 +726,7 @@
(handlers (parse "ulo16"))
)
-(dnop uimm24 "24 bit address" (HASH-PREFIX) h-addr f-uimm24)
+(dnop uimm24 "24 bit address" () h-addr f-uimm24)
(define-operand
(name disp8)
diff --git a/cpu/m32r.opc b/cpu/m32r.opc
index 3100fee..30e0956 100644
--- a/cpu/m32r.opc
+++ b/cpu/m32r.opc
@@ -238,15 +238,38 @@ parse_ulo16 (CGEN_CPU_DESC cd,
/* -- */
\f
/* -- dis.c */
-/* Immediate values are prefixed with '#'. */
-
-#define CGEN_PRINT_NORMAL(cd, info, value, attrs, pc, length) \
- do \
- { \
- if (CGEN_BOOL_ATTR ((attrs), CGEN_OPERAND_HASH_PREFIX)) \
- (*info->fprintf_func) (info->stream, "#"); \
- } \
- while (0)
+
+/* Print signed operands with '#' prefixes. */
+
+static void
+print_signed_with_hash_prefix (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
+ void * dis_info,
+ long value,
+ unsigned int attrs ATTRIBUTE_UNUSED,
+ bfd_vma pc ATTRIBUTE_UNUSED,
+ int length ATTRIBUTE_UNUSED)
+{
+ disassemble_info *info = (disassemble_info *) dis_info;
+
+ (*info->fprintf_func) (info->stream, "#");
+ (*info->fprintf_func) (info->stream, "%ld", value);
+}
+
+/* Print unsigned operands with '#' prefixes. */
+
+static void
+print_unsigned_with_hash_prefix (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
+ void * dis_info,
+ long value,
+ unsigned int attrs ATTRIBUTE_UNUSED,
+ bfd_vma pc ATTRIBUTE_UNUSED,
+ int length ATTRIBUTE_UNUSED)
+{
+ disassemble_info *info = (disassemble_info *) dis_info;
+
+ (*info->fprintf_func) (info->stream, "#");
+ (*info->fprintf_func) (info->stream, "0x%lx", value);
+}
/* Handle '#' prefixes as operands. */
diff --git a/cpu/xc16x.cpu b/cpu/xc16x.cpu
index 1d2057a..4903b81 100644
--- a/cpu/xc16x.cpu
+++ b/cpu/xc16x.cpu
@@ -528,6 +528,15 @@
(comment "segment")
)
+;; Define an operand that takes a set of handlers.
+;; dowh: define-operand-with-handlers
+(define-pmacro (dowh x-name x-comment x-attrs x-type x-index x-handlers)
+ (define-operand (name x-name) (comment x-comment)
+ (.splice attrs (.unsplice x-attrs))
+ (type x-type) (index x-index)
+ (.splice handlers (.unsplice x-handlers)))
+)
+
(dnop sr "source register" () h-gr f-r2)
(dnop dr "destination register" () h-gr f-r1)
(dnop dri "destination register" () h-gr f-r4)
@@ -544,7 +553,7 @@
(dnop uimm7 "7 bit trap number" (HASH-PREFIX) h-uint f-uimm7)
(dnop uimm8 "8 bit unsigned immediate" (HASH-PREFIX) h-uint f-uimm8)
(dnop uimm16 "16 bit unsigned immediate" (HASH-PREFIX) h-uint f-uimm16)
-(dnop upof16 "16 bit unsigned immediate" (POF-PREFIX) h-addr f-memory)
+(dowh upof16 "16 bit unsigned immediate" (POF-PREFIX) h-addr f-memory ((print "with_pof_prefix")))
(dnop reg8 "8 bit word register number" () h-r8 f-reg8)
(dnop regmem8 "8 bit word register number" () h-regmem8 f-regmem8)
(dnop regbmem8 "8 bit byte register number" () h-regbmem8 f-regmem8)
@@ -573,16 +582,16 @@
(dnop memory "16 bit memory" () h-addr f-memory)
(dnop memgr8 "16 bit memory" () h-memgr8 f-memgr8)
(dnop cbit "carry bit" (SEM-ONLY) h-cbit f-nil)
-(dnop qbit "bit addr" (DOT-PREFIX) h-uint f-qbit)
-(dnop qlobit "bit addr" (DOT-PREFIX) h-uint f-qlobit)
-(dnop qhibit "bit addr" (DOT-PREFIX) h-uint f-qhibit)
+(dowh qbit "bit addr" (DOT-PREFIX) h-uint f-qbit ((print "with_dot_prefix")))
+(dowh qlobit "bit addr" (DOT-PREFIX) h-uint f-qlobit ((print "with_dot_prefix")))
+(dowh qhibit "bit addr" (DOT-PREFIX) h-uint f-qhibit ((print "with_dot_prefix")))
(dnop mask8 "8 bit mask" (HASH-PREFIX) h-uint f-mask8)
(dnop masklo8 "8 bit mask" (HASH-PREFIX) h-uint f-datahi8)
(dnop pagenum "10 bit page number" (HASH-PREFIX) h-uint f-pagenum)
(dnop data8 "8 bit data" (HASH-PREFIX) h-uint f-data8)
(dnop datahi8 "8 bit data" (HASH-PREFIX) h-uint f-datahi8)
(dnop sgtdisbit "segmentation enable bit" (SEM-ONLY) h-sgtdis f-nil)
-(dnop upag16 "16 bit unsigned immediate" (PAG-PREFIX) h-uint f-uimm16)
+(dowh upag16 "16 bit unsigned immediate" (PAG-PREFIX) h-uint f-uimm16 ((print "with_pag_prefix")))
(dnop useg8 "8 bit segment " (SEG-PREFIX) h-uint f-seg8)
(dnop useg16 "16 bit address offset" (SEG-PREFIX) h-uint f-offset16)
(dnop usof16 "16 bit address offset" (SOF-PREFIX) h-uint f-offset16)
diff --git a/cpu/xc16x.opc b/cpu/xc16x.opc
index 455f3fb..47b7c69 100644
--- a/cpu/xc16x.opc
+++ b/cpu/xc16x.opc
@@ -149,17 +149,62 @@ parse_seg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
\f
/* -- dis.c */
-#define CGEN_PRINT_NORMAL(cd, info, value, attrs, pc, length) \
- do \
- { \
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-02-11 12:51 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-02-11 12:51 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via b97aedc0ebe8e565b86b700acea4e4dc9f4c6308 (commit)
via 1a99d28b458e4bde852d21379361c04cb0a5cd6c (commit)
via 3288a709e052ccc38142b6b25f82efe9e10e3e49 (commit)
via e9cf95f518784f6c7f51a26afa186585b05acaae (commit)
via 4b2c961f523ce7d188de52161fbded5a20645699 (commit)
via 8d444990cf3cbf96eee5c9d5c78472febf22c706 (commit)
via 7cd8b034da1a4cb64cd483cc9044195e4317d7e8 (commit)
via 58228f24141f1eb924c896c386b3ba8befd9e2ca (commit)
via c95a567addd264054ce9b32954f891f31af3ee57 (commit)
via 7fb0737847d9e332a397f69b8ab425bf9ef13209 (commit)
via c754b51a9f660fb232ceae61b770a7486ff9083e (commit)
via c675abbfe817dd0f9be42e0f7f05fd03622cdeb8 (commit)
via 0db0abbf25d9e13362657a597d108f7b26eb2957 (commit)
from 67b33cc514c321ad5f1cc33f3cb56417c6c480ed (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit b97aedc0ebe8e565b86b700acea4e4dc9f4c6308
Merge: 67b33cc514c321ad5f1cc33f3cb56417c6c480ed 1a99d28b458e4bde852d21379361c04cb0a5cd6c
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Thu Feb 11 13:51:03 2010 +0100
Merge remote branch 'gdb/master'
commit 1a99d28b458e4bde852d21379361c04cb0a5cd6c
Author: spop <spop>
Date: Thu Feb 11 05:06:13 2010 +0000
2010-02-10 Quentin Neill <quentin.neill@amd.com>
Sebastian Pop <sebastian.pop@amd.com>
gas:
* config/tc-i386.c (vec_imm4) New operand type.
(fits_in_imm4): New.
(VEX_check_operands): New.
(check_reverse): Call VEX_check_operands.
(build_modrm_byte): Reintroduce code for 5
operand insns. Fix whitespace.
gas/testsuite:
* gas/i386/x86-64-xop.d: Add vpermil2p[sd] tests.
* gas/i386/x86-64-xop.s: Likewise.
* gas/i386/xop.d: Likewise.
* gas/i386/xop.s: Likewise.
opcodes:
* i386-dis.c (OP_EX_VexImmW): Reintroduced
function to handle 5th imm8 operand.
(PREFIX_VEX_3A48): Added.
(PREFIX_VEX_3A49): Added.
(VEX_W_3A48_P_2): Added.
(VEX_W_3A49_P_2): Added.
(prefix table): Added entries for PREFIX_VEX_3A48
and PREFIX_VEX_3A49.
(vex table): Added entries for VEX_W_3A48_P_2 and
and VEX_W_3A49_P_2.
* i386-gen.c (operand_type_init): Added OPERAND_TYPE_VEC_IMM4
for Vec_Imm4 operands.
* i386-opc.h (enum): Added Vec_Imm4.
(i386_operand_type): Added vec_imm4.
* i386-opc.tbl: Add entries for vpermilp[ds].
* i386-init.h: Regenerated.
* i386-tbl.h: Regenerated.
commit 3288a709e052ccc38142b6b25f82efe9e10e3e49
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Feb 11 00:00:33 2010 +0000
*** empty log message ***
commit e9cf95f518784f6c7f51a26afa186585b05acaae
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Feb 10 23:00:05 2010 +0000
daily update
commit 4b2c961f523ce7d188de52161fbded5a20645699
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed Feb 10 22:22:00 2010 +0000
* mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
whitespace character after a dot in comment.
(mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
Likewise.
(list_args_or_locals): For the 'all' (that is
-stack-list-variables) case, always output list of tuples.
Output 'arg' field if variable is argument.
commit 8d444990cf3cbf96eee5c9d5c78472febf22c706
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Feb 10 21:11:42 2010 +0000
Fix "infor reg sse" on Linux/x86-64.
2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
PR gdb/11265
* amd64-linux-tdep.c (amd64_linux_register_reggroup_p): Call
i386_register_reggroup_p instead of default_register_reggroup_p.
commit 7cd8b034da1a4cb64cd483cc9044195e4317d7e8
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Wed Feb 10 19:59:07 2010 +0000
gas/
* config/tc-ppc.c (md_show_usage): Add -mpwr4, -mpwr5, -mpwr5x,
-mpwr6 and -mpwr7.
opcodes/
* ppc-dis.c (ppc_opts): Add "pwr4", "pwr5", "pwr5x", "pwr6"
and "pwr7". Move "a2" into alphabetical order.
commit 58228f24141f1eb924c896c386b3ba8befd9e2ca
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Feb 10 18:57:21 2010 +0000
gdb
* parser-defs.h (parser_debug): Declare.
* parse.c (_initialize_parse): Install "debug parser" set/show
command.
(parser_debug): New global.
(show_parserdebug): New function.
* c-exp.y (c_parse): Set yydebug.
gdb/testsuite
* gdb.texinfo (Debugging Output): Document set debug parser and
show debug parser.
commit c95a567addd264054ce9b32954f891f31af3ee57
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Feb 10 18:45:02 2010 +0000
Add i387_ext, i386_eflags and i386_mxcsr.
2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
* target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
(tdesc_predefined_types): Add i387_ext, i386_eflags and
i386_mxcsr.
(tdesc_find_type): New.
(tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
* target-descriptions.h (tdesc_find_type): New.
commit 7fb0737847d9e332a397f69b8ab425bf9ef13209
Author: Michael Snyder <msnyder@specifix.com>
Date: Wed Feb 10 18:39:44 2010 +0000
2010-02-10 Michael Snyder <msnyder@vmware.com>
* gdb-gdb.py: Comment fix.
commit c754b51a9f660fb232ceae61b770a7486ff9083e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Feb 10 00:00:33 2010 +0000
*** empty log message ***
commit c675abbfe817dd0f9be42e0f7f05fd03622cdeb8
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Feb 9 23:00:05 2010 +0000
daily update
commit 0db0abbf25d9e13362657a597d108f7b26eb2957
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Feb 9 18:58:57 2010 +0000
Document i387_ext, i386_eflags and i386_mxcsr.
2010-02-09 H.J. Lu <hongjiu.lu@intel.com>
* gdb.texinfo (Predefined Target Types): Add i387_ext,
i386_eflags and i386_mxcsr.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 35 +
gdb/amd64-linux-tdep.c | 2 +-
gdb/c-exp.y | 3 +
gdb/doc/ChangeLog | 10 +
gdb/doc/gdb.texinfo | 18 +
gdb/gdb-gdb.py | 4 +-
gdb/mi/mi-cmd-stack.c | 22 +-
gdb/parse.c | 20 +
gdb/parser-defs.h | 2 +
gdb/target-descriptions.c | 99 +-
gdb/target-descriptions.h | 4 +
gdb/version.in | 2 +-
opcodes/ChangeLog | 26 +
opcodes/i386-dis.c | 75 +-
opcodes/i386-gen.c | 3 +
opcodes/i386-init.h | 97 +-
opcodes/i386-opc.h | 4 +
opcodes/i386-opc.tbl | 10 +
opcodes/i386-tbl.h |11262 +++++++++++++++++++++++----------------------
opcodes/ppc-dis.c | 26 +-
21 files changed, 6116 insertions(+), 5610 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index b8df841..e405ed3 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100209
+#define BFD_VERSION_DATE 20100211
#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 b169962..acd65e8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,38 @@
+2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
+ whitespace character after a dot in comment.
+ (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
+ Likewise.
+ (list_args_or_locals): For the 'all' (that is
+ -stack-list-variables) case, always output list of tuples.
+ Output 'arg' field if variable is argument.
+
+2010-02-10 Tom Tromey <tromey@redhat.com>
+
+ * parser-defs.h (parser_debug): Declare.
+ * parse.c (_initialize_parse): Install "debug parser" set/show
+ command.
+ (parser_debug): New global.
+ (show_parserdebug): New function.
+ * c-exp.y (c_parse): Set yydebug.
+
+2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
+ TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
+ (tdesc_predefined_types): Add i387_ext, i386_eflags and
+ i386_mxcsr.
+ (tdesc_find_type): New.
+ (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
+ TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
+
+ * target-descriptions.h (tdesc_find_type): New.
+
+2010-02-10 Michael Snyder <msnyder@vmware.com>
+
+ * gdb-gdb.py: Comment fix.
+
2010-02-09 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_symfile_relocate): New function.
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index 01cc1ce..c28eef7 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -262,7 +262,7 @@ amd64_linux_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
return (group == system_reggroup
|| group == save_reggroup
|| group == restore_reggroup);
- return default_register_reggroup_p (gdbarch, regnum, group);
+ return i386_register_reggroup_p (gdbarch, regnum, group);
}
/* Set the program counter for process PTID to PC. */
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 8e00979..845771c 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -2450,6 +2450,9 @@ c_parse (void)
gdb_assert (! macro_original_text);
make_cleanup (scan_macro_cleanup, 0);
+ make_cleanup_restore_integer (&yydebug);
+ yydebug = parser_debug;
+
/* Initialize some state used by the lexer. */
last_was_structop = 0;
saw_name_at_eof = 0;
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 8027d58..b5bef2f 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,13 @@
+2010-02-10 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Debugging Output): Document set debug parser and
+ show debug parser.
+
+2010-02-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gdb.texinfo (Predefined Target Types): Add i387_ext,
+ i386_eflags and i386_mxcsr.
+
2010-02-08 H.J. Lu <hongjiu.lu@intel.com>
* gdb.texinfo: Document i386 target features.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index b31cfed..4fc064d 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -18848,6 +18848,15 @@ is off.
@item show debug overload
Displays the current state of displaying @value{GDBN} C@t{++} overload
debugging info.
+@cindex expression parser, debugging info
+@cindex debug expression parser
+@item set debug parser
+Turns on or off the display of expression parser debugging output.
+Internally, this sets the @code{yydebug} variable in the expression
+parser. @xref{Tracing, , Tracing Your Parser, bison, Bison}, for
+details. The default is off.
+@item show debug parser
+Show the current state of expression parser debugging.
@cindex packets, reporting on stdout
@cindex serial connections, debugging
@cindex debug remote protocol
@@ -32749,6 +32758,15 @@ Double precision IEEE floating point.
@item arm_fpa_ext
The 12-byte extended precision format used by ARM FPA registers.
+@item i387_ext
+The 10-byte extended precision format used by x87 registers.
+
+@item i386_eflags
+32bit @sc{eflags} register used by x86.
+
+@item i386_mxcsr
+32bit @sc{mxcsr} register used by x86.
+
@end table
@node Standard Target Features
diff --git a/gdb/gdb-gdb.py b/gdb/gdb-gdb.py
index c603897..84e8914 100644
--- a/gdb/gdb-gdb.py
+++ b/gdb/gdb-gdb.py
@@ -23,8 +23,8 @@ class TypeFlag:
and its value.
In the GDB sources, struct type has a component called instance_flags
- whose the value is the addition of various flags. These flags are
- defined by two emumerates: type_flag_value, and type_instance_flag_value.
+ in which the value is the addition of various flags. These flags are
+ defined by two enumerates: type_flag_value, and type_instance_flag_value.
This class helps us recreate a list with all these flags that is
easy to manipulate and sort. Because all flag names start with either
TYPE_FLAG_ or TYPE_INSTANCE_FLAG_, a short_name attribute is provided
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index 3176a6a..eb976c3 100644
--- a/gdb/mi/mi-cmd-stack.c
+++ b/gdb/mi/mi-cmd-stack.c
@@ -138,7 +138,7 @@ parse_print_values (char *name)
mi_no_values, mi_all_values, mi_simple_values);
}
-/* Print a list of the locals for the current frame. With argument of
+/* Print a list of the locals for the current frame. With argument of
0, print only the names, with argument of 1 print also the
values. */
void
@@ -155,7 +155,7 @@ mi_cmd_stack_list_locals (char *command, char **argv, int argc)
list_args_or_locals (locals, parse_print_values (argv[0]), frame);
}
-/* Print a list of the arguments for the current frame. With argument
+/* Print a list of the arguments for the current frame. With argument
of 0, print only the names, with argument of 1 print also the
values. */
void
@@ -216,8 +216,9 @@ mi_cmd_stack_list_args (char *command, char **argv, int argc)
}
/* Print a list of the local variables (including arguments) for the
- current frame. With argument of 0, print only the names, with
- argument of 1 print also the values. */
+ current frame. ARGC must be 1 and ARGV[0] specify if only the names,
+ or both names and values of the variables must be printed. See
+ parse_print_value for possible values. */
void
mi_cmd_stack_list_variables (char *command, char **argv, int argc)
{
@@ -227,9 +228,9 @@ mi_cmd_stack_list_variables (char *command, char **argv, int argc)
if (argc != 1)
error (_("Usage: PRINT_VALUES"));
- frame = get_selected_frame (NULL);
+ frame = get_selected_frame (NULL);
- list_args_or_locals (all, parse_print_values (argv[0]), frame);
+ list_args_or_locals (all, parse_print_values (argv[0]), frame);
}
@@ -311,10 +312,12 @@ list_args_or_locals (enum what_to_list what, int values, struct frame_info *fi)
struct cleanup *cleanup_tuple = NULL;
struct symbol *sym2;
struct value *val;
- if (values != PRINT_NO_VALUES)
+ if (values != PRINT_NO_VALUES || what == all)
cleanup_tuple =
make_cleanup_ui_out_tuple_begin_end (uiout, NULL);
ui_out_field_string (uiout, "name", SYMBOL_PRINT_NAME (sym));
+ if (what == all && SYMBOL_IS_ARGUMENT (sym))
+ ui_out_field_int (uiout, "arg", 1);
if (SYMBOL_IS_ARGUMENT (sym))
sym2 = lookup_symbol (SYMBOL_NATURAL_NAME (sym),
@@ -341,7 +344,6 @@ list_args_or_locals (enum what_to_list what, int values, struct frame_info *fi)
language_def (SYMBOL_LANGUAGE (sym2)));
ui_out_field_stream (uiout, "value", stb);
}
- do_cleanups (cleanup_tuple);
break;
case PRINT_ALL_VALUES:
{
@@ -353,10 +355,12 @@ list_args_or_locals (enum what_to_list what, int values, struct frame_info *fi)
(val, stb->stream, 0, &opts,
language_def (SYMBOL_LANGUAGE (sym2)));
ui_out_field_stream (uiout, "value", stb);
- do_cleanups (cleanup_tuple);
}
break;
}
+
+ if (values != PRINT_NO_VALUES || what == all)
+ do_cleanups (cleanup_tuple);
}
}
if (BLOCK_FUNCTION (block))
diff --git a/gdb/parse.c b/gdb/parse.c
index d5a199b..aabc461 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -109,6 +109,18 @@ show_expressiondebug (struct ui_file *file, int from_tty,
fprintf_filtered (file, _("Expression debugging is %s.\n"), value);
}
+
+/* Non-zero if an expression parser should set yydebug. */
+int parser_debug;
+
+static void
+show_parserdebug (struct ui_file *file, int from_tty,
+ struct cmd_list_element *c, const char *value)
+{
+ fprintf_filtered (file, _("Parser debugging is %s.\n"), value);
+}
+
+
static void free_funcalls (void *ignore);
static int prefixify_expression (struct expression *);
@@ -1377,4 +1389,12 @@ When non-zero, the internal representation of expressions will be printed."),
NULL,
show_expressiondebug,
&setdebuglist, &showdebuglist);
+ add_setshow_boolean_cmd ("parser", class_maintenance,
+ &parser_debug, _("\
+Set parser debugging."), _("\
+Show parser debugging."), _("\
+When non-zero, expression parser tracing will be enabled."),
+ NULL,
+ show_parserdebug,
+ &setdebuglist, &showdebuglist);
}
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h
index 6fcf7ae..c4eb1a0 100644
--- a/gdb/parser-defs.h
+++ b/gdb/parser-defs.h
@@ -29,6 +29,8 @@
struct block;
+extern int parser_debug;
+
extern struct expression *expout;
extern int expout_size;
extern int expout_ptr;
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index 4fbc72c..9856d6f 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -117,6 +117,9 @@ typedef struct tdesc_type
TDESC_TYPE_IEEE_SINGLE,
TDESC_TYPE_IEEE_DOUBLE,
TDESC_TYPE_ARM_FPA_EXT,
+ TDESC_TYPE_I387_EXT,
+ TDESC_TYPE_I386_EFLAGS,
+ TDESC_TYPE_I386_MXCSR,
/* Types defined by a target feature. */
TDESC_TYPE_VECTOR,
@@ -461,7 +464,10 @@ static struct tdesc_type tdesc_predefined_types[] =
{ "data_ptr", TDESC_TYPE_DATA_PTR },
{ "ieee_single", TDESC_TYPE_IEEE_SINGLE },
{ "ieee_double", TDESC_TYPE_IEEE_DOUBLE },
- { "arm_fpa_ext", TDESC_TYPE_ARM_FPA_EXT }
+ { "arm_fpa_ext", TDESC_TYPE_ARM_FPA_EXT },
+ { "i387_ext", TDESC_TYPE_I387_EXT },
+ { "i386_eflags", TDESC_TYPE_I386_EFLAGS },
+ { "i386_mxcsr", TDESC_TYPE_I386_MXCSR }
};
/* Return the type associated with ID in the context of FEATURE, or
@@ -486,12 +492,38 @@ tdesc_named_type (const struct tdesc_feature *feature, const char *id)
return NULL;
}
+/* Lookup type associated with ID. */
+
+struct type *
+tdesc_find_type (struct gdbarch *gdbarch, const char *id)
+{
+ struct tdesc_arch_reg *reg;
+ struct tdesc_arch_data *data;
+ int i, num_regs;
+
+ data = gdbarch_data (gdbarch, tdesc_data);
+ num_regs = VEC_length (tdesc_arch_reg, data->arch_regs);
+ for (i = 0; i < num_regs; i++)
+ {
+ reg = VEC_index (tdesc_arch_reg, data->arch_regs, i);
+ if (reg->reg
+ && reg->reg->tdesc_type
+ && reg->type
+ && strcmp (id, reg->reg->tdesc_type->name) == 0)
+ return reg->type;
+ }
+
+ return NULL;
+}
+
/* Construct, if necessary, and return the GDB type implementing target
type TDESC_TYPE for architecture GDBARCH. */
static struct type *
tdesc_gdb_type (struct gdbarch *gdbarch, struct tdesc_type *tdesc_type)
{
+ struct type *type;
+
switch (tdesc_type->kind)
{
/* Predefined types. */
@@ -531,6 +563,16 @@ tdesc_gdb_type (struct gdbarch *gdbarch, struct tdesc_type *tdesc_type)
case TDESC_TYPE_DATA_PTR:
return builtin_type (gdbarch)->builtin_data_ptr;
+ default:
+ break;
+ }
+
+ type = tdesc_find_type (gdbarch, tdesc_type->name);
+ if (type)
+ return type;
+
+ switch (tdesc_type->kind)
+ {
case TDESC_TYPE_IEEE_SINGLE:
return arch_float_type (gdbarch, -1, "builtin_type_ieee_single",
floatformats_ieee_single);
@@ -543,6 +585,61 @@ tdesc_gdb_type (struct gdbarch *gdbarch, struct tdesc_type *tdesc_type)
return arch_float_type (gdbarch, -1, "builtin_type_arm_ext",
floatformats_arm_ext);
+ case TDESC_TYPE_I387_EXT:
+ return arch_float_type (gdbarch, -1, "builtin_type_i387_ext",
+ floatformats_i387_ext);
+
+ case TDESC_TYPE_I386_EFLAGS:
+ {
+ struct type *type;
+
+ type = arch_flags_type (gdbarch, "builtin_type_i386_eflags", 4);
+ append_flags_type_flag (type, 0, "CF");
+ append_flags_type_flag (type, 1, NULL);
+ append_flags_type_flag (type, 2, "PF");
+ append_flags_type_flag (type, 4, "AF");
+ append_flags_type_flag (type, 6, "ZF");
+ append_flags_type_flag (type, 7, "SF");
+ append_flags_type_flag (type, 8, "TF");
+ append_flags_type_flag (type, 9, "IF");
+ append_flags_type_flag (type, 10, "DF");
+ append_flags_type_flag (type, 11, "OF");
+ append_flags_type_flag (type, 14, "NT");
+ append_flags_type_flag (type, 16, "RF");
+ append_flags_type_flag (type, 17, "VM");
+ append_flags_type_flag (type, 18, "AC");
+ append_flags_type_flag (type, 19, "VIF");
+ append_flags_type_flag (type, 20, "VIP");
+ append_flags_type_flag (type, 21, "ID");
+
+ return type;
+ }
+ break;
+
+ case TDESC_TYPE_I386_MXCSR:
+ {
+ struct type *type;
+
+ type = arch_flags_type (gdbarch, "builtin_type_i386_mxcsr", 4);
+ append_flags_type_flag (type, 0, "IE");
+ append_flags_type_flag (type, 1, "DE");
+ append_flags_type_flag (type, 2, "ZE");
+ append_flags_type_flag (type, 3, "OE");
+ append_flags_type_flag (type, 4, "UE");
+ append_flags_type_flag (type, 5, "PE");
+ append_flags_type_flag (type, 6, "DAZ");
+ append_flags_type_flag (type, 7, "IM");
+ append_flags_type_flag (type, 8, "DM");
+ append_flags_type_flag (type, 9, "ZM");
+ append_flags_type_flag (type, 10, "OM");
+ append_flags_type_flag (type, 11, "UM");
+ append_flags_type_flag (type, 12, "PM");
+ append_flags_type_flag (type, 15, "FZ");
+
+ return type;
+ }
+ break;
+
/* Types defined by a target feature. */
case TDESC_TYPE_VECTOR:
{
diff --git a/gdb/target-descriptions.h b/gdb/target-descriptions.h
index 17f52eb..da0564b 100644
--- a/gdb/target-descriptions.h
+++ b/gdb/target-descriptions.h
@@ -176,6 +176,10 @@ const char *tdesc_register_name (struct gdbarch *gdbarch, int regno);
struct type *tdesc_register_type (struct gdbarch *gdbarch, int regno);
+/* Return the type associated with ID, from the target description. */
+
+struct type *tdesc_find_type (struct gdbarch *gdbarch, const char *id);
+
/* Check whether REGNUM is a member of REGGROUP using the target
description. Return -1 if the target description does not
specify a group. */
diff --git a/gdb/version.in b/gdb/version.in
index f3eb00c..71c9855 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.0.50.20100209-cvs
+7.0.50.20100211-cvs
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index c03049d..fb6b162 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,29 @@
+2010-02-10 Quentin Neill <quentin.neill@amd.com>
+ Sebastian Pop <sebastian.pop@amd.com>
+
+ * i386-dis.c (OP_EX_VexImmW): Reintroduced
+ function to handle 5th imm8 operand.
+ (PREFIX_VEX_3A48): Added.
+ (PREFIX_VEX_3A49): Added.
+ (VEX_W_3A48_P_2): Added.
+ (VEX_W_3A49_P_2): Added.
+ (prefix table): Added entries for PREFIX_VEX_3A48
+ and PREFIX_VEX_3A49.
+ (vex table): Added entries for VEX_W_3A48_P_2 and
+ and VEX_W_3A49_P_2.
+ * i386-gen.c (operand_type_init): Added OPERAND_TYPE_VEC_IMM4
+ for Vec_Imm4 operands.
+ * i386-opc.h (enum): Added Vec_Imm4.
+ (i386_operand_type): Added vec_imm4.
+ * i386-opc.tbl: Add entries for vpermilp[ds].
+ * i386-init.h: Regenerated.
+ * i386-tbl.h: Regenerated.
+
+2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
+
+ * ppc-dis.c (ppc_opts): Add "pwr4", "pwr5", "pwr5x", "pwr6"
+ and "pwr7". Move "a2" into alphabetical order.
+
2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
* ppc-dis.c (ppc_opts): Add titan entry.
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index a3e216e..34dcd10 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -91,6 +91,7 @@ static void OP_M (int, int);
static void OP_VEX (int, int);
static void OP_EX_Vex (int, int);
static void OP_EX_VexW (int, int);
+static void OP_EX_VexImmW (int, int);
static void OP_XMM_Vex (int, int);
static void OP_XMM_VexW (int, int);
static void OP_REG_VexI4 (int, int);
@@ -380,6 +381,7 @@ fetch_data (struct disassemble_info *info, bfd_byte *addr)
#define EXVexW { OP_EX_VexW, x_mode }
#define EXdVexW { OP_EX_VexW, d_mode }
#define EXqVexW { OP_EX_VexW, q_mode }
+#define EXVexImmW { OP_EX_VexImmW, x_mode }
#define XMVex { OP_XMM_Vex, 0 }
#define XMVexScalar { OP_XMM_Vex, scalar_mode }
#define XMVexW { OP_XMM_VexW, 0 }
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-02-09 19:01 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-02-09 19:01 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 67b33cc514c321ad5f1cc33f3cb56417c6c480ed (commit)
via d57534d1e1d0c6967049b1c1fbffb44d6d839557 (commit)
via 48776b3f7aa327235e20d9df43475372863dfa67 (commit)
via 1815bc954545ff9c924a663393619e2f3266fa49 (commit)
via 5ba43a191ed2760adddffc9d397b86b48854f59a (commit)
via 29ec348b84e9a2ed8fafce6a2e5eb9e1bddfa7bc (commit)
via bdcadf81ab88597254944459d44f381f85457a06 (commit)
via d5da0c7bcd78ffdd6a39c6e74fb0c5cd4cf7e486 (commit)
via 5475d00291d4d31c8efc1d59fac324c9904d119b (commit)
via e893a494716367837bc6fa5b3e6940ccfb9ac9d4 (commit)
via 49071a113ee6a269c4ccd0bfb34011fd57414e65 (commit)
via 88ee00b570126b76f7c7ad79892b987af122b754 (commit)
via ed59bb978fdcad3d015d080404c28251096ff92e (commit)
from ffce18a2200e8d10eab809847f0bb1b1ca503126 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 67b33cc514c321ad5f1cc33f3cb56417c6c480ed
Merge: ffce18a2200e8d10eab809847f0bb1b1ca503126 d57534d1e1d0c6967049b1c1fbffb44d6d839557
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Tue Feb 9 20:00:47 2010 +0100
Merge remote branch 'gdb/master'
commit d57534d1e1d0c6967049b1c1fbffb44d6d839557
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Feb 9 15:52:57 2010 +0000
2010-02-09 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_symfile_relocate): New function.
(macho_sym_fns): Use macho_symfile_relocate instead of
default_symfile_relocate.
(macho_oso_data): New type.
(current_oso): New variable.
(macho_add_oso_symfile): Do not compute section_addr_info, but
instead set vma of sections.
Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
Set and clear current_oso.
commit 48776b3f7aa327235e20d9df43475372863dfa67
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Feb 9 13:39:21 2010 +0000
2010-02-09 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
non-external relocation.
commit 1815bc954545ff9c924a663393619e2f3266fa49
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Feb 9 13:16:33 2010 +0000
* gdb.ada/ptype_tagged_param: New testcase.
commit 5ba43a191ed2760adddffc9d397b86b48854f59a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Feb 9 13:15:09 2010 +0000
Wrong type description for tagged type parameter.
* ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
reference to a tagged type.
commit 29ec348b84e9a2ed8fafce6a2e5eb9e1bddfa7bc
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Feb 9 12:31:01 2010 +0000
* elf64-ppc.c (merge_got_entries): Move earlier in file.
(allocate_dynrelocs): Merge got entries here if not doing multi-toc.
(ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
(ppc64_elf_layout_multitoc): Don't resize if we have already
merged got entries.
commit bdcadf81ab88597254944459d44f381f85457a06
Author: Martin Schwidefsky <schwidefsky@de.ibm.com>
Date: Tue Feb 9 12:14:42 2010 +0000
bfd/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
elfcore_write_s390_prefix): New.
* elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
elfcore_write_s390_prefix): New.
(elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
(elfcore_write_register_note): Handle .reg-s390-timer,
.reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
.reg-s390-prefix section.
binutils/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* readelf.c (get_note_type): Handle NT_S390_TIMER, NT_S390_TODCMP,
NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
include/elf/
2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
* common.h (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG,
NT_S390_CTRS and NT_S390_PREFIX): Define.
commit d5da0c7bcd78ffdd6a39c6e74fb0c5cd4cf7e486
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Feb 9 12:08:19 2010 +0000
* elf64-ppc.c (has_small_toc_reloc): Don't define.
(makes_toc_func_call, call_check_in_progress): Shuffle flags.
(struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
code setting the flag.
(ppc64_elf_next_toc_section): Group big-toc sections in
0x80008000 chunks.
commit 5475d00291d4d31c8efc1d59fac324c9904d119b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Feb 9 11:54:52 2010 +0000
* elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
commit e893a494716367837bc6fa5b3e6940ccfb9ac9d4
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Feb 9 11:35:37 2010 +0000
* elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
unsigned char. Update variables and code using them throughout file.
(struct ppc_link_hash_entry): Likewise for tls_mask.
commit 49071a113ee6a269c4ccd0bfb34011fd57414e65
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Feb 9 10:59:50 2010 +0000
2010-02-08 Tristan Gingold <gingold@adacore.com>
* objfiles.c (objfile_separate_debug_iterate): Do not iterate on
brothers of the parent.
commit 88ee00b570126b76f7c7ad79892b987af122b754
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Feb 9 00:00:33 2010 +0000
*** empty log message ***
commit ed59bb978fdcad3d015d080404c28251096ff92e
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 8 23:00:04 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 42 ++++
bfd/elf-bfd.h | 10 +
bfd/elf.c | 135 +++++++++++++
bfd/elf64-ppc.c | 235 +++++++++++-----------
bfd/mach-o.c | 6 +
bfd/version.h | 2 +-
gdb/ChangeLog | 24 +++
gdb/ada-lang.c | 9 +-
gdb/machoread.c | 182 ++++++++++++-----
gdb/objfiles.c | 11 +-
gdb/testsuite/ChangeLog | 4 +
gdb/testsuite/gdb.ada/ptype_tagged_param.exp | 47 +++++
gdb/testsuite/gdb.ada/ptype_tagged_param/foo.adb | 23 ++
gdb/testsuite/gdb.ada/ptype_tagged_param/pck.adb | 30 +++
gdb/testsuite/gdb.ada/ptype_tagged_param/pck.ads | 29 +++
gdb/version.in | 2 +-
include/elf/ChangeLog | 5 +
include/elf/common.h | 10 +
18 files changed, 637 insertions(+), 169 deletions(-)
create mode 100644 gdb/testsuite/gdb.ada/ptype_tagged_param.exp
create mode 100644 gdb/testsuite/gdb.ada/ptype_tagged_param/foo.adb
create mode 100644 gdb/testsuite/gdb.ada/ptype_tagged_param/pck.adb
create mode 100644 gdb/testsuite/gdb.ada/ptype_tagged_param/pck.ads
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 966396d..0e0646e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,45 @@
+2010-02-09 Tristan Gingold <gingold@adacore.com>
+
+ * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
+ non-external relocation.
+
+2010-02-09 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (merge_got_entries): Move earlier in file.
+ (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
+ (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
+ (ppc64_elf_layout_multitoc): Don't resize if we have already
+ merged got entries.
+
+2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
+
+ * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
+ elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
+ elfcore_write_s390_prefix): New.
+ * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
+ elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
+ elfcore_write_s390_prefix): New.
+ (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
+ NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
+ (elfcore_write_register_note): Handle .reg-s390-timer,
+ .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
+ .reg-s390-prefix section.
+
+2010-02-09 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
+ unsigned char. Update variables and code using them throughout file.
+ (struct ppc_link_hash_entry): Likewise for tls_mask.
+
+ * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
+
+ * elf64-ppc.c (has_small_toc_reloc): Don't define.
+ (makes_toc_func_call, call_check_in_progress): Shuffle flags.
+ (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
+ code setting the flag.
+ (ppc64_elf_next_toc_section): Group big-toc sections in
+ 0x80008000 chunks.
+
2010-02-08 David S. Miller <davem@davemloft.net>
* elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 681ded5..6d4b8dd 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2175,6 +2175,16 @@ extern char *elfcore_write_ppc_vmx
(bfd *, char *, int *, const void *, int);
extern char *elfcore_write_ppc_vsx
(bfd *, char *, int *, const void *, int);
+extern char *elfcore_write_s390_timer
+ (bfd *, char *, int *, const void *, int);
+extern char *elfcore_write_s390_todcmp
+ (bfd *, char *, int *, const void *, int);
+extern char *elfcore_write_s390_todpreg
+ (bfd *, char *, int *, const void *, int);
+extern char *elfcore_write_s390_ctrs
+ (bfd *, char *, int *, const void *, int);
+extern char *elfcore_write_s390_prefix
+ (bfd *, char *, int *, const void *, int);
extern char *elfcore_write_lwpstatus
(bfd *, char *, int *, long, int, const void *);
extern char *elfcore_write_register_note
diff --git a/bfd/elf.c b/bfd/elf.c
index 795a9d2..81a21f5 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -7672,6 +7672,36 @@ elfcore_grok_s390_high_gprs (bfd *abfd, Elf_Internal_Note *note)
return elfcore_make_note_pseudosection (abfd, ".reg-s390-high-gprs", note);
}
+static bfd_boolean
+elfcore_grok_s390_timer (bfd *abfd, Elf_Internal_Note *note)
+{
+ return elfcore_make_note_pseudosection (abfd, ".reg-s390-timer", note);
+}
+
+static bfd_boolean
+elfcore_grok_s390_todcmp (bfd *abfd, Elf_Internal_Note *note)
+{
+ return elfcore_make_note_pseudosection (abfd, ".reg-s390-todcmp", note);
+}
+
+static bfd_boolean
+elfcore_grok_s390_todpreg (bfd *abfd, Elf_Internal_Note *note)
+{
+ return elfcore_make_note_pseudosection (abfd, ".reg-s390-todpreg", note);
+}
+
+static bfd_boolean
+elfcore_grok_s390_ctrs (bfd *abfd, Elf_Internal_Note *note)
+{
+ return elfcore_make_note_pseudosection (abfd, ".reg-s390-ctrs", note);
+}
+
+static bfd_boolean
+elfcore_grok_s390_prefix (bfd *abfd, Elf_Internal_Note *note)
+{
+ return elfcore_make_note_pseudosection (abfd, ".reg-s390-prefix", note);
+}
+
#if defined (HAVE_PRPSINFO_T)
typedef prpsinfo_t elfcore_psinfo_t;
#if defined (HAVE_PRPSINFO32_T) /* Sparc64 cross Sparc32 */
@@ -8050,6 +8080,41 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
else
return TRUE;
+ case NT_S390_TIMER:
+ if (note->namesz == 6
+ && strcmp (note->namedata, "LINUX") == 0)
+ return elfcore_grok_s390_timer (abfd, note);
+ else
+ return TRUE;
+
+ case NT_S390_TODCMP:
+ if (note->namesz == 6
+ && strcmp (note->namedata, "LINUX") == 0)
+ return elfcore_grok_s390_todcmp (abfd, note);
+ else
+ return TRUE;
+
+ case NT_S390_TODPREG:
+ if (note->namesz == 6
+ && strcmp (note->namedata, "LINUX") == 0)
+ return elfcore_grok_s390_todpreg (abfd, note);
+ else
+ return TRUE;
+
+ case NT_S390_CTRS:
+ if (note->namesz == 6
+ && strcmp (note->namedata, "LINUX") == 0)
+ return elfcore_grok_s390_ctrs (abfd, note);
+ else
+ return TRUE;
+
+ case NT_S390_PREFIX:
+ if (note->namesz == 6
+ && strcmp (note->namedata, "LINUX") == 0)
+ return elfcore_grok_s390_prefix (abfd, note);
+ else
+ return TRUE;
+
case NT_PRPSINFO:
case NT_PSINFO:
if (bed->elf_backend_grok_psinfo)
@@ -8715,6 +8780,66 @@ elfcore_write_s390_high_gprs (bfd *abfd,
}
char *
+elfcore_write_s390_timer (bfd *abfd,
+ char *buf,
+ int *bufsiz,
+ const void *s390_timer,
+ int size)
+{
+ char *note_name = "LINUX";
+ return elfcore_write_note (abfd, buf, bufsiz,
+ note_name, NT_S390_TIMER, s390_timer, size);
+}
+
+char *
+elfcore_write_s390_todcmp (bfd *abfd,
+ char *buf,
+ int *bufsiz,
+ const void *s390_todcmp,
+ int size)
+{
+ char *note_name = "LINUX";
+ return elfcore_write_note (abfd, buf, bufsiz,
+ note_name, NT_S390_TODCMP, s390_todcmp, size);
+}
+
+char *
+elfcore_write_s390_todpreg (bfd *abfd,
+ char *buf,
+ int *bufsiz,
+ const void *s390_todpreg,
+ int size)
+{
+ char *note_name = "LINUX";
+ return elfcore_write_note (abfd, buf, bufsiz,
+ note_name, NT_S390_TODPREG, s390_todpreg, size);
+}
+
+char *
+elfcore_write_s390_ctrs (bfd *abfd,
+ char *buf,
+ int *bufsiz,
+ const void *s390_ctrs,
+ int size)
+{
+ char *note_name = "LINUX";
+ return elfcore_write_note (abfd, buf, bufsiz,
+ note_name, NT_S390_CTRS, s390_ctrs, size);
+}
+
+char *
+elfcore_write_s390_prefix (bfd *abfd,
+ char *buf,
+ int *bufsiz,
+ const void *s390_prefix,
+ int size)
+{
+ char *note_name = "LINUX";
+ return elfcore_write_note (abfd, buf, bufsiz,
+ note_name, NT_S390_PREFIX, s390_prefix, size);
+}
+
+char *
elfcore_write_register_note (bfd *abfd,
char *buf,
int *bufsiz,
@@ -8734,6 +8859,16 @@ elfcore_write_register_note (bfd *abfd,
return elfcore_write_ppc_vsx (abfd, buf, bufsiz, data, size);
if (strcmp (section, ".reg-s390-high-gprs") == 0)
return elfcore_write_s390_high_gprs (abfd, buf, bufsiz, data, size);
+ if (strcmp (section, ".reg-s390-timer") == 0)
+ return elfcore_write_s390_timer (abfd, buf, bufsiz, data, size);
+ if (strcmp (section, ".reg-s390-todcmp") == 0)
+ return elfcore_write_s390_todcmp (abfd, buf, bufsiz, data, size);
+ if (strcmp (section, ".reg-s390-todpreg") == 0)
+ return elfcore_write_s390_todpreg (abfd, buf, bufsiz, data, size);
+ if (strcmp (section, ".reg-s390-ctrs") == 0)
+ return elfcore_write_s390_ctrs (abfd, buf, bufsiz, data, size);
+ if (strcmp (section, ".reg-s390-prefix") == 0)
+ return elfcore_write_s390_prefix (abfd, buf, bufsiz, data, size);
return NULL;
}
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 775a2dd..90d1b9f 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -2546,10 +2546,10 @@ struct got_entry
/* Zero for non-tls entries, or TLS_TLS and one of TLS_GD, TLS_LD,
TLS_TPREL or TLS_DTPREL for tls entries. */
- char tls_type;
+ unsigned char tls_type;
/* Non-zero if got.ent points to real entry. */
- char is_indirect;
+ unsigned char is_indirect;
/* Reference count until size_dynamic_sections, GOT offset thereafter. */
union
@@ -2592,6 +2592,10 @@ struct ppc64_elf_obj_tdata
/* A copy of relocs before they are modified for --emit-relocs. */
Elf_Internal_Rela *opd_relocs;
+
+ /* Nonzero if this bfd has small toc/got relocs, ie. that expect
+ the reloc to be in the range -32768 to 32767. */
+ unsigned int has_small_toc_reloc;
};
#define ppc64_elf_tdata(bfd) \
@@ -3698,7 +3702,7 @@ struct ppc_link_hash_entry
#define TLS_EXPLICIT 32 /* Marks TOC section TLS relocs. */
#define TLS_TPRELGD 64 /* TPREL reloc resulting from GD->IE. */
#define PLT_IFUNC 128 /* STT_GNU_IFUNC. */
- char tls_mask;
+ unsigned char tls_mask;
};
/* ppc64 ELF linker hash table. */
@@ -3810,16 +3814,12 @@ struct ppc_link_hash_table
/* Nonzero if this section has any toc or got relocs. */
#define has_toc_reloc sec_flg2
-/* Nonzero if this section has small toc/got relocs, ie. that expect
- the reloc to be in the range -32768 to 32767. */
-#define has_small_toc_reloc sec_flg3
-
/* Nonzero if this section has a call to another section that uses
the toc or got. */
-#define makes_toc_func_call sec_flg4
+#define makes_toc_func_call sec_flg3
/* Recursion protection when determining above flag. */
-#define call_check_in_progress sec_flg5
+#define call_check_in_progress sec_flg4
/* Get the ppc64 ELF linker hash table from a link_info structure. */
@@ -4745,7 +4745,7 @@ update_local_sym_info (bfd *abfd, Elf_Internal_Shdr *symtab_hdr,
{
struct got_entry **local_got_ents = elf_local_got_ents (abfd);
struct plt_entry **local_plt;
- char *local_got_tls_masks;
+ unsigned char *local_got_tls_masks;
if (local_got_ents == NULL)
{
@@ -4787,7 +4787,7 @@ update_local_sym_info (bfd *abfd, Elf_Internal_Shdr *symtab_hdr,
}
local_plt = (struct plt_entry **) (local_got_ents + symtab_hdr->sh_info);
- local_got_tls_masks = (char *) (local_plt + symtab_hdr->sh_info);
+ local_got_tls_masks = (unsigned char *) (local_plt + symtab_hdr->sh_info);
local_got_tls_masks[r_symndx] |= tls_type;
return local_plt + r_symndx;
@@ -5023,7 +5023,7 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
|| r_type == R_PPC64_GOT16_DS)
{
htab->do_multi_toc = 1;
- sec->has_small_toc_reloc = 1;
+ ppc64_elf_tdata (abfd)->has_small_toc_reloc = 1;
}
if (ppc64_elf_tdata (abfd)->got == NULL
@@ -5124,7 +5124,7 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
case R_PPC64_TOC16:
case R_PPC64_TOC16_DS:
htab->do_multi_toc = 1;
- sec->has_small_toc_reloc = 1;
+ ppc64_elf_tdata (abfd)->has_small_toc_reloc = 1;
case R_PPC64_TOC16_LO:
case R_PPC64_TOC16_HI:
case R_PPC64_TOC16_HA:
@@ -5805,7 +5805,7 @@ ppc64_elf_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info,
unsigned long r_symndx;
enum elf_ppc64_reloc_type r_type;
struct elf_link_hash_entry *h = NULL;
- char tls_type = 0;
+ unsigned char tls_type = 0;
r_symndx = ELF64_R_SYM (rel->r_info);
r_type = ELF64_R_TYPE (rel->r_info);
@@ -5840,7 +5840,7 @@ ppc64_elf_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info,
{
struct plt_entry **local_plt = (struct plt_entry **)
(local_got_ents + symtab_hdr->sh_info);
- char *local_got_tls_masks = (char *)
+ unsigned char *local_got_tls_masks = (unsigned char *)
(local_plt + symtab_hdr->sh_info);
if ((local_got_tls_masks[r_symndx] & PLT_IFUNC) != 0)
ifunc = local_plt + r_symndx;
@@ -6567,7 +6567,7 @@ static bfd_boolean
get_sym_h (struct elf_link_hash_entry **hp,
Elf_Internal_Sym **symp,
asection **symsecp,
- char **tls_maskp,
+ unsigned char **tls_maskp,
Elf_Internal_Sym **locsymsp,
unsigned long r_symndx,
bfd *ibfd)
@@ -6635,7 +6635,7 @@ get_sym_h (struct elf_link_hash_entry **hp,
if (tls_maskp != NULL)
{
struct got_entry **lgot_ents;
- char *tls_mask;
+ unsigned char *tls_mask;
tls_mask = NULL;
lgot_ents = elf_local_got_ents (ibfd);
@@ -6643,7 +6643,7 @@ get_sym_h (struct elf_link_hash_entry **hp,
{
struct plt_entry **local_plt = (struct plt_entry **)
(lgot_ents + symtab_hdr->sh_info);
- char *lgot_masks = (char *)
+ unsigned char *lgot_masks = (unsigned char *)
(local_plt + symtab_hdr->sh_info);
tls_mask = &lgot_masks[r_symndx];
}
@@ -6658,7 +6658,7 @@ get_sym_h (struct elf_link_hash_entry **hp,
type suitable for optimization, and 1 otherwise. */
static int
-get_tls_mask (char **tls_maskp,
+get_tls_mask (unsigned char **tls_maskp,
unsigned long *toc_symndx,
bfd_vma *toc_addend,
Elf_Internal_Sym **locsymsp,
@@ -7480,8 +7480,8 @@ ppc64_elf_tls_optimize (struct bfd_link_info *info)
struct elf_link_hash_entry *h;
Elf_Internal_Sym *sym;
asection *sym_sec;
- char *tls_mask;
- char tls_set, tls_clear, tls_type = 0;
+ unsigned char *tls_mask;
+ unsigned char tls_set, tls_clear, tls_type = 0;
bfd_vma value;
bfd_boolean ok_tprel, is_local;
long toc_ref_index = 0;
@@ -7694,7 +7694,7 @@ ppc64_elf_tls_optimize (struct bfd_link_info *info)
if (expecting_tls_get_addr == 2)
{
/* Check for toc tls entries. */
- char *toc_tls;
+ unsigned char *toc_tls;
int retval;
retval = get_tls_mask (&toc_tls, NULL, NULL,
@@ -8306,6 +8306,26 @@ allocate_got (struct elf_link_hash_entry *h,
}
}
+/* This function merges got entries in the same toc group. */
+
+static void
+merge_got_entries (struct got_entry **pent)
+{
+ struct got_entry *ent, *ent2;
+
+ for (ent = *pent; ent != NULL; ent = ent->next)
+ if (!ent->is_indirect)
+ for (ent2 = ent->next; ent2 != NULL; ent2 = ent2->next)
+ if (!ent2->is_indirect
+ && ent2->addend == ent->addend
+ && ent2->tls_type == ent->tls_type
+ && elf_gp (ent2->owner) == elf_gp (ent->owner))
+ {
+ ent2->is_indirect = TRUE;
+ ent2->got.ent = ent;
+ }
+}
+
/* Allocate space in .plt, .got and associated reloc sections for
dynamic relocs. */
@@ -8416,10 +8436,31 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
gent->tls_type = TLS_TLS | TLS_TPREL;
}
+ /* Remove any list entry that won't generate a word in the GOT before
+ we call merge_got_entries. Otherwise we risk merging to empty
+ entries. */
pgent = &h->got.glist;
while ((gent = *pgent) != NULL)
if (gent->got.refcount > 0)
{
+ if ((gent->tls_type & TLS_LD) != 0
+ && !h->def_dynamic)
+ {
+ ppc64_tlsld_got (gent->owner)->got.refcount += 1;
+ *pgent = gent->next;
+ }
+ else
+ pgent = &gent->next;
+ }
+ else
+ *pgent = gent->next;
+
+ if (!htab->do_multi_toc)
+ merge_got_entries (&h->got.glist);
+
+ for (gent = h->got.glist; gent != NULL; gent = gent->next)
+ if (!gent->is_indirect)
+ {
/* Make sure this symbol is output as a dynamic symbol.
Undefined weak syms won't yet be marked as dynamic,
nor will all TLS symbols. */
@@ -8432,22 +8473,11 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
return FALSE;
}
- if ((gent->tls_type & TLS_LD) != 0
- && !h->def_dynamic)
- {
- ppc64_tlsld_got (gent->owner)->got.refcount += 1;
- *pgent = gent->next;
- continue;
- }
-
if (!is_ppc64_elf (gent->owner))
abort ();
allocate_got (h, info, gent);
- pgent = &gent->next;
}
- else
- *pgent = gent->next;
if (eh->dyn_relocs == NULL
|| (!htab->elf.dynamic_sections_created
@@ -8587,6 +8617,7 @@ ppc64_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
asection *s;
bfd_boolean relocs;
bfd *ibfd;
+ struct got_entry *first_tlsld;
htab = ppc_hash_table (info);
if (htab == NULL)
@@ -8617,7 +8648,7 @@ ppc64_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
struct got_entry **end_lgot_ents;
struct plt_entry **local_plt;
struct plt_entry **end_local_plt;
- char *lgot_masks;
+ unsigned char *lgot_masks;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-02-08 21:46 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-02-08 21:46 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via ffce18a2200e8d10eab809847f0bb1b1ca503126 (commit)
via 59645aa3473e6ae9d9e5a14a02775aaec0da43d9 (commit)
via b19e754adc28acc3e4402e5533623f244e438cb8 (commit)
via 0e329011bd87e59743cffea65bec3234aa126087 (commit)
via b0844a031ebf51515d94e86cfc1bbf715a00b960 (commit)
via 3d2f982514909f1e3ffef172518343fa3798e042 (commit)
via 3a9b34db63f249b347531423786083ddcfa02ec2 (commit)
via 3a1fc260f01d38b733dc4e7941cb3172dfdf6d01 (commit)
via 93a1fa4f1853fca63cb20e433d7c5df83fa140d8 (commit)
via 17f6e384d426f3e431304ec3675111f895dd8dd3 (commit)
via b8e9be9e1d3479a80f9e183952e2147586d19b33 (commit)
via 5fc71c543573d19df7045be1c838b774b0afc012 (commit)
via a9479275b5f22f5c6173ed3041b87d59db1f0cdb (commit)
via 7401c7994daa8b50ce0826ca72685fe4b6225b72 (commit)
via 501c57da40fd27c8036a5fc995f750b0559272ad (commit)
via 6674a9ef00df45610f9f8b7adb649b1b6341dbe0 (commit)
via 1199bb61700ada461b4c1e771f32d9e35de9dfc8 (commit)
via 35f2fe7352da11cf9ea2b3364edb8d10628672c3 (commit)
via 0299f26535f0f08b8f399e77405f9bbf5714f48a (commit)
via b646ae2c9b133657de13d956457adcf2297bae64 (commit)
via c3422dcf92fc4eb923363e2bf1a9c68f9e101e06 (commit)
via bf395db00354dbc103c8b0b5ac8719213aac2e9b (commit)
via 187ce402ef87c4f3654abdce5fe7d07fe9380940 (commit)
via 128d89354da4e84c4544688935a89bf600d85571 (commit)
via 4589717f84b664573a523d5da71de4f846307bd7 (commit)
via c07a859c3f48b9227993bbe3d49bbfb720b38c41 (commit)
via 84e1ba7e8c22451878539bae50aac43e187d9490 (commit)
via af656b8414fec5a47dcd6fe1681d6e1f230d5914 (commit)
via aa80c77887d624c8adf00e26357e847f2e8829cf (commit)
via 0f4b1f74b03af439176345bb9d343c8651d03b21 (commit)
via 3d3757473bbcc33038d367ba4a911e1a638c5802 (commit)
via 26dbf2d938840d7fddb82411551103677a930c1a (commit)
via 8b3869f256d3e86a6041d70b84b3302e192e6785 (commit)
via 34edd79074a60f5eb6f2f63784b79f73f998684f (commit)
via 7b421cc920120f2c97ac63e5adea72cf92f70ad4 (commit)
via 032fd2a5565370801e122b965a8c0baf1e50b8cc (commit)
via 4461498a39f43d74c40a5dff5782cb923beeda9f (commit)
via 96b187e1abcb7a4aefb34644df4d19fae0a2b931 (commit)
via 1eec3532be1ca1abc689b2ecb56569f5f776405c (commit)
via c35f5e5e2a5e5b2fde403be03a7c9dd7c081fb6c (commit)
via 0e635d0fd4319eb2fed78ca26837562dc090cd94 (commit)
via 8199495e2d1e310161a6d851f37586ef37ec3d0a (commit)
via b1e1c0e9041a00e051ef8aa82104750cdae57c4c (commit)
via 67941cea3d38dcab83535f76322e0c647b9de38d (commit)
via c3c2f8a885cc397ac3d4035ee79b990b4a61515c (commit)
via 7e5ee87a91e54d85e03760ae8390adb06d3a79c3 (commit)
via 693c5cda8ca712366a52425bf8170e2a4976d14c (commit)
via 0f1dfb12fe8bad5010d8198c3857d52d581209da (commit)
via 209648782dcb3bfb7669f133a14dc066958d6b8e (commit)
via 54fb73670ab637349cde1f432402820cd73a74ad (commit)
via a5569832ba1690b570eb6f1ef827f3fbce23120b (commit)
via ccdc0d7f44831f2b533959768a80acff796d3de8 (commit)
via d0428c9dd0c76c00a5eb98e9b921b8aa425b1cee (commit)
via 26e2bc3f21680416a1618a1d4d69ad25d71565d0 (commit)
via 47820004f2c32033b1299f31201089acb84a52b1 (commit)
via 33a3dfee90b9f19d4d8874446f61e464d86c53aa (commit)
via 1738d37d5b227a44fef316fbf306fb0d4bde0cf6 (commit)
via f70ba5ba8973067f955ed16ce832920b59b980db (commit)
via d56f2f6a8db3b232c307c18074129e964528a7e2 (commit)
via 1845978e84a2b5dbb403fb67a03d141c6176d17d (commit)
via 601478efe6a022f653c350d6075aa284beaa6f8f (commit)
via 123d43888968479324b0846c17557fea7edb16c9 (commit)
via b110f98d477860861ed9522b2de3f085bf5c7dbd (commit)
from 8a66451abb01b7fa7aa0fb5947d1003df6e7f948 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ffce18a2200e8d10eab809847f0bb1b1ca503126
Merge: 8a66451abb01b7fa7aa0fb5947d1003df6e7f948 59645aa3473e6ae9d9e5a14a02775aaec0da43d9
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Mon Feb 8 22:45:43 2010 +0100
Merge remote branch 'gdb/master'
commit 59645aa3473e6ae9d9e5a14a02775aaec0da43d9
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Feb 8 20:55:42 2010 +0000
gdb
PR c++/8017:
* value.h: Update.
* valops.c (search_struct_field): Make 'name' const.
(search_struct_method): Likewise.
(find_method_list): Make 'method' const.
(value_struct_elt): Make 'name' and 'err' const.
(value_find_oload_method_list): Make 'method' const.
(find_overload_match): Make 'name' const.
* eval.c (evaluate_subexp_standard): New locals function,
function_name.
<OP_FUNCALL>: Handle OP_SCOPE specially.
gdb/testsuite
PR c++/8017:
* gdb.cp/overload.exp: Add tests.
* gdb.cp/overload.cc (struct K): New.
(namespace N): New.
(main): Call new functions.
(K::staticoverload): Define.
commit b19e754adc28acc3e4402e5533623f244e438cb8
Author: David S. Miller <davem@redhat.com>
Date: Mon Feb 8 20:28:43 2010 +0000
include/
* elf/sparc.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
bfd/
* reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
(BFD_RELOC_SPARC_IRELATIVE): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
and loc_hash_memory.
(_bfd_sparc_elf_link_hash_table_free): Declare.
* elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
(elf_backend_add_symbol_hook, elf_backend_post_process_headers,
bfd_elf32_bfd_link_hash_table_free): Define.
* elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
has_ifunc_symbols if STT_GNU_IFUNC.
(bfd_elf64_bfd_link_hash_table_free): Define.
(elf_backend_post_process_headers): Define always.
* elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
(sparc_reloc_map): Add entries for new IFUNC relocs.
(_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
(_bfd_sparc_elf_info_to_howto_ptr): Likewise.
(elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
elf_sparc_get_local_sym_hash): New.
(_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
from here...
(_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
local hash table.
(_bfd_sparc_elf_link_hash_table_free): New.
(create_ifunc_sections): New.
(_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
cons up a fake local hash table entry for it. Unconditionally add
a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
dyn relocs for ifunc.
(_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
(allocate_dynrelocs): Unconditionally emit a PLT entry when STT_GNU_IFUNC
and h->def_regular. Count GOT dyn relocs for ifunc.
(allocate_local_dynrelocs): New function.
(_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash table.
Emit dynamic relocs to irelplt when not shared. Treat iplt like splt.
(_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
(_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt
in iplt/irelplt.
ld/testsuite/
* ld-ifunc/ifunc.exp: Run for sparc.
commit 0e329011bd87e59743cffea65bec3234aa126087
Author: David S. Miller <davem@redhat.com>
Date: Mon Feb 8 20:18:02 2010 +0000
bfd/
* elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
* elfxx-sparc.c (create_got_section): Delete.
(_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
section creator does that work for us. Use ->elf.foo instead of
->foo where applicable.
(_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
where applicable.
(allocate_dynrelocs): Likewise.
(_bfd_sparc_elf_size_dynamic_sections): Likewise.
(_bfd_sparc_elf_relocate_section): Likewise.
(sparc_vxworks_build_plt_entry): Likewise.
(_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
(sparc_finish_dyn): Likewise.
(sparc_vxworks_finish_exec_plt): Likewise.
(sparc_vxworks_finish_shared_plt): Likewise.
(_bfd_sparc_elf_finish_dynamic_sections): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
macros for visibilty and locality checks.
(_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
(allocate_dynrelocs): Likewise.
(_bfd_sparc_elf_relocate_section): Likewise.
(_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
but never used local var 'dynobj'.
* elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
nocopyreloc.
commit b0844a031ebf51515d94e86cfc1bbf715a00b960
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Mon Feb 8 20:00:54 2010 +0000
bfd/
* xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
max_contents_size, only consider sections whose contents must
be swapped in.
commit 3d2f982514909f1e3ffef172518343fa3798e042
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Mon Feb 8 19:50:03 2010 +0000
* infrun.c (handle_inferior_event): Do not look up regcache
for exited processes.
commit 3a9b34db63f249b347531423786083ddcfa02ec2
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Feb 8 19:43:19 2010 +0000
Document i386 XML target features.
2010-02-08 H.J. Lu <hongjiu.lu@intel.com>
* gdb.texinfo: Document i386 target features.
commit 3a1fc260f01d38b733dc4e7941cb3172dfdf6d01
Author: cmoller <cmoller>
Date: Mon Feb 8 18:27:53 2010 +0000
PR gdb/10728
* valarith.c (value_ptrdiff): Added a test for a zero type length,
warn if found, and assume length = 1.
* gdb.cp/pr10728-x.h: New file.
* gdb.cp/pr10728-x.cc: New file.
* gdb.cp/pr10728-y.cc: New file.
* gdb.cp/pr10728.exp: New file.
* gdb.cp/Makefile.in (EXECUTABLES): Add pr10728
commit 93a1fa4f1853fca63cb20e433d7c5df83fa140d8
Author: cmoller <cmoller>
Date: Mon Feb 8 18:04:15 2010 +0000
PR gdb/9067
* cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
cp_print_static_field) Fix use of obstacks.
* gdb.cp/pr9067.exp: New
* gdb.cp/pr9067.cc: New
* gdb.cp/Makefile.in (EXECUTABLES): Add pr9067
commit 17f6e384d426f3e431304ec3675111f895dd8dd3
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Feb 8 15:44:09 2010 +0000
* linux-nat.c (linux_nat_resume): In non-stop, also only tag
resumed LWPs as resumed.
(linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
of throwing an internal error. If an LWP of a process we're not
waiting for reports a signal, don't force collecting a SIGSTOP,
and if it was breakpoint hit in non-stop mode, cancel it. Don't
go through all LWPs cancelling breakpoints in non-stop mode.
(resume_stopped_resumed_lwps): New.
(linux_nat_wait): Use it.
commit b8e9be9e1d3479a80f9e183952e2147586d19b33
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 8 14:09:25 2010 +0000
* elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
(ppc64_elf_size_dynamic_sections): ..and here..
(merge_got_entries): ..rather than here.
commit 5fc71c543573d19df7045be1c838b774b0afc012
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 8 13:50:15 2010 +0000
bfd/
* elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
(has_small_toc_reloc): Define.
(ppc64_elf_check_relocs): Set the above flags.
(ppc64_elf_edit_opd): Delete obfd param.
(ppc64_elf_tls_optimize): Likewise.
(ppc64_elf_edit_toc): Likewise.
(ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
* elf64-ppc.h: Update prototypes.
ld/
* emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
function parameters.
commit a9479275b5f22f5c6173ed3041b87d59db1f0cdb
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 8 13:47:22 2010 +0000
update copyright date
commit 7401c7994daa8b50ce0826ca72685fe4b6225b72
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 8 13:16:23 2010 +0000
* section.c (struct bfd_section): Delete has_tls_reloc,
has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
Add sec_flg0 thru sec_flg5.
(BFD_FAKE_SECTION): Update for changed flags.
* ecoff.c (bfd_debug_section): Likewise.
* elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
* elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
(has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
* elf32-xtensa.c (reloc_done): Define.
* elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
* bfd-in2.h: Regenerate.
commit 501c57da40fd27c8036a5fc995f750b0559272ad
Author: Joel Brobecker <brobecker@gnat.com>
Date: Mon Feb 8 11:33:53 2010 +0000
* lib/gdb.exp (gdb_test_timeout): New global variable.
Set it to timeout if not already set.
(gdb_init): Reset the value of timeout to gdb_test_timeout.
commit 6674a9ef00df45610f9f8b7adb649b1b6341dbe0
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon Feb 8 09:13:47 2010 +0000
2010-02-08 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
for non-scattered relocations.
commit 1199bb61700ada461b4c1e771f32d9e35de9dfc8
Author: Nathan Sidwell <nathan@codesourcery.com>
Date: Mon Feb 8 07:09:37 2010 +0000
bfd/
* elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
apuinfo sections, only scan input sections once and reuse the
buffer.
ld/testsuite/
* ld-powerpc/apuinfo-nul.s: New.
* ld-powerpc/apuinfo.rd: Add it.
* ld-powerpc/powerpc.exp: Likewise.
commit 35f2fe7352da11cf9ea2b3364edb8d10628672c3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Feb 8 05:08:42 2010 +0000
Add x86 XML target description files.
2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
* features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
i386/amd64 and i386/amd64-linux.
(i386/i386-expedite): New.
(i386/i386-linux-expedite): Likewise.
(i386/amd64-expedite):Likewise.
(i386/amd64-linux-expedite): Likewise.
($(outdir)/i386/i386-linux.dat): Likewise.
($(outdir)/i386/amd64.dat): Likewise.
($(outdir)/i386/amd64-linux.dat): Likewise.
* features/i386/32bit-core.xml: New.
* features/i386/32bit-linux.xml: Likewise.
* features/i386/32bit-sse.xml: Likewise.
* features/i386/64bit-core.xml: Likewise.
* features/i386/64bit-linux.xml: Likewise.
* features/i386/64bit-sse.xml: Likewise.
* features/i386/i386-linux.xml: Likewise.
* features/i386/i386.xml: Likewise.
* features/i386/amd64-linux.xml: Likewise.
* features/i386/amd64.xml: Likewise.
* features/i386/i386-linux.c: Likewise.
* features/i386/i386.c: Likewise.
* features/i386/amd64-linux.c: Likewise.
* features/i386/amd64.c: Likewise.
commit 0299f26535f0f08b8f399e77405f9bbf5714f48a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 8 02:04:05 2010 +0000
missed from last commit
commit b646ae2c9b133657de13d956457adcf2297bae64
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 8 01:59:33 2010 +0000
include/
* opcode/ppc.h (PPC_OPCODE_TITAN): Define.
bfd/
* archures.c (bfd_mach_ppc_titan): Define.
* bfd-in2.h: Regenerate.
* cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
opcodes/
* ppc-dis.c (ppc_opts): Add titan entry.
* ppc-opc.c (TITAN, MULHW): Define.
(powerpc_opcodes): Support AppliedMicro Titan core (APM83xxx).
gas/
* config/tc-ppc.c (md_show_usage): Mention -mtitan. Don't use tabs.
(ppc_mach): Handle titan.
* doc/c-ppc.texi: Mention -mtitan.
gas/testsuite/
* gas/ppc/titan.d, * gas/ppc/titan.s: New test.
* gas/ppc/ppc.exp: Run it.
commit c3422dcf92fc4eb923363e2bf1a9c68f9e101e06
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 8 00:48:27 2010 +0000
* elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
commit bf395db00354dbc103c8b0b5ac8719213aac2e9b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Feb 8 00:00:05 2010 +0000
*** empty log message ***
commit 187ce402ef87c4f3654abdce5fe7d07fe9380940
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Feb 7 23:00:05 2010 +0000
daily update
commit 128d89354da4e84c4544688935a89bf600d85571
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Feb 7 14:42:39 2010 +0000
Move entry for elf/s390.h to elf/ChangeLog.
commit 4589717f84b664573a523d5da71de4f846307bd7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Feb 7 00:00:03 2010 +0000
*** empty log message ***
commit c07a859c3f48b9227993bbe3d49bbfb720b38c41
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Feb 6 23:00:04 2010 +0000
daily update
commit 84e1ba7e8c22451878539bae50aac43e187d9490
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Feb 6 00:00:03 2010 +0000
*** empty log message ***
commit af656b8414fec5a47dcd6fe1681d6e1f230d5914
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Feb 5 23:00:04 2010 +0000
daily update
commit aa80c77887d624c8adf00e26357e847f2e8829cf
Author: Doug Evans <dje@google.com>
Date: Fri Feb 5 21:51:38 2010 +0000
testsuite/
* lib/gdb.exp (INTERNAL_GDBFLAGS): Don't override value provided by
user.
doc/
* gdbint.texinfo (Testsuite): Document INTERNAL_GDBFLAGS.
commit 0f4b1f74b03af439176345bb9d343c8651d03b21
Author: swagiaal <swagiaal>
Date: Fri Feb 5 19:03:38 2010 +0000
2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
PR c++/7935:
* gdb.cp/namespace-using.exp: Removed kfail; bug has been fixed.
2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
PR c++/7935:
* cp-support.h: Added char* alias element to using_direct data
struct.
(cp_add_using): Added char* alias argument.
(cp_add_using_directive): Ditto.
* cp-namespace.c: Updated with the above changes.
(cp_lookup_symbol_imports): Check for aliases.
* dwarf2read.c (read_import_statement): Figure out local alias
for the import and pass it on to cp_add_using.
(read_namespace): Pass alias argument to cp_add_using.
commit 3d3757473bbcc33038d367ba4a911e1a638c5802
Author: Doug Evans <dje@google.com>
Date: Fri Feb 5 18:30:44 2010 +0000
* gdbint.texinfo (Testsuite): Add a new section to document the
various DejaGnu variables that may be overridden.
commit 26dbf2d938840d7fddb82411551103677a930c1a
Author: sterling <sterling>
Date: Fri Feb 5 17:42:46 2010 +0000
Update Changelog entry to include bug number. Checked in as obvious.
commit 8b3869f256d3e86a6041d70b84b3302e192e6785
Author: sterling <sterling>
Date: Fri Feb 5 17:08:47 2010 +0000
2010-02-05 Sterling Augustine <sterling@tensilica.com>
* elf.c (assign_file_positions_for_load_sections) Update lma of
section if necessary.
commit 34edd79074a60f5eb6f2f63784b79f73f998684f
Author: Andreas Schwab <schwab@suse.de>
Date: Fri Feb 5 15:47:02 2010 +0000
* ppc-instructions: Fix aliasing bugs when calling
invalid_arithemetic_operation.
commit 7b421cc920120f2c97ac63e5adea72cf92f70ad4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Feb 5 14:58:11 2010 +0000
Remove trailing white spaces.
2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c: Remove trailing white spaces.
* elf64-x86-64.c: Likewise.
commit 032fd2a5565370801e122b965a8c0baf1e50b8cc
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Feb 5 02:22:39 2010 +0000
2010-02-05 Hui Zhu <teawater@gmail.com>
* defs.h (gdb_bfd_errmsg): New extern.
* exec.c (exec_file_attach): Change bfd_errmsg to
gdb_bfd_errmsg.
* utils.c (AMBIGUOUS_MESS1): New macro.
(AMBIGUOUS_MESS2): New macro.
(gdb_bfd_errmsg): New function.
commit 4461498a39f43d74c40a5dff5782cb923beeda9f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Feb 5 00:00:33 2010 +0000
*** empty log message ***
commit 96b187e1abcb7a4aefb34644df4d19fae0a2b931
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Feb 4 23:00:04 2010 +0000
daily update
commit 1eec3532be1ca1abc689b2ecb56569f5f776405c
Author: Doug Evans <dje@google.com>
Date: Thu Feb 4 22:54:41 2010 +0000
* solib-svr4.c (enable_break): Add comment.
commit c35f5e5e2a5e5b2fde403be03a7c9dd7c081fb6c
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Feb 4 22:52:42 2010 +0000
sim-model.c: Include sim-model.h
commit 0e635d0fd4319eb2fed78ca26837562dc090cd94
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Feb 4 22:52:02 2010 +0000
sime-base.h: fix typos in STATE_CPU() examples
commit 8199495e2d1e310161a6d851f37586ef37ec3d0a
Author: Anthony Green <green@redhat.com>
Date: Thu Feb 4 22:34:06 2010 +0000
Fix prolog analyzer
commit b1e1c0e9041a00e051ef8aa82104750cdae57c4c
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Feb 4 21:04:30 2010 +0000
gdb
* valops.c (search_struct_field): Account for
value_embedded_offset. Fix check for virtual base past the end of
the object. Use value_copy when making a slice of the value.
gdb/testsuite
* gdb.cp/virtbase.exp: Make test case names unique.
commit 67941cea3d38dcab83535f76322e0c647b9de38d
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Feb 4 19:12:58 2010 +0000
PR cli/8830:
* gdb.texinfo (Files): -readnow comes before the filename for file
and symbol-file.
commit c3c2f8a885cc397ac3d4035ee79b990b4a61515c
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Feb 4 17:37:59 2010 +0000
Call tui_initialize_readline only if gdb_stdout is a tty.
2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
PR tui/9622
* tui/tui-interp.c (tui_init): Call tui_initialize_readline
only if gdb_stdout is a tty.
commit 7e5ee87a91e54d85e03760ae8390adb06d3a79c3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Feb 4 17:09:57 2010 +0000
Generate set_tdesc_osabi for valid OSABI.
2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
* target-descriptions.c: Include "osabi.h".
(maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
OSABI.
commit 693c5cda8ca712366a52425bf8170e2a4976d14c
Author: DJ Delorie <dj@delorie.com>
Date: Thu Feb 4 17:08:52 2010 +0000
merge from gcc
commit 0f1dfb12fe8bad5010d8198c3857d52d581209da
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Feb 4 12:45:49 2010 +0000
2010-02-04 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_add_oso): Renamed to macho_register_oso.
(macho_symtab_read): Adjust calls to macho_add_oso.
(macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
(macho_symfile_read): Adjust call to macho_oso_symfile.
(macho_new_init): Move this function after declarations.
(macho_symfile_init): Ditto.
* darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
* darwin-nat.c (darwin_lookup_task): Remove unused prototype.
commit 209648782dcb3bfb7669f133a14dc066958d6b8e
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Feb 4 09:16:36 2010 +0000
* elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
entries for other architectures.
(struct elf_link_hash_table): Add hash_table_id field.
(elf_hash_table_id): New accessor macro.
* elflink.c (_bfd_elf_link_hash_table_init): Add target_id
parameter.
* elf-m10300.c (elf32_mn10300_hash_table): Check table id before
returning cast pointer.
(elf32_mn10300_link_hash_table_create): Identify new table as
containing MN10300 extensions.
(mn10300_elf_relax_section): Check pointer returned by
elf32_mn10300_hash_table.
* elf32-arm.c: Likewise, except using ARM extensions.
* elf32-avr.c: Likewise, except using AVR extensions.
* elf32-bfin.c: Likewise, except using BFIN extensions.
* elf32-cris.c: Likewise, except using CRIS extensions.
* elf32-frv.c: Likewise, except using FRV extensions.
* elf32-hppa.c: Likewise, except using HPPA32 extensions.
* elf32-i386.c: Likewise, except using I386 extensions.
* elf32-lm32.c: Likewise, except using LM32 extensions.
* elf32-m32r.c: Likewise, except using M32RM extensions.
* elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
* elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
* elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
* elf32-m68k.c: Likewise, except using M68K extensions.
* elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
* elf32-ppc.c: Likewise, except using PPC32 extensions.
* elf32-s390.c: Likewise, except using S390 extensions.
* elf32-sh.c: Likewise, except using SH extensions.
* elf32-spu.c: Likewise, except using SPU extensions.
* elf32-xtensa.c: Likewise, except using XTENSA extensions.
* elf64-alpha.c: Likewise, except using ALPHA extensions.
* elf64-hppa.c: Likewise, except using HPPA64 extensions.
* elf64-ppc.c: Likewise, except using PPC64 extensions.
* elf64-s390.c: Likewise, except using S390 extensions.
* elf64-x86-64.c: Likewise, except using X86_64 extensions.
* elfxx-ia64.c: Likewise, except using IA64 extensions.
* elfxx-mips.c: Likewise, except using MIPS extensions.
* elfxx-sparc.c: Likewise, except using SPARC extensions.
* elfxx-sparc.h: Likewise, except using SPARC extensions.
* elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
redundant structure.
(elf32_cr16_hash_table): Delete unused macro.
(elf32_cr16_link_hash_traverse): Delete unused macro.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elf32-vax.c: Likewise.
* elf64-sh64.c: Likewise.
* emultempl/alphaelf.em: Update value expected from elf_object_id.
* emultempl/hppaelf.em: Likewise.
* emultempl/mipself.em: Likewise.
* emultempl/ppc32elf.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
commit 54fb73670ab637349cde1f432402820cd73a74ad
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Thu Feb 4 07:37:34 2010 +0000
Include MI command in remotelog.
* mi/mi-main.c (mi_execute_command): Call target_log_command.
commit a5569832ba1690b570eb6f1ef827f3fbce23120b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Feb 4 00:00:03 2010 +0000
*** empty log message ***
commit ccdc0d7f44831f2b533959768a80acff796d3de8
Author: DJ Delorie <dj@delorie.com>
Date: Wed Feb 3 23:27:54 2010 +0000
merge from gcc
commit d0428c9dd0c76c00a5eb98e9b921b8aa425b1cee
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Feb 3 23:00:04 2010 +0000
daily update
commit 26e2bc3f21680416a1618a1d4d69ad25d71565d0
Author: spop <spop>
Date: Wed Feb 3 20:36:14 2010 +0000
2010-02-03 Quentin Neill <quentin.neill@amd.com>
gas/
* config/tc-i386.c (cpu_arch): Change amdfam15 to bdver1.
(i386_align_code): Rename PROCESSOR_AMDFAM15 to PROCESSOR_BDVER1.
* config/tc-i386.h (processor_type): Same.
* doc/c-i386.texi: Change amdfam15 to bdver1.
opcodes/
* i386-gen.c (cpu_flag_init): Rename CPU_AMDFAM15_FLAGS
to CPU_BDVER1_FLAGS
* i386-init.h: Regenerated.
testsuite/
* gas/i386/i386.exp: Rename amdfam15 test cases to bdver1.
* gas/i386/x86-64-nops-1-amdfam15.d: Renamed test case to
gas/i386/x86-64-nops-1-bdver1.d.
* gas/i386/nops-1-amdfam15.d: Renamed test case to
gas/i386/nops-1-bdver1.d.
commit 47820004f2c32033b1299f31201089acb84a52b1
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Feb 3 18:30:03 2010 +0000
Pass target_gdbarch to gdbarch_qsupported.
2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
* remote.c (remote_state): Remove gdbarch.
(init_remote_state): Don't set gdbarch.
(remote_query_supported): Pass target_gdbarch instead of
rs->gdbarch to gdbarch_qsupported.
commit 33a3dfee90b9f19d4d8874446f61e464d86c53aa
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Feb 3 18:20:21 2010 +0000
2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
* regcache.c (supply_register): Clear regcache if buf is NULL.
commit 1738d37d5b227a44fef316fbf306fb0d4bde0cf6
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Feb 3 16:43:02 2010 +0000
Add qsupported to gdbarch.
2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
* gdbarch.sh: Add qsupported.
* gdbarch.c: Regenerated.
* gdbarch.h: Likewise.
* remote.c (remote_state): Add gdbarch.
(init_remote_state): Set gdbarch.
(remote_query_supported): Support gdbarch_qsupported.
commit f70ba5ba8973067f955ed16ce832920b59b980db
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Feb 3 15:30:22 2010 +0000
* amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
__FreeBSD_kernel_version.
commit d56f2f6a8db3b232c307c18074129e964528a7e2
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Feb 3 14:13:16 2010 +0000
2010-02-03 Tristan Gingold <gingold@adacore.com>
* symfile.h (struct sym_fns): Add sym_relocate field.
(default_symfile_relocate): New prototype.
(symfile_relocate_debug_section): First argument is now an objfile.
* symfile.c (default_symfile_relocate): Rename from
symfile_relocate_debug_section, first argument is now an objfile.
(symfile_relocate_debug_section): New function.
* coffread.c (coff_sym_fns): Set sym_relocate field.
* somread.c (som_sym_fns): Ditto.
* mipsread.c (ecoff_sym_fns): Ditto.
* machoread.c (macho_sym_fns): Ditto.
* elfread.c (elf_sym_fns): Ditto.
* dwarf2read.c (dwarf2_read_section): Ditto.
* xcoffread.c (xcoff_sym_fns): Ditto.
* dbxread.c (aout_sym_fns): Ditto.
(dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
(elfstab_build_psymtabs): Ditto.
commit 1845978e84a2b5dbb403fb67a03d141c6176d17d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Feb 3 13:48:17 2010 +0000
Increase MAX_REGISTER_SIZE to 32.
2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
* defs.h (MAX_REGISTER_SIZE): Increase to 32.
commit 601478efe6a022f653c350d6075aa284beaa6f8f
Author: Anthony Green <green@redhat.com>
Date: Wed Feb 3 12:47:06 2010 +0000
Move NOP from 0x00 to 0x0f.
commit 123d43888968479324b0846c17557fea7edb16c9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Feb 3 12:03:33 2010 +0000
bfd/
* elf64-ppc.c (struct plt_entry): Move earlier in file.
(struct got_entry): Likewise. Add is_indirect and got.ent fields.
(struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
Update all uses.
(struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
Remove no_multi_toc.
(update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
when allocating a new struct got_entry.
(allocate_got): New function, extracted from..
(allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
(ppc64_elf_size_dynamic_sections): Track got relocs allocated in
.reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
(ppc64_elf_setup_section_lists): Remove output_bfd param and
no_multi_toc, add add_stub_section and layout_sections_again. Stash
new params in htab. Extract some code to..
(ppc64_elf_start_multitoc_partition): ..here. New function.
(ppc64_elf_next_toc_section): Check for linker script errors. Handle
second pass toc scan.
(merge_got_entries, merge_global_got, reallocate_got): New functions.
(ppc64_elf_reinit_toc): Rename to..
(ppc64_elf_finish_multitoc_partition): ..this.
(ppc64_elf_layout_multitoc): New function.
(ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
layout_sections_again params.
(ppc64_elf_relocate_section): Handle indirect got entries.
* elf64-ppc.h: Update prototypes. Declare new functions.
ld/
* emultempl/ppc64elf.em (build_toc_list): Report errors from
ppc64_elf_next_toc_section.
(after_allocation): Update for changed function names and params.
Run second pass of multitoc partitioning.
commit b110f98d477860861ed9522b2de3f085bf5c7dbd
Author: Anthony Green <green@redhat.com>
Date: Wed Feb 3 10:28:19 2010 +0000
Fix nop insn for moxie
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 225 ++++++++++
bfd/archures.c | 3 +-
bfd/bfd-in2.h | 41 +-
bfd/cpu-powerpc.c | 14 +
bfd/ecoff.c | 18 +-
bfd/elf-bfd.h | 70 ++-
bfd/elf-m10300.c | 13 +-
bfd/elf.c | 20 +-
bfd/elf32-arm.c | 144 +++++--
bfd/elf32-avr.c | 18 +-
bfd/elf32-bfin.c | 16 +-
bfd/elf32-cr16.c | 71 +---
bfd/elf32-cris.c | 145 ++++---
bfd/elf32-frv.c | 10 +-
bfd/elf32-hppa.c | 64 +++-
bfd/elf32-i386.c | 113 ++++--
bfd/elf32-lm32.c | 41 ++-
bfd/elf32-m32r.c | 35 ++-
bfd/elf32-m68hc11.c | 4 +-
bfd/elf32-m68hc1x.c | 48 ++-
bfd/elf32-m68hc1x.h | 19 +-
bfd/elf32-m68k.c | 18 +-
bfd/elf32-microblaze.c | 31 ++-
bfd/elf32-ppc.c | 173 +++-----
bfd/elf32-s390.c | 10 +-
bfd/elf32-score.c | 79 ++--
bfd/elf32-score7.c | 74 +---
bfd/elf32-sh.c | 35 ++-
bfd/elf32-sparc.c | 22 +
bfd/elf32-spu.c | 6 +-
bfd/elf32-vax.c | 32 +-
bfd/elf32-xtensa.c | 47 ++-
bfd/elf64-alpha.c | 84 +++-
bfd/elf64-hppa.c | 72 +++-
bfd/elf64-ppc.c | 750 +++++++++++++++++++++++++-------
bfd/elf64-ppc.h | 26 +-
bfd/elf64-s390.c | 113 +++--
bfd/elf64-sh64.c | 38 +-
bfd/elf64-sparc.c | 9 +-
bfd/elf64-x86-64.c | 104 +++--
bfd/elflink.c | 8 +-
bfd/elfxx-ia64.c | 89 +++--
bfd/elfxx-mips.c | 97 ++++-
bfd/elfxx-sparc.c | 783 +++++++++++++++++++++++++--------
bfd/elfxx-sparc.h | 21 +-
bfd/libbfd.h | 2 +
bfd/mach-o.c | 6 +-
bfd/reloc.c | 4 +
bfd/section.c | 38 +-
bfd/version.h | 2 +-
bfd/xcofflink.c | 11 +-
gdb/ChangeLog | 183 ++++++++
gdb/amd64fbsd-nat.c | 2 +-
gdb/coffread.c | 1 +
gdb/cp-namespace.c | 47 ++-
gdb/cp-support.h | 17 +-
gdb/cp-valprint.c | 31 +-
gdb/darwin-nat-info.c | 26 --
gdb/darwin-nat.c | 2 -
gdb/dbxread.c | 5 +-
gdb/defs.h | 9 +-
gdb/doc/ChangeLog | 16 +
gdb/doc/gdb.texinfo | 44 ++-
gdb/doc/gdbint.texinfo | 73 +++
gdb/dwarf2read.c | 17 +-
gdb/elfread.c | 1 +
gdb/eval.c | 85 ++++-
gdb/exec.c | 6 +-
gdb/features/Makefile | 12 +
gdb/features/i386/32bit-core.xml | 45 ++
gdb/features/i386/32bit-linux.xml | 11 +
gdb/features/i386/32bit-sse.xml | 36 ++
gdb/features/i386/64bit-core.xml | 53 +++
gdb/features/i386/64bit-linux.xml | 11 +
gdb/features/i386/64bit-sse.xml | 44 ++
gdb/features/i386/amd64-linux.c | 118 +++++
gdb/features/i386/amd64-linux.xml | 17 +
gdb/features/i386/amd64.c | 113 +++++
gdb/features/i386/amd64.xml | 15 +
gdb/features/i386/i386-linux.c | 102 +++++
gdb/features/i386/i386-linux.xml | 17 +
gdb/features/i386/i386.c | 97 ++++
gdb/features/i386/i386.xml | 15 +
gdb/gdbarch.c | 23 +
gdb/gdbarch.h | 5 +
gdb/gdbarch.sh | 3 +
gdb/gdbserver/ChangeLog | 6 +-
gdb/gdbserver/regcache.c | 5 +-
gdb/infrun.c | 20 +-
gdb/linux-nat.c | 126 +++++-
gdb/machoread.c | 48 ++-
gdb/mi/mi-main.c | 2 +
gdb/mipsread.c | 1 +
gdb/moxie-tdep.c | 2 +
gdb/remote.c | 20 +-
gdb/solib-svr4.c | 19 +
gdb/somread.c | 1 +
gdb/symfile.c | 35 +-
gdb/symfile.h | 17 +-
gdb/target-descriptions.c | 11 +
gdb/testsuite/ChangeLog | 45 ++
gdb/testsuite/gdb.cp/Makefile.in | 3 +-
gdb/testsuite/gdb.cp/nsusing.exp | 3 -
gdb/testsuite/gdb.cp/overload.cc | 22 +
gdb/testsuite/gdb.cp/overload.exp | 10 +
gdb/testsuite/gdb.cp/pr10728-x.cc | 7 +
gdb/testsuite/gdb.cp/pr10728-x.h | 9 +
gdb/testsuite/gdb.cp/pr10728-y.cc | 11 +
gdb/testsuite/gdb.cp/pr10728.exp | 66 +++
gdb/testsuite/gdb.cp/pr9067.cc | 17 +
gdb/testsuite/gdb.cp/pr9067.exp | 46 ++
gdb/testsuite/gdb.cp/virtbase.exp | 4 +-
gdb/testsuite/lib/gdb.exp | 20 +-
gdb/tui/tui-interp.c | 3 +-
gdb/utils.c | 40 ++
gdb/valarith.c | 7 +
gdb/valops.c | 46 +--
gdb/value.h | 9 +-
gdb/version.in | 2 +-
gdb/xcoffread.c | 1 +
include/ChangeLog | 6 +-
include/demangle.h | 5 +
include/elf/ChangeLog | 4 +
include/elf/sparc.h | 2 +
include/opcode/ChangeLog | 4 +
include/opcode/ppc.h | 7 +-
libiberty/ChangeLog | 20 +-
libiberty/cp-demangle.c | 93 ++++-
libiberty/testsuite/demangle-expected | 19 +-
opcodes/ChangeLog | 17 +
opcodes/i386-gen.c | 2 +-
opcodes/i386-init.h | 2 +-
opcodes/moxie-opc.c | 9 +-
opcodes/ppc-dis.c | 3 +
opcodes/ppc-opc.c | 304 +++++++------
sim/common/ChangeLog | 9 +
sim/common/sim-base.h | 6 +-
sim/common/sim-model.c | 1 +
sim/moxie/ChangeLog | 5 +
sim/moxie/interp.c | 26 +-
sim/ppc/ChangeLog | 5 +
sim/ppc/ppc-instructions | 31 +-
142 files changed, 4954 insertions(+), 1528 deletions(-)
create mode 100644 gdb/features/i386/32bit-core.xml
create mode 100644 gdb/features/i386/32bit-linux.xml
create mode 100644 gdb/features/i386/32bit-sse.xml
create mode 100644 gdb/features/i386/64bit-core.xml
create mode 100644 gdb/features/i386/64bit-linux.xml
create mode 100644 gdb/features/i386/64bit-sse.xml
create mode 100644 gdb/features/i386/amd64-linux.c
create mode 100644 gdb/features/i386/amd64-linux.xml
create mode 100644 gdb/features/i386/amd64.c
create mode 100644 gdb/features/i386/amd64.xml
create mode 100644 gdb/features/i386/i386-linux.c
create mode 100644 gdb/features/i386/i386-linux.xml
create mode 100644 gdb/features/i386/i386.c
create mode 100644 gdb/features/i386/i386.xml
create mode 100644 gdb/testsuite/gdb.cp/pr10728-x.cc
create mode 100644 gdb/testsuite/gdb.cp/pr10728-x.h
create mode 100644 gdb/testsuite/gdb.cp/pr10728-y.cc
create mode 100644 gdb/testsuite/gdb.cp/pr10728.exp
create mode 100644 gdb/testsuite/gdb.cp/pr9067.cc
create mode 100644 gdb/testsuite/gdb.cp/pr9067.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 791ec74..966396d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,228 @@
+2010-02-08 David S. Miller <davem@davemloft.net>
+
+ * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
+ srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
+
+ * elfxx-sparc.c (create_got_section): Delete.
+ (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
+ section creator does that work for us. Use ->elf.foo instead of
+ ->foo where applicable.
+ (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
+ where applicable.
+ (allocate_dynrelocs): Likewise.
+ (_bfd_sparc_elf_size_dynamic_sections): Likewise.
+ (_bfd_sparc_elf_relocate_section): Likewise.
+ (sparc_vxworks_build_plt_entry): Likewise.
+ (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
+ (sparc_finish_dyn): Likewise.
+ (sparc_vxworks_finish_exec_plt): Likewise.
+ (sparc_vxworks_finish_shared_plt): Likewise.
+ (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
+
+ * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
+ macros for visibilty and locality checks.
+ (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
+ (allocate_dynrelocs): Likewise.
+ (_bfd_sparc_elf_relocate_section): Likewise.
+ (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
+
+ * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
+ but never used local var 'dynobj'.
+
+ * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
+ nocopyreloc.
+
+ * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
+ (BFD_RELOC_SPARC_IRELATIVE): Likewise.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+
+ * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
+ and loc_hash_memory.
+ (_bfd_sparc_elf_link_hash_table_free): Declare.
+ * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
+ (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
+ bfd_elf32_bfd_link_hash_table_free): Define.
+ * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
+ has_ifunc_symbols if STT_GNU_IFUNC.
+ (bfd_elf64_bfd_link_hash_table_free): Define.
+ (elf_backend_post_process_headers): Define always.
+ * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
+ (sparc_reloc_map): Add entries for new IFUNC relocs.
+ (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
+ (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
+ (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
+ elf_sparc_get_local_sym_hash): New.
+ (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
+ from here...
+ (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
+ local hash table.
+ (_bfd_sparc_elf_link_hash_table_free): New.
+ (create_ifunc_sections): New.
+ (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
+ and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
+ cons up a fake local hash table entry for it. Unconditionally add
+ a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
+ dyn relocs for ifunc.
+ (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
+ (allocate_dynrelocs): Unconditionally emit a PLT entry when
+ STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
+ (allocate_local_dynrelocs): New function.
+ (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
+ table. Emit dynamic relocs to irelplt when not shared. Treat iplt
+ like splt.
+ (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
+ (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
+ plt in iplt/irelplt.
+
+2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
+
+ * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
+ max_contents_size, only consider sections whose contents must
+ be swapped in.
+
+2010-02-09 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
+ (ppc64_elf_size_dynamic_sections): ..and here..
+ (merge_got_entries): ..rather than here.
+
+2010-02-09 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
+ (has_small_toc_reloc): Define.
+ (ppc64_elf_check_relocs): Set the above flags.
+ (ppc64_elf_edit_opd): Delete obfd param.
+ (ppc64_elf_tls_optimize): Likewise.
+ (ppc64_elf_edit_toc): Likewise.
+ (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
+ * elf64-ppc.h: Update prototypes.
+
+2010-02-08 Alan Modra <amodra@gmail.com>
+
+ * section.c (struct bfd_section): Delete has_tls_reloc,
+ has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
+ Add sec_flg0 thru sec_flg5.
+ (BFD_FAKE_SECTION): Update for changed flags.
+ * ecoff.c (bfd_debug_section): Likewise.
+ * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
+ * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
+ (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
+ * elf32-xtensa.c (reloc_done): Define.
+ * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
+ * bfd-in2.h: Regenerate.
+
+2010-02-08 Tristan Gingold <gingold@adacore.com>
+
+ * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
+ for non-scattered relocations.
+
+2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
+
+ * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
+ apuinfo sections, only scan input sections once and reuse the
+ buffer.
+
+2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
+
+ * archures.c (bfd_mach_ppc_titan): Define.
+ * bfd-in2.h: Regenerate.
+ * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
+
+2010-02-08 Alan Modra <amodra@gmail.com>
+
+ * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
+
+2010-02-05 Sterling Augustine <sterling@tensilica.com>
+
+ * elf.c (assign_file_positions_for_load_sections) Update lma of
+ section if necessary. Fixes Bugzilla 11219.
+
+2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-i386.c: Remove trailing white spaces.
+ * elf64-x86-64.c: Likewise.
+
+2010-02-03 Nick Clifton <nickc@redhat.com>
+
+ * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
+ entries for other architectures.
+ (struct elf_link_hash_table): Add hash_table_id field.
+ (elf_hash_table_id): New accessor macro.
+ * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
+ parameter.
+ * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
+ returning cast pointer.
+ (elf32_mn10300_link_hash_table_create): Identify new table as
+ containing MN10300 extensions.
+ (mn10300_elf_relax_section): Check pointer returned by
+ elf32_mn10300_hash_table.
+ * elf32-arm.c: Likewise, except using ARM extensions.
+ * elf32-avr.c: Likewise, except using AVR extensions.
+ * elf32-bfin.c: Likewise, except using BFIN extensions.
+ * elf32-cris.c: Likewise, except using CRIS extensions.
+ * elf32-frv.c: Likewise, except using FRV extensions.
+ * elf32-hppa.c: Likewise, except using HPPA32 extensions.
+ * elf32-i386.c: Likewise, except using I386 extensions.
+ * elf32-lm32.c: Likewise, except using LM32 extensions.
+ * elf32-m32r.c: Likewise, except using M32RM extensions.
+ * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
+ * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
+ * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
+ * elf32-m68k.c: Likewise, except using M68K extensions.
+ * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
+ * elf32-ppc.c: Likewise, except using PPC32 extensions.
+ * elf32-s390.c: Likewise, except using S390 extensions.
+ * elf32-sh.c: Likewise, except using SH extensions.
+ * elf32-spu.c: Likewise, except using SPU extensions.
+ * elf32-xtensa.c: Likewise, except using XTENSA extensions.
+ * elf64-alpha.c: Likewise, except using ALPHA extensions.
+ * elf64-hppa.c: Likewise, except using HPPA64 extensions.
+ * elf64-ppc.c: Likewise, except using PPC64 extensions.
+ * elf64-s390.c: Likewise, except using S390 extensions.
+ * elf64-x86-64.c: Likewise, except using X86_64 extensions.
+ * elfxx-ia64.c: Likewise, except using IA64 extensions.
+ * elfxx-mips.c: Likewise, except using MIPS extensions.
+ * elfxx-sparc.c: Likewise, except using SPARC extensions.
+ * elfxx-sparc.h: Likewise, except using SPARC extensions.
+ * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
+ redundant structure.
+ (elf32_cr16_hash_table): Delete unused macro.
+ (elf32_cr16_link_hash_traverse): Delete unused macro.
+ * elf32-score.c: Likewise.
+ * elf32-score7.c: Likewise.
+ * elf32-vax.c: Likewise.
+ * elf64-sh64.c: Likewise.
+
+2010-02-03 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (struct plt_entry): Move earlier in file.
+ (struct got_entry): Likewise. Add is_indirect and got.ent fields.
+ (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
+ Update all uses.
+ (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
+ Remove no_multi_toc.
+ (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
+ when allocating a new struct got_entry.
+ (allocate_got): New function, extracted from..
+ (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
+ (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
+ .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
+ (ppc64_elf_setup_section_lists): Remove output_bfd param and
+ no_multi_toc, add add_stub_section and layout_sections_again. Stash
+ new params in htab. Extract some code to..
+ (ppc64_elf_start_multitoc_partition): ..here. New function.
+ (ppc64_elf_next_toc_section): Check for linker script errors. Handle
+ second pass toc scan.
+ (merge_got_entries, merge_global_got, reallocate_got): New functions.
+ (ppc64_elf_reinit_toc): Rename to..
+ (ppc64_elf_finish_multitoc_partition): ..this.
+ (ppc64_elf_layout_multitoc): New function.
+ (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
+ layout_sections_again params.
+ (ppc64_elf_relocate_section): Handle indirect got entries.
+ * elf64-ppc.h: Update prototypes. Declare new functions.
+
2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (elfcore_write_xstatereg): New.
diff --git a/bfd/archures.c b/bfd/archures.c
index e6ecae5..c1aefec 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -230,7 +230,8 @@ DESCRIPTION
.#define bfd_mach_ppc_7400 7400
.#define bfd_mach_ppc_e500 500
.#define bfd_mach_ppc_e500mc 5001
-.#define bfd_mach_ppc_e500mc64 5005
+.#define bfd_mach_ppc_e500mc64 5005
+.#define bfd_mach_ppc_titan 83
. bfd_arch_rs6000, {* IBM RS/6000 *}
.#define bfd_mach_rs6k 6000
.#define bfd_mach_rs6k_rs1 6001
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 8d9a464..c90ac2d 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1367,20 +1367,12 @@ typedef struct bfd_section
/* Bits used by various backends. The generic code doesn't touch
these fields. */
- /* Nonzero if this section has TLS related relocations. */
- unsigned int has_tls_reloc:1;
-
- /* Nonzero if this section has a call to __tls_get_addr. */
- unsigned int has_tls_get_addr_call:1;
-
- /* Nonzero if this section has a gp reloc. */
- unsigned int has_gp_reloc:1;
-
- /* Nonzero if this section needs the relax finalize pass. */
- unsigned int need_finalize_relax:1;
-
- /* Whether relocations have been processed. */
- unsigned int reloc_done : 1;
+ unsigned int sec_flg0:1;
+ unsigned int sec_flg1:1;
+ unsigned int sec_flg2:1;
+ unsigned int sec_flg3:1;
+ unsigned int sec_flg4:1;
+ unsigned int sec_flg5:1;
/* End of internal packed boolean fields. */
@@ -1645,17 +1637,17 @@ extern asection bfd_ind_section;
/* name, id, index, next, prev, flags, user_set_vma, */ \
{ NAME, IDX, 0, NULL, NULL, FLAGS, 0, \
\
- /* linker_mark, linker_has_input, gc_mark, */ \
- 0, 0, 1, \
+ /* linker_mark, linker_has_input, gc_mark, segment_mark, */ \
+ 0, 0, 1, 0, \
\
- /* segment_mark, sec_info_type, use_rela_p, has_tls_reloc, */ \
- 0, 0, 0, 0, \
+ /* sec_info_type, use_rela_p, */ \
+ 0, 0, \
\
- /* has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, */ \
- 0, 0, 0, \
+ /* sec_flg0, sec_flg1, sec_flg2, sec_flg3, sec_flg4, sec_flg5, */ \
+ 0, 0, 0, 0, 0, 0, \
\
- /* reloc_done, vma, lma, size, rawsize, relax, relax_count, */ \
- 0, 0, 0, 0, 0, 0, 0, \
+ /* vma, lma, size, rawsize, relax, relax_count, */ \
+ 0, 0, 0, 0, 0, 0, \
\
/* output_offset, output_section, alignment_power, */ \
0, (struct bfd_section *) &SEC, 0, \
@@ -1904,7 +1896,8 @@ enum bfd_architecture
#define bfd_mach_ppc_7400 7400
#define bfd_mach_ppc_e500 500
#define bfd_mach_ppc_e500mc 5001
-#define bfd_mach_ppc_e500mc64 5005
+#define bfd_mach_ppc_e500mc64 5005
+#define bfd_mach_ppc_titan 83
bfd_arch_rs6000, /* IBM RS/6000 */
#define bfd_mach_rs6k 6000
#define bfd_mach_rs6k_rs1 6001
@@ -2503,6 +2496,8 @@ relocation types already defined. */
BFD_RELOC_SPARC_GOTDATA_OP_HIX22,
BFD_RELOC_SPARC_GOTDATA_OP_LOX10,
BFD_RELOC_SPARC_GOTDATA_OP,
+ BFD_RELOC_SPARC_JMP_IREL,
+ BFD_RELOC_SPARC_IRELATIVE,
/* I think these are specific to SPARC a.out (e.g., Sun 4). */
BFD_RELOC_SPARC_BASE13,
diff --git a/bfd/cpu-powerpc.c b/bfd/cpu-powerpc.c
index 76eb018..9bd60af 100644
--- a/bfd/cpu-powerpc.c
+++ b/bfd/cpu-powerpc.c
@@ -338,6 +338,20 @@ const bfd_arch_info_type bfd_powerpc_archs[] =
FALSE, /* not the default */
powerpc_compatible,
bfd_default_scan,
+ &bfd_powerpc_archs[18]
+ },
+ {
+ 32, /* 32 bits in a word */
+ 32, /* 32 bits in an address */
+ 8, /* 8 bits in a byte */
+ bfd_arch_powerpc,
+ bfd_mach_ppc_titan,
+ "powerpc",
+ "powerpc:titan",
+ 3,
+ FALSE, /* not the default */
+ powerpc_compatible,
+ bfd_default_scan,
0
}
};
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index 472aab1..ecfc34e 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -1,6 +1,6 @@
/* Generic ECOFF (Extended-COFF) routines.
Copyright 1990, 1991, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
- 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Original version by Per Bothner.
Full support added by Ian Lance Taylor, ian@cygnus.com.
@@ -56,14 +56,14 @@ static asection bfd_debug_section =
{
/* name, id, index, next, prev, flags, user_set_vma, */
"*DEBUG*", 0, 0, NULL, NULL, 0, 0,
- /* linker_mark, linker_has_input, gc_mark, */
- 0, 0, 1,
- /* segment_mark, sec_info_type, use_rela_p, has_tls_reloc, */
- 0, 0, 0, 0,
- /* has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, */
- 0, 0, 0,
- /* reloc_done, vma, lma, size, rawsize, relax, relax_count, */
- 0, 0, 0, 0, 0, 0, 0,
+ /* linker_mark, linker_has_input, gc_mark, segment_mark, */
+ 0, 0, 1, 0,
+ /* sec_info_type, use_rela_p, */
+ 0, 0,
+ /* sec_flg0, sec_flg1, sec_flg2, sec_flg3, sec_flg4, sec_flg5, */
+ 0, 0, 0, 0, 0, 0,
+ /* vma, lma, size, rawsize, relax, relax_count, */
+ 0, 0, 0, 0, 0, 0,
/* output_offset, output_section, alignment_power, */
0, NULL, 0,
/* relocation, orelocation, reloc_count, filepos, rel_filepos, */
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 3c3ac9b..681ded5 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1,6 +1,6 @@
/* BFD back-end data structures for ELF files.
Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
- 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -396,12 +396,51 @@ struct eh_frame_hdr_info
bfd_boolean table;
};
+/* Enum used to identify target specific extensions to the elf_obj_tdata
+ and elf_link_hash_table structures. Note the enums deliberately start
+ from 1 so that we can detect an uninitialized field. The generic value
+ is last so that additions to this enum do not need to modify more than
+ one line. */
+enum elf_target_id
+{
+ ALPHA_ELF_DATA = 1,
+ ARM_ELF_DATA,
+ AVR_ELF_DATA,
+ BFIN_ELF_DATA,
+ CRIS_ELF_DATA,
+ FRV_ELF_DATA,
+ HPPA32_ELF_DATA,
+ HPPA64_ELF_DATA,
+ I386_ELF_DATA,
+ IA64_ELF_DATA,
+ LM32_ELF_DATA,
+ M32R_ELF_DATA,
+ M68HC11_ELF_DATA,
+ M68K_ELF_DATA,
+ MICROBLAZE_ELF_DATA,
+ MIPS_ELF_DATA,
+ MN10300_ELF_DATA,
+ PPC32_ELF_DATA,
+ PPC64_ELF_DATA,
+ S390_ELF_DATA,
+ SH_ELF_DATA,
+ SPARC_ELF_DATA,
+ SPU_ELF_DATA,
+ X86_64_ELF_DATA,
+ XTENSA_ELF_DATA,
+ GENERIC_ELF_DATA
+};
+
/* ELF linker hash table. */
struct elf_link_hash_table
{
struct bfd_link_hash_table root;
+ /* An identifier used to distinguish different target
+ specific extensions to this structure. */
+ enum elf_target_id hash_table_id;
+
/* Whether we have created the special dynamic sections required
when linking against or generating a shared object. */
bfd_boolean dynamic_sections_created;
@@ -509,6 +548,8 @@ struct elf_link_hash_table
#define elf_hash_table(p) ((struct elf_link_hash_table *) ((p)->hash))
+#define elf_hash_table_id(table) ((table) -> hash_table_id)
+
/* Returns TRUE if the hash table is a struct elf_link_hash_table. */
#define is_elf_hash_table(htab) \
(((struct bfd_link_hash_table *) (htab))->type == bfd_link_elf_hash_table)
@@ -1418,27 +1459,6 @@ enum
Tag_compatibility = 32
};
-/* Enum used to identify target specific extensions to the elf_obj_tdata
- structure. Note the enums deliberately start from 1 so that we can
- detect an uninitialized field. The generic value is last so that
- additions to this enum do not need to modify more than one line. */
-enum elf_object_id
-{
- ALPHA_ELF_TDATA = 1,
- ARM_ELF_TDATA,
- HPPA_ELF_TDATA,
- I386_ELF_TDATA,
- MIPS_ELF_TDATA,
- PPC32_ELF_TDATA,
- PPC64_ELF_TDATA,
- S390_ELF_TDATA,
- SH_ELF_TDATA,
- SPARC_ELF_TDATA,
- X86_64_ELF_TDATA,
- XTENSA_ELF_TDATA,
- GENERIC_ELF_TDATA
-};
-
/* Some private data is stashed away for future use using the tdata pointer
in the bfd structure. */
@@ -1603,7 +1623,7 @@ struct elf_obj_tdata
/* An identifier used to distinguish different target
specific extensions to this structure. */
- enum elf_object_id object_id;
+ enum elf_target_id object_id;
};
#define elf_tdata(bfd) ((bfd) -> tdata.elf_obj_data)
@@ -1710,7 +1730,7 @@ extern unsigned long bfd_elf_gnu_hash
extern bfd_reloc_status_type bfd_elf_generic_reloc
(bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
extern bfd_boolean bfd_elf_allocate_object
- (bfd *, size_t, enum elf_object_id);
+ (bfd *, size_t, enum elf_target_id);
extern bfd_boolean bfd_elf_make_generic_object
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-02-03 4:38 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-02-03 4:38 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 8a66451abb01b7fa7aa0fb5947d1003df6e7f948 (commit)
via 06d0527a3a31b81ccbfe5d2eb899f7e30ed93f2d (commit)
via 039dd96564bdd16a903c390c9e25ff23a0986ad6 (commit)
via 37b989f713c64fa3429d1ce470fdb25389c7eb0b (commit)
via e29c905cd8fdc87b7d8660c07601b810052e9444 (commit)
via b641539397a6cb5b4c67dbedafab62b1ac21391e (commit)
via 89bdb2450e85875b16ad73f00b5632f27e3054a1 (commit)
via eac509950388e2e6a4d078202a0dd58d59fcddbd (commit)
via 679554b8c8565b7d296940c5fdab35d98f28be3e (commit)
via 875d1739ef2c7185f5e5e52eac3022171031132b (commit)
via 0a60705522e536b44cb28a22d1aec7a1c7216011 (commit)
via 662c6c45df41661abddf1b78ac2c4d4817b694a1 (commit)
via e9e9b7b1c149af6ed82bbb1c01f013c6b6ffd87e (commit)
via c6d8c9383174688d8d19a897e6ff5fe81e211de2 (commit)
via 03729380c318738d19256b219bcc03d333dc54bf (commit)
via a5266a8a1fb2333418dd0914d3adeee72383b656 (commit)
via 7a43b42ad592059e9bd595adf38fb65709aa3959 (commit)
via 7f3f596fcee5e48061e248513e18096ca653620b (commit)
via f8893c711c4ee381385d983175cacb786f64774b (commit)
via feced2c94d506d91710d06e86ecdd5ac4b4d2c56 (commit)
via fdfccbaf9fffb6300698bcd8cbe1a41b96398527 (commit)
via e1e1f977b48241291ceaa7431bd448e2eacb5467 (commit)
via 974eeebe13b24cf3d78e248857d914a393bf1597 (commit)
via ca233f4f50d32cf78cb2b19c31dc373d05e2743e (commit)
from 2e4e6c860563f4d26538db70b02712753456a49a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 8a66451abb01b7fa7aa0fb5947d1003df6e7f948
Merge: 2e4e6c860563f4d26538db70b02712753456a49a 06d0527a3a31b81ccbfe5d2eb899f7e30ed93f2d
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Wed Feb 3 05:38:20 2010 +0100
Merge remote branch 'gdb/master'
commit 06d0527a3a31b81ccbfe5d2eb899f7e30ed93f2d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Feb 3 00:00:35 2010 +0000
*** empty log message ***
commit 039dd96564bdd16a903c390c9e25ff23a0986ad6
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Feb 2 23:40:26 2010 +0000
gdb
* valops.c (value_cast_structs): Try downcasting using the RTTI
type.
gdb/testsuite
* gdb.cp/virtbase.exp: Add regression tests.
* gdb.cp/virtbase.cc (RHA, RHB, RHC): New classes.
(main): Instantiate RHC.
commit 37b989f713c64fa3429d1ce470fdb25389c7eb0b
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Feb 2 23:16:52 2010 +0000
* gnu-v2-abi.c: Don't include gnu-v2-abi.h.
(gnuv2_baseclass_offset): Now static.
* Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
* gnu-v2-abi.h: Remove.
commit e29c905cd8fdc87b7d8660c07601b810052e9444
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Feb 2 23:00:04 2010 +0000
daily update
commit b641539397a6cb5b4c67dbedafab62b1ac21391e
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Feb 2 16:47:13 2010 +0000
gdb
* m2-typeprint.c (m2_record_fields): Don't use
TYPE_DECLARED_TYPE.
* gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
(struct main_type) <flag_declared_class>: New field.
(struct cplus_struct_type) <declared_type>: Remove.
<ntemplate_args>: Move earlier.
(DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
(DECLARED_TYPE_TEMPLATE): Remove.
(TYPE_DECLARED_TYPE): Remove.
* gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
* dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
* c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
TYPE_DECLARED_TYPE.
gdb/testsuite
* gdb.dwarf2/member-ptr-forwardref.exp: Update expected result for
type-printing change.
commit 89bdb2450e85875b16ad73f00b5632f27e3054a1
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Feb 2 16:45:15 2010 +0000
gdb
PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
* valops.c (search_struct_field): Compute nbases after calling
CHECK_TYPEDEF.
(check_field): Call CHECK_TYPEDEF.
* cp-valprint.c (cp_print_value): Pass correct address to
baseclass_offset. Fix check for virtual base past the end of the
object. Don't offset address passed to cp_print_value_fields or
apply_val_pretty_printer.
(cp_print_value_fields): Fix call to val_print.
(cp_print_value_fields_rtti): New function.
* c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
* p-valprint.c (pascal_object_print_value_fields): Fix call to
val_print.
* python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
offset to address.
* language.h (struct language_defn) <la_val_print>: Document.
* c-lang.h (cp_print_value_fields_rtti): Declare.
gdb/testsuite
PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
* gdb.cp/virtbase.cc: New file.
* gdb.cp/virtbase.exp: New file.
* gdb.cp/userdef.exp: Allow 'struct' or 'class'.
commit eac509950388e2e6a4d078202a0dd58d59fcddbd
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Feb 2 12:37:39 2010 +0000
Add NT_386_XSTATE.
bfd/
2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (elfcore_write_xstatereg): New.
* elf.c (elfcore_grok_xstatereg): New.
(elfcore_write_xstatereg): Likewise.
(elfcore_grok_note): Handle NT_X86_XSTATE.
(elfcore_write_register_note): Handle .reg-xstate section.
binutils/
2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (get_note_type): Handle NT_X86_XSTATE.
include/elf/
2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
* common.h (NT_386_XSTATE): New.
commit 679554b8c8565b7d296940c5fdab35d98f28be3e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Feb 2 04:24:26 2010 +0000
gdbserver crash when running 32bits exes on x64 Windows.
* inferiors.c (find_inferior): Add function documentation.
(unloaded_dll): Handle the case where the unloaded dll has not
been previously registered in the dll list.
commit 875d1739ef2c7185f5e5e52eac3022171031132b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Feb 2 00:00:33 2010 +0000
*** empty log message ***
commit 0a60705522e536b44cb28a22d1aec7a1c7216011
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Feb 1 23:00:04 2010 +0000
daily update
commit 662c6c45df41661abddf1b78ac2c4d4817b694a1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Feb 1 20:19:05 2010 +0000
gdb/
PR libc/11214:
* linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
(linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
(linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
gdb/testsuite/
PR libc/11214:
* gdb.threads/current-lwp-dead.c: Include features.h.
(HAS_NOMMU): New.
(fn, main): Move CLONE_VM into [__UCLIBC__ && HAS_NOMMU].
commit e9e9b7b1c149af6ed82bbb1c01f013c6b6ffd87e
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Feb 1 19:46:46 2010 +0000
* i386-tdep.c (i386_frame_cache): Assume valid anonymous
functions use a frame pointer.
commit c6d8c9383174688d8d19a897e6ff5fe81e211de2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Feb 1 19:27:54 2010 +0000
gdb/
* solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
by a conditional setting DYN_ADDR. Use DYN_ADDR.
* config/djgpp/fnchange.lst: Add translations for
symbol-without-target_section.exp and symbol-without-target_section.c.
gdb/testsuite/
* gdb.base/symbol-without-target_section.exp,
gdb.base/symbol-without-target_section.c: New.
commit 03729380c318738d19256b219bcc03d333dc54bf
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Feb 1 17:51:18 2010 +0000
* gdb.base/bigcore.exp: Reset increased timeout.
* gdb.base/interrupt.exp: Match unexpected gdb prompt.
commit a5266a8a1fb2333418dd0914d3adeee72383b656
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Feb 1 17:15:36 2010 +0000
* gdb.base/gcore.exp (capture_command_output): Use
gdb_test_multiple.
commit 7a43b42ad592059e9bd595adf38fb65709aa3959
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Feb 1 16:57:01 2010 +0000
* gdbarch.sh: Set LANG and LC_ALL to C, not c.
(remote_breakpoint_for_pc): Correct invalid_p check.
* gdbarch.c: Regenerated.
commit 7f3f596fcee5e48061e248513e18096ca653620b
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Feb 1 16:16:26 2010 +0000
* arm-tdep.c (arm_find_mapping_symbol): New function, from
arm_pc_is_thumb.
(arm_pc_is_thumb): Use arm_find_mapping_symbol.
(extend_buffer_earlier): New function.
(MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
(arm_adjust_breakpoint_address): New function.
(arm_gdbarch_init): Register arm_adjust_breakpoint_address.
testsuite/
* gdb.arch/thumb2-it.S (it_breakpoints): New function.
* gdb.arch/thumb2-it.exp (test_it_break): New function.
(Top level): Call it.
commit f8893c711c4ee381385d983175cacb786f64774b
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Feb 1 16:13:14 2010 +0000
* arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
(arm_linux_thumb2_le_breakpoint): New constants.
(arm_linux_init_abi): Set thumb2_breakpoint and
thumb2_breakpoint_size.
* arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
(thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
Implement support for single stepping through IT blocks if
a 32-bit Thumb breakpoint instruction is available.
(arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
is available, use it when needed.
(arm_remote_breakpoint_from_pc): New function.
(arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
* arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
gdbserver/
* linux-arm-low.c (thumb_breakpoint_len): Delete.
(thumb2_breakpoint): New.
(arm_breakpoint_at): Check for Thumb-2 breakpoints.
testsuite/
* gdb.arch/thumb2-it.S, gdb.arch/thumb2-it.exp: New files.
commit feced2c94d506d91710d06e86ecdd5ac4b4d2c56
Author: Daniel Jacobowitz <dan@debian.org>
Date: Mon Feb 1 16:09:15 2010 +0000
* arch-utils.c (default_remote_breakpoint_from_pc): New function.
* arch-utils.h (default_remote_breakpoint_from_pc): Declare.
* gdbarch.c, gdbarch.h: Regenerated.
* gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
* remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
gdbarch_remote_breakpoint_from_pc.
doc/
* gdb.texinfo (Architecture-Specific Protocol Details): New section.
Document ARM breakpoint types.
(Register Packet Format): Move into the new section.
(Packets): Describe the KIND argument for Z0, z0, Z1, and z1 packets.
commit fdfccbaf9fffb6300698bcd8cbe1a41b96398527
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon Feb 1 13:10:37 2010 +0000
2010-02-01 Tristan Gingold <gingold@adacore.com>
* som.c (som_write_ar_hdr): Define this macro.
commit e1e1f977b48241291ceaa7431bd448e2eacb5467
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Feb 1 00:00:33 2010 +0000
*** empty log message ***
commit 974eeebe13b24cf3d78e248857d914a393bf1597
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jan 31 23:00:06 2010 +0000
daily update
commit ca233f4f50d32cf78cb2b19c31dc373d05e2743e
Author: ghazi <ghazi>
Date: Sun Jan 31 18:40:33 2010 +0000
* configure.ac: Add "recommended" version checks for GMP/MPC.
Update recommended GMP/MPFR/MPC versions.
* configure: Regenerate.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +
bfd/ChangeLog | 13 +
bfd/elf-bfd.h | 2 +
bfd/elf.c | 28 ++
bfd/som.c | 1 +
bfd/version.h | 2 +-
configure | 70 +++-
configure.ac | 37 ++-
gdb/ChangeLog | 110 +++++
gdb/Makefile.in | 2 +-
gdb/arch-utils.c | 7 +
gdb/arch-utils.h | 3 +
gdb/arm-linux-tdep.c | 11 +
gdb/arm-tdep.c | 420 ++++++++++++++++++--
gdb/arm-tdep.h | 9 +-
gdb/c-lang.h | 6 +
gdb/c-typeprint.c | 42 +--
gdb/c-valprint.c | 5 +-
gdb/config/djgpp/fnchange.lst | 2 +
gdb/cp-valprint.c | 46 ++-
gdb/doc/ChangeLog | 7 +
gdb/doc/gdb.texinfo | 84 +++--
gdb/dwarf2read.c | 5 +-
gdb/gdbarch.c | 24 ++
gdb/gdbarch.h | 8 +
gdb/gdbarch.sh | 8 +-
gdb/gdbserver/ChangeLog | 13 +
gdb/gdbserver/inferiors.c | 25 +-
gdb/gdbserver/linux-arm-low.c | 9 +-
gdb/gdbserver/linux-low.c | 30 ++-
gdb/gdbtypes.c | 7 -
gdb/gdbtypes.h | 26 +-
gdb/gnu-v2-abi.c | 3 +-
gdb/i386-tdep.c | 14 +-
gdb/language.h | 29 ++-
gdb/m2-typeprint.c | 4 +-
gdb/python/py-prettyprint.c | 3 +-
gdb/remote.c | 4 +-
gdb/solib-svr4.c | 16 +-
gdb/testsuite/ChangeLog | 50 +++
gdb/testsuite/gdb.arch/thumb2-it.S | 182 +++++++++
gdb/testsuite/gdb.arch/thumb2-it.exp | 157 ++++++++
gdb/testsuite/gdb.base/bigcore.exp | 1 +
gdb/testsuite/gdb.base/gcore.exp | 6 +-
gdb/testsuite/gdb.base/interrupt.exp | 1 +
.../gdb.base/symbol-without-target_section.c} | 15 +-
.../gdb.base/symbol-without-target_section.exp | 39 ++
gdb/testsuite/gdb.cp/userdef.exp | 2 +-
gdb/testsuite/gdb.cp/virtbase.cc | 89 ++++
gdb/testsuite/gdb.cp/virtbase.exp | 62 +++
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp | 2 +-
gdb/testsuite/gdb.threads/current-lwp-dead.c | 21 +-
gdb/valops.c | 33 ++-
gdb/version.in | 2 +-
include/elf/ChangeLog | 6 +-
include/elf/common.h | 2 +
56 files changed, 1618 insertions(+), 194 deletions(-)
create mode 100644 gdb/testsuite/gdb.arch/thumb2-it.S
create mode 100644 gdb/testsuite/gdb.arch/thumb2-it.exp
rename gdb/{gnu-v2-abi.h => testsuite/gdb.base/symbol-without-target_section.c} (67%)
create mode 100644 gdb/testsuite/gdb.base/symbol-without-target_section.exp
create mode 100644 gdb/testsuite/gdb.cp/virtbase.cc
create mode 100644 gdb/testsuite/gdb.cp/virtbase.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 01bfa10..7d8f7f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ Sync from gcc:
+ * configure.ac: Add "recommended" version checks for GMP/MPC.
+ Update recommended GMP/MPFR/MPC versions.
+ * configure: Regenerate.
+
2010-01-25 Joern Rennecke <amylaar@spamcop.net>
gcc PR libstdc++/36101, gcc PR libstdc++/42813
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1f66207..791ec74 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,16 @@
+2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf-bfd.h (elfcore_write_xstatereg): New.
+
+ * elf.c (elfcore_grok_xstatereg): New.
+ (elfcore_write_xstatereg): Likewise.
+ (elfcore_grok_note): Handle NT_X86_XSTATE.
+ (elfcore_write_register_note): Handle .reg-xstate section.
+
+2010-02-01 Tristan Gingold <gingold@adacore.com>
+
+ * som.c (som_write_ar_hdr): Define this macro.
+
2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index daa2b62..3c3ac9b 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2149,6 +2149,8 @@ extern char *elfcore_write_prfpreg
(bfd *, char *, int *, const void *, int);
extern char *elfcore_write_prxfpreg
(bfd *, char *, int *, const void *, int);
+extern char *elfcore_write_xstatereg
+ (bfd *, char *, int *, const void *, int);
extern char *elfcore_write_ppc_vmx
(bfd *, char *, int *, const void *, int);
extern char *elfcore_write_ppc_vsx
diff --git a/bfd/elf.c b/bfd/elf.c
index 19e4695..c176256 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -7628,6 +7628,16 @@ elfcore_grok_prxfpreg (bfd *abfd, Elf_Internal_Note *note)
return elfcore_make_note_pseudosection (abfd, ".reg-xfp", note);
}
+/* Linux dumps the Intel XSAVE extended state in a note named "LINUX"
+ with a note type of NT_X86_XSTATE. Just include the whole note's
+ contents literally. */
+
+static bfd_boolean
+elfcore_grok_xstatereg (bfd *abfd, Elf_Internal_Note *note)
+{
+ return elfcore_make_note_pseudosection (abfd, ".reg-xstate", note);
+}
+
static bfd_boolean
elfcore_grok_ppc_vmx (bfd *abfd, Elf_Internal_Note *note)
{
@@ -7996,6 +8006,13 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
else
return TRUE;
+ case NT_X86_XSTATE: /* Linux XSAVE extension */
+ if (note->namesz == 6
+ && strcmp (note->namedata, "LINUX") == 0)
+ return elfcore_grok_xstatereg (abfd, note);
+ else
+ return TRUE;
+
case NT_PPC_VMX:
if (note->namesz == 6
&& strcmp (note->namedata, "LINUX") == 0)
@@ -8636,6 +8653,15 @@ elfcore_write_prxfpreg (bfd *abfd,
}
char *
+elfcore_write_xstatereg (bfd *abfd, char *buf, int *bufsiz,
+ const void *xfpregs, int size)
+{
+ char *note_name = "LINUX";
+ return elfcore_write_note (abfd, buf, bufsiz,
+ note_name, NT_X86_XSTATE, xfpregs, size);
+}
+
+char *
elfcore_write_ppc_vmx (bfd *abfd,
char *buf,
int *bufsiz,
@@ -8684,6 +8710,8 @@ elfcore_write_register_note (bfd *abfd,
return elfcore_write_prfpreg (abfd, buf, bufsiz, data, size);
if (strcmp (section, ".reg-xfp") == 0)
return elfcore_write_prxfpreg (abfd, buf, bufsiz, data, size);
+ if (strcmp (section, ".reg-xstate") == 0)
+ return elfcore_write_xstatereg (abfd, buf, bufsiz, data, size);
if (strcmp (section, ".reg-ppc-vmx") == 0)
return elfcore_write_ppc_vmx (abfd, buf, bufsiz, data, size);
if (strcmp (section, ".reg-ppc-vsx") == 0)
diff --git a/bfd/som.c b/bfd/som.c
index 7a034b1..fbdc2b4 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -6324,6 +6324,7 @@ som_bfd_link_split_section (bfd *abfd ATTRIBUTE_UNUSED, asection *sec)
#define som_close_and_cleanup som_bfd_free_cached_info
#define som_read_ar_hdr _bfd_generic_read_ar_hdr
+#define som_write_ar_hdr _bfd_generic_write_ar_hdr
#define som_openr_next_archived_file bfd_generic_openr_next_archived_file
#define som_get_elt_at_index _bfd_generic_get_elt_at_index
#define som_generic_stat_arch_elt bfd_generic_stat_arch_elt
diff --git a/bfd/version.h b/bfd/version.h
index 08f4544..51418c7 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100131
+#define BFD_VERSION_DATE 20100203
#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/configure b/configure
index ad16b8f..e6cde58 100755
--- a/configure
+++ b/configure
@@ -5466,18 +5466,38 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
have_gmp=yes
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $gmpinc"
- # Check GMP actually works
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
-$as_echo_n "checking for correct version of gmp.h... " >&6; }
+ # Check for the recommended and required versions of GMP.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
+$as_echo_n "checking for the correct version of gmp.h... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include "gmp.h"
+int
+main ()
+{
+
+ #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
+ #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
+ #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
+ choke me
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include "gmp.h"
+#include <gmp.h>
int
main ()
{
- #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
+ #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
+ #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
+ #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
choke me
#endif
@@ -5489,6 +5509,11 @@ if ac_fn_c_try_compile "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
+$as_echo "buggy but acceptable" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }; have_gmp=no
fi
@@ -5496,8 +5521,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# If we have GMP, check the MPFR version.
if test x"$have_gmp" = xyes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
-$as_echo_n "checking for correct version of mpfr.h... " >&6; }
+ # Check for the recommended and required versions of MPFR.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
+$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <gmp.h>
@@ -5523,7 +5549,7 @@ int
main ()
{
- #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
+ #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
choke me
#endif
@@ -5548,6 +5574,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Check for the MPC header version.
if test x"$have_gmp" = xyes ; then
+ # Check for the recommended and required versions of MPC.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
$as_echo_n "checking for the correct version of mpc.h... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -5557,7 +5584,23 @@ int
main ()
{
- #if MPC_VERSION < MPC_VERSION_NUM (0,8,0)
+ #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
+ choke me
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <mpc.h>
+int
+main ()
+{
+
+ #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
choke me
#endif
@@ -5569,6 +5612,11 @@ if ac_fn_c_try_compile "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
+$as_echo "buggy but acceptable" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }; have_gmp=no
fi
@@ -5624,8 +5672,10 @@ rm -f core conftest.err conftest.$ac_objext \
CFLAGS="$saved_CFLAGS"
+# The library versions listed in the error message below should match
+# the HARD-minimums enforced above.
if test x$have_gmp != xyes; then
- as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.2+ and MPC 0.8.0+.
+ as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
diff --git a/configure.ac b/configure.ac
index 75af4e5..be6337b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1341,18 +1341,27 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
have_gmp=yes
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $gmpinc"
- # Check GMP actually works
- AC_MSG_CHECKING([for correct version of gmp.h])
+ # Check for the recommended and required versions of GMP.
+ AC_MSG_CHECKING([for the correct version of gmp.h])
AC_TRY_COMPILE([#include "gmp.h"],[
- #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
+ #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
+ #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
+ #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
choke me
#endif
- ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); have_gmp=no])
+ ], AC_TRY_COMPILE([#include <gmp.h>],[
+ #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
+ #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
+ #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
+ choke me
+ #endif
+ ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])]),
+ [AC_MSG_RESULT([no]); have_gmp=no])
# If we have GMP, check the MPFR version.
if test x"$have_gmp" = xyes; then
- dnl MPFR 2.3.1 is acceptable, but MPFR 2.3.2 is better.
- AC_MSG_CHECKING([for correct version of mpfr.h])
+ # Check for the recommended and required versions of MPFR.
+ AC_MSG_CHECKING([for the correct version of mpfr.h])
AC_TRY_COMPILE([#include <gmp.h>
#include <mpfr.h>],[
#if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
@@ -1360,7 +1369,7 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
#endif
], AC_TRY_COMPILE([#include <gmp.h>
#include <mpfr.h>],[
- #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
+ #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
choke me
#endif
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])]),
@@ -1369,12 +1378,18 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
# Check for the MPC header version.
if test x"$have_gmp" = xyes ; then
+ # Check for the recommended and required versions of MPC.
AC_MSG_CHECKING([for the correct version of mpc.h])
AC_TRY_COMPILE([#include <mpc.h>],[
- #if MPC_VERSION < MPC_VERSION_NUM (0,8,0)
+ #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
choke me
#endif
- ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); have_gmp=no])
+ ], AC_TRY_COMPILE([#include <mpc.h>],[
+ #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
+ choke me
+ #endif
+ ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])]),
+ [AC_MSG_RESULT([no]); have_gmp=no])
fi
# Now check the MPFR library.
@@ -1406,8 +1421,10 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
CFLAGS="$saved_CFLAGS"
+# The library versions listed in the error message below should match
+# the HARD-minimums enforced above.
if test x$have_gmp != xyes; then
- AC_MSG_ERROR([Building GCC requires GMP 4.2+, MPFR 2.3.2+ and MPC 0.8.0+.
+ AC_MSG_ERROR([Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 45d1e61..c81a7c6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,113 @@
+2010-02-02 Tom Tromey <tromey@redhat.com>
+
+ * valops.c (value_cast_structs): Try downcasting using the RTTI
+ type.
+
+2010-02-02 Tom Tromey <tromey@redhat.com>
+
+ * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
+ (gnuv2_baseclass_offset): Now static.
+ * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
+ * gnu-v2-abi.h: Remove.
+
+2010-02-02 Tom Tromey <tromey@redhat.com>
+
+ * m2-typeprint.c (m2_record_fields): Don't use
+ TYPE_DECLARED_TYPE.
+ * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
+ (struct main_type) <flag_declared_class>: New field.
+ (struct cplus_struct_type) <declared_type>: Remove.
+ <ntemplate_args>: Move earlier.
+ (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
+ (DECLARED_TYPE_TEMPLATE): Remove.
+ (TYPE_DECLARED_TYPE): Remove.
+ * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
+ * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
+ * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
+ TYPE_DECLARED_TYPE.
+
+2010-02-02 Tom Tromey <tromey@redhat.com>
+
+ PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
+ * valops.c (search_struct_field): Compute nbases after calling
+ CHECK_TYPEDEF.
+ (check_field): Call CHECK_TYPEDEF.
+ * cp-valprint.c (cp_print_value): Pass correct address to
+ baseclass_offset. Fix check for virtual base past the end of the
+ object. Don't offset address passed to cp_print_value_fields or
+ apply_val_pretty_printer.
+ (cp_print_value_fields): Fix call to val_print.
+ (cp_print_value_fields_rtti): New function.
+ * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
+ * p-valprint.c (pascal_object_print_value_fields): Fix call to
+ val_print.
+ * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
+ offset to address.
+ * language.h (struct language_defn) <la_val_print>: Document.
+ * c-lang.h (cp_print_value_fields_rtti): Declare.
+
+2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR libc/11214:
+ * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
+ (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
+ (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
+
+2010-02-01 Michael Matz <matz@suse.de>
+ Daniel Jacobowitz <dan@codesourcery.com>
+
+ * i386-tdep.c (i386_frame_cache): Assume valid anonymous
+ functions use a frame pointer.
+
+2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
+ by a conditional setting DYN_ADDR. Use DYN_ADDR.
+ * config/djgpp/fnchange.lst: Add translations for
+ symbol-without-target_section.exp and symbol-without-target_section.c.
+
+2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdbarch.sh: Set LANG and LC_ALL to C, not c.
+ (remote_breakpoint_for_pc): Correct invalid_p check.
+ * gdbarch.c: Regenerated.
+
+2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-tdep.c (arm_find_mapping_symbol): New function, from
+ arm_pc_is_thumb.
+ (arm_pc_is_thumb): Use arm_find_mapping_symbol.
+ (extend_buffer_earlier): New function.
+ (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
+ (arm_adjust_breakpoint_address): New function.
+ (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
+
+2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
+ (arm_linux_thumb2_le_breakpoint): New constants.
+ (arm_linux_init_abi): Set thumb2_breakpoint and
+ thumb2_breakpoint_size.
+ * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
+ (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
+ Implement support for single stepping through IT blocks if
+ a 32-bit Thumb breakpoint instruction is available.
+ (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
+ is available, use it when needed.
+ (arm_remote_breakpoint_from_pc): New function.
+ (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
+ * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
+ comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
+
+2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arch-utils.c (default_remote_breakpoint_from_pc): New function.
+ * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
+ * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
+ gdbarch_remote_breakpoint_from_pc.
+
2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
* infrun.c (prepare_to_proceed): Handle other signals which might
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index ff8b86e..98f42b9 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -706,7 +706,7 @@ osf-share/cma_errors.h osf-share/cma_tcb_defs.h osf-share/cma_attr.h \
osf-share/cma_stack_int.h osf-share/cma_init.h \
osf-share/cma_deb_core.h osf-share/AT386/cma_thread_io.h \
osf-share/cma_sched.h proc-utils.h arm-tdep.h ax-gdb.h ppcnbsd-tdep.h \
-cli-out.h gdb_expat.h breakpoint.h infcall.h obsd-tdep.h gnu-v2-abi.h \
+cli-out.h gdb_expat.h breakpoint.h infcall.h obsd-tdep.h \
exec.h m32r-tdep.h osabi.h gdbcore.h solib-som.h \
i386bsd-nat.h xml-support.h xml-tdesc.h alphabsd-tdep.h gdb_obstack.h \
ia64-tdep.h ada-lang.h varobj.h frv-tdep.h nto-tdep.h serial.h \
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 5501175..765312d 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -776,6 +776,13 @@ default_fast_tracepoint_valid_at (struct gdbarch *gdbarch,
return 1;
}
+void
+default_remote_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr,
+ int *kindptr)
+{
+ gdbarch_breakpoint_from_pc (gdbarch, pcptr, kindptr);
+}
+
/* */
extern initialize_file_ftype _initialize_gdbarch_utils; /* -Wmissing-prototypes */
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index 6fee1e5..d5d7f1d 100644
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-31 17:25 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-31 17:25 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 2e4e6c860563f4d26538db70b02712753456a49a (commit)
via 5f9a1f9f73c5552ceca68d5e2cefb6454d4d4a22 (commit)
via 9c13abd586d6251a03d10c2d3809f3dd75a79a96 (commit)
via a86369688577ace604d9c15f2e45053cb0f1d046 (commit)
via fbae06a026848d102269b1d7627ed1ed1476ecd9 (commit)
via 481ae44b178f289a3dce573858c076cba130a186 (commit)
via 00d206f06c1bfe3c4e4ad727e7e7c0d23fec9304 (commit)
via ea72145d5db8c66253c9b21b785a5311f69ae99e (commit)
via 055ea5aad2e3e6e74eb70760a27c5b12b105097d (commit)
via e85c2313d4ebb17b06409da168bbb836e229f877 (commit)
via c0869096279f9efb4047b5deceee1c6ded43300d (commit)
via eaf43e71840fb73fba7c0af93a675b945cf33272 (commit)
via 06e45bb813f0299045e706936d448563e18de2f2 (commit)
via 09ffeaf7f4252c5177063a04b70886b604431142 (commit)
via 285e284cdcd5bd63bf316ddefaf642833d5a0f6a (commit)
via a54573f7582d0c73bc98ac06969bbcf3310ac16a (commit)
via a1f83b9843c1744564ffb0991f0a51ad372e3346 (commit)
via 0fcc0541ae31b12263bba2ba8d52c8b461efbfe2 (commit)
via 753be84d32a8922b66c4f9705811c57d5e64a724 (commit)
via cddb5b9441387b546785edb7f3723fd69a34db5a (commit)
from aeae4a8edcc90a5560ff3d9832ea79b65b119d9f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 2e4e6c860563f4d26538db70b02712753456a49a
Merge: aeae4a8edcc90a5560ff3d9832ea79b65b119d9f 5f9a1f9f73c5552ceca68d5e2cefb6454d4d4a22
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Sun Jan 31 18:25:05 2010 +0100
Merge remote branch 'gdb/master'
commit 5f9a1f9f73c5552ceca68d5e2cefb6454d4d4a22
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 31 00:00:02 2010 +0000
*** empty log message ***
commit 9c13abd586d6251a03d10c2d3809f3dd75a79a96
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jan 30 23:00:05 2010 +0000
daily update
commit a86369688577ace604d9c15f2e45053cb0f1d046
Author: Dave Anglin <dave.anglin@nrc.ca>
Date: Sat Jan 30 16:09:42 2010 +0000
* elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
linkage table pointer to use the global table pointer if not doing
a shared link.
commit fbae06a026848d102269b1d7627ed1ed1476ecd9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 30 00:00:03 2010 +0000
*** empty log message ***
commit 481ae44b178f289a3dce573858c076cba130a186
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 29 23:00:05 2010 +0000
daily update
commit 00d206f06c1bfe3c4e4ad727e7e7c0d23fec9304
Author: Daniel Jacobowitz <dan@debian.org>
Date: Fri Jan 29 16:47:55 2010 +0000
gas/testsuite/
* gas/arm/dis-data.d: Update test name. Do not expect
.word output.
* gas/arm/dis-data2.d, gas/arm/dis-data2.s,
gas/arm/dis-data3.d, gas/arm/dis-data3.s: New tests.
opcodes/
* opcodes/arm-dis.c (struct arm_private_data): New.
(print_insn_coprocessor, print_insn_arm): Update to use struct
arm_private_data.
(is_mapping_symbol, get_map_sym_type): New functions.
(get_sym_code_type): Check the symbol's section. Do not check
mapping symbols.
(print_insn): Default to disassembling ARM mode code. Check
for mapping symbols separately from other symbols. Use
struct arm_private_data.
commit ea72145d5db8c66253c9b21b785a5311f69ae99e
Author: Daniel Jacobowitz <dan@debian.org>
Date: Fri Jan 29 15:40:19 2010 +0000
* infrun.c (prepare_to_proceed): Handle other signals which might
match a breakpoint.
(handle_inferior_event): Move the check for unusual breakpoint
signals earlier.
gdbserver/
* linux-low.c (get_stop_pc): Check for SIGTRAP.
(linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
breakpoints.
commit 055ea5aad2e3e6e74eb70760a27c5b12b105097d
Author: Daniel Jacobowitz <dan@debian.org>
Date: Fri Jan 29 15:38:37 2010 +0000
* gdb.base/call-strs.exp, gdb.base/default.exp,
gdb.base/ending-run.exp, gdb.base/finish.exp, gdb.base/funcargs.exp,
gdb.base/huge.exp, gdb.base/nodebug.exp, gdb.base/ptype.exp,
gdb.base/restore.exp, gdb.base/return.exp, gdb.base/setvar.exp,
gdb.base/watchpoints.exp, gdb.threads/gcore-thread.exp,
gdb.base/watchpoint-solib.exp: Save and restore timeout.
* gdb.base/ending-run.exp: Correct restore of timeout.
* gdb.base/page.exp: Remove unnecessary timeout setting.
commit e85c2313d4ebb17b06409da168bbb836e229f877
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 29 14:39:02 2010 +0000
amd64 - function returning record with field straddling 2 registers
gdb/ChangeLog:
From Paul Hilfinger <hilfinger@adacore.com>
* amd64-tdep.c (amd_classify_aggregate): Handle the case of
a record of length <= 16 in which a field straddles the two
eightbytes.
gdb/testsuite/ChangeLog:
* gdb.ada/rec_return: New testcase.
commit c0869096279f9efb4047b5deceee1c6ded43300d
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 29 05:29:21 2010 +0000
Implement return values on amd64-windows.
* amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
(amd64_windows_return_value): New function.
(amd64_windows_init_abi): Call set_gdbarch_return_value with
amd64_windows_return_value.
commit eaf43e71840fb73fba7c0af93a675b945cf33272
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 29 05:27:35 2010 +0000
amd64-windows: 32 bytes allocated on stack by caller for integer parameter registers
* i386-tdep.h (struct gdbarch_tdep): Add new field
integer_param_regs_saved_in_caller_frame.
* amd64-windows-tdep.c (amd64_windows_init_abi): Set
tdep->integer_param_regs_saved_in_caller_frame to 1.
* amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
stack if tdep->integer_param_regs_saved_in_caller_frame is set.
commit 06e45bb813f0299045e706936d448563e18de2f2
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 29 05:23:37 2010 +0000
Add summary line to the second to last entry.
commit 09ffeaf7f4252c5177063a04b70886b604431142
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 29 05:21:55 2010 +0000
amd64-windows: memory args passed by pointer during function calls.
* i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
* amd64-tdep.c (amd64_push_arguments): Add handling of architectures
where tdep->memory_args_by_pointer is non-zero.
* amd64-windows-tdep.c (amd64_windows_init_abi): Set
tdep->memory_args_by_pointer to 1.
commit 285e284cdcd5bd63bf316ddefaf642833d5a0f6a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 29 05:19:22 2010 +0000
amd64: Integer parameters in function calls on Windows.
gdb/ChangeLog:
* i386-tdep.h (enum amd64_reg_class): New, moved here from
amd64-tdep.c.
(struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
call_dummy_integer_regs, and classify.
* amd64-tdep.h (amd64_classify): Add declaration.
* amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
(amd64_reg_class): Delete, moved to i386-tdep.h.
(amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
Replace call to amd64_classify by call to tdep->classify.
(amd64_push_arguments): Get the list of registers to use for
passing integer parameters from the gdbarch tdep structure,
rather than using a hardcoded one. Replace calls to amd64_classify
by calls to tdep->classify.
(amd64_push_dummy_call): Get the register number used for
the "hidden" argument from tdep->call_dummy_integer_regs.
(amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
and tdep->call_dummy_integer_regs. Set tdep->classify.
* amd64-windows-tdep.c: Add include of gdbtypes.h.
(amd64_windows_dummy_call_integer_regs): New static global.
(amd64_windows_classify): New function.
(amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
tdep->call_dummy_integer_regs and tdep->classify.
gdb/testsuite/ChangeLog:
* gdb.ada/call_pn: New testcase.
commit a54573f7582d0c73bc98ac06969bbcf3310ac16a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 29 04:32:59 2010 +0000
core files: wrong signal number with threaded program on sparc-solaris.
* elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
if it has already been set.
commit a1f83b9843c1744564ffb0991f0a51ad372e3346
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 29 00:00:33 2010 +0000
*** empty log message ***
commit 0fcc0541ae31b12263bba2ba8d52c8b461efbfe2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jan 28 23:00:04 2010 +0000
daily update
commit 753be84d32a8922b66c4f9705811c57d5e64a724
Author: Daniel Jacobowitz <dan@debian.org>
Date: Thu Jan 28 22:14:11 2010 +0000
* gdb.mi/mi-nonstop.exp (mi_nonstop_resume): New function.
(Top level): Use it to resume.
* lib/mi-support.exp (mi_send_resuming_command_raw): Recognize
the Thumb mode displaced stepping error as unsupported.
commit cddb5b9441387b546785edb7f3723fd69a34db5a
Author: Daniel Jacobowitz <dan@debian.org>
Date: Thu Jan 28 22:07:57 2010 +0000
* regcache.c (regcache_xmalloc): Add aspace argument. Use it
for the new regcache. All callers updated.
(regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
(get_thread_arch_regcache): Do not set aspace here.
* regcache.h (regcache_xmalloc): Update declaration.
* frame.c, infcall.c, ppc-linux-tdep.c: Calls to
regcache_xmalloc updated.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 12 ++
bfd/elf.c | 5 +-
bfd/elf32-hppa.c | 12 +-
bfd/version.h | 2 +-
gdb/ChangeLog | 79 ++++++++++
gdb/amd64-tdep.c | 136 +++++++++++++-----
gdb/amd64-tdep.h | 3 +
gdb/amd64-windows-tdep.c | 112 +++++++++++++++
gdb/frame.c | 4 +-
gdb/gdbserver/ChangeLog | 6 +
gdb/gdbserver/linux-low.c | 21 ++-
gdb/i386-tdep.h | 43 ++++++
gdb/infcall.c | 3 +-
gdb/infrun.c | 50 ++++---
gdb/ppc-linux-tdep.c | 3 +-
gdb/regcache.c | 15 +--
gdb/regcache.h | 3 +-
gdb/testsuite/ChangeLog | 26 ++++
gdb/testsuite/gdb.ada/call_pn.exp | 53 +++++++
gdb/testsuite/gdb.ada/call_pn/foo.adb | 23 +++
gdb/testsuite/gdb.ada/call_pn/pck.adb | 25 ++++
gdb/testsuite/gdb.ada/call_pn/pck.ads | 23 +++
gdb/testsuite/gdb.ada/rec_return.exp | 46 ++++++
gdb/testsuite/gdb.ada/rec_return/foo.adb | 24 +++
gdb/testsuite/gdb.ada/rec_return/pck.adb | 27 ++++
gdb/testsuite/gdb.ada/rec_return/pck.ads | 28 ++++
gdb/testsuite/gdb.base/call-strs.exp | 9 +-
gdb/testsuite/gdb.base/default.exp | 3 +
gdb/testsuite/gdb.base/ending-run.exp | 4 +-
gdb/testsuite/gdb.base/finish.exp | 2 +
gdb/testsuite/gdb.base/freebpcmd.exp | 3 +
gdb/testsuite/gdb.base/funcargs.exp | 3 +
gdb/testsuite/gdb.base/huge.exp | 2 +
gdb/testsuite/gdb.base/nodebug.exp | 4 +-
gdb/testsuite/gdb.base/page.exp | 5 -
gdb/testsuite/gdb.base/ptype.exp | 5 +-
gdb/testsuite/gdb.base/restore.exp | 2 +
gdb/testsuite/gdb.base/return.exp | 2 +
gdb/testsuite/gdb.base/setvar.exp | 5 +-
gdb/testsuite/gdb.base/watchpoint-solib.exp | 8 +-
gdb/testsuite/gdb.base/watchpoints.exp | 3 +-
gdb/testsuite/gdb.mi/mi-nonstop.exp | 19 ++-
gdb/testsuite/gdb.threads/gcore-thread.exp | 2 +
gdb/testsuite/lib/mi-support.exp | 10 +-
gdb/version.in | 2 +-
opcodes/ChangeLog | 12 ++
opcodes/arm-dis.c | 206 ++++++++++++++++++++-------
47 files changed, 935 insertions(+), 160 deletions(-)
create mode 100644 gdb/testsuite/gdb.ada/call_pn.exp
create mode 100644 gdb/testsuite/gdb.ada/call_pn/foo.adb
create mode 100644 gdb/testsuite/gdb.ada/call_pn/pck.adb
create mode 100644 gdb/testsuite/gdb.ada/call_pn/pck.ads
create mode 100644 gdb/testsuite/gdb.ada/rec_return.exp
create mode 100644 gdb/testsuite/gdb.ada/rec_return/foo.adb
create mode 100644 gdb/testsuite/gdb.ada/rec_return/pck.adb
create mode 100644 gdb/testsuite/gdb.ada/rec_return/pck.ads
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ce2c0c6..1f66207 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,15 @@
+2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
+ R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
+ linkage table pointer to use the global table pointer if not doing
+ a shared link.
+
+2010-01-29 Joel Brobecker <brobecker@adacore.com>
+
+ * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
+ if it has already been set.
+
2010-01-27 Tristan Gingold <gingold@adacore.com>
* vms.h: Remove trailing spaces.
diff --git a/bfd/elf.c b/bfd/elf.c
index aac3314..19e4695 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -7800,7 +7800,10 @@ elfcore_grok_lwpstatus (bfd *abfd, Elf_Internal_Note *note)
memcpy (&lwpstat, note->descdata, sizeof (lwpstat));
elf_tdata (abfd)->core_lwpid = lwpstat.pr_lwpid;
- elf_tdata (abfd)->core_signal = lwpstat.pr_cursig;
+ /* Do not overwrite the core signal if it has already been set by
+ another thread. */
+ if (elf_tdata (abfd)->core_signal == 0)
+ elf_tdata (abfd)->core_signal = lwpstat.pr_cursig;
/* Make a ".reg/999" section. */
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index 2a5547b..babe9f2 100644
--- a/bfd/elf32-hppa.c
+++ b/bfd/elf32-hppa.c
@@ -3388,12 +3388,19 @@ final_link_relocate (asection *input_section,
case R_PARISC_DPREL21L:
case R_PARISC_DPREL14R:
case R_PARISC_DPREL14F:
+ case R_PARISC_TLS_GD21L:
+ case R_PARISC_TLS_LDM21L:
+ case R_PARISC_TLS_IE21L:
/* Convert instructions that use the linkage table pointer (r19) to
instructions that use the global data pointer (dp). This is the
most efficient way of using PIC code in an incomplete executable,
but the user must follow the standard runtime conventions for
accessing data for this to work. */
- if (orig_r_type == R_PARISC_DLTIND21L)
+ if (orig_r_type == R_PARISC_DLTIND21L
+ || (!info->shared
+ && (r_type == R_PARISC_TLS_GD21L
+ || r_type == R_PARISC_TLS_LDM21L
+ || r_type == R_PARISC_TLS_IE21L)))
{
/* Convert addil instructions if the original reloc was a
DLTIND21L. GCC sometimes uses a register other than r19 for
@@ -3444,11 +3451,8 @@ final_link_relocate (asection *input_section,
case R_PARISC_DLTIND21L:
case R_PARISC_DLTIND14R:
case R_PARISC_DLTIND14F:
- case R_PARISC_TLS_GD21L:
case R_PARISC_TLS_GD14R:
- case R_PARISC_TLS_LDM21L:
case R_PARISC_TLS_LDM14R:
- case R_PARISC_TLS_IE21L:
case R_PARISC_TLS_IE14R:
value -= elf_gp (input_section->output_section->owner);
break;
diff --git a/bfd/version.h b/bfd/version.h
index 61fb4a2..08f4544 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100128
+#define BFD_VERSION_DATE 20100131
#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 db65d6d..45d1e61 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,82 @@
+2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * infrun.c (prepare_to_proceed): Handle other signals which might
+ match a breakpoint.
+ (handle_inferior_event): Move the check for unusual breakpoint
+ signals earlier.
+
+2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
+
+ amd64 - function returning record with field straddling 2 registers.
+ * amd64-tdep.c (amd_classify_aggregate): Handle the case of
+ a record of length <= 16 in which a field straddles the two
+ eightbytes.
+
+2010-01-29 Joel Brobecker <brobecker@adacore.com>
+
+ Implement return values on amd64-windows.
+ * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
+ (amd64_windows_return_value): New function.
+ (amd64_windows_init_abi): Call set_gdbarch_return_value with
+ amd64_windows_return_value.
+
+2010-01-29 Joel Brobecker <brobecker@adacore.com>
+
+ amd64-windows: 32 bytes allocated on stack by caller for integer
+ parameter registers.
+ * i386-tdep.h (struct gdbarch_tdep): Add new field
+ integer_param_regs_saved_in_caller_frame.
+ * amd64-windows-tdep.c (amd64_windows_init_abi): Set
+ tdep->integer_param_regs_saved_in_caller_frame to 1.
+ * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
+ stack if tdep->integer_param_regs_saved_in_caller_frame is set.
+
+2010-01-29 Joel Brobecker <brobecker@adacore.com>
+
+ amd64-windows: memory args passed by pointer during function calls.
+ * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
+ * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
+ where tdep->memory_args_by_pointer is non-zero.
+ * amd64-windows-tdep.c (amd64_windows_init_abi): Set
+ tdep->memory_args_by_pointer to 1.
+
+2010-01-29 Joel Brobecker <brobecker@adacore.com>
+
+ amd64-windows: Integer parameters in function calls.
+ * i386-tdep.h (enum amd64_reg_class): New, moved here from
+ amd64-tdep.c.
+ (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
+ call_dummy_integer_regs, and classify.
+ * amd64-tdep.h (amd64_classify): Add declaration.
+ * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
+ (amd64_reg_class): Delete, moved to i386-tdep.h.
+ (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
+ Replace call to amd64_classify by call to tdep->classify.
+ (amd64_push_arguments): Get the list of registers to use for
+ passing integer parameters from the gdbarch tdep structure,
+ rather than using a hardcoded one. Replace calls to amd64_classify
+ by calls to tdep->classify.
+ (amd64_push_dummy_call): Get the register number used for
+ the "hidden" argument from tdep->call_dummy_integer_regs.
+ (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
+ and tdep->call_dummy_integer_regs. Set tdep->classify.
+ * amd64-windows-tdep.c: Add include of gdbtypes.h.
+ (amd64_windows_dummy_call_integer_regs): New static global.
+ (amd64_windows_classify): New function.
+ (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
+ tdep->call_dummy_integer_regs and tdep->classify.
+
+2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * regcache.c (regcache_xmalloc): Add aspace argument. Use it
+ for the new regcache. All callers updated.
+ (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
+ (get_thread_arch_regcache): Do not set aspace here.
+ * regcache.h (regcache_xmalloc): Update declaration.
+
+ * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
+ regcache_xmalloc updated.
+
2010-01-28 Joel Brobecker <brobecker@adacore.com>
Another -Wunused-function error in procfs.c (sparc-solaris)
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 74a38a8..2b15141 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -72,6 +72,17 @@ static const char *amd64_register_names[] =
/* Total number of registers. */
#define AMD64_NUM_REGS ARRAY_SIZE (amd64_register_names)
+/* The registers used to pass integer arguments during a function call. */
+static int amd64_dummy_call_integer_regs[] =
+{
+ AMD64_RDI_REGNUM, /* %rdi */
+ AMD64_RSI_REGNUM, /* %rsi */
+ AMD64_RDX_REGNUM, /* %rdx */
+ AMD64_RCX_REGNUM, /* %rcx */
+ 8, /* %r8 */
+ 9 /* %r9 */
+};
+
/* Return the name of register REGNUM. */
const char *
@@ -240,20 +251,6 @@ amd64_arch_reg_to_regnum (int reg)
\f
-/* Register classes as defined in the psABI. */
-
-enum amd64_reg_class
-{
- AMD64_INTEGER,
- AMD64_SSE,
- AMD64_SSEUP,
- AMD64_X87,
- AMD64_X87UP,
- AMD64_COMPLEX_X87,
- AMD64_NO_CLASS,
- AMD64_MEMORY
-};
-
/* Return the union class of CLASS1 and CLASS2. See the psABI for
details. */
@@ -290,8 +287,6 @@ amd64_merge_classes (enum amd64_reg_class class1, enum amd64_reg_class class2)
return AMD64_SSE;
}
-static void amd64_classify (struct type *type, enum amd64_reg_class class[2]);
-
/* Return non-zero if TYPE is a non-POD structure or union type. */
static int
@@ -352,6 +347,12 @@ amd64_classify_aggregate (struct type *type, enum amd64_reg_class class[2])
struct type *subtype = check_typedef (TYPE_FIELD_TYPE (type, i));
int pos = TYPE_FIELD_BITPOS (type, i) / 64;
enum amd64_reg_class subclass[2];
+ int bitsize = TYPE_FIELD_BITSIZE (type, i);
+ int endpos;
+
+ if (bitsize == 0)
+ bitsize = TYPE_LENGTH (subtype) * 8;
+ endpos = (TYPE_FIELD_BITPOS (type, i) + bitsize - 1) / 64;
/* Ignore static fields. */
if (field_is_static (&TYPE_FIELD (type, i)))
@@ -361,6 +362,30 @@ amd64_classify_aggregate (struct type *type, enum amd64_reg_class class[2])
amd64_classify (subtype, subclass);
class[pos] = amd64_merge_classes (class[pos], subclass[0]);
+ if (bitsize <= 64 && pos == 0 && endpos == 1)
+ /* This is a bit of an odd case: We have a field that would
+ normally fit in one of the two eightbytes, except that
+ it is placed in a way that this field straddles them.
+ This has been seen with a structure containing an array.
+
+ The ABI is a bit unclear in this case, but we assume that
+ this field's class (stored in subclass[0]) must also be merged
+ into class[1]. In other words, our field has a piece stored
+ in the second eight-byte, and thus its class applies to
+ the second eight-byte as well.
+
+ In the case where the field length exceeds 8 bytes,
+ it should not be necessary to merge the field class
+ into class[1]. As LEN > 8, subclass[1] is necessarily
+ different from AMD64_NO_CLASS. If subclass[1] is equal
+ to subclass[0], then the normal class[1]/subclass[1]
+ merging will take care of everything. For subclass[1]
+ to be different from subclass[0], I can only see the case
+ where we have a SSE/SSEUP or X87/X87UP pair, which both
+ use up all 16 bytes of the aggregate, and are already
+ handled just fine (because each portion sits on its own
+ 8-byte). */
+ class[1] = amd64_merge_classes (class[1], subclass[0]);
if (pos == 0)
class[1] = amd64_merge_classes (class[1], subclass[1]);
}
@@ -383,7 +408,7 @@ amd64_classify_aggregate (struct type *type, enum amd64_reg_class class[2])
/* Classify TYPE, and store the result in CLASS. */
-static void
+void
amd64_classify (struct type *type, enum amd64_reg_class class[2])
{
enum type_code code = TYPE_CODE (type);
@@ -434,6 +459,7 @@ amd64_return_value (struct gdbarch *gdbarch, struct type *func_type,
struct type *type, struct regcache *regcache,
gdb_byte *readbuf, const gdb_byte *writebuf)
{
+ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
enum amd64_reg_class class[2];
int len = TYPE_LENGTH (type);
static int integer_regnum[] = { AMD64_RAX_REGNUM, AMD64_RDX_REGNUM };
@@ -443,9 +469,10 @@ amd64_return_value (struct gdbarch *gdbarch, struct type *func_type,
int i;
gdb_assert (!(readbuf && writebuf));
+ gdb_assert (tdep->classify);
/* 1. Classify the return type with the classification algorithm. */
- amd64_classify (type, class);
+ tdep->classify (type, class);
/* 2. If the type has class MEMORY, then the caller provides space
for the return value and passes the address of this storage in
@@ -543,15 +570,11 @@ static CORE_ADDR
amd64_push_arguments (struct regcache *regcache, int nargs,
struct value **args, CORE_ADDR sp, int struct_return)
{
- static int integer_regnum[] =
- {
- AMD64_RDI_REGNUM, /* %rdi */
- AMD64_RSI_REGNUM, /* %rsi */
- AMD64_RDX_REGNUM, /* %rdx */
- AMD64_RCX_REGNUM, /* %rcx */
- 8, /* %r8 */
- 9 /* %r9 */
- };
+ struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+ int *integer_regs = tdep->call_dummy_integer_regs;
+ int num_integer_regs = tdep->call_dummy_num_integer_regs;
+
static int sse_regnum[] =
{
/* %xmm0 ... %xmm7 */
@@ -561,6 +584,11 @@ amd64_push_arguments (struct regcache *regcache, int nargs,
AMD64_XMM0_REGNUM + 6, AMD64_XMM0_REGNUM + 7,
};
struct value **stack_args = alloca (nargs * sizeof (struct value *));
+ /* An array that mirrors the stack_args array. For all arguments
+ that are passed by MEMORY, if that argument's address also needs
+ to be stored in a register, the ARG_ADDR_REGNO array will contain
+ that register number (or a negative value otherwise). */
+ int *arg_addr_regno = alloca (nargs * sizeof (int));
int num_stack_args = 0;
int num_elements = 0;
int element = 0;
@@ -568,6 +596,8 @@ amd64_push_arguments (struct regcache *regcache, int nargs,
int sse_reg = 0;
int i;
+ gdb_assert (tdep->classify);
+
/* Reserve a register for the "hidden" argument. */
if (struct_return)
integer_reg++;
@@ -582,7 +612,7 @@ amd64_push_arguments (struct regcache *regcache, int nargs,
int j;
/* Classify argument. */
- amd64_classify (type, class);
+ tdep->classify (type, class);
/* Calculate the number of integer and SSE registers needed for
this argument. */
@@ -596,13 +626,25 @@ amd64_push_arguments (struct regcache *regcache, int nargs,
/* Check whether enough registers are available, and if the
argument should be passed in registers at all. */
- if (integer_reg + needed_integer_regs > ARRAY_SIZE (integer_regnum)
+ if (integer_reg + needed_integer_regs > num_integer_regs
|| sse_reg + needed_sse_regs > ARRAY_SIZE (sse_regnum)
|| (needed_integer_regs == 0 && needed_sse_regs == 0))
{
/* The argument will be passed on the stack. */
num_elements += ((len + 7) / 8);
- stack_args[num_stack_args++] = args[i];
+ stack_args[num_stack_args] = args[i];
+ /* If this is an AMD64_MEMORY argument whose address must also
+ be passed in one of the integer registers, reserve that
+ register and associate this value to that register so that
+ we can store the argument address as soon as we know it. */
+ if (class[0] == AMD64_MEMORY
+ && tdep->memory_args_by_pointer
+ && integer_reg < tdep->call_dummy_num_integer_regs)
+ arg_addr_regno[num_stack_args] =
+ tdep->call_dummy_integer_regs[integer_reg++];
+ else
+ arg_addr_regno[num_stack_args] = -1;
+ num_stack_args++;
}
else
{
@@ -620,7 +662,7 @@ amd64_push_arguments (struct regcache *regcache, int nargs,
switch (class[j])
{
case AMD64_INTEGER:
- regnum = integer_regnum[integer_reg++];
+ regnum = integer_regs[integer_reg++];
break;
case AMD64_SSE:
@@ -658,8 +700,19 @@ amd64_push_arguments (struct regcache *regcache, int nargs,
struct type *type = value_type (stack_args[i]);
const gdb_byte *valbuf = value_contents (stack_args[i]);
int len = TYPE_LENGTH (type);
-
- write_memory (sp + element * 8, valbuf, len);
+ CORE_ADDR arg_addr = sp + element * 8;
+
+ write_memory (arg_addr, valbuf, len);
+ if (arg_addr_regno[i] >= 0)
+ {
+ /* We also need to store the address of that argument in
+ the given register. */
+ gdb_byte buf[8];
+ enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
+
+ store_unsigned_integer (buf, 8, byte_order, arg_addr);
+ regcache_cooked_write (regcache, arg_addr_regno[i], buf);
+ }
element += ((len + 7) / 8);
}
@@ -678,6 +731,7 @@ amd64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
int struct_return, CORE_ADDR struct_addr)
{
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
+ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
gdb_byte buf[8];
/* Pass arguments. */
@@ -686,10 +740,20 @@ amd64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
/* Pass "hidden" argument". */
if (struct_return)
{
+ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+ /* The "hidden" argument is passed throught the first argument
+ register. */
+ const int arg_regnum = tdep->call_dummy_integer_regs[0];
+
store_unsigned_integer (buf, 8, byte_order, struct_addr);
- regcache_cooked_write (regcache, AMD64_RDI_REGNUM, buf);
+ regcache_cooked_write (regcache, arg_regnum, buf);
}
+ /* Reserve some memory on the stack for the integer-parameter registers,
+ if required by the ABI. */
+ if (tdep->integer_param_regs_saved_in_caller_frame)
+ sp -= tdep->call_dummy_num_integer_regs * 8;
+
/* Store return address. */
sp -= 8;
store_unsigned_integer (buf, 8, byte_order, bp_addr);
@@ -2134,6 +2198,10 @@ amd64_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_push_dummy_call (gdbarch, amd64_push_dummy_call);
set_gdbarch_frame_align (gdbarch, amd64_frame_align);
set_gdbarch_frame_red_zone_size (gdbarch, 128);
+ tdep->call_dummy_num_integer_regs =
+ ARRAY_SIZE (amd64_dummy_call_integer_regs);
+ tdep->call_dummy_integer_regs = amd64_dummy_call_integer_regs;
+ tdep->classify = amd64_classify;
set_gdbarch_convert_register_p (gdbarch, i387_convert_register_p);
set_gdbarch_register_to_value (gdbarch, i387_register_to_value);
diff --git a/gdb/amd64-tdep.h b/gdb/amd64-tdep.h
index 3bff5d1..363479c 100644
--- a/gdb/amd64-tdep.h
+++ b/gdb/amd64-tdep.h
@@ -98,6 +98,9 @@ extern void amd64_supply_fxsave (struct regcache *regcache, int regnum,
extern void amd64_collect_fxsave (const struct regcache *regcache, int regnum,
void *fxsave);
+
+void amd64_classify (struct type *type, enum amd64_reg_class class[2]);
+
\f
/* Variables exported from amd64nbsd-tdep.c. */
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index bdad9bd..05d0824 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -20,15 +20,127 @@
#include "amd64-tdep.h"
#include "solib.h"
#include "solib-target.h"
+#include "gdbtypes.h"
+#include "gdbcore.h"
+#include "regcache.h"
+
+/* The registers used to pass integer arguments during a function call. */
+static int amd64_windows_dummy_call_integer_regs[] =
+{
+ AMD64_RCX_REGNUM, /* %rcx */
+ AMD64_RDX_REGNUM, /* %rdx */
+ 8, /* %r8 */
+ 9 /* %r9 */
+};
+
+/* Implement the "classify" method in the gdbarch_tdep structure
+ for amd64-windows. */
+
+static void
+amd64_windows_classify (struct type *type, enum amd64_reg_class class[2])
+{
+ switch (TYPE_CODE (type))
+ {
+ case TYPE_CODE_ARRAY:
+ /* Arrays are always passed by memory. */
+ class[0] = class[1] = AMD64_MEMORY;
+ break;
+
+ case TYPE_CODE_STRUCT:
+ case TYPE_CODE_UNION:
+ /* Struct/Union types whose size is 1, 2, 4, or 8 bytes
+ are passed as if they were integers of the same size.
+ Types of different sizes are passed by memory. */
+ if (TYPE_LENGTH (type) == 1
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-28 19:17 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-01-28 19:17 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via aeae4a8edcc90a5560ff3d9832ea79b65b119d9f (commit)
via 9086f91b53f60094862210b6802e233ba8111ebc (commit)
via 7ca68a06cb3b5ccf35b636933486ff6d647895fb (commit)
from 681a7dc3c981b2c74e27617ebefb016a9e95de4f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit aeae4a8edcc90a5560ff3d9832ea79b65b119d9f
Merge: 681a7dc3c981b2c74e27617ebefb016a9e95de4f 9086f91b53f60094862210b6802e233ba8111ebc
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Thu Jan 28 14:20:25 2010 -0500
Merge remote branch 'gdb/master'
commit 9086f91b53f60094862210b6802e233ba8111ebc
Author: swagiaal <swagiaal>
Date: Thu Jan 28 17:58:02 2010 +0000
2010-01-28 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/nsusing.exp: Added more tests.
* gdb.cp/nsrecurs.exp: Ditto.
* gdb.cp/nsusing.cc: Added test functions.
* gdb.cp/nsrecurs.cc: Ditto.
commit 7ca68a06cb3b5ccf35b636933486ff6d647895fb
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jan 28 15:33:23 2010 +0000
Allow VL=1 on scalar FMA instructions.
gas/testsuite/
2010-01-28 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/fma-scalar-intel.d: New.
* gas/i386/fma-scalar.d: Likewise.
* gas/i386/fma-scalar.s: Likewise.
* gas/i386/x86-64-fma-scalar-intel.d: Likewise.
* gas/i386/x86-64-fma-scalar.d: Likewise.
* gas/i386/x86-64-fma-scalar.s: Likewise.
* gas/i386/i386.exp: Run fma-scalar, fma-scalar-intel,
x86-64-fma-scalar and x86-64-fma-scalar-intel.
opcodes/
2010-01-28 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (EXVexWdqScalar): New.
(vex_scalar_w_dq_mode): Likewise.
(prefix_table): Update entries for PREFIX_VEX_3899,
PREFIX_VEX_389B, PREFIX_VEX_389D, PREFIX_VEX_389F,
PREFIX_VEX_38A9, PREFIX_VEX_38AB, PREFIX_VEX_38AD,
PREFIX_VEX_38AF, PREFIX_VEX_38B9, PREFIX_VEX_38BB,
PREFIX_VEX_38BD and PREFIX_VEX_38BF.
(intel_operand_size): Handle vex_scalar_w_dq_mode.
(OP_EX): Likewise.
-----------------------------------------------------------------------
Summary of changes:
gdb/testsuite/ChangeLog | 7 ++
gdb/testsuite/gdb.cp/nsrecurs.cc | 45 ++++++++++---
gdb/testsuite/gdb.cp/nsrecurs.exp | 15 ++++-
gdb/testsuite/gdb.cp/nsusing.cc | 130 +++++++++++++++++++++++++++----------
gdb/testsuite/gdb.cp/nsusing.exp | 131 +++++++++++++++++++++++++++++++-----
opcodes/ChangeLog | 12 ++++
opcodes/i386-dis.c | 31 +++++----
7 files changed, 293 insertions(+), 78 deletions(-)
First 500 lines of diff:
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9a5338c..d1cfb4b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-28 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * gdb.cp/nsusing.exp: Added more tests.
+ * gdb.cp/nsrecurs.exp: Ditto.
+ * gdb.cp/nsusing.cc: Added test functions.
+ * gdb.cp/nsrecurs.cc: Ditto.
+
2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.base/break-interp.exp: Use [file tail $filename] to omit any
diff --git a/gdb/testsuite/gdb.cp/nsrecurs.cc b/gdb/testsuite/gdb.cp/nsrecurs.cc
index 84605a6..2edc35f 100644
--- a/gdb/testsuite/gdb.cp/nsrecurs.cc
+++ b/gdb/testsuite/gdb.cp/nsrecurs.cc
@@ -1,30 +1,57 @@
-namespace A{
+namespace A
+{
int ax = 9;
}
-namespace B{
+namespace B
+{
using namespace A;
}
-namespace C{
+namespace C
+{
using namespace B;
}
+using namespace C;
+
//---------------
-namespace D{
+namespace D
+{
using namespace D;
int dx = 99;
}
-using namespace C;
+using namespace D;
//---------------
-namespace{
- namespace{
+namespace
+{
+ namespace
+ {
int xx = 999;
}
}
-int main(){
+//---------------
+namespace E
+{
+ int ex = 9999;
+}
+
+namespace F
+{
+ namespace FE = E;
+}
+
+namespace G
+{
+ namespace GF = F;
+}
+
+//----------------
+int main ()
+{
using namespace D;
- return ax + dx + xx;
+ namespace GX = G;
+ return ax + dx + xx + G::GF::FE::ex;
}
diff --git a/gdb/testsuite/gdb.cp/nsrecurs.exp b/gdb/testsuite/gdb.cp/nsrecurs.exp
index 9939a9f..f884a97 100644
--- a/gdb/testsuite/gdb.cp/nsrecurs.exp
+++ b/gdb/testsuite/gdb.cp/nsrecurs.exp
@@ -13,8 +13,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test recursive namespace lookup
-
if $tracelevel then {
strace $tracelevel
}
@@ -25,7 +23,8 @@ set bug_id 0
set testfile nsrecurs
set srcfile ${testfile}.cc
set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" \
+ "${binfile}" executable {debug c++}] != "" } {
untested "Couldn't compile test program"
return -1
}
@@ -65,3 +64,13 @@ gdb_test "print dx" "= 99"
# anonymous namespace imports.
gdb_test "print xx" "= 999"
+
+############################################
+# Test printing using recursive namespace
+# aliases.
+
+setup_kfail "gdb/10541" "*-*-*"
+gdb_test "ptype G::GF" "= namespace F"
+
+setup_kfail "gdb/10541" "*-*-*"
+gdb_test "print G::GF::FE::ex" "= 9999"
diff --git a/gdb/testsuite/gdb.cp/nsusing.cc b/gdb/testsuite/gdb.cp/nsusing.cc
index b1f0ce4..72ff941 100644
--- a/gdb/testsuite/gdb.cp/nsusing.cc
+++ b/gdb/testsuite/gdb.cp/nsusing.cc
@@ -1,34 +1,77 @@
-namespace O
+namespace M
{
- int ox = 4;
+ int x = 911;
}
-namespace PQ
+namespace N
{
- int marker6 ()
+ int x = 912;
+}
+
+int marker10 ()
+{
+ using namespace M;
+ int y = x + 1; // marker10 stop
+ using namespace N;
+ return y;
+}
+
+namespace J
+{
+ int jx = 44;
+}
+
+namespace K
+{
+ int marker9 ()
{
- return 0;
+ //x;
+ return marker10 ();
}
}
-namespace P
+namespace L
{
- using namespace O;
+ using namespace J;
+ int marker8 ()
+ {
+ jx;
+ return K::marker9 ();
+ }
}
-//--------------
-namespace C
+namespace G
{
- int cc = 3;
+ namespace H
+ {
+ int ghx = 6;
+ }
}
-using namespace C;
-int marker5 ()
+namespace I
{
- cc;
- return PQ::marker6 ();
+ int marker7 ()
+ {
+ using namespace G::H;
+ ghx;
+ return L::marker8 ();
+ }
}
+namespace E
+{
+ namespace F
+ {
+ int efx = 5;
+ }
+}
+
+using namespace E::F;
+int marker6 ()
+{
+ efx;
+ return I::marker7 ();
+}
namespace A
{
@@ -36,42 +79,61 @@ namespace A
int x = 2;
}
-int marker4(){
- using A::x;
- return marker5 ();
+namespace C
+{
+ int cc = 3;
+}
+
+namespace D
+{
+ int dx = 4;
+}
+
+using namespace C;
+int marker5 ()
+{
+ cc;
+ return marker6 ();
}
-int marker3(){
- return marker4();
+int marker4 ()
+{
+ using D::dx;
+ return marker5 ();
}
-int marker2()
+int marker3 ()
+{
+ return marker4 ();
+}
+
+int marker2 ()
{
namespace B = A;
B::_a;
- return marker3();
+ return marker3 ();
}
-int marker1()
+int marker1 ()
{
int total = 0;
- {
- int b = 1;
{
- using namespace A;
- int c = 2;
- {
- int d = 3;
- total = _a + b + c + d + marker2(); // marker1 stop
- }
+ int b = 1;
+ {
+ using namespace A;
+ int c = 2;
+ {
+ int d = 3;
+ total = _a + b + c + d + marker2 (); // marker1 stop
+ }
+ }
}
- }
- return marker2() + total;
+ return marker2 () + total;
}
-int main()
+int main ()
{
using namespace A;
_a;
- return marker1();
+ return marker1 ();
}
diff --git a/gdb/testsuite/gdb.cp/nsusing.exp b/gdb/testsuite/gdb.cp/nsusing.exp
index ef0237d..bd115c4 100644
--- a/gdb/testsuite/gdb.cp/nsusing.exp
+++ b/gdb/testsuite/gdb.cp/nsusing.exp
@@ -23,7 +23,8 @@ set bug_id 0
set testfile nsusing
set srcfile ${testfile}.cc
set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
+ {debug c++}] != "" } {
untested "Couldn't compile test program"
return -1
}
@@ -51,32 +52,94 @@ if ![runto_main] then {
gdb_test "print _a" "= 1"
+# Test that names are not printed when they
+# are not imported
+
+gdb_breakpoint marker3
+gdb_continue_to_breakpoint "marker3"
+
+#send_gdb "break marker3\n"
+#send_gdb "continue\n"
+
+gdb_test "print _a" "No symbol \"_a\" in current context." \
+ "Print _a without import"
+
+gdb_exit
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+gdb_load ${binfile}
+
+
############################################
-# test printing of namespace imported into
+# test printing of namespace imported into
# a scope containing the pc.
+if ![runto_main] then {
+ perror "couldn't run to breakpoint main"
+ continue
+}
+
gdb_breakpoint [gdb_get_line_number "marker1 stop"]
gdb_continue_to_breakpoint "marker1 stop"
gdb_test "print _a" "= 1" "print _a in a nested scope"
+
+gdb_exit
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+gdb_load ${binfile}
+
+############################################
+# test printing of namespace imported into
+# file scope.
+
+
+if ![runto marker5] then {
+ perror "couldn't run to breakpoint marker5"
+ continue
+}
+
+gdb_test "print cc" "= 3"
+
+gdb_exit
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+gdb_load ${binfile}
+
+
############################################
# Test printing of namespace aliases
-setup_kfail "gdb/7935" "*-*-*"
if ![runto marker2] then {
perror "couldn't run to breakpoint marker2"
continue
}
-gdb_test "print B::a" "= 1"
+setup_kfail "gdb/7935" "*-*-*"
+gdb_test "print B::_a" "= 1"
+
+setup_kfail "gdb/7935" "*-*-*"
+gdb_test "print _a" "No symbol \"_a\" in current context." \
+ "print _a in namespace alias scope"
+
+setup_kfail "gdb/7935" "*-*-*"
+gdb_test "print x" "No symbol \"x\" in current context." \
+ "print x in namespace alias scope"
+
+gdb_exit
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+gdb_load ${binfile}
+
############################################
-# Test that names are not printed when they
+# Test that names are not printed when they
# are not imported
-gdb_breakpoint "marker3"
-gdb_continue_to_breakpoint "marker3"
+if {![runto marker3]} {
+ perror "couldn't run to breakpoint marker3"
+}
# gcc-4-3 puts import statements for aliases in
# the global scope instead of the corresponding
@@ -84,37 +147,67 @@ gdb_continue_to_breakpoint "marker3"
# this test off. This is fixed in gcc-4-4.
if [test_compiler_info gcc-4-3-*] then { setup_xfail *-*-* }
-gdb_test "print _a" "No symbol \"_a\" in current context." "Print _a without import"
+gdb_test "print _a" "No symbol \"_a\" in current context." \
+ "Print _a without import"
############################################
# Test printing of individually imported elements
-setup_kfail "gdb/7936" "*-*-*"
if ![runto marker4] then {
perror "couldn't run to breakpoint marker4"
continue
}
-
-gdb_test "print x" "= 2"
+setup_kfail "gdb/7936" "*-*-*"
+gdb_test "print dx" "= 4"
############################################
-# test printing of namespace imported into
-# file scope.
+# Test printing of namespace aliases
if ![runto marker5] then {
perror "couldn't run to marker5"
continue
}
-gdb_test "print cc" "= 3"
+gdb_test "print efx" "= 5"
############################################
-# test printing of namespace imported into
-# file scope.
+# Test printing of variables imported from
+# nested namespaces
+
+if ![runto I::marker7] then {
+ perror "couldn't run to breakpoint I::marker7"
+ continue
+}
+
+gdb_test "print ghx" "= 6"
+
+############################################
+# Test that variables are not printed in a namespace
+# that is sibling to the namespace containing an import
+
+if ![runto L::marker8] then {
+ perror "couldn't run to breakpoint L::marker8"
+ continue
+}
+
+gdb_test "print jx" "= 44"
+
+gdb_breakpoint "K::marker9"
+gdb_continue_to_breakpoint "K::marker9"
+
+gdb_test "print jx" "No symbol \"jx\" in current context."
-if ![runto PQ::marker6] then {
- perror "couldn't run to PQ::marker6"
+############################################
+# Test that variables are only printed after the line
+# containing the import
+
+if ![runto_main] then {
+ perror "couldn't run to breakpoint main"
continue
}
-gdb_test "print ox" "No symbol \"ox\" in current context."
+gdb_breakpoint [gdb_get_line_number "marker10 stop"]
+gdb_continue_to_breakpoint "marker10 stop"
+
+# Assert that M::x is printed and not N::x
+gdb_test "print x" "= 911" "print x (from M::x)"
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index f382a64..875ee2c 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-28 10:56 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-28 10:56 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 681a7dc3c981b2c74e27617ebefb016a9e95de4f (commit)
via 535fe33f88c968bcc12005213fe5209829aef3eb (commit)
via 2d99eeb2ddf520c0d81c6a10f87c12ca4295343b (commit)
via 74a622ef4c5a7321f349dae452593b08c68a0494 (commit)
via f54463ccec9e82eedc37ff7a09b9379a7ad51a9e (commit)
via 8eb9572749ae2f73f4910b2cb4f55718f63bea55 (commit)
from 9211a5cad782e45386fd5af6524c12d15a12f1b6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 681a7dc3c981b2c74e27617ebefb016a9e95de4f
Merge: 9211a5cad782e45386fd5af6524c12d15a12f1b6 535fe33f88c968bcc12005213fe5209829aef3eb
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Thu Jan 28 11:56:45 2010 +0100
Merge remote branch 'gdb/master'
commit 535fe33f88c968bcc12005213fe5209829aef3eb
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 28 08:19:29 2010 +0000
Another -Wunused-function error in procfs.c (sparc-solaris)
* procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
Only define if SYS_syssgi is defined.
(remove_dbx_link_breakpoint): Delete declaration. Move up.
(dbx_link_addr, insert_dbx_link_bpt_in_file)
(insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
is itself defined.
commit 2d99eeb2ddf520c0d81c6a10f87c12ca4295343b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 28 00:00:03 2010 +0000
*** empty log message ***
commit 74a622ef4c5a7321f349dae452593b08c68a0494
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jan 27 23:00:05 2010 +0000
daily update
commit f54463ccec9e82eedc37ff7a09b9379a7ad51a9e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jan 27 20:53:22 2010 +0000
gdb/testsuite/
* gdb.base/break-interp.exp: Use [file tail $filename] to omit any
absolute directory pathnames in gdb.sum file.
commit 8eb9572749ae2f73f4910b2cb4f55718f63bea55
Author: Christopher Faylor <me+cygwin@cgf.cx>
Date: Wed Jan 27 19:57:52 2010 +0000
* windows-nat.c (windows_initialization_done): New variable.
(get_windows_debug_event): Issue error when process dies before completely
initializing.
(do_initial_windows_stuff): Set flag to indicate when we are done with the
initial steps of attaching to the child.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 18 ++
gdb/procfs.c | 258 +++++++++++++++---------------
gdb/testsuite/ChangeLog | 5 +
gdb/testsuite/gdb.base/break-interp.exp | 9 +-
gdb/version.in | 2 +-
gdb/windows-nat.c | 22 ++-
7 files changed, 176 insertions(+), 140 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index c8c4e8b..61fb4a2 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100127
+#define BFD_VERSION_DATE 20100128
#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 cbfe494..db65d6d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,21 @@
+2010-01-28 Joel Brobecker <brobecker@adacore.com>
+
+ Another -Wunused-function error in procfs.c (sparc-solaris)
+ * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
+ Only define if SYS_syssgi is defined.
+ (remove_dbx_link_breakpoint): Delete declaration. Move up.
+ (dbx_link_addr, insert_dbx_link_bpt_in_file)
+ (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
+ is itself defined.
+
+2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * windows-nat.c (windows_initialization_done): New variable.
+ (get_windows_debug_event): Issue error when process dies before
+ completely initializing.
+ (do_initial_windows_stuff): Set flag to indicate when we are done with
+ the initial steps of attaching to the child.
+
2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
* symtab.h (struct symbol <symtab>): New comment on NULL values.
diff --git a/gdb/procfs.c b/gdb/procfs.c
index c6f50d2..1dd39b2 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -3463,8 +3463,6 @@ static void do_detach (int signo);
static int register_gdb_signals (procinfo *, gdb_sigset_t *);
static void proc_trace_syscalls_1 (procinfo *pi, int syscallnum,
int entry_or_exit, int mode, int from_tty);
-static int insert_dbx_link_breakpoint (procinfo *pi);
-static void remove_dbx_link_breakpoint (void);
/* On mips-irix, we need to insert a breakpoint at __dbx_link during
the startup phase. The following two variables are used to record
@@ -3948,6 +3946,135 @@ syscall_is_lwp_create (procinfo *pi, int scall)
return 0;
}
+/* Remove the breakpoint that we inserted in __dbx_link().
+ Does nothing if the breakpoint hasn't been inserted or has already
+ been removed. */
+
+static void
+remove_dbx_link_breakpoint (void)
+{
+ if (dbx_link_bpt_addr == 0)
+ return;
+
+ if (deprecated_remove_raw_breakpoint (target_gdbarch, dbx_link_bpt) != 0)
+ warning (_("Unable to remove __dbx_link breakpoint."));
+
+ dbx_link_bpt_addr = 0;
+ dbx_link_bpt = NULL;
+}
+
+#ifdef SYS_syssgi
+/* Return the address of the __dbx_link() function in the file
+ refernced by ABFD by scanning its symbol table. Return 0 if
+ the symbol was not found. */
+
+static CORE_ADDR
+dbx_link_addr (bfd *abfd)
+{
+ long storage_needed;
+ asymbol **symbol_table;
+ long number_of_symbols;
+ long i;
+
+ storage_needed = bfd_get_symtab_upper_bound (abfd);
+ if (storage_needed <= 0)
+ return 0;
+
+ symbol_table = (asymbol **) xmalloc (storage_needed);
+ make_cleanup (xfree, symbol_table);
+
+ number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
+
+ for (i = 0; i < number_of_symbols; i++)
+ {
+ asymbol *sym = symbol_table[i];
+
+ if ((sym->flags & BSF_GLOBAL)
+ && sym->name != NULL && strcmp (sym->name, "__dbx_link") == 0)
+ return (sym->value + sym->section->vma);
+ }
+
+ /* Symbol not found, return NULL. */
+ return 0;
+}
+
+/* Search the symbol table of the file referenced by FD for a symbol
+ named __dbx_link(). If found, then insert a breakpoint at this location,
+ and return nonzero. Return zero otherwise. */
+
+static int
+insert_dbx_link_bpt_in_file (int fd, CORE_ADDR ignored)
+{
+ bfd *abfd;
+ long storage_needed;
+ CORE_ADDR sym_addr;
+
+ abfd = bfd_fdopenr ("unamed", 0, fd);
+ if (abfd == NULL)
+ {
+ warning (_("Failed to create a bfd: %s."), bfd_errmsg (bfd_get_error ()));
+ return 0;
+ }
+
+ if (!bfd_check_format (abfd, bfd_object))
+ {
+ /* Not the correct format, so we can not possibly find the dbx_link
+ symbol in it. */
+ bfd_close (abfd);
+ return 0;
+ }
+
+ sym_addr = dbx_link_addr (abfd);
+ if (sym_addr != 0)
+ {
+ /* Insert the breakpoint. */
+ dbx_link_bpt_addr = sym_addr;
+ dbx_link_bpt = deprecated_insert_raw_breakpoint (target_gdbarch, NULL,
+ sym_addr);
+ if (dbx_link_bpt == NULL)
+ {
+ warning (_("Failed to insert dbx_link breakpoint."));
+ bfd_close (abfd);
+ return 0;
+ }
+ bfd_close (abfd);
+ return 1;
+ }
+
+ bfd_close (abfd);
+ return 0;
+}
+
+/* If the given memory region MAP contains a symbol named __dbx_link,
+ insert a breakpoint at this location and return nonzero. Return
+ zero otherwise. */
+
+static int
+insert_dbx_link_bpt_in_region (struct prmap *map,
+ int (*child_func) (),
+ void *data)
+{
+ procinfo *pi = (procinfo *) data;
+
+ /* We know the symbol we're looking for is in a text region, so
+ only look for it if the region is a text one. */
+ if (map->pr_mflags & MA_EXEC)
+ return solib_mappings_callback (map, insert_dbx_link_bpt_in_file, pi);
+
+ return 0;
+}
+
+/* Search all memory regions for a symbol named __dbx_link. If found,
+ insert a breakpoint at its location, and return nonzero. Return zero
+ otherwise. */
+
+static int
+insert_dbx_link_breakpoint (procinfo *pi)
+{
+ return iterate_over_mappings (pi, NULL, pi, insert_dbx_link_bpt_in_region);
+}
+#endif
+
/*
* Function: target_wait
*
@@ -5608,133 +5735,6 @@ proc_find_memory_regions (int (*func) (CORE_ADDR,
find_memory_regions_callback);
}
-/* Remove the breakpoint that we inserted in __dbx_link().
- Does nothing if the breakpoint hasn't been inserted or has already
- been removed. */
-
-static void
-remove_dbx_link_breakpoint (void)
-{
- if (dbx_link_bpt_addr == 0)
- return;
-
- if (deprecated_remove_raw_breakpoint (target_gdbarch, dbx_link_bpt) != 0)
- warning (_("Unable to remove __dbx_link breakpoint."));
-
- dbx_link_bpt_addr = 0;
- dbx_link_bpt = NULL;
-}
-
-/* Return the address of the __dbx_link() function in the file
- refernced by ABFD by scanning its symbol table. Return 0 if
- the symbol was not found. */
-
-static CORE_ADDR
-dbx_link_addr (bfd *abfd)
-{
- long storage_needed;
- asymbol **symbol_table;
- long number_of_symbols;
- long i;
-
- storage_needed = bfd_get_symtab_upper_bound (abfd);
- if (storage_needed <= 0)
- return 0;
-
- symbol_table = (asymbol **) xmalloc (storage_needed);
- make_cleanup (xfree, symbol_table);
-
- number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
-
- for (i = 0; i < number_of_symbols; i++)
- {
- asymbol *sym = symbol_table[i];
-
- if ((sym->flags & BSF_GLOBAL)
- && sym->name != NULL && strcmp (sym->name, "__dbx_link") == 0)
- return (sym->value + sym->section->vma);
- }
-
- /* Symbol not found, return NULL. */
- return 0;
-}
-
-/* Search the symbol table of the file referenced by FD for a symbol
- named __dbx_link(). If found, then insert a breakpoint at this location,
- and return nonzero. Return zero otherwise. */
-
-static int
-insert_dbx_link_bpt_in_file (int fd, CORE_ADDR ignored)
-{
- bfd *abfd;
- long storage_needed;
- CORE_ADDR sym_addr;
-
- abfd = bfd_fdopenr ("unamed", 0, fd);
- if (abfd == NULL)
- {
- warning (_("Failed to create a bfd: %s."), bfd_errmsg (bfd_get_error ()));
- return 0;
- }
-
- if (!bfd_check_format (abfd, bfd_object))
- {
- /* Not the correct format, so we can not possibly find the dbx_link
- symbol in it. */
- bfd_close (abfd);
- return 0;
- }
-
- sym_addr = dbx_link_addr (abfd);
- if (sym_addr != 0)
- {
- /* Insert the breakpoint. */
- dbx_link_bpt_addr = sym_addr;
- dbx_link_bpt = deprecated_insert_raw_breakpoint (target_gdbarch, NULL,
- sym_addr);
- if (dbx_link_bpt == NULL)
- {
- warning (_("Failed to insert dbx_link breakpoint."));
- bfd_close (abfd);
- return 0;
- }
- bfd_close (abfd);
- return 1;
- }
-
- bfd_close (abfd);
- return 0;
-}
-
-/* If the given memory region MAP contains a symbol named __dbx_link,
- insert a breakpoint at this location and return nonzero. Return
- zero otherwise. */
-
-static int
-insert_dbx_link_bpt_in_region (struct prmap *map,
- int (*child_func) (),
- void *data)
-{
- procinfo *pi = (procinfo *) data;
-
- /* We know the symbol we're looking for is in a text region, so
- only look for it if the region is a text one. */
- if (map->pr_mflags & MA_EXEC)
- return solib_mappings_callback (map, insert_dbx_link_bpt_in_file, pi);
-
- return 0;
-}
-
-/* Search all memory regions for a symbol named __dbx_link. If found,
- insert a breakpoint at its location, and return nonzero. Return zero
- otherwise. */
-
-static int
-insert_dbx_link_breakpoint (procinfo *pi)
-{
- return iterate_over_mappings (pi, NULL, pi, insert_dbx_link_bpt_in_region);
-}
-
/*
* Function: mappingflags
*
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 65459bf..9a5338c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.base/break-interp.exp: Use [file tail $filename] to omit any
+ absolute directory pathnames in gdb.sum file.
+
2010-01-27 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/namespace-using.exp: Rename to nsusing.exp.
diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp
index d1c36ed..e628979 100644
--- a/gdb/testsuite/gdb.base/break-interp.exp
+++ b/gdb/testsuite/gdb.base/break-interp.exp
@@ -502,17 +502,18 @@ foreach ldprelink {NO YES} {
file mkdir $dir
set command "ldd $exec"
+ set test "ldd [file tail $exec]"
set result [catch "exec $command" output]
verbose -log "result of $command is $result"
verbose -log "output of $command is $output"
if {$result != 0 || $output == ""} {
- fail $command
+ fail $test
} else {
- pass $command
+ pass $test
}
# gdb testsuite will put there also needless -lm.
- set test "$command output contains libc"
+ set test "$test output contains libc"
set libc [regexp -all -inline -line {^.* => (/[^ ]+).*$} $output]
if {[llength $libc] == 0} {
fail $test
@@ -528,7 +529,7 @@ foreach ldprelink {NO YES} {
lappend dests $dest
}
- if {[prelink$binprelink "--dynamic-linker=$interp --ld-library-path=$dir $exec $interp [concat $dests]" $exec]
+ if {[prelink$binprelink "--dynamic-linker=$interp --ld-library-path=$dir $exec $interp [concat $dests]" [file tail $exec]]
&& [copy $interp_saved $interp]} {
test_ld $exec 1 [expr {$binsepdebug == "NO"}]
}
diff --git a/gdb/version.in b/gdb/version.in
index e409370..3d829a4 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.0.50.20100127-cvs
+7.0.50.20100128-cvs
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index f91ca32..2740366 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -123,6 +123,8 @@ enum
static uintptr_t dr[8];
static int debug_registers_changed;
static int debug_registers_used;
+
+static int windows_initialization_done;
#define DR6_CLEAR_VALUE 0xffff0ff0
/* The string sent by cygwin when it processes a signal.
@@ -1399,11 +1401,19 @@ get_windows_debug_event (struct target_ops *ops,
(unsigned) current_event.dwProcessId,
(unsigned) current_event.dwThreadId,
"EXIT_PROCESS_DEBUG_EVENT"));
- if (saw_create != 1)
- break;
- ourstatus->kind = TARGET_WAITKIND_EXITED;
- ourstatus->value.integer = current_event.u.ExitProcess.dwExitCode;
- retval = main_thread_id;
+ if (!windows_initialization_done)
+ {
+ target_terminal_ours ();
+ target_mourn_inferior ();
+ error (_("During startup program exited with code 0x%x."),
+ (unsigned int) current_event.u.ExitProcess.dwExitCode);
+ }
+ else if (saw_create == 1)
+ {
+ ourstatus->kind = TARGET_WAITKIND_EXITED;
+ ourstatus->value.integer = current_event.u.ExitProcess.dwExitCode;
+ retval = main_thread_id;
+ }
break;
case LOAD_DLL_DEBUG_EVENT:
@@ -1598,6 +1608,7 @@ do_initial_windows_stuff (struct target_ops *ops, DWORD pid, int attaching)
terminal_init_inferior_with_pgrp (pid);
target_terminal_inferior ();
+ windows_initialization_done = 0;
inf->stop_soon = STOP_QUIETLY;
while (1)
{
@@ -1610,6 +1621,7 @@ do_initial_windows_stuff (struct target_ops *ops, DWORD pid, int attaching)
break;
}
+ windows_initialization_done = 1;
inf->stop_soon = NO_STOP_QUIETLY;
stop_after_trap = 0;
return;
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-27 19:21 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-01-27 19:21 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 9211a5cad782e45386fd5af6524c12d15a12f1b6 (commit)
via 95d362d81293d1b5e0d7dd904764e3161bfbc591 (commit)
via 924db3030db8973e6f18d8581fea0b052aeb94c9 (commit)
via a51912f790e05f4c3f3b224aa2d73c27264cec49 (commit)
via 99c9c4ea840175aa3ac1201f31e9d01df88d3cfc (commit)
from cb4aafde6a4b62f6985bf920a37aa92425308cc0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 9211a5cad782e45386fd5af6524c12d15a12f1b6
Merge: cb4aafde6a4b62f6985bf920a37aa92425308cc0 95d362d81293d1b5e0d7dd904764e3161bfbc591
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Wed Jan 27 14:25:11 2010 -0500
Merge remote branch 'gdb/master'
commit 95d362d81293d1b5e0d7dd904764e3161bfbc591
Author: swagiaal <swagiaal>
Date: Wed Jan 27 18:04:56 2010 +0000
2010-01-27 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/namespace-using.exp: Rename to nsusing.exp.
* gdb.cp/namespace-using.cc: Rename to nsusing.cc.
commit 924db3030db8973e6f18d8581fea0b052aeb94c9
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Jan 27 16:43:26 2010 +0000
2010-01-27 Tristan Gingold <gingold@adacore.com>
* vms.h: Remove trailing spaces.
(struct hdr_struct): Remove unused hdr_c_cpr field.
(enum file_format_enum): Add comments.
* vms.c (vms_bfd_print_private_bfd_data): New function that
replaces the macro.
Remove trailing spaces.
* vms-misc.c: Improve comments.
(_bfd_vms_get_object_record): Also handle files without pads.
* vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
* vms-gsd.c (struct flagdescstruct): Make name field const.
(gsyflagdesc): Fix typo.
commit a51912f790e05f4c3f3b224aa2d73c27264cec49
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Jan 27 14:34:40 2010 +0000
Allow VL=1 on AVX scalar instructions.
gas/
2010-01-27 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (avxscalar): New.
(OPTION_MAVXSCALAR): Likewise.
(build_vex_prefix): Select vector_length for scalar instructions
based on avxscalar.
(md_longopts): Add OPTION_MAVXSCALAR.
(md_parse_option): Handle OPTION_MAVXSCALAR.
(md_show_usage): Add -mavxscalar=.
* doc/c-i386.texi: Document -mavxscalar=.
gas/testsuite/
2010-01-27 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/avx-scalar-intel.d: New.
* gas/i386/avx-scalar.d: Likewise.
* gas/i386/avx-scalar.s: Likewise.
* gas/i386/x86-64-avx-scalar-intel.d: Likewise.
* gas/i386/x86-64-avx-scalar.d: Likewise.
* gas/i386/x86-64-avx-scalar.s: Likewise.
* gas/i386/i386.exp: Run avx-scalar, avx-scalar-intel,
x86-64-avx-scalar and x86-64-avx-scalar-intel.
opcodes/
2010-01-27 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (XMScalar): New.
(EXdScalar): Likewise.
(EXqScalar): Likewise.
(EXqScalarS): Likewise.
(VexScalar): Likewise.
(EXdVexScalarS): Likewise.
(EXqVexScalarS): Likewise.
(XMVexScalar): Likewise.
(scalar_mode): Likewise.
(d_scalar_mode): Likewise.
(d_scalar_swap_mode): Likewise.
(q_scalar_mode): Likewise.
(q_scalar_swap_mode): Likewise.
(vex_scalar_mode): Likewise.
(vex_len_table): Duplcate entries for VEX_LEN_10_P_1,
VEX_LEN_10_P_3, VEX_LEN_11_P_1, VEX_LEN_11_P_3, VEX_LEN_2A_P_1,
VEX_LEN_2A_P_3, VEX_LEN_2C_P_3, VEX_LEN_2D_P_1, VEX_LEN_2E_P_0,
VEX_LEN_2E_P_2, VEX_LEN_2F_P_2, VEX_LEN_51_P_1, VEX_LEN_51_P_3,
VEX_LEN_52_P_1, VEX_LEN_53_P_1, VEX_LEN_58_P_1, VEX_LEN_58_P_3,
VEX_LEN_59_P_1, VEX_LEN_5A_P_1, VEX_LEN_5A_P_3, VEX_LEN_5C_P_1,
VEX_LEN_5C_P_3, VEX_LEN_5D_P_1, VEX_LEN_5D_P_3, VEX_LEN_5E_P_1,
VEX_LEN_5E_P_3, VEX_LEN_5F_P_1, VEX_LEN_5F_P_3, VEX_LEN_6E_P_2,
VEX_LEN_7E_P_1, VEX_LEN_7E_P_2, VEX_LEN_D6_P_2, VEX_LEN_C2_P_1,
VEX_LEN_C2_P_3, VEX_LEN_3A0A_P_2 and VEX_LEN_3A0B_P_2.
(vex_w_table): Update entries for VEX_W_10_P_1, VEX_W_10_P_3,
VEX_W_11_P_1, VEX_W_11_P_3, VEX_W_2E_P_0, VEX_W_2E_P_2,
VEX_W_2F_P_0, VEX_W_2F_P_2, VEX_W_51_P_1, VEX_W_51_P_3,
VEX_W_52_P_1, VEX_W_53_P_1, VEX_W_58_P_1, VEX_W_58_P_3,
VEX_W_59_P_1, VEX_W_59_P_3, VEX_W_5A_P_1, VEX_W_5A_P_3,
VEX_W_5C_P_1, VEX_W_5C_P_3, VEX_W_5D_P_1, VEX_W_5D_P_3,
VEX_W_5E_P_1, VEX_W_5E_P_3, VEX_W_5F_P_1, VEX_W_5F_P_3,
VEX_W_7E_P_1, VEX_W_D6_P_2 VEX_W_C2_P_1, VEX_W_C2_P_3,
VEX_W_3A0A_P_2 and VEX_W_3A0B_P_2.
(intel_operand_size): Handle d_scalar_mode, d_scalar_swap_mode,
q_scalar_mode, q_scalar_swap_mode.
(OP_XMM): Handle scalar_mode.
(OP_EX): Handle d_scalar_mode, d_scalar_swap_mode, q_scalar_mode
and q_scalar_swap_mode.
(OP_VEX): Handle vex_scalar_mode.
commit 99c9c4ea840175aa3ac1201f31e9d01df88d3cfc
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jan 27 12:44:07 2010 +0000
PR ld/11217
* elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
(ppc64_elf_setup_section_lists): Init them.
(ppc64_elf_next_toc_section): Don't partition multi-toc between .got
and .toc on the same input file.
(ppc64_elf_relocate_section): Correct GOT entry offset.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 23 +++
bfd/elf64-ppc.c | 26 +++-
bfd/vms-gsd.c | 4 +-
bfd/vms-hdr.c | 2 +-
bfd/vms-misc.c | 12 ++-
bfd/vms.c | 27 +++-
bfd/vms.h | 49 ++++--
gdb/testsuite/ChangeLog | 5 +
.../gdb.cp/{namespace-using.cc => nsusing.cc} | 0
.../gdb.cp/{namespace-using.exp => nsusing.exp} | 2 +-
opcodes/ChangeLog | 42 +++++
opcodes/i386-dis.c | 169 +++++++++++++++-----
12 files changed, 280 insertions(+), 81 deletions(-)
rename gdb/testsuite/gdb.cp/{namespace-using.cc => nsusing.cc} (100%)
rename gdb/testsuite/gdb.cp/{namespace-using.exp => nsusing.exp} (99%)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d882c17..ce2c0c6 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,26 @@
+2010-01-27 Tristan Gingold <gingold@adacore.com>
+
+ * vms.h: Remove trailing spaces.
+ (struct hdr_struct): Remove unused hdr_c_cpr field.
+ (enum file_format_enum): Add comments.
+ * vms.c (vms_bfd_print_private_bfd_data): New function that
+ replaces the macro.
+ Remove trailing spaces.
+ * vms-misc.c: Improve comments.
+ (_bfd_vms_get_object_record): Also handle files without pads.
+ * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
+ * vms-gsd.c (struct flagdescstruct): Make name field const.
+ (gsyflagdesc): Fix typo.
+
+2010-01-27 Alan Modra <amodra@gmail.com>
+
+ PR ld/11217
+ * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
+ (ppc64_elf_setup_section_lists): Init them.
+ (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
+ and .toc on the same input file.
+ (ppc64_elf_relocate_section): Correct GOT entry offset.
+
2010-01-26 Tristan Gingold <gingold@adacore.com>
* targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 4a46881..010f384 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -3732,6 +3732,8 @@ struct ppc_link_hash_table
/* Temp used when calculating TOC pointers. */
bfd_vma toc_curr;
+ bfd *toc_bfd;
+ asection *toc_first_sec;
/* Highest input section id. */
int top_id;
@@ -9612,6 +9614,8 @@ ppc64_elf_setup_section_lists (bfd *output_bfd,
htab->stub_group[id].toc_off = TOC_BASE_OFF;
elf_gp (output_bfd) = htab->toc_curr = ppc64_elf_toc (output_bfd);
+ htab->toc_bfd = NULL;
+ htab->toc_first_sec = NULL;
/* We can't use output_bfd->section_count here to find the top output
section index as some sections may have been removed, and
@@ -9646,11 +9650,21 @@ ppc64_elf_next_toc_section (struct bfd_link_info *info, asection *isec)
if (!htab->no_multi_toc)
{
- bfd_vma addr = isec->output_offset + isec->output_section->vma;
- bfd_vma off = addr - htab->toc_curr;
+ bfd_vma addr, off;
+ if (htab->toc_bfd != isec->owner)
+ {
+ htab->toc_bfd = isec->owner;
+ htab->toc_first_sec = isec;
+ }
+ addr = isec->output_offset + isec->output_section->vma;
+ off = addr - htab->toc_curr;
if (off + isec->size > 0x10000)
- htab->toc_curr = addr;
+ {
+ addr = (htab->toc_first_sec->output_offset
+ + htab->toc_first_sec->output_section->vma);
+ htab->toc_curr = addr;
+ }
elf_gp (isec->owner) = (htab->toc_curr
- elf_gp (isec->output_section->owner)
@@ -11745,10 +11759,8 @@ ppc64_elf_relocate_section (bfd *output_bfd,
if (off >= (bfd_vma) -2)
abort ();
- relocation = got->output_offset + off;
-
- /* TOC base (r2) is TOC start plus 0x8000. */
- addend = -TOC_BASE_OFF;
+ relocation = got->output_section->vma + got->output_offset + off;
+ addend = -(TOCstart + htab->stub_group[input_section->id].toc_off);
}
break;
diff --git a/bfd/vms-gsd.c b/bfd/vms-gsd.c
index ba75bbf..d0ffd78 100644
--- a/bfd/vms-gsd.c
+++ b/bfd/vms-gsd.c
@@ -204,7 +204,7 @@ vms_esecflag_by_name (struct sec_flags_struct *section_flags,
#if VMS_DEBUG
-struct flagdescstruct { char *name; flagword value; };
+struct flagdescstruct { const char *name; flagword value; };
static const struct flagdescstruct gpsflagdesc[] =
{
@@ -231,7 +231,7 @@ static const struct flagdescstruct gsyflagdesc[] =
{ "REL", GSY_S_M_REL },
{ "COMM", EGSY_S_V_COMM },
{ "VECEP", EGSY_S_V_VECEP },
- { "NORM", EGCY_S_V_NORM },
+ { "NORM", EGSY_S_V_NORM },
{ NULL, 0 }
};
diff --git a/bfd/vms-hdr.c b/bfd/vms-hdr.c
index 49e6809..4ac5b97 100644
--- a/bfd/vms-hdr.c
+++ b/bfd/vms-hdr.c
@@ -1397,7 +1397,7 @@ int
_bfd_vms_write_dbg (bfd *abfd ATTRIBUTE_UNUSED, int objtype ATTRIBUTE_UNUSED)
{
#if VMS_DEBUG
- _bfd_vms_debug (2, "vms_write_dbg (%p, objtype)\n", abfd, objtype);
+ _bfd_vms_debug (2, "vms_write_dbg (%p, %d)\n", abfd, objtype);
#endif
return 0;
diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c
index 2181658..47e5985 100644
--- a/bfd/vms-misc.c
+++ b/bfd/vms-misc.c
@@ -211,7 +211,7 @@ _bfd_vms_get_header_values (bfd * abfd ATTRIBUTE_UNUSED,
can view and change the attributes of a file. Changing from
'variable length' to 'fixed length, 512 bytes' reveals the
record size at the first 2 bytes of every record. The same
- happens during the transfer of object files from VMS to Unix,
+ may happen during the transfer of object files from VMS to Unix,
at least with UCX, the DEC implementation of TCP/IP.
The VMS format repeats the size at bytes 2 & 3 of every record.
@@ -355,6 +355,8 @@ _bfd_vms_get_object_record (bfd *abfd)
test_len = 0;
else
{
+ int off = 0;
+
/* See _bfd_vms_get_first_record. */
test_len = 6;
@@ -366,10 +368,16 @@ _bfd_vms_get_object_record (bfd *abfd)
bfd_set_error (bfd_error_file_truncated);
return -1;
}
+ /* Alignment byte may be present or not. This is not easy to
+ detect but all object record types are not 0 (on Alpha VMS).
+ We also hope that pad byte is 0. */
+ if (PRIV (vms_buf)[0])
+ off = 1;
}
/* Read the record header */
- if (bfd_bread (PRIV (vms_buf), test_len, abfd) != test_len)
+ if (bfd_bread (PRIV (vms_buf) + off, test_len - off, abfd)
+ != test_len - off)
{
bfd_set_error (bfd_error_file_truncated);
return -1;
diff --git a/bfd/vms.c b/bfd/vms.c
index a2886dd..176705e 100644
--- a/bfd/vms.c
+++ b/bfd/vms.c
@@ -90,7 +90,6 @@ static bfd_boolean vms_set_section_contents
#define vms_get_synthetic_symtab _bfd_nodynamic_get_synthetic_symtab
#define vms_bfd_copy_private_bfd_data _bfd_generic_bfd_copy_private_bfd_data
-#define vms_bfd_print_private_bfd_data _bfd_generic_bfd_print_private_bfd_data
#define vms_bfd_free_cached_info _bfd_generic_bfd_free_cached_info
#define vms_bfd_copy_private_section_data _bfd_generic_bfd_copy_private_section_data
#define vms_bfd_copy_private_symbol_data _bfd_generic_bfd_copy_private_symbol_data
@@ -195,7 +194,7 @@ fill_section_ptr (struct bfd_hash_entry *entry, void *sections)
}
else if (sec == (unsigned long)-1)
sym->section = &bfd_und_section;
-
+
return TRUE;
}
@@ -516,11 +515,11 @@ vms_convert_to_var (char *vms_filename)
fab.fab$b_fac = FAB$M_PUT;
fab.fab$l_fop = FAB$M_ESC;
fab.fab$l_ctx = RME$C_SETRFM;
-
+
sys$open (&fab);
-
+
fab.fab$b_rfm = FAB$C_VAR;
-
+
sys$modify (&fab);
sys$close (&fab);
}
@@ -972,7 +971,7 @@ vms_slurp_reloc_table (bfd *abfd, asection *section, asymbol **symbols)
static long
vms_get_reloc_upper_bound (bfd *abfd ATTRIBUTE_UNUSED, asection *section)
{
- return (section->reloc_count + 1) * sizeof (arelent *);
+ return (section->reloc_count + 1) * sizeof (arelent *);
}
/* Convert relocations from VMS (external) form into BFD internal
@@ -1411,6 +1410,22 @@ vms_set_section_contents (bfd * abfd,
memcpy (section->contents + offset, location, (size_t) count);
return TRUE;
}
+
+static bfd_boolean
+vms_bfd_print_private_bfd_data (bfd *abfd, void *ptr)
+{
+ FILE *file = (FILE *)ptr;
+
+ fprintf (file, _("structure level: %d\n"), PRIV(hdr_data.hdr_b_strlvl));
+ fprintf (file, _("module name : %s\n"), PRIV(hdr_data.hdr_t_name));
+ fprintf (file, _("module version : %s\n"), PRIV(hdr_data.hdr_t_version));
+ fprintf (file, _("module date : %s\n"), PRIV(hdr_data.hdr_t_date));
+ fprintf (file, _("language name : %s\n"), PRIV(hdr_data.hdr_c_lnm));
+ fprintf (file, _("source files : %s\n"), PRIV(hdr_data.hdr_c_src));
+ fprintf (file, _("title : %s\n"), PRIV(hdr_data.hdr_c_ttl));
+
+ return TRUE;
+}
\f
const bfd_target vms_alpha_vec =
{
diff --git a/bfd/vms.h b/bfd/vms.h
index 4bde72b..8733e4f 100644
--- a/bfd/vms.h
+++ b/bfd/vms.h
@@ -544,10 +544,10 @@ extern int _bfd_vms_decode_relocs
#define EOBJ_S_C_ETBT 13 /* EVAX Taceback information record. */
#define EOBJ_S_C_MAXRECTYP 13 /* EVAX Lst assigned record type. */
-#define OBJ_S_K_SUBTYP 1
-#define OBJ_S_C_SUBTYP 1
-#define EOBJ_S_K_SUBTYP 4
-#define EOBJ_S_C_SUBTYP 4
+#define OBJ_S_K_SUBTYP 1
+#define OBJ_S_C_SUBTYP 1
+#define EOBJ_S_K_SUBTYP 4
+#define EOBJ_S_C_SUBTYP 4
#define OBJ_S_C_MAXRECSIZ 2048 /* Maximu legal record size. */
#define EOBJ_S_C_MAXRECSIZ 8192 /* Maximu legal record size. */
#define OBJ_S_C_STRLVL 0 /* Structre level. */
@@ -562,18 +562,18 @@ extern int _bfd_vms_decode_relocs
#define EVAX_OFFSET 256 /* Type ofset for EVAX codes in switch. */
-/* Miscellaneous definitions. */
+/* Miscellaneous definitions. */
-#if __GNUC__
-typedef unsigned long long uquad;
-#else
-typedef unsigned long uquad;
-#endif
+#if __GNUC__
+typedef unsigned long long uquad;
+#else
+typedef unsigned long uquad;
+#endif
#define MAX_OUTREC_SIZE 4096
#define MIN_OUTREC_LUFT 64
-/* VMS module header. */
+/* VMS module header. */
struct hdr_struct
{
@@ -587,7 +587,6 @@ struct hdr_struct
char *hdr_c_lnm;
char *hdr_c_src;
char *hdr_c_ttl;
- char *hdr_c_cpr;
};
#define EMH_S_W_HDRTYP 4
@@ -676,8 +675,22 @@ struct eom_struct
#define DBG_S_L_DMT_PSECT_LENGTH 4
#define DBG_S_C_DMT_PSECT_SIZE 8
+/* File format. */
+enum file_format_enum
+ {
+ /* Not yet known. */
+ FF_UNKNOWN,
+
+ /* Unix format. Each record is preceeded by the record length,
+ on 2 bytes. */
+ FF_FOREIGN,
+
+ /* Native (=VMS) format. The file only contains the content of the
+ records. This may also appear on Unix, depending on which tool
+ was used to transfer files. */
+ FF_NATIVE
+ };
-enum file_format_enum { FF_UNKNOWN, FF_FOREIGN, FF_NATIVE };
enum file_type_enum { FT_UNKNOWN, FT_MODULE, FT_IMAGE };
typedef struct vms_symbol_struct
@@ -840,7 +853,7 @@ struct vms_section_data_struct
#define vms_section_data(sec) \
((struct vms_section_data_struct *)sec->used_by_bfd)
-
+
struct evax_private_udata_struct
{
asymbol *bsym;
@@ -850,8 +863,8 @@ struct evax_private_udata_struct
};
#define SECTION_NAME_TEMPLATE "__SEC__%d"
-
-#if VMS_DEBUG
+
+#if VMS_DEBUG
extern void _bfd_vms_debug (int, char *, ...) ATTRIBUTE_PRINTF_2;
extern void _bfd_hexdump (int, unsigned char *, int, int);
@@ -859,8 +872,8 @@ extern void _bfd_hexdump (int, unsigned char *, int, int);
#define vms_debug2(X) _bfd_vms_debug X
#else
#define vms_debug2(X)
-#endif
-
+#endif
+
extern struct bfd_hash_entry * _bfd_vms_hash_newfunc (struct bfd_hash_entry *, struct bfd_hash_table *, const char *);
extern void _bfd_vms_get_header_values (bfd *, unsigned char *, int *, int *);
extern int _bfd_vms_get_record (bfd *abf);
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 667154d..65459bf 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-27 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * gdb.cp/namespace-using.exp: Rename to nsusing.exp.
+ * gdb.cp/namespace-using.cc: Rename to nsusing.cc.
+
2010-01-26 Tom Tromey <tromey@redhat.com>
PR exp/7643:
diff --git a/gdb/testsuite/gdb.cp/namespace-using.cc b/gdb/testsuite/gdb.cp/nsusing.cc
similarity index 100%
rename from gdb/testsuite/gdb.cp/namespace-using.cc
rename to gdb/testsuite/gdb.cp/nsusing.cc
diff --git a/gdb/testsuite/gdb.cp/namespace-using.exp b/gdb/testsuite/gdb.cp/nsusing.exp
similarity index 99%
rename from gdb/testsuite/gdb.cp/namespace-using.exp
rename to gdb/testsuite/gdb.cp/nsusing.exp
index 38d65a3..ef0237d 100644
--- a/gdb/testsuite/gdb.cp/namespace-using.exp
+++ b/gdb/testsuite/gdb.cp/nsusing.exp
@@ -20,7 +20,7 @@ if $tracelevel then {
set prms_id 0
set bug_id 0
-set testfile namespace-using
+set testfile nsusing
set srcfile ${testfile}.cc
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 3383ae9..f382a64 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,45 @@
+2010-01-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i386-dis.c (XMScalar): New.
+ (EXdScalar): Likewise.
+ (EXqScalar): Likewise.
+ (EXqScalarS): Likewise.
+ (VexScalar): Likewise.
+ (EXdVexScalarS): Likewise.
+ (EXqVexScalarS): Likewise.
+ (XMVexScalar): Likewise.
+ (scalar_mode): Likewise.
+ (d_scalar_mode): Likewise.
+ (d_scalar_swap_mode): Likewise.
+ (q_scalar_mode): Likewise.
+ (q_scalar_swap_mode): Likewise.
+ (vex_scalar_mode): Likewise.
+ (vex_len_table): Duplcate entries for VEX_LEN_10_P_1,
+ VEX_LEN_10_P_3, VEX_LEN_11_P_1, VEX_LEN_11_P_3, VEX_LEN_2A_P_1,
+ VEX_LEN_2A_P_3, VEX_LEN_2C_P_3, VEX_LEN_2D_P_1, VEX_LEN_2E_P_0,
+ VEX_LEN_2E_P_2, VEX_LEN_2F_P_2, VEX_LEN_51_P_1, VEX_LEN_51_P_3,
+ VEX_LEN_52_P_1, VEX_LEN_53_P_1, VEX_LEN_58_P_1, VEX_LEN_58_P_3,
+ VEX_LEN_59_P_1, VEX_LEN_5A_P_1, VEX_LEN_5A_P_3, VEX_LEN_5C_P_1,
+ VEX_LEN_5C_P_3, VEX_LEN_5D_P_1, VEX_LEN_5D_P_3, VEX_LEN_5E_P_1,
+ VEX_LEN_5E_P_3, VEX_LEN_5F_P_1, VEX_LEN_5F_P_3, VEX_LEN_6E_P_2,
+ VEX_LEN_7E_P_1, VEX_LEN_7E_P_2, VEX_LEN_D6_P_2, VEX_LEN_C2_P_1,
+ VEX_LEN_C2_P_3, VEX_LEN_3A0A_P_2 and VEX_LEN_3A0B_P_2.
+ (vex_w_table): Update entries for VEX_W_10_P_1, VEX_W_10_P_3,
+ VEX_W_11_P_1, VEX_W_11_P_3, VEX_W_2E_P_0, VEX_W_2E_P_2,
+ VEX_W_2F_P_0, VEX_W_2F_P_2, VEX_W_51_P_1, VEX_W_51_P_3,
+ VEX_W_52_P_1, VEX_W_53_P_1, VEX_W_58_P_1, VEX_W_58_P_3,
+ VEX_W_59_P_1, VEX_W_59_P_3, VEX_W_5A_P_1, VEX_W_5A_P_3,
+ VEX_W_5C_P_1, VEX_W_5C_P_3, VEX_W_5D_P_1, VEX_W_5D_P_3,
+ VEX_W_5E_P_1, VEX_W_5E_P_3, VEX_W_5F_P_1, VEX_W_5F_P_3,
+ VEX_W_7E_P_1, VEX_W_D6_P_2 VEX_W_C2_P_1, VEX_W_C2_P_3,
+ VEX_W_3A0A_P_2 and VEX_W_3A0B_P_2.
+ (intel_operand_size): Handle d_scalar_mode, d_scalar_swap_mode,
+ q_scalar_mode, q_scalar_swap_mode.
+ (OP_XMM): Handle scalar_mode.
+ (OP_EX): Handle d_scalar_mode, d_scalar_swap_mode, q_scalar_mode
+ and q_scalar_swap_mode.
+ (OP_VEX): Handle vex_scalar_mode.
+
2010-01-24 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (prefix_table): Remove trailing { Bad_Opcode }.
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 02b0f26..e02912d 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -334,6 +334,7 @@ fetch_data (struct disassemble_info *info, bfd_byte *addr)
#define MX { OP_MMX, 0 }
#define XM { OP_XMM, 0 }
+#define XMScalar { OP_XMM, scalar_mode }
#define XMM { OP_XMM, xmm_mode }
#define EM { OP_EM, v_mode }
#define EMS { OP_EM, v_swap_mode }
@@ -341,8 +342,11 @@ fetch_data (struct disassemble_info *info, bfd_byte *addr)
#define EMx { OP_EM, x_mode }
#define EXw { OP_EX, w_mode }
#define EXd { OP_EX, d_mode }
+#define EXdScalar { OP_EX, d_scalar_mode }
#define EXdS { OP_EX, d_swap_mode }
#define EXq { OP_EX, q_mode }
+#define EXqScalar { OP_EX, q_scalar_mode }
+#define EXqScalarS { OP_EX, q_scalar_swap_mode }
#define EXqS { OP_EX, q_swap_mode }
#define EXx { OP_EX, x_mode }
#define EXxS { OP_EX, x_swap_mode }
@@ -362,17 +366,21 @@ fetch_data (struct disassemble_info *info, bfd_byte *addr)
#define Vex_2src_2 { OP_Vex_2src_2, 0 }
#define Vex { OP_VEX, vex_mode }
+#define VexScalar { OP_VEX, vex_scalar_mode }
#define Vex128 { OP_VEX, vex128_mode }
#define Vex256 { OP_VEX, vex256_mode }
#define VexI4 { VEXI4_Fixup, 0}
#define EXdVex { OP_EX_Vex, d_mode }
#define EXdVexS { OP_EX_Vex, d_swap_mode }
+#define EXdVexScalarS { OP_EX_Vex, d_scalar_swap_mode }
#define EXqVex { OP_EX_Vex, q_mode }
#define EXqVexS { OP_EX_Vex, q_swap_mode }
+#define EXqVexScalarS { OP_EX_Vex, q_scalar_swap_mode }
#define EXVexW { OP_EX_VexW, x_mode }
#define EXdVexW { OP_EX_VexW, d_mode }
#define EXqVexW { OP_EX_VexW, q_mode }
#define XMVex { OP_XMM_Vex, 0 }
+#define XMVexScalar { OP_XMM_Vex, scalar_mode }
#define XMVexW { OP_XMM_VexW, 0 }
#define XMVexI4 { OP_REG_VexI4, x_mode }
#define PCLMUL { PCLMUL_Fixup, 0 }
@@ -461,6 +469,19 @@ enum
/* operand size depends on the VEX.W bit. */
vex_w_dq_mode,
+ /* scalar, ignore vector length. */
+ scalar_mode,
+ /* like d_mode, ignore vector length. */
+ d_scalar_mode,
+ /* like d_swap_mode, ignore vector length. */
+ d_scalar_swap_mode,
+ /* like q_mode, ignore vector length. */
+ q_scalar_mode,
+ /* like q_swap_mode, ignore vector length. */
+ q_scalar_swap_mode,
+ /* like vex_mode, ignore vector length. */
+ vex_scalar_mode,
+
es_reg,
cs_reg,
ss_reg,
@@ -8047,21 +8068,25 @@ static const struct dis386 vex_len_table[][2] = {
/* VEX_LEN_10_P_1 */
{
{ VEX_W_TABLE (VEX_W_10_P_1) },
+ { VEX_W_TABLE (VEX_W_10_P_1) },
},
/* VEX_LEN_10_P_3 */
{
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-27 8:08 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-27 8:08 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via cb4aafde6a4b62f6985bf920a37aa92425308cc0 (commit)
via 8f49978d16ba29fc5c7eb6c764812411167fdc08 (commit)
via 45c2879ad23890abd8d0ea2664a4925bf8bda7bb (commit)
via cad719f8008fda5d0f3604033a2ad25c51d08ec1 (commit)
via 816653f26d7c4a501a9f5cfd94771ad8df872c93 (commit)
via 5e1c9ca0b4491ddf370cbf84336d31bf4eb816ff (commit)
via 053b2906e5af1a937e2734d2b4d569bffe0a9847 (commit)
from e87f98894c0d21f1d6f0b26950db501544844198 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit cb4aafde6a4b62f6985bf920a37aa92425308cc0
Merge: e87f98894c0d21f1d6f0b26950db501544844198 8f49978d16ba29fc5c7eb6c764812411167fdc08
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Wed Jan 27 09:08:20 2010 +0100
Merge remote branch 'gdb/master'
commit 8f49978d16ba29fc5c7eb6c764812411167fdc08
Author: Doug Evans <dje@google.com>
Date: Wed Jan 27 00:32:08 2010 +0000
* solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
commit 45c2879ad23890abd8d0ea2664a4925bf8bda7bb
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jan 27 00:15:59 2010 +0000
gdb/
* symtab.h (struct symbol <symtab>): New comment on NULL values.
commit cad719f8008fda5d0f3604033a2ad25c51d08ec1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 27 00:00:03 2010 +0000
*** empty log message ***
commit 816653f26d7c4a501a9f5cfd94771ad8df872c93
Author: Doug Evans <dje@google.com>
Date: Tue Jan 26 23:56:53 2010 +0000
* breakpoint.c (bpstat_stop_status): Delete useless code.
commit 5e1c9ca0b4491ddf370cbf84336d31bf4eb816ff
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jan 26 23:40:12 2010 +0000
gdb/
* printcmd.c (display_uses_solib_p): Remove variable section. Access
objfile via SYMBOL_SYMTAB.
commit 053b2906e5af1a937e2734d2b4d569bffe0a9847
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jan 26 23:00:05 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 15 +++++++++++++++
gdb/breakpoint.c | 1 -
gdb/printcmd.c | 5 ++---
gdb/solib-svr4.c | 1 +
gdb/symtab.h | 3 ++-
gdb/version.in | 2 +-
7 files changed, 22 insertions(+), 7 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 478f082..c8c4e8b 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100126
+#define BFD_VERSION_DATE 20100127
#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 e891ecb..cbfe494 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,18 @@
+2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symtab.h (struct symbol <symtab>): New comment on NULL values.
+
+2010-01-27 Doug Evans <dje@google.com>
+
+ * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
+
+ * breakpoint.c (bpstat_stop_status): Delete useless code.
+
+2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * printcmd.c (display_uses_solib_p): Remove variable section. Access
+ objfile via SYMBOL_SYMTAB.
+
2010-01-26 Tom Tromey <tromey@redhat.com>
PR exp/7643:
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index d404ee7..0d55862 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3668,7 +3668,6 @@ bpstat_stop_status (struct address_space *aspace,
}
bs->next = NULL; /* Terminate the chain */
- bs = root_bs->next; /* Re-grab the head of the chain */
/* If we aren't stopping, the value of some hardware watchpoint may
not have changed, but the intermediate memory locations we are
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 88db08b..c8cb35c 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1888,15 +1888,14 @@ display_uses_solib_p (const struct display *d,
{
const struct block *const block = elts[i + 1].block;
const struct symbol *const symbol = elts[i + 2].symbol;
- const struct obj_section *const section =
- SYMBOL_OBJ_SECTION (symbol);
if (block != NULL
&& solib_contains_address_p (solib,
block->startaddr))
return 1;
- if (section && section->objfile == solib->objfile)
+ /* SYMBOL_OBJ_SECTION (symbol) may be NULL. */
+ if (SYMBOL_SYMTAB (symbol)->objfile == solib->objfile)
return 1;
}
endpos -= oplen;
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 826f8bf..e497364 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -86,6 +86,7 @@ static char *solib_break_names[] =
"_r_debug_state",
"_dl_debug_state",
"rtld_db_dlactivity",
+ "__dl_rtld_db_dlactivity",
"_rtld_debug_state",
NULL
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 8759732..167dfe8 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -554,7 +554,8 @@ struct symbol
struct type *type;
/* The symbol table containing this symbol. This is the file
- associated with LINE. */
+ associated with LINE. It can be NULL during symbols read-in but it is
+ never NULL during normal operation. */
struct symtab *symtab;
/* Domain code. */
diff --git a/gdb/version.in b/gdb/version.in
index b7a07e6..e409370 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.0.50.20100126-cvs
+7.0.50.20100127-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-26 18:58 swagiaal
0 siblings, 0 replies; 120+ messages in thread
From: swagiaal @ 2010-01-26 18:58 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via e87f98894c0d21f1d6f0b26950db501544844198 (commit)
via 5a9097696a246ab71af8822bf8ad9238ff485285 (commit)
via f03d5cd98559bdc7ee93b72383d9e50999310a97 (commit)
via fc7cf6aa5bed82acd2e5e1e98b6f9d7fd387011d (commit)
via 4fe85d4b42b8264f9b198d48ed4c4482bef1ff4a (commit)
via 24deffe39b6bc8259fc73e85d2436fce095100f0 (commit)
via 203b2d5b68c811acb75ea441c8f10d59e1570fcd (commit)
via 11f60e1da57901a3ba12581b07ae6faa66afc6ca (commit)
via 8f4073e06849c64c06bdac0dcf80f096825fe951 (commit)
via 5545322727e9d632d2d5cb9c0ac2f6fd77aec73c (commit)
via 37a2e813957ef397053d79e75ba477c8462cc21a (commit)
via 056a537a5a2c8ab1836c1c6bda90a172f97b02bd (commit)
via 30bd1069e95fa1560a86ec6cbc4b6d78d81196ea (commit)
via fcf21c0c619f94850780fde4d205bde0bf16d7ae (commit)
via 80d0585afd753548fba97825ba6e83037749d4e4 (commit)
via ece06599528483eaa3eb38dc9cea68b00a2bef79 (commit)
via 898322942d6f53ae3f6ce4991a1192fc1d5c17f8 (commit)
via 6327d2d393ca4ea339b026a85f02127967e08187 (commit)
via 54f4765ed22bef44818de32d63d391f303edd7a9 (commit)
via 589a773e697c62b97c694c3dcee2363e1bdf7784 (commit)
via 9cc6bf072cef2e40990041ad725194ece2d37767 (commit)
via 80e71168becc4c8afbbc7b241ad75d44b19cc222 (commit)
via c9233786d875be79376fc9f388ccc6f8516630f9 (commit)
via 6a2f9065d400a11ae0e95ecf4f4da7d32d6275a3 (commit)
via 49ac208985e0f2f87f79717055ea46fc9f1771e8 (commit)
via a9cdae90b60c0ec9b7504a4e804a07eeb073597f (commit)
via 7e64c08e6b14c38afb838a6de36287b8e5b3f656 (commit)
via c759727aeb822d7ffdbd4180056af3138e660917 (commit)
via 91511fc320ebf301bed82d9f3af4eaa72269dab7 (commit)
via 497a1155f50abc8592d113e738a689b8c0272ba9 (commit)
via dc782272243c29b976b1f3d37de277869a8a4ad5 (commit)
via 0d44d98d03f83e5a32a3f09d503e65d45f24362c (commit)
via b0b59f5b7fd3fc01021c4a03be248aaad1079672 (commit)
via 857c8434a19bc8d0dab4b9d07fd43c669955f627 (commit)
via 0cfb39985d99e0e0954d83b6f4723ebf750427e2 (commit)
via be9e2037ab344da5f2b8f1521855a4636e9ec05f (commit)
via aabc2f4e201ad84e5330e8a383d9c376d8e87e57 (commit)
via 58b79b9093d575681b31d0947eea73132ca58408 (commit)
via 7f0e6396a16d31ad830f7546531b78281ef07e01 (commit)
via 13fcddfac850e443710bb8cca4508bea8b5fa28a (commit)
via be72b57d303e00518650985ba69e74fc4bf055a8 (commit)
via 56ff1af56823251daaa909753c00911cd792a876 (commit)
via bfc7edb055a61bd8cf5dee7cefab1313bdc98ea1 (commit)
via 37d905869e53c9f8e0f02cc90faf6a0fad704cdf (commit)
via b8db8cd4ffe6f016974c93e8e56522ea07e95d12 (commit)
via 31613b2bbecb72f9f24dd8e5701ad9d95fafd1cf (commit)
via 28b539c38d2d4a36628da04e3a5a5ffbddca5c34 (commit)
via 6a5763e0fc361b96de5692a7b8c78dae8d7f33d5 (commit)
via 5b206ef0371b141649383a713ce4751a527cd591 (commit)
via 66952a1f7e2e39bd972113890f0e117687f653e1 (commit)
via 2c1097315ca26a9436ec027c0120d93966a36f8b (commit)
via b3b4bbb68c5a77e017ceaeb49b9fed4579068476 (commit)
from 1f3ff38c22ae7fb1dfc11dab847c123da2c68b1e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit e87f98894c0d21f1d6f0b26950db501544844198
Merge: 1f3ff38c22ae7fb1dfc11dab847c123da2c68b1e 5a9097696a246ab71af8822bf8ad9238ff485285
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Tue Jan 26 14:02:04 2010 -0500
Merge remote branch 'gdb/master'
commit 5a9097696a246ab71af8822bf8ad9238ff485285
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jan 26 16:53:39 2010 +0000
gdb
PR exp/7643:
* eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
coerce_array on result.
gdb/testsuite
PR exp/7643:
* gdb.base/printcmds.exp (test_print_string_constants): Remove
setup_kfail.
commit f03d5cd98559bdc7ee93b72383d9e50999310a97
Author: swagiaal <swagiaal>
Date: Tue Jan 26 16:47:34 2010 +0000
2010-01-14 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/nsrecurs.exp: New test.
* gdb.cp/nsrecurs.cc: New test program.
* gdb.cp/nsstress.exp: New test.
* gdb.cp/nsstress.cc: New test program.
* gdb.cp/nsdecl.exp: New test.
* gdb.cp/nsdecl.cc: New test program.
2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
* cp-namespace.c (cp_lookup_symbol_namespace): Added
search_parent argument.
(cp_add_using): Initialize 'searched' field.
(reset_directive_searched): New function.
* cp-support.h: Add 'searched' field to using_direct struct.
(cp_lookup_symbol_imports): Ditto.
* cp-namespace.c (cp_lookup_symbol_imports): Ditto.
Perform recursive search.
Implement non parent search.
* valops.c (value_maybe_namespace_elt): Updated.
commit fc7cf6aa5bed82acd2e5e1e98b6f9d7fd387011d
Author: swagiaal <swagiaal>
Date: Tue Jan 26 15:48:25 2010 +0000
2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/namespace-using.exp: Add test for printing of namespaces
imported into file scope.
Marked test as xfail.
* gdb.cp/namespace-using.cc (marker5): New function.
* gdb.cp/shadow.exp: New test.
* gdb.cp/shadow.cc: New test program.
* gdb.cp/nsimport.exp: New test.
* gdb.cp/nsimport.cc: New test program.
2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
PR gdb/10929:
* dwarf2read.c (read_lexical_block_scope): Create blocks for
scopes which contain using directives even if they contain no
declarations.
* symtab.c (lookup_symbol_aux): Pass lowest level block to
la_lookup_symbol_nonlocal.
* cp-namespace.c (cp_lookup_symbol_nonlocal): call
cp_lookup_symbol_namespace.
(cp_lookup_symbol_namespace): Perform an import lookup at every
block level.
(cp_lookup_symbol_imports): New function.
(cp_lookup_symbol_in_namespace): New function.
commit 4fe85d4b42b8264f9b198d48ed4c4482bef1ff4a
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Jan 26 13:42:26 2010 +0000
2010-01-26 Tristan Gingold <gingold@adacore.com>
* targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
(bfd_target): Add _bfd_write_ar_hdr_fn field.
* archive.c (is_bsd44_extended_name): New macro.
(_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
(bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
name.
(_bfd_archive_bsd44_construct_extended_name_table): New function.
(_bfd_generic_write_ar_hdr): Ditto.
(_bfd_bsd44_write_ar_hdr): Ditto.
(_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
(bsd_write_armap): Adjust firstreal computation.
* libbfd-in.h (struct areltdata): Add extra_size field.
(_bfd_generic_write_ar_hdr): Add prototype.
(_bfd_bsd44_write_ar_hdr): Ditto.
(_bfd_write_ar_hdr): Define.
(_bfd_noarchive_write_ar_hdr): Ditto.
(_bfd_archive_bsd_write_ar_hdr): Ditto.
(_bfd_archive_coff_write_ar_hdr): Ditto.
(_bfd_archive_bsd44_slurp_armap): Ditto.
(_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
(_bfd_archive_bsd44_construct_extended_name_table): New prototype.
(_bfd_archive_bsd44_truncate_arname): Ditto.
(_bfd_archive_bsd44_write_armap): Ditto.
(_bfd_archive_bsd44_read_ar_hdr): Ditto.
(_bfd_archive_bsd44_write_ar_hdr): Ditto.
(_bfd_archive_bsd44_openr_next_archived_file): Ditto.
(_bfd_archive_bsd44_get_elt_at_index): Ditto.
(_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
(_bfd_archive_bsd44_update_armap_timestamp): Ditto.
* libbfd.h: Regenerate.
* oasys.c (oasys_write_ar_hdr): Define.
* libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
* ieee.c (ieee_write_ar_hdr): Define.
* elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
* coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
(bfd_pmac_xcoff_backend_data): Ditto.
* coff64-rs6000.c (rs6000coff64_vec): Ditto.
(bfd_xcoff_aix5_backend_data): Ditto.
* coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
* aout-target.h (MY_write_ar_hdr): Define it if not defined.
* aout-tic30.c (MY_write_ar_hdr): Ditto.
* mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
(bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
(bfd_mach_o_construct_extended_name_table)
(bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
(bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
(bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
* mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
(bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
(bfd_mach_o_construct_extended_name_table)
(bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
(bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
(bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
* bfd-in2.h: Regenerate.
commit 24deffe39b6bc8259fc73e85d2436fce095100f0
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jan 26 13:21:35 2010 +0000
Properly check undefined symbols when gc_sections is active.
bfd/
2010-01-26 Alan Modra <amodra@gmail.com>
H.J. Lu <hongjiu.lu@intel.com>
PR ld/11218
* elflink.c (elf_link_output_extsym): Do not ignore undefined
symbols with ref_regular set when gc_sections is active.
ld/testsuite/
2010-01-26 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11218
* ld-gc/dummy.s: New.
* ld-gc/pr11218-1.c: Likewise.
* ld-gc/pr11218-2.c: Likewise.
* ld-gc/pr11218.d: Likewise.
commit 203b2d5b68c811acb75ea441c8f10d59e1570fcd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 26 00:00:03 2010 +0000
*** empty log message ***
commit 11f60e1da57901a3ba12581b07ae6faa66afc6ca
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 25 23:00:05 2010 +0000
daily update
commit 8f4073e06849c64c06bdac0dcf80f096825fe951
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jan 25 19:31:23 2010 +0000
gdb
PR gdb/11049:
* c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
result.
gdb/testsuite
PR gdb/11049:
* gdb.base/printcmds.exp (test_print_typedef_arrays): Add test
with "set print null-stop on".
commit 5545322727e9d632d2d5cb9c0ac2f6fd77aec73c
Author: Joern Rennecke <joern.rennecke@arc.com>
Date: Mon Jan 25 18:06:22 2010 +0000
gcc PR libstdc++/36101, gcc PR libstdc++/42813
* configure.ac (bootstrap_target_libs): Make inclusion of
target-libgomp conditional on libgomb being in target_configdirs.
* configure: Regenerate.
commit 37a2e813957ef397053d79e75ba477c8462cc21a
Author: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Date: Mon Jan 25 13:22:01 2010 +0000
* configure.ac: Only use host_os part when disabling TUI on osf.
Use test to check variables, prefix strings with x.
* configure: Regenerate.
* solib-osf.c (osf_current_sos): Initialize tail.
commit 056a537a5a2c8ab1836c1c6bda90a172f97b02bd
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon Jan 25 10:54:58 2010 +0000
2010-01-25 gingold <gingold@adacore.com>
* windows-nat.c (windows_continue): Use %x to print thread id.
(get_windows_debug_event): Ditto.
commit 30bd1069e95fa1560a86ec6cbc4b6d78d81196ea
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 25 06:47:15 2010 +0000
PR ld/11217
* elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
with relocations against undefined weak symbols.
(ppc64_elf_relocate_section): Don't optimize calls to undefined
weak functions if the symbol is dynamic.
(ppc64_elf_relocate_section): Edit tprel tls sequences.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
(_bfd_elf_ppc_at_tprel_transform): New function.
* bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
* bfd-in2.h: Regenerate.
commit fcf21c0c619f94850780fde4d205bde0bf16d7ae
Author: Doug Evans <dje@google.com>
Date: Mon Jan 25 04:08:51 2010 +0000
common/
* cgen-accfp.c (fextsfdf): New arg how. All callers updated.
(ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
ufixsfsi): Ditto.
* cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
(struct cgen_fp_ops): Update signatures of floating point conversion
operations.
frv/
* sem.c: Regenerate.
sh64/
* cpu.h: Regenerate.
commit 80d0585afd753548fba97825ba6e83037749d4e4
Author: Doug Evans <dje@google.com>
Date: Mon Jan 25 03:50:44 2010 +0000
* desc-cpu.scm (cgen-desc.h): Don't print virtual enums.
* sid-cpu.scm (cgen-desc.h): Ditto.
* enum.scm (enum-builtin!): New function.
* read.scm (reader-install-builtin!): Call it.
* rtl-c.scm (s-convop): Delete, replaced with ...
(s-int-convop, s-float-convop): ... new fns.
(ext, zext, trunc): Update.
(fext, ftrunc, float, ufloat, fix, ufix): Update.
* rtx-funcs.scm (fext, ftrunc, float, ufloat, fix, ufix): New parameter
`how'.
* cpu/mep-fmax.cpu (fcvtsw): Update.
* cpu/sh.cpu (h-fsd, h-fmov): Update.
* doc/rtl.texi (float-convop): Update.
* frv.cpu (floating-point-conversion): Update call to fp conv op.
(floating-point-dual-conversion, ne-floating-point-dual-conversion,
conditional-floating-point-conversion, ne-floating-point-conversion,
float-parallel-mul-add-double-semantics): Ditto.
commit ece06599528483eaa3eb38dc9cea68b00a2bef79
Author: Doug Evans <dje@google.com>
Date: Mon Jan 25 00:48:17 2010 +0000
* Make-common.in (CGEN_SIM_DEPS): Define.
(CGEN_INCLUDE_DEPS): Use it.
(CGEN_MAIN_CPU_DEPS): Simplify.
commit 898322942d6f53ae3f6ce4991a1192fc1d5c17f8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 25 00:00:02 2010 +0000
*** empty log message ***
commit 6327d2d393ca4ea339b026a85f02127967e08187
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Jan 24 23:22:43 2010 +0000
Remove trailing { Bad_Opcode }.
commit 54f4765ed22bef44818de32d63d391f303edd7a9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jan 24 23:00:05 2010 +0000
daily update
commit 589a773e697c62b97c694c3dcee2363e1bdf7784
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Jan 24 21:35:13 2010 +0000
Remove trailing { Bad_Opcode } in vex_len_table.
2010-01-24 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (vex_len_table): Remove trailing { Bad_Opcode }.
commit 9cc6bf072cef2e40990041ad725194ece2d37767
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Jan 24 20:39:40 2010 +0000
Remove trailing { Bad_Opcode }.
2010-01-24 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (prefix_table): Remove trailing { Bad_Opcode }.
commit 80e71168becc4c8afbbc7b241ad75d44b19cc222
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Jan 24 18:24:22 2010 +0000
Remove trailing "(bad)" entries and replace { "(bad)", { XX } }
with { Bad_Opcode }.
2010-01-24 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (Bad_Opcode): New.
(bad_opcode): Likewise.
(dis386): Replace { "(bad)", { XX } } with { Bad_Opcode }.
(dis386_twobyte): Likewise.
(reg_table): Likewise.
(prefix_table): Likewise.
(x86_64_table): Likewise.
(vex_len_table): Likewise.
(vex_w_table): Likewise.
(mod_table): Likewise.
(rm_table): Likewise.
(float_reg): Likewise.
(reg_table): Remove trailing "(bad)" entries.
(prefix_table): Likewise.
(x86_64_table): Likewise.
(vex_len_table): Likewise.
(vex_w_table): Likewise.
(mod_table): Likewise.
(rm_table): Likewise.
(get_valid_dis386): Handle bytemode 0.
commit c9233786d875be79376fc9f388ccc6f8516630f9
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Jan 24 04:29:32 2010 +0000
gdb/testsuite/
* gdb.arch/i386-bp_permanent.exp (Disassemble function '$function'):
Adjust it for DISASSEMBLY_OMIT_FNAME.
commit 6a2f9065d400a11ae0e95ecf4f4da7d32d6275a3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Jan 24 00:59:12 2010 +0000
Replace "Vex" with "Vex=3" on AVX scalar instructions.
2010-01-23 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.h (VEXScalar): New.
* i386-opc.tbl: Replace "Vex" with "Vex=3" on AVX scalar
instructions.
* i386-tbl.h: Regenerated.
commit 49ac208985e0f2f87f79717055ea46fc9f1771e8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 24 00:00:33 2010 +0000
*** empty log message ***
commit a9cdae90b60c0ec9b7504a4e804a07eeb073597f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jan 23 23:00:05 2010 +0000
daily update
commit 7e64c08e6b14c38afb838a6de36287b8e5b3f656
Author: Richard Sandiford <rsandifo@nildram.co.uk>
Date: Sat Jan 23 12:05:31 2010 +0000
bfd/
* coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
(_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
* coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
bitsize to 1.
(xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
gas/
* write.h (fix_at_start): Declare.
* write.c (fix_new_internal): Add at_beginning parameter.
Use it instead of REVERSE_SORT_RELOCS. Fix the handling of
seg_fix_tailP for the at_beginning/REVERSE_SORT_RELOCS case.
(fix_new, fix_new_exp): Update accordingly.
(fix_at_start): New function.
* config/tc-ppc.c (md_pseudo_table): Add .ref to the OBJ_XCOFF section.
(ppc_ref): New function, for OBJ_XCOFF.
(md_apply_fix): Handle BFD_RELOC_NONE for OBJ_XCOFF.
* config/te-i386aix.h (REVERSE_SORT_RELOCS): Remove #undef.
gas/testsuite/
* gas/ppc/xcoff-ref-1.s, gas/ppc/xcoff-ref-1.l: New test.
* gas/ppc/aix.exp: Run it.
ld/testsuite/
* ld-powerpc/aix-ref-1-32.od, ld-powerpc/aix-ref-1-64.od,
ld-powerpc/aix-ref-1.s: New tests.
* ld-powerpc/aix52.exp: Run them.
commit c759727aeb822d7ffdbd4180056af3138e660917
Author: Joern Rennecke <joern.rennecke@arc.com>
Date: Sat Jan 23 11:32:15 2010 +0000
gcc PR libstdc++/36101, gcc PR libstdc++/42813
* configure.ac (bootstrap_target_libs): Include target-libgomp.
* configure: Regenerate.
commit 91511fc320ebf301bed82d9f3af4eaa72269dab7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 23 00:00:03 2010 +0000
*** empty log message ***
commit 497a1155f50abc8592d113e738a689b8c0272ba9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 22 23:00:04 2010 +0000
daily update
commit dc782272243c29b976b1f3d37de277869a8a4ad5
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jan 22 17:06:48 2010 +0000
gdb
PR symtab/11199:
* dwarf2read.c (quirk_gcc_member_function_pointer): Change return
type and arguments. Use smash_to_methodptr_type.
(read_structure_type): Call quirk_gcc_member_function_pointer
later.
* gdbtypes.h (smash_to_methodptr_type): Declare.
* gdbtypes.c (smash_to_methodptr_type): New function.
(lookup_methodptr_type): Use it.
gdb/testsuite
2010-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
PR symtab/11199:
* gdb.dwarf2/member-ptr-forwardref.exp,
gdb.dwarf2/member-ptr-forwardref.S: New.
commit 0d44d98d03f83e5a32a3f09d503e65d45f24362c
Author: Joern Rennecke <joern.rennecke@arc.com>
Date: Fri Jan 22 16:28:24 2010 +0000
gcc PR libstdc++/36101, gcc PR libstdc++/42813
* configure.ac (target_configdirs): Substitute.
* Makefile.def: Bootstrap target module libgomp.
Add dependency of all-target-libstdc++-v3 on configure-target-libgomp.
* Makefile.tpl (TARGET_CONFIGDIRS): New makefile variable.
(BASE_TARGET_EXPORTS): Export TARGET_CONFIGDIRS.
* configure, Makefile.in: Regenerate.
commit b0b59f5b7fd3fc01021c4a03be248aaad1079672
Author: Doug Evans <dje@google.com>
Date: Fri Jan 22 08:23:26 2010 +0000
* cgen-ops.h (SUBWORDXFSI): Fix word ordering.
(SUBWORDTFSI, JOINSIDI): Ditto.
commit 857c8434a19bc8d0dab4b9d07fd43c669955f627
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 22 00:00:33 2010 +0000
*** empty log message ***
commit 0cfb39985d99e0e0954d83b6f4723ebf750427e2
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jan 21 23:00:05 2010 +0000
daily update
commit be9e2037ab344da5f2b8f1521855a4636e9ec05f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Jan 21 22:10:18 2010 +0000
* linux-ppc-low.c (ppc_arch_setup): Adjust to regcache
changes.
commit aabc2f4e201ad84e5330e8a383d9c376d8e87e57
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 21 19:26:49 2010 +0000
gdb/gdbserver/
* linux-s390-low.c (s390_collect_ptrace_register)
(s390_supply_ptrace_register): Adjust it for the new regcache parameter.
commit 58b79b9093d575681b31d0947eea73132ca58408
Author: Doug Evans <dje@google.com>
Date: Thu Jan 21 18:35:42 2010 +0000
* linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
(PTRACE_ARG4_TYPE): New macro.
(handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
(linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
(fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
(usr_store_inferior_registers): Ditto.
(linux_read_memory, linux_write_memory): Ditto.
(linux_test_for_tracefork): Ditto.
commit 7f0e6396a16d31ad830f7546531b78281ef07e01
Author: Doug Evans <dje@google.com>
Date: Thu Jan 21 18:27:32 2010 +0000
* linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
commit 13fcddfac850e443710bb8cca4508bea8b5fa28a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jan 21 17:32:32 2010 +0000
Correct month.
commit be72b57d303e00518650985ba69e74fc4bf055a8
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jan 21 17:30:12 2010 +0000
Add xsave64 and xrstor64.
gas/testsuite/
2010-02-21 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/x86-64-xsave.s: Add tests for xsave64 and xrstor64.
* gas/i386/x86-64-xsave-intel.d: Updated.
* gas/i386/x86-64-xsave.d: Likewise.
opcodes/
2010-02-21 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (mod_table): Use FXSAVE on xsave and xrstor.
* i386-opc.tbl: Add xsave64 and xrstor64.
* i386-tbl.h: Regenerated.
commit 56ff1af56823251daaa909753c00911cd792a876
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Jan 21 17:12:15 2010 +0000
PR symtab/11198:
* symtab.h (lookup_minimal_symbol_and_objfile): Declare.
* minsyms.c (lookup_minimal_symbol_and_objfile): New function.
* glibc-tdep.c (find_minsym_and_objfile): Remove.
(glibc_skip_solib_resolver): Use
lookup_minimal_symbol_and_objfile.
commit bfc7edb055a61bd8cf5dee7cefab1313bdc98ea1
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Jan 21 15:33:19 2010 +0000
* proc-service.c (ps_lgetregs): Don't refetch registers from the
target.
commit 37d905869e53c9f8e0f02cc90faf6a0fad704cdf
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Jan 21 14:54:40 2010 +0000
* elflink.c (elf_link_add_object_symbols): Look up name of
undefined symbol both before and after versioning has been
applied. Do not bother with symbols that are weakly undefined.
commit b8db8cd4ffe6f016974c93e8e56522ea07e95d12
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Thu Jan 21 14:26:12 2010 +0000
2010-01-21 Kai Tietz <kai.tietz@onevision.com>
* inflow.c (check_syscall): Guard by #if clause for GO32 and
WIN32 targets.
commit 31613b2bbecb72f9f24dd8e5701ad9d95fafd1cf
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Jan 21 14:11:21 2010 +0000
* spu-low.c (spu_fetch_registers, spu_store_registers): Change
prototype to take a regcache. Adjust.
commit 28b539c38d2d4a36628da04e3a5a5ffbddca5c34
Author: Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Date: Thu Jan 21 11:40:27 2010 +0000
2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* readelf.c (get_machine_flags): Handle EF_S390_HIGH_GPRS.
2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390.h (EF_S390_HIGH_GPRS): Added macro definition.
2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.c (s390_elf_final_processing): New function.
* config/tc-s390.h (elf_tc_final_processing): New macro definition.
(s390_elf_final_processing): Added prototype.
2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
(bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
commit 6a5763e0fc361b96de5692a7b8c78dae8d7f33d5
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 21 04:34:51 2010 +0000
Improve doc on how to execute a Python script from GDB.
* gdb.texinfo (File Options): Adjust the documentation of this
switch to refer to the "source" command rather than partially
duplicating some of the relevant information.
(Extending GDB): Introduce and document the set/show script-extension
setting.
(Command Files): Add note explaining that the "source" command
is also used to evalute scripts written in other languages.
Remove the short slightly incorrect reference to sourcing Python
scripts.
(Python Commands): Document how to execute a Python script from GDB.
commit 5b206ef0371b141649383a713ce4751a527cd591
Author: DJ Delorie <dj@delorie.com>
Date: Thu Jan 21 02:05:11 2010 +0000
merge from gcc
commit 66952a1f7e2e39bd972113890f0e117687f653e1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 21 00:00:03 2010 +0000
*** empty log message ***
commit 2c1097315ca26a9436ec027c0120d93966a36f8b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jan 20 23:00:05 2010 +0000
daily update
commit b3b4bbb68c5a77e017ceaeb49b9fed4579068476
Author: Pedro Alves <pedro@codesourcery.com>
Date: Wed Jan 20 22:55:38 2010 +0000
* regcache.h (struct thread_info): Forward declare.
(struct regcache): New.
(new_register_cache): Adjust prototype.
(get_thread_regcache): Declare.
(free_register_cache): Adjust prototype.
(registers_to_string, registers_from_string): Ditto.
(supply_register, supply_register_by_name, collect_register)
(collect_register_as_string, collect_register_by_name): Ditto.
* regcache.c (struct inferior_regcache_data): Delete.
(get_regcache): Rename to ...
(get_thread_regcache): ... this. Adjust. Switch inferior before
fetching registers.
(regcache_invalidate_one): Adjust.
(regcache_invalidate): Fix prototype.
(new_register_cache): Return the new register cache.
(free_register_cache): Change prototype.
(realloc_register_cache): Adjust.
(registers_to_string): Change prototype to take a regcache. Adjust.
(registers_from_string): Ditto.
(register_data): Ditto.
(supply_register): Ditto.
(supply_register_by_name): Ditto.
(collect_register): Ditto.
(collect_register_as_string): Ditto.
(collect_register_by_name): Ditto.
* server.c (process_serial_event): Adjust.
* linux-low.h (regset_fill_func, regset_store_func): Change
prototype.
(get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
Change prototype.
* linux-low.c (get_stop_pc): Adjust.
(check_removed_breakpoint): Adjust.
(linux_wait_for_event): Adjust.
(linux_resume_one_lwp): Adjust.
(fetch_register): Add regcache parameter. Adjust.
(usr_store_inferior_registers): Ditto.
(regsets_fetch_inferior_registers): Ditto.
(regsets_store_inferior_registers): Ditto.
(linux_fetch_registers, linux_store_registers): Ditto.
* i387-fp.c (i387_cache_to_fsave): Change prototype to take a
regcache. Adjust.
(i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
* i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
prototype to take a regcache.
(i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
* remote-utils.c (convert_ascii_to_int, outreg)
(prepare_resume_reply): Change prototype to take a regcache.
Adjust.
* target.h (struct target_ops) <fetch_registers, store_registers>:
Change prototype to take a regcache.
(fetch_inferior_registers, store_inferior_registers): Change
prototype to take a regcache. Adjust.
* proc-service.c (ps_lgetregs): Adjust.
* linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
(x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
(x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
take a regcache. Adjust.
* linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
(arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
(arm_store_vfpregset, arm_get_pc, arm_set_pc):
(arm_breakpoint_at): Change prototype to take a regcache. Adjust.
* linux-cris-low.c (cris_get_pc, cris_set_pc)
(cris_cannot_fetch_register):
(cris_breakpoint_at): Change prototype to take a regcache.
Adjust.
* linux-crisv32-low.c (cris_get_pc, cris_set_pc,
cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
to take a regcache. Adjust.
(cris_breakpoint_at, cris_insert_point, cris_remove_point):
Adjust.
* linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
take a regcache. Adjust.
* linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
(m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
(m68k_set_pc): Change prototype to take a regcache. Adjust.
* linux-mips-low.c (mips_get_pc):
(mips_set_pc): Change prototype to take a regcache. Adjust.
(mips_reinsert_addr): Adjust.
(mips_collect_register): Change prototype to take a regcache.
Adjust.
(mips_supply_register):
(mips_collect_register_32bit, mips_supply_register_32bit)
(mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
(mips_store_fpregset): Ditto.
* linux-ppc-low.c (ppc_supply_ptrace_register, ppc_supply_ptrace_register):
Ditto.
(parse_spufs_run): Adjust.
(ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
(ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
(ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
take a regcache. Adjust.
* linux-s390-low.c (s390_collect_ptrace_register)
(s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
(s390_set_pc): Change prototype to take a regcache. Adjust.
(s390_arch_setup): Adjust.
* linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
(sh_fill_gregset): Change prototype to take a regcache. Adjust.
* linux-sparc-low.c (sparc_fill_gregset_to_stack)
(sparc_fill_gregset, sparc_store_gregset_from_stack)
(sparc_store_gregset, sparc_get_pc): Change prototype to take a
regcache. Adjust.
(sparc_breakpoint_at): Adjust.
* linux-xtensa-low.c (xtensa_fill_gregset):
(xtensa_store_gregset):
(xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
(xtensa_set_pc): Change prototype to take a regcache. Adjust.
* nto-low.c (nto_fetch_registers, nto_store_registers): Change
prototype to take a regcache. Adjust.
* win32-arm-low.c (arm_fetch_inferior_register)
(arm_store_inferior_register): Change prototype to take a
regcache. Adjust.
* win32-i386-low.c (i386_fetch_inferior_register)
(i386_store_inferior_register): Change prototype to take a
regcache. Adjust.
* win32-low.c (child_fetch_inferior_registers)
(child_store_inferior_registers): Change prototype to take a
regcache. Adjust.
(win32_wait): Adjust.
(win32_fetch_inferior_registers): Change prototype to take a
regcache. Adjust.
(win32_store_inferior_registers): Adjust.
* win32-low.h (struct win32_target_ops) <fetch_inferior_register,
store_inferior_register>: Change prototype to take a regcache.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 23 +
Makefile.def | 6 +-
Makefile.in | 564 ++-
Makefile.tpl | 4 +-
bfd/ChangeLog | 97 +
bfd/aout-target.h | 3 +
bfd/aout-tic30.c | 3 +
bfd/archive.c | 129 +-
bfd/bfd-in.h | 5 +-
bfd/bfd-in2.h | 7 +-
bfd/coff-alpha.c | 1 +
bfd/coff-rs6000.c | 10 +-
bfd/coff64-rs6000.c | 10 +-
bfd/elf32-ppc.c | 62 +-
bfd/elf32-s390.c | 9 +
bfd/elf64-mips.c | 1 +
bfd/elf64-ppc.c | 42 +-
bfd/elflink.c | 42 +-
bfd/ieee.c | 1 +
bfd/libbfd-in.h | 33 +
bfd/libbfd.h | 33 +
bfd/libecoff.h | 1 +
bfd/mach-o-target.c | 12 +-
bfd/mach-o.c | 15 +
bfd/oasys.c | 1 +
bfd/targets.c | 2 +
bfd/version.h | 2 +-
configure | 7 +
configure.ac | 6 +
cpu/ChangeLog | 7 +
cpu/frv.cpu | 26 +-
gdb/ChangeLog | 78 +
gdb/c-valprint.c | 2 +-
gdb/configure | 6 +-
gdb/configure.ac | 6 +-
gdb/cp-namespace.c | 229 +-
gdb/cp-support.h | 6 +-
gdb/doc/ChangeLog | 13 +
gdb/doc/gdb.texinfo | 90 +-
gdb/dwarf2read.c | 66 +-
gdb/eval.c | 2 +-
gdb/gdbserver/ChangeLog | 159 +
gdb/gdbserver/i387-fp.c | 94 +-
gdb/gdbserver/i387-fp.h | 8 +-
gdb/gdbserver/linux-arm-low.c | 58 +-
gdb/gdbserver/linux-cris-low.c | 11 +-
gdb/gdbserver/linux-crisv32-low.c | 84 +-
gdb/gdbserver/linux-low.c | 103 +-
gdb/gdbserver/linux-low.h | 14 +-
gdb/gdbserver/linux-m32r-low.c | 10 +-
gdb/gdbserver/linux-m68k-low.c | 26 +-
gdb/gdbserver/linux-mips-low.c | 112 +-
gdb/gdbserver/linux-ppc-low.c | 99 +-
gdb/gdbserver/linux-s390-low.c | 45 +-
gdb/gdbserver/linux-sh-low.c | 12 +-
gdb/gdbserver/linux-sparc-low.c | 45 +-
gdb/gdbserver/linux-x86-low.c | 50 +-
gdb/gdbserver/linux-xtensa-low.c | 56 +-
gdb/gdbserver/nto-low.c | 10 +-
gdb/gdbserver/proc-service.c | 6 +-
gdb/gdbserver/regcache.c | 91 +-
gdb/gdbserver/regcache.h | 32 +-
gdb/gdbserver/remote-utils.c | 9 +-
gdb/gdbserver/server.c | 24 +-
gdb/gdbserver/spu-low.c | 14 +-
gdb/gdbserver/target.h | 12 +-
gdb/gdbserver/win32-arm-low.c | 10 +-
gdb/gdbserver/win32-i386-low.c | 14 +-
gdb/gdbserver/win32-low.c | 24 +-
gdb/gdbserver/win32-low.h | 6 +-
gdb/gdbtypes.c | 21 +-
gdb/gdbtypes.h | 2 +
gdb/glibc-tdep.c | 31 +-
gdb/inflow.c | 3 +-
gdb/minsyms.c | 31 +
gdb/solib-osf.c | 2 +-
gdb/symtab.c | 9 +-
gdb/symtab.h | 4 +
gdb/testsuite/ChangeLog | 43 +
gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 2 +-
gdb/testsuite/gdb.base/printcmds.exp | 6 +-
gdb/testsuite/gdb.cp/namespace-using.cc | 36 +-
gdb/testsuite/gdb.cp/namespace-using.exp | 35 +-
gdb/testsuite/gdb.cp/nsdecl.cc | 93 +
gdb/testsuite/gdb.cp/nsdecl.exp | 52 +
gdb/testsuite/gdb.cp/nsimport.cc | 20 +
gdb/testsuite/gdb.cp/nsimport.exp | 52 +
gdb/testsuite/gdb.cp/nsrecurs.cc | 30 +
.../gdb.cp/{namespace-using.exp => nsrecurs.exp} | 58 +-
gdb/testsuite/gdb.cp/nsstress.cc | 60 +
gdb/testsuite/gdb.cp/nsstress.exp | 52 +
gdb/testsuite/gdb.cp/shadow.cc | 45 +
.../gdb.cp/{namespace-using.exp => shadow.exp} | 64 +-
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.S | 327 +
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp | 48 +
gdb/valops.c | 2 +-
gdb/version.in | 2 +-
gdb/windows-nat.c | 16 +-
include/ChangeLog | 4 +
include/elf/s390.h | 4 +
libiberty/ChangeLog | 5 +
libiberty/cp-demangle.c | 15 +-
opcodes/ChangeLog | 50 +
opcodes/i386-dis.c | 6209 +++++++++-----------
opcodes/i386-opc.h | 6 +-
opcodes/i386-opc.tbl | 418 +-
opcodes/i386-tbl.h | 436 +-
sim/common/ChangeLog | 18 +
sim/common/Make-common.in | 22 +-
sim/common/cgen-accfp.c | 16 +-
sim/common/cgen-fpu.h | 99 +-
sim/common/cgen-ops.h | 15 +-
sim/frv/ChangeLog | 4 +
sim/frv/sem.c | 40 +-
sim/sh64/ChangeLog | 4 +
sim/sh64/cpu.h | 8 +-
116 files changed, 6534 insertions(+), 4885 deletions(-)
create mode 100644 gdb/testsuite/gdb.cp/nsdecl.cc
create mode 100644 gdb/testsuite/gdb.cp/nsdecl.exp
create mode 100644 gdb/testsuite/gdb.cp/nsimport.cc
create mode 100644 gdb/testsuite/gdb.cp/nsimport.exp
create mode 100644 gdb/testsuite/gdb.cp/nsrecurs.cc
copy gdb/testsuite/gdb.cp/{namespace-using.exp => nsrecurs.exp} (54%)
create mode 100644 gdb/testsuite/gdb.cp/nsstress.cc
create mode 100644 gdb/testsuite/gdb.cp/nsstress.exp
create mode 100644 gdb/testsuite/gdb.cp/shadow.cc
copy gdb/testsuite/gdb.cp/{namespace-using.exp => shadow.exp} (55%)
create mode 100644 gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.S
create mode 100644 gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index de6535f..01bfa10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+2010-01-25 Joern Rennecke <amylaar@spamcop.net>
+
+ gcc PR libstdc++/36101, gcc PR libstdc++/42813
+ * configure.ac (bootstrap_target_libs): Make inclusion of
+ target-libgomp conditional on libgomb being in target_configdirs.
+ * configure: Regenerate.
+
+2010-01-23 Joern Rennecke <amylaar@spamcop.net>
+
+ gcc PR libstdc++/36101, gcc PR libstdc++/42813
+ * configure.ac (bootstrap_target_libs): Include target-libgomp.
+ * configure: Regenerate.
+
+2010-01-22 Joern Rennecke <amylaar@spamcop.net>
+
+ gcc PR libstdc++/36101, gcc PR libstdc++/42813
+ * configure.ac (target_configdirs): Substitute.
+ * Makefile.def: Bootstrap target module libgomp.
+ Add dependency of all-target-libstdc++-v3 on configure-target-libgomp.
+ * Makefile.tpl (TARGET_CONFIGDIRS): New makefile variable.
+ (BASE_TARGET_EXPORTS): Export TARGET_CONFIGDIRS.
+ * configure, Makefile.in: Regenerate.
+
2009-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libtool.m4: Sync from git Libtool.
diff --git a/Makefile.def b/Makefile.def
index f5c2e11..ba23767 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -174,7 +174,7 @@ target_modules = { module= boehm-gc; };
target_modules = { module= qthreads; };
target_modules = { module= rda; };
target_modules = { module= libada; };
-target_modules = { module= libgomp; lib_path=.libs; };
+target_modules = { module= libgomp; bootstrap= true; lib_path=.libs; };
// These are (some of) the make targets to be done in each subdirectory.
// Not all; these are the ones which don't have special options.
@@ -547,6 +547,10 @@ dependencies = { module=all-target-libobjc; on=all-target-libiberty; };
dependencies = { module=all-target-libobjc; on=all-target-boehm-gc; };
dependencies = { module=all-target-libstdc++-v3; on=all-target-libiberty; };
dependencies = { module=configure-target-libstdc++-v3; on=configure-target-libgomp; };
+// parallel_list.o and parallel_settings.o depend on omp.h, which is
+// generated by the libgomp configure. Unfortunately, due to the use of
+// recursive make, we can't be that specific.
+dependencies = { module=all-target-libstdc++-v3; on=configure-target-libgomp; };
// Target modules in the 'src' repository.
lang_env_dependencies = { module=examples; };
diff --git a/Makefile.in b/Makefile.in
index 6f1c140..8f9be0c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -173,6 +173,7 @@ EXTRA_BUILD_FLAGS = \
# This is the list of directories to built for the host system.
SUBDIRS = @configdirs@
+TARGET_CONFIGDIRS = @target_configdirs@
# This is set by the configure script to the arguments to use when configuring
# directories built for the host system.
HOST_CONFIGARGS = @host_configargs@
@@ -284,7 +285,8 @@ BASE_TARGET_EXPORTS = \
@if gcc-bootstrap
$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
@endif gcc-bootstrap
- $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
+ $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
+ TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
RAW_CXX_TARGET_EXPORTS = \
$(BASE_TARGET_EXPORTS) \
@@ -1120,7 +1122,9 @@ all-target: maybe-all-target-boehm-gc
all-target: maybe-all-target-qthreads
all-target: maybe-all-target-rda
all-target: maybe-all-target-libada
+@if target-libgomp-no-bootstrap
all-target: maybe-all-target-libgomp
+@endif target-libgomp-no-bootstrap
# Do a target for all the subdirectories. A ``make do-X'' will do a
# ``make X'' in all subdirectories (because, in general, there is a
@@ -54629,7 +54633,6 @@ configure-target-libgomp: stage_current
@if target-libgomp
maybe-configure-target-libgomp: configure-target-libgomp
configure-target-libgomp:
- @: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
echo "Checking multilib configuration for libgomp..."; \
@@ -54666,6 +54669,276 @@ configure-target-libgomp:
+.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
+maybe-configure-stage1-target-libgomp:
+@if target-libgomp-bootstrap
+maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
+configure-stage1-target-libgomp:
+ @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE1_TFLAGS)"; \
+ echo "Checking multilib configuration for libgomp..."; \
+ $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
+ if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
+ else \
+ rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ else \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
+ $(NORMAL_TARGET_EXPORTS) \
+ CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
+ LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
+ echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp ; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
+ cd $(TARGET_SUBDIR)/libgomp || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ srcdiroption="--srcdir=$${topdir}/libgomp"; \
+ libsrcdir="$$s/libgomp"; \
+ $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
+ --target=${target_alias} $${srcdiroption} \
+ $(STAGE1_CONFIGURE_FLAGS)
+@endif target-libgomp-bootstrap
+
+.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
+maybe-configure-stage2-target-libgomp:
+@if target-libgomp-bootstrap
+maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
+configure-stage2-target-libgomp:
+ @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE2_TFLAGS)"; \
+ echo "Checking multilib configuration for libgomp..."; \
+ $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
+ if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
+ else \
+ rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ else \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
+ $(NORMAL_TARGET_EXPORTS) \
+ \
+ CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
+ LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
+ echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp ; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
+ cd $(TARGET_SUBDIR)/libgomp || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ srcdiroption="--srcdir=$${topdir}/libgomp"; \
+ libsrcdir="$$s/libgomp"; \
+ $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
+ --target=${target_alias} $${srcdiroption} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGE2_CONFIGURE_FLAGS)
+@endif target-libgomp-bootstrap
+
+.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
+maybe-configure-stage3-target-libgomp:
+@if target-libgomp-bootstrap
+maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
+configure-stage3-target-libgomp:
+ @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE3_TFLAGS)"; \
+ echo "Checking multilib configuration for libgomp..."; \
+ $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
+ if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
+ else \
+ rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ else \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
+ $(NORMAL_TARGET_EXPORTS) \
+ \
+ CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
+ LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
+ echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp ; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
+ cd $(TARGET_SUBDIR)/libgomp || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ srcdiroption="--srcdir=$${topdir}/libgomp"; \
+ libsrcdir="$$s/libgomp"; \
+ $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
+ --target=${target_alias} $${srcdiroption} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGE3_CONFIGURE_FLAGS)
+@endif target-libgomp-bootstrap
+
+.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
+maybe-configure-stage4-target-libgomp:
+@if target-libgomp-bootstrap
+maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
+configure-stage4-target-libgomp:
+ @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE4_TFLAGS)"; \
+ echo "Checking multilib configuration for libgomp..."; \
+ $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
+ if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
+ else \
+ rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ else \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
+ $(NORMAL_TARGET_EXPORTS) \
+ \
+ CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
+ LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
+ echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp ; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
+ cd $(TARGET_SUBDIR)/libgomp || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ srcdiroption="--srcdir=$${topdir}/libgomp"; \
+ libsrcdir="$$s/libgomp"; \
+ $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
+ --target=${target_alias} $${srcdiroption} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGE4_CONFIGURE_FLAGS)
+@endif target-libgomp-bootstrap
+
+.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
+maybe-configure-stageprofile-target-libgomp:
+@if target-libgomp-bootstrap
+maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
+configure-stageprofile-target-libgomp:
+ @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEprofile_TFLAGS)"; \
+ echo "Checking multilib configuration for libgomp..."; \
+ $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
+ if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
+ else \
+ rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ else \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
+ $(NORMAL_TARGET_EXPORTS) \
+ \
+ CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
+ LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
+ echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp ; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
+ cd $(TARGET_SUBDIR)/libgomp || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ srcdiroption="--srcdir=$${topdir}/libgomp"; \
+ libsrcdir="$$s/libgomp"; \
+ $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
+ --target=${target_alias} $${srcdiroption} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGEprofile_CONFIGURE_FLAGS)
+@endif target-libgomp-bootstrap
+
+.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
+maybe-configure-stagefeedback-target-libgomp:
+@if target-libgomp-bootstrap
+maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
+configure-stagefeedback-target-libgomp:
+ @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEfeedback_TFLAGS)"; \
+ echo "Checking multilib configuration for libgomp..."; \
+ $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
+ if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
+ rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
+ else \
+ rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ else \
+ mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
+ fi; \
+ test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
+ $(NORMAL_TARGET_EXPORTS) \
+ \
+ CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
+ LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
+ echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp ; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
+ cd $(TARGET_SUBDIR)/libgomp || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ srcdiroption="--srcdir=$${topdir}/libgomp"; \
+ libsrcdir="$$s/libgomp"; \
+ $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
+ --target=${target_alias} $${srcdiroption} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGEfeedback_CONFIGURE_FLAGS)
+@endif target-libgomp-bootstrap
+
+
+
.PHONY: all-target-libgomp maybe-all-target-libgomp
@@ -54677,7 +54950,6 @@ all-target-libgomp: stage_current
TARGET-target-libgomp=all
maybe-all-target-libgomp: all-target-libgomp
all-target-libgomp: configure-target-libgomp
- @: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(NORMAL_TARGET_EXPORTS) \
@@ -54688,6 +54960,264 @@ all-target-libgomp: configure-target-libgomp
+.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
+.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
+maybe-all-stage1-target-libgomp:
+maybe-clean-stage1-target-libgomp:
+@if target-libgomp-bootstrap
+maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
+all-stage1: all-stage1-target-libgomp
+TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
+all-stage1-target-libgomp: configure-stage1-target-libgomp
+ @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE1_TFLAGS)"; \
+ $(NORMAL_TARGET_EXPORTS) \
+ cd $(TARGET_SUBDIR)/libgomp && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(CFLAGS_FOR_TARGET)" \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
+ LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
+ CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
+ CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
+ LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
+ $(EXTRA_TARGET_FLAGS) \
+ TFLAGS="$(STAGE1_TFLAGS)" \
+ $(TARGET-stage1-target-libgomp)
+
+maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
+clean-stage1: clean-stage1-target-libgomp
+clean-stage1-target-libgomp:
+ @if [ $(current_stage) = stage1 ]; then \
+ [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
+ else \
+ [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
+ $(MAKE) stage1-start; \
+ fi; \
+ cd $(TARGET_SUBDIR)/libgomp && \
+ $(MAKE) $(EXTRA_TARGET_FLAGS) \
+ clean
+@endif target-libgomp-bootstrap
+
+
+.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
+.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
+maybe-all-stage2-target-libgomp:
+maybe-clean-stage2-target-libgomp:
+@if target-libgomp-bootstrap
+maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
+all-stage2: all-stage2-target-libgomp
+TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
+all-stage2-target-libgomp: configure-stage2-target-libgomp
+ @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE2_TFLAGS)"; \
+ $(NORMAL_TARGET_EXPORTS) \
+ \
+ cd $(TARGET_SUBDIR)/libgomp && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(CFLAGS_FOR_TARGET)" \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
+ LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
+ CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
+ CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
+ LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
+ $(EXTRA_TARGET_FLAGS) \
+ TFLAGS="$(STAGE2_TFLAGS)" \
+ $(TARGET-stage2-target-libgomp)
+
+maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
+clean-stage2: clean-stage2-target-libgomp
+clean-stage2-target-libgomp:
+ @if [ $(current_stage) = stage2 ]; then \
+ [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
+ else \
+ [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
+ $(MAKE) stage2-start; \
+ fi; \
+ cd $(TARGET_SUBDIR)/libgomp && \
+ $(MAKE) $(EXTRA_TARGET_FLAGS) \
+ \
+ clean
+@endif target-libgomp-bootstrap
+
+
+.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
+.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
+maybe-all-stage3-target-libgomp:
+maybe-clean-stage3-target-libgomp:
+@if target-libgomp-bootstrap
+maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
+all-stage3: all-stage3-target-libgomp
+TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
+all-stage3-target-libgomp: configure-stage3-target-libgomp
+ @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE3_TFLAGS)"; \
+ $(NORMAL_TARGET_EXPORTS) \
+ \
+ cd $(TARGET_SUBDIR)/libgomp && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(CFLAGS_FOR_TARGET)" \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
+ LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
+ CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
+ CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
+ LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
+ $(EXTRA_TARGET_FLAGS) \
+ TFLAGS="$(STAGE3_TFLAGS)" \
+ $(TARGET-stage3-target-libgomp)
+
+maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
+clean-stage3: clean-stage3-target-libgomp
+clean-stage3-target-libgomp:
+ @if [ $(current_stage) = stage3 ]; then \
+ [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-20 21:48 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-20 21:48 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 1f3ff38c22ae7fb1dfc11dab847c123da2c68b1e (commit)
via 52768469875240e2608a701ad7d97187eec0168b (commit)
via d0e93734a089a8f1a78134675b59a385c8780305 (commit)
via ce7767d47b00c53b90cd9a56a68d5713592985ea (commit)
via 4f6fe059caecec9e688a2b27fce29a427fd7de9c (commit)
via efca436ee3ce532149a7e568149edf93a75a9a5e (commit)
via e9d6247f3e0c88822735be45843c7d44d8d9d2b8 (commit)
via 47cf631cfac84796d765b828dc0f0a0f9e5f8421 (commit)
via 9662e0d8e12b61ce48a4e6db0253a74c10e300a3 (commit)
via 2222f182712cef65fe3cef0aacee02db78a535b5 (commit)
via 4b66564260abfa85a019a530fcc70a47ee84d756 (commit)
via 21c261bf9817bad398e3a9dc4f689fc77c29fe42 (commit)
via 0e8b3876e99d71abd763d00994d48fad5c7227c6 (commit)
via d075bfd0bd6524d67773a431e1763be1aa0e2ace (commit)
via 4904bca4648dc794b7a973def465ea86ecf55e45 (commit)
from 1bf2767fc7929af17fc5f430dc9fa58f34566ae2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 1f3ff38c22ae7fb1dfc11dab847c123da2c68b1e
Merge: 1bf2767fc7929af17fc5f430dc9fa58f34566ae2 52768469875240e2608a701ad7d97187eec0168b
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Wed Jan 20 22:48:02 2010 +0100
Merge remote branch 'gdb/master'
commit 52768469875240e2608a701ad7d97187eec0168b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jan 20 21:09:30 2010 +0000
gdb/testsuite/
* gdb.threads/watchthreads-reorder.c (gdbstop_mutex): Remove.
(thread1_func): Protect thread1_tid with thread1_tid_cond by
thread1_tid_mutex. Remove gdbstop_mutex handling.
(thread2_func): Protect thread2_tid with thread2_tid_cond by
thread2_tid_mutex. Remove gdbstop_mutex handling.
(main): Move thread1_tid_mutex and thread2_tid_mutex locks before
pthread_create. Remove gdbstop_mutex handling. New comment. Replace
pthread_cond_wait conditionalizations by while loops.
commit d0e93734a089a8f1a78134675b59a385c8780305
Author: Doug Evans <dje@google.com>
Date: Wed Jan 20 18:29:39 2010 +0000
* linux-low.c (W_STOPCODE): Provide definition if missing.
commit ce7767d47b00c53b90cd9a56a68d5713592985ea
Author: Doug Evans <dje@google.com>
Date: Wed Jan 20 18:22:48 2010 +0000
* linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
#ifdef.
(linux_wait_for_event1, linux_init_signals): Ditto.
commit 4f6fe059caecec9e688a2b27fce29a427fd7de9c
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 20 18:06:13 2010 +0000
gdb
PR backtrace/10770:
* valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
* dwarf2expr.c (new_dwarf_expr_context): Allocate
dwarf_stack_values, not CORE_ADDRs.
(execute_stack_op): Change DW_OP_div and comparison operators to
use signed operands.
gdb/testsuite
PR backtrace/10770:
* gdb.dwarf2/pr10770.exp: New file.
* gdb.dwarf2/pr10770.c: New file.
* gdb.dwarf2/Makefile.in (EXECUTABLES): Add pr10770.
commit efca436ee3ce532149a7e568149edf93a75a9a5e
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed Jan 20 14:54:22 2010 +0000
* gdb.mi/mi-async.exp: Remove check for 'async' target, because
that target was removed, and the test always runs native anyway.
commit e9d6247f3e0c88822735be45843c7d44d8d9d2b8
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed Jan 20 14:23:07 2010 +0000
Per-inferior args and tty and environment.
* infcmd.c (inferior_args): Rename to ...
(inferior_args_scratch): ... this.
(inferior_io_terminal): Rename to ...
(inferior_io_terminal_scratch): ... this.
(inferior_argc, inferior_argv): Remove.
(set_inferior_io_terminal, get_inferior_io_terminal): Store
inside current_inferior().
(set_inferior_tty_command, show_inferior_tty_command): New.
(get_inferior_args, set_inferior_args): Store inside
current_inferior().
(notice_args_set): Likewise and rename to...
(set_args_command): ... this.
(set_inferior_args_vector): Likewise.
(notice_args_read): Rename to...
(show_args_command): ...new.
(tty_command): Remove.
(run_command_1): Don't free old args, as they are freed by
set_inferior_arg now.
(run_no_args_command): Likewise.
(inferior_environ): Remove.
(run_command_1): Use environment of the current inferior.
(environment_info, set_environment_command)
(unset_environment_command, path_info, path_command): Likewise.
(_initialize_infcmd): Adjust for function and variable renames.
Do not init inferior_environ.
* inferior.h (set_inferior_arg): Adjust prototype.
(struct inferior): New fields args, argc, argv, terminal, environment.
(inferior_environ): Remove declaration.
* inferior.c (free_inferior): Free new fields.
(add_inferior_silent): Initialize 'environment' field.
* main.c (captured_main): Set arguments only after the initial
inferior has been created. Set set_inferior_io_terminal,
not tty_command.
* mi/mi-main.c (mi_cmd_env_path): Use environment of the current
inferior.
(_initialize_mi_cmd_env): Adjust for disappearance of global
inferior_environ.
* solib.c (solib_find): Use environment of the current inferior.
commit 47cf631cfac84796d765b828dc0f0a0f9e5f8421
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Jan 20 10:54:03 2010 +0000
PR 11170
* arm-dis.c (print_arm_address): Do not ignore negative bit in PC
based post-indexed addressing.
commit 9662e0d8e12b61ce48a4e6db0253a74c10e300a3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed Jan 20 06:36:38 2010 +0000
gdb/
* varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
HAVE_PYTHON.
(instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
commit 2222f182712cef65fe3cef0aacee02db78a535b5
Author: DJ Delorie <dj@delorie.com>
Date: Wed Jan 20 05:52:19 2010 +0000
* m32c.opc (MATH_OP): When doing subtraction, also set carry if
the result is zero.
commit 4b66564260abfa85a019a530fcc70a47ee84d756
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jan 20 03:34:25 2010 +0000
Get rid of ada-lang.c:function_name_from_pc.
* ada-lang.c: Add "stack.h" #include.
(function_name_from_pc): Delete.
(is_known_support_routine): Replace call to function_name_from_pc
by call to find_frame_funname.
(ada_unhandled_exception_name_addr_from_raise): Likewise.
commit 21c261bf9817bad398e3a9dc4f689fc77c29fe42
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 20 02:05:02 2010 +0000
PR c++/11026:
* dwarf2read.c (read_partial_die): Allocate partial DIE's name on
objfile obstack.
commit 0e8b3876e99d71abd763d00994d48fad5c7227c6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 20 00:00:03 2010 +0000
*** empty log message ***
commit d075bfd0bd6524d67773a431e1763be1aa0e2ace
Author: Cary Coutant <ccoutant@google.com>
Date: Tue Jan 19 23:17:57 2010 +0000
* dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
commit 4904bca4648dc794b7a973def465ea86ecf55e45
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jan 19 23:00:04 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 4 +
bfd/dwarf2.c | 4 +
bfd/version.h | 2 +-
gdb/ChangeLog | 74 +++++
gdb/ada-lang.c | 25 +--
gdb/dwarf2expr.c | 28 ++-
gdb/dwarf2read.c | 2 +-
gdb/gdbserver/ChangeLog | 7 +
gdb/gdbserver/linux-low.c | 10 +-
gdb/infcmd.c | 161 ++++++-----
gdb/inferior.c | 7 +
gdb/inferior.h | 25 ++-
gdb/main.c | 101 ++++----
gdb/mi/mi-cmd-env.c | 17 +-
gdb/solib.c | 6 +-
gdb/testsuite/ChangeLog | 23 ++
gdb/testsuite/gdb.dwarf2/Makefile.in | 2 +-
gdb/testsuite/gdb.dwarf2/pr10770.c | 335 ++++++++++++++++++++++
gdb/testsuite/gdb.dwarf2/pr10770.exp | 44 +++
gdb/testsuite/gdb.mi/mi-async.exp | 9 +-
gdb/testsuite/gdb.threads/watchthreads-reorder.c | 41 ++--
gdb/valarith.c | 28 ++
gdb/varobj.c | 18 +-
gdb/version.in | 2 +-
opcodes/ChangeLog | 6 +
opcodes/arm-dis.c | 6 +-
sim/m32c/ChangeLog | 5 +
sim/m32c/m32c.opc | 2 +-
28 files changed, 791 insertions(+), 203 deletions(-)
create mode 100644 gdb/testsuite/gdb.dwarf2/pr10770.c
create mode 100644 gdb/testsuite/gdb.dwarf2/pr10770.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3f68528..75574a7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-19 Cary Coutant <ccoutant@google.com>
+
+ * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
+
2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
Alan Modra <amodra@gmail.com>
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index baac752..89d9f4b 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -858,6 +858,10 @@ read_attribute_value (struct attribute *attr,
attr->u.val = read_8_bytes (abfd, info_ptr);
info_ptr += 8;
break;
+ case DW_FORM_ref_sig8:
+ attr->u.val = read_8_bytes (abfd, info_ptr);
+ info_ptr += 8;
+ break;
case DW_FORM_ref_udata:
attr->u.val = read_unsigned_leb128 (abfd, info_ptr, &bytes_read);
info_ptr += bytes_read;
diff --git a/bfd/version.h b/bfd/version.h
index e5d5def..478944e 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100119
+#define BFD_VERSION_DATE 20100120
#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 07ed4d2..ca5f9d4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,77 @@
+2010-01-20 Tom Tromey <tromey@redhat.com>
+
+ PR backtrace/10770:
+ * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
+ BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
+ * dwarf2expr.c (new_dwarf_expr_context): Allocate
+ dwarf_stack_values, not CORE_ADDRs.
+ (execute_stack_op): Change DW_OP_div and comparison operators to
+ use signed operands.
+
+2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
+
+ Per-inferior args and tty and environment.
+
+ * infcmd.c (inferior_args): Rename to ...
+ (inferior_args_scratch): ... this.
+ (inferior_io_terminal): Rename to ...
+ (inferior_io_terminal_scratch): ... this.
+ (inferior_argc, inferior_argv): Remove.
+ (set_inferior_io_terminal, get_inferior_io_terminal): Store
+ inside current_inferior().
+ (set_inferior_tty_command, show_inferior_tty_command): New.
+ (get_inferior_args, set_inferior_args): Store inside
+ current_inferior().
+ (notice_args_set): Likewise and rename to...
+ (set_args_command): ... this.
+ (set_inferior_args_vector): Likewise.
+ (notice_args_read): Rename to...
+ (show_args_command): ...new.
+ (tty_command): Remove.
+ (run_command_1): Don't free old args, as they are freed by
+ set_inferior_arg now.
+ (run_no_args_command): Likewise.
+ (inferior_environ): Remove.
+ (run_command_1): Use environment of the current inferior.
+ (environment_info, set_environment_command)
+ (unset_environment_command, path_info, path_command): Likewise.
+ (_initialize_infcmd): Adjust for function and variable renames.
+ Do not init inferior_environ.
+ * inferior.h (set_inferior_arg): Adjust prototype.
+ (struct inferior): New fields args, argc, argv, terminal, environment.
+ (inferior_environ): Remove declaration.
+ * inferior.c (free_inferior): Free new fields.
+ (add_inferior_silent): Initialize 'environment' field.
+ * main.c (captured_main): Set arguments only after the initial
+ inferior has been created. Set set_inferior_io_terminal,
+ not tty_command.
+ * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
+ inferior.
+ (_initialize_mi_cmd_env): Adjust for disappearance of global
+ inferior_environ.
+ * solib.c (solib_find): Use environment of the current inferior.
+
+2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
+ HAVE_PYTHON.
+ (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
+
+2010-01-20 Joel Brobecker <brobecker@adacore.com>
+
+ Get rid of ada-lang.c:function_name_from_pc.
+ * ada-lang.c: Add "stack.h" #include.
+ (function_name_from_pc): Delete.
+ (is_known_support_routine): Replace call to function_name_from_pc
+ by call to find_frame_funname.
+ (ada_unhandled_exception_name_addr_from_raise): Likewise.
+
+2010-01-19 Tom Tromey <tromey@redhat.com>
+
+ PR c++/11026:
+ * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
+ objfile obstack.
+
2010-01-19 Tom Tromey <tromey@redhat.com>
* top.c (stop_sig, float_handler, do_nothing): Remove.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index f00c06f..40b70ab 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -56,6 +56,7 @@
#include "source.h"
#include "observer.h"
#include "vec.h"
+#include "stack.h"
/* Define whether or not the C operator '/' truncates towards zero for
differently signed operands (truncation direction is undefined in C).
@@ -10150,21 +10151,6 @@ ada_executable_changed_observer (void)
exception_info = NULL;
}
-/* Return the name of the function at PC, NULL if could not find it.
- This function only checks the debugging information, not the symbol
- table. */
-
-static char *
-function_name_from_pc (CORE_ADDR pc)
-{
- char *func_name;
-
- if (!find_pc_partial_function (pc, &func_name, NULL, NULL))
- return NULL;
-
- return func_name;
-}
-
/* True iff FRAME is very likely to be that of a function that is
part of the runtime system. This is all very heuristic, but is
intended to be used as advice as to what frames are uninteresting
@@ -10175,6 +10161,7 @@ is_known_support_routine (struct frame_info *frame)
{
struct symtab_and_line sal;
char *func_name;
+ enum language func_lang;
int i;
/* If this code does not have any debugging information (no symtab),
@@ -10210,7 +10197,7 @@ is_known_support_routine (struct frame_info *frame)
/* Check whether the function is a GNAT-generated entity. */
- func_name = function_name_from_pc (get_frame_address_in_block (frame));
+ find_frame_funname (frame, &func_name, &func_lang);
if (func_name == NULL)
return 1;
@@ -10275,8 +10262,10 @@ ada_unhandled_exception_name_addr_from_raise (void)
while (fi != NULL)
{
- const char *func_name =
- function_name_from_pc (get_frame_address_in_block (fi));
+ char *func_name;
+ enum language func_lang;
+
+ find_frame_funname (fi, &func_name, &func_lang);
if (func_name != NULL
&& strcmp (func_name, exception_info->catch_exception_sym) == 0)
break; /* We found the frame we were looking for... */
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 5e27d38..ed21edf 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -44,7 +44,8 @@ new_dwarf_expr_context (void)
retval = xcalloc (1, sizeof (struct dwarf_expr_context));
retval->stack_len = 0;
retval->stack_allocated = 10;
- retval->stack = xmalloc (retval->stack_allocated * sizeof (CORE_ADDR));
+ retval->stack = xmalloc (retval->stack_allocated
+ * sizeof (struct dwarf_stack_value));
retval->num_pieces = 0;
retval->pieces = 0;
retval->max_recursion_depth = 0x100;
@@ -712,7 +713,7 @@ execute_stack_op (struct dwarf_expr_context *ctx,
the right width. */
CORE_ADDR first, second;
enum exp_opcode binop;
- struct value *val1, *val2;
+ struct value *val1 = NULL, *val2 = NULL;
struct type *stype, *utype;
second = dwarf_expr_fetch (ctx, 0);
@@ -723,8 +724,6 @@ execute_stack_op (struct dwarf_expr_context *ctx,
utype = unsigned_address_type (ctx->gdbarch, ctx->addr_size);
stype = signed_address_type (ctx->gdbarch, ctx->addr_size);
- val1 = value_from_longest (utype, first);
- val2 = value_from_longest (utype, second);
switch (op)
{
@@ -733,6 +732,8 @@ execute_stack_op (struct dwarf_expr_context *ctx,
break;
case DW_OP_div:
binop = BINOP_DIV;
+ val1 = value_from_longest (stype, first);
+ val2 = value_from_longest (stype, second);
break;
case DW_OP_minus:
binop = BINOP_SUB;
@@ -764,26 +765,45 @@ execute_stack_op (struct dwarf_expr_context *ctx,
break;
case DW_OP_le:
binop = BINOP_LEQ;
+ val1 = value_from_longest (stype, first);
+ val2 = value_from_longest (stype, second);
break;
case DW_OP_ge:
binop = BINOP_GEQ;
+ val1 = value_from_longest (stype, first);
+ val2 = value_from_longest (stype, second);
break;
case DW_OP_eq:
binop = BINOP_EQUAL;
+ val1 = value_from_longest (stype, first);
+ val2 = value_from_longest (stype, second);
break;
case DW_OP_lt:
binop = BINOP_LESS;
+ val1 = value_from_longest (stype, first);
+ val2 = value_from_longest (stype, second);
break;
case DW_OP_gt:
binop = BINOP_GTR;
+ val1 = value_from_longest (stype, first);
+ val2 = value_from_longest (stype, second);
break;
case DW_OP_ne:
binop = BINOP_NOTEQUAL;
+ val1 = value_from_longest (stype, first);
+ val2 = value_from_longest (stype, second);
break;
default:
internal_error (__FILE__, __LINE__,
_("Can't be reached."));
}
+
+ /* We use unsigned operands by default. */
+ if (val1 == NULL)
+ val1 = value_from_longest (utype, first);
+ if (val2 == NULL)
+ val2 = value_from_longest (utype, second);
+
result = value_as_long (value_binop (val1, val2, binop));
}
break;
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index db51653..15ef3e9 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -6781,7 +6781,7 @@ read_partial_die (struct partial_die_info *part_die,
default:
part_die->name
= dwarf2_canonicalize_name (DW_STRING (&attr), cu,
- &cu->comp_unit_obstack);
+ &cu->objfile->objfile_obstack);
break;
}
break;
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index f947937..2113f51 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-20 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
+ #ifdef.
+ (linux_wait_for_event1, linux_init_signals): Ditto.
+ (W_STOPCODE): Provide definition if missing.
+
2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
* linux-low.c (linux_core_of_thread): New.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 5584691..4869db3 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -93,6 +93,10 @@
#define __WALL 0x40000000 /* Wait for any child. */
#endif
+#ifndef W_STOPCODE
+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
+#endif
+
#ifdef __UCLIBC__
#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))
#define HAS_NOMMU
@@ -498,7 +502,9 @@ linux_create_inferior (char *program, char **allargs)
{
ptrace (PTRACE_TRACEME, 0, 0, 0);
+#ifdef __SIGRTMIN /* Bionic doesn't use SIGRTMIN the way glibc does. */
signal (__SIGRTMIN + 1, SIG_DFL);
+#endif
setpgid (0, 0);
@@ -1209,7 +1215,7 @@ linux_wait_for_event_1 (ptid_t ptid, int *wstat, int options)
if (WIFSTOPPED (*wstat)
&& !event_child->stepping
&& (
-#ifdef USE_THREAD_DB
+#if defined (USE_THREAD_DB) && defined (__SIGRTMIN)
(current_process ()->private->thread_db != NULL
&& (WSTOPSIG (*wstat) == __SIGRTMIN
|| WSTOPSIG (*wstat) == __SIGRTMIN + 1))
@@ -3410,7 +3416,9 @@ linux_init_signals ()
{
/* FIXME drow/2002-06-09: As above, we should check with LinuxThreads
to find what the cancel signal actually is. */
+#ifdef __SIGRTMIN /* Bionic doesn't use SIGRTMIN the way glibc does. */
signal (__SIGRTMIN+1, SIG_IGN);
+#endif
}
void
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 21a2233..f99a4ae 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -126,20 +126,17 @@ void _initialize_infcmd (void);
#define ERROR_NO_INFERIOR \
if (!target_has_execution) error (_("The program is not being run."));
-/* String containing arguments to give to the program, separated by spaces.
- Empty string (pointer to '\0') means no args. */
+/* Scratch area where string containing arguments to give to the program will be
+ stored by 'set args'. As soon as anything is stored, notice_args_set will
+ move it into per-inferior storage. Arguments are separated by spaces. Empty
+ string (pointer to '\0') means no args. */
-static char *inferior_args;
+static char *inferior_args_scratch;
-/* The inferior arguments as a vector. If INFERIOR_ARGC is nonzero,
- then we must compute INFERIOR_ARGS from this (via the target). */
+/* Scratch area where 'set inferior-tty' will store user-provided value.
+ We'll immediate copy it into per-inferior storage. */
-static int inferior_argc;
-static char **inferior_argv;
-
-/* File name for default use for standard in/out in the inferior. */
-
-static char *inferior_io_terminal;
+static char *inferior_io_terminal_scratch;
/* Pid of our debugged inferior, or 0 if no inferior now.
Since various parts of infrun.c test this to see whether there is a program
@@ -166,80 +163,97 @@ int stop_stack_dummy;
int stopped_by_random_signal;
-/* Environment to use for running inferior,
- in format described in environ.h. */
-
-struct gdb_environ *inferior_environ;
\f
/* Accessor routines. */
+/* Set the io terminal for the current inferior. Ownership of
+ TERMINAL_NAME is not transferred. */
+
void
set_inferior_io_terminal (const char *terminal_name)
{
- if (inferior_io_terminal)
- xfree (inferior_io_terminal);
-
- if (!terminal_name)
- inferior_io_terminal = NULL;
- else
- inferior_io_terminal = xstrdup (terminal_name);
+ xfree (current_inferior ()->terminal);
+ current_inferior ()->terminal = terminal_name ? xstrdup (terminal_name) : 0;
}
const char *
get_inferior_io_terminal (void)
{
- return inferior_io_terminal;
+ return current_inferior ()->terminal;
+}
+
+static void
+set_inferior_tty_command (char *args, int from_tty,
+ struct cmd_list_element *c)
+{
+ /* CLI has assigned the user-provided value to inferior_io_terminal_scratch.
+ Now route it to current inferior. */
+ set_inferior_io_terminal (inferior_io_terminal_scratch);
+}
+
+static void
+show_inferior_tty_command (struct ui_file *file, int from_tty,
+ struct cmd_list_element *c, const char *value)
+{
+ /* Note that we ignore the passed-in value in favor of computing it
+ directly. */
+ fprintf_filtered (gdb_stdout,
+ _("argument list to give program being debugged when "
+ "it is started is %s"),
+ get_inferior_io_terminal ());
}
char *
get_inferior_args (void)
{
- if (inferior_argc != 0)
+ if (current_inferior ()->argc != 0)
{
- char *n, *old;
+ char *n;
- n = construct_inferior_arguments (inferior_argc, inferior_argv);
- old = set_inferior_args (n);
- xfree (old);
+ n = construct_inferior_arguments (current_inferior ()->argc,
+ current_inferior ()->argv);
+ set_inferior_args (n);
+ xfree (n);
}
- if (inferior_args == NULL)
- inferior_args = xstrdup ("");
+ if (current_inferior ()->args == NULL)
+ current_inferior ()->args = xstrdup ("");
- return inferior_args;
+ return current_inferior ()->args;
}
-char *
+/* Set the arguments for the current inferior. Ownership of
+ NEWARGS is not transferred. */
+
+void
set_inferior_args (char *newargs)
{
- char *saved_args = inferior_args;
-
- inferior_args = newargs;
- inferior_argc = 0;
- inferior_argv = 0;
-
- return saved_args;
+ xfree (current_inferior ()->args);
+ current_inferior ()->args = newargs ? xstrdup (newargs) : NULL;
+ current_inferior ()->argc = 0;
+ current_inferior ()->argv = 0;
}
void
set_inferior_args_vector (int argc, char **argv)
{
- inferior_argc = argc;
- inferior_argv = argv;
+ current_inferior ()->argc = argc;
+ current_inferior ()->argv = argv;
}
/* Notice when `set args' is run. */
static void
-notice_args_set (char *args, int from_tty, struct cmd_list_element *c)
+set_args_command (char *args, int from_tty, struct cmd_list_element *c)
{
- inferior_argc = 0;
- inferior_argv = 0;
+ /* CLI has assigned the user-provided value to inferior_args_scratch.
+ Now route it to current inferior. */
+ set_inferior_args (inferior_args_scratch);
}
/* Notice when `show args' is run. */
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-15 2:09 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-15 2:09 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 19d426401518dbc3d0eab0fbaa86994cc58771a7 (commit)
via 18b61611f5bcc235feb5ceebf19954713feee380 (commit)
from 29a9222cc0f442b1cede4b65c487345786e99613 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 19d426401518dbc3d0eab0fbaa86994cc58771a7
Merge: 29a9222cc0f442b1cede4b65c487345786e99613 18b61611f5bcc235feb5ceebf19954713feee380
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Fri Jan 15 03:09:47 2010 +0100
Merge remote branch 'gdb/master'
commit 18b61611f5bcc235feb5ceebf19954713feee380
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jan 15 00:34:37 2010 +0000
gdb/
* configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
* configure: Regenerate.
* config.in: Regenerate.
* utils.c: Include sys/resource.h.
(dump_core, can_dump_core): New.
(internal_vproblem): Update the comment. Check can_dump_core while
setting dump_core_p. Replace two abort calls by dump_core calls.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 10 ++++++++
gdb/config.in | 6 +++++
gdb/configure | 3 +-
gdb/configure.ac | 3 +-
gdb/utils.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++-------
5 files changed, 75 insertions(+), 11 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 13f6a90..c6bd7b1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
+ * configure: Regenerate.
+ * config.in: Regenerate.
+ * utils.c: Include sys/resource.h.
+ (dump_core, can_dump_core): New.
+ (internal_vproblem): Update the comment. Check can_dump_core while
+ setting dump_core_p. Replace two abort calls by dump_core calls.
+
2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
Eli Zaretskii <eliz@gnu.org>
diff --git a/gdb/config.in b/gdb/config.in
index f9cad98..ebde876 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -165,6 +165,9 @@
/* Define to 1 if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE
+/* Define to 1 if you have the `getrlimit' function. */
+#undef HAVE_GETRLIMIT
+
/* Define to 1 if you have the `getrusage' function. */
#undef HAVE_GETRUSAGE
@@ -366,6 +369,9 @@
/* Define to 1 if you have the `setpgrp' function. */
#undef HAVE_SETPGRP
+/* Define to 1 if you have the `setrlimit' function. */
+#undef HAVE_SETRLIMIT
+
/* Define to 1 if you have the `setsid' function. */
#undef HAVE_SETSID
diff --git a/gdb/configure b/gdb/configure
index ff49f1d..7f26c64 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -11233,7 +11233,8 @@ fi
for ac_func in canonicalize_file_name realpath getrusage getuid \
getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
sigaction sigprocmask sigsetmask socketpair syscall \
- ttrace wborder setlocale iconvlist libiconvlist btowc
+ ttrace wborder setlocale iconvlist libiconvlist btowc \
+ setrlimit getrlimit
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 4831ab0..ebb0a95 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -801,7 +801,8 @@ AC_FUNC_VFORK
AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid \
getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
sigaction sigprocmask sigsetmask socketpair syscall \
- ttrace wborder setlocale iconvlist libiconvlist btowc])
+ ttrace wborder setlocale iconvlist libiconvlist btowc \
+ setrlimit getrlimit])
AM_LANGINFO_CODESET
# Check the return and argument types of ptrace. No canned test for
diff --git a/gdb/utils.c b/gdb/utils.c
index f72a9e3..82a66a1 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -26,6 +26,9 @@
#include "event-top.h"
#include "exceptions.h"
#include "gdbthread.h"
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif /* HAVE_SYS_RESOURCE_H */
#ifdef TUI
#include "tui/tui.h" /* For tui_get_command_dimension. */
@@ -843,6 +846,44 @@ error_stream (struct ui_file *stream)
error (("%s"), message);
}
+/* Dump core trying to increase the core soft limit to hard limit first. */
+
+static void
+dump_core (void)
+{
+#ifdef HAVE_SETRLIMIT
+ struct rlimit rlim = { RLIM_INFINITY, RLIM_INFINITY };
+
+ setrlimit (RLIMIT_CORE, &rlim);
+#endif /* HAVE_SETRLIMIT */
+
+ abort (); /* NOTE: GDB has only three calls to abort(). */
+}
+
+/* Check whether GDB will be able to dump core using the dump_core function. */
+
+static int
+can_dump_core (const char *reason)
+{
+#ifdef HAVE_GETRLIMIT
+ struct rlimit rlim;
+
+ /* Be quiet and assume we can dump if an error is returned. */
+ if (getrlimit (RLIMIT_CORE, &rlim) != 0)
+ return 1;
+
+ if (rlim.rlim_max == 0)
+ {
+ fprintf_unfiltered (gdb_stderr,
+ _("%s\nUnable to dump core, use `ulimit -c unlimited'"
+ " before executing GDB next time.\n"), reason);
+ return 0;
+ }
+#endif /* HAVE_GETRLIMIT */
+
+ return 1;
+}
+
/* Allow the user to configure the debugger behavior with respect to
what to do when an internal problem is detected. */
@@ -893,7 +934,7 @@ internal_vproblem (struct internal_problem *problem,
case 1:
dejavu = 2;
fputs_unfiltered (msg, gdb_stderr);
- abort (); /* NOTE: GDB has only four calls to abort(). */
+ abort (); /* NOTE: GDB has only three calls to abort(). */
default:
dejavu = 3;
/* Newer GLIBC versions put the warn_unused_result attribute
@@ -902,7 +943,7 @@ internal_vproblem (struct internal_problem *problem,
does not fix this problem. This is the solution suggested
at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509. */
if (write (STDERR_FILENO, msg, sizeof (msg)) != sizeof (msg))
- abort (); /* NOTE: GDB has only four calls to abort(). */
+ abort (); /* NOTE: GDB has only three calls to abort(). */
exit (1);
}
}
@@ -951,13 +992,18 @@ further debugging may prove unreliable.", file, line, problem->name, msg);
if (problem->should_dump_core == internal_problem_ask)
{
- /* Default (yes/batch case) is to dump core. This leaves a GDB
- `dropping' so that it is easier to see that something went
- wrong in GDB. */
- dump_core_p = query (_("%s\nCreate a core file of GDB? "), reason);
+ if (!can_dump_core (reason))
+ dump_core_p = 0;
+ else
+ {
+ /* Default (yes/batch case) is to dump core. This leaves a GDB
+ `dropping' so that it is easier to see that something went
+ wrong in GDB. */
+ dump_core_p = query (_("%s\nCreate a core file of GDB? "), reason);
+ }
}
else if (problem->should_dump_core == internal_problem_yes)
- dump_core_p = 1;
+ dump_core_p = can_dump_core (reason);
else if (problem->should_dump_core == internal_problem_no)
dump_core_p = 0;
else
@@ -966,7 +1012,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg);
if (quit_p)
{
if (dump_core_p)
- abort (); /* NOTE: GDB has only four calls to abort(). */
+ dump_core ();
else
exit (1);
}
@@ -976,7 +1022,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg);
{
#ifdef HAVE_WORKING_FORK
if (fork () == 0)
- abort (); /* NOTE: GDB has only four calls to abort(). */
+ dump_core ();
#endif
}
}
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-15 0:52 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-15 0:52 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 29a9222cc0f442b1cede4b65c487345786e99613 (commit)
via 821162aa67ab838e1e255dd6984155306ccffd6d (commit)
via 9f435a0e1d45317a248f21a5d28b7313f9edeac3 (commit)
from 7f3849743b6de6e5408b668d551dfdc4ddf4e4f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 29a9222cc0f442b1cede4b65c487345786e99613
Merge: 7f3849743b6de6e5408b668d551dfdc4ddf4e4f2 821162aa67ab838e1e255dd6984155306ccffd6d
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Fri Jan 15 01:52:50 2010 +0100
Merge remote branch 'gdb/master'
commit 821162aa67ab838e1e255dd6984155306ccffd6d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 15 00:00:33 2010 +0000
*** empty log message ***
commit 9f435a0e1d45317a248f21a5d28b7313f9edeac3
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jan 14 23:00:05 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/version.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 7d79373..0a49d3c 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100114
+#define BFD_VERSION_DATE 20100115
#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/version.in b/gdb/version.in
index be18293..9686b33 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.0.50.20100114-cvs
+7.0.50.20100115-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-14 22:23 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-14 22:23 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 7f3849743b6de6e5408b668d551dfdc4ddf4e4f2 (commit)
via 7f78bf2aa990c4980bf83f812f7917a5508b19d5 (commit)
via 40a2a199076799e00bee32db53fa780b1a087e51 (commit)
via 1fa515a4a9e71b81be0a2e92e8f6d119a0f838ac (commit)
via 6fa4d78a88e9ffb7fd832babc8828b3818421e70 (commit)
via 9285291278038461dd43194ee476176ce5d7b168 (commit)
via ca41910c1055f616f3827bfa7bc7df1c463c4efe (commit)
via b14137c2aaf446aa4224ca4b02868979f8c3aefc (commit)
via 95f4c8f6fa84b6178c7288704414630e3ac15f18 (commit)
via e10f16a4071bc4f8463d3830241f3e8d9cea1598 (commit)
via f19e817ffff116e80510fe466b5e2daffa66770a (commit)
via e743bf11f25585209ba4f3d3b390148f823664a4 (commit)
via 9ecda10462ccd42bfc16c777f50d566a63c5b71a (commit)
via 7895acf88852636d2052c9a8db003556eff6fcaa (commit)
via 54661c25cd2cdeec6ce2d5a379bc9ce0bdceff09 (commit)
via f554b47c628c89c431010a21c28e8b5a2da1f185 (commit)
via 9a0c956e7fb5ca1bb3a3c8b4bf5364efa564c65c (commit)
via c5e9aaba55d342f85d64752402dc1e214363fa98 (commit)
via 085c56bc00e35ce3529d07b215b0d3280ca6403b (commit)
via 5534bd95ec7f4c5d9b11bebd99b4a6e3e2b71226 (commit)
from a00b8d5cbf4ad1af4037538733e4066b2859a52d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 7f3849743b6de6e5408b668d551dfdc4ddf4e4f2
Merge: a00b8d5cbf4ad1af4037538733e4066b2859a52d 7f78bf2aa990c4980bf83f812f7917a5508b19d5
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Thu Jan 14 23:23:00 2010 +0100
Merge remote branch 'gdb/master'
commit 7f78bf2aa990c4980bf83f812f7917a5508b19d5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 14 21:24:04 2010 +0000
gdb/
* NEWS: Document the PIE support.
commit 40a2a199076799e00bee32db53fa780b1a087e51
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 14 21:20:09 2010 +0000
gdb/
* linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
(check_is_pie_binary, _initialize_linux_tdep): Remove.
gdb/testsuite/
* gdb.base/pie-support.exp, gdb.base/pie-support.c: Remove.
commit 1fa515a4a9e71b81be0a2e92e8f6d119a0f838ac
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 14 21:16:51 2010 +0000
gdb/
* solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
Replace exec_entry_point call by bfd_get_start_address.
commit 6fa4d78a88e9ffb7fd832babc8828b3818421e70
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 14 21:14:57 2010 +0000
gdb/
Support Valgrind attachments broken by the PIE support.
* auxv.c: Include gdbcore.h.
(procfs_xfer_auxv): Make static. Reduce its comment. Drop its
parameters ops, object and annex. Remove their assertions.
(ld_so_xfer_auxv, memory_xfer_auxv): New function.
* auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
(memory_xfer_auxv): ... here.
* linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
memory_xfer_auxv.
* procfs.c (procfs_xfer_partial): Likewise.
* solib-svr4.c (svr4_relocate_main_executable): New prototype.
(svr4_special_symbol_handling): Call svr4_relocate_main_executable.
(svr4_solib_create_inferior_hook): Conditionalize the
svr4_relocate_main_executable call.
gdb/testsuite/
* gdb.base/valgrind-db-attach.exp, gdb.base/valgrind-db-attach.c: New.
commit 9285291278038461dd43194ee476176ce5d7b168
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 14 21:11:59 2010 +0000
gdb/testsuite/
* gdb.base/break-interp-lib.c: Include unistd.h, assert.h and stdio.h.
(libfunc): New parameter action. Implement also selectable "sleep".
* gdb.base/break-interp-main.c: Include assert.h.
(libfunc): New parameter action.
(main): New parameters argc and argv. Assert argc. Pass argv.
* gdb.base/break-interp.exp (test_core): Pass the "segv" argument.
(test_attach): New proc.
(test_ld): Pass new "segv" exec parameter. Call also test_attach.
* lib/gdb.exp (core_find): New parameter arg. Pass it to $binfile.
commit ca41910c1055f616f3827bfa7bc7df1c463c4efe
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 14 21:09:04 2010 +0000
gdb/
* solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
target_section. Find SECT in current_target_sections, gdb_assert it.
(elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
New variable abfd.
* symtab.c (lookup_objfile_from_block): Return the binary file instead
of separate debug info file.
gdb/testsuite/
* gdb.base/break-interp.exp (test_core): New proc.
(test_ld): Call it.
commit b14137c2aaf446aa4224ca4b02868979f8c3aefc
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 14 21:04:52 2010 +0000
gdb/testsuite/
* gdb.base/break-interp-main.c, gdb.base/break-interp-lib.c: New.
* gdb.base/break-interp.exp: Exit on skip_shlib_tests. Change $srcfile.
New variables $binfile_lib and $srcfile_lib. Call get_compiler_info
and gdb_compile_shlib. Use new -Wl compiler options.
(dl bt, main bt): New tests.
commit 95f4c8f6fa84b6178c7288704414630e3ac15f18
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 14 21:01:24 2010 +0000
gdb/
Support PIEs with no symfile_objfile.
* exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
* solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
gdb/testsuite/
Support PIEs with no symfile_objfile.
* gdb.base/break-interp.exp: New argument at the test_ld calls.
(test_ld): New parameter trynosym.
(test_ld <$trynosym>): New block.
commit e10f16a4071bc4f8463d3830241f3e8d9cea1598
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Jan 14 20:48:25 2010 +0000
gdb/
* solib-svr4.c (svr4_relocate_main_executable): Move the static exec
code part to ...
(svr4_static_exec_displacement): ... a new function.
(svr4_exec_displacement): New function.
(svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
new_offsets using alloca now. Remove variable old_chain and changed.
Call objfile_relocate unconditionally now.
gdb/testsuite/
* gdb.base/break-interp.exp: New file.
commit f19e817ffff116e80510fe466b5e2daffa66770a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jan 14 19:35:35 2010 +0000
Replace VEX.DNS with VEX.NDS in comments.
2010-01-14 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.h (VexVVVV): Replace VEX.DNS with VEX.NDS in
comments.
commit e743bf11f25585209ba4f3d3b390148f823664a4
Author: Doug Evans <dje@google.com>
Date: Thu Jan 14 18:58:57 2010 +0000
* gdbtypes.c (arch_flags_type): Fix comment.
* gdbtypes.h (arch_composite_type): Fix comment.
commit 9ecda10462ccd42bfc16c777f50d566a63c5b71a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jan 14 17:29:18 2010 +0000
Add names_mm, names_xmm and names_ymm.
2010-01-14 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (names_mm): New.
(intel_names_mm): Likewise.
(att_names_mm): Likewise.
(names_xmm): Likewise.
(intel_names_xmm): Likewise.
(att_names_xmm): Likewise.
(names_ymm): Likewise.
(intel_names_ymm): Likewise.
(att_names_ymm): Likewise.
(print_insn): Set names_mm, names_xmm and names_ymm.
(OP_MMX): Use names_mm, names_xmm and names_ymm.
(OP_XMM): Likewise.
(OP_EM): Likewise.
(OP_EMC): Likewise.
(OP_MXC): Likewise.
(OP_EX): Likewise.
(XMM_Fixup): Likewise.
(OP_VEX): Likewise.
(OP_EX_VexReg): Likewise.
(OP_Vex_2src): Likewise.
(OP_Vex_2src_1): Likewise.
(OP_Vex_2src_2): Likewise.
(OP_REG_VexI4): Likewise.
commit 7895acf88852636d2052c9a8db003556eff6fcaa
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jan 14 15:18:42 2010 +0000
Remove argument name.
2010-01-14 H.J. Lu <hongjiu.lu@intel.com>
* ia64.h (ia64_find_opcode): Remove argument name.
(ia64_find_next_opcode): Likewise.
(ia64_dis_opcode): Likewise.
(ia64_free_opcode): Likewise.
(ia64_find_dependency): Likewise.
commit 54661c25cd2cdeec6ce2d5a379bc9ce0bdceff09
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Jan 14 12:47:44 2010 +0000
2009-01-14 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
to symbol_file_add_from_bfd. Add OSO as separate objfile.
(macho_oso_symfile): Add symfile_flags parameter. Pass it to
macho_add_oso_symfile.
(macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
commit f554b47c628c89c431010a21c28e8b5a2da1f185
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Jan 14 09:26:50 2010 +0000
Tru64: Dead threads are never deleted.
* dec-thread.c (dec_thread_ptid_is_alive): New function.
(dec_thread_count_gdb_threads): Fix counter increment.
(dec_thread_add_gdb_thread): Fix *listp increment.
(resync_thread_list): Fix bug in deletion of dead threads that
caused all threads to be deleted, instead of just the dead ones.
commit 9a0c956e7fb5ca1bb3a3c8b4bf5364efa564c65c
Author: pmuldoon <pmuldoon>
Date: Thu Jan 14 08:03:34 2010 +0000
2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
PR python/10705
* python/python-internal.h: Add lazy_string_object_type
definition.
(create_lazy_string_object, gdbpy_initialize_lazy_string)
(gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
* python/py-value.c (valpy_lazy_string): New function.
(convert_value_from_python): Add lazy string conversion.
* python/py-prettyprint.c (pretty_print_one_value): Check if
return is also a lazy string.
(print_string_repr): Add lazy string printing branch.
(print_children): Likewise.
* python/py-lazy-string.c: New file. Implement lazy strings.
* python/python.c (_initialize_python): Call
gdbpy_initialize_lazy_string.
* varobj.c (value_get_print_value): Add lazy string printing
branch. Account for encoding.
* c-lang.c (c_printstr): Account for new encoding argument. If
encoding is NULL, find encoding suited for type, otherwise use
user encoding.
* language.h (language_defn): Add encoding argument.
(LA_PRINT_STRING): Likewise.
* language.c (unk_lang_printstr): Update to reflect new encoding
argument to language_defn.
* ada-lang.h (ada_printstr): Likewise.
* c-lang.h (c_printstr): Likewise.
* p-lang.h (pascal_printstr);
* f-lang.c (f_printstr): Likewise.
* m2-lang.c (m2_printstr): Likewise.
* objc-lang.c (objc_printstr): Likewise.
* p-lang.c (pascal_printstr): Likewise.
* scm-lang.c (scm_printstr): Likewise.
* c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
encoding argument.
* ada-valprint.c (ada_printstr): Likewise.
* f-valprint.c (f_val_print): Likewise
* m2-valprint.c (m2_val_print): Likewise.
* p-valprint.c (pascal_val_print): Likewise.
* expprint.c (print_subexp_standard): Likewise.
* valprint.c (val_print_string): Likewise.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-lazy-string.o): New rule.
2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Values From Inferior): Document lazy_string value
method.
(Python API): Add Lazy strings menu item.
(Lazy Strings In Python): New node.
2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-value.exp (test_lazy_strings): Add lazy string test.
* gdb.python/py-prettyprint.py (pp_ls): New printer.
* gdb.python/py-prettyprint.exp (run_lang_tests): Add lazy string
test.
* gdb.python/py-prettyprint.c: Define lazystring test structure.
* gdb.python/py-mi.exp: Add lazy string test.
commit c5e9aaba55d342f85d64752402dc1e214363fa98
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 14 00:00:05 2010 +0000
*** empty log message ***
commit 085c56bc00e35ce3529d07b215b0d3280ca6403b
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Jan 13 23:00:04 2010 +0000
daily update
commit 5534bd95ec7f4c5d9b11bebd99b4a6e3e2b71226
Author: Chao-ying Fu <fu@mips.com>
Date: Wed Jan 13 22:30:53 2010 +0000
2010-01-13 Chao-ying Fu <fu@mips.com>
* elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
It is true for all CPUs.
(jal_reloc_p): New function.
(mips_elf_calculate_relocation): Rename require_jalxp to
cross_mode_jump_p.
Update comment for CROSS_MODE_JUMP_P.
Set up cross_mode_jump_p based on the mode change.
(mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
Update comment for CROSS_MODE_JUMP_P.
Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
Use !cross_mode_jump_p to guard conversion.
Convert "jr t9" to "b", if possible.
(_bfd_mips_elf_relocate_section): Rename require_jalx to
cross_mode_jump_p.
Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
Pass cross_mode_jump_p to call mips_elf_perform_relocation.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 19 +
bfd/elfxx-mips.c | 60 ++-
bfd/version.h | 2 +-
gdb/ChangeLog | 127 +++++
gdb/Makefile.in | 6 +
gdb/NEWS | 5 +
gdb/ada-lang.h | 2 +-
gdb/ada-valprint.c | 2 +-
gdb/auxv.c | 153 +++++-
gdb/auxv.h | 6 +-
gdb/c-lang.c | 7 +-
gdb/c-lang.h | 2 +-
gdb/c-valprint.c | 3 +-
gdb/dec-thread.c | 42 +-
gdb/doc/ChangeLog | 7 +
gdb/doc/gdb.texinfo | 80 +++
gdb/exec.c | 32 ++-
gdb/expprint.c | 6 +-
gdb/f-lang.c | 2 +-
gdb/f-valprint.c | 2 +-
gdb/gdbtypes.c | 2 +-
gdb/gdbtypes.h | 2 +-
gdb/language.c | 2 +-
gdb/language.h | 6 +-
gdb/linux-nat.c | 2 +-
gdb/linux-tdep.c | 33 --
gdb/m2-lang.c | 2 +-
gdb/m2-valprint.c | 4 +-
gdb/machoread.c | 26 +-
gdb/objc-lang.c | 2 +-
gdb/p-lang.c | 2 +-
gdb/p-lang.h | 2 +-
gdb/p-valprint.c | 6 +-
gdb/procfs.c | 2 +-
gdb/python/py-lazy-string.c | 291 +++++++++++
gdb/python/py-prettyprint.c | 73 +++-
gdb/python/py-value.c | 40 ++
gdb/python/python-internal.h | 7 +
gdb/python/python.c | 1 +
gdb/scm-lang.c | 2 +-
gdb/solib-svr4.c | 226 +++++----
gdb/symtab.c | 7 +-
gdb/testsuite/ChangeLog | 53 ++
.../gdb.base/{pie-support.c => break-interp-lib.c} | 30 +-
.../{pie-support.c => break-interp-main.c} | 20 +-
gdb/testsuite/gdb.base/break-interp.exp | 542 ++++++++++++++++++++
gdb/testsuite/gdb.base/pie-support.exp | 58 ---
.../{pie-support.c => valgrind-db-attach.c} | 24 +-
gdb/testsuite/gdb.base/valgrind-db-attach.exp | 76 +++
gdb/testsuite/gdb.python/py-mi.exp | 4 +
gdb/testsuite/gdb.python/py-prettyprint.c | 8 +
gdb/testsuite/gdb.python/py-prettyprint.exp | 1 +
gdb/testsuite/gdb.python/py-prettyprint.py | 15 +
gdb/testsuite/gdb.python/py-value.c | 2 +
gdb/testsuite/gdb.python/py-value.exp | 14 +
gdb/testsuite/lib/gdb.exp | 4 +-
gdb/valprint.c | 3 +-
gdb/varobj.c | 36 +-
gdb/version.in | 2 +-
include/opcode/ChangeLog | 8 +
include/opcode/ia64.h | 12 +-
opcodes/ChangeLog | 31 ++
opcodes/i386-dis.c | 162 ++++---
opcodes/i386-opc.h | 4 +-
64 files changed, 2010 insertions(+), 404 deletions(-)
create mode 100644 gdb/python/py-lazy-string.c
copy gdb/testsuite/gdb.base/{pie-support.c => break-interp-lib.c} (66%)
copy gdb/testsuite/gdb.base/{pie-support.c => break-interp-main.c} (78%)
create mode 100644 gdb/testsuite/gdb.base/break-interp.exp
delete mode 100644 gdb/testsuite/gdb.base/pie-support.exp
rename gdb/testsuite/gdb.base/{pie-support.c => valgrind-db-attach.c} (78%)
create mode 100644 gdb/testsuite/gdb.base/valgrind-db-attach.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e8cadfb..fd874b1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,22 @@
+2010-01-13 Chao-ying Fu <fu@mips.com>
+
+ * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
+ It is true for all CPUs.
+ (jal_reloc_p): New function.
+ (mips_elf_calculate_relocation): Rename require_jalxp to
+ cross_mode_jump_p.
+ Update comment for CROSS_MODE_JUMP_P.
+ Set up cross_mode_jump_p based on the mode change.
+ (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
+ Update comment for CROSS_MODE_JUMP_P.
+ Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
+ Use !cross_mode_jump_p to guard conversion.
+ Convert "jr t9" to "b", if possible.
+ (_bfd_mips_elf_relocate_section): Rename require_jalx to
+ cross_mode_jump_p.
+ Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
+ Pass cross_mode_jump_p to call mips_elf_perform_relocation.
+
2010-01-13 Nick Clifton <nickc@redhat.com>
* cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index b649278..555f021 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -680,6 +680,11 @@ static bfd *reldyn_sorting_bfd;
all CPUs. */
#define JALR_TO_BAL_P(abfd) 1
+/* True if ABFD is for CPUs that are faster if JR is converted to B.
+ This should be safe for all architectures. We enable this predicate for
+ all CPUs. */
+#define JR_TO_B_P(abfd) 1
+
/* True if ABFD is a PIC object. */
#define PIC_OBJECT_P(abfd) \
((elf_elfheader (abfd)->e_flags & EF_MIPS_PIC) != 0)
@@ -1871,6 +1876,12 @@ mips16_call_reloc_p (int r_type)
return r_type == R_MIPS16_26 || r_type == R_MIPS16_CALL16;
}
+static inline bfd_boolean
+jal_reloc_p (int r_type)
+{
+ return r_type == R_MIPS_26 || r_type == R_MIPS16_26;
+}
+
void
_bfd_mips16_elf_reloc_unshuffle (bfd *abfd, int r_type,
bfd_boolean jal_shuffle, bfd_byte *data)
@@ -4771,8 +4782,8 @@ mips_elf_relocation_needs_la25_stub (bfd *input_bfd, int r_type)
RELOCATION; RELOCATION->R_ADDEND is ignored.
The result of the relocation calculation is stored in VALUEP.
- REQUIRE_JALXP indicates whether or not the opcode used with this
- relocation must be JALX.
+ On exit, set *CROSS_MODE_JUMP_P to true if the relocation field
+ is a MIPS16 jump to non-MIPS16 code, or vice versa.
This function returns bfd_reloc_continue if the caller need take no
further action regarding this relocation, bfd_reloc_notsupported if
@@ -4787,7 +4798,8 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
bfd_vma addend, reloc_howto_type *howto,
Elf_Internal_Sym *local_syms,
asection **local_sections, bfd_vma *valuep,
- const char **namep, bfd_boolean *require_jalxp,
+ const char **namep,
+ bfd_boolean *cross_mode_jump_p,
bfd_boolean save_addend)
{
/* The eventual value we will return. */
@@ -5076,10 +5088,11 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
+ h->la25_stub->offset);
/* Calls from 16-bit code to 32-bit code and vice versa require the
- special jalx instruction. */
- *require_jalxp = (!info->relocatable
- && (((r_type == R_MIPS16_26) && !target_is_16_bit_code_p)
- || ((r_type == R_MIPS_26) && target_is_16_bit_code_p)));
+ mode change. */
+ *cross_mode_jump_p = !info->relocatable
+ && ((r_type == R_MIPS16_26 && !target_is_16_bit_code_p)
+ || ((r_type == R_MIPS_26 || r_type == R_MIPS_JALR)
+ && target_is_16_bit_code_p));
local_p = mips_elf_local_relocation_p (input_bfd, relocation,
local_sections, TRUE);
@@ -5533,9 +5546,9 @@ mips_elf_obtain_contents (reloc_howto_type *howto,
/* It has been determined that the result of the RELOCATION is the
VALUE. Use HOWTO to place VALUE into the output file at the
appropriate position. The SECTION is the section to which the
- relocation applies. If REQUIRE_JALX is TRUE, then the opcode used
- for the relocation must be either JAL or JALX, and it is
- unconditionally converted to JALX.
+ relocation applies.
+ CROSS_MODE_JUMP_P is true if the relocation field
+ is a MIPS16 jump to non-MIPS16 code, or vice versa.
Returns FALSE if anything goes wrong. */
@@ -5545,7 +5558,7 @@ mips_elf_perform_relocation (struct bfd_link_info *info,
const Elf_Internal_Rela *relocation,
bfd_vma value, bfd *input_bfd,
asection *input_section, bfd_byte *contents,
- bfd_boolean require_jalx)
+ bfd_boolean cross_mode_jump_p)
{
bfd_vma x;
bfd_byte *location;
@@ -5566,7 +5579,7 @@ mips_elf_perform_relocation (struct bfd_link_info *info,
x |= (value & howto->dst_mask);
/* If required, turn JAL into JALX. */
- if (require_jalx)
+ if (cross_mode_jump_p && jal_reloc_p (r_type))
{
bfd_boolean ok;
bfd_vma opcode = x >> 26;
@@ -5600,15 +5613,19 @@ mips_elf_perform_relocation (struct bfd_link_info *info,
x = (x & ~(0x3f << 26)) | (jalx_opcode << 26);
}
- /* Try converting JAL and JALR to BAL, if the target is in range. */
+ /* Try converting JAL to BAL and J(AL)R to B(AL), if the target is in
+ range. */
if (!info->relocatable
- && !require_jalx
+ && !cross_mode_jump_p
&& ((JAL_TO_BAL_P (input_bfd)
&& r_type == R_MIPS_26
&& (x >> 26) == 0x3) /* jal addr */
|| (JALR_TO_BAL_P (input_bfd)
&& r_type == R_MIPS_JALR
- && x == 0x0320f809))) /* jalr t9 */
+ && x == 0x0320f809) /* jalr t9 */
+ || (JR_TO_B_P (input_bfd)
+ && r_type == R_MIPS_JALR
+ && x == 0x03200008))) /* jr t9 */
{
bfd_vma addr;
bfd_vma dest;
@@ -5624,7 +5641,12 @@ mips_elf_perform_relocation (struct bfd_link_info *info,
dest = value;
off = dest - addr;
if (off <= 0x1ffff && off >= -0x20000)
- x = 0x04110000 | (((bfd_vma) off >> 2) & 0xffff); /* bal addr */
+ {
+ if (x == 0x03200008) /* jr t9 */
+ x = 0x10000000 | (((bfd_vma) off >> 2) & 0xffff); /* b addr */
+ else
+ x = 0x04110000 | (((bfd_vma) off >> 2) & 0xffff); /* bal addr */
+ }
}
/* Put the value into the output. */
@@ -8886,7 +8908,7 @@ _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
const char *name;
bfd_vma value = 0;
reloc_howto_type *howto;
- bfd_boolean require_jalx;
+ bfd_boolean cross_mode_jump_p;
/* TRUE if the relocation is a RELA relocation, rather than a
REL relocation. */
bfd_boolean rela_relocation_p = TRUE;
@@ -9086,7 +9108,7 @@ _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
input_section, info, rel,
addend, howto, local_syms,
local_sections, &value,
- &name, &require_jalx,
+ &name, &cross_mode_jump_p,
use_saved_addend_p))
{
case bfd_reloc_continue:
@@ -9198,7 +9220,7 @@ _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
/* Actually perform the relocation. */
if (! mips_elf_perform_relocation (info, howto, rel, value,
input_bfd, input_section,
- contents, require_jalx))
+ contents, cross_mode_jump_p))
return FALSE;
}
diff --git a/bfd/version.h b/bfd/version.h
index e30e772..7d79373 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100113
+#define BFD_VERSION_DATE 20100114
#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 ba57323..13f6a90 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,130 @@
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Eli Zaretskii <eliz@gnu.org>
+
+ * NEWS: Document the PIE support.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
+ (check_is_pie_binary, _initialize_linux_tdep): Remove.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
+ Replace exec_entry_point call by bfd_get_start_address.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Support Valgrind attachments broken by the PIE support.
+ * auxv.c: Include gdbcore.h.
+ (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
+ parameters ops, object and annex. Remove their assertions.
+ (ld_so_xfer_auxv, memory_xfer_auxv): New function.
+ * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
+ (memory_xfer_auxv): ... here.
+ * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
+ memory_xfer_auxv.
+ * procfs.c (procfs_xfer_partial): Likewise.
+ * solib-svr4.c (svr4_relocate_main_executable): New prototype.
+ (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
+ (svr4_solib_create_inferior_hook): Conditionalize the
+ svr4_relocate_main_executable call.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
+ target_section. Find SECT in current_target_sections, gdb_assert it.
+ (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
+ New variable abfd.
+ * symtab.c (lookup_objfile_from_block): Return the binary file instead
+ of separate debug info file.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Support PIEs with no symfile_objfile.
+ * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
+ * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
+ code part to ...
+ (svr4_static_exec_displacement): ... a new function.
+ (svr4_exec_displacement): New function.
+ (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
+ new_offsets using alloca now. Remove variable old_chain and changed.
+ Call objfile_relocate unconditionally now.
+
+2010-01-14 Doug Evans <dje@google.com>
+
+ * gdbtypes.c (arch_flags_type): Fix comment.
+ * gdbtypes.h (arch_composite_type): Fix comment.
+
+2009-01-14 Tristan Gingold <gingold@adacore.com>
+
+ * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
+ Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
+ to symbol_file_add_from_bfd. Add OSO as separate objfile.
+ (macho_oso_symfile): Add symfile_flags parameter. Pass it to
+ macho_add_oso_symfile.
+ (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
+
+2010-01-14 Joel Brobecker <brobecker@adacore.com>
+
+ Tru64: Dead threads are never deleted.
+ * dec-thread.c (dec_thread_ptid_is_alive): New function.
+ (dec_thread_count_gdb_threads): Fix counter increment.
+ (dec_thread_add_gdb_thread): Fix *listp increment.
+ (resync_thread_list): Fix bug in deletion of dead threads that
+ caused all threads to be deleted, instead of just the dead ones.
+
+2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
+
+ PR python/10705
+
+ * python/python-internal.h: Add lazy_string_object_type
+ definition.
+ (create_lazy_string_object, gdbpy_initialize_lazy_string)
+ (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
+ * python/py-value.c (valpy_lazy_string): New function.
+ (convert_value_from_python): Add lazy string conversion.
+ * python/py-prettyprint.c (pretty_print_one_value): Check if
+ return is also a lazy string.
+ (print_string_repr): Add lazy string printing branch.
+ (print_children): Likewise.
+ * python/py-lazy-string.c: New file. Implement lazy strings.
+ * python/python.c (_initialize_python): Call
+ gdbpy_initialize_lazy_string.
+ * varobj.c (value_get_print_value): Add lazy string printing
+ branch. Account for encoding.
+ * c-lang.c (c_printstr): Account for new encoding argument. If
+ encoding is NULL, find encoding suited for type, otherwise use
+ user encoding.
+ * language.h (language_defn): Add encoding argument.
+ (LA_PRINT_STRING): Likewise.
+ * language.c (unk_lang_printstr): Update to reflect new encoding
+ argument to language_defn.
+ * ada-lang.h (ada_printstr): Likewise.
+ * c-lang.h (c_printstr): Likewise.
+ * p-lang.h (pascal_printstr);
+ * f-lang.c (f_printstr): Likewise.
+ * m2-lang.c (m2_printstr): Likewise.
+ * objc-lang.c (objc_printstr): Likewise.
+ * p-lang.c (pascal_printstr): Likewise.
+ * scm-lang.c (scm_printstr): Likewise.
+ * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
+ encoding argument.
+ * ada-valprint.c (ada_printstr): Likewise.
+ * f-valprint.c (f_val_print): Likewise
+ * m2-valprint.c (m2_val_print): Likewise.
+ * p-valprint.c (pascal_val_print): Likewise.
+ * expprint.c (print_subexp_standard): Likewise.
+ * valprint.c (val_print_string): Likewise.
+ * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
+ (SUBDIR_PYTHON_SRCS): Likewise.
+ (py-lazy-string.o): New rule.
+
+
2010-01-13 Doug Evans <dje@google.com>
* mi/mi-main.c (list_available_thread_groups): Avoid "may be used
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 31a0f76..ff8b86e 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -270,6 +270,7 @@ SUBDIR_PYTHON_OBS = \
py-cmd.o \
py-frame.o \
py-function.o \
+ py-lazy-string.o \
py-objfile.o \
py-prettyprint.o \
py-type.o \
@@ -280,6 +281,7 @@ SUBDIR_PYTHON_SRCS = \
python/py-cmd.c \
python/py-frame.c \
python/py-function.c \
+ python/py-lazy-string.c \
python/py-objfile.c \
python/py-prettyprint.c \
python/py-type.c \
@@ -1980,6 +1982,10 @@ py-function.o: $(srcdir)/python/py-function.c
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-function.c
$(POSTCOMPILE)
+py-lazy-string.o: $(srcdir)/python/py-lazy-string.c
+ $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-lazy-string.c
+ $(POSTCOMPILE)
+
py-objfile.o: $(srcdir)/python/py-objfile.c
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-objfile.c
$(POSTCOMPILE)
diff --git a/gdb/NEWS b/gdb/NEWS
index 657d0a2..17d64fb 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -189,6 +189,11 @@ much more reliable. In particular:
- GDB is now able to backtrace through the signal handler for
non-threaded programs.
+PIE (Position Independent Executable) programs debugging is now supported.
+This includes debugging execution of PIC (Position Independent Code) shared
+libraries although for that, it should be possible to run such libraries as an
+executable program.
+
*** Changes in GDB 7.0
* GDB now has an interface for JIT compilation. Applications that
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index 5568ed0..552f13c 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -174,7 +174,7 @@ extern void ada_emit_char (int, struct type *, struct ui_file *, int, int);
extern void ada_printchar (int, struct type *, struct ui_file *);
extern void ada_printstr (struct ui_file *, struct type *, const gdb_byte *,
- unsigned int, int,
+ unsigned int, const char *, int,
const struct value_print_options *);
struct value *ada_convert_actual (struct value *actual,
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index 6e112d6..5590100 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -556,7 +556,7 @@ printstr (struct ui_file *stream, struct type *elttype, const gdb_byte *string,
void
ada_printstr (struct ui_file *stream, struct type *type, const gdb_byte *string,
- unsigned int length, int force_ellipses,
+ unsigned int length, const char *encoding, int force_ellipses,
const struct value_print_options *options)
{
printstr (stream, type, string, length, force_ellipses, TYPE_LENGTH (type),
diff --git a/gdb/auxv.c b/gdb/auxv.c
index 7c9dfc0..cf2dc7d 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -25,6 +25,7 @@
#include "inferior.h"
#include "valprint.h"
#include "gdb_assert.h"
+#include "gdbcore.h"
#include "auxv.h"
#include "elf/common.h"
@@ -33,15 +34,11 @@
#include <fcntl.h>
-/* This function is called like a to_xfer_partial hook, but must be
- called with TARGET_OBJECT_AUXV. It handles access via
- /proc/PID/auxv, which is a common method for native targets. */
+/* This function handles access via /proc/PID/auxv, which is a common method
+ for native targets. */
-LONGEST
-procfs_xfer_auxv (struct target_ops *ops,
- enum target_object object,
- const char *annex,
- gdb_byte *readbuf,
+static LONGEST
+procfs_xfer_auxv (gdb_byte *readbuf,
const gdb_byte *writebuf,
ULONGEST offset,
LONGEST len)
@@ -50,9 +47,6 @@ procfs_xfer_auxv (struct target_ops *ops,
int fd;
LONGEST n;
- gdb_assert (object == TARGET_OBJECT_AUXV);
- gdb_assert (readbuf || writebuf);
-
pathname = xstrprintf ("/proc/%d/auxv", PIDGET (inferior_ptid));
fd = open (pathname, writebuf != NULL ? O_WRONLY : O_RDONLY);
xfree (pathname);
@@ -72,6 +66,143 @@ procfs_xfer_auxv (struct target_ops *ops,
return n;
}
+/* This function handles access via ld.so's symbol `_dl_auxv'. */
+
+static LONGEST
+ld_so_xfer_auxv (gdb_byte *readbuf,
+ const gdb_byte *writebuf,
+ ULONGEST offset,
+ LONGEST len)
+{
+ struct minimal_symbol *msym;
+ CORE_ADDR data_address, pointer_address;
+ struct type *ptr_type = builtin_type (target_gdbarch)->builtin_data_ptr;
+ size_t ptr_size = TYPE_LENGTH (ptr_type);
+ size_t auxv_pair_size = 2 * ptr_size;
+ gdb_byte *ptr_buf = alloca (ptr_size);
+ LONGEST retval;
+ size_t block;
+
+ msym = lookup_minimal_symbol ("_dl_auxv", NULL, NULL);
+ if (msym == NULL)
+ return -1;
+
+ if (MSYMBOL_SIZE (msym) != ptr_size)
+ return -1;
+
+ /* POINTER_ADDRESS is a location where the `_dl_auxv' variable resides.
+ DATA_ADDRESS is the inferior value present in `_dl_auxv', therefore the
+ real inferior AUXV address. */
+
+ pointer_address = SYMBOL_VALUE_ADDRESS (msym);
+
+ data_address = read_memory_typed_address (pointer_address, ptr_type);
+
+ /* Possibly still not initialized such as during an inferior startup. */
+ if (data_address == 0)
+ return -1;
+
+ data_address += offset;
+
+ if (writebuf != NULL)
+ {
+ if (target_write_memory (data_address, writebuf, len) == 0)
+ return len;
+ else
+ return -1;
+ }
+
+ /* Stop if trying to read past the existing AUXV block. The final AT_NULL
+ was already returned before. */
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-13 20:53 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-13 20:53 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via a00b8d5cbf4ad1af4037538733e4066b2859a52d (commit)
via 0a2c624e9dee938935a03c9690d16cf7dce29a19 (commit)
via b7f1829a410d9da8b587de8c12bf65aa66b3e67e (commit)
via 9e1f4579854d83d6cdebdd4703c4f7cdc6bb254d (commit)
via 9946d3cb2d159a4804ba94ef095c20c5518f570c (commit)
via d681e2de476caba8550010a9f9b60b097602f173 (commit)
via 138c710a48b8dd70417e3f93e63b332593e12801 (commit)
via 43e0d663a8a71bfdc2473b9bf1b58cd9570dcbd3 (commit)
via 2153e73438443e9ab252ca87a574af26df5d0c2f (commit)
via 1f47c2a11b7ff46aa892f6d6aff1af40a521fe79 (commit)
via 2cd011858beb75fc85c426b8b0d5b60f78c1549b (commit)
via 5f97381cb81ccbc222100269e31d1bee78d7c713 (commit)
via e6b77557709f3ca348670c3370c4d86b483c605b (commit)
via a6582dff1d27fe39a52961aed0938c7844e17a96 (commit)
via 10ca2da62b685d2e2139326872adb1ce9107968a (commit)
via 3d972c80ab566c07f5e55d356821fb883c9ade88 (commit)
via 4f72a1afaa30df074bad0c40f6ebd95787dbaa9a (commit)
via 5f898a6ec8d5cb2319e0a26f8c9372368c15957b (commit)
via bc861dbe9f8bcb20378d7b9e30bbe948f8743ba6 (commit)
via 6556d1466a9d3324148c4626e2bae9fb8c062259 (commit)
via 51f7760869a26128fbfd7b7315336e9663d409cc (commit)
via d32ed83048a8aaeafee7ca99d1a90c852d41faa4 (commit)
via a9eee8113b56c3f7b0dce42900673652bc252ef7 (commit)
via a56f116799bcb779e22ab86f8812bc18089e663a (commit)
via a3736fc3d2975da731d9058f3c5c4c1a861c5be7 (commit)
via fd2c1c20de4170e3415914c0b75e70d3d48a17ac (commit)
via 4cd89ee43180608cf999088a49cb81e8491e9860 (commit)
via 43df2579a2dfa3fe8796578e2843767c524d6b8e (commit)
via a8aadfb8404a8728f310770c3c33dcc10c609218 (commit)
via 61e015cf88aa45d507d5cb6ac6e4fd36dc8c377c (commit)
via a66d6ab2060b3881afee8dd7e2993d30bffc4666 (commit)
via a97de3f411e7dc3b01d16e1e257c3afda258795b (commit)
via c92e3664625fe6f53cbd3b8b047d5c2adb66fe43 (commit)
via 19491562f0a5d09b7d6646625d721449f37533f8 (commit)
via 1b750f87d5d0706353b636f661fa3e893373df9b (commit)
via 74dbc165a236e79bf612d17549770cdae8202e85 (commit)
via 9a4623d4c2505221991f651d17897e01a61c620d (commit)
via 8a7cf9889abddc6906944c12a0d0ad111874d3a1 (commit)
via 7f0acce90642603a8d584a1ef9246685979d37fa (commit)
via 744d63ec281698f51d8b890f33ecd712c4105b30 (commit)
from 5f6ec78c0fe30ea8aedefb7f031ee846d46bc78d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit a00b8d5cbf4ad1af4037538733e4066b2859a52d
Merge: 5f6ec78c0fe30ea8aedefb7f031ee846d46bc78d 0a2c624e9dee938935a03c9690d16cf7dce29a19
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Wed Jan 13 21:52:57 2010 +0100
Merge remote branch 'gdb/master'
commit 0a2c624e9dee938935a03c9690d16cf7dce29a19
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Jan 13 16:06:11 2010 +0000
Update comments
2010-01-13 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (print_insn): Update comments.
commit b7f1829a410d9da8b587de8c12bf65aa66b3e67e
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Jan 13 14:34:12 2010 +0000
* cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
"m32c" returns the m32c arch_info_struct and not the m16c
arch_info_struct.
(arch_info_struct): Use the new scan function.
(bfd_m32c_arch): Likewise.
commit 9e1f4579854d83d6cdebdd4703c4f7cdc6bb254d
Author: Anthony Green <green@redhat.com>
Date: Wed Jan 13 14:08:36 2010 +0000
Add period to sentence in comment.
commit 9946d3cb2d159a4804ba94ef095c20c5518f570c
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Jan 13 11:49:36 2010 +0000
2010-01-13 Tristan Gingold <gingold@adacore.com>
* config.bfd: Remove duplicated target vector for i386-*-darwin.
Appends new arch instead of overriding.
Use mach_o_x86_64_vec for x86_64-*-darwin.
* configure.in: Add mach_o_x86_64_vec.
* configure: Regenerate.
* targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
* Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
(BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
* Makefile.in: Regenerate.
* mach-o-x86-64.c: New file.
commit d681e2de476caba8550010a9f9b60b097602f173
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Jan 13 11:35:19 2010 +0000
2010-01-13 Tristan Gingold <gingold@adacore.com>
* reloc.c: Add MACH_O_X86_64 relocations.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
commit 138c710a48b8dd70417e3f93e63b332593e12801
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jan 13 11:09:31 2010 +0000
Add new DW_AT_use_GNAT_descriptive_type CU attribute.
* dwarf2.h (dwarf_attribute): Add DW_AT_use_GNAT_descriptive_type.
commit 43e0d663a8a71bfdc2473b9bf1b58cd9570dcbd3
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Jan 13 08:48:26 2010 +0000
2010-01-13 Tristan Gingold <gingold@adacore.com>
* archive.c (normalize): Use lbasename.
(bfd_bsd_truncate_arname): Ditto.
(bfd_gnu_truncate_arname): Ditto.
commit 2153e73438443e9ab252ca87a574af26df5d0c2f
Author: Anthony Green <green@redhat.com>
Date: Wed Jan 13 08:28:26 2010 +0000
Initialize SIM_DESC properly.
commit 1f47c2a11b7ff46aa892f6d6aff1af40a521fe79
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed Jan 13 05:20:49 2010 +0000
add missing file
commit 2cd011858beb75fc85c426b8b0d5b60f78c1549b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Jan 13 04:03:19 2010 +0000
Remove rex_original
2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (rex_original): Removed.
(ckprefix): Remove rex_original.
(print_insn): Update comments.
commit 5f97381cb81ccbc222100269e31d1bee78d7c713
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 13 00:00:03 2010 +0000
*** empty log message ***
commit e6b77557709f3ca348670c3370c4d86b483c605b
Author: Doug Evans <dje@google.com>
Date: Tue Jan 12 23:07:37 2010 +0000
tweak previous entry to keep chronology right
(different timezones made the day off by one)
commit a6582dff1d27fe39a52961aed0938c7844e17a96
Author: Doug Evans <dje@google.com>
Date: Tue Jan 12 23:05:51 2010 +0000
* mi/mi-main.c (list_available_thread_groups): Avoid "may be used
uninitialized" warning from gcc on local `tree'.
commit 10ca2da62b685d2e2139326872adb1ce9107968a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Jan 12 23:00:04 2010 +0000
daily update
commit 3d972c80ab566c07f5e55d356821fb883c9ade88
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Tue Jan 12 21:40:23 2010 +0000
Implement core awareness.
* bcache.c (compare_ints): Remove
(print_percentage): Use compare_positive_ints.
* defs.h (compare_positive_ints): Declare.
* linux-nat.h (struct lin_lwp): New field core.
(linux_nat_core_of_thread_1): Declare.
* linux-nat.c (add_lwp): Init the 'core' field.
(linux_nat_wait_1): Record the core.
(linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
(linux_nat_add_target): Register the above.
* linux-thread-db.c (update_thread_core): New.
(thread_db_find_new_threads): Update core information for
every thread.
* remote.c (struct private_thread_info): New.
(free_private_thread_info, demand_private_info): New.
(PACKET_qXfer_threads, use_osdata_threads): New.
(struct thread_item, threads_parsing_context
(start_thread, end_thread, thread_attributes)
(thread_children, threads_children, threads_elements): New.
(remote_threads_info): Try qXfer:threads before anything
else.
(remote_protocol_packets): Register qXfer:threads.
(remote_open_1): Init use_osdata_threads.
(struct stop_reply): New field 'core'.
(remote_parse_stop_reply): Parse core number.
(process_stop_reply): Record core number.
(remote_xfer_partial): Handle qXfer:threads.
(remote_core_of_thread): New.
(init_remote_ops): Register remote_core_of_thread.
(_initialize_remote): Register qXfer:read.
* target.c (target_core_of_thread): New
* target.h (enum target_object): New value TARGET_OBJECT_THREADS.
(struct target_ops): New field to_core_of_threads.
(target_core_of_thread): Declare.
* gdbthread.h (struct thread_info): New field private_dtor.
* thread.c (print_thread_info): Report the core.
* ui-out.c (MAX_UI_OUT_LEVELS): Increase.
* utils.c (compare_positive_ints): New.
* features/threads.dtd: New.
* mi/mi-interp.c (mi_on_normal_stop): Report the core.
* mi/mi-main.c (struct collect_cores_data, collect_cores)
(do_nothing, free_vector_of_osdata_items)
(splay_tree_int_comparator, free_splay_tree): New.
(print_one_inferior_data): Implemented printing of selected
inferiors. Collect and print cores.
(output_cores): New.
(mi_cmd_list_thread_groups): Support --recurse. Permit specifying
thread groups together with --available.
commit 4f72a1afaa30df074bad0c40f6ebd95787dbaa9a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jan 12 12:22:49 2010 +0000
gdb/
* configure: Regenerate (for _STRUCTURED_PROC).
commit 5f898a6ec8d5cb2319e0a26f8c9372368c15957b
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Jan 12 10:16:49 2010 +0000
bfd/
2010-01-12 Tristan Gingold <gingold@adacore.com>
* makefile.vms (CFLAGS): Turns warnings into informational messages.
binutils/
2010-01-12 Tristan Gingold <gingold@adacore.com>
* makefile.vms (CFLAGS): Turns warnings into informational messages.
commit bc861dbe9f8bcb20378d7b9e30bbe948f8743ba6
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Jan 12 08:50:44 2010 +0000
Delete dead function.
* ada-lang.c (extract_string): Delete. No longer used.
commit 6556d1466a9d3324148c4626e2bae9fb8c062259
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Jan 12 07:51:08 2010 +0000
Fix -Wunused warning in dec-thread.c.
* dec-thread.c (dec_thread_count_gdb_threads)
(dec_thread_add_gdb_thread): Prevent -Wunused warning.
commit 51f7760869a26128fbfd7b7315336e9663d409cc
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Jan 12 07:45:51 2010 +0000
* ada-valprint.c (ada_print_floating): Remove trailing space.
commit d32ed83048a8aaeafee7ca99d1a90c852d41faa4
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Jan 12 05:48:56 2010 +0000
gdb/ChangeLog:
Add support for DW_AT_GNAT_descriptive_type.
* gdbtypes.h (enum type_specific_kind): New enum.
(struct main_type) [type_specific_field]: New component.
[type_specific]: Add new component "gnat_stuff".
(struct gnat_aux_type): New type.
(INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
(HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
(gnat_aux_default, allocate_gnat_aux_type): Add declaration.
(INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
(TYPE_SPECIFIC_FIELD): New macros.
(TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
type does not hold any cplus-specific data.
(TYPE_RAW_CPLUS_SPECIFIC): New macro.
(TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
(TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
cplus-specific data.
* gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
Set new component TYPE_SPECIFIC_FIELD (type).
(gnat_aux_default): New constant.
(allocate_gnat_aux_type): New function.
(init_type): Add initialization the type-specific stuff for
TYPE_CODE_FLT and TYPE_CODE_FUNC types.
(print_gnat_stuff): New function.
(recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
specific data. Adjust code that prints the contents of the
type-specific union using the TYPE_SPECIFIC_FIELD value.
* dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
the type cplus stuff for Ada types.
(dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
Error out if these routines are called with an Ada type.
(read_structure_type, read_array_type, read_subrange_type):
Add call to set_descriptive_type.
(set_die_type): Initialize the gnat-specific data if necessary.
(need_gnat_info, die_descriptive_type, set_descriptive_type):
New functions.
* ada-lang.c (decode_constrained_packed_array_type): Use
decode_constrained_packed_array_type instead of doing a standard
lookup to locate a parallel type.
(find_parallel_type_by_descriptive_type): New function.
(ada_find_parallel_type_with_name): New function.
(ada_find_parallel_type): Reimplement using
ada_find_parallel_type_with_name.
* ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
to check if type has a cplus stuff.
* linespec.c (total_number_of_methods): Likewise.
* mdebugread.c (new_type): Likewise.
gdb/testsuite/ChangeLog:
* gdb.base/maint.exp: Adjust the expected output for the
"maint print type" test. Use gdb_test_multiple instead of
gdb_sent/gdb_expect.
commit a9eee8113b56c3f7b0dce42900673652bc252ef7
Author: Doug Evans <dje@google.com>
Date: Tue Jan 12 00:50:26 2010 +0000
* lib/gdbserver-support.exp (gdbserver_download_current_prog): Rename
from gdbserver_download. All callers updated.
commit a56f116799bcb779e22ab86f8812bc18089e663a
Author: Doug Evans <dje@google.com>
Date: Tue Jan 12 00:48:32 2010 +0000
* gdb.server/ext-run.exp: "info os processes" requires xml support.
commit a3736fc3d2975da731d9058f3c5c4c1a861c5be7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 12 00:00:03 2010 +0000
*** empty log message ***
commit fd2c1c20de4170e3415914c0b75e70d3d48a17ac
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 11 23:00:05 2010 +0000
daily update
commit 4cd89ee43180608cf999088a49cb81e8491e9860
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jan 11 19:29:12 2010 +0000
gdb/
* NEWS: Document the 0b binary number prefix parsing.
commit 43df2579a2dfa3fe8796578e2843767c524d6b8e
Author: DJ Delorie <dj@delorie.com>
Date: Mon Jan 11 19:12:42 2010 +0000
merge from gcc
commit a8aadfb8404a8728f310770c3c33dcc10c609218
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jan 11 18:15:05 2010 +0000
gdb/
* objfiles.c (objfile_relocate1): Change the return type to int.
Describe the new return value. Return non-zero if data changed.
(objfile_relocate): New variable changed. Set it. Call
breakpoint_re_set depending on CHANGED.
commit 61e015cf88aa45d507d5cb6ac6e4fd36dc8c377c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jan 11 17:58:15 2010 +0000
gdb/
Implement binary numbers parsing.
* c-exp.y (parse_number): New case 'b' and 'B'.
gdb/testsuite/
Implement binary numbers parsing.
* gdb.base/printcmds.exp (test_integer_literals_accepted)
(test_integer_literals_rejected): New binary tests.
commit a66d6ab2060b3881afee8dd7e2993d30bffc4666
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Jan 11 16:30:10 2010 +0000
gdb/
* solib.c (info_sharedlibrary_command): Replace
objfile_has_partial_symbols and objfile_has_full_symbols calls by
objfile_has_symbols.
commit a97de3f411e7dc3b01d16e1e257c3afda258795b
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon Jan 11 15:57:58 2010 +0000
2010-01-11 Tristan Gingold <gingold@adacore.com>
* mach-o.h: Add x86-64 relocation types.
commit c92e3664625fe6f53cbd3b8b047d5c2adb66fe43
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon Jan 11 15:39:41 2010 +0000
2010-01-11 Tristan Gingold <gingold@adacore.com>
* mach-o.h (bfd_mach_o_backend_data): Add arch field.
(bfd_mach_o_set_arch_mach): New prototype.
* mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
(bfd_mach_o_set_arch_mach): New function.
(bfd_mach_o_gen_mkobject): New function.
Set TARGET_ARCHITECTURE for the generic back-ends.
* mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
Check that TARGET_ARCHITECTURE is defined.
Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
* mach-o-i386.c (TARGET_ARCHITECTURE): Define.
commit 19491562f0a5d09b7d6646625d721449f37533f8
Author: Tristan Gingold <gingold@adacore.com>
Date: Mon Jan 11 15:29:35 2010 +0000
2010-01-11 Tristan Gingold <gingold@adacore.com>
* archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
commit 1b750f87d5d0706353b636f661fa3e893373df9b
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Jan 11 14:19:40 2010 +0000
* elf32-v850.c (v850_elf_perform_relocation): Fix overflow
handling of R_V850_HI16_S relocation.
commit 74dbc165a236e79bf612d17549770cdae8202e85
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 11 09:53:27 2010 +0000
PR 11103
* dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
commit 9a4623d4c2505221991f651d17897e01a61c620d
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 11 09:43:08 2010 +0000
update copyright date
commit 8a7cf9889abddc6906944c12a0d0ad111874d3a1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Jan 11 08:36:18 2010 +0000
PR 6832
* dwarf2.c (struct comp_unit): Add sec_info_ptr.
(find_abstract_instance_name): Use it.
(parse_comp_unit): Set it.
commit 7f0acce90642603a8d584a1ef9246685979d37fa
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 11 00:00:33 2010 +0000
*** empty log message ***
commit 744d63ec281698f51d8b890f33ecd712c4105b30
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Jan 10 23:00:04 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 75 +++++++
bfd/Makefile.am | 2 +
bfd/Makefile.in | 3 +
bfd/archive.c | 73 ++-----
bfd/bfd-in2.h | 29 +++-
bfd/config.bfd | 10 +-
bfd/configure | 1 +
bfd/configure.in | 1 +
bfd/cpu-m32c.c | 17 ++-
bfd/dwarf1.c | 6 +-
bfd/dwarf2.c | 8 +-
bfd/elf32-v850.c | 2 +-
bfd/libbfd.h | 9 +
bfd/mach-o-i386.c | 1 +
bfd/mach-o-target.c | 6 +-
bfd/mach-o-x86-64.c | 280 ++++++++++++++++++++++++
bfd/mach-o.c | 43 ++++-
bfd/mach-o.h | 14 ++
bfd/makefile.vms | 3 +-
bfd/reloc.c | 47 ++++-
bfd/targets.c | 4 +
bfd/version.h | 2 +-
gdb/ChangeLog | 148 +++++++++++++
gdb/Makefile.in | 3 +-
gdb/NEWS | 5 +
gdb/ada-lang.c | 103 ++++++---
gdb/ada-valprint.c | 5 +-
gdb/bcache.c | 13 +-
gdb/c-exp.y | 10 +
gdb/configure | 28 +++
gdb/dec-thread.c | 4 +-
gdb/defs.h | 2 +
gdb/doc/ChangeLog | 10 +
gdb/doc/gdb.texinfo | 190 +++++++++++++++--
gdb/dwarf2read.c | 105 +++++++++-
gdb/features/threads.dtd | 13 ++
gdb/gdbserver/ChangeLog | 14 ++
gdb/gdbserver/linux-low.c | 274 +++++++++++++++++++++---
gdb/gdbserver/remote-utils.c | 22 ++
gdb/gdbserver/server.c | 120 +++++++++++
gdb/gdbserver/target.h | 3 +
gdb/gdbthread.h | 6 +
gdb/gdbtypes.c | 146 ++++++++-----
gdb/gdbtypes.h | 75 ++++++-
gdb/linespec.c | 2 +-
gdb/linux-nat.c | 73 +++++++
gdb/linux-nat.h | 6 +
gdb/linux-thread-db.c | 9 +
gdb/mdebugread.c | 2 +-
gdb/mi/mi-interp.c | 5 +
gdb/mi/mi-main.c | 358 +++++++++++++++++++++++++++----
gdb/objfiles.c | 18 +-
gdb/remote.c | 218 ++++++++++++++++++-
gdb/solib.c | 3 +-
gdb/target.c | 20 ++
gdb/target.h | 13 ++
gdb/testsuite/ChangeLog | 24 ++
gdb/testsuite/gdb.base/maint.exp | 13 +-
gdb/testsuite/gdb.base/printcmds.exp | 15 ++-
gdb/testsuite/gdb.server/ext-attach.exp | 2 +-
gdb/testsuite/gdb.server/ext-run.exp | 11 +-
gdb/testsuite/lib/gdbserver-support.exp | 6 +-
gdb/testsuite/lib/mi-support.exp | 2 +-
gdb/thread.c | 30 ++-
gdb/ui-out.c | 2 +-
gdb/utils.c | 8 +
gdb/version.in | 2 +-
include/ChangeLog | 9 +
include/demangle.h | 3 +
include/dwarf2.h | 1 +
libiberty/ChangeLog | 8 +
libiberty/cplus-dem.c | 277 +++++++++++++++---------
libiberty/testsuite/demangle-expected | 95 ++++++++
opcodes/ChangeLog | 10 +
opcodes/i386-dis.c | 15 +-
sim/moxie/ChangeLog | 9 +
sim/moxie/interp.c | 16 ++
77 files changed, 2777 insertions(+), 443 deletions(-)
create mode 100644 bfd/mach-o-x86-64.c
create mode 100644 gdb/features/threads.dtd
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e9c5e92..e8cadfb 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,78 @@
+2010-01-13 Nick Clifton <nickc@redhat.com>
+
+ * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
+ "m32c" returns the m32c arch_info_struct and not the m16c
+ arch_info_struct.
+ (arch_info_struct): Use the new scan function.
+ (bfd_m32c_arch): Likewise.
+
+2010-01-13 Tristan Gingold <gingold@adacore.com>
+
+ * config.bfd: Remove duplicated target vector for i386-*-darwin.
+ Appends new arch instead of overriding.
+ Use mach_o_x86_64_vec for x86_64-*-darwin.
+ * configure.in: Add mach_o_x86_64_vec.
+ * configure: Regenerate.
+ * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
+ * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
+ (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
+ * Makefile.in: Regenerate.
+ * mach-o-x86-64.c: New file.
+
+2010-01-13 Tristan Gingold <gingold@adacore.com>
+
+ * reloc.c: Add MACH_O_X86_64 relocations.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+
+2010-01-13 Tristan Gingold <gingold@adacore.com>
+
+ * archive.c (normalize): Use lbasename.
+ (bfd_bsd_truncate_arname): Ditto.
+ (bfd_gnu_truncate_arname): Ditto.
+
+2010-01-12 Tristan Gingold <gingold@adacore.com>
+
+ * makefile.vms (CFLAGS): Turns warnings into informational messages.
+
+2010-01-11 Tristan Gingold <gingold@adacore.com>
+
+ * mach-o.h: Add x86-64 relocation types.
+
+2010-01-11 Tristan Gingold <gingold@adacore.com>
+
+ * mach-o.h (bfd_mach_o_backend_data): Add arch field.
+ (bfd_mach_o_set_arch_mach): New prototype.
+ * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
+ (bfd_mach_o_set_arch_mach): New function.
+ (bfd_mach_o_gen_mkobject): New function.
+ Set TARGET_ARCHITECTURE for the generic back-ends.
+ * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
+ Check that TARGET_ARCHITECTURE is defined.
+ Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
+ * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
+
+2010-01-11 Tristan Gingold <gingold@adacore.com>
+
+ * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
+
+2010-01-11 Nick Clifton <nickc@redhat.com>
+
+ * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
+ handling of R_V850_HI16_S relocation.
+
+2010-01-11 Alan Modra <amodra@gmail.com>
+
+ PR 11103
+ * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
+
+2010-01-11 Alan Modra <amodra@gmail.com>
+
+ PR 6832
+ * dwarf2.c (struct comp_unit): Add sec_info_ptr.
+ (find_abstract_instance_name): Use it.
+ (parse_comp_unit): Set it.
+
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.in: Regenerate.
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index b569f84..03aa24b 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -609,6 +609,7 @@ BFD64_BACKENDS = \
elf64-x86-64.lo \
elf64.lo \
elfn32-mips.lo \
+ mach-o-x86-64.lo \
mmo.lo \
nlm32-alpha.lo \
nlm64.lo \
@@ -639,6 +640,7 @@ BFD64_BACKENDS_CFILES = \
elf64-x86-64.c \
elf64.c \
elfn32-mips.c \
+ mach-o-x86-64.c \
mmo.c \
nlm32-alpha.c \
nlm64.c \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 2196478..639817d 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -907,6 +907,7 @@ BFD64_BACKENDS = \
elf64-x86-64.lo \
elf64.lo \
elfn32-mips.lo \
+ mach-o-x86-64.lo \
mmo.lo \
nlm32-alpha.lo \
nlm64.lo \
@@ -937,6 +938,7 @@ BFD64_BACKENDS_CFILES = \
elf64-x86-64.c \
elf64.c \
elfn32-mips.c \
+ mach-o-x86-64.c \
mmo.c \
nlm32-alpha.c \
nlm64.c \
@@ -1413,6 +1415,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/m88kmach3.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/m88kopenbsd.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mach-o-i386.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mach-o-x86-64.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mach-o.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/merge.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mipsbsd.Plo@am__quote@
diff --git a/bfd/archive.c b/bfd/archive.c
index 6ba743c..2e1c8f0 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -1054,6 +1054,24 @@ bfd_slurp_armap (bfd *abfd)
return FALSE;
#endif
}
+ else if (CONST_STRNEQ (nextname, "#1/20 "))
+ {
+ /* Mach-O has a special name for armap when the map is sorted by name.
+ However because this name has a space it is slightly more difficult
+ to check it. */
+ struct ar_hdr hdr;
+ char extname[21];
+
+ if (bfd_bread (&hdr, sizeof (hdr), abfd) != sizeof (hdr))
+ return FALSE;
+ /* Read the extended name. We know its length. */
+ if (bfd_bread (extname, 20, abfd) != 20)
+ return FALSE;
+ if (bfd_seek (abfd, (file_ptr) -(sizeof (hdr) + 20), SEEK_CUR) != 0)
+ return FALSE;
+ if (CONST_STRNEQ (extname, "__.SYMDEF SORTED"))
+ return do_slurp_bsd_armap (abfd);
+ }
bfd_has_map (abfd) = FALSE;
return TRUE;
@@ -1294,23 +1312,7 @@ normalize (bfd *abfd, const char *file)
static const char *
normalize (bfd *abfd ATTRIBUTE_UNUSED, const char *file)
{
- const char *filename = strrchr (file, '/');
-
-#ifdef HAVE_DOS_BASED_FILE_SYSTEM
- {
- /* We could have foo/bar\\baz, or foo\\bar, or d:bar. */
- char *bslash = strrchr (file, '\\');
- if (filename == NULL || (bslash != NULL && bslash > filename))
- filename = bslash;
- if (filename == NULL && file[0] != '\0' && file[1] == ':')
- filename = file + 1;
- }
-#endif
- if (filename != NULL)
- filename++;
- else
- filename = file;
- return filename;
+ return lbasename (file);
}
#endif
@@ -1802,25 +1804,9 @@ bfd_bsd_truncate_arname (bfd *abfd, const char *pathname, char *arhdr)
{
struct ar_hdr *hdr = (struct ar_hdr *) arhdr;
size_t length;
- const char *filename = strrchr (pathname, '/');
+ const char *filename = lbasename (pathname);
size_t maxlen = ar_maxnamelen (abfd);
-#ifdef HAVE_DOS_BASED_FILE_SYSTEM
- {
- /* We could have foo/bar\\baz, or foo\\bar, or d:bar. */
- char *bslash = strrchr (pathname, '\\');
- if (filename == NULL || (bslash != NULL && bslash > filename))
- filename = bslash;
- if (filename == NULL && pathname[0] != '\0' && pathname[1] == ':')
- filename = pathname + 1;
- }
-#endif
-
- if (filename == NULL)
- filename = pathname;
- else
- ++filename;
-
length = strlen (filename);
if (length <= maxlen)
@@ -1850,26 +1836,9 @@ bfd_gnu_truncate_arname (bfd *abfd, const char *pathname, char *arhdr)
{
struct ar_hdr *hdr = (struct ar_hdr *) arhdr;
size_t length;
- const char *filename = strrchr (pathname, '/');
+ const char *filename = lbasename (pathname);
size_t maxlen = ar_maxnamelen (abfd);
-#ifdef HAVE_DOS_BASED_FILE_SYSTEM
- {
- /* We could have foo/bar\\baz, or foo\\bar, or d:bar. */
- char *bslash = strrchr (pathname, '\\');
-
- if (filename == NULL || (bslash != NULL && bslash > filename))
- filename = bslash;
- if (filename == NULL && pathname[0] != '\0' && pathname[1] == ':')
- filename = pathname + 1;
- }
-#endif
-
- if (filename == NULL)
- filename = pathname;
- else
- ++filename;
-
length = strlen (filename);
if (length <= maxlen)
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 447f787..b17f2e1 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -4563,9 +4563,36 @@ BFD_RELOC_XTENSA_ASM_EXPAND. */
BFD_RELOC_MACH_O_PAIR. */
BFD_RELOC_MACH_O_SECTDIFF,
-/* Mach-O generic relocations. */
+/* Pair of relocation. Contains the first symbol. */
BFD_RELOC_MACH_O_PAIR,
+/* PCREL relocations. They are marked as branch to create PLT entry if
+required. */
+ BFD_RELOC_MACH_O_X86_64_BRANCH32,
+ BFD_RELOC_MACH_O_X86_64_BRANCH8,
+
+/* Used when referencing a GOT entry. */
+ BFD_RELOC_MACH_O_X86_64_GOT,
+
+/* Used when loading a GOT entry with movq. It is specially marked so that
+the linker could optimize the movq to a leaq if possible. */
+ BFD_RELOC_MACH_O_X86_64_GOT_LOAD,
+
+/* Symbol will be substracted. Must be followed by a BFD_RELOC_64. */
+ BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
+
+/* Symbol will be substracted. Must be followed by a BFD_RELOC_64. */
+ BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64,
+
+/* Same as BFD_RELOC_32_PCREL but with an implicit -1 addend. */
+ BFD_RELOC_MACH_O_X86_64_PCREL32_1,
+
+/* Same as BFD_RELOC_32_PCREL but with an implicit -2 addend. */
+ BFD_RELOC_MACH_O_X86_64_PCREL32_2,
+
+/* Same as BFD_RELOC_32_PCREL but with an implicit -4 addend. */
+ BFD_RELOC_MACH_O_X86_64_PCREL32_4,
+
/* This is a 32 bit reloc for the microblaze that stores the
low 16 bits of a value */
BFD_RELOC_MICROBLAZE_32_LO,
diff --git a/bfd/config.bfd b/bfd/config.bfd
index c331a97..9290b83 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -543,8 +543,8 @@ case "${targ}" in
;;
i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
targ_defvec=mach_o_i386_vec
- targ_selvecs="mach_o_i386_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
- targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
+ targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
+ targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
;;
i[3-7]86-sequent-bsd*)
targ_defvec=i386dynix_vec
@@ -605,9 +605,9 @@ case "${targ}" in
;;
#ifdef BFD64
x86_64-*-darwin*)
- targ_defvec=mach_o_le_vec
+ targ_defvec=mach_o_x86_64_vec
targ_selvecs="mach_o_i386_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
- targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
+ targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
want64=true
;;
x86_64-*-dicos*)
@@ -1153,7 +1153,7 @@ case "${targ}" in
powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
targ_defvec=mach_o_be_vec
targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
- targ_archs="bfd_powerpc_arch bfd_rs6000_arch bfd_i386_arch"
+ targ_archs="$targ_archs bfd_i386_arch"
;;
powerpc-*-macos*)
targ_defvec=pmac_xcoff_vec
diff --git a/bfd/configure b/bfd/configure
index 0626f09..5ee3ffd 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -15198,6 +15198,7 @@ do
mach_o_le_vec) tb="$tb mach-o.lo" ;;
mach_o_fat_vec) tb="$tb mach-o.lo" ;;
mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
+ mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;;
mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
diff --git a/bfd/configure.in b/bfd/configure.in
index 3713d56..b246afc 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -857,6 +857,7 @@ do
mach_o_le_vec) tb="$tb mach-o.lo" ;;
mach_o_fat_vec) tb="$tb mach-o.lo" ;;
mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
+ mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;;
mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
diff --git a/bfd/cpu-m32c.c b/bfd/cpu-m32c.c
index aa2e28d..d2f9cb1 100644
--- a/bfd/cpu-m32c.c
+++ b/bfd/cpu-m32c.c
@@ -22,6 +22,19 @@
#include "bfd.h"
#include "libbfd.h"
+/* Like bfd_default_scan but if the string is just "m32c" then
+ skip the m16c architecture. */
+
+static bfd_boolean
+m32c_scan (const bfd_arch_info_type * info, const char * string)
+{
+ if (strcmp (string, "m32c") == 0
+ && info->mach == bfd_mach_m16c)
+ return FALSE;
+
+ return bfd_default_scan (info, string);
+}
+
static const bfd_arch_info_type arch_info_struct[] =
{
{
@@ -35,7 +48,7 @@ static const bfd_arch_info_type arch_info_struct[] =
3, /* section align power */
FALSE, /* the default ? */
bfd_default_compatible, /* architecture comparison fn */
- bfd_default_scan, /* string to architecture convert fn */
+ m32c_scan, /* string to architecture convert fn */
NULL /* next in list */
},
};
@@ -52,6 +65,6 @@ const bfd_arch_info_type bfd_m32c_arch =
4, /* Section align power. */
TRUE, /* The default ? */
bfd_default_compatible, /* Architecture comparison fn. */
- bfd_default_scan, /* String to architecture convert fn. */
+ m32c_scan, /* String to architecture convert fn. */
&arch_info_struct[0], /* Next in list. */
};
diff --git a/bfd/dwarf1.c b/bfd/dwarf1.c
index 2674044..375f4cf 100644
--- a/bfd/dwarf1.c
+++ b/bfd/dwarf1.c
@@ -1,5 +1,5 @@
/* DWARF 1 find nearest line (_bfd_dwarf1_find_nearest_line).
- Copyright 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008
+ Copyright 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Gavin Romig-Koch of Cygnus Solutions (gavin@cygnus.com).
@@ -251,8 +251,8 @@ parse_die (bfd * abfd,
break;
case FORM_STRING:
if (attr == AT_name)
- aDieInfo->name = (char *)xptr;
- xptr += strlen (aDieInfo->name) + 1;
+ aDieInfo->name = (char *) xptr;
+ xptr += strlen ((char *) xptr) + 1;
break;
}
}
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index e5eccfc..baac752 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -1,6 +1,6 @@
/* DWARF 2 support.
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
- 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+ 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Adapted from gdb/dwarf2read.c by Gavin Koch of Cygnus Solutions
(gavin@cygnus.com).
@@ -216,6 +216,9 @@ struct comp_unit
by its reference. */
bfd_byte *info_ptr_unit;
+ /* Pointer to the start of the debug section, for DW_FORM_ref_addr. */
+ bfd_byte *sec_info_ptr;
+
/* The offset into .debug_line of the line number table. */
unsigned long line_offset;
@@ -1811,7 +1814,7 @@ find_abstract_instance_name (struct comp_unit *unit,
if (!die_ref)
abort ();
- info_ptr = unit->stash->sec_info_ptr + die_ref;
+ info_ptr = unit->sec_info_ptr + die_ref;
}
else
info_ptr = unit->info_ptr_unit + die_ref;
@@ -2219,6 +2222,7 @@ parse_comp_unit (struct dwarf2_debug *stash,
unit->end_ptr = end_ptr;
unit->stash = stash;
unit->info_ptr_unit = info_ptr_unit;
+ unit->sec_info_ptr = stash->sec_info_ptr;
for (i = 0; i < abbrev->num_attrs; ++i)
{
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index 2965e29..d7aaed4 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -550,7 +550,7 @@ v850_elf_perform_relocation (bfd *abfd,
addend = (addend >> 16) + ((addend & 0x8000) != 0);
/* This relocation cannot overflow. */
- if (addend > 0x7fff)
+ if (addend > 0xffff)
addend = 0;
insn = addend;
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 8146ef9..073086c 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -2103,6 +2103,15 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_LM32_RELATIVE",
"BFD_RELOC_MACH_O_SECTDIFF",
"BFD_RELOC_MACH_O_PAIR",
+ "BFD_RELOC_MACH_O_X86_64_BRANCH32",
+ "BFD_RELOC_MACH_O_X86_64_BRANCH8",
+ "BFD_RELOC_MACH_O_X86_64_GOT",
+ "BFD_RELOC_MACH_O_X86_64_GOT_LOAD",
+ "BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32",
+ "BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64",
+ "BFD_RELOC_MACH_O_X86_64_PCREL32_1",
+ "BFD_RELOC_MACH_O_X86_64_PCREL32_2",
+ "BFD_RELOC_MACH_O_X86_64_PCREL32_4",
"BFD_RELOC_MICROBLAZE_32_LO",
"BFD_RELOC_MICROBLAZE_32_LO_PCREL",
"BFD_RELOC_MICROBLAZE_32_ROSDA",
diff --git a/bfd/mach-o-i386.c b/bfd/mach-o-i386.c
index 53de64e..e46cbc6 100644
--- a/bfd/mach-o-i386.c
+++ b/bfd/mach-o-i386.c
@@ -288,6 +288,7 @@ bfd_mach_o_i386_print_thread (bfd *abfd, bfd_mach_o_thread_flavour *thread,
#define TARGET_NAME mach_o_i386_vec
#define TARGET_STRING "mach-o-i386"
+#define TARGET_ARCHITECTURE bfd_arch_i386
#define TARGET_BIG_ENDIAN 0
#define TARGET_ARCHIVE 0
#include "mach-o-target.c"
diff --git a/bfd/mach-o-target.c b/bfd/mach-o-target.c
index 2a30b2e..8edf547 100644
--- a/bfd/mach-o-target.c
+++ b/bfd/mach-o-target.c
@@ -57,7 +57,6 @@
_bfd_generic_copy_link_hash_symbol_type
#define bfd_mach_o_bfd_final_link _bfd_generic_final_link
#define bfd_mach_o_bfd_link_split_section _bfd_generic_link_split_section
-#define bfd_mach_o_set_arch_mach bfd_default_set_arch_mach
#define bfd_mach_o_bfd_merge_private_bfd_data _bfd_generic_bfd_merge_private_bfd_data
#define bfd_mach_o_bfd_set_private_flags _bfd_generic_bfd_set_private_flags
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-10 20:47 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-10 20:47 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 5f6ec78c0fe30ea8aedefb7f031ee846d46bc78d (commit)
via 143589351bc208fdc9da0f6e917247ea52de0a04 (commit)
via 2ce92dfc60af4ef26771a319bf078bc926206fd6 (commit)
via 70baa6be42b2c79f34dbdb1ac049e2005a3ffb88 (commit)
via 8291d007b754eef3466e624d4a7b900dca7cb5d1 (commit)
via b133eb364c38771b5208478258c567ffcdacda5f (commit)
via 4124ef6660585e5b897ac94a1f62b47f014f0809 (commit)
from 72fcbb8b39d2776c49d1cadc1912c95ef2027b7b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 5f6ec78c0fe30ea8aedefb7f031ee846d46bc78d
Merge: 72fcbb8b39d2776c49d1cadc1912c95ef2027b7b 143589351bc208fdc9da0f6e917247ea52de0a04
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Sun Jan 10 21:46:37 2010 +0100
Merge remote branch 'gdb/master'
commit 143589351bc208fdc9da0f6e917247ea52de0a04
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sun Jan 10 06:43:01 2010 +0000
Document the improvements made to the mips-irix port.
* NEWS: Document the improvements made to the mips-irix port.
commit 2ce92dfc60af4ef26771a319bf078bc926206fd6
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Jan 10 01:19:02 2010 +0000
Return dgs.alc on success
2010-01-09 Ian Lance Taylor <iant@google.com>
PR other/42230
* cp-demangle.c (d_demangle): Return dgs.alc on success.
commit 70baa6be42b2c79f34dbdb1ac049e2005a3ffb88
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 10 00:00:33 2010 +0000
*** empty log message ***
commit 8291d007b754eef3466e624d4a7b900dca7cb5d1
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Jan 9 23:00:04 2010 +0000
daily update
commit b133eb364c38771b5208478258c567ffcdacda5f
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date: Sat Jan 9 21:11:31 2010 +0000
Sync Libtool from GCC.
/:
* libtool.m4: Sync from git Libtool.
* ltmain.sh: Likewise.
* ltoptions.m4: Likewise.
* ltversion.m4: Likewise.
* lt~obsolete.m4: Likewise.
sim/iq2000/:
* configure: Regenerate.
sim/d10v/:
* configure: Regenerate.
sim/m32r/:
* configure: Regenerate.
sim/frv/:
* configure: Regenerate.
sim/:
* avr/configure: Regenerate.
* cris/configure: Regenerate.
* microblaze/configure: Regenerate.
sim/h8300/:
* configure: Regenerate.
sim/mn10300/:
* configure: Regenerate.
sim/erc32/:
* configure: Regenerate.
sim/arm/:
* configure: Regenerate.
sim/m68hc11/:
* configure: Regenerate.
sim/lm32/:
* configure: Regenerate.
sim/sh64/:
* configure: Regenerate.
sim/v850/:
* configure: Regenerate.
sim/cr16/:
* configure: Regenerate.
sim/moxie/:
* configure: Regenerate.
sim/m32c/:
* configure: Regenerate.
sim/mips/:
* configure: Regenerate.
sim/mcore/:
* configure: Regenerate.
sim/sh/:
* configure: Regenerate.
gprof/:
* Makefile.in: Regenerate.
* configure: Regenerate.
opcodes/:
* Makefile.in: Regenerate.
* configure: Regenerate.
gas/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
ld/:
* configure: Regenerate.
gdb/testsuite/:
* gdb.cell/configure: Regenerate.
binutils/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
bfd/:
* Makefile.in: Regenerate.
* configure: Regenerate.
bfd/doc/:
* Makefile.in: Regenerate.
commit 4124ef6660585e5b897ac94a1f62b47f014f0809
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 11:46:13 2010 +0000
Fix the documentation of valprint.c:value_print.
* valprint.c (value_print): Update the function description to
mention that the syntax of the output follows the current_language,
not necessarily C.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 +-
bfd/ChangeLog | 5 +
bfd/Makefile.in | 1 -
bfd/configure | 990 +++++++------
bfd/doc/ChangeLog | 4 +
bfd/doc/Makefile.in | 1 -
bfd/version.h | 2 +-
gdb/ChangeLog | 11 +
gdb/NEWS | 18 +
gdb/testsuite/ChangeLog | 4 +
gdb/testsuite/gdb.cell/configure | 3018 +++++++++++++++++++++++---------------
gdb/valprint.c | 9 +-
gdb/version.in | 2 +-
libiberty/ChangeLog | 5 +
libiberty/cp-demangle.c | 2 +-
libtool.m4 | 870 ++++++-----
ltmain.sh | 1393 +++++++++---------
ltoptions.m4 | 11 +-
ltversion.m4 | 10 +-
lt~obsolete.m4 | 10 +-
opcodes/ChangeLog | 5 +
opcodes/Makefile.in | 1 -
opcodes/configure | 990 +++++++------
sim/ChangeLog | 6 +
sim/arm/ChangeLog | 4 +
sim/arm/configure | 2 +-
sim/avr/configure | 2 +-
sim/common/configure | 2 +-
sim/cr16/ChangeLog | 4 +
sim/cr16/configure | 2 +-
sim/cris/configure | 2 +-
sim/d10v/ChangeLog | 4 +
sim/d10v/configure | 2 +-
sim/erc32/ChangeLog | 4 +
sim/erc32/configure | 2 +-
sim/frv/ChangeLog | 4 +
sim/frv/configure | 2 +-
sim/h8300/ChangeLog | 4 +
sim/h8300/configure | 2 +-
sim/iq2000/ChangeLog | 4 +
sim/iq2000/configure | 2 +-
sim/lm32/ChangeLog | 4 +
sim/lm32/configure | 2 +-
sim/m32c/ChangeLog | 4 +
sim/m32c/configure | 2 +-
sim/m32r/ChangeLog | 4 +
sim/m32r/configure | 2 +-
sim/m68hc11/ChangeLog | 4 +
sim/m68hc11/configure | 2 +-
sim/mcore/ChangeLog | 4 +
sim/mcore/configure | 2 +-
sim/microblaze/configure | 2 +-
sim/mips/ChangeLog | 4 +
sim/mips/configure | 4 +-
sim/mn10300/ChangeLog | 4 +
sim/mn10300/configure | 2 +-
sim/moxie/ChangeLog | 4 +
sim/moxie/configure | 2 +-
sim/ppc/configure | 2 +-
sim/rx/configure | 25 +-
sim/sh/ChangeLog | 4 +
sim/sh/configure | 2 +-
sim/sh64/ChangeLog | 4 +
sim/sh64/configure | 2 +-
sim/v850/ChangeLog | 4 +
sim/v850/configure | 2 +-
66 files changed, 4368 insertions(+), 3155 deletions(-)
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 9d7f493..de6535f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * libtool.m4: Sync from git Libtool.
+ * ltmain.sh: Likewise.
+ * ltoptions.m4: Likewise.
+ * ltversion.m4: Likewise.
+ * lt~obsolete.m4: Likewise.
+
2010-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
@@ -6,7 +14,7 @@
(_LT_CHECK_OBJDIR): Call it.
(extra_mpc_mpfr_configure_flags, extra_mpc_gmp_configure_flags,
gmplibs, ppllibs, clooglibs): Use $lt_cv_objdir.
-
+
* configure: Regenerate.
2010-01-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fed7aab..e9c5e92 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * Makefile.in: Regenerate.
+ * configure: Regenerate.
+
2010-01-08 Tristan Gingold <gingold@adacore.com>
* archive.c: Remove bfd_special_undocumented_glue.
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 233e87e..2196478 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -291,7 +291,6 @@ libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
-lt_ECHO = @lt_ECHO@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
diff --git a/bfd/configure b/bfd/configure
index 37652fe..0626f09 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -169,7 +169,15 @@ test x\$exitcode = x0 || exit 1"
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
-test \$(( 1 + 1 )) = 2 || exit 1"
+test \$(( 1 + 1 )) = 2 || exit 1
+
+ test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
+ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
+ PATH=/empty FPATH=/empty; export PATH FPATH
+ test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
+ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
if (eval "$as_required") 2>/dev/null; then :
as_have_required=yes
else
@@ -523,155 +531,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}
-case X$lt_ECHO in
-X*--fallback-echo)
- # Remove one level of quotation (which was required for Make).
- ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
- ;;
-esac
-
-ECHO=${lt_ECHO-echo}
-if test "X$1" = X--no-reexec; then
- # Discard the --no-reexec flag, and continue.
- shift
-elif test "X$1" = X--fallback-echo; then
- # Avoid inline document here, it may be left over
- :
-elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
- # Yippee, $ECHO works!
- :
-else
- # Restart under the correct shell.
- exec $SHELL "$0" --no-reexec ${1+"$@"}
-fi
-
-if test "X$1" = X--fallback-echo; then
- # used as fallback echo
- shift
- cat <<_LT_EOF
-$*
-_LT_EOF
- exit 0
-fi
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test -z "$lt_ECHO"; then
- if test "X${echo_test_string+set}" != Xset; then
- # find a string as large as possible, as long as the shell can cope with it
- for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
- if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
- { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
- then
- break
- fi
- done
- fi
-
- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- :
- else
- # The Solaris, AIX, and Digital Unix default echo programs unquote
- # backslashes. This makes it impossible to quote backslashes using
- # echo "$something" | sed 's/\\/\\\\/g'
- #
- # So, first we look for a working echo in the user's PATH.
-
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for dir in $PATH /usr/ucb; do
- IFS="$lt_save_ifs"
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- ECHO="$dir/echo"
- break
- fi
- done
- IFS="$lt_save_ifs"
-
- if test "X$ECHO" = Xecho; then
- # We didn't find a better echo, so look for alternatives.
- if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # This shell has a builtin print -r that does the trick.
- ECHO='print -r'
- elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
- test "X$CONFIG_SHELL" != X/bin/ksh; then
- # If we have ksh, try running configure again with it.
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
- export ORIGINAL_CONFIG_SHELL
- CONFIG_SHELL=/bin/ksh
- export CONFIG_SHELL
- exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
- else
- # Try using printf.
- ECHO='printf %s\n'
- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # Cool, printf works
- :
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
- export CONFIG_SHELL
- SHELL="$CONFIG_SHELL"
- export SHELL
- ECHO="$CONFIG_SHELL $0 --fallback-echo"
- elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- ECHO="$CONFIG_SHELL $0 --fallback-echo"
- else
- # maybe with a smaller string...
- prev=:
-
- for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
- if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
- then
- break
- fi
- prev="$cmd"
- done
-
- if test "$prev" != 'sed 50q "$0"'; then
- echo_test_string=`eval $prev`
- export echo_test_string
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
- else
- # Oops. We lost completely, so just stick with echo.
- ECHO=echo
- fi
- fi
- fi
- fi
- fi
-fi
-
-# Copy echo and quote the copy suitably for passing to libtool from
-# the Makefile, instead of quoting the original, which is used later.
-lt_ECHO=$ECHO
-if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
- lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
-fi
-
-
-
exec 7<&0 </dev/null 6>&1
@@ -805,7 +666,6 @@ OTOOL
LIPO
NMEDIT
DSYMUTIL
-lt_ECHO
OBJDUMP
LN_S
NM
@@ -5513,8 +5373,8 @@ esac
-macro_version='2.2.6'
-macro_revision='1.3012'
+macro_version='2.2.7a'
+macro_revision='1.3134'
@@ -5530,6 +5390,75 @@ macro_revision='1.3012'
ltmain="$ac_aux_dir/ltmain.sh"
+# Backslashify metacharacters that are still active within
+# double-quoted strings.
+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
+$as_echo_n "checking how to print strings... " >&6; }
+# Test print first, because it will be a builtin if present.
+if test "X`print -r -- -n 2>/dev/null`" = X-n && \
+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
+ ECHO='print -r --'
+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
+ ECHO='printf %s\n'
+else
+ # Use this function as a fallback that always works.
+ func_fallback_echo ()
+ {
+ eval 'cat <<_LTECHO_EOF
+$1
+_LTECHO_EOF'
+ }
+ ECHO='func_fallback_echo'
+fi
+
+# func_echo_all arg...
+# Invoke $ECHO with all args, space-separated.
+func_echo_all ()
+{
+ $ECHO ""
+}
+
+case "$ECHO" in
+ printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
+$as_echo "printf" >&6; } ;;
+ print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
+$as_echo "print -r" >&6; } ;;
+ *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
+$as_echo "cat" >&6; } ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if test "${ac_cv_path_SED+set}" = set; then :
@@ -5865,8 +5794,11 @@ if test "$lt_cv_path_NM" != "no"; then
NM="$lt_cv_path_NM"
else
# Didn't find any BSD compatible name lister, look for dumpbin.
- if test -n "$ac_tool_prefix"; then
- for ac_prog in "dumpbin -symbols" "link -dump -symbols"
+ if test -n "$DUMPBIN"; then :
+ # Let the user override the test.
+ else
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in dumpbin "link -dump"
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
@@ -5910,7 +5842,7 @@ fi
fi
if test -z "$DUMPBIN"; then
ac_ct_DUMPBIN=$DUMPBIN
- for ac_prog in "dumpbin -symbols" "link -dump -symbols"
+ for ac_prog in dumpbin "link -dump"
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -5965,6 +5897,15 @@ esac
fi
fi
+ case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
+ *COFF*)
+ DUMPBIN="$DUMPBIN -symbols"
+ ;;
+ *)
+ DUMPBIN=:
+ ;;
+ esac
+ fi
if test "$DUMPBIN" != ":"; then
NM="$DUMPBIN"
@@ -5984,13 +5925,13 @@ if test "${lt_cv_nm_interface+set}" = set; then :
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
- (eval echo "\"\$as_me:5987: $ac_compile\"" >&5)
+ (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
- (eval echo "\"\$as_me:5990: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
- (eval echo "\"\$as_me:5993: output\"" >&5)
+ (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
@@ -6047,6 +5988,11 @@ else
lt_cv_sys_max_cmd_len=8192;
;;
+ mint*)
+ # On MiNT this can take a long time and run out of memory.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
amigaos*)
# On AmigaOS with pdksh, this test takes hours, literally.
# So we just punt and use a minimum line length of 8192.
@@ -6111,8 +6057,8 @@ else
# If test is not a shell built-in, we'll probably end up computing a
# maximum length that is only half of the actual maximum length, but
# we can't tell.
- while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
- = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
+ while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
+ = "X$teststring$teststring"; } >/dev/null 2>&1 &&
test $i != 17 # 1/2 MB should be enough
do
i=`expr $i + 1`
@@ -6383,7 +6329,8 @@ mingw* | pw32*)
# Base MSYS/MinGW do not provide the 'file' command needed by
# func_win32_libid shell function, so use a weaker test based on 'objdump',
# unless we find 'file', for example because we are cross-compiling.
- if ( file / ) >/dev/null 2>&1; then
+ # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
+ if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
lt_cv_file_magic_cmd='func_win32_libid'
else
@@ -6392,7 +6339,7 @@ mingw* | pw32*)
fi
;;
-cegcc)
+cegcc*)
# use the weaker test based on 'objdump'. See mingw*.
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
lt_cv_file_magic_cmd='$OBJDUMP -f'
@@ -6422,6 +6369,10 @@ gnu*)
lt_cv_deplibs_check_method=pass_all
;;
+haiku*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
hpux10.20* | hpux11*)
lt_cv_file_magic_cmd=/usr/bin/file
case $host_cpu in
@@ -6430,11 +6381,11 @@ hpux10.20* | hpux11*)
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
;;
hppa*64*)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
;;
*)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
lt_cv_file_magic_test_file=/usr/lib/libc.sl
;;
esac
@@ -6872,6 +6823,18 @@ if test -n "$RANLIB"; then
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
+case $host_os in
+ darwin*)
+ lock_old_archive_extraction=yes ;;
+ *)
+ lock_old_archive_extraction=no ;;
+esac
+
+
+
+
+
+
@@ -7041,8 +7004,8 @@ _LT_EOF
test $ac_status = 0; }; then
# Now try to grab the symbols.
nlist=conftest.nm
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
- (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
+ (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } && test -s "$nlist"; then
@@ -7195,7 +7158,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 7198 "configure"' > conftest.$ac_ext
+ echo '#line '$LINENO' "configure"' > conftest.$ac_ext
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -7907,6 +7870,36 @@ rm -f core conftest.err conftest.$ac_objext \
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
+$as_echo_n "checking for -force_load linker flag... " >&6; }
+if test "${lt_cv_ld_force_load+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_force_load=no
+ cat > conftest.c << _LT_EOF
+int forced_loaded() { return 2;}
+_LT_EOF
+ echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
+ $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
+ echo "$AR cru libconftest.a conftest.o" >&5
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-09 10:03 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-09 10:03 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 72fcbb8b39d2776c49d1cadc1912c95ef2027b7b (commit)
via 07ced0fd294e617ba39f4bfd0359699d99fa19d5 (commit)
from 0beb8ff7535f788f432efe77036e3f85711ea09b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 72fcbb8b39d2776c49d1cadc1912c95ef2027b7b
Merge: 0beb8ff7535f788f432efe77036e3f85711ea09b 07ced0fd294e617ba39f4bfd0359699d99fa19d5
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Sat Jan 9 11:03:50 2010 +0100
Merge remote branch 'gdb/master'
commit 07ced0fd294e617ba39f4bfd0359699d99fa19d5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Jan 9 09:10:59 2010 +0000
gdb/
Fix displacement of separate debug info files.
* objfiles.c (objfile_relocate): Rename to ...
(objfile_relocate1): ... here and make it static. Extend the comment.
(objfile_relocate): New function.
* solib-spu.c (spu_relocate_main_executable): Explicitly check if
SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
allocated using alloca.
* symfile.c (copy_section_addr_info): Remove.
(build_section_addr_info_from_objfile): Make it global. New variables
addr_bit and mask, use them.
* symfile.h (build_section_addr_info_from_objfile): New prototype.
(copy_section_addr_info): Remove.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 16 ++++++++++++++++
gdb/objfiles.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
gdb/solib-spu.c | 22 ++++++++--------------
gdb/symfile.c | 35 +++++++----------------------------
gdb/symfile.h | 8 +++-----
5 files changed, 86 insertions(+), 50 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1ff5f35..da66b7b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,19 @@
+2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix displacement of separate debug info files.
+ * objfiles.c (objfile_relocate): Rename to ...
+ (objfile_relocate1): ... here and make it static. Extend the comment.
+ (objfile_relocate): New function.
+ * solib-spu.c (spu_relocate_main_executable): Explicitly check if
+ SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
+ Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
+ allocated using alloca.
+ * symfile.c (copy_section_addr_info): Remove.
+ (build_section_addr_info_from_objfile): Make it global. New variables
+ addr_bit and mask, use them.
+ * symfile.h (build_section_addr_info_from_objfile): New prototype.
+ (copy_section_addr_info): Remove.
+
2010-01-09 Joel Brobecker <brobecker@adacore.com>
Signal unwinder for mips-irix N32.
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 9f779a4..d1e441b 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -693,9 +693,10 @@ free_all_objfiles (void)
}
\f
/* Relocate OBJFILE to NEW_OFFSETS. There should be OBJFILE->NUM_SECTIONS
- entries in new_offsets. */
-void
-objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
+ entries in new_offsets. SEPARATE_DEBUG_OBJFILE is not touched here. */
+
+static void
+objfile_relocate1 (struct objfile *objfile, struct section_offsets *new_offsets)
{
struct obj_section *s;
struct section_offsets *delta =
@@ -849,6 +850,54 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
exec_set_section_address (bfd_get_filename (objfile->obfd), idx,
obj_section_addr (s));
}
+}
+
+/* Relocate OBJFILE to NEW_OFFSETS. There should be OBJFILE->NUM_SECTIONS
+ entries in new_offsets. Process also OBJFILE's SEPARATE_DEBUG_OBJFILEs.
+
+ The number and ordering of sections does differ between the two objfiles.
+ Only their names match. Also the file offsets will differ (objfile being
+ possibly prelinked but separate_debug_objfile is probably not prelinked) but
+ the in-memory absolute address as specified by NEW_OFFSETS must match both
+ files. */
+
+void
+objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
+{
+ struct objfile *debug_objfile;
+
+ objfile_relocate1 (objfile, new_offsets);
+
+ for (debug_objfile = objfile->separate_debug_objfile;
+ debug_objfile;
+ debug_objfile = objfile_separate_debug_iterate (objfile, debug_objfile))
+ {
+ struct section_addr_info *objfile_addrs;
+ struct section_offsets *new_debug_offsets;
+ int new_debug_num_sections;
+ struct cleanup *my_cleanups;
+
+ objfile_addrs = build_section_addr_info_from_objfile (objfile);
+ my_cleanups = make_cleanup (xfree, objfile_addrs);
+
+ /* Here OBJFILE_ADDRS contain the correct absolute addresses, the
+ relative ones must be already created according to debug_objfile. */
+
+ addr_info_make_relative (objfile_addrs, debug_objfile->obfd);
+
+ gdb_assert (debug_objfile->num_sections
+ == bfd_count_sections (debug_objfile->obfd));
+ new_debug_offsets = xmalloc (SIZEOF_N_SECTION_OFFSETS
+ (debug_objfile->num_sections));
+ make_cleanup (xfree, new_debug_offsets);
+ relative_addr_info_to_section_offsets (new_debug_offsets,
+ debug_objfile->num_sections,
+ objfile_addrs);
+
+ objfile_relocate1 (debug_objfile, new_debug_offsets);
+
+ do_cleanups (my_cleanups);
+ }
/* Relocate breakpoints as necessary, after things are relocated. */
breakpoint_re_set ();
diff --git a/gdb/solib-spu.c b/gdb/solib-spu.c
index e752544..94a77fb 100644
--- a/gdb/solib-spu.c
+++ b/gdb/solib-spu.c
@@ -50,25 +50,19 @@
static void
spu_relocate_main_executable (int spufs_fd)
{
- struct objfile *objfile;
- struct cleanup *old_chain;
struct section_offsets *new_offsets;
int i;
- for (objfile = symfile_objfile;
- objfile;
- objfile = objfile->separate_debug_objfile)
- {
- new_offsets = xcalloc (objfile->num_sections,
- sizeof (struct section_offsets));
- old_chain = make_cleanup (xfree, new_offsets);
+ if (symfile_objfile == NULL)
+ return;
- for (i = 0; i < objfile->num_sections; i++)
- new_offsets->offsets[i] = SPUADDR (spufs_fd, 0);
+ new_offsets = alloca (symfile_objfile->num_sections
+ * sizeof (struct section_offsets));
- objfile_relocate (objfile, new_offsets);
- do_cleanups (old_chain);
- }
+ for (i = 0; i < symfile_objfile->num_sections; i++)
+ new_offsets->offsets[i] = SPUADDR (spufs_fd, 0);
+
+ objfile_relocate (symfile_objfile, new_offsets);
}
/* When running a stand-alone SPE executable, we may need to skip one more
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 42aff0d..89cc07c 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -328,32 +328,6 @@ alloc_section_addr_info (size_t num_sections)
return sap;
}
-
-/* Return a freshly allocated copy of ADDRS. The section names, if
- any, are also freshly allocated copies of those in ADDRS. */
-struct section_addr_info *
-copy_section_addr_info (struct section_addr_info *addrs)
-{
- struct section_addr_info *copy
- = alloc_section_addr_info (addrs->num_sections);
- int i;
-
- copy->num_sections = addrs->num_sections;
- for (i = 0; i < addrs->num_sections; i++)
- {
- copy->other[i].addr = addrs->other[i].addr;
- if (addrs->other[i].name)
- copy->other[i].name = xstrdup (addrs->other[i].name);
- else
- copy->other[i].name = NULL;
- copy->other[i].sectindex = addrs->other[i].sectindex;
- }
-
- return copy;
-}
-
-
-
/* Build (allocate and populate) a section_addr_info struct from
an existing section table. */
@@ -386,12 +360,17 @@ build_section_addr_info_from_section_table (const struct target_section *start,
/* Create a section_addr_info from section offsets in OBJFILE. */
-static struct section_addr_info *
+struct section_addr_info *
build_section_addr_info_from_objfile (const struct objfile *objfile)
{
struct section_addr_info *sap;
int i;
struct bfd_section *sec;
+ int addr_bit = gdbarch_addr_bit (objfile->gdbarch);
+ CORE_ADDR mask = CORE_ADDR_MAX;
+
+ if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT))
+ mask = ((CORE_ADDR) 1 << addr_bit) - 1;
sap = alloc_section_addr_info (objfile->num_sections);
for (i = 0, sec = objfile->obfd->sections;
@@ -400,7 +379,7 @@ build_section_addr_info_from_objfile (const struct objfile *objfile)
{
gdb_assert (sec != NULL);
sap->other[i].addr = (bfd_get_section_vma (objfile->obfd, sec)
- + objfile->section_offsets->offsets[i]);
+ + objfile->section_offsets->offsets[i]) & mask;
sap->other[i].name = xstrdup (bfd_get_section_name (objfile->obfd, sec));
sap->other[i].sectindex = sec->index;
}
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 57e6286..7ae819c 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -174,6 +174,9 @@ struct sym_fns
};
+extern struct section_addr_info *
+ build_section_addr_info_from_objfile (const struct objfile *objfile);
+
extern void relative_addr_info_to_section_offsets
(struct section_offsets *section_offsets, int num_sections,
struct section_addr_info *addrs);
@@ -254,11 +257,6 @@ extern char *find_separate_debug_file_by_debuglink (struct objfile *);
extern struct section_addr_info *alloc_section_addr_info (size_t
num_sections);
-/* Return a freshly allocated copy of ADDRS. The section names, if
- any, are also freshly allocated copies of those in ADDRS. */
-extern struct section_addr_info *(copy_section_addr_info
- (struct section_addr_info *addrs));
-
/* Build (allocate and populate) a section_addr_info struct from an
existing section table. */
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-09 8:41 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-09 8:41 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 0beb8ff7535f788f432efe77036e3f85711ea09b (commit)
via 97f6d96b0439794ecba310a256fb884f0d4a45bc (commit)
via 36f25a02af8a0f90c70d120f763595cf38943ace (commit)
via 6de8b8d63ed156636460945b6cc3e97438673a03 (commit)
via cbc069857cf0f4472b8aca5a1698458589157a9c (commit)
via 4d53683024cc12c9eb396ed372566ebccecc6fe0 (commit)
via 6cfbd29244ca246410ef4d5c812aac487b20909e (commit)
via 20d2b0c01a6843dc954dc59dabd710d18f0ac58d (commit)
via f848c0d286a68cc4d8d9fec6be657850a121fb82 (commit)
via 9f0f19b693cebd4d538b6f5efded886f5af0442a (commit)
via f1a97abbd8e9bb7fe0837e73497982c0231f04a8 (commit)
via 0a006d88022a5d60204b68a678870232f2b16331 (commit)
via 6c24b94109720c7df9356e081975221036a10546 (commit)
via a5aae03cf8565630bba4924bad1e44182aad2488 (commit)
via 43bf433d8d9c8d1a3b23392bed3abf2275b3b37b (commit)
via 173121fc618e528481ceb3ee41e3f7399d26ce93 (commit)
via 4efb761b57fcad92ffcdc7c40dd4729c34055d2d (commit)
via b12e8bc499256bd218cf5a234869f53cee8debd1 (commit)
via afef974bb852648f90af92683141a21ee4a8d091 (commit)
from 39a8dc9d7f4aeb64b63374991a2b260072794460 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 0beb8ff7535f788f432efe77036e3f85711ea09b
Merge: 39a8dc9d7f4aeb64b63374991a2b260072794460 97f6d96b0439794ecba310a256fb884f0d4a45bc
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Sat Jan 9 09:41:16 2010 +0100
Merge remote branch 'gdb/master'
commit 97f6d96b0439794ecba310a256fb884f0d4a45bc
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 05:03:34 2010 +0000
Fix patch ownership in ChangeLog entry.
commit 36f25a02af8a0f90c70d120f763595cf38943ace
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:44:55 2010 +0000
Signal unwinder for mips-irix N32.
* mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
tramp-frame.h.
(SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
(SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
(SIGCONTEXT_LO_OFF): New macros.
(mips_irix_n32_tramp_frame_init): New function.
(mips_irix_n32_tramp_frame): New static constant.
(mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
commit 6de8b8d63ed156636460945b6cc3e97438673a03
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:44:02 2010 +0000
Breakpoint in shared library does not work on mips-irix.
* procfs.c: #include "observer.h".
(procfs_inferior_created): New function, moving here the code
which unsets the syssgi syscall-exit notifications.
(procfs_create_inferior): Remove the code which unsets the syssgi
syscall-exit notifications. It is too early to do this here.
(_initialize_procfs): Attach the procfs_inferior_created observer.
commit cbc069857cf0f4472b8aca5a1698458589157a9c
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:42:53 2010 +0000
Wrong return convention for arrays (mips-irix).
* mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
128 bits or smaller are returned the same way as structs
and unions of the the same size.
commit 4d53683024cc12c9eb396ed372566ebccecc6fe0
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:41:49 2010 +0000
Cannot set the PC on mips-irix.
* irix5-nat.c (fill_gregset): Check regno against the raw PC
register number, no the cooked one.
commit 6cfbd29244ca246410ef4d5c812aac487b20909e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:40:59 2010 +0000
Error while loading core file on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing
if debugging from a core file.
commit 20d2b0c01a6843dc954dc59dabd710d18f0ac58d
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:40:02 2010 +0000
GDB hangs when attaching to process on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
attaching to a process.
commit f848c0d286a68cc4d8d9fec6be657850a121fb82
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:38:29 2010 +0000
* mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
containing the correct breakpoint instruction to use on mips-irix.
Use it when the osabi is GDB_OSABI_IRIX.
commit 9f0f19b693cebd4d538b6f5efded886f5af0442a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:37:12 2010 +0000
-Wunused warning in procfs.c (mips-irix only).
* procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
throughout instead of using praddset and prdelset respectively.
commit f1a97abbd8e9bb7fe0837e73497982c0231f04a8
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:36:00 2010 +0000
GDB crash while stepping into function.
* infrun.c (handle_inferior_event): Refetch the current frame
after handling what.main_action, in case that pointer became
dangling.
commit 0a006d88022a5d60204b68a678870232f2b16331
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:34:35 2010 +0000
* ada-valprint.c, parse.c: Include defs.h before including ctype.h.
commit 6c24b94109720c7df9356e081975221036a10546
Author: Joel Brobecker <brobecker@gnat.com>
Date: Sat Jan 9 04:32:51 2010 +0000
* procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
commit a5aae03cf8565630bba4924bad1e44182aad2488
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat Jan 9 00:14:11 2010 +0000
gdb/testsuite/
* gdb.base/corefile.exp: Move the core finding block out and call it as
core_find, new variable $corefile, replace corefile by $corefile and
[file tail $corefile] for usage vs. test names resp.
* lib/gdb.exp (core_find): Move it as a new function here. New
parameter binfile and deletefiles. New variable $destcore. Pre-delete
$destcore. Return "" on error.
commit 43bf433d8d9c8d1a3b23392bed3abf2275b3b37b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 9 00:00:03 2010 +0000
*** empty log message ***
commit 173121fc618e528481ceb3ee41e3f7399d26ce93
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 8 23:00:05 2010 +0000
daily update
commit 4efb761b57fcad92ffcdc7c40dd4729c34055d2d
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jan 8 22:59:47 2010 +0000
gdb/testsuite/
Workaround PR binutils/10802.
* lib/gdb.exp (gdb_gnu_strip_debug): Preserve the file attributes
(twice).
commit b12e8bc499256bd218cf5a234869f53cee8debd1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jan 8 22:55:14 2010 +0000
gdb/
Move some symfile code into subroutines.
* symfile.h (relative_addr_info_to_section_offsets)
(addr_info_make_relative): New prototypes.
* symfile.c (default_symfile_offsets): Move a part to ...
(relative_addr_info_to_section_offsets): ... this new function.
(default_symfile_offsets): Call it.
(syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
this part to ...
(addr_info_make_relative): ... this new function.
commit afef974bb852648f90af92683141a21ee4a8d091
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jan 8 22:52:03 2010 +0000
gdb/
Add from_tty to solib_create_inferior_hook.
* infcmd.c (post_create_inferior): Move solib_add after
solib_create_inferior_hook. Pass from_tty to
solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
0 from_tty and comment why.
* infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
* linux-nat.c (linux_child_follow_fork): Likewise.
* nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
* solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
from_tty.
* solib-frv.c (frv_solib_create_inferior_hook): Likewise.
* solib-irix.c (irix_solib_create_inferior_hook): Likewise.
* solib-null.c (null_solib_create_inferior_hook): Likewise.
* solib-osf.c (osf_solib_create_inferior_hook): Likewise.
* solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
* solib-som.c (som_solib_create_inferior_hook): Likewise.
* solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
Pass it to svr4_so_ops.solib_create_inferior_hook.
* solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
from_tty.
* solib-svr4.c (enable_break): New parameter from_tty. Pass it to
solib_add.
(svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
enable_break.
* solib-target.c (solib_target_solib_create_inferior_hook): New
parameter from_tty.
* solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
it to ops->solib_create_inferior_hook.
(reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
Move solib_add after solib_create_inferior_hook, call it now with
from_tty as 0. New comment there.
* solib.h (solib_create_inferior_hook): New parameter from_tty.
* solist.h (struct target_so_ops <solib_create_inferior_hook>):
Likewise.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 128 ++++++++++++++++++++++++++-
gdb/ada-valprint.c | 2 +-
gdb/infcmd.c | 36 ++++----
gdb/infrun.c | 7 ++-
gdb/irix5-nat.c | 2 +-
gdb/linux-nat.c | 4 +-
gdb/mips-irix-tdep.c | 153 ++++++++++++++++++++++++++++++++-
gdb/mips-tdep.c | 15 ++-
gdb/nto-procfs.c | 4 +-
gdb/parse.c | 3 +-
gdb/procfs.c | 44 ++++++++--
gdb/solib-darwin.c | 2 +-
gdb/solib-frv.c | 2 +-
gdb/solib-irix.c | 17 +++-
gdb/solib-null.c | 2 +-
gdb/solib-osf.c | 2 +-
gdb/solib-pa64.c | 2 +-
gdb/solib-som.c | 2 +-
gdb/solib-spu.c | 4 +-
gdb/solib-sunos.c | 2 +-
gdb/solib-svr4.c | 12 ++--
gdb/solib-target.c | 2 +-
gdb/solib.c | 19 +++-
gdb/solib.h | 2 +-
gdb/solist.h | 2 +-
gdb/symfile.c | 166 +++++++++++++++++++----------------
gdb/symfile.h | 7 ++
gdb/testsuite/ChangeLog | 15 +++
gdb/testsuite/gdb.base/corefile.exp | 87 ++++---------------
gdb/testsuite/lib/gdb.exp | 79 ++++++++++++++++-
gdb/version.in | 2 +-
32 files changed, 611 insertions(+), 217 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 6113528..5d88b80 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100108
+#define BFD_VERSION_DATE 20100109
#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 bfb8d29..1ff5f35 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,129 @@
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ Signal unwinder for mips-irix N32.
+ * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
+ tramp-frame.h.
+ (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
+ (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
+ (SIGCONTEXT_LO_OFF): New macros.
+ (mips_irix_n32_tramp_frame_init): New function.
+ (mips_irix_n32_tramp_frame): New static constant.
+ (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
+
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ Breakpoint in shared library does not work on mips-irix.
+ * procfs.c: #include "observer.h".
+ (procfs_inferior_created): New function, moving here the code
+ which unsets the syssgi syscall-exit notifications.
+ (procfs_create_inferior): Remove the code which unsets the syssgi
+ syscall-exit notifications. It is too early to do this here.
+ (_initialize_procfs): Attach the procfs_inferior_created observer.
+
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ Wrong return convention for arrays (mips-irix).
+ * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
+ 128 bits or smaller are returned the same way as structs
+ and unions of the the same size.
+
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ Cannot set the PC on mips-irix.
+ * irix5-nat.c (fill_gregset): Check regno against the raw PC
+ register number, no the cooked one.
+
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ Error while loading core file on mips-irix.
+ * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
+ if debugging from a core file.
+
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ GDB hangs when attaching to process on mips-irix.
+ * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
+ attaching to a process.
+
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ Use the correct breakpoint instruction on mips-irix.
+ * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
+ containing the correct breakpoint instruction to use on mips-irix.
+ Use it when the osabi is GDB_OSABI_IRIX.
+
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ -Wunused warning in procfs.c (mips-irix only).
+ * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
+ throughout instead of using praddset and prdelset respectively.
+
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ GDB crash while stepping into function.
+ * infrun.c (handle_inferior_event): Refetch the current frame
+ after handling what.main_action, in case that pointer became
+ dangling.
+
+2010-01-09 Joel Brobecker <brobecker@adacore.com>
+
+ Fix build failure of solaris-hosted cross debuggers.
+ * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
+
+2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
+
+ Fix build failure on sparc-solaris.
+ * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
+
+2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Move some symfile code into subroutines.
+ * symfile.h (relative_addr_info_to_section_offsets)
+ (addr_info_make_relative): New prototypes.
+ * symfile.c (default_symfile_offsets): Move a part to ...
+ (relative_addr_info_to_section_offsets): ... this new function.
+ (default_symfile_offsets): Call it.
+ (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
+ this part to ...
+ (addr_info_make_relative): ... this new function.
+
+2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Add from_tty to solib_create_inferior_hook.
+ * infcmd.c (post_create_inferior): Move solib_add after
+ solib_create_inferior_hook. Pass from_tty to
+ solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
+ 0 from_tty and comment why.
+ * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
+ * linux-nat.c (linux_child_follow_fork): Likewise.
+ * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
+ * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
+ from_tty.
+ * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
+ * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
+ * solib-null.c (null_solib_create_inferior_hook): Likewise.
+ * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
+ * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
+ * solib-som.c (som_solib_create_inferior_hook): Likewise.
+ * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
+ Pass it to svr4_so_ops.solib_create_inferior_hook.
+ * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
+ from_tty.
+ * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
+ solib_add.
+ (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
+ enable_break.
+ * solib-target.c (solib_target_solib_create_inferior_hook): New
+ parameter from_tty.
+ * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
+ it to ops->solib_create_inferior_hook.
+ (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
+ Move solib_add after solib_create_inferior_hook, call it now with
+ from_tty as 0. New comment there.
+ * solib.h (solib_create_inferior_hook): New parameter from_tty.
+ * solist.h (struct target_so_ops <solib_create_inferior_hook>):
+ Likewise.
+
2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
Fix multiexec race.
@@ -22,7 +148,7 @@
(ada_print_type): Remove support for VAX floats.
* ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
-2010-01-08 jan kratochvil <jan.kratochvil@redhat.com>
+2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
* stabsread.c (read_args): Handle zero arguments.
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index e000411..4f644b8 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -19,8 +19,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include <ctype.h>
#include "defs.h"
+#include <ctype.h>
#include "gdb_string.h"
#include "symtab.h"
#include "gdbtypes.h"
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 821ae5f..21a2233 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -397,22 +397,6 @@ post_create_inferior (struct target_ops *target, int from_tty)
/* Now that we know the register layout, retrieve current PC. */
stop_pc = regcache_read_pc (get_current_regcache ());
- /* If the solist is global across processes, there's no need to
- refetch it here. */
- if (exec_bfd && !gdbarch_has_global_solist (target_gdbarch))
- {
- /* Sometimes the platform-specific hook loads initial shared
- libraries, and sometimes it doesn't. Try to do so first, so
- that we can add them with the correct value for FROM_TTY.
- If we made all the inferior hook methods consistent,
- this call could be removed. */
-#ifdef SOLIB_ADD
- SOLIB_ADD (NULL, from_tty, target, auto_solib_add);
-#else
- solib_add (NULL, from_tty, target, auto_solib_add);
-#endif
- }
-
if (exec_bfd)
{
/* Create the hooks to handle shared library load and unload
@@ -420,7 +404,25 @@ post_create_inferior (struct target_ops *target, int from_tty)
#ifdef SOLIB_CREATE_INFERIOR_HOOK
SOLIB_CREATE_INFERIOR_HOOK (PIDGET (inferior_ptid));
#else
- solib_create_inferior_hook ();
+ solib_create_inferior_hook (from_tty);
+#endif
+ }
+
+ /* If the solist is global across processes, there's no need to
+ refetch it here. */
+ if (exec_bfd && !gdbarch_has_global_solist (target_gdbarch))
+ {
+ /* Sometimes the platform-specific hook loads initial shared
+ libraries, and sometimes it doesn't. If it doesn't FROM_TTY will be
+ incorrectly 0 but such solib targets should be fixed anyway. If we
+ made all the inferior hook methods consistent, this call could be
+ removed. Call it only after the solib target has been initialized by
+ solib_create_inferior_hook. */
+
+#ifdef SOLIB_ADD
+ SOLIB_ADD (NULL, 0, target, auto_solib_add);
+#else
+ solib_add (NULL, 0, target, auto_solib_add);
#endif
}
diff --git a/gdb/infrun.c b/gdb/infrun.c
index cfa7e82..426b816 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -764,7 +764,7 @@ follow_exec (ptid_t pid, char *execd_pathname)
#ifdef SOLIB_CREATE_INFERIOR_HOOK
SOLIB_CREATE_INFERIOR_HOOK (PIDGET (inferior_ptid));
#else
- solib_create_inferior_hook ();
+ solib_create_inferior_hook (0);
#endif
jit_inferior_created_hook ();
@@ -4066,6 +4066,11 @@ infrun: not switching back to stepped thread, it has vanished\n");
return;
}
+ /* Re-fetch current thread's frame in case the code above caused
+ the frame cache to be re-initialized, making our FRAME variable
+ a dangling pointer. */
+ frame = get_current_frame ();
+
/* If stepping through a line, keep going if still within it.
Note that step_range_end is the address of the first instruction
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c
index d8e1073..f7454dc 100644
--- a/gdb/irix5-nat.c
+++ b/gdb/irix5-nat.c
@@ -98,7 +98,7 @@ fill_gregset (const struct regcache *regcache, gregset_t *gregsetp, int regno)
*(regp + regi) = extract_signed_integer (buf, size, byte_order);
}
- if ((regno == -1) || (regno == gdbarch_pc_regnum (gdbarch)))
+ if ((regno == -1) || (regno == mips_regnum (gdbarch)->pc))
{
regi = mips_regnum (gdbarch)->pc;
size = register_size (gdbarch, regi);
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 0c95b95..48ea1bc 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -769,7 +769,7 @@ holding the child stopped. Try \"set detach-on-fork\" or \
breakpoint. If a "cloned-VM" event was propagated
better throughout the core, this wouldn't be
required. */
- solib_create_inferior_hook ();
+ solib_create_inferior_hook (0);
}
/* Let the thread_db layer learn about this new process. */
@@ -952,7 +952,7 @@ Attaching after process %d fork to child process %d.\n"),
shared libraries, and install the solib event breakpoint.
If a "cloned-VM" event was propagated better throughout
the core, this wouldn't be required. */
- solib_create_inferior_hook ();
+ solib_create_inferior_hook (0);
}
/* Let the thread_db layer learn about this new process. */
diff --git a/gdb/mips-irix-tdep.c b/gdb/mips-irix-tdep.c
index 92d1489..1965964 100644
--- a/gdb/mips-irix-tdep.c
+++ b/gdb/mips-irix-tdep.c
@@ -23,8 +23,10 @@
#include "gdb_string.h"
#include "solib.h"
#include "solib-irix.h"
-
#include "elf-bfd.h"
+#include "mips-tdep.h"
+#include "trad-frame.h"
+#include "tramp-frame.h"
static void
mips_irix_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect,
@@ -77,11 +79,160 @@ mips_irix_elf_osabi_sniffer (bfd *abfd)
return osabi;
}
+/* Unwinding past the signal handler on mips-irix.
+
+ Note: The following has only been tested with N32, but can probably
+ be made to work with a small number of adjustments.
+
+ On mips-irix, the sigcontext_t structure is stored at the base
+ of the frame established by the _sigtramp function. The definition
+ of this structure can be found in <sys/signal.h> (comments have been
+ C++'ified to avoid a collision with the C-style comment delimiters
+ used by this comment):
+
+ typedef struct sigcontext {
+ __uint32_t sc_regmask; // regs to restore in sigcleanup
+ __uint32_t sc_status; // cp0 status register
+ __uint64_t sc_pc; // pc at time of signal
+ // General purpose registers
+ __uint64_t sc_regs[32]; // processor regs 0 to 31
+ // Floating point coprocessor state
+ __uint64_t sc_fpregs[32]; // fp regs 0 to 31
+ __uint32_t sc_ownedfp; // fp has been used
+ __uint32_t sc_fpc_csr; // fpu control and status reg
+ __uint32_t sc_fpc_eir; // fpu exception instruction reg
+ // implementation/revision
+ __uint32_t sc_ssflags; // signal stack state to restore
+ __uint64_t sc_mdhi; // Multiplier hi and low regs
+ __uint64_t sc_mdlo;
+ // System coprocessor registers at time of signal
+ __uint64_t sc_cause; // cp0 cause register
+ __uint64_t sc_badvaddr; // cp0 bad virtual address
+ __uint64_t sc_triggersave; // state of graphics trigger (SGI)
+ sigset_t sc_sigset; // signal mask to restore
+ __uint64_t sc_fp_rounded_result; // for Ieee 754 support
+ __uint64_t sc_pad[31];
+ } sigcontext_t;
+
+ The following macros provide the offset of some of the fields
+ used to retrieve the value of the registers before the signal
+ was raised. */
+
+/* The size of the sigtramp frame. The sigtramp frame base can then
+ be computed by adding this size to the SP. */
+#define SIGTRAMP_FRAME_SIZE 48
+/* The offset in sigcontext_t where the PC is saved. */
+#define SIGCONTEXT_PC_OFF 8
+/* The offset in sigcontext_t where the GP registers are saved. */
+#define SIGCONTEXT_REGS_OFF (SIGCONTEXT_PC_OFF + 8)
+/* The offset in sigcontext_t where the FP regsiters are saved. */
+#define SIGCONTEXT_FPREGS_OFF (SIGCONTEXT_REGS_OFF + 32 * 8)
+/* The offset in sigcontext_t where the FP CSR register is saved. */
+#define SIGCONTEXT_FPCSR_OFF (SIGCONTEXT_FPREGS_OFF + 32 * 8 + 4)
+/* The offset in sigcontext_t where the multiplier hi register is saved. */
+#define SIGCONTEXT_HI_OFF (SIGCONTEXT_FPCSR_OFF + 2 * 4)
+/* The offset in sigcontext_t where the multiplier lo register is saved. */
+#define SIGCONTEXT_LO_OFF (SIGCONTEXT_HI_OFF + 4)
+
+/* Implement the "init" routine in struct tramp_frame for the N32 ABI
+ on mips-irix. */
+static void
+mips_irix_n32_tramp_frame_init (const struct tramp_frame *self,
+ struct frame_info *this_frame,
+ struct trad_frame_cache *this_cache,
+ CORE_ADDR func)
+{
+ struct gdbarch *gdbarch = get_frame_arch (this_frame);
+ const int num_regs = gdbarch_num_regs (gdbarch);
+ int sp_cooked_regno = num_regs + MIPS_SP_REGNUM;
+ const CORE_ADDR sp = get_frame_register_signed (this_frame, sp_cooked_regno);
+ const CORE_ADDR sigcontext_base = sp + 48;
+ const struct mips_regnum *regs = mips_regnum (gdbarch);
+ int ireg;
+
+ trad_frame_set_reg_addr (this_cache, regs->pc + gdbarch_num_regs (gdbarch),
+ sigcontext_base + SIGCONTEXT_PC_OFF);
+
+ for (ireg = 1; ireg < 32; ireg++)
+ trad_frame_set_reg_addr (this_cache, ireg + MIPS_ZERO_REGNUM + num_regs,
+ sigcontext_base + SIGCONTEXT_REGS_OFF + ireg * 8);
+
+ for (ireg = 0; ireg < 32; ireg++)
+ trad_frame_set_reg_addr (this_cache, ireg + regs->fp0 + num_regs,
+ sigcontext_base + SIGCONTEXT_FPREGS_OFF
+ + ireg * 8);
+
+ trad_frame_set_reg_addr (this_cache, regs->fp_control_status + num_regs,
+ sigcontext_base + SIGCONTEXT_FPCSR_OFF);
+
+ trad_frame_set_reg_addr (this_cache, regs->hi + num_regs,
+ sigcontext_base + SIGCONTEXT_HI_OFF);
+
+ trad_frame_set_reg_addr (this_cache, regs->lo + num_regs,
+ sigcontext_base + SIGCONTEXT_LO_OFF);
+
+ trad_frame_set_id (this_cache, frame_id_build (sigcontext_base, func));
+}
+
+/* The tramp_frame structure describing sigtramp frames on mips-irix N32.
+
+ Note that the list of instructions below is pretty much a pure dump
+ of function _sigtramp on mips-irix. A few instructions are actually
+ not tested (mask set to 0), because a portion of these instructions
+ contain an address which changes due to relocation. We could use
+ a smarter mask that checks the instrutction code alone, but given
+ the number of instructions already being checked, this seemed
+ unnecessary. */
+
+static const struct tramp_frame mips_irix_n32_tramp_frame =
+{
+ SIGTRAMP_FRAME,
+ 4,
+ {
+ { 0x3c0c8000, -1 }, /* lui t0,0x8000 */
+ { 0x27bdffd0, -1 }, /* addiu sp,sp,-48 */
+ { 0x008c6024, -1 }, /* and t0,a0,t0 */
+ { 0xffa40018, -1 }, /* sd a0,24(sp) */
+ { 0x00000000, 0 }, /* beqz t0,0xfaefcb8 <_sigtramp+40> */
+ { 0xffa60028, -1 }, /* sd a2,40(sp) */
+ { 0x01806027, -1 }, /* nor t0,t0,zero */
+ { 0xffa00020, -1 }, /* sd zero,32(sp) */
+ { 0x00000000, 0 }, /* b 0xfaefcbc <_sigtramp+44> */
+ { 0x008c2024, -1 }, /* and a0,a0,t0 */
+ { 0xffa60020, -1 }, /* sd a2,32(sp) */
+ { 0x03e0c025, -1 }, /* move t8,ra */
+ { 0x00000000, 0 }, /* bal 0xfaefcc8 <_sigtramp+56> */
+ { 0x00000000, -1 }, /* nop */
+ { 0x3c0c0007, -1 }, /* lui t0,0x7 */
+ { 0x00e0c825, -1 }, /* move t9,a3 */
+ { 0x658c80fc, -1 }, /* daddiu t0,t0,-32516 */
+ { 0x019f602d, -1 }, /* daddu t0,t0,ra */
+ { 0x0300f825, -1 }, /* move ra,t8 */
+ { 0x8d8c9880, -1 }, /* lw t0,-26496(t0) */
+ { 0x8d8c0000, -1 }, /* lw t0,0(t0) */
+ { 0x8d8d0000, -1 }, /* lw t1,0(t0) */
+ { 0xffac0008, -1 }, /* sd t0,8(sp) */
+ { 0x0320f809, -1 }, /* jalr t9 */
+ { 0xffad0010, -1 }, /* sd t1,16(sp) */
+ { 0xdfad0010, -1 }, /* ld t1,16(sp) */
+ { 0xdfac0008, -1 }, /* ld t0,8(sp) */
+ { 0xad8d0000, -1 }, /* sw t1,0(t0) */
+ { 0xdfa40020, -1 }, /* ld a0,32(sp) */
+ { 0xdfa50028, -1 }, /* ld a1,40(sp) */
+ { 0xdfa60018, -1 }, /* ld a2,24(sp) */
+ { 0x24020440, -1 }, /* li v0,1088 */
+ { 0x0000000c, -1 }, /* syscall */
+ { TRAMP_SENTINEL_INSN, -1 }
+ },
+ mips_irix_n32_tramp_frame_init
+};
+
static void
mips_irix_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch)
{
set_solib_ops (gdbarch, &irix_so_ops);
+ tramp_frame_prepend_unwinder (gdbarch, &mips_irix_n32_tramp_frame);
}
/* Provide a prototype to silence -Wmissing-prototypes. */
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 2748805..6749c27 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -3379,7 +3379,7 @@ mips_n32n64_return_value (struct gdbarch *gdbarch, struct type *func_type,
(and $f2 if necessary). This is a generalization of the Fortran COMPLEX
case.
- * Any other struct or union results of at most 128 bits are returned in
+ * Any other composite results of at most 128 bits are returned in
$2 (first 64 bits) and $3 (remainder, if necessary).
* Larger composite results are handled by converting the function to a
@@ -3390,8 +3390,7 @@ mips_n32n64_return_value (struct gdbarch *gdbarch, struct type *func_type,
specific exception to return COMPLEX results in the floating point
registers.] */
- if (TYPE_CODE (type) == TYPE_CODE_ARRAY
- || TYPE_LENGTH (type) > 2 * MIPS64_REGSIZE)
+ if (TYPE_LENGTH (type) > 2 * MIPS64_REGSIZE)
return RETURN_VALUE_STRUCT_CONVENTION;
else if (TYPE_CODE (type) == TYPE_CODE_FLT
&& TYPE_LENGTH (type) == 16
@@ -3481,9 +3480,10 @@ mips_n32n64_return_value (struct gdbarch *gdbarch, struct type *func_type,
return RETURN_VALUE_REGISTER_CONVENTION;
}
else if (TYPE_CODE (type) == TYPE_CODE_STRUCT
- || TYPE_CODE (type) == TYPE_CODE_UNION)
+ || TYPE_CODE (type) == TYPE_CODE_UNION
+ || TYPE_CODE (type) == TYPE_CODE_ARRAY)
{
- /* A structure or union. Extract the left justified value,
+ /* A composite type. Extract the left justified value,
regardless of the byte order. I.e. DO NOT USE
mips_xfer_lower. */
int offset;
@@ -5045,6 +5045,9 @@ mips_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
static gdb_byte big_breakpoint[] = { 0, 0x5, 0, 0xd };
static gdb_byte pmon_big_breakpoint[] = { 0, 0, 0, 0xd };
static gdb_byte idt_big_breakpoint[] = { 0, 0, 0x0a, 0xd };
+ /* Likewise, IRIX appears to expect a different breakpoint,
+ although this is not apparent until you try to use pthreads. */
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2010-01-08 19:16 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2010-01-08 19:16 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 39a8dc9d7f4aeb64b63374991a2b260072794460 (commit)
via 62c9162eb83180daa3b5ca826cc4f2c5a16aa086 (commit)
via 2ab505681ea0a35e9c6322d80a72b77f4e6bed2e (commit)
via 5e0aa050a89440fa0ef4941cc410b0968ce0033e (commit)
via d03d81247fede99c83c634a38c36c4764c066628 (commit)
via b39ba57b5fbbb148968e1baf0b15dfcc456c1b1f (commit)
via e100432279e0cfd053bf7946b4421ba522e51998 (commit)
via 0c52129b5b7bfa0d595aee2db9759b820e60354f (commit)
via dcc4df60aef2af0e032e28bede20537e107516cc (commit)
via 7947153f49e9ec9f47216bc44486397aa8adfeb0 (commit)
via 8212bf0441f42f6bf7952d4caa0f2b2ae8b3381e (commit)
via 915d481cfb685dfe9f4f17f58e6da3b0a87e0d86 (commit)
via 8134c22cf9d38db3e1d76552f1aabb4fa4b1fc36 (commit)
via 8e9e8764e138c442ac5669140bb7f9ee9d8e801b (commit)
via 0e78d39624808850a305a96fa9a8cc86b14c3ded (commit)
via 8d88cbeefe092eb9f9c0c394221958267df12c04 (commit)
via 1558304bedcbc007291dabc9c5a05951401393f7 (commit)
via 3a32759e5c739ff7692a4c4452910ffefdad930a (commit)
from e46da49516f24f31237ba0068bbf374d83a2e7a6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 39a8dc9d7f4aeb64b63374991a2b260072794460
Merge: e46da49516f24f31237ba0068bbf374d83a2e7a6 62c9162eb83180daa3b5ca826cc4f2c5a16aa086
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Fri Jan 8 20:16:36 2010 +0100
Merge remote branch 'gdb/master'
commit 62c9162eb83180daa3b5ca826cc4f2c5a16aa086
Author: Daniel Jacobowitz <dan@debian.org>
Date: Fri Jan 8 17:48:04 2010 +0000
* gdb.cp/gdb2495.exp: Skip if gdb,nosignals.
commit 2ab505681ea0a35e9c6322d80a72b77f4e6bed2e
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Fri Jan 8 16:54:14 2010 +0000
Fix multiexec race.
* infrun.c (handle_inferior_event): Use get_thread_regcache
with events ptid, not get_current_regcache.
commit 5e0aa050a89440fa0ef4941cc410b0968ce0033e
Author: ghazi <ghazi>
Date: Fri Jan 8 15:59:17 2010 +0000
PR bootstrap/42424
* configure.ac: Include libtool m4 files.
(_LT_CHECK_OBJDIR): Call it.
(extra_mpc_mpfr_configure_flags, extra_mpc_gmp_configure_flags,
gmplibs, ppllibs, clooglibs): Use $lt_cv_objdir.
* configure: Regenerate.
commit d03d81247fede99c83c634a38c36c4764c066628
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 8 13:54:39 2010 +0000
GDB crash with empty executable name (MinGW).
* source.c (openp): Add assert that parameter string is not NULL.
if parameter string is an empty string, then return with a failure
immediately.
commit b39ba57b5fbbb148968e1baf0b15dfcc456c1b1f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 8 12:03:36 2010 +0000
* lib/gdb.exp (gdb_start_cmd): Move comment outside of gdb_expect
call, to avoid interruption.
commit e100432279e0cfd053bf7946b4421ba522e51998
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 8 12:01:59 2010 +0000
Fix typo in date.
commit 0c52129b5b7bfa0d595aee2db9759b820e60354f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 8 11:58:22 2010 +0000
Get rid of support for VAX Floats.
* ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
(ada_vax_float_print_function): Delete.
* ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
(ada_vax_float_print_function): Delete.
* ada-typeprint.c (print_vax_floating_point_type): Delete.
(ada_print_type): Remove support for VAX floats.
* ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
commit dcc4df60aef2af0e032e28bede20537e107516cc
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 8 11:56:36 2010 +0000
Fix typo in date.
commit 7947153f49e9ec9f47216bc44486397aa8adfeb0
Author: Tristan Gingold <gingold@adacore.com>
Date: Fri Jan 8 11:15:39 2010 +0000
2010-01-08 Tristan Gingold <gingold@adacore.com>
* archive.c: Remove bfd_special_undocumented_glue.
commit 8212bf0441f42f6bf7952d4caa0f2b2ae8b3381e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jan 8 08:55:15 2010 +0000
gdb/
* stabsread.c (read_args): Handle zero arguments.
gdb/testsuite/
* gdb.stabs/weird.def (args93): New.
commit 915d481cfb685dfe9f4f17f58e6da3b0a87e0d86
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 8 07:16:43 2010 +0000
Cannot find in-tree libiconv.a after reconfigure.
* acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
that we can use, then cache the path to this archive.
* configure: Regenerate.
commit 8134c22cf9d38db3e1d76552f1aabb4fa4b1fc36
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Jan 8 05:55:10 2010 +0000
PR ld/11133
* elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
* elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
* elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
commit 8e9e8764e138c442ac5669140bb7f9ee9d8e801b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Jan 8 03:03:15 2010 +0000
Fix PR ld/11138
bfd/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11138
* elflink.c (elf_link_check_versioned_symbol): Don't abort if
a symbol referenced by DSO is is defined in a non-shared object
and forced local.
ld/testsuite/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11138
* ld-elf/pr11138-1.c: New.
* ld-elf/pr11138-1.map: Likewise.
* ld-elf/pr11138-2.c: Likewise.
* ld-elf/pr11138-2.map: Likewise.
* ld-elf/pr11138.out: Likewise.
* ld-elf/shared.exp (build_tests): Add libpr11138-1.so and
libpr11138-2.o.
(run_tests): Add 2 tests for PR ld/11138.
commit 0e78d39624808850a305a96fa9a8cc86b14c3ded
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Jan 8 01:43:22 2010 +0000
Set SEC_KEEP on section XXX for undefined __start_XXX/__stop_XXX
bfd/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11133
* elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
undefined __start_XXX/__stop_XXX in all input files and set
SEC_KEEP.
ld/testsuite/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11133
* ld-gc/gc.exp: Run start.
* ld-gc/start.d: New.
* ld-gc/start.s: Likewise.
commit 8d88cbeefe092eb9f9c0c394221958267df12c04
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 8 00:00:32 2010 +0000
*** empty log message ***
commit 1558304bedcbc007291dabc9c5a05951401393f7
Author: Doug Evans <dje@google.com>
Date: Thu Jan 7 23:26:39 2010 +0000
* lib/gdb.exp (gdb_skip_xml_test): Add comment.
commit 3a32759e5c739ff7692a4c4452910ffefdad930a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Jan 7 23:00:05 2010 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 11 +++++++++
bfd/ChangeLog | 25 ++++++++++++++++++++
bfd/archive.c | 18 +-------------
bfd/elf32-cr16.c | 22 +++--------------
bfd/elf32-microblaze.c | 38 ++++++++----------------------
bfd/elf64-ppc.c | 6 ++--
bfd/elflink.c | 37 ++++++++++++++++++++++++++++-
bfd/version.h | 2 +-
configure | 44 +++++++++++++++++++++++++++++-----
configure.ac | 22 ++++++++++++-----
gdb/ChangeLog | 35 ++++++++++++++++++++++++++++
gdb/acinclude.m4 | 5 ++-
gdb/ada-lang.c | 46 -------------------------------------
gdb/ada-lang.h | 6 -----
gdb/ada-typeprint.c | 13 ----------
gdb/ada-valprint.c | 16 -------------
gdb/configure | 5 ++-
gdb/infrun.c | 3 +-
gdb/source.c | 14 +++++++++++
gdb/stabsread.c | 12 +++++++++-
gdb/testsuite/ChangeLog | 17 +++++++++++++
gdb/testsuite/gdb.cp/gdb2495.exp | 5 ++++
gdb/testsuite/gdb.stabs/weird.def | 4 +++
gdb/testsuite/lib/gdb.exp | 5 ++-
gdb/version.in | 2 +-
25 files changed, 240 insertions(+), 173 deletions(-)
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 512d894..9d7f493 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR bootstrap/42424
+ * configure.ac: Include libtool m4 files.
+ (_LT_CHECK_OBJDIR): Call it.
+ (extra_mpc_mpfr_configure_flags, extra_mpc_gmp_configure_flags,
+ gmplibs, ppllibs, clooglibs): Use $lt_cv_objdir.
+
+ * configure: Regenerate.
+
2010-01-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR bootstrap/41818
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 01950b4..fed7aab 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,28 @@
+2010-01-08 Tristan Gingold <gingold@adacore.com>
+
+ * archive.c: Remove bfd_special_undocumented_glue.
+
+2010-01-08 Alan Modra <amodra@gmail.com>
+
+ PR ld/11133
+ * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
+ * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
+ * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
+
+2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11138
+ * elflink.c (elf_link_check_versioned_symbol): Don't abort if
+ a symbol referenced by DSO is is defined in a non-shared object
+ and forced local.
+
+2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11133
+ * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
+ undefined __start_XXX/__stop_XXX in all input files and set
+ SEC_KEEP.
+
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11143
diff --git a/bfd/archive.c b/bfd/archive.c
index 4d67463..6ba743c 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -1,6 +1,6 @@
/* BFD back-end for archive files (libraries).
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Cygnus Support. Mostly Gumby Henkel-Wallace's fault.
@@ -1703,22 +1703,6 @@ bfd_ar_hdr_from_filesystem (bfd *abfd, const char *filename, bfd *member)
return ared;
}
-/* This is magic required by the "ar" program. Since it's
- undocumented, it's undocumented. You may think that it would take
- a strong stomach to write this, and it does, but it takes even a
- stronger stomach to try to code around such a thing! */
-
-struct ar_hdr *bfd_special_undocumented_glue (bfd *, const char *);
-
-struct ar_hdr *
-bfd_special_undocumented_glue (bfd *abfd, const char *filename)
-{
- struct areltdata *ar_elt = bfd_ar_hdr_from_filesystem (abfd, filename, 0);
- if (ar_elt == NULL)
- return NULL;
- return (struct ar_hdr *) ar_elt->arch_header;
-}
-
/* Analogous to stat call. */
int
diff --git a/bfd/elf32-cr16.c b/bfd/elf32-cr16.c
index 9a4e2a9..84d9550 100644
--- a/bfd/elf32-cr16.c
+++ b/bfd/elf32-cr16.c
@@ -1,5 +1,5 @@
/* BFD back-end for National Semiconductor's CR16 ELF
- Copyright 2007, 2008, 2009 Free Software Foundation, Inc.
+ Copyright 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Written by M R Swami Reddy.
This file is part of BFD, the Binary File Descriptor library.
@@ -2287,26 +2287,12 @@ elf32_cr16_relax_section (bfd *abfd, asection *sec,
static asection *
elf32_cr16_gc_mark_hook (asection *sec,
- struct bfd_link_info *info ATTRIBUTE_UNUSED,
- Elf_Internal_Rela *rel ATTRIBUTE_UNUSED,
+ struct bfd_link_info *info,
+ Elf_Internal_Rela *rel,
struct elf_link_hash_entry *h,
Elf_Internal_Sym *sym)
{
- if (h == NULL)
- return bfd_section_from_elf_index (sec->owner, sym->st_shndx);
-
- switch (h->root.type)
- {
- case bfd_link_hash_defined:
- case bfd_link_hash_defweak:
- return h->root.u.def.section;
-
- case bfd_link_hash_common:
- return h->root.u.c.p->section;
-
- default:
- return NULL;
- }
+ return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym);
}
/* Update the got entry reference counts for the section being removed. */
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
index 4c5a38d..47e4d51 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -1,6 +1,6 @@
/* Xilinx MicroBlaze-specific support for 32-bit ELF
- Copyright 2009 Free Software Foundation, Inc.
+ Copyright 2009, 2010 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -1819,38 +1819,20 @@ microblaze_elf_relax_section (bfd *abfd,
static asection *
microblaze_elf_gc_mark_hook (asection *sec,
- struct bfd_link_info * info ATTRIBUTE_UNUSED,
+ struct bfd_link_info * info,
Elf_Internal_Rela * rel,
struct elf_link_hash_entry * h,
Elf_Internal_Sym * sym)
{
if (h != NULL)
- {
- switch (ELF32_R_TYPE (rel->r_info))
- {
- case R_MICROBLAZE_GNU_VTINHERIT:
- case R_MICROBLAZE_GNU_VTENTRY:
- break;
-
- default:
- switch (h->root.type)
- {
- case bfd_link_hash_defined:
- case bfd_link_hash_defweak:
- return h->root.u.def.section;
-
- case bfd_link_hash_common:
- return h->root.u.c.p->section;
-
- default:
- break;
- }
- }
- }
- else
- return bfd_section_from_elf_index (sec->owner, sym->st_shndx);
-
- return NULL;
+ switch (ELF32_R_TYPE (rel->r_info))
+ {
+ case R_MICROBLAZE_GNU_VTINHERIT:
+ case R_MICROBLAZE_GNU_VTENTRY:
+ return NULL;
+ }
+
+ return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym);
}
/* Update the got entry reference counts for the section being removed. */
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index a940dab..6648ddc 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -1,6 +1,6 @@
/* PowerPC64-specific support for 64-bit ELF.
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
- 2009 Free Software Foundation, Inc.
+ 2009, 2010 Free Software Foundation, Inc.
Written by Linus Nordberg, Swox AB <info@swox.com>,
based on elf32-ppc.c by Ian Lance Taylor.
Largely rewritten by Alan Modra.
@@ -5624,7 +5624,7 @@ ppc64_elf_gc_mark_dynamic_ref (struct elf_link_hash_entry *h, void *inf)
static asection *
ppc64_elf_gc_mark_hook (asection *sec,
- struct bfd_link_info *info ATTRIBUTE_UNUSED,
+ struct bfd_link_info *info,
Elf_Internal_Rela *rel,
struct elf_link_hash_entry *h,
Elf_Internal_Sym *sym)
@@ -5683,7 +5683,7 @@ ppc64_elf_gc_mark_hook (asection *sec,
break;
default:
- break;
+ return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym);
}
}
}
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 284bff1..24d8702 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -8492,10 +8492,14 @@ elf_link_check_versioned_symbol (struct bfd_link_info *info,
_bfd_elf_swap_versym_in (input, ever, &iver);
- if ((iver.vs_vers & VERSYM_HIDDEN) == 0)
+ if ((iver.vs_vers & VERSYM_HIDDEN) == 0
+ && !(h->def_regular
+ && h->forced_local))
{
/* If we have a non-hidden versioned sym, then it should
- have provided a definition for the undefined sym. */
+ have provided a definition for the undefined sym unless
+ it is defined in a non-shared object and forced local.
+ */
abort ();
}
@@ -11331,6 +11335,8 @@ _bfd_elf_gc_mark_hook (asection *sec,
struct elf_link_hash_entry *h,
Elf_Internal_Sym *sym)
{
+ const char *sec_name;
+
if (h != NULL)
{
switch (h->root.type)
@@ -11342,6 +11348,33 @@ _bfd_elf_gc_mark_hook (asection *sec,
case bfd_link_hash_common:
return h->root.u.c.p->section;
+ case bfd_link_hash_undefined:
+ case bfd_link_hash_undefweak:
+ /* To work around a glibc bug, keep all XXX input sections
+ when there is an as yet undefined reference to __start_XXX
+ or __stop_XXX symbols. The linker will later define such
+ symbols for orphan input sections that have a name
+ representable as a C identifier. */
+ if (strncmp (h->root.root.string, "__start_", 8) == 0)
+ sec_name = h->root.root.string + 8;
+ else if (strncmp (h->root.root.string, "__stop_", 7) == 0)
+ sec_name = h->root.root.string + 7;
+ else
+ sec_name = NULL;
+
+ if (sec_name && *sec_name != '\0')
+ {
+ bfd *i;
+
+ for (i = info->input_bfds; i; i = i->link_next)
+ {
+ sec = bfd_get_section_by_name (i, sec_name);
+ if (sec)
+ sec->flags |= SEC_KEEP;
+ }
+ }
+ break;
+
default:
break;
}
diff --git a/bfd/version.h b/bfd/version.h
index d83221a..6113528 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100107
+#define BFD_VERSION_DATE 20100108
#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/configure b/configure
index 542f2b2..9aa4685 100755
--- a/configure
+++ b/configure
@@ -5284,6 +5284,36 @@ else
fi
+# Used for setting $lt_cv_objdir
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
+$as_echo_n "checking for objdir... " >&6; }
+if test "${lt_cv_objdir+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
+$as_echo "$lt_cv_objdir" >&6; }
+objdir=$lt_cv_objdir
+
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define LT_OBJDIR "$lt_cv_objdir/"
+_ACEOF
+
+
+
# Check for GMP, MPFR and MPC
gmplibs="-lmpc -lmpfr -lgmp"
gmpinc=
@@ -5321,7 +5351,7 @@ if test "x$with_mpc_lib" != x; then
gmplibs="-L$with_mpc_lib $gmplibs"
fi
if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
- gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs '"$gmplibs"
+ gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
gmpinc='-I$$s/mpc/src '"$gmpinc"
# Do not test the mpc version. Assume that it is sufficient, since
# it is in the source tree, and the library has not been built yet
@@ -5370,9 +5400,9 @@ if test "x$with_mpfr_lib" != x; then
gmplibs="-L$with_mpfr_lib $gmplibs"
fi
if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
- gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
+ gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
- extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
+ extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
# Do not test the mpfr version. Assume that it is sufficient, since
# it is in the source tree, and the library has not been built yet
# but it would be included on the link line in the version check below
@@ -5420,10 +5450,10 @@ if test "x$with_gmp_lib" != x; then
gmplibs="-L$with_gmp_lib $gmplibs"
fi
if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
- gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
+ gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
- extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
+ extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
# Do not test the gmp version. Assume that it is sufficient, since
# it is in the source tree, and the library has not been built yet
# but it would be included on the link line in the version check below
@@ -5735,7 +5765,7 @@ if test "x$with_ppl_lib" != x; then
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
fi
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
- ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/.libs -L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/_libs -L$$r/$(HOST_SUBDIR)/ppl/src/.libs -L$$r/$(HOST_SUBDIR)/ppl/src/_libs -lppl_c -lppl -lgmpxx '
+ ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
enable_ppl_version_check=no
fi
@@ -5830,7 +5860,7 @@ if test "x$with_cloog_lib" != x; then
clooglibs="-L$with_cloog_lib -lcloog"
fi
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
- clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
+ clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
enable_cloog_version_check=no
fi
diff --git a/configure.ac b/configure.ac
index 53ca32c..596b527 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,11 @@
m4_include(config/acx.m4)
m4_include(config/override.m4)
m4_include(config/proginstall.m4)
+m4_include([libtool.m4])
+m4_include([ltoptions.m4])
+m4_include([ltsugar.m4])
+m4_include([ltversion.m4])
+m4_include([lt~obsolete.m4])
AC_INIT(move-if-change)
AC_PREREQ(2.64)
@@ -1227,6 +1232,9 @@ AC_ARG_ENABLE(build-with-cxx,
ENABLE_BUILD_WITH_CXX=$enableval,
ENABLE_BUILD_WITH_CXX=no)
+# Used for setting $lt_cv_objdir
+_LT_CHECK_OBJDIR
+
# Check for GMP, MPFR and MPC
gmplibs="-lmpc -lmpfr -lgmp"
gmpinc=
@@ -1252,7 +1260,7 @@ if test "x$with_mpc_lib" != x; then
gmplibs="-L$with_mpc_lib $gmplibs"
fi
if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
- gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs '"$gmplibs"
+ gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
gmpinc='-I$$s/mpc/src '"$gmpinc"
# Do not test the mpc version. Assume that it is sufficient, since
# it is in the source tree, and the library has not been built yet
@@ -1285,9 +1293,9 @@ if test "x$with_mpfr_lib" != x; then
gmplibs="-L$with_mpfr_lib $gmplibs"
fi
if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
- gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
+ gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
- extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
+ extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
# Do not test the mpfr version. Assume that it is sufficient, since
# it is in the source tree, and the library has not been built yet
# but it would be included on the link line in the version check below
@@ -1318,10 +1326,10 @@ if test "x$with_gmp_lib" != x; then
gmplibs="-L$with_gmp_lib $gmplibs"
fi
if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
- gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
+ gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
- extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
+ extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
# Do not test the gmp version. Assume that it is sufficient, since
# it is in the source tree, and the library has not been built yet
# but it would be included on the link line in the version check below
@@ -1507,7 +1515,7 @@ if test "x$with_ppl_lib" != x; then
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
fi
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
- ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/.libs -L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/_libs -L$$r/$(HOST_SUBDIR)/ppl/src/.libs -L$$r/$(HOST_SUBDIR)/ppl/src/_libs -lppl_c -lppl -lgmpxx '
+ ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
enable_ppl_version_check=no
fi
@@ -1567,7 +1575,7 @@ if test "x$with_cloog_lib" != x; then
clooglibs="-L$with_cloog_lib -lcloog"
fi
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
- clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
+ clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
enable_cloog_version_check=no
fi
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3430364..bfb8d29 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,38 @@
+2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
+
+ Fix multiexec race.
+ * infrun.c (handle_inferior_event): Use get_thread_regcache
+ with events ptid, not get_current_regcache.
+
+2009-01-08 Joel Brobecker <brobecker@adacore.com>
+
+ GDB crash with empty executable name (MinGW).
+ * source.c (openp): Add assert that parameter string is not NULL.
+ if parameter string is an empty string, then return with a failure
+ immediately.
+
+2009-01-08 Joel Brobecker <brobecker@adacore.com>
+
+ Get rid of support for VAX Floats.
+ * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
+ (ada_vax_float_print_function): Delete.
+ * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
+ (ada_vax_float_print_function): Delete.
+ * ada-typeprint.c (print_vax_floating_point_type): Delete.
+ (ada_print_type): Remove support for VAX floats.
+ * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
+
+2010-01-08 jan kratochvil <jan.kratochvil@redhat.com>
+
+ * stabsread.c (read_args): Handle zero arguments.
+
+2009-01-08 Joel Brobecker <brobecker@adacore.com>
+
+ Cannot find in-tree libiconv.a after reconfigure.
+ * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2009-12-06 17:43 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2009-12-06 17:43 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 0e61b8f8c05ad048c8a8b389a95e028c9a1bb2e5 (commit)
via 5846c255b9683569db7b190a1e2fff0bc2b7daa5 (commit)
via bfff092af698385a31a2971eb0a4e8bdfa8da851 (commit)
via 481758f36a72666fba2f51c5acba5041552692da (commit)
via 27aa34020b6d476f37354412c7771f51b080362f (commit)
via 12c8f5d59208eb2ca1a2a89b72c6c235fcefce16 (commit)
via 33d7c71c396a43d88802bbfc9fba2fb50569343a (commit)
via 6049824f83bbc989e5ae525bbfb9d24c2193391c (commit)
via aeb63b0c576869873a05f61ef95f6b7aa31bcf96 (commit)
via bcd9cefd95ef10bdff092ab45d4b86cced145546 (commit)
via 74091bda99cd6a5787f35f8f794318dd9da1a87d (commit)
via 14c4542acf3ea5f188f337896038f62bbff7d5b5 (commit)
via b94e1f54604f46b3abd2e89a70039a9b46bee59d (commit)
via 25479224fe5afb23760e221b64b7861be340b37e (commit)
from 5ac4d4384a16c008944b5d8e21c2de3ee8ac7739 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 0e61b8f8c05ad048c8a8b389a95e028c9a1bb2e5
Merge: 5ac4d4384a16c008944b5d8e21c2de3ee8ac7739 5846c255b9683569db7b190a1e2fff0bc2b7daa5
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Sun Dec 6 18:43:22 2009 +0100
Merge remote branch 'gdb/master'
commit 5846c255b9683569db7b190a1e2fff0bc2b7daa5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Dec 6 00:00:33 2009 +0000
*** empty log message ***
commit bfff092af698385a31a2971eb0a4e8bdfa8da851
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Dec 5 23:00:04 2009 +0000
daily update
commit 481758f36a72666fba2f51c5acba5041552692da
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Dec 5 00:00:03 2009 +0000
*** empty log message ***
commit 27aa34020b6d476f37354412c7771f51b080362f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Dec 4 23:00:04 2009 +0000
daily update
commit 12c8f5d59208eb2ca1a2a89b72c6c235fcefce16
Author: Daniel Jacobowitz <dan@debian.org>
Date: Fri Dec 4 20:26:32 2009 +0000
* valops.c (value_struct_elt_for_reference): Do not rely on
field order.
commit 33d7c71c396a43d88802bbfc9fba2fb50569343a
Author: H.J. Lu <hjl@lucon.org>
Date: Fri Dec 4 07:51:40 2009 +0000
Support fxsave64 and fxrstor64.
gas/testsuite/
2009-12-03 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run x86-64-fxsave and x86-64-fxsave-intel.
* gas/i386/rex.d: Updated for fxsave64.
* gas/i386/x86-64-fxsave-intel.d: New.
* gas/i386/x86-64-fxsave.d: Likewise.
* gas/i386/x86-64-fxsave.s: Likewise.
opcodes/
2009-12-03 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (FXSAVE_Fixup): New.
(FXSAVE): Likewise.
(mod_table): Use FXSAVE on fxsave and fxrstor.
* i386-opc.tbl: Add fxsave64 and fxrstor64.
* i386-tbl.h: Regenerated.
commit 6049824f83bbc989e5ae525bbfb9d24c2193391c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Dec 4 00:00:03 2009 +0000
*** empty log message ***
commit aeb63b0c576869873a05f61ef95f6b7aa31bcf96
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Dec 3 23:00:04 2009 +0000
daily update
commit bcd9cefd95ef10bdff092ab45d4b86cced145546
Author: pmuldoon <pmuldoon>
Date: Thu Dec 3 21:19:48 2009 +0000
2009-12-03 Richard Ward <richard.j.ward1@googlemail.com>
* python/py-type.c (convert_field): New attribute "is_base_class".
doc/
2009-12-03 Richard Ward <richard.j.ward1@googlemail.com>
* gdb.texinfo (Types In Python): Describe "is_base_class".
testsuite/
2009-12-03 Phil Muldoon <pmuldoon@redhat.com>
PR python/10805
* gdb.python/py-type.exp: New file.
* gdb.python/py-type.c: New file.
* Makefile.in: Add py-type.
commit 74091bda99cd6a5787f35f8f794318dd9da1a87d
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Dec 3 18:30:00 2009 +0000
gdb
* python/python.c (gdbpy_parse_and_eval): New function.
(GdbMethods): Add "parse_and_eval".
gdb/testsuite
* gdb.python/py-value.exp (test_parse_and_eval): New
function.
gdb/doc
* gdb.texinfo (Basic Python): Document gdb.parse_and_eval.
commit 14c4542acf3ea5f188f337896038f62bbff7d5b5
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Dec 3 17:59:02 2009 +0000
gdb/
* linux-thread-db.c (find_new_threads_once): Change errp and err types
to td_err_e.
(thread_db_find_new_threads_2): Change err type to td_err_e.
commit b94e1f54604f46b3abd2e89a70039a9b46bee59d
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date: Thu Dec 3 17:47:05 2009 +0000
ChangeLog:
2009-12-03 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/11022
* breakpoint.c (invalidate_bp_value_on_memory_change):
New function.
(_initialize_breakpoint): Add it as memory change observer.
testsuite/ChangeLog:
2009-12-03 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/11022
* gdb.base/pr11022.exp: New test.
* gdb.base/pr11022.c: New test.
commit 25479224fe5afb23760e221b64b7861be340b37e
Author: David Daney <ddaney@avtrex.com>
Date: Thu Dec 3 17:01:46 2009 +0000
include/
2009-12-03 David Daney <ddaney@caviumnetworks.com>
Adam Nemet <adambnemet@gmail.com>
* elf/mips.h (E_MIPS_MACH_OCTEON2): New machine flag.
binutils/
2009-12-03 David Daney <ddaney@caviumnetworks.com>
Adam Nemet <adambnemet@gmail.com>
* readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON2 case.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 28 ++++++++
gdb/breakpoint.c | 30 +++++++++
gdb/doc/ChangeLog | 8 ++
gdb/doc/gdb.texinfo | 19 ++++++
gdb/linux-thread-db.c | 6 +-
gdb/python/py-type.c | 8 ++
gdb/python/python.c | 25 +++++++
gdb/testsuite/ChangeLog | 20 ++++++
gdb/testsuite/gdb.base/pr11022.c | 32 +++++++++
gdb/testsuite/gdb.base/pr11022.exp | 58 +++++++++++++++++
gdb/testsuite/gdb.python/Makefile.in | 2 +-
gdb/testsuite/gdb.python/py-type.c | 56 ++++++++++++++++
gdb/testsuite/gdb.python/py-type.exp | 114 +++++++++++++++++++++++++++++++++
gdb/testsuite/gdb.python/py-value.exp | 12 ++++
gdb/valops.c | 30 +++++----
gdb/version.in | 2 +-
include/ChangeLog | 5 ++
include/elf/mips.h | 1 +
opcodes/ChangeLog | 9 +++
opcodes/i386-dis.c | 22 ++++++-
opcodes/i386-opc.tbl | 2 +
opcodes/i386-tbl.h | 20 ++++++
23 files changed, 489 insertions(+), 22 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/pr11022.c
create mode 100644 gdb/testsuite/gdb.base/pr11022.exp
create mode 100644 gdb/testsuite/gdb.python/py-type.c
create mode 100644 gdb/testsuite/gdb.python/py-type.exp
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 2711858..2e2917e 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20091203
+#define BFD_VERSION_DATE 20091206
#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 2175f8c..375f968 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,31 @@
+2009-12-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * valops.c (value_struct_elt_for_reference): Do not rely on
+ field order.
+
+2009-12-03 Richard Ward <richard.j.ward1@googlemail.com>
+
+ * python/py-type.c (convert_field): New attribute "is_base_class".
+
+2009-12-03 Tom Tromey <tromey@redhat.com>
+
+ * python/python.c (gdbpy_parse_and_eval): New function.
+ (GdbMethods): Add "parse_and_eval".
+
+2009-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-thread-db.c (find_new_threads_once): Change errp and err types
+ to td_err_e.
+ (thread_db_find_new_threads_2): Change err type to td_err_e.
+
+2009-12-03 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ PR gdb/11022
+
+ * breakpoint.c (invalidate_bp_value_on_memory_change):
+ New function.
+ (_initialize_breakpoint): Add it as memory change observer.
+
2009-12-03 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_sym_fns): Set sym_segment routine.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 4340c5d..5394ae4 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -9490,6 +9490,35 @@ show_breakpoint_cmd (char *args, int from_tty)
{
}
+/* Invalidate last known value of any hardware watchpoint if
+ the memory which that value represents has been written to by
+ GDB itself. */
+
+static void
+invalidate_bp_value_on_memory_change (CORE_ADDR addr, int len,
+ const bfd_byte *data)
+{
+ struct breakpoint *bp;
+
+ ALL_BREAKPOINTS (bp)
+ if (bp->enable_state == bp_enabled
+ && bp->type == bp_hardware_watchpoint
+ && bp->val_valid && bp->val)
+ {
+ struct bp_location *loc;
+
+ for (loc = bp->loc; loc != NULL; loc = loc->next)
+ if (loc->loc_type == bp_loc_hardware_watchpoint
+ && loc->address + loc->length > addr
+ && addr + len > loc->address)
+ {
+ value_free (bp->val);
+ bp->val = NULL;
+ bp->val_valid = 0;
+ }
+ }
+}
+
/* Use default_breakpoint_'s, or nothing if they aren't valid. */
struct symtabs_and_lines
@@ -10077,6 +10106,7 @@ _initialize_breakpoint (void)
observer_attach_solib_unloaded (disable_breakpoints_in_unloaded_shlib);
observer_attach_inferior_exit (clear_syscall_counts);
+ observer_attach_memory_changed (invalidate_bp_value_on_memory_change);
breakpoint_chain = 0;
/* Don't bother to call set_breakpoint_count. $bpnum isn't useful
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 73a640d..8e5eed6 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,11 @@
+2009-12-03 Richard Ward <richard.j.ward1@googlemail.com>
+
+ * gdb.texinfo (Types In Python): Describe "is_base_class".
+
+2009-12-03 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Basic Python): Document gdb.parse_and_eval.
+
2009-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
* observer.texi: New memory_changed observer.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 39107ec..b5862c1 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -19328,6 +19328,19 @@ If no exception is raised, the return value is always an instance of
@code{gdb.Value} (@pxref{Values From Inferior}).
@end defun
+@findex gdb.parse_and_eval
+@defun parse_and_eval expression
+Parse @var{expression} as an expression in the current language,
+evaluate it, and return the result as a @code{gdb.Value}.
+@var{expression} must be a string.
+
+This function can be useful when implementing a new command
+(@pxref{Commands In Python}), as it provides a way to parse the
+command's argument as an expression. It is also useful simply to
+compute values, for example, it is the only way to get the value of a
+convenience variable (@pxref{Convenience Vars}) as a @code{gdb.Value}.
+@end defun
+
@findex gdb.write
@defun write string
Print a string to @value{GDBN}'s paginated standard output stream.
@@ -19608,6 +19621,12 @@ This is @code{True} if the field is artificial, usually meaning that
it was provided by the compiler and not the user. This attribute is
always provided, and is @code{False} if the field is not artificial.
+@item is_base_class
+This is @code{True} if the field represents a base class of a C@t{++}
+structure. This attribute is always provided, and is @code{False}
+if the field is not a base class of the type that is the argument of
+@code{fields}, or if that type was not a C@t{++} class.
+
@item bitsize
If the field is packed, or is a bitfield, then this will have a
non-zero value, which is the size of the field in bits. Otherwise,
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index 32ac5c5..c48b870 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -1363,11 +1363,11 @@ find_new_threads_callback (const td_thrhandle_t *th_p, void *data)
static int
find_new_threads_once (struct thread_db_info *info, int iteration,
- int *errp)
+ td_err_e *errp)
{
volatile struct gdb_exception except;
struct callback_data data;
- int err = TD_ERR;
+ td_err_e err = TD_ERR;
data.info = info;
data.new_threads = 0;
@@ -1440,7 +1440,7 @@ thread_db_find_new_threads_2 (ptid_t ptid, int until_no_new)
}
else
{
- int err;
+ td_err_e err;
find_new_threads_once (info, 0, &err);
if (err != TD_OK)
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 590d90a..e73185e 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -169,6 +169,14 @@ convert_field (struct type *type, int field)
if (PyObject_SetAttrString (result, "artificial", arg) < 0)
goto failarg;
+ if (TYPE_CODE (type) == TYPE_CODE_CLASS)
+ arg = field < TYPE_N_BASECLASSES (type) ? Py_True : Py_False;
+ else
+ arg = Py_False;
+ Py_INCREF (arg);
+ if (PyObject_SetAttrString (result, "is_base_class", arg) < 0)
+ goto failarg;
+
arg = PyLong_FromLong (TYPE_FIELD_BITSIZE (type, field));
if (!arg)
goto fail;
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 77a0069..23e94a5 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -323,6 +323,26 @@ execute_gdb_command (PyObject *self, PyObject *args)
Py_RETURN_NONE;
}
+/* Parse a string and evaluate it as an expression. */
+static PyObject *
+gdbpy_parse_and_eval (PyObject *self, PyObject *args)
+{
+ char *expr_str;
+ struct value *result = NULL;
+ volatile struct gdb_exception except;
+
+ if (!PyArg_ParseTuple (args, "s", &expr_str))
+ return NULL;
+
+ TRY_CATCH (except, RETURN_MASK_ALL)
+ {
+ result = parse_and_eval (expr_str);
+ }
+ GDB_PY_HANDLE_EXCEPTION (except);
+
+ return value_to_value_object (result);
+}
+
\f
/* Printing. */
@@ -680,6 +700,11 @@ Return a string explaining unwind stop reason." },
"lookup_type (name [, block]) -> type\n\
Return a Type corresponding to the given name." },
+ { "parse_and_eval", gdbpy_parse_and_eval, METH_VARARGS,
+ "parse_and_eval (String) -> Value.\n\
+Parse String as an expression, evaluate it, and return the result as a Value."
+ },
+
{ "write", gdbpy_write, METH_VARARGS,
"Write a string using gdb's filtered stream." },
{ "flush", gdbpy_flush, METH_NOARGS,
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e397142..65d1ee6 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,23 @@
+2009-12-03 Phil Muldoon <pmuldoon@redhat.com>
+
+ PR python/10805
+
+ * gdb.python/py-type.exp: New file.
+ * gdb.python/py-type.c: New file.
+ * Makefile.in: Add py-type.
+
+2009-12-03 Tom Tromey <tromey@redhat.com>
+
+ * gdb.python/py-value.exp (test_parse_and_eval): New
+ function.
+
+2009-12-03 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ PR gdb/11022
+
+ * gdb.base/pr11022.exp: New test.
+ * gdb.base/pr11022.c: New test.
+
2009-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix spurious false FAILs.
diff --git a/gdb/testsuite/gdb.base/pr11022.c b/gdb/testsuite/gdb.base/pr11022.c
new file mode 100644
index 0000000..132ef65
--- /dev/null
+++ b/gdb/testsuite/gdb.base/pr11022.c
@@ -0,0 +1,32 @@
+/* This test is part of GDB, the GNU debugger.
+
+ Copyright 2009 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+int x;
+
+int
+main ()
+{
+ int i, j;
+
+ for (i = 0; i < 500; ++i) {
+ j = 0; /* break here */
+ x = 42;
+ j = i; /* expect HW watchpoint stop */
+ }
+ return 0;
+}
diff --git a/gdb/testsuite/gdb.base/pr11022.exp b/gdb/testsuite/gdb.base/pr11022.exp
new file mode 100644
index 0000000..3f508ee
--- /dev/null
+++ b/gdb/testsuite/gdb.base/pr11022.exp
@@ -0,0 +1,58 @@
+# Copyright 2009
+# Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+if $tracelevel then {
+ strace $tracelevel
+}
+
+if [target_info exists gdb,no_hardware_watchpoints] {
+ # This test requires HW watchpoints
+ untested pr11022.exp
+ return -1
+}
+
+set testfile "pr11022"
+set srcfile ${testfile}.c
+set binfile ${objdir}/${subdir}/${testfile}
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
+ untested pr11022.exp
+ return -1
+}
+
+# Start with a fresh gdb.
+
+gdb_exit
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+gdb_load ${binfile}
+
+if ![runto_main] then {
+ fail "Can't run to main"
+ return 0
+}
+
+gdb_test "break [gdb_get_line_number "break here"]" \
+ ".*Breakpoint.* at .*" \
+ "set breakpoint"
+
+gdb_test "watch x" ".*Hardware watchpoint.*" "set watchpoint"
+gdb_test "continue" ".*break here.*" "breakpoint hit"
+gdb_test "continue" ".*Hardware watchpoint.*Old value = 0.*New value = 42.*" \
+ "watchpoint hit"
+gdb_test "continue" ".*break here.*" "breakpoint hit 2"
+gdb_test "set var x = 1"
+gdb_test "continue" ".*Hardware watchpoint.*Old value = 1.*New value = 42.*" \
+ "watchpoint hit 2"
diff --git a/gdb/testsuite/gdb.python/Makefile.in b/gdb/testsuite/gdb.python/Makefile.in
index ca5cdc7..3e81bd3 100644
--- a/gdb/testsuite/gdb.python/Makefile.in
+++ b/gdb/testsuite/gdb.python/Makefile.in
@@ -1,7 +1,7 @@
VPATH = @srcdir@
srcdir = @srcdir@
-EXECUTABLES = py-value py-prettyprint py-template
+EXECUTABLES = py-type py-value py-prettyprint py-template
all info install-info dvi install uninstall installcheck check:
@echo "Nothing to be done for $@..."
diff --git a/gdb/testsuite/gdb.python/py-type.c b/gdb/testsuite/gdb.python/py-type.c
new file mode 100644
index 0000000..9d4b57b
--- /dev/null
+++ b/gdb/testsuite/gdb.python/py-type.c
@@ -0,0 +1,56 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2009 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+struct s
+{
+ int a;
+ int b;
+};
+
+#ifdef __cplusplus
+struct C
+{
+ int c;
+ int d;
+};
+
+struct D : C
+{
+ int e;
+ int f;
+};
+#endif
+
+int
+main ()
+{
+ int ar[2] = {1,2};
+ struct s st;
+#ifdef __cplusplus
+ C c;
+ c.c = 1;
+ c.d = 2;
+ D d;
+ d.e = 3;
+ d.f = 4;
+#endif
+
+ st.a = 3;
+ st.b = 5;
+
+ return 0; /* break to inspect struct and array. */
+}
diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp
new file mode 100644
index 0000000..fabda5b
--- /dev/null
+++ b/gdb/testsuite/gdb.python/py-type.exp
@@ -0,0 +1,114 @@
+# Copyright (C) 2009 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# This file is part of the GDB testsuite. It tests the mechanism
+# of exposing types to Python.
+
+if $tracelevel then {
+ strace $tracelevel
+}
+
+set testfile "py-type"
+set srcfile ${testfile}.c
+set binfile ${objdir}/${subdir}/${testfile}
+
+# Build inferior to language specification.
+proc build_inferior {lang} {
+ global srcdir subdir srcfile binfile testfile hex
+
+ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "debug $lang"] != "" } {
+ untested "Couldn't compile ${srcfile} in $lang mode"
+ return -1
+ }
+}
+
+# Restart GDB, set breakpoint and run to that breakpoint.
+proc restart_gdb {bp} {
+ global srcdir subdir srcfile binfile testfile hex
+
+ gdb_exit
+ gdb_start
+ gdb_reinitialize_dir $srcdir/$subdir
+ gdb_load ${binfile}
+
+ if ![runto_main ] then {
+ perror "couldn't run to breakpoint"
+ return
+ }
+
+ gdb_breakpoint [gdb_get_line_number $bp]
+ gdb_continue_to_breakpoint $bp
+}
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2009-12-03 16:32 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2009-12-03 16:32 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 31245 bytes --]
The branch, master has been updated
via 5ac4d4384a16c008944b5d8e21c2de3ee8ac7739 (commit)
via 6b2889b9b220f31f0f213c12c0e13749ac8ab0ef (commit)
via afcf4b3b52e4f176adf703654c23521339664c7a (commit)
via 5a6141003c1f04b7838ee99530f89055af9796ca (commit)
via 2df921352070c2c0f7f17158819b1bb1fd1a1705 (commit)
via 4a606a5869bee8d22173d97b6812522ab5ecb05d (commit)
via e57f43f7c336779d0fd6f4ce392e1db12b9ac85a (commit)
via 06633d67db82063034e3cc105fa8b5ffdacce9a2 (commit)
via 37bde896562679ba37be73037ed6472d8979c992 (commit)
via 85043749c0d9c48a1df339c2abec34666372b926 (commit)
via 3dc6acc440f2f2f7591725745d722084af67c4a3 (commit)
via f6ead6fc0a658a7afd05ef4ef3a7e87205acb35b (commit)
via 5dd9099a78c68ed7236d05bc68577a5add112a94 (commit)
via 74b9a75634ec6c99954a12193f069ecc0ae5f0b8 (commit)
via 6377a17b8a49ab4b605ba9a2cc98a5d1a2d21554 (commit)
via 7a3d60970ab30647c9c764c592cb37f075aef1e6 (commit)
via 575d4a276cceae9dca086aced83dece6146a5fe6 (commit)
via 9104dec90808466c32a1ad779f5a5f245f37c0aa (commit)
via a278b5cd359951f2b3253a959030e0bbf3665c75 (commit)
via 7216983b2d30504b9a96a17ace0ea4fee6e1db47 (commit)
via 84c6de3ee39304d76c68e1ea88bc6d75b34f8daf (commit)
via 20df578ed9d61cc5cd9113f72285e139974a344f (commit)
via 33498f80a3a279dce0dbfd724289199ed23e63b8 (commit)
via eeadbabcf77257ae60f84ce3184ee0b7b34536a0 (commit)
via b649aae600aaf20eeb32a09db2c82b53bb98d1f5 (commit)
via cc6120f6a3bc5173c88d544c8a4d0d69dfbb046d (commit)
from 11509856353904812db40b3b79c006eb1cf9a96e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 5ac4d4384a16c008944b5d8e21c2de3ee8ac7739
Merge: 11509856353904812db40b3b79c006eb1cf9a96e 6b2889b9b220f31f0f213c12c0e13749ac8ab0ef
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Thu Dec 3 17:31:53 2009 +0100
Merge remote branch 'gdb/master'
commit 6b2889b9b220f31f0f213c12c0e13749ac8ab0ef
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Dec 3 14:21:20 2009 +0000
2009-12-03 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_sym_fns): Set sym_segment routine.
commit afcf4b3b52e4f176adf703654c23521339664c7a
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Dec 3 14:14:02 2009 +0000
2009-12-03 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for
all sections of the __DWARF segment.
commit 5a6141003c1f04b7838ee99530f89055af9796ca
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Dec 3 11:40:17 2009 +0000
gdb/testsuite/
Fix spurious false FAILs.
* gdb.base/structs.c (chartest): New.
(main): Fill-in chartest.
* gdb.base/structs.exp (anychar_re, first): New.
(start_structs_test): Import global anychar_re and first.
New gdb_test call "set print elements 300; ${testfile}"
(start_structs_test <$first>): New block.
(any): Import global anychar_re. New variable ac. Use ${ac}.
commit 2df921352070c2c0f7f17158819b1bb1fd1a1705
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Dec 3 08:31:28 2009 +0000
PR ld/11047
* elf32-ppc.c (ppc_elf_relocate_section): Delete __tls_get_addr
symbol reference from relocs belonging to calls that are
optimized away.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
commit 4a606a5869bee8d22173d97b6812522ab5ecb05d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Dec 3 00:00:33 2009 +0000
*** empty log message ***
commit e57f43f7c336779d0fd6f4ce392e1db12b9ac85a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Dec 2 23:00:04 2009 +0000
daily update
commit 06633d67db82063034e3cc105fa8b5ffdacce9a2
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Dec 2 20:26:30 2009 +0000
PR gas/11013
* arm-dis.c (thumb32_opc): Adjust disassembly of QADD, QDADD, QSUB
and QDSUB.
* gas/arm/arch7em.d: Update expected disassembly.
* gas/arm/thumb32.d: Likewise.
* config/tc-arm.c (do_t_simd2): New function.
(insns): Use do_t_simd2 for QADD, QDADD, QSUB and QDSUB.
commit 37bde896562679ba37be73037ed6472d8979c992
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date: Wed Dec 2 19:29:41 2009 +0000
gdb/ChangeLog:
2009-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
* ada-lang.c (ada_value_assign): Use observer_notify_memory_changed.
* valops.c (value_assign): Likewise.
* defs.h (deprecated_memory_changed_hook): Remove.
* top.c (deprecated_memory_changed_hook): Likewise.
* interps.c (clear_interpreter_hooks): Adjust.
gdb/gdbtk/ChangeLog:
2009-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
* generic/gdbtk-hooks.c (gdbtk_memory_changed): Adjust.
(gdbtk_add_hooks): Adjust.
gdb/doc/ChangeLog:
2009-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
* observer.texi: New memory_changed observer.
commit 85043749c0d9c48a1df339c2abec34666372b926
Author: Doug Evans <dje@google.com>
Date: Wed Dec 2 17:25:55 2009 +0000
* cgen-engine.h: Remove duplicated comment.
commit 3dc6acc440f2f2f7591725745d722084af67c4a3
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Dec 2 14:04:15 2009 +0000
PR binutils/11017
* dlltool.c (PAGE_SIZE): Delete.
(PAGE_MASK): Provide default definition based on COFF_PAGE_SIZE.
Check for DLLTOOL_DEFAULT_MX86_64 and DLLTOOL_DEFAULT_I386.
* coff-i386.h (COFF_PAGE_SIZE): Definition moved to coff/i386.h
* i386lh (COFF_PAGE_SIZE): Define.
* x86_64.h (COFF_PAGE_SIZE): Define.
commit f6ead6fc0a658a7afd05ef4ef3a7e87205acb35b
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Dec 2 11:44:34 2009 +0000
2009-12-02 Tristan Gingold <gingold@adacore.com>
* symfile.h (dwarf2_build_psymtabs): Remove mainline parameter in
prototype.
* dwarf2read.c (dwarf2_build_psymtabs): Remove mainline paramter in
definition, simplify code assuming it is always 0.
* coffread.c (coff_symfile_read): Adjust call.
* elfread.c (elf_symfile_read): Ditto.
* machoread.c (macho_symfile_read): Explicitely calls
init_psymbol_list if mainline is set.
commit 5dd9099a78c68ed7236d05bc68577a5add112a94
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Dec 2 11:34:36 2009 +0000
2009-12-02 Tristan Gingold <gingold@adacore.com>
* dwarf2read.c (dwarf2_build_psymtabs_easy): Remove mainline parameter.
(dwarf2_build_psymtabs_hard): Ditto.
(dwarf2_build_psymtabs): Ajust calls.
* stabsread.h (elfstab_build_psymtabs): Remove mainline parameter on
the prototype.
(coffstab_build_psymtabs): Ditto.
(stabsect_build_psymtabs): Ditto.
* dbxread.c (coffstab_build_psymtabs): Remove mainline parameter on
the definition.
(elfstab_build_psymtabs): Ditto.
(stabsect_build_psymtabs): Ditto.
* coffread.c (coff_symfile_read): Adjust call.
* elfread.c (elf_symfile_read): Ditto.
* somread.c (som_symfile_read): Ditto.
commit 74b9a75634ec6c99954a12193f069ecc0ae5f0b8
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Dec 2 11:16:40 2009 +0000
2009-10-23 Tristan Gingold <gingold@adacore.com>
* charset.c (_initialize_charset): Set a default value to
auto_host_charset_name if empty.
commit 6377a17b8a49ab4b605ba9a2cc98a5d1a2d21554
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Dec 2 00:00:33 2009 +0000
*** empty log message ***
commit 7a3d60970ab30647c9c764c592cb37f075aef1e6
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Dec 1 23:00:04 2009 +0000
daily update
commit 575d4a276cceae9dca086aced83dece6146a5fe6
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Tue Dec 1 22:46:07 2009 +0000
* gcore.c: Include solib.h.
(gcore_create_callback): Call solib_keep_data_in_core when
considering not saving memory in core file.
* solib-svr4.c (svr4_keep_data_in_core): New.
(_initialize_svr4_solib): Initialize
svr4_so_ops.keep_data_in_core.
* solib.c (solib_keep_data_in_core): New.
* solib.h (solib_keep_data_in_core): Declare.
* solist.h (struct target_so_ops): Add keep_data_in_core.
commit 9104dec90808466c32a1ad779f5a5f245f37c0aa
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Dec 1 22:15:27 2009 +0000
* gdb.texinfo (Reverse Execution): Fix typo.
commit a278b5cd359951f2b3253a959030e0bbf3665c75
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Dec 1 00:00:03 2009 +0000
*** empty log message ***
commit 7216983b2d30504b9a96a17ace0ea4fee6e1db47
Author: DJ Delorie <dj@delorie.com>
Date: Mon Nov 30 23:37:39 2009 +0000
* rx/rx.c (decode_opcode): fix SWHILE logic.
commit 84c6de3ee39304d76c68e1ea88bc6d75b34f8daf
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Nov 30 23:00:04 2009 +0000
daily update
commit 20df578ed9d61cc5cd9113f72285e139974a344f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Nov 30 22:56:34 2009 +0000
gdb/testsuite/
* gdb.base/bigcore.exp (extract_heap): Set $lim limit to 200.
commit 33498f80a3a279dce0dbfd724289199ed23e63b8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Nov 30 22:55:27 2009 +0000
gdb/testsuite/
* gdb.base/foll-fork.exp (unpatch child, breakpoint at exit call):
Force $srcfile file.
* gdb.base/foll-fork.c (callee): Comment out the printf call.
commit eeadbabcf77257ae60f84ce3184ee0b7b34536a0
Author: DJ Delorie <dj@delorie.com>
Date: Mon Nov 30 21:50:19 2009 +0000
merge from gcc
commit b649aae600aaf20eeb32a09db2c82b53bb98d1f5
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Mon Nov 30 16:46:35 2009 +0000
config:
* largefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and
AC_CANONICAL_TARGET.
bfd:
* configure: Regenerate.
binutils:
* configure: Regenerate.
gas:
* configure: Regenerate.
gdb:
* configure: Regenerate.
gprof:
* configure: Regenerate.
ld:
* configure: Regenerate.
commit cc6120f6a3bc5173c88d544c8a4d0d69dfbb046d
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Nov 30 14:45:29 2009 +0000
PR gas/11030
* m68k-opc.c (m68k_opcodes): Allow the STLDSR instruction on the
Coldfire ISA A+.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 22 +++
bfd/coff-i386.c | 12 +-
bfd/configure | 5 +
bfd/elf32-ppc.c | 10 +-
bfd/elf64-ppc.c | 9 +-
bfd/mach-o.c | 9 +-
bfd/version.h | 2 +-
config/ChangeLog | 5 +
config/largefile.m4 | 5 +
gdb/ChangeLog | 61 +++++++++
gdb/ada-lang.c | 5 +-
gdb/charset.c | 5 +-
gdb/coffread.c | 3 +-
gdb/configure | 248 +++++++++++++++++++---------------
gdb/dbxread.c | 13 +--
gdb/defs.h | 1 -
gdb/doc/ChangeLog | 8 +
gdb/doc/gdb.texinfo | 2 +-
gdb/doc/observer.texi | 5 +
gdb/dwarf2read.c | 18 +--
gdb/elfread.c | 3 +-
gdb/gcore.c | 3 +-
gdb/interps.c | 1 -
gdb/machoread.c | 9 +-
gdb/solib-svr4.c | 45 ++++++
gdb/solib.c | 17 +++
gdb/solib.h | 8 +
gdb/solist.h | 8 +
gdb/somread.c | 2 +-
gdb/stabsread.h | 7 +-
gdb/symfile.h | 2 +-
gdb/testsuite/ChangeLog | 21 +++
gdb/testsuite/gdb.base/bigcore.exp | 2 +-
gdb/testsuite/gdb.base/foll-fork.c | 3 +-
gdb/testsuite/gdb.base/foll-fork.exp | 3 +-
gdb/testsuite/gdb.base/structs.c | 6 +
gdb/testsuite/gdb.base/structs.exp | 60 ++++++---
gdb/top.c | 3 -
gdb/valops.c | 4 +-
gdb/version.in | 2 +-
include/coff/ChangeLog | 6 +
include/coff/i386.h | 28 ++--
include/coff/x86_64.h | 4 +-
libdecnumber/ChangeLog | 5 +
libdecnumber/decContext.c | 4 +-
opcodes/ChangeLog | 13 ++
opcodes/arm-dis.c | 8 +-
opcodes/m68k-opc.c | 2 +-
sim/common/ChangeLog | 4 +
sim/common/cgen-engine.h | 12 --
sim/rx/ChangeLog | 4 +
sim/rx/rx.c | 6 +-
52 files changed, 515 insertions(+), 238 deletions(-)
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ce9ce06..00ae4cf 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,25 @@
+2009-12-03 Tristan Gingold <gingold@adacore.com>
+
+ * mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for
+ all sections of the __DWARF segment.
+
+2009-12-03 Alan Modra <amodra@bigpond.net.au>
+
+ PR ld/11047
+ * elf32-ppc.c (ppc_elf_relocate_section): Delete __tls_get_addr
+ symbol reference from relocs belonging to calls that are
+ optimized away.
+ * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
+
+2009-12-02 Jerker Bäck <jerker.back@gmail.com>
+
+ PR binutils/11017
+ * coff-i386.h (COFF_PAGE_SIZE): Definition moved to coff/i386.h
+
+2009-11-30 Joseph Myers <joseph@codesourcery.com>
+
+ * configure: Regenerate.
+
2009-11-26 Per Ãyvind Karlsen <peroyvind@mandriva.org>
* plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define.
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c
index 9a763d5..e512b3f 100644
--- a/bfd/coff-i386.c
+++ b/bfd/coff-i386.c
@@ -1,6 +1,6 @@
/* BFD back-end for Intel 386 COFF files.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008
+ 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -44,13 +44,13 @@
#include "libcoff.h"
static bfd_reloc_status_type coff_i386_reloc
- PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **));
+ (bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **);
static reloc_howto_type *coff_i386_rtype_to_howto
- PARAMS ((bfd *, asection *, struct internal_reloc *,
- struct coff_link_hash_entry *, struct internal_syment *,
- bfd_vma *));
+ (bfd *, asection *, struct internal_reloc *,
+ struct coff_link_hash_entry *, struct internal_syment *,
+ bfd_vma *);
static reloc_howto_type *coff_i386_reloc_type_lookup
- PARAMS ((bfd *, bfd_reloc_code_real_type));
+ (bfd *, bfd_reloc_code_real_type);
#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2)
/* The page size is a guess based on ELF. */
diff --git a/bfd/configure b/bfd/configure
index d29e79b..d5c3426 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -11633,6 +11633,11 @@ CC="$lt_save_CC"
# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
+# The tests for host and target for $enable_largefile require
+# canonical names.
+
+
+
# As the $enable_largefile decision depends on --enable-plugins we must set it
# even in directories otherwise not depending on the $plugins option.
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index e4fdc1e..976dd37 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -6929,9 +6929,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
insn1 |= 32 << 26; /* lwz */
if (offset != (bfd_vma) -1)
{
- rel[1].r_info
- = ELF32_R_INFO (ELF32_R_SYM (rel[1].r_info),
- R_PPC_NONE);
+ rel[1].r_info = ELF32_R_INFO (STN_UNDEF, R_PPC_NONE);
insn2 = 0x7c631214; /* add 3,3,2 */
bfd_put_32 (output_bfd, insn2, contents + offset);
}
@@ -7005,8 +7003,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
bfd_put_32 (output_bfd, insn2, contents + offset);
/* Zap the reloc on the _tls_get_addr call too. */
BFD_ASSERT (offset == rel[1].r_offset);
- rel[1].r_info = ELF32_R_INFO (ELF32_R_SYM (rel[1].r_info),
- R_PPC_NONE);
+ rel[1].r_info = ELF32_R_INFO (STN_UNDEF, R_PPC_NONE);
}
break;
@@ -7035,8 +7032,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
contents + rel->r_offset - d_offset);
/* Zap the reloc on the _tls_get_addr call too. */
BFD_ASSERT (rel->r_offset - d_offset == rel[1].r_offset);
- rel[1].r_info = ELF32_R_INFO (ELF32_R_SYM (rel[1].r_info),
- R_PPC_NONE);
+ rel[1].r_info = ELF32_R_INFO (STN_UNDEF, R_PPC_NONE);
rel--;
continue;
}
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index e748a41..94f89c5 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -11102,8 +11102,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
insn1 |= 58 << 26; /* ld */
insn2 = 0x7c636a14; /* add 3,3,13 */
if (offset != (bfd_vma) -1)
- rel[1].r_info = ELF64_R_INFO (ELF64_R_SYM (rel[1].r_info),
- R_PPC64_NONE);
+ rel[1].r_info = ELF64_R_INFO (STN_UNDEF, R_PPC64_NONE);
if ((tls_mask & TLS_EXPLICIT) == 0)
r_type = (((r_type - (R_PPC64_GOT_TLSGD16 & 3)) & 3)
+ R_PPC64_GOT_TPREL16_DS);
@@ -11202,8 +11201,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
rel->r_info = ELF64_R_INFO (r_symndx, r_type);
/* Zap the reloc on the _tls_get_addr call too. */
BFD_ASSERT (offset == rel[1].r_offset);
- rel[1].r_info = ELF64_R_INFO (ELF64_R_SYM (rel[1].r_info),
- R_PPC64_NONE);
+ rel[1].r_info = ELF64_R_INFO (STN_UNDEF, R_PPC64_NONE);
insn3 = bfd_get_32 (output_bfd,
contents + offset + 4);
if (insn3 == NOP
@@ -11248,8 +11246,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
rel->r_offset = offset + d_offset;
/* Zap the reloc on the _tls_get_addr call too. */
BFD_ASSERT (offset == rel[1].r_offset);
- rel[1].r_info = ELF64_R_INFO (ELF64_R_SYM (rel[1].r_info),
- R_PPC64_NONE);
+ rel[1].r_info = ELF64_R_INFO (STN_UNDEF, R_PPC64_NONE);
insn2 = 0x38630000; /* addi 3,3,0 */
insn3 = bfd_get_32 (output_bfd,
contents + offset + 4);
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 641fd9b..766fb3d 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -1480,8 +1480,13 @@ bfd_mach_o_make_bfd_section (bfd *abfd, bfd_mach_o_section *section,
if (sname == NULL)
return NULL;
- if (section->flags & BFD_MACH_O_S_ATTR_DEBUG)
- flags = SEC_HAS_CONTENTS | SEC_DEBUGGING;
+ if ((section->flags & BFD_MACH_O_S_ATTR_DEBUG)
+ || !strcmp (section->segname, "__DWARF"))
+ {
+ /* Force flags for dwarf sections. This looks weird but dsym files
+ have no flags for them and this is important for gdb. */
+ flags = SEC_HAS_CONTENTS | SEC_DEBUGGING;
+ }
else
{
flags = SEC_ALLOC;
diff --git a/bfd/version.h b/bfd/version.h
index 7acd2db..2711858 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20091130
+#define BFD_VERSION_DATE 20091203
#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/config/ChangeLog b/config/ChangeLog
index aa716ea..9e524fc 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-30 Joseph Myers <joseph@codesourcery.com>
+
+ * largefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and
+ AC_CANONICAL_TARGET.
+
2009-11-24 Joel Brobecker <brobecker@adacore.com>
* zlib.m4: New file.
diff --git a/config/largefile.m4 b/config/largefile.m4
index 9449b12..4a88fd7 100644
--- a/config/largefile.m4
+++ b/config/largefile.m4
@@ -5,6 +5,11 @@
AC_DEFUN([ACX_LARGEFILE],[dnl
+# The tests for host and target for $enable_largefile require
+# canonical names.
+AC_REQUIRE([AC_CANONICAL_HOST])
+AC_REQUIRE([AC_CANONICAL_TARGET])
+
# As the $enable_largefile decision depends on --enable-plugins we must set it
# even in directories otherwise not depending on the $plugins option.
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b6c81d1..2175f8c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,64 @@
+2009-12-03 Tristan Gingold <gingold@adacore.com>
+
+ * machoread.c (macho_sym_fns): Set sym_segment routine.
+
+2009-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * ada-lang.c (ada_value_assign): Use observer_notify_memory_changed.
+ * valops.c (value_assign): Likewise.
+ * defs.h (deprecated_memory_changed_hook): Remove.
+ * top.c (deprecated_memory_changed_hook): Likewise.
+ * interps.c (clear_interpreter_hooks): Adjust.
+
+2009-12-02 Tristan Gingold <gingold@adacore.com>
+
+ * symfile.h (dwarf2_build_psymtabs): Remove mainline parameter in
+ prototype.
+ * dwarf2read.c (dwarf2_build_psymtabs): Remove mainline paramter in
+ definition, simplify code assuming it is always 0.
+ * coffread.c (coff_symfile_read): Adjust call.
+ * elfread.c (elf_symfile_read): Ditto.
+ * machoread.c (macho_symfile_read): Explicitely calls
+ init_psymbol_list if mainline is set.
+
+2009-12-02 Tristan Gingold <gingold@adacore.com>
+
+ * dwarf2read.c (dwarf2_build_psymtabs_easy): Remove mainline parameter.
+ (dwarf2_build_psymtabs_hard): Ditto.
+ (dwarf2_build_psymtabs): Ajust calls.
+ * stabsread.h (elfstab_build_psymtabs): Remove mainline parameter on
+ the prototype.
+ (coffstab_build_psymtabs): Ditto.
+ (stabsect_build_psymtabs): Ditto.
+ * dbxread.c (coffstab_build_psymtabs): Remove mainline parameter on
+ the definition.
+ (elfstab_build_psymtabs): Ditto.
+ (stabsect_build_psymtabs): Ditto.
+ * coffread.c (coff_symfile_read): Adjust call.
+ * elfread.c (elf_symfile_read): Ditto.
+ * somread.c (som_symfile_read): Ditto.
+
+2009-12-02 Tristan Gingold <gingold@adacore.com>
+
+ * charset.c (_initialize_charset): Set a default value to
+ auto_host_charset_name if empty.
+
+2009-12-01 Joseph Myers <joseph@codesourcery.com>
+
+ * gcore.c: Include solib.h.
+ (gcore_create_callback): Call solib_keep_data_in_core when
+ considering not saving memory in core file.
+ * solib-svr4.c (svr4_keep_data_in_core): New.
+ (_initialize_svr4_solib): Initialize
+ svr4_so_ops.keep_data_in_core.
+ * solib.c (solib_keep_data_in_core): New.
+ * solib.h (solib_keep_data_in_core): Declare.
+ * solist.h (struct target_so_ops): Add keep_data_in_core.
+
+2009-11-30 Joseph Myers <joseph@codesourcery.com>
+
+ * configure: Regenerate.
+
2009-11-28 Vladimir Prus <vladimir@codesourcery.com>
* target.c (target_terminal_inferior): Use target_can_async_p, not
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 9594d6d..599b8d6 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -2289,9 +2289,8 @@ ada_value_assign (struct value *toval, struct value *fromval)
move_bits (buffer, value_bitpos (toval),
value_contents (fromval), 0, bits, 0);
write_memory (to_addr, buffer, len);
- if (deprecated_memory_changed_hook)
- deprecated_memory_changed_hook (to_addr, len);
-
+ observer_notify_memory_changed (to_addr, len, buffer);
+
val = value_copy (toval);
memcpy (value_contents_raw (val), value_contents (fromval),
TYPE_LENGTH (type));
diff --git a/gdb/charset.c b/gdb/charset.c
index f5281ed..4bc8894 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -818,8 +818,9 @@ _initialize_charset (void)
#ifdef HAVE_LANGINFO_CODESET
auto_host_charset_name = nl_langinfo (CODESET);
/* Solaris will return `646' here -- but the Solaris iconv then
- does not accept this. */
- if (!strcmp (auto_host_charset_name, "646"))
+ does not accept this. Darwin (and maybe FreeBSD) may return "" here,
+ which GNU libiconv doesn't like (infinite loop). */
+ if (!strcmp (auto_host_charset_name, "646") || !*auto_host_charset_name)
auto_host_charset_name = "ASCII";
target_charset_name = auto_host_charset_name;
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 98c563a..84edfc5 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -634,7 +634,6 @@ coff_symfile_read (struct objfile *objfile, int mainline)
stabstrsize = bfd_section_size (abfd, info->stabstrsect);
coffstab_build_psymtabs (objfile,
- mainline,
info->textaddr, info->textsize,
info->stabsects,
info->stabstrsect->filepos, stabstrsize);
@@ -642,7 +641,7 @@ coff_symfile_read (struct objfile *objfile, int mainline)
if (dwarf2_has_info (objfile))
{
/* DWARF2 sections. */
- dwarf2_build_psymtabs (objfile, mainline);
+ dwarf2_build_psymtabs (objfile);
}
dwarf2_build_frame_info (objfile);
diff --git a/gdb/configure b/gdb/configure
index b4492e7..e74b64f 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -4087,6 +4087,144 @@ fi
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+ for ac_t in install-sh install.sh shtool; do
+ if test -f "$ac_dir/$ac_t"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/$ac_t -c"
+ break 2
+ fi
+ done
+done
+if test -z "$ac_aux_dir"; then
+ as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+ as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if test "${ac_cv_build+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+ as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+ as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if test "${ac_cv_host+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+ as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
+$as_echo_n "checking target system type... " >&6; }
+if test "${ac_cv_target+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$target_alias" = x; then
+ ac_cv_target=$ac_cv_host
+else
+ ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
+ as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
+$as_echo "$ac_cv_target" >&6; }
+case $ac_cv_target in
+*-*-*) ;;
+*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
+esac
+target=$ac_cv_target
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_target
+shift
+target_cpu=$1
+target_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+target_os=$*
+IFS=$ac_save_IFS
+case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
+
+
+# The aliases save the names the user supplied, while $host etc.
+# will get canonicalized.
+test -n "$target_alias" &&
+ test "$program_prefix$program_suffix$program_transform_name" = \
+ NONENONEs,x,x, &&
+ program_prefix=${target_alias}-
+
+# The tests for host and target for $enable_largefile require
+# canonical names.
+
+
# As the $enable_largefile decision depends on --enable-plugins we must set it
# even in directories otherwise not depending on the $plugins option.
@@ -4423,116 +4561,6 @@ ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
-# Make sure we can run config.sub.
-$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
- as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
-$as_echo_n "checking build system type... " >&6; }
-if test "${ac_cv_build+set}" = set; then :
- $as_echo_n "(cached) " >&6
-else
- ac_build_alias=$build_alias
-test "x$ac_build_alias" = x &&
- ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
-test "x$ac_build_alias" = x &&
- as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
-ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
- as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
-$as_echo "$ac_cv_build" >&6; }
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2009-11-30 13:59 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2009-11-30 13:59 UTC (permalink / raw)
To: archer-commits
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 36688 bytes --]
The branch, master has been updated
via 11509856353904812db40b3b79c006eb1cf9a96e (commit)
via a238042dde756b1fb3b48d9e3c34ce55abd17aed (commit)
via 2a0ec0ef8651f86bf287cae14d8c54479e66712a (commit)
via 2bf340a2b512ce113adfff5896bd1038d5ea3010 (commit)
via 4e426a44169aa4bdeb083df41b2c796aa4983d1a (commit)
via ed72348da877003a79bfa638c04afed888ce045e (commit)
via 68f6d79556b69b7fa29d45def7e1c0698d15b0d8 (commit)
via db503edb0afb52d8968e311c899584c360310195 (commit)
via 79f1ed6698822a05df34c50f17b6f5a005d36814 (commit)
via 283d3048b8104c73aa26c9043f9060e76b4ff76a (commit)
via eca44a2f60590f2f3b4f260bdbda3f8a33c63445 (commit)
via d6dcd8053a4e62bdaf8a61a09f32e121381a6f9e (commit)
via c00272d0efed928c7d50cda09807ac3950398221 (commit)
via 4246390fbd284b2e517ed4763f9d45d72c1a0f06 (commit)
via cfc9023d2133cce960a6d681bf7723ae8038e2b7 (commit)
via 42e4390712b62485ea24731a206383262afa2d6b (commit)
via db68a0fa32ddaffadeeb85f95c79946cb7fd377d (commit)
via 5e4c906eb6cce993924868d595dc00c33995ad9d (commit)
via 9cc1d8196b09ecdc06dba8d9789f8444ce7e11cc (commit)
via 1563e18c9a4f8722d29859d93472e8ef0ef027ec (commit)
via 46d5c6c7c1e84e848900c48bcefeae63d1069918 (commit)
via 8cde78c90e6a3e6414fe6f1d2d571ee31c84323c (commit)
via a550e1ac51b0b7b8ef007f1b91c832e42f4fe653 (commit)
via c33426511d186177d3e2560a34ef22ae6c661e55 (commit)
via da31dd735d1717c9dd27f624b1eb6c4d520172ad (commit)
via d4f0e7b2b5be782c12064e999e134803d20f5f17 (commit)
via cf374bc0a80aa48c596cfdd4195aa9f16a2ab494 (commit)
via f761eed640331f50f36d4abf7fce2d9db7a6a73f (commit)
via a27fecec8210aa17ba10d1ac88c095557d4ca747 (commit)
via d5365e849582d34d45cc8b1e66dde6c8ff73013f (commit)
via 3ab54415dd0f60d361f17b6496a679f358628560 (commit)
via b7311588e483130ae4294d614ba4f89125d9986b (commit)
via 1acf3d3f05f0ec7d3d387e7044a4f9ba7fcf5c23 (commit)
via cf82aa90a05326869c819880c2dd11f80c70223a (commit)
from 22093269c47f7ead010e08dc64f1a6f5e8050107 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 11509856353904812db40b3b79c006eb1cf9a96e
Merge: 22093269c47f7ead010e08dc64f1a6f5e8050107 a238042dde756b1fb3b48d9e3c34ce55abd17aed
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Mon Nov 30 14:58:43 2009 +0100
Merge remote branch 'gdb/master'
commit a238042dde756b1fb3b48d9e3c34ce55abd17aed
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 30 00:00:33 2009 +0000
*** empty log message ***
commit 2a0ec0ef8651f86bf287cae14d8c54479e66712a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Nov 29 23:00:04 2009 +0000
daily update
commit 2bf340a2b512ce113adfff5896bd1038d5ea3010
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 29 00:00:33 2009 +0000
*** empty log message ***
commit 4e426a44169aa4bdeb083df41b2c796aa4983d1a
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Nov 28 23:00:05 2009 +0000
daily update
commit ed72348da877003a79bfa638c04afed888ce045e
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Sat Nov 28 17:00:53 2009 +0000
* target.c (target_terminal_inferior): Use target_can_async_p, not
target_is_async_p.
commit 68f6d79556b69b7fa29d45def7e1c0698d15b0d8
Author: Joseph Myers <jsm@polyomino.org.uk>
Date: Sat Nov 28 03:18:00 2009 +0000
* common.h (ELFOSABI_FENIXOS, EM_TI_C6000, EM_TI_C2000,
EM_TI_C5500, EM_CUDA): Define.
(EM_res140, EM_res141, EM_res142): Remove.
commit db503edb0afb52d8968e311c899584c360310195
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 28 00:00:33 2009 +0000
*** empty log message ***
commit 79f1ed6698822a05df34c50f17b6f5a005d36814
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Nov 27 23:00:04 2009 +0000
daily update
commit 283d3048b8104c73aa26c9043f9060e76b4ff76a
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Nov 27 16:11:56 2009 +0000
gdb/
* s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints
of type bp_hardware_watchpoint.
gdb/testsuite/
* gdb.base/hbreak.exp: Disable for s390*-*-* targets.
* gdb.base/watchpoint-hw-hit-once.exp: Likewise.
* gdb.threads/watchthreads-reorder.exp: Likewise.
commit eca44a2f60590f2f3b4f260bdbda3f8a33c63445
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Nov 27 15:33:47 2009 +0000
* ada-lang.c: Apply some corrections to the previous comment addition.
commit d6dcd8053a4e62bdaf8a61a09f32e121381a6f9e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Nov 27 01:49:41 2009 +0000
* ada-lang.c: Update the comment explaining how to evaluate
Ada expressions.
commit c00272d0efed928c7d50cda09807ac3950398221
Author: H.J. Lu <hjl@lucon.org>
Date: Fri Nov 27 01:47:03 2009 +0000
2009-11-26 Per Ãyvind Karlsen <peroyvind@mandriva.org>
* plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define.
commit 4246390fbd284b2e517ed4763f9d45d72c1a0f06
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 27 00:00:33 2009 +0000
*** empty log message ***
commit cfc9023d2133cce960a6d681bf7723ae8038e2b7
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Nov 26 23:00:05 2009 +0000
daily update
commit 42e4390712b62485ea24731a206383262afa2d6b
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Nov 26 22:18:40 2009 +0000
* win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
events, don't leave current_inferior pointing at null.
commit db68a0fa32ddaffadeeb85f95c79946cb7fd377d
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Nov 26 22:16:29 2009 +0000
* win32-low.c (LOG): Delete.
(OUTMSG): Output to stderr.
(OUTMSG2): Conditionalize on `debug_threads' variable, instead of
on compile time LOG macro.
(win32_wait): Fix debug output.
commit 5e4c906eb6cce993924868d595dc00c33995ad9d
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Nov 26 22:14:39 2009 +0000
* win32-low.c (win32_add_one_solib): If the dll name is
"ntdll.dll", prepend the system directory to the dll path.
commit 9cc1d8196b09ecdc06dba8d9789f8444ce7e11cc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 26 00:00:34 2009 +0000
*** empty log message ***
commit 1563e18c9a4f8722d29859d93472e8ef0ef027ec
Author: DJ Delorie <dj@delorie.com>
Date: Wed Nov 25 23:35:00 2009 +0000
merge from gcc
commit 46d5c6c7c1e84e848900c48bcefeae63d1069918
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Nov 25 23:00:05 2009 +0000
daily update
commit 8cde78c90e6a3e6414fe6f1d2d571ee31c84323c
Author: Ben Elliston <bje@au.ibm.com>
Date: Wed Nov 25 22:41:09 2009 +0000
* configure.ac (AC_CHECK_FUNCS): Sort into alphabetical order.
* configure: Regenerate.
commit a550e1ac51b0b7b8ef007f1b91c832e42f4fe653
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Nov 25 20:43:28 2009 +0000
PR gdb/8704
* breakpoint.c (find_condition_and_thread): Correct task error message.
* c-exp.y (yylex): Stop before "thread N", "task N", or abbreviations
of those.
doc/
* gdb.texinfo (Thread-Specific Breakpoints): Thread specifiers
are allowed after the breakpoint condition.
testsuite/
* gdb.base/condbreak.exp: Test combinations of "break *EXP",
"if", and "thread". Correct matching in the previous test.
commit c33426511d186177d3e2560a34ef22ae6c661e55
Author: Daniel Jacobowitz <dan@debian.org>
Date: Wed Nov 25 15:31:53 2009 +0000
* gdb.cp/extern-c.cc, gdb.cp/extern-c.exp: New test.
commit da31dd735d1717c9dd27f624b1eb6c4d520172ad
Author: spop <spop>
Date: Wed Nov 25 15:15:30 2009 +0000
2009-11-17 Quentin Neill <quentin.neill@amd.com>
Sebastian Pop <sebastian.pop@amd.com>
gas/testsuite/
* gas/i386/x86-64-fma4.d: Add new patterns.
* gas/i386/x86-64-fma4.s: Same.
* gas/i386/x86-64-xop.d: Adjusted.
opcodes/
* i386-dis.c (get_vex_imm8): Increase bytes_before_imm when
decoding the second source operand from the immediate byte.
(OP_EX_VexW): Pass an extra integer to identify the second
and third source arguments.
commit d4f0e7b2b5be782c12064e999e134803d20f5f17
Author: Ben Elliston <bje@au.ibm.com>
Date: Wed Nov 25 04:54:32 2009 +0000
* functions.texi: Rebuild.
commit cf374bc0a80aa48c596cfdd4195aa9f16a2ab494
Author: Ben Elliston <bje@au.ibm.com>
Date: Wed Nov 25 04:35:01 2009 +0000
* README: Mention changes to Makefile.in and functions.texi.
* gather-docs: Mention 'make stamp-functions' in the header.
commit f761eed640331f50f36d4abf7fce2d9db7a6a73f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 25 00:00:03 2009 +0000
*** empty log message ***
commit a27fecec8210aa17ba10d1ac88c095557d4ca747
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 24 23:00:04 2009 +0000
daily update
commit d5365e849582d34d45cc8b1e66dde6c8ff73013f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 24 22:59:52 2009 +0000
* acinclude.m4: Include ../config/zlib.m4.
* configure.ac: Use AM_ZLIB to check for zlib support.
* configure: Regenerate.
commit 3ab54415dd0f60d361f17b6496a679f358628560
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 24 22:58:05 2009 +0000
* common/aclocal.m4: Add include of ../../config/zlib.m4.
* common/common.m4: Use AM_ZLIB to check for zlib support.
* ppc/configure.ac: Likewise.
* arm/configure, avr/configure, common/configure, cr16/configure,
cris/configure, d10v/configure, erc32/configure, frv/configure,
h8300/configure, iq2000/configure, lm32/configure, m32c/configure,
m32r/configure, m68hc11/configure, mcore/configure,
microblaze/configure, mips/configure, mn10300/configure,
moxie/configure, ppc/configure, sh/configure, sh64/configure,
v850/configure: Regenerate.
commit b7311588e483130ae4294d614ba4f89125d9986b
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 24 22:47:19 2009 +0000
* acinclude.m4: Add include of ../config/zlib.m4.
* configure.in: AM_ZLIB to check for zlib support.
* configure: Regenerate.
commit 1acf3d3f05f0ec7d3d387e7044a4f9ba7fcf5c23
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 24 22:35:29 2009 +0000
* zlib.m4: New file.
commit cf82aa90a05326869c819880c2dd11f80c70223a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Nov 24 21:37:52 2009 +0000
* breakpoint.c (expand_line_sal_maybe): Adjust adjust the SAL
past the function prologue in the case where we were given only
one SAL.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 14 +-
bfd/acinclude.m4 | 2 +
bfd/configure | 49 +-
bfd/configure.in | 2 +-
bfd/plugin.c | 1 +
bfd/version.h | 2 +-
config/ChangeLog | 4 +
config/zlib.m4 | 18 +
gdb/ChangeLog | 39 +
gdb/acinclude.m4 | 2 +
gdb/ada-lang.c | 106 +-
gdb/breakpoint.c | 7 +-
gdb/c-exp.y | 18 +
gdb/configure | 21 +-
gdb/configure.ac | 2 +-
gdb/doc/ChangeLog | 7 +
gdb/doc/gdb.texinfo | 4 +-
gdb/gdbserver/ChangeLog | 18 +
gdb/gdbserver/win32-low.c | 38 +-
gdb/s390-nat.c | 2 +-
gdb/target.c | 6 +-
gdb/testsuite/ChangeLog | 17 +
gdb/testsuite/gdb.base/condbreak.exp | 31 +-
gdb/testsuite/gdb.base/hbreak.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp | 2 +-
gdb/testsuite/gdb.cp/extern-c.cc | 38 +
gdb/testsuite/gdb.cp/extern-c.exp | 47 +
gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 2 +-
gdb/version.in | 2 +-
include/elf/ChangeLog | 6 +
include/elf/common.h | 8 +-
libiberty/ChangeLog | 15 +
libiberty/README | 10 +-
libiberty/configure | 25 +-
libiberty/configure.ac | 25 +-
libiberty/functions.texi | 25 +-
libiberty/gather-docs | 2 +-
opcodes/ChangeLog | 8 +
opcodes/i386-dis.c | 33 +-
sim/ChangeLog | 13 +
sim/arm/configure | 26 +-
sim/avr/configure | 26 +-
sim/common/aclocal.m4 | 1 +
sim/common/common.m4 | 2 +-
sim/common/configure | 21 +-
sim/cr16/configure | 26 +-
sim/cris/configure | 26 +-
sim/d10v/configure | 26 +-
sim/erc32/configure | 26 +-
sim/frv/configure | 26 +-
sim/h8300/configure | 26 +-
sim/iq2000/configure | 26 +-
sim/lm32/configure | 26 +-
sim/m32c/configure | 26 +-
sim/m32r/configure | 26 +-
sim/m68hc11/configure | 26 +-
sim/mcore/configure | 26 +-
sim/microblaze/configure | 3748 +++++++-------------
sim/mips/configure | 26 +-
sim/mn10300/configure | 26 +-
sim/moxie/configure | 36 +-
sim/ppc/configure | 21 +-
sim/ppc/configure.ac | 2 +-
sim/sh/configure | 26 +-
sim/sh64/configure | 26 +-
sim/v850/configure | 26 +-
66 files changed, 2391 insertions(+), 2607 deletions(-)
create mode 100644 config/zlib.m4
create mode 100644 gdb/testsuite/gdb.cp/extern-c.cc
create mode 100644 gdb/testsuite/gdb.cp/extern-c.exp
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2f7a85d..ce9ce06 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,13 @@
+2009-11-26 Per Ãyvind Karlsen <peroyvind@mandriva.org>
+
+ * plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define.
+
+2009-11-24 Joel Brobecker <brobecker@adacore.com>
+
+ * acinclude.m4: Add include of ../config/zlib.m4.
+ * configure.in: AM_ZLIB to check for zlib support.
+ * configure: Regenerate.
+
2009-11-23 Paul Brook <paul@codesourcery.com>
* libbfd-in.h (_bfd_generic_copy_link_hash_symbol_type): Add
@@ -7,9 +17,9 @@
* elflink.c (_bfd_elf_copy_link_hash_symbol_type): New function.
* targets.c (BFD_JUMP_TABLE_LINK, struct bfd_target): Add
_copy_link_hash_symbol_type.
- * bfd/coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add
+ * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add
_bfd_generic_copy_link_hash_symbol_type.
- * bfd/coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add
+ * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add
_bfd_generic_copy_link_hash_symbol_type.
* aout-adobe.c (aout_32_bfd_copy_link_hash_symbol_type): Define.
* aout-target.h (MY_bfd_copy_link_hash_symbol_type): Define.
diff --git a/bfd/acinclude.m4 b/bfd/acinclude.m4
index aaa147e..d9813bd 100644
--- a/bfd/acinclude.m4
+++ b/bfd/acinclude.m4
@@ -1,3 +1,5 @@
+sinclude([../config/zlib.m4])
+
dnl See whether we need to use fopen-bin.h rather than fopen-same.h.
AC_DEFUN([BFD_BINARY_FOPEN],
[AC_REQUIRE([AC_CANONICAL_TARGET])
diff --git a/bfd/configure b/bfd/configure
index bef4a39..d29e79b 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -934,6 +934,7 @@ enable_build_warnings
enable_maintainer_mode
enable_install_libbfd
enable_nls
+with_zlib
'
ac_precious_vars='build_alias
host_alias
@@ -1595,6 +1596,7 @@ Optional Packages:
--with-pkgversion=PKG Use PKG in the version string in place of "GNU
Binutils"
--with-bugurl=URL Direct users to URL to report a bug
+ --with-zlib include zlib support (auto/yes/no) default=auto
Some influential environment variables:
CC C compiler command
@@ -5982,13 +5984,13 @@ if test "${lt_cv_nm_interface+set}" = set; then :
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
- (eval echo "\"\$as_me:5985: $ac_compile\"" >&5)
+ (eval echo "\"\$as_me:5987: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
- (eval echo "\"\$as_me:5988: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval echo "\"\$as_me:5990: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
- (eval echo "\"\$as_me:5991: output\"" >&5)
+ (eval echo "\"\$as_me:5993: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
@@ -7193,7 +7195,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 7196 "configure"' > conftest.$ac_ext
+ echo '#line 7198 "configure"' > conftest.$ac_ext
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -8424,11 +8426,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8427: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8429: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:8431: \$? = $ac_status" >&5
+ echo "$as_me:8433: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -8763,11 +8765,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8766: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8768: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:8770: \$? = $ac_status" >&5
+ echo "$as_me:8772: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -8868,11 +8870,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8871: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8873: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:8875: \$? = $ac_status" >&5
+ echo "$as_me:8877: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -8923,11 +8925,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8926: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8928: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:8930: \$? = $ac_status" >&5
+ echo "$as_me:8932: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -11305,7 +11307,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11308 "configure"
+#line 11310 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11401,7 +11403,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11404 "configure"
+#line 11406 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13588,7 +13590,19 @@ _ACEOF
# Link in zlib if we can. This allows us to read compressed debug sections.
# This is used only by compress.c.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
+
+ # See if the user specified whether he wants zlib support or not.
+
+# Check whether --with-zlib was given.
+if test "${with_zlib+set}" = set; then :
+ withval=$with_zlib;
+else
+ with_zlib=auto
+fi
+
+
+ if test "$with_zlib" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
$as_echo_n "checking for library containing zlibVersion... " >&6; }
if test "${ac_cv_search_zlibVersion+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -13655,6 +13669,11 @@ done
fi
+ if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
+ as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
+ fi
+ fi
+
# If we are configured native, pick a core file support file.
COREFILE=
diff --git a/bfd/configure.in b/bfd/configure.in
index f96128e..d2d12bd 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -206,7 +206,7 @@ AC_CHECK_DECLS(vsnprintf)
# Link in zlib if we can. This allows us to read compressed debug sections.
# This is used only by compress.c.
-AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+AM_ZLIB
# If we are configured native, pick a core file support file.
COREFILE=
diff --git a/bfd/plugin.c b/bfd/plugin.c
index 2874fa6..8cdc7ae 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
@@ -68,6 +68,7 @@
#define bfd_plugin_bfd_discard_group bfd_generic_discard_group
#define bfd_plugin_section_already_linked _bfd_generic_section_already_linked
#define bfd_plugin_bfd_define_common_symbol bfd_generic_define_common_symbol
+#define bfd_plugin_bfd_copy_link_hash_symbol_type _bfd_generic_copy_link_hash_symbol_type
static enum ld_plugin_status
message (int level ATTRIBUTE_UNUSED,
diff --git a/bfd/version.h b/bfd/version.h
index 60d9c6e..7acd2db 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20091123
+#define BFD_VERSION_DATE 20091130
#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/config/ChangeLog b/config/ChangeLog
index 7b6ded0..aa716ea 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-24 Joel Brobecker <brobecker@adacore.com>
+
+ * zlib.m4: New file.
+
2009-11-09 Jan Kratochvil <jan.kratochvil@redhat.com>
* largefile.m4 (ACX_LARGEFILE): Call AC_PLUGINS.
diff --git a/config/zlib.m4 b/config/zlib.m4
new file mode 100644
index 0000000..b017499
--- /dev/null
+++ b/config/zlib.m4
@@ -0,0 +1,18 @@
+dnl A function to check for zlib availability. zlib is used by default
+dnl unless the user configured with --disable-nls.
+
+AC_DEFUN([AM_ZLIB],
+[
+ # See if the user specified whether he wants zlib support or not.
+ AC_ARG_WITH(zlib,
+ [ --with-zlib include zlib support (auto/yes/no) [default=auto]],
+ [], [with_zlib=auto])
+
+ if test "$with_zlib" != "no"; then
+ AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+ if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
+ AC_MSG_ERROR([zlib (libz) library was explicitly requested but not found])
+ fi
+ fi
+])
+
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 71a5bd4..b6c81d1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,42 @@
+2009-11-28 Vladimir Prus <vladimir@codesourcery.com>
+
+ * target.c (target_terminal_inferior): Use target_can_async_p, not
+ target_is_async_p.
+
+2009-11-27 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints
+ of type bp_hardware_watchpoint.
+
+2009-11-27 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c: Apply some corrections to the previous comment addition.
+
+2009-11-26 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c: Update the comment explaining how to evaluate
+ Ada expressions.
+
+2009-11-24 Daniel Jacobowitz <dan@codesourcery.com>
+
+ PR gdb/8704
+
+ * breakpoint.c (find_condition_and_thread): Correct task error message.
+ * c-exp.y (yylex): Stop before "thread N", "task N", or abbreviations
+ of those.
+
+2009-11-24 Joel Brobecker <brobecker@adacore.com>
+
+ * acinclude.m4: Include ../config/zlib.m4.
+ * configure.ac: Use AM_ZLIB to check for zlib support.
+ * configure: Regenerate.
+
+2009-11-24 Joel Brobecker <brobecker@adacore.com>
+
+ * breakpoint.c (expand_line_sal_maybe): Adjust adjust the SAL
+ past the function prologue in the case where we were given only
+ one SAL.
+
2009-11-24 Pedro Alves <pedro@codesourcery.com>
* record.c (init_record_ops, init_record_core_ops): Actually
diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4
index c32e1ea..af4639b 100644
--- a/gdb/acinclude.m4
+++ b/gdb/acinclude.m4
@@ -32,6 +32,8 @@ sinclude([../config/lcmessage.m4])
dnl For AM_LANGINFO_CODESET.
sinclude([../config/codeset.m4])
+sinclude([../config/zlib.m4])
+
#
# Sometimes the native compiler is a bogus stub for gcc or /usr/ucb/cc. This
# makes configure think it's cross compiling. If --target wasn't used, then
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 289c596..9594d6d 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -8389,6 +8389,9 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside)
/* Evaluating Ada expressions, and printing their result.
------------------------------------------------------
+ 1. Introduction:
+ ----------------
+
We usually evaluate an Ada expression in order to print its value.
We also evaluate an expression in order to print its type, which
happens during the EVAL_AVOID_SIDE_EFFECTS phase of the evaluation,
@@ -8417,6 +8420,9 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside)
cleaned up, this guide might become redundant with the comments
inserted in the code, and we might want to remove it.
+ 2. ``Fixing'' an Entity, the Simple Case:
+ -----------------------------------------
+
When evaluating Ada expressions, the tricky issue is that they may
reference entities whose type contents and size are not statically
known. Consider for instance a variant record:
@@ -8458,34 +8464,60 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside)
such as an array of variant records, for instance. There are
two possible cases: Arrays, and records.
- Arrays are a little simpler to handle, because the same amount of
- memory is allocated for each element of the array, even if the amount
- of space used by each element changes from element to element.
- Consider for instance the following array of type Rec:
+ 3. ``Fixing'' Arrays:
+ ---------------------
+
+ The type structure in GDB describes an array in terms of its bounds,
+ and the type of its elements. By design, all elements in the array
+ have the same type and we cannot represent an array of variant elements
+ using the current type structure in GDB. When fixing an array,
+ we cannot fix the array element, as we would potentially need one
+ fixed type per element of the array. As a result, the best we can do
+ when fixing an array is to produce an array whose bounds and size
+ are correct (allowing us to read it from memory), but without having
+ touched its element type. Fixing each element will be done later,
+ when (if) necessary.
+
+ Arrays are a little simpler to handle than records, because the same
+ amount of memory is allocated for each element of the array, even if
+ the amount of space actually used by each element differs from element
+ to element. Consider for instance the following array of type Rec:
type Rec_Array is array (1 .. 2) of Rec;
- The type structure in GDB describes an array in terms of its
- bounds, and the type of its elements. By design, all elements
- in the array have the same type. So we cannot use a fixed type
- for the array elements in this case, since the fixed type depends
- on the actual value of each element.
-
- Fortunately, what happens in practice is that each element of
- the array has the same size, which is the maximum size that
- might be needed in order to hold an object of the element type.
- And the compiler shows it in the debugging information by wrapping
- the array element inside a private PAD type. This type should not
- be shown to the user, and must be "unwrap"'ed before printing. Note
+ The actual amount of memory occupied by each element might be different
+ from element to element, depending on the value of their discriminant.
+ But the amount of space reserved for each element in the array remains
+ fixed regardless. So we simply need to compute that size using
+ the debugging information available, from which we can then determine
+ the array size (we multiply the number of elements of the array by
+ the size of each element).
+
+ The simplest case is when we have an array of a constrained element
+ type. For instance, consider the following type declarations:
+
+ type Bounded_String (Max_Size : Integer) is
+ Length : Integer;
+ Buffer : String (1 .. Max_Size);
+ end record;
+ type Bounded_String_Array is array (1 ..2) of Bounded_String (80);
+
+ In this case, the compiler describes the array as an array of
+ variable-size elements (identified by its XVS suffix) for which
+ the size can be read in the parallel XVZ variable.
+
+ In the case of an array of an unconstrained element type, the compiler
+ wraps the array element inside a private PAD type. This type should not
+ be shown to the user, and must be "unwrap"'ed before printing. Note
that we also use the adjective "aligner" in our code to designate
these wrapper types.
- These wrapper types should have a constant size, which is the size
- of each element of the array. In the case when the size is statically
- known, the PAD type will already have the right size, and the array
- element type should remain unfixed. But there are cases when
- this size is not statically known. For instance, assuming that
- "Five" is an integer variable:
+ In some cases, the size allocated for each element is statically
+ known. In that case, the PAD type already has the correct size,
+ and the array element should remain unfixed.
+
+ But there are cases when this size is not statically known.
+ For instance, assuming that "Five" is an integer variable:
type Dynamic is array (1 .. Five) of Integer;
type Wrapper (Has_Length : Boolean := False) is record
@@ -8508,7 +8540,10 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside)
In that case, a copy of the PAD type with the correct size should
be used for the fixed array.
- However, things are slightly different in the case of dynamic
+ 3. ``Fixing'' record type objects:
+ ----------------------------------
+
+ Things are slightly different from arrays in the case of dynamic
record types. In this case, in order to compute the associated
fixed type, we need to determine the size and offset of each of
its components. This, in turn, requires us to compute the fixed
@@ -8524,7 +8559,7 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside)
In that case, the position of field "Length" depends on the size
of field Str, which itself depends on the value of the Max_Size
- discriminant. In order to fix the type of variable My_String,
+ discriminant. In order to fix the type of variable My_String,
we need to fix the type of field Str. Therefore, fixing a variant
record requires us to fix each of its components.
@@ -8552,21 +8587,21 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside)
The debugger computes the position of each field based on an algorithm
that uses, among other things, the actual position and size of the field
- preceding it. Let's now imagine that the user is trying to print the
- value of My_Container. If the type fixing was recursive, we would
+ preceding it. Let's now imagine that the user is trying to print
+ the value of My_Container. If the type fixing was recursive, we would
end up computing the offset of field After based on the size of the
fixed version of field First. And since in our example First has
only one actual field, the size of the fixed type is actually smaller
than the amount of space allocated to that field, and thus we would
compute the wrong offset of field After.
- Unfortunately, we need to watch out for dynamic components of variant
- records (identified by the ___XVL suffix in the component name).
- Even if the target type is a PAD type, the size of that type might
- not be statically known. So the PAD type needs to be unwrapped and
- the resulting type needs to be fixed. Otherwise, we might end up
- with the wrong size for our component. This can be observed with
- the following type declarations:
+ To make things more complicated, we need to watch out for dynamic
+ components of variant records (identified by the ___XVL suffix in
+ the component name). Even if the target type is a PAD type, the size
+ of that type might not be statically known. So the PAD type needs
+ to be unwrapped and the resulting type needs to be fixed. Otherwise,
+ we might end up with the wrong size for our component. This can be
+ observed with the following type declarations:
type Octal is new Integer range 0 .. 7;
type Octal_Array is array (Positive range <>) of Octal;
@@ -8580,7 +8615,10 @@ ada_value_cast (struct type *type, struct value *arg2, enum noside noside)
In that case, Buffer is a PAD type whose size is unset and needs
to be computed by fixing the unwrapped type.
- Lastly, when should the sub-elements of a type that remained unfixed
+ 4. When to ``Fix'' un-``Fixed'' sub-elements of an entity:
+ ----------------------------------------------------------
+
+ Lastly, when should the sub-elements of an entity that remained unfixed
thus far, be actually fixed?
The answer is: Only when referencing that element. For instance
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 90d9247..4340c5d 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -6340,13 +6340,14 @@ expand_line_sal_maybe (struct symtab_and_line sal)
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2009-11-24 21:21 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2009-11-24 21:21 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 22093269c47f7ead010e08dc64f1a6f5e8050107 (commit)
via 1c8408e10d945f19a19e78b6390a8a6120d88654 (commit)
via d6c058ef715b085ebc94a1aaf45357b5092386ed (commit)
via 9a34a6c2a5c0acfbffc0317ed128f84bbbcb70b7 (commit)
via 2d0bcd98d5365f498113069fdb3f6d8b2fb8d584 (commit)
via 0ef63c20b005b181f6d6aefeb2442fc1e7adcd68 (commit)
via 1346b0f791005e35be05e5ba2724963d67b78d81 (commit)
via 0d331d2454838b90988b7fee75ad69f28c1b26eb (commit)
via d81ad3f20359142d77f52edb7d42d23f2972d94f (commit)
via bc9bfa10d0fe35ce97adb899be06f11a4a440985 (commit)
via a3a61e0f96e5cd810a8a92bf6139863e2d54f6ac (commit)
via 4cc2dec857f75e8e1c1ba73e50e59d0ba3e8749d (commit)
via f5b5f8c034d8cd6a7441d5f2d4c9b6b3dd01d349 (commit)
via 7384893e8797e049123e495fd052edcdfc290b42 (commit)
via d3534f9ac9ddd1a2dfa26fd222ee838d8a25dd20 (commit)
via 5cde43f70d4c09cabaf991b532c44311e4fde7c3 (commit)
via 260e12c2d8806f33056e0b2dc44d00f1fbdf5958 (commit)
via bab94e3771caf54b008b3967c34f9eb0c9cd4b54 (commit)
via faee4b99cfc952f839b00fb4934ef46f24d040cf (commit)
via 1a18891df248e65a1c179e1f67055fd692e4d94d (commit)
via 477b2d9c82a58c5c179d489f1cca2bb28bbd5b88 (commit)
via c89e2feaa0891751baab6b54381a2b139493ec6a (commit)
via 1ab0b876af2e2410fa462e901623669f29d75c89 (commit)
via 7cd0345a02c5abf395c322e2649ef1d3a8cd73f0 (commit)
via 3c6e4c607bc9838c0f9a55d8084871f97dcaab04 (commit)
via 6539c19dbbabe25228bc6d4979adae1a08bde3a9 (commit)
via cc7cc38174cfc79e75ea92a00b48591f90c83ea5 (commit)
via cbeb104190e4767f12fffda7ff9f91dacb0f7eee (commit)
from b740cdc6ca5f28027a4578bfb974cbd01698884e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 22093269c47f7ead010e08dc64f1a6f5e8050107
Merge: b740cdc6ca5f28027a4578bfb974cbd01698884e 1c8408e10d945f19a19e78b6390a8a6120d88654
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Tue Nov 24 22:21:00 2009 +0100
Merge remote branch 'gdb/master'
commit 1c8408e10d945f19a19e78b6390a8a6120d88654
Author: DJ Delorie <dj@delorie.com>
Date: Tue Nov 24 19:22:44 2009 +0000
[sim]
* rx: New directory.
* configure.ac: Add entry for Renesas RX.
* configure: Regenerate.
[include/gdb]
* sim-rx.h: New.
commit d6c058ef715b085ebc94a1aaf45357b5092386ed
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Nov 24 13:13:43 2009 +0000
2009-11-24 Tristan Gingold <gingold@adacore.com>
* vms-hdr.c (_bfd_vms_write_hdr): Strip any suffix to create module
name.
* vms.h (vms_debug2): Add vms_debug2.
* vms.c (vms_archive_p): Remove
(vms_bfd_free_cached_info): Remove the function, use libbfd.h macro
instead.
(vms_get_section_contents_in_window): Ditto.
(vms_bfd_copy_private_bfd_data): Ditto.
(vms_bfd_copy_private_section_data): Ditto.
(vms_bfd_copy_private_symbol_data): Ditto.
(vms_bfd_print_private_bfd_data): Ditto.
(vms_bfd_set_private_flags): Ditto.
(vms_bfd_merge_private_bfd_data): Ditto.
(vms_read_minisymbols): Ditto.
(vms_minisymbol_to_symbol): Ditto.
(vms_get_lineno): Ditto.
(vms_find_nearest_line): Ditto.
(vms_bfd_make_debug_symbol): Ditto.
(vms_core_file_failing_command): Remove.
(vms_core_file_failing_signal): Remove.
(vms_core_file_matches_executable_p): Remove.
(vms_slurp_armap): Remove.
(vms_slurp_extended_name_table): Remove.
(vms_construct_extended_name_table): Remove.
(vms_truncate_arname): Remove.
(vms_write_armap): Remove.
(vms_read_ar_hdr): Remove.
(vms_get_elt_at_index): Remove.
(vms_openr_next_archived_file): Remove.
(vms_update_armap_timestamp): Remove.
(vms_generic_stat_arch_elt): Remove.
(vms_get_symtab_upper_bound): Remove.
(vms_sizeof_headers): Remove.
(vms_bfd_get_relocated_section_contents): Remove.
(vms_bfd_relax_section): Remove.
(vms_bfd_gc_sections): Remove.
(vms_bfd_merge_sections): Remove.
(vms_bfd_link_hash_table_create): Remove.
(vms_bfd_link_hash_table_free): Remove.
(vms_bfd_link_add_symbols): Remove.
(vms_bfd_final_link): Remove.
(vms_bfd_link_split_section): Remove.
(vms_get_dynamic_symtab_upper_bound): Remove.
(vms_canonicalize_dynamic_symtab): Remove.
(vms_get_dynamic_reloc_upper_bound): Remove.
(vms_canonicalize_dynamic_reloc): Remove.
(fill_section_ptr): Use vms_debug2 instead of vms_debug.
(_bfd_vms_slurp_object_records): Ditto.
(vms_object_p): Ditto.
(vms_mkobject): Ditto.
(vms_write_object_contents): Ditto.
(vms_close_and_cleanup): Ditto.
(vms_new_section_hook): Ditto.
(vms_get_section_contents): Ditto.
(vms_get_symtab_upper_bound): Ditto.
(vms_canonicalize_symtab): Ditto.
(vms_print_symbol): Ditto.
(vms_get_symbol_info): Ditto.
(vms_bfd_is_local_label_name): Ditto.
(vms_find_nearest_line): Ditto.
(vms_slurp_reloc_table): Ditto.
(vms_bfd_reloc_type_lookup): Ditto.
(vms_set_arch_mach): Ditto.
(vms_alpha_vec, vms_vax_vec): Use _bfd_nocore, _bfd_noarchive,
_bfd_nolink and _bfd_nodynamic methods instead of vms stubs.
commit 9a34a6c2a5c0acfbffc0317ed128f84bbbcb70b7
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Nov 24 01:47:50 2009 +0000
* record.c (init_record_ops, init_record_core_ops): Actually
install record_stopped_data_address.
commit 2d0bcd98d5365f498113069fdb3f6d8b2fb8d584
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 24 00:00:02 2009 +0000
*** empty log message ***
commit 0ef63c20b005b181f6d6aefeb2442fc1e7adcd68
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Nov 23 22:08:01 2009 +0000
2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing.
commit 1346b0f791005e35be05e5ba2724963d67b78d81
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Nov 23 22:06:04 2009 +0000
* dwarf2read.c (find_partial_die): Don't reassign to 'back_to'.
commit 0d331d2454838b90988b7fee75ad69f28c1b26eb
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Nov 23 21:47:22 2009 +0000
PR python/10782:
* gdb.texinfo (Types In Python): Document Type.pointer.
commit d81ad3f20359142d77f52edb7d42d23f2972d94f
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon Nov 23 20:11:41 2009 +0000
2009-11-23 Michael Snyder <msnyder@vmware.com>
* gdb.reverse/watch-reverse.exp: Extend test for hw watchpoints.
* gdb.reverse-watch-precsave.exp: Ditto.
commit bc9bfa10d0fe35ce97adb899be06f11a4a440985
Author: Michael Snyder <msnyder@specifix.com>
Date: Mon Nov 23 20:07:25 2009 +0000
2009-11-23 Michael Snyder <msnyder@vmware.com>
* NEWS: Mention hw watchpoint fix for process record.
commit a3a61e0f96e5cd810a8a92bf6139863e2d54f6ac
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date: Mon Nov 23 18:44:10 2009 +0000
gdb/ChangeLog:
2009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* cli/cli-cmds.c (disassemble_command): Split on comma.
(init_cli_cmds): Update help.
* NEWS: Mention incompatible change to 'disassemble'.
gdb/testsuite/ChangeLog:
2009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.asm/asm-source.exp: Adjust.
* gdb.base/help.exp: Adjust.
gdb/doc/ChangeLog:
2009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.texinfo (Machine Code): Adjust.
commit 4cc2dec857f75e8e1c1ba73e50e59d0ba3e8749d
Author: Paul Brook <paul@codesourcery.com>
Date: Mon Nov 23 14:41:26 2009 +0000
2009-11-23 Paul Brook <paul@codesourcery.com>
ld/
* ldexp.c: Copy symbol type for simple assignments.
bfd/
* libbfd-in.h (_bfd_generic_copy_link_hash_symbol_type): Add
prototype.
* elf-bfd.h (_bfd_elf_copy_link_hash_symbol_type): Add prototype.
* linker.c (_bfd_generic_copy_link_hash_symbol_type): New function.
* elflink.c (_bfd_elf_copy_link_hash_symbol_type): New function.
* targets.c (BFD_JUMP_TABLE_LINK, struct bfd_target): Add
_copy_link_hash_symbol_type.
* bfd/coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add
_bfd_generic_copy_link_hash_symbol_type.
* bfd/coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add
_bfd_generic_copy_link_hash_symbol_type.
* aout-adobe.c (aout_32_bfd_copy_link_hash_symbol_type): Define.
* aout-target.h (MY_bfd_copy_link_hash_symbol_type): Define.
* aout-tic30.c (MY_bfd_copy_link_hash_symbol_type): Define.
* binary.c (binary_bfd_copy_link_hash_symbol_type): Define.
* bout.c (b_out_bfd_copy_link_hash_symbol_type): Define.
* coffcode.h (coff_bfd_copy_link_hash_symbol_type): Define.
* elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type): Define.
* i386msdos.c (msdos_bfd_copy_link_hash_symbol_type): Define.
* i386os9k.c (os9k_bfd_copy_link_hash_symbol_type): Define.
* ieee.c (ieee_bfd_copy_link_hash_symbol_type): Define.
* ihex.c (ihex_bfd_copy_link_hash_symbol_type): Define.
* libecoff.h (_bfd_ecoff_bfd_copy_link_hash_symbol_type): Define.
* mach-o.c (bfd_mach_o_bfd_copy_link_hash_symbol_type): Define.
* mmo.c (mmo_bfd_copy_link_hash_symbol_type): Define.
* nlm-target.h (nlm_bfd_copy_link_hash_symbol_type): Define.
* oasys.c (oasys_bfd_copy_link_hash_symbol_type): Define.
* pef.c (bfd_pef_bfd_copy_link_hash_symbol_type): Define.
* ppcboot.c (ppcboot_bfd_copy_link_hash_symbol_type): Define.
* som.c (som_bfd_copy_link_hash_symbol_type): Define.
* srec.c (srec_bfd_copy_link_hash_symbol_type): Define.
* tekhex.c (tekhex_bfd_copy_link_hash_symbol_type): Define.
* versados.c (versados_bfd_copy_link_hash_symbol_type): Define.
* vms.c (vms_bfd_copy_link_hash_symbol_type): Define.
* xsym.c (bfd_sym_bfd_copy_link_hash_symbol_type): Define.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
ld/testsuite
* ld-arm/script-type.sym: New test.
* ld-arm/script-type.s: New test.
* ld-arm/script-type.s: New test.
commit f5b5f8c034d8cd6a7441d5f2d4c9b6b3dd01d349
Author: Doug Evans <dje@google.com>
Date: Mon Nov 23 09:37:07 2009 +0000
* cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
(EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
plus regenerate cgen files
commit 7384893e8797e049123e495fd052edcdfc290b42
Author: Ben Elliston <bje@au.ibm.com>
Date: Mon Nov 23 04:42:14 2009 +0000
* pex-unix.c (pex_child_error): Improve warning avoidance by
checking the results of write(3) and exiting with -2 if any write
returns a negative value.
commit d3534f9ac9ddd1a2dfa26fd222ee838d8a25dd20
Author: Doug Evans <dje@google.com>
Date: Mon Nov 23 04:12:15 2009 +0000
* cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
(EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
(EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
instead of CGEN_INSN_INT.
plus, cgen files: Regenerate.
commit 5cde43f70d4c09cabaf991b532c44311e4fde7c3
Author: Doug Evans <dje@google.com>
Date: Mon Nov 23 03:56:28 2009 +0000
* cgen.h: Include bfd_stdint.h.
(CGEN_INSN_LGSINT, CGEN_INSN_LGUINT): New types.
commit 260e12c2d8806f33056e0b2dc44d00f1fbdf5958
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 23 00:00:03 2009 +0000
*** empty log message ***
commit bab94e3771caf54b008b3967c34f9eb0c9cd4b54
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Nov 22 23:00:04 2009 +0000
daily update
commit faee4b99cfc952f839b00fb4934ef46f24d040cf
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Nov 22 22:57:24 2009 +0000
* gdb.base/catch-syscall.exp (test_catch_syscall_fail_nodatadir)
(do_syscall_tests_without_xml): Set data-directory to
/the/path/to/nowhere.
commit 1a18891df248e65a1c179e1f67055fd692e4d94d
Author: Doug Evans <dje@google.com>
Date: Sun Nov 22 22:29:28 2009 +0000
* cgen-trace.h (trace_extract): Add cast to fix warning.
commit 477b2d9c82a58c5c179d489f1cca2bb28bbd5b88
Author: DJ Delorie <dj@delorie.com>
Date: Sun Nov 22 16:58:53 2009 +0000
merge from gcc
commit c89e2feaa0891751baab6b54381a2b139493ec6a
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Nov 22 15:47:30 2009 +0000
Make hardware breakpoints work for process repord.
* record.c (record_wait): Only adjust PC on software breakpoints
hits.
commit 1ab0b876af2e2410fa462e901623669f29d75c89
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Nov 22 15:38:57 2009 +0000
Make hardware watchpoints work for process record.
* breakpoint.c (hardware_watchpoint_inserted_in_range): New.
* breakpoint.h (hardware_watchpoint_inserted_in_range): Declare.
* record.c (record_beneath_to_stopped_by_watchpoint)
(record_beneath_to_stopped_data_address, record_hw_watchpoint):
New globals.
(record_exec_insn): Check for watchpoint hits.
(tmp_to_stopped_by_watchpoint, tmp_to_stopped_data_address): New
globals.
(record_open): Set tmp_to_stopped_by_watchpoint,
tmp_to_stopped_data_address,
record_beneath_to_stopped_by_watchpoint and
record_beneath_to_stopped_data_address.
(record_wait): Report watchpoint hits to the core. Update and
extend comments.
(record_stopped_by_watchpoint): New.
(record_stopped_data_address): New.
(init_record_ops): Install them.
(init_record_core_ops): Ditto.
commit 7cd0345a02c5abf395c322e2649ef1d3a8cd73f0
Author: Matt Rice <ratmice@gmail.com>
Date: Sun Nov 22 11:42:11 2009 +0100
sync cpu/ from cvs into this git repository
commit 3c6e4c607bc9838c0f9a55d8084871f97dcaab04
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 22 00:00:03 2009 +0000
*** empty log message ***
commit 6539c19dbbabe25228bc6d4979adae1a08bde3a9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Nov 21 23:00:05 2009 +0000
daily update
commit cc7cc38174cfc79e75ea92a00b48591f90c83ea5
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Nov 21 21:37:21 2009 +0000
* breakpoint.c (update_watchpoint): Skip creating locations and
reading the selected frame if there's no execution.
(bpstat_stop_status): Use is_hardware_watchpoint. If not
stopping, update watchpoints and the global location list, instead
of removing and inserting all breakpoints.
(breakpoint_address_is_meaningful): Hardware watchpoints also have
a meaningful target address.
(watchpoint_locations_match): New.
(breakpoint_locations_match): New.
(watch_command_1): Create the watchpoint breakpoint without any
location initially. Use update_watchpoint to create the
watchpoint locations.
(update_global_location_list): Use breakpoint_locations_match, so
watchpoint locations are handled too. Also detect duplicate
watchpoint locations.
commit cbeb104190e4767f12fffda7ff9f91dacb0f7eee
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Nov 21 21:17:17 2009 +0000
gdb/
* breakpoint.h (struct breakpoint) <watchpoint_thread>: New field.
* breakpoint.c (watchpoint_in_thread_scope): New.
(update_watchpoint): Skip if the local watchpoint's thread doesn't
match the current thread, or if the current thread is running.
(watchpoint_check): Ditto.
(watch_command_1): Set the watchpoint's watchpoint_thread field.
gdb/testsuite/
* gdb.threads/local-watch-wrong-thread.c,
gdb.threads/local-watch-wrong-thread.exp: New files.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 40 +
bfd/aout-adobe.c | 2 +
bfd/aout-target.h | 4 +
bfd/aout-tic30.c | 4 +
bfd/bfd-in2.h | 7 +
bfd/binary.c | 2 +
bfd/bout.c | 2 +
bfd/coff-rs6000.c | 2 +
bfd/coff64-rs6000.c | 2 +
bfd/coffcode.h | 2 +
bfd/elf-bfd.h | 2 +
bfd/elflink.c | 12 +
bfd/elfxx-target.h | 5 +
bfd/i386msdos.c | 2 +
bfd/i386os9k.c | 2 +
bfd/ieee.c | 2 +
bfd/ihex.c | 2 +
bfd/libbfd-in.h | 7 +
bfd/libbfd.h | 7 +
bfd/libecoff.h | 2 +
bfd/linker.c | 11 +
bfd/mach-o-target.c | 2 +
bfd/mmo.c | 2 +
bfd/nlm-target.h | 2 +
bfd/oasys.c | 2 +
bfd/pef.c | 2 +
bfd/ppcboot.c | 2 +
bfd/som.c | 2 +
bfd/srec.c | 2 +
bfd/targets.c | 7 +
bfd/tekhex.c | 2 +
bfd/versados.c | 2 +
bfd/version.h | 2 +-
bfd/vms-hdr.c | 5 +-
bfd/vms.c | 778 +-----
bfd/vms.h | 7 +-
bfd/xsym.c | 2 +
cpu/ChangeLog | 11 +
cpu/xc16x.cpu | 196 +-
gdb/ChangeLog | 81 +
gdb/NEWS | 10 +
gdb/breakpoint.c | 224 ++-
gdb/breakpoint.h | 11 +
gdb/cli/cli-cmds.c | 17 +-
gdb/doc/ChangeLog | 9 +
gdb/doc/gdb.texinfo | 19 +-
gdb/dwarf2read.c | 5 +-
gdb/record.c | 131 +-
gdb/testsuite/ChangeLog | 21 +
gdb/testsuite/gdb.asm/asm-source.exp | 4 +-
gdb/testsuite/gdb.base/catch-syscall.exp | 10 +-
gdb/testsuite/gdb.base/help.exp | 2 +-
gdb/testsuite/gdb.reverse/watch-precsave.exp | 80 +-
gdb/testsuite/gdb.reverse/watch-reverse.exp | 82 +-
.../gdb.threads/local-watch-wrong-thread.c | 88 +
.../gdb.threads/local-watch-wrong-thread.exp | 122 +
gdb/version.in | 2 +-
include/gdb/ChangeLog | 4 +
include/gdb/sim-rx.h | 55 +
include/opcode/ChangeLog | 5 +
include/opcode/cgen.h | 6 +
libiberty/ChangeLog | 11 +
libiberty/dyn-string.c | 2 +-
libiberty/pex-unix.c | 6 +-
sim/ChangeLog | 16 +
sim/common/ChangeLog | 14 +
sim/common/cgen-engine.h | 30 +-
sim/common/cgen-trace.c | 2 +-
sim/configure | 5 +
sim/configure.ac | 3 +
sim/cris/cpuall.h | 5 -
sim/cris/cpuv10.h | 16 +-
sim/cris/cpuv32.h | 14 +-
sim/cris/decodev10.c | 236 +-
sim/cris/decodev10.h | 2 +-
sim/cris/decodev32.c | 220 +-
sim/cris/decodev32.h | 2 +-
sim/frv/ChangeLog | 7 +
sim/frv/cpu.h | 66 +-
sim/frv/cpuall.h | 1 -
sim/frv/decode.c | 604 ++--
sim/frv/decode.h | 2 +-
sim/iq2000/ChangeLog | 7 +
sim/iq2000/cpu.h | 14 +-
sim/iq2000/cpuall.h | 2 -
sim/iq2000/decode.c | 64 +-
sim/iq2000/decode.h | 2 +-
sim/lm32/ChangeLog | 7 +
sim/lm32/cpu.h | 12 +-
sim/lm32/cpuall.h | 1 -
sim/lm32/decode.c | 66 +-
sim/lm32/decode.h | 2 +-
sim/m32r/ChangeLog | 13 +
sim/m32r/cpu.h | 30 +-
sim/m32r/cpu2.h | 30 +-
sim/m32r/cpuall.h | 3 -
sim/m32r/cpux.h | 30 +-
sim/m32r/decode.c | 158 +-
sim/m32r/decode.h | 2 +-
sim/m32r/decode2.c | 186 +-
sim/m32r/decode2.h | 2 +-
sim/m32r/decodex.c | 186 +-
sim/m32r/decodex.h | 2 +-
sim/rx/ChangeLog | 26 +
sim/rx/Makefile.in | 64 +
sim/{ => rx}/configure | 2904 +++++++++++++-------
sim/rx/configure.in | 31 +
sim/rx/cpu.h | 225 ++
sim/rx/err.c | 140 +
sim/rx/err.h | 47 +
sim/rx/fpu.c | 791 ++++++
sim/rx/fpu.h | 29 +
sim/rx/gdb-if.c | 841 ++++++
sim/rx/load.c | 148 +
sim/rx/load.h | 27 +
sim/rx/main.c | 200 ++
sim/rx/mem.c | 552 ++++
sim/rx/mem.h | 52 +
sim/rx/misc.c | 77 +
sim/rx/misc.h | 25 +
sim/rx/reg.c | 552 ++++
sim/rx/rx.c | 1444 ++++++++++
sim/rx/syscall.h | 50 +
sim/rx/syscalls.c | 306 ++
sim/rx/syscalls.h | 24 +
sim/rx/trace.c | 346 +++
sim/rx/trace.h | 23 +
sim/sh64/ChangeLog | 11 +
sim/sh64/cpu.h | 6 +
sim/sh64/cpuall.h | 1 -
sim/sh64/decode-compact.c | 276 +-
sim/sh64/decode-compact.h | 2 +-
sim/sh64/decode-media.c | 216 +-
sim/sh64/decode-media.h | 2 +-
sim/sh64/defs-compact.h | 12 +-
sim/sh64/defs-media.h | 28 +-
136 files changed, 10487 insertions(+), 3211 deletions(-)
create mode 100644 gdb/testsuite/gdb.threads/local-watch-wrong-thread.c
create mode 100644 gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp
create mode 100644 include/gdb/sim-rx.h
create mode 100644 sim/rx/ChangeLog
create mode 100644 sim/rx/Makefile.in
create mode 100644 sim/rx/config.in
copy sim/{ => rx}/configure (71%)
create mode 100644 sim/rx/configure.in
create mode 100644 sim/rx/cpu.h
create mode 100644 sim/rx/err.c
create mode 100644 sim/rx/err.h
create mode 100644 sim/rx/fpu.c
create mode 100644 sim/rx/fpu.h
create mode 100644 sim/rx/gdb-if.c
create mode 100644 sim/rx/load.c
create mode 100644 sim/rx/load.h
create mode 100644 sim/rx/main.c
create mode 100644 sim/rx/mem.c
create mode 100644 sim/rx/mem.h
create mode 100644 sim/rx/misc.c
create mode 100644 sim/rx/misc.h
create mode 100644 sim/rx/reg.c
create mode 100644 sim/rx/rx.c
create mode 100644 sim/rx/syscall.h
create mode 100644 sim/rx/syscalls.c
create mode 100644 sim/rx/syscalls.h
create mode 100644 sim/rx/trace.c
create mode 100644 sim/rx/trace.h
First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a3b9a8f..2f7a85d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,43 @@
+2009-11-23 Paul Brook <paul@codesourcery.com>
+
+ * libbfd-in.h (_bfd_generic_copy_link_hash_symbol_type): Add
+ prototype.
+ * elf-bfd.h (_bfd_elf_copy_link_hash_symbol_type): Add prototype.
+ * linker.c (_bfd_generic_copy_link_hash_symbol_type): New function.
+ * elflink.c (_bfd_elf_copy_link_hash_symbol_type): New function.
+ * targets.c (BFD_JUMP_TABLE_LINK, struct bfd_target): Add
+ _copy_link_hash_symbol_type.
+ * bfd/coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add
+ _bfd_generic_copy_link_hash_symbol_type.
+ * bfd/coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add
+ _bfd_generic_copy_link_hash_symbol_type.
+ * aout-adobe.c (aout_32_bfd_copy_link_hash_symbol_type): Define.
+ * aout-target.h (MY_bfd_copy_link_hash_symbol_type): Define.
+ * aout-tic30.c (MY_bfd_copy_link_hash_symbol_type): Define.
+ * binary.c (binary_bfd_copy_link_hash_symbol_type): Define.
+ * bout.c (b_out_bfd_copy_link_hash_symbol_type): Define.
+ * coffcode.h (coff_bfd_copy_link_hash_symbol_type): Define.
+ * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type): Define.
+ * i386msdos.c (msdos_bfd_copy_link_hash_symbol_type): Define.
+ * i386os9k.c (os9k_bfd_copy_link_hash_symbol_type): Define.
+ * ieee.c (ieee_bfd_copy_link_hash_symbol_type): Define.
+ * ihex.c (ihex_bfd_copy_link_hash_symbol_type): Define.
+ * libecoff.h (_bfd_ecoff_bfd_copy_link_hash_symbol_type): Define.
+ * mach-o.c (bfd_mach_o_bfd_copy_link_hash_symbol_type): Define.
+ * mmo.c (mmo_bfd_copy_link_hash_symbol_type): Define.
+ * nlm-target.h (nlm_bfd_copy_link_hash_symbol_type): Define.
+ * oasys.c (oasys_bfd_copy_link_hash_symbol_type): Define.
+ * pef.c (bfd_pef_bfd_copy_link_hash_symbol_type): Define.
+ * ppcboot.c (ppcboot_bfd_copy_link_hash_symbol_type): Define.
+ * som.c (som_bfd_copy_link_hash_symbol_type): Define.
+ * srec.c (srec_bfd_copy_link_hash_symbol_type): Define.
+ * tekhex.c (tekhex_bfd_copy_link_hash_symbol_type): Define.
+ * versados.c (versados_bfd_copy_link_hash_symbol_type): Define.
+ * vms.c (vms_bfd_copy_link_hash_symbol_type): Define.
+ * xsym.c (bfd_sym_bfd_copy_link_hash_symbol_type): Define.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+
2009-11-19 Tristan Gingold <gingold@adacore.com>
* coff-rs6000.c (rs6000coff_vec): Use generic routines instead of
diff --git a/bfd/aout-adobe.c b/bfd/aout-adobe.c
index 02f6ccb..ca0e003 100644
--- a/bfd/aout-adobe.c
+++ b/bfd/aout-adobe.c
@@ -468,6 +468,8 @@ aout_adobe_sizeof_headers (bfd *ignore_abfd ATTRIBUTE_UNUSED,
#define aout_32_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define aout_32_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define aout_32_bfd_link_just_syms _bfd_generic_link_just_syms
+#define aout_32_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define aout_32_bfd_final_link _bfd_generic_final_link
#define aout_32_bfd_link_split_section _bfd_generic_link_split_section
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index 96d7f97..39c8d34 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -523,6 +523,10 @@ MY_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
#ifndef MY_bfd_link_just_syms
#define MY_bfd_link_just_syms _bfd_generic_link_just_syms
#endif
+#ifndef MY_bfd_copy_link_hash_symbol_type
+#define MY_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
+#endif
#ifndef MY_bfd_link_split_section
#define MY_bfd_link_split_section _bfd_generic_link_split_section
#endif
diff --git a/bfd/aout-tic30.c b/bfd/aout-tic30.c
index ef74fa6..feaec8a 100644
--- a/bfd/aout-tic30.c
+++ b/bfd/aout-tic30.c
@@ -980,6 +980,10 @@ tic30_aout_set_arch_mach (bfd *abfd,
#ifndef MY_bfd_link_just_syms
#define MY_bfd_link_just_syms _bfd_generic_link_just_syms
#endif
+#ifndef MY_bfd_copy_link_hash_symbol_type
+#define MY_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
+#endif
#ifndef MY_bfd_link_split_section
#define MY_bfd_link_split_section _bfd_generic_link_split_section
#endif
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 455ec56..aa58ca6 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -5601,6 +5601,7 @@ typedef struct bfd_target
NAME##_bfd_link_hash_table_free, \
NAME##_bfd_link_add_symbols, \
NAME##_bfd_link_just_syms, \
+ NAME##_bfd_copy_link_hash_symbol_type, \
NAME##_bfd_final_link, \
NAME##_bfd_link_split_section, \
NAME##_bfd_gc_sections, \
@@ -5632,6 +5633,12 @@ typedef struct bfd_target
/* Indicate that we are only retrieving symbol values from this section. */
void (*_bfd_link_just_syms) (asection *, struct bfd_link_info *);
+ /* Copy the symbol type of a linker hash table entry. */
+#define bfd_copy_link_hash_symbol_type(b, t, f) \
+ BFD_SEND (b, _bfd_copy_link_hash_symbol_type, (b, t, f))
+ void (*_bfd_copy_link_hash_symbol_type)
+ (bfd *, struct bfd_link_hash_entry *, struct bfd_link_hash_entry *);
+
/* Do a link based on the link_order structures attached to each
section of the BFD. */
bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);
diff --git a/bfd/binary.c b/bfd/binary.c
index d264a09..2af0293 100644
--- a/bfd/binary.c
+++ b/bfd/binary.c
@@ -307,6 +307,8 @@ binary_sizeof_headers (bfd *abfd ATTRIBUTE_UNUSED,
#define binary_bfd_link_hash_table_create _bfd_generic_link_hash_table_create
#define binary_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define binary_bfd_link_just_syms _bfd_generic_link_just_syms
+#define binary_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define binary_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define binary_bfd_final_link _bfd_generic_final_link
#define binary_bfd_link_split_section _bfd_generic_link_split_section
diff --git a/bfd/bout.c b/bfd/bout.c
index f2721e8..ad53d8f 100644
--- a/bfd/bout.c
+++ b/bfd/bout.c
@@ -1386,6 +1386,8 @@ b_out_bfd_get_relocated_section_contents (bfd *output_bfd,
#define b_out_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define b_out_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define b_out_bfd_link_just_syms _bfd_generic_link_just_syms
+#define b_out_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define b_out_bfd_final_link _bfd_generic_final_link
#define b_out_bfd_link_split_section _bfd_generic_link_split_section
#define b_out_bfd_gc_sections bfd_generic_gc_sections
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index 2482cfb..2ee74ec 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -4230,6 +4230,7 @@ const bfd_target rs6000coff_vec =
_bfd_generic_link_hash_table_free,
_bfd_xcoff_bfd_link_add_symbols,
_bfd_generic_link_just_syms,
+ _bfd_generic_copy_link_hash_symbol_type,
_bfd_xcoff_bfd_final_link,
_bfd_generic_link_split_section,
bfd_generic_gc_sections,
@@ -4483,6 +4484,7 @@ const bfd_target pmac_xcoff_vec =
_bfd_generic_link_hash_table_free,
_bfd_xcoff_bfd_link_add_symbols,
_bfd_generic_link_just_syms,
+ _bfd_generic_copy_link_hash_symbol_type,
_bfd_xcoff_bfd_final_link,
_bfd_generic_link_split_section,
bfd_generic_gc_sections,
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 9b653e6..4d618c1 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -2800,6 +2800,7 @@ const bfd_target rs6000coff64_vec =
_bfd_generic_link_hash_table_free,
_bfd_xcoff_bfd_link_add_symbols,
_bfd_generic_link_just_syms,
+ _bfd_generic_copy_link_hash_symbol_type,
_bfd_xcoff_bfd_final_link,
_bfd_generic_link_split_section,
bfd_generic_gc_sections,
@@ -3054,6 +3055,7 @@ const bfd_target aix5coff64_vec =
_bfd_generic_link_hash_table_free,
_bfd_xcoff_bfd_link_add_symbols,
_bfd_generic_link_just_syms,
+ _bfd_generic_copy_link_hash_symbol_type,
_bfd_xcoff_bfd_final_link,
_bfd_generic_link_split_section,
bfd_generic_gc_sections,
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 19f4159..55c54de 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -5328,6 +5328,8 @@ dummy_reloc16_extra_cases (bfd *abfd ATTRIBUTE_UNUSED,
#endif /* ! defined (coff_relocate_section) */
#define coff_bfd_link_just_syms _bfd_generic_link_just_syms
+#define coff_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define coff_bfd_link_split_section _bfd_generic_link_split_section
#ifndef coff_start_final_link
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 7cc420c..daa2b62 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1751,6 +1751,8 @@ extern asection *_bfd_elf_check_kept_section
(asection *, struct bfd_link_info *);
extern void _bfd_elf_link_just_syms
(asection *, struct bfd_link_info *);
+extern void _bfd_elf_copy_link_hash_symbol_type
+ (bfd *, struct bfd_link_hash_entry *, struct bfd_link_hash_entry *);
extern bfd_boolean _bfd_elf_copy_private_header_data
(bfd *, bfd *);
extern bfd_boolean _bfd_elf_copy_private_symbol_data
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 0153411..8e29154 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -12596,3 +12596,15 @@ _bfd_elf_make_dynamic_reloc_section (asection * sec,
return reloc_sec;
}
+
+/* Copy the ELF symbol type associated with a linker hash entry. */
+void
+_bfd_elf_copy_link_hash_symbol_type (bfd *abfd ATTRIBUTE_UNUSED,
+ struct bfd_link_hash_entry * hdest,
+ struct bfd_link_hash_entry * hsrc)
+{
+ struct elf_link_hash_entry *ehdest = (struct elf_link_hash_entry *)hdest;
+ struct elf_link_hash_entry *ehsrc = (struct elf_link_hash_entry *)hsrc;
+
+ ehdest->type = ehsrc->type;
+}
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 413f273..ebce6a8 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -260,6 +260,11 @@
#define bfd_elfNN_bfd_link_just_syms _bfd_elf_link_just_syms
#endif
+#ifndef bfd_elfNN_bfd_copy_link_hash_symbol_type
+#define bfd_elfNN_bfd_copy_link_hash_symbol_type \
+ _bfd_elf_copy_link_hash_symbol_type
+#endif
+
#ifndef bfd_elfNN_bfd_link_split_section
#define bfd_elfNN_bfd_link_split_section _bfd_generic_link_split_section
#endif
diff --git a/bfd/i386msdos.c b/bfd/i386msdos.c
index 2059d9c..95d9775 100644
--- a/bfd/i386msdos.c
+++ b/bfd/i386msdos.c
@@ -153,6 +153,8 @@ msdos_set_section_contents (bfd *abfd,
#define msdos_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define msdos_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define msdos_bfd_link_just_syms _bfd_generic_link_just_syms
+#define msdos_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define msdos_bfd_final_link _bfd_generic_final_link
#define msdos_bfd_link_split_section _bfd_generic_link_split_section
#define msdos_set_arch_mach _bfd_generic_set_arch_mach
diff --git a/bfd/i386os9k.c b/bfd/i386os9k.c
index 4c33a6e..a5e8920 100644
--- a/bfd/i386os9k.c
+++ b/bfd/i386os9k.c
@@ -177,6 +177,8 @@ os9k_sizeof_headers (bfd *abfd ATTRIBUTE_UNUSED,
#define os9k_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define os9k_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define os9k_bfd_link_just_syms _bfd_generic_link_just_syms
+#define os9k_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define os9k_bfd_final_link _bfd_generic_final_link
#define os9k_bfd_link_split_section _bfd_generic_link_split_section
diff --git a/bfd/ieee.c b/bfd/ieee.c
index 1fecf5a..68bdd5e 100644
--- a/bfd/ieee.c
+++ b/bfd/ieee.c
@@ -3775,6 +3775,8 @@ ieee_sizeof_headers (bfd *abfd ATTRIBUTE_UNUSED,
#define ieee_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define ieee_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define ieee_bfd_link_just_syms _bfd_generic_link_just_syms
+#define ieee_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define ieee_bfd_final_link _bfd_generic_final_link
#define ieee_bfd_link_split_section _bfd_generic_link_split_section
diff --git a/bfd/ihex.c b/bfd/ihex.c
index aaad6d7..6a9816c 100644
--- a/bfd/ihex.c
+++ b/bfd/ihex.c
@@ -939,6 +939,8 @@ ihex_sizeof_headers (bfd *abfd ATTRIBUTE_UNUSED,
#define ihex_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define ihex_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define ihex_bfd_link_just_syms _bfd_generic_link_just_syms
+#define ihex_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define ihex_bfd_final_link _bfd_generic_final_link
#define ihex_bfd_link_split_section _bfd_generic_link_split_section
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 2e441db..8c6f9b6 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -410,6 +410,9 @@ extern bfd_boolean _bfd_generic_set_section_contents
((bfd_boolean (*) (bfd *, struct bfd_link_info *)) bfd_false)
#define _bfd_nolink_bfd_link_just_syms \
((void (*) (asection *, struct bfd_link_info *)) bfd_void)
+#define _bfd_nolink_bfd_copy_link_hash_symbol_type \
+ ((void (*) (bfd *, struct bfd_link_hash_entry *, \
+ struct bfd_link_hash_entry *)) bfd_void)
#define _bfd_nolink_bfd_final_link \
((bfd_boolean (*) (bfd *, struct bfd_link_info *)) bfd_false)
#define _bfd_nolink_bfd_link_split_section \
@@ -524,6 +527,10 @@ extern bfd_boolean _bfd_generic_link_add_one_symbol
extern void _bfd_generic_link_just_syms
(asection *, struct bfd_link_info *);
+/* Generic routine that does nothing. */
+extern void _bfd_generic_copy_link_hash_symbol_type
+ (bfd *, struct bfd_link_hash_entry *, struct bfd_link_hash_entry *);
+
/* Generic link routine. */
extern bfd_boolean _bfd_generic_final_link
(bfd *, struct bfd_link_info *);
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 7fe6578..8146ef9 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -415,6 +415,9 @@ extern bfd_boolean _bfd_generic_set_section_contents
((bfd_boolean (*) (bfd *, struct bfd_link_info *)) bfd_false)
#define _bfd_nolink_bfd_link_just_syms \
((void (*) (asection *, struct bfd_link_info *)) bfd_void)
+#define _bfd_nolink_bfd_copy_link_hash_symbol_type \
+ ((void (*) (bfd *, struct bfd_link_hash_entry *, \
+ struct bfd_link_hash_entry *)) bfd_void)
#define _bfd_nolink_bfd_final_link \
((bfd_boolean (*) (bfd *, struct bfd_link_info *)) bfd_false)
#define _bfd_nolink_bfd_link_split_section \
@@ -529,6 +532,10 @@ extern bfd_boolean _bfd_generic_link_add_one_symbol
extern void _bfd_generic_link_just_syms
(asection *, struct bfd_link_info *);
+/* Generic routine that does nothing. */
+extern void _bfd_generic_copy_link_hash_symbol_type
+ (bfd *, struct bfd_link_hash_entry *, struct bfd_link_hash_entry *);
+
/* Generic link routine. */
extern bfd_boolean _bfd_generic_final_link
(bfd *, struct bfd_link_info *);
diff --git a/bfd/libecoff.h b/bfd/libecoff.h
index 0e7ea85..75c65e7 100644
--- a/bfd/libecoff.h
+++ b/bfd/libecoff.h
@@ -315,6 +315,8 @@ extern struct bfd_link_hash_table *_bfd_ecoff_bfd_link_hash_table_create
extern bfd_boolean _bfd_ecoff_bfd_link_add_symbols
(bfd *, struct bfd_link_info *);
#define _bfd_ecoff_bfd_link_just_syms _bfd_generic_link_just_syms
+#define _bfd_ecoff_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
extern bfd_boolean _bfd_ecoff_bfd_final_link
(bfd *, struct bfd_link_info *);
diff --git a/bfd/linker.c b/bfd/linker.c
index 1163a55..76bc70a 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -797,6 +797,17 @@ _bfd_generic_link_just_syms (asection *sec,
sec->output_offset = sec->vma;
}
+/* Copy the type of a symbol assiciated with a linker hast table entry.
+ Override this so that symbols created in linker scripts get their
+ type from the RHS of the assignment.
+ The default implementation does nothing. */
+void
+_bfd_generic_copy_link_hash_symbol_type (bfd *abfd ATTRIBUTE_UNUSED,
+ struct bfd_link_hash_entry * hdest ATTRIBUTE_UNUSED,
+ struct bfd_link_hash_entry * hsrc ATTRIBUTE_UNUSED)
+{
+}
+
/* Add symbols from an object file to the global hash table. */
static bfd_boolean
diff --git a/bfd/mach-o-target.c b/bfd/mach-o-target.c
index c308467..2a30b2e 100644
--- a/bfd/mach-o-target.c
+++ b/bfd/mach-o-target.c
@@ -53,6 +53,8 @@
#define bfd_mach_o_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define bfd_mach_o_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define bfd_mach_o_bfd_link_just_syms _bfd_generic_link_just_syms
+#define bfd_mach_o_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define bfd_mach_o_bfd_final_link _bfd_generic_final_link
#define bfd_mach_o_bfd_link_split_section _bfd_generic_link_split_section
#define bfd_mach_o_set_arch_mach bfd_default_set_arch_mach
diff --git a/bfd/mmo.c b/bfd/mmo.c
index 39cc269..eee27c3 100644
--- a/bfd/mmo.c
+++ b/bfd/mmo.c
@@ -3199,6 +3199,8 @@ mmo_write_object_contents (bfd *abfd)
#define mmo_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define mmo_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define mmo_bfd_link_just_syms _bfd_generic_link_just_syms
+#define mmo_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define mmo_bfd_final_link _bfd_generic_final_link
#define mmo_bfd_link_split_section _bfd_generic_link_split_section
diff --git a/bfd/nlm-target.h b/bfd/nlm-target.h
index 8090190..add6937 100644
--- a/bfd/nlm-target.h
+++ b/bfd/nlm-target.h
@@ -54,6 +54,8 @@
#define nlm_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define nlm_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define nlm_bfd_link_just_syms _bfd_generic_link_just_syms
+#define nlm_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define nlm_bfd_final_link _bfd_generic_final_link
#define nlm_bfd_link_split_section _bfd_generic_link_split_section
diff --git a/bfd/oasys.c b/bfd/oasys.c
index aad22a1..17714ec 100644
--- a/bfd/oasys.c
+++ b/bfd/oasys.c
@@ -1203,6 +1203,8 @@ oasys_sizeof_headers (bfd *abfd ATTRIBUTE_UNUSED,
#define oasys_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define oasys_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define oasys_bfd_link_just_syms _bfd_generic_link_just_syms
+#define oasys_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define oasys_bfd_final_link _bfd_generic_final_link
#define oasys_bfd_link_split_section _bfd_generic_link_split_section
diff --git a/bfd/pef.c b/bfd/pef.c
index 4fcae1e..b7156f0 100644
--- a/bfd/pef.c
+++ b/bfd/pef.c
@@ -57,6 +57,8 @@
#define bfd_pef_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define bfd_pef_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define bfd_pef_bfd_link_just_syms _bfd_generic_link_just_syms
+#define bfd_pef_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define bfd_pef_bfd_final_link _bfd_generic_final_link
#define bfd_pef_bfd_link_split_section _bfd_generic_link_split_section
#define bfd_pef_get_section_contents_in_window _bfd_generic_get_section_contents_in_window
diff --git a/bfd/ppcboot.c b/bfd/ppcboot.c
index 0d9a3bc..853ee88 100644
--- a/bfd/ppcboot.c
+++ b/bfd/ppcboot.c
@@ -480,6 +480,8 @@ ppcboot_bfd_print_private_bfd_data (abfd, farg)
#define ppcboot_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define ppcboot_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define ppcboot_bfd_link_just_syms _bfd_generic_link_just_syms
+#define ppcboot_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define ppcboot_bfd_final_link _bfd_generic_final_link
#define ppcboot_bfd_link_split_section _bfd_generic_link_split_section
#define ppcboot_get_section_contents_in_window \
diff --git a/bfd/som.c b/bfd/som.c
index 0fb8e1d..f259da8 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -6343,6 +6343,8 @@ som_bfd_link_split_section (bfd *abfd ATTRIBUTE_UNUSED, asection *sec)
#define som_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define som_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define som_bfd_link_just_syms _bfd_generic_link_just_syms
+#define som_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define som_bfd_final_link _bfd_generic_final_link
#define som_bfd_gc_sections bfd_generic_gc_sections
#define som_bfd_merge_sections bfd_generic_merge_sections
diff --git a/bfd/srec.c b/bfd/srec.c
index d66fa6d..1251a7e 100644
--- a/bfd/srec.c
+++ b/bfd/srec.c
@@ -1261,6 +1261,8 @@ srec_print_symbol (bfd *abfd,
#define srec_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
#define srec_bfd_link_add_symbols _bfd_generic_link_add_symbols
#define srec_bfd_link_just_syms _bfd_generic_link_just_syms
+#define srec_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
#define srec_bfd_final_link _bfd_generic_final_link
#define srec_bfd_link_split_section _bfd_generic_link_split_section
diff --git a/bfd/targets.c b/bfd/targets.c
index 31ec42f..d9811a8 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -436,6 +436,7 @@ BFD_JUMP_TABLE macros.
. NAME##_bfd_link_hash_table_free, \
. NAME##_bfd_link_add_symbols, \
. NAME##_bfd_link_just_syms, \
+. NAME##_bfd_copy_link_hash_symbol_type, \
. NAME##_bfd_final_link, \
. NAME##_bfd_link_split_section, \
. NAME##_bfd_gc_sections, \
@@ -467,6 +468,12 @@ BFD_JUMP_TABLE macros.
. {* Indicate that we are only retrieving symbol values from this section. *}
. void (*_bfd_link_just_syms) (asection *, struct bfd_link_info *);
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2009-11-21 9:24 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2009-11-21 9:24 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via b740cdc6ca5f28027a4578bfb974cbd01698884e (commit)
via 820c30fe5d9e2c072281690e793ee3f6cdeaed0c (commit)
via 4721f3a9753cf95f08523fab5927400de6d6fef0 (commit)
via 733c345671b25437177c7c98e0bcec71cf21ea8c (commit)
from b36cedcbca4e38c1ec982db3727d8f39815d0005 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit b740cdc6ca5f28027a4578bfb974cbd01698884e
Merge: b36cedcbca4e38c1ec982db3727d8f39815d0005 820c30fe5d9e2c072281690e793ee3f6cdeaed0c
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Sat Nov 21 10:23:58 2009 +0100
Merge remote branch 'gdb/master'
commit 820c30fe5d9e2c072281690e793ee3f6cdeaed0c
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sat Nov 21 05:17:40 2009 +0000
* gdb.cp/cplusfuncs.exp (info_func_regexp, print_addr): Don't
assume new `regsub' syntax available.
commit 4721f3a9753cf95f08523fab5927400de6d6fef0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 21 00:00:33 2009 +0000
*** empty log message ***
commit 733c345671b25437177c7c98e0bcec71cf21ea8c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Fri Nov 20 23:00:04 2009 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.cp/cplusfuncs.exp | 4 ++--
gdb/version.in | 2 +-
4 files changed, 9 insertions(+), 4 deletions(-)
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index d5158f5..0c4c900 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20091120
+#define BFD_VERSION_DATE 20091121
#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/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 6bdf95a..5caae10 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-21 Pedro Alves <pedro@codesourcery.com>
+
+ * gdb.cp/cplusfuncs.exp (info_func_regexp, print_addr): Don't
+ assume new `regsub' syntax available.
+
2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.base/watchpoint-hw-hit-once.exp,
diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp
index 607dceb..092c0ff 100644
--- a/gdb/testsuite/gdb.cp/cplusfuncs.exp
+++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp
@@ -241,7 +241,7 @@ proc info_func_regexp { name demangled } {
global gdb_prompt
send_gdb "info function $name\n"
- set demangled [regsub {\\\(void\\\)} $demangled {\(\)}]
+ regsub {\\\(void\\\)} $demangled {\(\)} demangled
gdb_expect {
-re ".*File .*:\r\n(class |)$demangled\r\n.*$gdb_prompt $" {
pass "info function for \"$name\""
@@ -328,7 +328,7 @@ proc print_addr_2_kfail { name good bad bugid } {
#
proc print_addr { name } {
- set expected [regsub {\(void\)} $name {()}]
+ regsub {\(void\)} $name {()} expected
if {[string first "::" $name] == -1} {
# C function -- must be qutoed
set name "'$name'"
diff --git a/gdb/version.in b/gdb/version.in
index 58cb08d..c12c598 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.0.50.20091120-cvs
+7.0.50.20091121-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2009-11-20 21:06 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2009-11-20 21:06 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via b36cedcbca4e38c1ec982db3727d8f39815d0005 (commit)
via 7aee9d0d66a4c21f081f04a72dec87175393fc56 (commit)
via ec27fce19a16df73e763281ce3a6d0cdb718174e (commit)
via 6dd3967cc8e96057ec06b85b027e02e07f69f249 (commit)
via 9d711e313e2ff01d2db87196f459bd10ee960b73 (commit)
via 7140eec48baabba8bb3b643b2f5969ba8bc59b73 (commit)
from deab07c7cb44665e00edee54058070bb44822761 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit b36cedcbca4e38c1ec982db3727d8f39815d0005
Merge: deab07c7cb44665e00edee54058070bb44822761 7aee9d0d66a4c21f081f04a72dec87175393fc56
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Fri Nov 20 22:06:42 2009 +0100
Merge remote branch 'gdb/master'
commit 7aee9d0d66a4c21f081f04a72dec87175393fc56
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Nov 20 20:01:08 2009 +0000
gdb/
* breakpoint.c (bp_location_compare): Change parameter a to ap and b to
bp. New variables a and b.
(bp_location_compare_for_qsort): Remove.
(update_global_location_list): Use now bp_location_compare.
commit ec27fce19a16df73e763281ce3a6d0cdb718174e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Nov 20 19:57:28 2009 +0000
gdb/
Fix repeated rwatch output.
* amd64-linux-nat.c (amd64_linux_dr_set, amd64_linux_dr_set_control)
(amd64_linux_dr_set_addr, amd64_linux_dr_reset_addr)
(amd64_linux_dr_get_status): New comments.
(amd64_linux_dr_unset_status): New function.
(_initialize_amd64_linux_nat): Install it.
* i386-linux-nat.c (i386_linux_dr_get, i386_linux_dr_set)
(i386_linux_dr_set_control, i386_linux_dr_set_addr)
(i386_linux_dr_reset_addr, i386_linux_dr_get_status): New comments.
(i386_linux_dr_unset_status): New function.
(_initialize_i386_linux_nat): Install it.
* i386-nat.c (I386_DR_WATCH_MASK): New macro.
(I386_DR_WATCH_HIT): Use I386_DR_WATCH_MASK.
(i386_insert_aligned_watchpoint): Call i386_dr_low.unset_status.
* i386-nat.h (struct i386_dr_low_type): Extend comments for
set_control, set_addr, reset_addr and get_status. New unset_status.
* breakpoint.c (update_watchpoint): Extend the comment.
gdb/testsuite/
* gdb.base/watchpoint-hw-hit-once.exp,
gdb.base/watchpoint-hw-hit-once.c: New.
commit 6dd3967cc8e96057ec06b85b027e02e07f69f249
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Nov 20 19:52:08 2009 +0000
gdb/
2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
Pedro Alves <pedro@codesourcery.com>
Fix reordered watchpoints triggered in other threads during all-stop.
* linux-nat.c (resume_callback, linux_nat_resume): Clear
stopped_by_watchpoint.
(save_sigtrap, linux_nat_stopped_by_watchpoint)
(linux_nat_stopped_data_address): New.
(stop_wait_callback, linux_nat_filter_event): Call save_sigtrap.
(linux_nat_add_target): Install linux_nat_stopped_by_watchpoint
and linux_nat_stopped_data_address.
* linux-nat.h (struct lwp_info): New fields stopped_by_watchpoint,
stopped_data_address_p and stopped_data_address.
gdb/testsuite/
2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.base/watchthreads-reorder.exp,
gdb.base/watchthreads-reorder.c: New.
commit 9d711e313e2ff01d2db87196f459bd10ee960b73
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Nov 20 19:48:45 2009 +0000
gdb/
2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
Pedro Alves <pedro@codesourcery.com>
Fix reordered watchpoints triggered in other threads during all-stop.
* linux-nat.c (resume_callback, linux_nat_resume): Clear
stopped_by_watchpoint.
(save_sigtrap, linux_nat_stopped_by_watchpoint)
(linux_nat_stopped_data_address): New.
(stop_wait_callback, linux_nat_filter_event): Call save_sigtrap.
(linux_nat_add_target): Install linux_nat_stopped_by_watchpoint
and linux_nat_stopped_data_address.
* linux-nat.h (struct lwp_info): New fields stopped_by_watchpoint,
stopped_data_address_p and stopped_data_address.
gdb/testsuite/
2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.base/watchthreads-reorder.exp,
gdb.base/watchthreads-reorder.c: New.
commit 7140eec48baabba8bb3b643b2f5969ba8bc59b73
Author: Michael Snyder <msnyder@specifix.com>
Date: Fri Nov 20 17:23:38 2009 +0000
2009-10-25 Michael Snyder <msnyder@vmware.com>
* target.h (struct target_ops): New methods to_get_bookmark
and to_goto_bookmark.
(target_get_bookmark): New macro.
(target_goto_bookmark): New macro.
* target.c (dummy_get_bookmark): New function, default implementation.
(dummy_goto_bookmark): New function, default implementation.
(update_current_target): Inherit new methods.
* record.c (record_get_bookmark): New function.
(record_goto_bookmark): New function.
(init_record_ops): Set to_get_bookmark and to_goto_bookmark methods.
* reverse.c (struct bookmark): New type.
(save_bookmark_command): New function (command).
(delete_bookmark_command): New function (command).
(goto_bookmark_command): New function (command).
(bookmarks_info): New function (command).
(_initialize_reverse): Add new bookmark commands.
* command.h (enum command_class): Add class_bookmark.
* NEWS: Mention bookmark commands.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 63 ++++
gdb/amd64-linux-nat.c | 30 ++
gdb/breakpoint.c | 62 +++-
gdb/command.h | 4 +-
gdb/i386-linux-nat.c | 31 ++
gdb/i386-nat.c | 9 +-
gdb/i386-nat.h | 12 +-
gdb/linux-nat.c | 82 +++++-
gdb/linux-nat.h | 12 +
gdb/record.c | 157 +++++++++
gdb/reverse.c | 235 +++++++++++++
gdb/target.c | 19 +
gdb/target.h | 14 +-
gdb/testsuite/ChangeLog | 10 +
gdb/testsuite/gdb.base/watchpoint-hw-hit-once.c | 34 ++
gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp | 43 +++
gdb/testsuite/gdb.threads/watchthreads-reorder.c | 369 ++++++++++++++++++++
gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 103 ++++++
18 files changed, 1264 insertions(+), 25 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/watchpoint-hw-hit-once.c
create mode 100644 gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp
create mode 100644 gdb/testsuite/gdb.threads/watchthreads-reorder.c
create mode 100644 gdb/testsuite/gdb.threads/watchthreads-reorder.exp
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a89482d..a74e149 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,66 @@
+2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.c (bp_location_compare): Change parameter a to ap and b to
+ bp. New variables a and b.
+ (bp_location_compare_for_qsort): Remove.
+ (update_global_location_list): Use now bp_location_compare.
+
+2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix repeated rwatch output.
+ * amd64-linux-nat.c (amd64_linux_dr_set, amd64_linux_dr_set_control)
+ (amd64_linux_dr_set_addr, amd64_linux_dr_reset_addr)
+ (amd64_linux_dr_get_status): New comments.
+ (amd64_linux_dr_unset_status): New function.
+ (_initialize_amd64_linux_nat): Install it.
+ * i386-linux-nat.c (i386_linux_dr_get, i386_linux_dr_set)
+ (i386_linux_dr_set_control, i386_linux_dr_set_addr)
+ (i386_linux_dr_reset_addr, i386_linux_dr_get_status): New comments.
+ (i386_linux_dr_unset_status): New function.
+ (_initialize_i386_linux_nat): Install it.
+ * i386-nat.c (I386_DR_WATCH_MASK): New macro.
+ (I386_DR_WATCH_HIT): Use I386_DR_WATCH_MASK.
+ (i386_insert_aligned_watchpoint): Call i386_dr_low.unset_status.
+ * i386-nat.h (struct i386_dr_low_type): Extend comments for
+ set_control, set_addr, reset_addr and get_status. New unset_status.
+ * breakpoint.c (update_watchpoint): Extend the comment.
+
+2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ Fix reordered watchpoints triggered in other threads during all-stop.
+
+ * linux-nat.c (resume_callback, linux_nat_resume): Clear
+ stopped_by_watchpoint.
+ (save_sigtrap, linux_nat_stopped_by_watchpoint)
+ (linux_nat_stopped_data_address): New.
+ (stop_wait_callback, linux_nat_filter_event): Call save_sigtrap.
+ (linux_nat_add_target): Install linux_nat_stopped_by_watchpoint
+ and linux_nat_stopped_data_address.
+ * linux-nat.h (struct lwp_info): New fields stopped_by_watchpoint,
+ stopped_data_address_p and stopped_data_address.
+
+2009-11-20 Michael Snyder <msnyder@vmware.com>
+
+ * target.h (struct target_ops): New methods to_get_bookmark
+ and to_goto_bookmark.
+ (target_get_bookmark): New macro.
+ (target_goto_bookmark): New macro.
+ * target.c (dummy_get_bookmark): New function, default implementation.
+ (dummy_goto_bookmark): New function, default implementation.
+ (update_current_target): Inherit new methods.
+ * record.c (record_get_bookmark): New function.
+ (record_goto_bookmark): New function.
+ (init_record_ops): Set to_get_bookmark and to_goto_bookmark methods.
+ * reverse.c (struct bookmark): New type.
+ (save_bookmark_command): New function (command).
+ (delete_bookmark_command): New function (command).
+ (goto_bookmark_command): New function (command).
+ (bookmarks_info): New function (command).
+ (_initialize_reverse): Add new bookmark commands.
+ * command.h (enum command_class): Add class_bookmark.
+ * NEWS: Mention bookmark commands.
+
2009-11-20 Pedro Alves <pedro@codesourcery.com>
* breakpoint.c (update_global_location_list): Fix duplicate
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c
index 7d8461c..9ccd3b2 100644
--- a/gdb/amd64-linux-nat.c
+++ b/gdb/amd64-linux-nat.c
@@ -270,6 +270,8 @@ amd64_linux_dr_get (ptid_t ptid, int regnum)
return value;
}
+/* Set debug register REGNUM to VALUE in only the one LWP of PTID. */
+
static void
amd64_linux_dr_set (ptid_t ptid, int regnum, unsigned long value)
{
@@ -286,6 +288,8 @@ amd64_linux_dr_set (ptid_t ptid, int regnum, unsigned long value)
perror_with_name (_("Couldn't write debug register"));
}
+/* Set DR_CONTROL to ADDR in all LWPs of LWP_LIST. */
+
static void
amd64_linux_dr_set_control (unsigned long control)
{
@@ -297,6 +301,8 @@ amd64_linux_dr_set_control (unsigned long control)
amd64_linux_dr_set (ptid, DR_CONTROL, control);
}
+/* Set address REGNUM (zero based) to ADDR in all LWPs of LWP_LIST. */
+
static void
amd64_linux_dr_set_addr (int regnum, CORE_ADDR addr)
{
@@ -310,18 +316,41 @@ amd64_linux_dr_set_addr (int regnum, CORE_ADDR addr)
amd64_linux_dr_set (ptid, DR_FIRSTADDR + regnum, addr);
}
+/* Set address REGNUM (zero based) to zero in all LWPs of LWP_LIST. */
+
static void
amd64_linux_dr_reset_addr (int regnum)
{
amd64_linux_dr_set_addr (regnum, 0);
}
+/* Get DR_STATUS from only the one LWP of INFERIOR_PTID. */
+
static unsigned long
amd64_linux_dr_get_status (void)
{
return amd64_linux_dr_get (inferior_ptid, DR_STATUS);
}
+/* Unset MASK bits in DR_STATUS in all LWPs of LWP_LIST. */
+
+static void
+amd64_linux_dr_unset_status (unsigned long mask)
+{
+ struct lwp_info *lp;
+ ptid_t ptid;
+
+ ALL_LWPS (lp, ptid)
+ {
+ unsigned long value;
+
+ value = amd64_linux_dr_get (ptid, DR_STATUS);
+ value &= ~mask;
+ amd64_linux_dr_set (ptid, DR_STATUS, value);
+ }
+}
+
+
static void
amd64_linux_new_thread (ptid_t ptid)
{
@@ -672,6 +701,7 @@ _initialize_amd64_linux_nat (void)
i386_dr_low.set_addr = amd64_linux_dr_set_addr;
i386_dr_low.reset_addr = amd64_linux_dr_reset_addr;
i386_dr_low.get_status = amd64_linux_dr_get_status;
+ i386_dr_low.unset_status = amd64_linux_dr_unset_status;
i386_set_debug_register_length (8);
/* Override the GNU/Linux inferior startup hook. */
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 4849d8f..bca923e 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -993,7 +993,46 @@ fetch_watchpoint_value (struct expression *exp, struct value **valp,
- Update the list of values that must be watched in B->loc.
If the watchpoint disposition is disp_del_at_next_stop, then do nothing.
- If this is local watchpoint that is out of scope, delete it. */
+ If this is local watchpoint that is out of scope, delete it.
+
+ Even with `set breakpoint always-inserted on' the watchpoints are removed
+ + inserted on each stop here. Normal breakpoints must never be removed
+ because they might be missed by a running thread when debugging in non-stop
+ mode. On the other hand, hardware watchpoints (is_hardware_watchpoint;
+ processed here) are specific to each LWP since they are stored in each LWP's
+ hardware debug registers. Therefore, such LWP must be stopped first in
+ order to be able to modify its hardware watchpoints.
+
+ Hardware watchpoints must be reset exactly once after being presented to the
+ user. It cannot be done sooner, because it would reset the data used to
+ present the watchpoint hit to the user. And it must not be done later
+ because it could display the same single watchpoint hit during multiple GDB
+ stops. Note that the latter is relevant only to the hardware watchpoint
+ types bp_read_watchpoint and bp_access_watchpoint. False hit by
+ bp_hardware_watchpoint is not user-visible - its hit is suppressed if the
+ memory content has not changed.
+
+ The following constraints influence the location where we can reset hardware
+ watchpoints:
+
+ * target_stopped_by_watchpoint and target_stopped_data_address are called
+ several times when GDB stops.
+
+ [linux]
+ * Multiple hardware watchpoints can be hit at the same time, causing GDB to
+ stop. GDB only presents one hardware watchpoint hit at a time as the
+ reason for stopping, and all the other hits are presented later, one after
+ the other, each time the user requests the execution to be resumed.
+ Execution is not resumed for the threads still having pending hit event
+ stored in LWP_INFO->STATUS. While the watchpoint is already removed from
+ the inferior on the first stop the thread hit event is kept being reported
+ from its cached value by linux_nat_stopped_data_address until the real
+ thread resume happens after the watchpoint gets presented and thus its
+ LWP_INFO->STATUS gets reset.
+
+ Therefore the hardware watchpoint hit can get safely reset on the watchpoint
+ removal from inferior. */
+
static void
update_watchpoint (struct breakpoint *b, int reparse)
{
@@ -8073,15 +8112,17 @@ breakpoint_auto_delete (bpstat bs)
}
}
-/* A comparison function for bp_location A and B being interfaced to qsort.
+/* A comparison function for bp_location AP and BP being interfaced to qsort.
Sort elements primarily by their ADDRESS (no matter what does
breakpoint_address_is_meaningful say for its OWNER), secondarily by ordering
first bp_permanent OWNERed elements and terciarily just ensuring the array
is sorted stable way despite qsort being an instable algorithm. */
static int
-bp_location_compare (struct bp_location *a, struct bp_location *b)
+bp_location_compare (const void *ap, const void *bp)
{
+ struct bp_location *a = *(void **) ap;
+ struct bp_location *b = *(void **) bp;
int a_perm = a->owner->enable_state == bp_permanent;
int b_perm = b->owner->enable_state == bp_permanent;
@@ -8102,17 +8143,6 @@ bp_location_compare (struct bp_location *a, struct bp_location *b)
return (a > b) - (a < b);
}
-/* Interface bp_location_compare as the COMPAR parameter of qsort function. */
-
-static int
-bp_location_compare_for_qsort (const void *ap, const void *bp)
-{
- struct bp_location *a = *(void **) ap;
- struct bp_location *b = *(void **) bp;
-
- return bp_location_compare (a, b);
-}
-
/* Set bp_location_placed_address_before_address_max and
bp_location_shadow_len_after_address_max according to the current content of
the bp_location array. */
@@ -8196,7 +8226,7 @@ update_global_location_list (int should_insert)
for (loc = b->loc; loc; loc = loc->next)
*locp++ = loc;
qsort (bp_location, bp_location_count, sizeof (*bp_location),
- bp_location_compare_for_qsort);
+ bp_location_compare);
bp_location_target_extensions_update ();
@@ -10142,6 +10172,8 @@ is prefixed with \"server \".\n\n\
Convenience variable \"$bpnum\" contains the number of the last\n\
breakpoint set."));
+ add_info_alias ("b", "breakpoints", 1);
+
if (xdb_commands)
add_com ("lb", class_breakpoint, breakpoints_info, _("\
Status of user-settable breakpoints, or breakpoint number NUMBER.\n\
diff --git a/gdb/command.h b/gdb/command.h
index 1a6bec4..8d9f0ca 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -32,8 +32,8 @@ enum command_class
/* Classes of commands */
no_class = -1, class_run = 0, class_vars, class_stack,
class_files, class_support, class_info, class_breakpoint, class_trace,
- class_alias, class_obscure, class_user, class_maintenance,
- class_pseudo, class_tui, class_xdb
+ class_alias, class_bookmark, class_obscure, class_maintenance,
+ class_pseudo, class_tui, class_user, class_xdb
};
/* FIXME: cagney/2002-03-17: Once cmd_type() has been removed, ``enum
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index fe848ff..186a2fd 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -586,6 +586,8 @@ i386_linux_store_inferior_registers (struct target_ops *ops,
static unsigned long i386_linux_dr[DR_CONTROL + 1];
+/* Get debug register REGNUM value from only the one LWP of PTID. */
+
static unsigned long
i386_linux_dr_get (ptid_t ptid, int regnum)
{
@@ -614,6 +616,8 @@ i386_linux_dr_get (ptid_t ptid, int regnum)
return value;
}
+/* Set debug register REGNUM to VALUE in only the one LWP of PTID. */
+
static void
i386_linux_dr_set (ptid_t ptid, int regnum, unsigned long value)
{
@@ -630,6 +634,8 @@ i386_linux_dr_set (ptid_t ptid, int regnum, unsigned long value)
perror_with_name (_("Couldn't write debug register"));
}
+/* Set DR_CONTROL to ADDR in all LWPs of LWP_LIST. */
+
static void
i386_linux_dr_set_control (unsigned long control)
{
@@ -641,6 +647,8 @@ i386_linux_dr_set_control (unsigned long control)
i386_linux_dr_set (ptid, DR_CONTROL, control);
}
+/* Set address REGNUM (zero based) to ADDR in all LWPs of LWP_LIST. */
+
static void
i386_linux_dr_set_addr (int regnum, CORE_ADDR addr)
{
@@ -654,18 +662,40 @@ i386_linux_dr_set_addr (int regnum, CORE_ADDR addr)
i386_linux_dr_set (ptid, DR_FIRSTADDR + regnum, addr);
}
+/* Set address REGNUM (zero based) to zero in all LWPs of LWP_LIST. */
+
static void
i386_linux_dr_reset_addr (int regnum)
{
i386_linux_dr_set_addr (regnum, 0);
}
+/* Get DR_STATUS from only the one LWP of INFERIOR_PTID. */
+
static unsigned long
i386_linux_dr_get_status (void)
{
return i386_linux_dr_get (inferior_ptid, DR_STATUS);
}
+/* Unset MASK bits in DR_STATUS in all LWPs of LWP_LIST. */
+
+static void
+i386_linux_dr_unset_status (unsigned long mask)
+{
+ struct lwp_info *lp;
+ ptid_t ptid;
+
+ ALL_LWPS (lp, ptid)
+ {
+ unsigned long value;
+
+ value = i386_linux_dr_get (ptid, DR_STATUS);
+ value &= ~mask;
+ i386_linux_dr_set (ptid, DR_STATUS, value);
+ }
+}
+
static void
i386_linux_new_thread (ptid_t ptid)
{
@@ -837,6 +867,7 @@ _initialize_i386_linux_nat (void)
i386_dr_low.set_addr = i386_linux_dr_set_addr;
i386_dr_low.reset_addr = i386_linux_dr_reset_addr;
i386_dr_low.get_status = i386_linux_dr_get_status;
+ i386_dr_low.unset_status = i386_linux_dr_unset_status;
i386_set_debug_register_length (4);
/* Override the default ptrace resume method. */
diff --git a/gdb/i386-nat.c b/gdb/i386-nat.c
index eb16687..edb78bf 100644
--- a/gdb/i386-nat.c
+++ b/gdb/i386-nat.c
@@ -137,8 +137,11 @@ struct i386_dr_low_type i386_dr_low;
#define I386_DR_GET_RW_LEN(i) \
((dr_control_mirror >> (DR_CONTROL_SHIFT + DR_CONTROL_SIZE * (i))) & 0x0f)
+/* Mask that this I'th watchpoint has triggered. */
+#define I386_DR_WATCH_MASK(i) (1 << (i))
+
/* Did the watchpoint whose address is in the I'th register break? */
-#define I386_DR_WATCH_HIT(i) (dr_status_mirror & (1 << (i)))
+#define I386_DR_WATCH_HIT(i) (dr_status_mirror & I386_DR_WATCH_MASK (i))
/* A macro to loop over all debug registers. */
#define ALL_DEBUG_REGISTERS(i) for (i = 0; i < DR_NADDR; i++)
@@ -358,6 +361,10 @@ i386_insert_aligned_watchpoint (CORE_ADDR addr, unsigned len_rw_bits)
i386_dr_low.set_addr (i, addr);
i386_dr_low.set_control (dr_control_mirror);
+ /* Only a sanity check for leftover bits (set possibly only by inferior). */
+ if (i386_dr_low.unset_status)
+ i386_dr_low.unset_status (I386_DR_WATCH_MASK (i));
+
return 0;
}
diff --git a/gdb/i386-nat.h b/gdb/i386-nat.h
index f49b9f6..892a804 100644
--- a/gdb/i386-nat.h
+++ b/gdb/i386-nat.h
@@ -49,16 +49,19 @@ extern void i386_use_watchpoints (struct target_ops *);
functions are:
set_control -- set the debug control (DR7)
- register to a given value
+ register to a given value for all LWPs
set_addr -- put an address into one debug
- register
+ register for all LWPs
reset_addr -- reset the address stored in
- one debug register
+ one debug register for all LWPs
get_status -- return the value of the debug
- status (DR6) register.
+ status (DR6) register for current LWP
+
+ unset_status -- unset the specified bits of the debug
+ status (DR6) register for all LWPs
Additionally, the native file should set the debug_register_length
field to 4 or 8 depending on the number of bytes used for
@@ -70,6 +73,7 @@ struct i386_dr_low_type
void (*set_addr) (int, CORE_ADDR);
void (*reset_addr) (int);
unsigned long (*get_status) (void);
+ void (*unset_status) (unsigned long);
int debug_register_length;
};
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 95feca6..c0afecd 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -1882,6 +1882,7 @@ resume_callback (struct lwp_info *lp, void *data)
lp->stopped = 0;
lp->step = 0;
memset (&lp->siginfo, 0, sizeof (lp->siginfo));
+ lp->stopped_by_watchpoint = 0;
}
else if (lp->stopped && debug_linux_nat)
fprintf_unfiltered (gdb_stdlog, "RC: Not resuming sibling %s (has pending)\n",
@@ -2019,6 +2020,7 @@ linux_nat_resume (struct target_ops *ops,
linux_ops->to_resume (linux_ops, ptid, step, signo);
memset (&lp->siginfo, 0, sizeof (lp->siginfo));
+ lp->stopped_by_watchpoint = 0;
if (debug_linux_nat)
fprintf_unfiltered (gdb_stdlog,
@@ -2570,6 +2572,74 @@ maybe_clear_ignore_sigint (struct lwp_info *lp)
}
}
+/* Fetch the possible triggered data watchpoint info and store it in
+ LP.
+
+ On some archs, like x86, that use debug registers to set
+ watchpoints, it's possible that the way to know which watched
+ address trapped, is to check the register that is used to select
+ which address to watch. Problem is, between setting the watchpoint
+ and reading back which data address trapped, the user may change
+ the set of watchpoints, and, as a consequence, GDB changes the
+ debug registers in the inferior. To avoid reading back a stale
+ stopped-data-address when that happens, we cache in LP the fact
+ that a watchpoint trapped, and the corresponding data address, as
+ soon as we see LP stop with a SIGTRAP. If GDB changes the debug
+ registers meanwhile, we have the cached data we can rely on. */
+
+static void
+save_sigtrap (struct lwp_info *lp)
+{
+ struct cleanup *old_chain;
+
+ if (linux_ops->to_stopped_by_watchpoint == NULL)
+ {
+ lp->stopped_by_watchpoint = 0;
+ return;
+ }
+
+ old_chain = save_inferior_ptid ();
+ inferior_ptid = lp->ptid;
+
+ lp->stopped_by_watchpoint = linux_ops->to_stopped_by_watchpoint ();
+
+ if (lp->stopped_by_watchpoint)
+ {
+ if (linux_ops->to_stopped_data_address != NULL)
+ lp->stopped_data_address_p =
+ linux_ops->to_stopped_data_address (¤t_target,
+ &lp->stopped_data_address);
+ else
+ lp->stopped_data_address_p = 0;
+ }
+
+ do_cleanups (old_chain);
+}
+
+/* See save_sigtrap. */
+
+static int
+linux_nat_stopped_by_watchpoint (void)
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2009-11-20 15:57 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2009-11-20 15:57 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via deab07c7cb44665e00edee54058070bb44822761 (commit)
via 4fa96a6246089e051109b2845caf5ad928594519 (commit)
via 5f00af2b7ef80b99e6d42c3bd8ba662149798a84 (commit)
via 79677e50c88ffe5bb2f423fc8eac52710ef4ceac (commit)
via 30cd80690571001d05bbd50a23d9a3dbe7fd3cb9 (commit)
via 6710f02bdc668a1bd821e76e118978368f1eab38 (commit)
via 559da5e56b9b3dc0f3446f2fc01758dd23670d45 (commit)
via 74faf7359b6281a4888a5cc967961fd2af722fe4 (commit)
via ecc21982887ab027bcf0c8ca5f5141b15d268d96 (commit)
via cbf7ffc19ba9cc028c2ecbe5877b8373276e82e3 (commit)
via b6c6670b002b19dd359d6d6535fdeed2e95fa212 (commit)
via 49a38cb1f9ffded0d1c8015db1308042cfea8952 (commit)
via 06a2e162a41485a0053ba22a1c81ad075d2cadde (commit)
via d2e12a09010664167dd8dda2be6887c8deb6a648 (commit)
via a22752149e5845d199fd1b519329d19e93c9f468 (commit)
via d742a1bc4b2d920dd9bac64888ac60a94dde5cc8 (commit)
via 47aeaa687523a9bd67b92929554c845d8e64517b (commit)
via c9251cba75334cbbf40faba73d5fd731bef5804c (commit)
via bec70b9c531808e35c1e943207bfbfba0a9eaa87 (commit)
via 0c1bf49c223ce32ae6c43cb186bb09d91d37cf24 (commit)
via c72bcd98b02794a104ffebf899a2b72d50c256c9 (commit)
via a0b3f377c27c23f882f45e632541ea9cd5a2ac4c (commit)
via 35a34cb48b58adb0b1bf81f92d8f243ba90b09bb (commit)
via cccc1e5b3fc0769605faefdf9b6c3d41497da905 (commit)
via 45d2e270332502f42b0a911765ed789cd4fae377 (commit)
via fff865fab85096fc200c3f4a87f965001b84eca8 (commit)
via 2d663e679c7a96ed869f0850e07d27d8260b8b82 (commit)
via 44bdc36a31f16c3319bd8775d7c34edf042a467f (commit)
via 616ecf1c358cb3188416df366a14c37601bef541 (commit)
via 8b0afccc4c3a2a22781a527ec1427336ce310406 (commit)
via be194862fccee601c811fedfcbdcb2808a112bab (commit)
via b56e84582d043f73818567dff227baab3de29450 (commit)
via 1d3d67c09ca9622ac0c6031c92716e4be9864cf8 (commit)
via 3a420c9cee6bcca28d29623b28fba58bcae989da (commit)
via 22b6ad0e62b490f18f09ce3e73b45e451d5e1280 (commit)
from 1249d0cb4c4a02496397fab2a0ac8160b5b11c8a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit deab07c7cb44665e00edee54058070bb44822761
Merge: 1249d0cb4c4a02496397fab2a0ac8160b5b11c8a 4fa96a6246089e051109b2845caf5ad928594519
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Fri Nov 20 16:57:33 2009 +0100
Merge remote branch 'gdb/master'
commit 4fa96a6246089e051109b2845caf5ad928594519
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Nov 20 14:51:44 2009 +0000
* breakpoint.c (update_global_location_list): Fix duplicate
locations detection.
commit 5f00af2b7ef80b99e6d42c3bd8ba662149798a84
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Nov 20 13:08:15 2009 +0000
* infrun.c (handle_inferior_event): Hardware hatchpoint traps are
never random signals.
* breakpoint.c (update_global_location_list): Always delete
immediately delete hardware watchpoint locations and other
locations whose target address isn't meaningful. Update comment
explaining the hazard of moribund locations.
commit 79677e50c88ffe5bb2f423fc8eac52710ef4ceac
Author: Paolo Bonzini <bonzini@gnu.org>
Date: Fri Nov 20 10:12:01 2009 +0000
sync config with gcc:
2009-10-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* acx.m4 (ACX_CHECK_CYGWIN_CAT_WORKS): Use = with test.
commit 30cd80690571001d05bbd50a23d9a3dbe7fd3cb9
Author: Paolo Bonzini <bonzini@gnu.org>
Date: Fri Nov 20 10:10:08 2009 +0000
2009-11-20 Paolo Bonzini <bonzini@gnu.org>
* config.guess: Sync with upstream and gcc.
* config.sub: Sync with upstream and gcc.
commit 6710f02bdc668a1bd821e76e118978368f1eab38
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 20 00:00:33 2009 +0000
*** empty log message ***
commit 559da5e56b9b3dc0f3446f2fc01758dd23670d45
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Nov 19 23:00:05 2009 +0000
daily update
commit 74faf7359b6281a4888a5cc967961fd2af722fe4
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Nov 19 22:45:55 2009 +0000
* ada-lang.c (discrete_type_p): TYPE_CODE_BOOL is also a discrete type.
commit ecc21982887ab027bcf0c8ca5f5141b15d268d96
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Nov 19 22:44:32 2009 +0000
* completer.c (complete_line_internal): Make sure the command
completer is not NULL before calling it.
commit cbf7ffc19ba9cc028c2ecbe5877b8373276e82e3
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Nov 19 22:42:48 2009 +0000
* ada-lang.c (packed_array_type): Rename to...
(constrained_packed_array_type): ...and update comment.
(decode_packed_array, decode_constrained_packed_array): Ditto.
(decode_packed_array_type, decode_constrained_packed_array_type):
Ditto.
(ada_is_constrained_packed_array_type): New function.
(ada_is_unconstrained_packed_array_type): New function.
(decode_packed_array_bitsize): New function, extracted from
decode_packed_array_type.
(ada_type_of_array): Add support for unconstrained packed arrays.
(ada_coerce_to_simple_array_ptr, ada_coerce_to_simple_array)
(ada_array_bound_from_type, ada_array_bound, ada_array_length)
(ada_prefer_type, to_fixed_array_type, ada_evaluate_subexp): Resync.
* ada-lang.h (ada_is_packed_array_type,
ada_is_constrained_packed_array_type): Renaming.
* ada-valprint.c (ada_val_print_1): Resync.
* ada-typeprint.c (print_array_type, ada_print_type): Resync.
commit b6c6670b002b19dd359d6d6535fdeed2e95fa212
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Nov 19 22:37:35 2009 +0000
Wrong function used to perform address addition/subtraction.
* ada-lang.c (ada_type_match): Stop making TYPE_CODE_VOID
a wildcard matching any type. For types that we don't already
handle specifically, make sure that both types have the same code.
commit 49a38cb1f9ffded0d1c8015db1308042cfea8952
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Nov 19 22:36:05 2009 +0000
* ada-lang.c (ada_decode): Add handling of "TB" suffixes for
task bodies.
commit 06a2e162a41485a0053ba22a1c81ad075d2cadde
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Nov 19 22:34:49 2009 +0000
* ada-lang.c (ada_remove_Xbn_suffix): New function.
(find_old_style_renaming_symbol): Add handling for function suffixes
present in the name of various procedures.
Do not overwrite the function symbol's name.
commit d2e12a09010664167dd8dda2be6887c8deb6a648
Author: Ben Elliston <bje@au.ibm.com>
Date: Thu Nov 19 21:17:04 2009 +0000
* pex-unix.c (pex_child_error): Define writeerr macro to avoid
unused result warnings from write(3) calls. Undefine writeerr
after all uses.
commit a22752149e5845d199fd1b519329d19e93c9f468
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Nov 19 17:02:44 2009 +0000
* breakpoint.c (breakpoint_address_bits): Visit all locations'
gdbarchs, not the breakpoint's gdbarch.
commit d742a1bc4b2d920dd9bac64888ac60a94dde5cc8
Author: H.J. Lu <hjl@lucon.org>
Date: Thu Nov 19 15:26:41 2009 +0000
Allow lock on cmpxch16b.
gas/testsuite/
2009-11-19 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/lock-1.s: Add cmpxchg16b test.
* gas/i386/lock-1-intel.d: Updated.
* gas/i386/lock-1.d: Likewise.
opcodes/
2009-11-19 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.tbl: Add IsLockable to cmpxch16b.
* i386-tbl.h: Regenerated.
commit 47aeaa687523a9bd67b92929554c845d8e64517b
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Nov 19 14:07:10 2009 +0000
PR binutils/10924
* gas/arm/arch4t-eabi.d: Restore previous expected dissambly of
instructions using Immediate Offset addressing with an offset of
zero.
* gas/arm/arch4t.d: Likewise.
* gas/arm/arm7t.d: Likewise.
* gas/arm/xscale.d: Likewise.
* gas/arm/wince-inst.d: Remove 'p' suffix from cmp, cmn, teq and
tst instructions.
PR binutils/10924
* arm-dis.c (print_insn_arm): Do not print an offset of zero when
decoding Immediaate Offset addressing.
commit c9251cba75334cbbf40faba73d5fd731bef5804c
Author: Tristan Gingold <gingold@adacore.com>
Date: Thu Nov 19 10:06:03 2009 +0000
2009-11-19 Tristan Gingold <gingold@adacore.com>
* coff-rs6000.c (rs6000coff_vec): Use generic routines instead of
hard-coded casts.
(pmac_xcoff_vec): Ditto.
* coff64-rs6000.c (rs6000coff64_vec): Ditto.
(aix5coff64_vec): Ditto.
commit bec70b9c531808e35c1e943207bfbfba0a9eaa87
Author: spop <spop>
Date: Thu Nov 19 07:08:39 2009 +0000
2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
opcodes/
PR binutils/10973
* i386-dis.c (get_vex_imm8): Do not increment codep.
Avoid incrementing bytes_before_imm when OP_E_memory
has already forwarded the codep pointer.
(OP_EX_VexW): Increment codep to skip mod/rm byte.
gas/testsuite/
* gas/i386/x86-64-xop.d: Update patterns.
commit 0c1bf49c223ce32ae6c43cb186bb09d91d37cf24
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 19 00:00:03 2009 +0000
*** empty log message ***
commit c72bcd98b02794a104ffebf899a2b72d50c256c9
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Nov 18 23:00:05 2009 +0000
daily update
commit a0b3f377c27c23f882f45e632541ea9cd5a2ac4c
Author: Vladimir Prus <vladimir@codesourcery.com>
Date: Wed Nov 18 20:42:34 2009 +0000
* cli/cli-script.c (process_next_line): Recognize 'end'
even when the line has leading space and we're not parsing
commands.
commit 35a34cb48b58adb0b1bf81f92d8f243ba90b09bb
Author: spop <spop>
Date: Wed Nov 18 20:28:58 2009 +0000
2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
gas/
* config/tc-i386.c (cpu_arch): Remove cvt16.
(md_show_usage): Same.
* doc/c-i386.texi: Same.
gas/testsuite/
* gas/i386/cvt16.d: Removed.
* gas/i386/cvt16.s: Removed.
* gas/i386/x86-64-cvt16.d: Removed.
* gas/i386/x86-64-cvt16.s: Removed.
* gas/i386/i386.exp: Remove cvt16 and x86-64-cvt16 tests.
opcodes/
* i386-dis.c (VEX_LEN_XOP_08_A0): Removed.
(VEX_LEN_XOP_08_A1): Removed.
(xop_table): Remove entries for VEX_LEN_XOP_08_A0 and
VEX_LEN_XOP_08_A1.
(vex_len_table): Same.
* i386-gen.c (CPU_CVT16_FLAGS): Removed.
(cpu_flags): Remove field for CpuCVT16.
* i386-opc.h (CpuCVT16): Removed.
(i386_cpu_flags): Remove bitfield cpucvt16.
(i386-opc.tbl): Remove CVT16 instructions.
* i386-init.h: Regenerated.
* i386-tbl.h: Regenerated.
commit cccc1e5b3fc0769605faefdf9b6c3d41497da905
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Nov 18 16:28:42 2009 +0000
* symtab.c (symbol_set_names): Correctly set 'name' on symbol when
lookup name differs.
commit 45d2e270332502f42b0a911765ed789cd4fae377
Author: Paul Brook <paul@codesourcery.com>
Date: Wed Nov 18 15:48:59 2009 +0000
2009-11-18 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (arm_fpus): Add fpv4-sp-d16.
(aeabi_set_public_attributes): Correctly mark VFPv3xD.
include/opcode/
* arm.h (FPU_VFP_V4_SP_D16, FPU_ARCH_VFP_V4_SP_D16): Define.
commit fff865fab85096fc200c3f4a87f965001b84eca8
Author: Tristan Gingold <gingold@adacore.com>
Date: Wed Nov 18 14:10:44 2009 +0000
2009-11-18 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_oso_symfile): Fix typo. Add comments.
commit 2d663e679c7a96ed869f0850e07d27d8260b8b82
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Nov 18 12:42:51 2009 +0000
bfd/
* bfd-in.h (_bfd_elf_ppc_at_tls_transform): Declare.
* bfd-in2.h: Regenerate.
* elf64-ppc.c (ppc64_elf_relocate_section): Move code for R_PPC64_TLS
insn optimisation to..
* elf32-ppc.c (_bfd_elf_ppc_at_tls_transform): ..here. New function.
(ppc_elf_relocate_section): Use it.
gas/
* config/tc-ppc.c (md_assemble): Report error on invalid @tls operands
and opcode.
commit 44bdc36a31f16c3319bd8775d7c34edf042a467f
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Nov 18 12:14:00 2009 +0000
* targets.c: Don't include alloca-conf.h.
(bfd_get_target_info): Don't use alloca.
commit 616ecf1c358cb3188416df366a14c37601bef541
Author: Alan Modra <amodra@bigpond.net.au>
Date: Wed Nov 18 11:57:44 2009 +0000
* alloca-conf.h: Clarify comment.
commit 8b0afccc4c3a2a22781a527ec1427336ce310406
Author: spop <spop>
Date: Wed Nov 18 04:04:17 2009 +0000
2009-11-17 Sebastian Pop <sebastian.pop@amd.com>
Quentin Neill <quentin.neill@amd.com>
gas/
* config/tc-i386.c (cpu_arch): Added .xop and .cvt16.
(build_vex_prefix): Handle xop08.
(md_assemble): Don't special case the constant 3 for insns using MODRM.
(build_modrm_byte): Handle vex2sources.
(md_show_usage): Add xop and cvt16.
* doc/c-i386.texi: Document fma4, xop, and cvt16.
gas/testsuite/
* gas/i386/i386.exp: Run xop and cvt16 in 32-bit mode.
Run x86-64-xop and x86-64-cvt16 in 64-bit mode.
* gas/i386/lwp.d: Update name of the testcase.
* gas/i386/x86-64-xop.d: New.
* gas/i386/x86-64-xop.s: New.
* gas/i386/xop.d: New.
* gas/i386/xop.s: New.
* gas/i386/cvt16.d: New.
* gas/i386/cvt16.s: New.
opcodes/
* i386-dis.c (OP_Vex_2src_1): New.
(OP_Vex_2src_2): New.
(Vex_2src_1): New.
(Vex_2src_2): New.
(XOP_08): Added.
(VEX_LEN_XOP_08_A0): Added.
(VEX_LEN_XOP_08_A1): Added.
(VEX_LEN_XOP_09_80): Added.
(VEX_LEN_XOP_09_81): Added.
(xop_table): Added an entry for XOP_08. Handle xop instructions.
(vex_len_table): Added entries for VEX_LEN_XOP_08_A0,
VEX_LEN_XOP_08_A1, VEX_LEN_XOP_09_80, VEX_LEN_XOP_09_81.
(get_valid_dis386): Handle XOP_08.
(OP_Vex_2src): New.
* i386-gen.c (cpu_flag_init): Add CPU_XOP_FLAGS and CPU_CVT16_FLAGS.
(cpu_flags): Add CpuXOP and CpuCVT16.
(opcode_modifiers): Add XOP08, Vex2Sources.
* i386-opc.h (CpuXOP): Added.
(CpuCVT16): Added.
(i386_cpu_flags): Add cpuxop and cpucvt16.
(XOP08): Added.
(Vex2Sources): Added.
(i386_opcode_modifier): Add xop08, vex2sources.
* i386-opc.tbl: Add entries for XOP and CVT16 instructions.
* i386-init.h: Regenerated.
* i386-tbl.h: Regenerated.
commit be194862fccee601c811fedfcbdcb2808a112bab
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 18 00:00:03 2009 +0000
*** empty log message ***
commit b56e84582d043f73818567dff227baab3de29450
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue Nov 17 23:00:05 2009 +0000
daily update
commit 1d3d67c09ca9622ac0c6031c92716e4be9864cf8
Author: H.J. Lu <hjl@lucon.org>
Date: Tue Nov 17 22:31:40 2009 +0000
2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10955
* elfxx-ia64.c (elfNN_ia64_update_short_info): Also skip ABS
sections.
commit 3a420c9cee6bcca28d29623b28fba58bcae989da
Author: H.J. Lu <hjl@lucon.org>
Date: Tue Nov 17 20:57:21 2009 +0000
2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10955
* elfxx-ia64.c (elfNN_ia64_link_hash_table): Update comments.
(elfNN_ia64_update_short_info): Remove "->output_section" from
ia64_info->max_short_sec and ia64_info->min_short_sec.
(elfNN_ia64_choose_gp): Likewise.
(elfNN_ia64_relax_section): Pass tsec->output_section to
elfNN_ia64_update_short_info.
commit 22b6ad0e62b490f18f09ce3e73b45e451d5e1280
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Nov 17 20:48:31 2009 +0000
* dbxread.c (set_namestring): Remove cast to unsigned. Check N_STRX
overflow.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +
bfd/ChangeLog | 38 +
bfd/bfd-in.h | 4 +
bfd/bfd-in2.h | 4 +
bfd/coff-rs6000.c | 32 +-
bfd/coff64-rs6000.c | 32 +-
bfd/elf32-ppc.c | 73 +-
bfd/elf64-ppc.c | 31 +-
bfd/elfxx-ia64.c | 25 +-
bfd/targets.c | 4 +-
bfd/version.h | 2 +-
config.guess | 22 +-
config.sub | 8 +-
config/ChangeLog | 4 +
config/acx.m4 | 2 +-
gdb/ChangeLog | 87 +
gdb/ada-lang.c | 218 +-
gdb/ada-lang.h | 2 +-
gdb/ada-typeprint.c | 4 +-
gdb/ada-valprint.c | 3 +-
gdb/breakpoint.c | 114 +-
gdb/cli/cli-script.c | 25 +-
gdb/completer.c | 4 +-
gdb/dbxread.c | 5 +-
gdb/infrun.c | 16 +
gdb/machoread.c | 5 +-
gdb/symtab.c | 2 +-
gdb/version.in | 2 +-
include/ChangeLog | 4 +
include/alloca-conf.h | 3 +-
include/opcode/ChangeLog | 4 +
include/opcode/arm.h | 2 +
libiberty/ChangeLog | 6 +
libiberty/pex-unix.c | 3 +-
opcodes/ChangeLog | 64 +
opcodes/arm-dis.c | 28 +-
opcodes/i386-dis.c | 415 ++-
opcodes/i386-gen.c | 5 +
opcodes/i386-init.h | 137 +-
opcodes/i386-opc.h | 11 +-
opcodes/i386-opc.tbl | 80 +-
opcodes/i386-tbl.h |10511 ++++++++++++++++++++++++++--------------------
42 files changed, 7061 insertions(+), 4985 deletions(-)
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 62ff3c4..9893721 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-20 Paolo Bonzini <bonzini@gnu.org>
+
+ * config.guess: Sync with upstream and gcc.
+ * config.sub: Sync with upstream and gcc.
+
2009-11-16 Alexandre Oliva <aoliva@redhat.com>
* Makefile.def: Restore host and target settings for gmp.
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 113ddf8..a3b9a8f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,41 @@
+2009-11-19 Tristan Gingold <gingold@adacore.com>
+
+ * coff-rs6000.c (rs6000coff_vec): Use generic routines instead of
+ hard-coded casts.
+ (pmac_xcoff_vec): Ditto.
+ * coff64-rs6000.c (rs6000coff64_vec): Ditto.
+ (aix5coff64_vec): Ditto.
+
+2009-11-18 Alan Modra <amodra@bigpond.net.au>
+
+ * bfd-in.h (_bfd_elf_ppc_at_tls_transform): Declare.
+ * bfd-in2.h: Regenerate.
+ * elf64-ppc.c (ppc64_elf_relocate_section): Move code for R_PPC64_TLS
+ insn optimisation to..
+ * elf32-ppc.c (_bfd_elf_ppc_at_tls_transform): ..here. New function.
+ (ppc_elf_relocate_section): Use it.
+
+2009-11-18 Alan Modra <amodra@bigpond.net.au>
+
+ * targets.c: Don't include alloca-conf.h.
+ (bfd_get_target_info): Don't use alloca.
+
+2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/10955
+ * elfxx-ia64.c (elfNN_ia64_update_short_info): Also skip ABS
+ sections.
+
+2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/10955
+ * elfxx-ia64.c (elfNN_ia64_link_hash_table): Update comments.
+ (elfNN_ia64_update_short_info): Remove "->output_section" from
+ ia64_info->max_short_sec and ia64_info->min_short_sec.
+ (elfNN_ia64_choose_gp): Likewise.
+ (elfNN_ia64_relax_section): Pass tsec->output_section to
+ elfNN_ia64_update_short_info.
+
2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10955
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index c3d2d97..82bf043 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -908,6 +908,10 @@ extern bfd_boolean elf32_arm_build_stubs
extern bfd_boolean elf32_arm_fix_exidx_coverage
(struct bfd_section **, unsigned int, struct bfd_link_info *);
+/* PowerPC @tls opcode transform/validate. */
+extern unsigned int _bfd_elf_ppc_at_tls_transform
+ (unsigned int, unsigned int);
+
/* TI COFF load page support. */
extern void bfd_ticoff_set_section_load_page
(struct bfd_section *, int);
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 2cf3ba1..455ec56 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -915,6 +915,10 @@ extern bfd_boolean elf32_arm_build_stubs
extern bfd_boolean elf32_arm_fix_exidx_coverage
(struct bfd_section **, unsigned int, struct bfd_link_info *);
+/* PowerPC @tls opcode transform/validate. */
+extern unsigned int _bfd_elf_ppc_at_tls_transform
+ (unsigned int, unsigned int);
+
/* TI COFF load page support. */
extern void bfd_ticoff_set_section_load_page
(struct bfd_section *, int);
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index e8d5484..2482cfb 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -4171,13 +4171,13 @@ const bfd_target rs6000coff_vec =
/* Copy */
_bfd_xcoff_copy_private_bfd_data,
- ((bfd_boolean (*) (bfd *, bfd *)) bfd_true),
+ _bfd_generic_bfd_merge_private_bfd_data,
_bfd_generic_init_private_section_data,
- ((bfd_boolean (*) (bfd *, asection *, bfd *, asection *)) bfd_true),
- ((bfd_boolean (*) (bfd *, asymbol *, bfd *, asymbol *)) bfd_true),
- ((bfd_boolean (*) (bfd *, bfd *)) bfd_true),
- ((bfd_boolean (*) (bfd *, flagword)) bfd_true),
- ((bfd_boolean (*) (bfd *, void * )) bfd_true),
+ _bfd_generic_bfd_copy_private_section_data,
+ _bfd_generic_bfd_copy_private_symbol_data,
+ _bfd_generic_bfd_copy_private_header_data,
+ _bfd_generic_bfd_set_private_flags,
+ _bfd_generic_bfd_print_private_bfd_data,
/* Core */
coff_core_file_failing_command,
@@ -4186,8 +4186,8 @@ const bfd_target rs6000coff_vec =
/* Archive */
_bfd_xcoff_slurp_armap,
- bfd_false,
- ((bfd_boolean (*) (bfd *, char **, bfd_size_type *, const char **)) bfd_false),
+ _bfd_noarchive_slurp_extended_name_table,
+ _bfd_noarchive_construct_extended_name_table,
bfd_dont_truncate_arname,
_bfd_xcoff_write_armap,
_bfd_xcoff_read_ar_hdr,
@@ -4424,13 +4424,13 @@ const bfd_target pmac_xcoff_vec =
/* Copy */
_bfd_xcoff_copy_private_bfd_data,
- ((bfd_boolean (*) (bfd *, bfd *)) bfd_true),
+ _bfd_generic_bfd_merge_private_bfd_data,
_bfd_generic_init_private_section_data,
- ((bfd_boolean (*) (bfd *, asection *, bfd *, asection *)) bfd_true),
- ((bfd_boolean (*) (bfd *, asymbol *, bfd *, asymbol *)) bfd_true),
- ((bfd_boolean (*) (bfd *, bfd *)) bfd_true),
- ((bfd_boolean (*) (bfd *, flagword)) bfd_true),
- ((bfd_boolean (*) (bfd *, void * )) bfd_true),
+ _bfd_generic_bfd_copy_private_section_data,
+ _bfd_generic_bfd_copy_private_symbol_data,
+ _bfd_generic_bfd_copy_private_header_data,
+ _bfd_generic_bfd_set_private_flags,
+ _bfd_generic_bfd_print_private_bfd_data,
/* Core */
coff_core_file_failing_command,
@@ -4439,8 +4439,8 @@ const bfd_target pmac_xcoff_vec =
/* Archive */
_bfd_xcoff_slurp_armap,
- bfd_false,
- ((bfd_boolean (*) (bfd *, char **, bfd_size_type *, const char **)) bfd_false),
+ _bfd_noarchive_slurp_extended_name_table,
+ _bfd_noarchive_construct_extended_name_table,
bfd_dont_truncate_arname,
_bfd_xcoff_write_armap,
_bfd_xcoff_read_ar_hdr,
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index e202070..9b653e6 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -2741,13 +2741,13 @@ const bfd_target rs6000coff64_vec =
/* Copy */
_bfd_xcoff_copy_private_bfd_data,
- ((bfd_boolean (*) (bfd *, bfd *)) bfd_true),
+ _bfd_generic_bfd_merge_private_bfd_data,
_bfd_generic_init_private_section_data,
- ((bfd_boolean (*) (bfd *, asection *, bfd *, asection *)) bfd_true),
- ((bfd_boolean (*) (bfd *, asymbol *, bfd *, asymbol *)) bfd_true),
- ((bfd_boolean (*) (bfd *, bfd *)) bfd_true),
- ((bfd_boolean (*) (bfd *, flagword)) bfd_true),
- ((bfd_boolean (*) (bfd *, void * )) bfd_true),
+ _bfd_generic_bfd_copy_private_section_data,
+ _bfd_generic_bfd_copy_private_symbol_data,
+ _bfd_generic_bfd_copy_private_header_data,
+ _bfd_generic_bfd_set_private_flags,
+ _bfd_generic_bfd_print_private_bfd_data,
/* Core */
coff_core_file_failing_command,
@@ -2756,8 +2756,8 @@ const bfd_target rs6000coff64_vec =
/* Archive */
xcoff64_slurp_armap,
- bfd_false,
- ((bfd_boolean (*) (bfd *, char **, bfd_size_type *, const char **)) bfd_false),
+ _bfd_noarchive_slurp_extended_name_table,
+ _bfd_noarchive_construct_extended_name_table,
bfd_dont_truncate_arname,
_bfd_xcoff_write_armap,
_bfd_xcoff_read_ar_hdr,
@@ -2995,13 +2995,13 @@ const bfd_target aix5coff64_vec =
/* Copy */
_bfd_xcoff_copy_private_bfd_data,
- ((bfd_boolean (*) (bfd *, bfd *)) bfd_true),
+ _bfd_generic_bfd_merge_private_bfd_data,
_bfd_generic_init_private_section_data,
- ((bfd_boolean (*) (bfd *, asection *, bfd *, asection *)) bfd_true),
- ((bfd_boolean (*) (bfd *, asymbol *, bfd *, asymbol *)) bfd_true),
- ((bfd_boolean (*) (bfd *, bfd *)) bfd_true),
- ((bfd_boolean (*) (bfd *, flagword)) bfd_true),
- ((bfd_boolean (*) (bfd *, void * )) bfd_true),
+ _bfd_generic_bfd_copy_private_section_data,
+ _bfd_generic_bfd_copy_private_symbol_data,
+ _bfd_generic_bfd_copy_private_header_data,
+ _bfd_generic_bfd_set_private_flags,
+ _bfd_generic_bfd_print_private_bfd_data,
/* Core */
xcoff64_core_file_failing_command,
@@ -3010,8 +3010,8 @@ const bfd_target aix5coff64_vec =
/* Archive */
xcoff64_slurp_armap,
- bfd_false,
- ((bfd_boolean (*) (bfd *, char **, bfd_size_type *, const char **)) bfd_false),
+ _bfd_noarchive_slurp_extended_name_table,
+ _bfd_noarchive_construct_extended_name_table,
bfd_dont_truncate_arname,
_bfd_xcoff_write_armap,
_bfd_xcoff_read_ar_hdr,
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 95058a2..e4fdc1e 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -6613,6 +6613,46 @@ is_static_defined (struct elf_link_hash_entry *h)
&& h->root.u.def.section->output_section != NULL);
}
+/* If INSN is an opcode that may be used with an @tls operand, return
+ the transformed insn for TLS optimisation, otherwise return 0. If
+ REG is non-zero only match an insn with RB or RA equal to REG. */
+
+unsigned int
+_bfd_elf_ppc_at_tls_transform (unsigned int insn, unsigned int reg)
+{
+ unsigned int rtra;
+
+ if ((insn & (0x3f << 26)) != 31 << 26)
+ return 0;
+
+ if (reg == 0 || ((insn >> 11) & 0x1f) == reg)
+ rtra = insn & ((1 << 26) - (1 << 16));
+ else if (((insn >> 16) & 0x1f) == reg)
+ rtra = (insn & (0x1f << 21)) | ((insn & (0x1f << 11)) << 5);
+ else
+ return 0;
+
+ if ((insn & (0x3ff << 1)) == 266 << 1)
+ /* add -> addi. */
+ insn = 14 << 26;
+ else if ((insn & (0x1f << 1)) == 23 << 1
+ && ((insn & (0x1f << 6)) < 14 << 6
+ || ((insn & (0x1f << 6)) >= 16 << 6
+ && (insn & (0x1f << 6)) < 24 << 6)))
+ /* load and store indexed -> dform. */
+ insn = (32 | ((insn >> 6) & 0x1f)) << 26;
+ else if ((insn & (((0x1a << 5) | 0x1f) << 1)) == 21 << 1)
+ /* ldx, ldux, stdx, stdux -> ld, ldu, std, stdu. */
+ insn = ((58 | ((insn >> 6) & 4)) << 26) | ((insn >> 6) & 1);
+ else if ((insn & (((0x1f << 5) | 0x1f) << 1)) == 341 << 1)
+ /* lwax -> lwa. */
+ insn = (58 << 26) | 2;
+ else
+ return 0;
+ insn |= rtra;
+ return insn;
+}
+
/* The RELOCATE_SECTION function is called by the ELF backend linker
to handle the relocations for a section.
@@ -6813,37 +6853,12 @@ ppc_elf_relocate_section (bfd *output_bfd,
if ((tls_mask & TLS_TLS) != 0
&& (tls_mask & TLS_TPREL) == 0)
{
- bfd_vma insn, rtra;
+ bfd_vma insn;
+
insn = bfd_get_32 (output_bfd, contents + rel->r_offset);
- if ((insn & ((31 << 26) | (31 << 11)))
- == ((31 << 26) | (2 << 11)))
- rtra = insn & ((1 << 26) - (1 << 16));
- else if ((insn & ((31 << 26) | (31 << 16)))
- == ((31 << 26) | (2 << 16)))
- rtra = (insn & (31 << 21)) | ((insn & (31 << 11)) << 5);
- else
- abort ();
- if ((insn & ((1 << 11) - (1 << 1))) == 266 << 1)
- /* add -> addi. */
- insn = 14 << 26;
- else if ((insn & (31 << 1)) == 23 << 1
- && ((insn & (31 << 6)) < 14 << 6
- || ((insn & (31 << 6)) >= 16 << 6
- && (insn & (31 << 6)) < 24 << 6)))
- /* load and store indexed -> dform. */
- insn = (32 | ((insn >> 6) & 31)) << 26;
- else if ((insn & (31 << 1)) == 21 << 1
- && (insn & (0x1a << 6)) == 0)
- /* ldx, ldux, stdx, stdux -> ld, ldu, std, stdu. */
- insn = (((58 | ((insn >> 6) & 4)) << 26)
- | ((insn >> 6) & 1));
- else if ((insn & (31 << 1)) == 21 << 1
- && (insn & ((1 << 11) - (1 << 1))) == 341 << 1)
- /* lwax -> lwa. */
- insn = (58 << 26) | 2;
- else
+ insn = _bfd_elf_ppc_at_tls_transform (insn, 2);
+ if (insn == 0)
abort ();
- insn |= rtra;
bfd_put_32 (output_bfd, insn, contents + rel->r_offset);
r_type = R_PPC_TPREL16_LO;
rel->r_info = ELF32_R_INFO (r_symndx, r_type);
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 35757b8..e748a41 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -11018,37 +11018,10 @@ ppc64_elf_relocate_section (bfd *output_bfd,
if (tls_mask != 0
&& (tls_mask & TLS_TPREL) == 0)
{
- bfd_vma rtra;
insn = bfd_get_32 (output_bfd, contents + rel->r_offset);
- if ((insn & ((0x3f << 26) | (31 << 11)))
- == ((31 << 26) | (13 << 11)))
- rtra = insn & ((1 << 26) - (1 << 16));
- else if ((insn & ((0x3f << 26) | (31 << 16)))
- == ((31 << 26) | (13 << 16)))
- rtra = (insn & (31 << 21)) | ((insn & (31 << 11)) << 5);
- else
- abort ();
- if ((insn & ((1 << 11) - (1 << 1))) == 266 << 1)
- /* add -> addi. */
- insn = 14 << 26;
- else if ((insn & (31 << 1)) == 23 << 1
- && ((insn & (31 << 6)) < 14 << 6
- || ((insn & (31 << 6)) >= 16 << 6
- && (insn & (31 << 6)) < 24 << 6)))
- /* load and store indexed -> dform. */
- insn = (32 | ((insn >> 6) & 31)) << 26;
- else if ((insn & (31 << 1)) == 21 << 1
- && (insn & (0x1a << 6)) == 0)
- /* ldx, ldux, stdx, stdux -> ld, ldu, std, stdu. */
- insn = (((58 | ((insn >> 6) & 4)) << 26)
- | ((insn >> 6) & 1));
- else if ((insn & (31 << 1)) == 21 << 1
- && (insn & ((1 << 11) - (1 << 1))) == 341 << 1)
- /* lwax -> lwa. */
- insn = (58 << 26) | 2;
- else
+ insn = _bfd_elf_ppc_at_tls_transform (insn, 13);
+ if (insn == 0)
abort ();
- insn |= rtra;
bfd_put_32 (output_bfd, insn, contents + rel->r_offset);
/* Was PPC64_TLS which sits on insn boundary, now
PPC64_TPREL16_LO which is at low-order half-word. */
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index 5bf4d9e..420a0ef 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -176,9 +176,9 @@ struct elfNN_ia64_link_hash_table
optimized from R_IA64_LTOFF22X, against non-SHF_IA_64_SHORT
sections. We need to record those sections so that we can choose
a proper GP to cover all R_IA64_GPREL22 relocations. */
- asection *max_short_sec; /* maximum short section */
+ asection *max_short_sec; /* maximum short output section */
bfd_vma max_short_offset; /* maximum short offset */
- asection *min_short_sec; /* minimum short section */
+ asection *min_short_sec; /* minimum short output section */
bfd_vma min_short_offset; /* minimum short offset */
htab_t loc_hash_table;
@@ -764,8 +764,9 @@ static void
elfNN_ia64_update_short_info (asection *sec, bfd_vma offset,
struct elfNN_ia64_link_hash_table *ia64_info)
{
- /* Skip SHF_IA_64_SHORT sections. */
- if (sec->flags & SEC_SMALL_DATA)
+ /* Skip ABS and SHF_IA_64_SHORT sections. */
+ if (sec == bfd_abs_section_ptr
+ || (sec->flags & SEC_SMALL_DATA) != 0)
return;
if (!ia64_info->min_short_sec)
@@ -782,13 +783,13 @@ elfNN_ia64_update_short_info (asection *sec, bfd_vma offset,
&& offset < ia64_info->min_short_offset)
ia64_info->min_short_offset = offset;
else if (sec->output_section->vma
- > ia64_info->max_short_sec->output_section->vma)
+ > ia64_info->max_short_sec->vma)
{
ia64_info->max_short_sec = sec;
ia64_info->max_short_offset = offset;
}
else if (sec->output_section->vma
- < ia64_info->min_short_sec->output_section->vma)
+ < ia64_info->min_short_sec->vma)
{
ia64_info->min_short_sec = sec;
ia64_info->min_short_offset = offset;
@@ -1218,7 +1219,7 @@ elfNN_ia64_relax_section (bfd *abfd, asection *sec,
continue;
if (r_type == R_IA64_GPREL22)
- elfNN_ia64_update_short_info (tsec,
+ elfNN_ia64_update_short_info (tsec->output_section,
tsec->output_offset + toff,
ia64_info);
else if (r_type == R_IA64_LTOFF22X)
@@ -1232,7 +1233,7 @@ elfNN_ia64_relax_section (bfd *abfd, asection *sec,
changed_got |= !dyn_i->want_got;
}
- elfNN_ia64_update_short_info (tsec,
+ elfNN_ia64_update_short_info (tsec->output_section,
tsec->output_offset + toff,
ia64_info);
}
@@ -4313,14 +4314,14 @@ elfNN_ia64_choose_gp (bfd *abfd, struct bfd_link_info *info)
if (ia64_info->min_short_sec)
{
if (min_short_vma
- > (ia64_info->min_short_sec->output_section->vma
+ > (ia64_info->min_short_sec->vma
+ ia64_info->min_short_offset))
- min_short_vma = (ia64_info->min_short_sec->output_section->vma
+ min_short_vma = (ia64_info->min_short_sec->vma
+ ia64_info->min_short_offset);
if (max_short_vma
- < (ia64_info->max_short_sec->output_section->vma
+ < (ia64_info->max_short_sec->vma
+ ia64_info->max_short_offset))
- max_short_vma = (ia64_info->max_short_sec->output_section->vma
+ max_short_vma = (ia64_info->max_short_sec->vma
+ ia64_info->max_short_offset);
}
diff --git a/bfd/targets.c b/bfd/targets.c
index 0bcc906..31ec42f 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -25,7 +25,6 @@
#include "bfd.h"
#include "libbfd.h"
#include "fnmatch.h"
-#include "alloca-conf.h"
/*
It's okay to see some:
@@ -1523,7 +1522,8 @@ bfd_get_target_info (const char *target_name, bfd *abfd,
for triplets like "pe-arm-wince-little". */
if (!_bfd_find_arch_match (tname, arches, def_target_arch))
{
- char *new_tname = (char *) alloca (strlen (hyp) + 1);
+ char new_tname[50];
+
strcpy (new_tname, hyp);
while ((hyp = strrchr (new_tname, '-')) != NULL)
{
diff --git a/bfd/version.h b/bfd/version.h
index bd84a3a..d5158f5 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20091117
+#define BFD_VERSION_DATE 20091120
#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/config.guess b/config.guess
index 4ac8133..d53e309 100755
--- a/config.guess
+++ b/config.guess
@@ -4,7 +4,7 @@
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
-timestamp='2009-09-23'
+timestamp='2009-11-19'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -807,12 +807,12 @@ EOF
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
- *:Interix*:[3456]*)
+ *:Interix*:*)
case ${UNAME_MACHINE} in
x86)
echo i586-pc-interix${UNAME_RELEASE}
exit ;;
- EM64T | authenticamd | genuineintel)
+ authenticamd | genuineintel | EM64T)
echo x86_64-unknown-interix${UNAME_RELEASE}
exit ;;
IA64)
@@ -891,7 +891,15 @@ EOF
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2009-11-17 19:59 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2009-11-17 19:59 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 1249d0cb4c4a02496397fab2a0ac8160b5b11c8a (commit)
via 3515548719e69d12398db408f01cde0f83535241 (commit)
via 728894f6a3460bbf62110f71bb4a255e98048eb5 (commit)
via 1133e46f39f54c0ce9a601c6a424f1c7abb66cde (commit)
via f58e4f4171fc52f0e40208dfa1b5913333a2a28c (commit)
via 1f45c984248571e91c8bff1345ef50872b52ebc3 (commit)
via 70fdafcfc88ea4e6446e61a23dacd965b953e586 (commit)
via 8d51c7138515971351cc576411b454fcf038c432 (commit)
via 2be94ff0cb68710600ab56cee953a34f2e198c3f (commit)
via 13a3832b8aa7e8b31fd52a177617560a4bb13cb3 (commit)
via d9a6353ed5ad7bbcff5aff5aac2e1eec3c4fe7fe (commit)
via 09ff0e924514932b7aa9a11955ee694ffd82e7df (commit)
via 76be8ac3e88d2c6d97f5accfd07c51c08fd3de6a (commit)
via 63c9a23294627d9f4552a98efe247298bc589a01 (commit)
via cb8f60322419828a0af2145d21ba388dc09a06da (commit)
via 2c62125b938ea820aa4dd0d8f35f64734f1605ce (commit)
via 4c0947b310601891e5aaf8d01a4986b96dfd88b4 (commit)
via cff3ab0efab2920fabf2d2838a90d31b997ca0af (commit)
via 2fcae1ede11615f4334c63a1341f9a2e829de67d (commit)
via 910d24365e1c03e80b4711a6ccc43acb7d97c12e (commit)
from 2d552d549a3db77bfe291cde268c48d3a942d5d6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 1249d0cb4c4a02496397fab2a0ac8160b5b11c8a
Merge: 2d552d549a3db77bfe291cde268c48d3a942d5d6 3515548719e69d12398db408f01cde0f83535241
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Tue Nov 17 20:58:55 2009 +0100
Merge remote branch 'gdb/master'
commit 3515548719e69d12398db408f01cde0f83535241
Author: H.J. Lu <hjl@lucon.org>
Date: Tue Nov 17 19:21:53 2009 +0000
2009-11-17 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10955
* elfxx-ia64.c (elfNN_ia64_link_hash_table): Add max_short_sec,
max_short_offset, min_short_sec and min_short_offset.
(elfNN_ia64_update_short_info): New.
(elfNN_ia64_relax_section): Update max_short_sec,
max_short_offset, min_short_sec and min_short_offset.
(elfNN_ia64_choose_gp): Use min_short_sec/max_short_sec if
they are set.
commit 728894f6a3460bbf62110f71bb4a255e98048eb5
Author: mkuvyrkov <mkuvyrkov>
Date: Tue Nov 17 18:06:45 2009 +0000
2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
* features/m68k-core.xml: New file.
2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
* gdb.xml/tdesc-regs.exp: Use for m68k.
commit 1133e46f39f54c0ce9a601c6a424f1c7abb66cde
Author: mkuvyrkov <mkuvyrkov>
Date: Tue Nov 17 18:05:05 2009 +0000
* regformats/reg-cf.dat: New file.
commit f58e4f4171fc52f0e40208dfa1b5913333a2a28c
Author: mkuvyrkov <mkuvyrkov>
Date: Tue Nov 17 17:59:42 2009 +0000
2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
* m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
commit 1f45c984248571e91c8bff1345ef50872b52ebc3
Author: mkuvyrkov <mkuvyrkov>
Date: Tue Nov 17 17:58:14 2009 +0000
2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
2009-11-17 Vladimir Prus <vladimir@codesourcery.com>
* Makefile.in (reg-cf.o, reg-cf.c): New targets.
* configure.ac: Check for __mcoldfire__ and set
gdb_cv_m68k_is_coldfire.
* configure.srv: Use gdb_cv_m68k_is_coldfire to select between
reg-cf.o and reg-m68k.o.
* configure: Regenerated.
2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
* regformats/reg-cf.dat: New file.
commit 70fdafcfc88ea4e6446e61a23dacd965b953e586
Author: mkuvyrkov <mkuvyrkov>
Date: Tue Nov 17 17:56:10 2009 +0000
2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
* m68k-tdep.c (m68k_register_name): Check fpregs_present.
(m68k_gdbarch_init): Remove a duplicate of set_gdbarch_fp0_regnum.
commit 8d51c7138515971351cc576411b454fcf038c432
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Nov 17 17:20:26 2009 +0000
* gas/arm/vfma1.d: Only run on ELF based targets.
PR binutils/10924
* gas/arm/arch4t-eabi.d: Update expected disassembly.
* gas/arm/arch4t.d: Likewise.
* gas/arm/archv6t2.d: Likewise.
* gas/arm/arm7t.d: Likewise.
* gas/arm/inst.d: Likewise.
* gas/arm/xscale.d: Likewise.
PR binutils/10924
* arm-dis.c (arm_opcodes): Add patterns to match undefined LDRB
instruction variants. Add pattern for MRS variant that was being
confused with CMP.
(arm_decode_shift): Place error message in a comment.
(print_insn_arm): Note that writing back to the PC is
unpredictable.
Only print 'p' variants of cmp/cmn/teq/tst instructions if
decoding for pre-V6 architectures.
commit 2be94ff0cb68710600ab56cee953a34f2e198c3f
Author: Paul Brook <paul@codesourcery.com>
Date: Tue Nov 17 16:31:46 2009 +0000
2009-11-17 Paul Brook <paul@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
gas/
* doc/c-arm.texi: Document .arch armv7e-m.
* config/tc-arm.c (arm_ext_v6_dsp, arm_ext_v7m): New.
(insns): Put Thumb versions of v5TExP instructions into
arm_ext_v5exp also. Move some Thumb variants from
arm_ext_v6_notm to arm_ext_v6_dsp.
(arm_archs): Add armv7e-m architecture.
(aeabi_set_public_attributes): Handle -march=armv7e-m.
gas/testsuite/
* gas/arm/attr-march-armv7em.d: New test.
* gas/arm/arch7em-bad.d: New test.
* gas/arm/arch7em-bad.l: New test.
* gas/arm/arch7em.d: New test.
* gas/arm/arch7em.s: New test.
include/elf/
* arm.h (TAG_CPU_ARCH_V7E_M): Define.
include/opcode/
* arm.h (ARM_EXT_V6_DSP): Define.
(ARM_AEXT_V6T2, ARM_AEXT_NOTM): Include ARM_EXT_V6_DSP.
(ARM_AEXT_V7EM, ARM_ARCH_V7EM): Define.
binutils/
* readelf.c (arm_attr_tag_CPU_arch): Add v7E-M.
bfd/
* elf32-arm.c (using_thumb_only, arch_has_arm_nop,
arch_has_thumb2_nop): Handle TAG_CPU_ARCH_V7E_M.
(tag_cpu_arch_combine): Ditto. Correct MAX_TAG_CPU_ARCH test.
commit 13a3832b8aa7e8b31fd52a177617560a4bb13cb3
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Tue Nov 17 13:36:59 2009 +0000
* elf32-spu.c (struct spu_link_hash_table): Remove overlay_fixed,
reserved, and extra_stack_space members.
(spu_elf_auto_overlay): Use auto_overlay_fixed, auto_overlay_reserved,
and extra_stack_space members of htab->params instead.
commit d9a6353ed5ad7bbcff5aff5aac2e1eec3c4fe7fe
Author: Tristan Gingold <gingold@adacore.com>
Date: Tue Nov 17 10:54:20 2009 +0000
2009-11-17 Tristan Gingold <gingold@adacore.com>
* targets.c: Include alloca-conf.h
commit 09ff0e924514932b7aa9a11955ee694ffd82e7df
Author: Ramana Radhakrishnan <ramana.r@gmail.com>
Date: Tue Nov 17 10:43:09 2009 +0000
2009-11-17 Edward Nevill <edward.nevill@arm.com>
* arm-dis.c (print_insn_thumb32): Handle undefined instruction.
commit 76be8ac3e88d2c6d97f5accfd07c51c08fd3de6a
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Nov 17 09:41:32 2009 +0000
gdb/
Fix wrong debug output with `set debug infrun 1'.
* gdb/infrun.c (handle_inferior_event <debug_infrun>): New variable
old_chain. Temporarily switch INFERIOR_PTID.
* target.h (target_stopped_by_watchpoint): Extend the comment.
(target_stopped_data_address): New comment.
commit 63c9a23294627d9f4552a98efe247298bc589a01
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 17 00:00:33 2009 +0000
*** empty log message ***
commit cb8f60322419828a0af2145d21ba388dc09a06da
Author: Alan Modra <amodra@bigpond.net.au>
Date: Mon Nov 16 23:00:04 2009 +0000
daily update
commit 2c62125b938ea820aa4dd0d8f35f64734f1605ce
Author: Alexandre Oliva <aoliva@redhat.com>
Date: Mon Nov 16 22:57:46 2009 +0000
* Makefile.def: Restore host and target settings for gmp.
* Makefile.in: Rebuild.
commit 4c0947b310601891e5aaf8d01a4986b96dfd88b4
Author: Alexandre Oliva <aoliva@redhat.com>
Date: Mon Nov 16 18:42:35 2009 +0000
* configure.ac: Add libelf to host_libs. Enable in-tree configury
of ppl and cloog. Fix in-tree configury of libelf, skip tests.
Fix portability of test of C++ as bootstrap language. Add
ppl/src/ppl-config.o to the bootstrap compare exclusion list.
* configure: Rebuild.
* Makefile.def: Drop host and target settings from gmp, mpfr, ppl,
and cloog. Fix in-tree ppl configuration. Introduce libelf
in-tree building.
* Makefile.tpl (POSTSTAGE1_CXX_EXPORT): New.
(POSTSTAGE1_HOST_EXPORTS): Use it.
(STAGE[+id+]_CXXFLAGS): New.
(BASE_FLAGS_TO_PASS): Pass it down.
(configure-stage[+id+]-[+prefix+][+module+]): Use it. Add
extra_exports.
(all-stage[+id+]-[+prefix+][+module+]): Likewise.
(configure-[+prefix+][+module+], all-[+prefix+][+module+]): Add
extra_exports.
* Makefile.in: Rebuild.
* configure.ac (FLAGS_FOR_TARGET): Add -L and -isystem
paths for *-w64-mingw* and x86_64-*mingw*.
* configure: Regenerated.
* configure.ac: Disable target-winsup & co for
x86_64-*-mingw* and *-w64-mingw* targets.
* configure: Regenerated.
* configure.ac (CLooG test): Use = with test.
* configure: Regenerate.
* configure.ac: Do not set LIBS for ppl/cloog checks. Disable
cloog if the ppl version check failed. Move flags saving
before setting in libelf check.
* configure: Regenerate.
* configure.ac: Adjust the ppl and cloog configure to work as
documented. Disable cloog if ppl was disabled. Omit the version
checks if they were disabled.
* configure: Re-generate.
commit cff3ab0efab2920fabf2d2838a90d31b997ca0af
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Nov 16 18:40:18 2009 +0000
* xcoffread.c (scan_xcoff_symtab): Update.
* symfile.h (add_psymbol_to_list): Update prototype.
* symfile.c (add_psymbol_to_bcache): Add copy_name argument.
(add_psymbol_to_list): Likewise.
* stabsread.c (define_symbol): Update.
* mdebugread.c (parse_partial_symbols): Update.
(handle_psymbol_enumerators): Update.
(new_symbol): Update.
* dbxread.c (read_dbx_symtab): Update.
* coffread.c (process_coff_symbol): Update.
* symtab.h (prim_record_minimal_symbol_full): Declare.
(SYMBOL_SET_NAMES): Add copy_name argument.
* symtab.c (struct demangled_name_entry): New struct.
(hash_demangled_name_entry): New function.
(eq_demangled_name_entry): Likewise.
(create_demangled_names_hash): Use new functions.
(symbol_set_names): Use struct demangled_name_entry. Add
copy_name argument.
* minsyms.c (prim_record_minimal_symbol_full): New function.
(prim_record_minimal_symbol_and_info): Use it.
* elfread.c (record_minimal_symbol): Add name_len and copy_name
arguments. Call prim_record_minimal_symbol_full.
(elf_symtab_read): Add copy_names argument.
(elf_symfile_read): Update calls to elf_symtab_read.
* dwarf2read.c (add_partial_symbol): Don't copy symbol names.
(load_partial_dies): Likewise.
(new_symbol): Likewise.
* cp-namespace.c (check_one_possible_namespace_symbol): Don't save
name on the obstack. Update call to SYMBOL_SET_NAMES.
commit 2fcae1ede11615f4334c63a1341f9a2e829de67d
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Nov 16 18:15:05 2009 +0000
* linux-low.c (linux_remove_process): Add `detaching' parameter.
Pass it to thread_db_free.
(linux_kill, linux_detach, linux_wait_1): Adjust to pass the
proper `detaching' argument to linux_remove_process.
* linux-low.h (thread_db_free): Add `detaching' parameter.
* thread-db.c (thread_db_init): Pass false as `detaching' argument
to thread_db_free.
(thread_db_free): Add `detaching' parameter. Only
call td_ta_clear_event if detaching from process.
commit 910d24365e1c03e80b4711a6ccc43acb7d97c12e
Author: Kai Tietz <kai.tietz@onevision.com>
Date: Mon Nov 16 11:11:11 2009 +0000
2009-11-16 Kai Tietz <kai.tietz@onevision.com>
* targets.c (bfd_get_target_info): New function.
(_bfd_find_arch_match): New function.
* bfd-in2.h: Regenerated.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 57 +
Makefile.def | 30 +-
Makefile.in | 2522 ++++++++++++++++++++++++----------
Makefile.tpl | 50 +-
bfd/ChangeLog | 35 +
bfd/bfd-in2.h | 5 +
bfd/elf32-arm.c | 29 +-
bfd/elf32-spu.c | 28 +-
bfd/elfxx-ia64.c | 102 ++-
bfd/targets.c | 116 ++
bfd/version.h | 2 +-
configure | 79 +-
configure.ac | 83 +-
gdb/ChangeLog | 53 +
gdb/coffread.c | 2 +-
gdb/cp-namespace.c | 5 +-
gdb/dbxread.c | 18 +-
gdb/dwarf2read.c | 14 +-
gdb/elfread.c | 29 +-
gdb/features/m68k-core.xml | 24 +
gdb/gdbserver/ChangeLog | 26 +
gdb/gdbserver/Makefile.in | 3 +
gdb/gdbserver/configure | 29 +
gdb/gdbserver/configure.ac | 12 +
gdb/gdbserver/configure.srv | 12 +-
gdb/gdbserver/linux-low.c | 10 +-
gdb/gdbserver/linux-low.h | 2 +-
gdb/gdbserver/thread-db.c | 26 +-
gdb/infrun.c | 5 +
gdb/jit.c | 2 +-
gdb/m68k-tdep.c | 11 +-
gdb/mdebugread.c | 31 +-
gdb/minsyms.c | 33 +-
gdb/regformats/reg-cf.dat | 33 +
gdb/stabsread.c | 4 +-
gdb/symfile.c | 10 +-
gdb/symfile.h | 2 +-
gdb/symtab.c | 114 ++-
gdb/symtab.h | 11 +-
gdb/target.h | 9 +-
gdb/testsuite/ChangeLog | 4 +
gdb/testsuite/gdb.xml/tdesc-regs.exp | 3 +
gdb/version.in | 2 +-
gdb/xcoffread.c | 18 +-
include/elf/ChangeLog | 5 +
include/elf/arm.h | 3 +-
include/opcode/ChangeLog | 7 +
include/opcode/arm.h | 11 +-
opcodes/ChangeLog | 16 +
opcodes/arm-dis.c | 48 +-
50 files changed, 2768 insertions(+), 1017 deletions(-)
create mode 100644 gdb/features/m68k-core.xml
create mode 100644 gdb/regformats/reg-cf.dat
First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index a6bfb7f..62ff3c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,60 @@
+2009-11-16 Alexandre Oliva <aoliva@redhat.com>
+
+ * Makefile.def: Restore host and target settings for gmp.
+ * Makefile.in: Rebuild.
+
+2009-11-16 Alexandre Oliva <aoliva@redhat.com>
+
+ * configure.ac: Add libelf to host_libs. Enable in-tree configury
+ of ppl and cloog. Fix in-tree configury of libelf, skip tests.
+ Fix portability of test of C++ as bootstrap language. Add
+ ppl/src/ppl-config.o to the bootstrap compare exclusion list.
+ * configure: Rebuild.
+ * Makefile.def: Drop host and target settings from gmp, mpfr, ppl,
+ and cloog. Fix in-tree ppl configuration. Introduce libelf
+ in-tree building.
+ * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): New.
+ (POSTSTAGE1_HOST_EXPORTS): Use it.
+ (STAGE[+id+]_CXXFLAGS): New.
+ (BASE_FLAGS_TO_PASS): Pass it down.
+ (configure-stage[+id+]-[+prefix+][+module+]): Use it. Add
+ extra_exports.
+ (all-stage[+id+]-[+prefix+][+module+]): Likewise.
+ (configure-[+prefix+][+module+], all-[+prefix+][+module+]): Add
+ extra_exports.
+ * Makefile.in: Rebuild.
+
+2009-11-06 Ozkan Sezer <sezeroz@gmail.com>
+
+ * configure.ac (FLAGS_FOR_TARGET): Add -L and -isystem
+ paths for *-w64-mingw* and x86_64-*mingw*.
+ * configure: Regenerated.
+
+2009-10-30 Kai Tietz <kai.tietz@onevision.com>
+
+ * configure.ac: Disable target-winsup & co for
+ x86_64-*-mingw* and *-w64-mingw* targets.
+ * configure: Regenerated.
+
+2009-10-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * configure.ac (CLooG test): Use = with test.
+ * configure: Regenerate.
+
+2009-10-22 Richard Guenther <rguenther@suse.de>
+
+ * configure.ac: Do not set LIBS for ppl/cloog checks. Disable
+ cloog if the ppl version check failed. Move flags saving
+ before setting in libelf check.
+ * configure: Regenerate.
+
+2009-10-21 Richard Guenther <rguenther@suse.de>
+
+ * configure.ac: Adjust the ppl and cloog configure to work as
+ documented. Disable cloog if ppl was disabled. Omit the version
+ checks if they were disabled.
+ * configure: Re-generate.
+
2009-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac: Add 'lto' to enable_languages, not
diff --git a/Makefile.def b/Makefile.def
index 5541a67..f5c2e11 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -62,27 +62,30 @@ host_modules= { module= gawk; };
host_modules= { module= gettext; };
host_modules= { module= gmp; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared';
- no_install= true;
+ no_install= true;
+ // none-*-* disables asm optimizations, bootstrap-testing
+ // the compiler more thoroughly.
host="none-${host_vendor}-${host_os}";
- target="none-${host_vendor}-${host_os}"; };
+ // gmp's configure will complain if given anything
+ // different from host for target.
+ target="none-${host_vendor}-${host_os}"; };
host_modules= { module= mpfr; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared @extra_mpfr_configure_flags@';
- no_install= true;
- host="none-${host_vendor}-${host_os}";
- target="none-${host_vendor}-${host_os}"; };
+ no_install= true; };
host_modules= { module= mpc; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@';
no_install= true; };
-host_modules= { module= ppl; lib_path=.libs; bootstrap=true;
+host_modules= { module= ppl; lib_path=src/.libs; bootstrap=true;
extra_configure_flags='--disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/';
- no_install= true;
- host="none-${host_vendor}-${host_os}";
- target="none-${host_vendor}-${host_os}"; };
+ no_install= true; };
host_modules= { module= cloog; lib_path=.libs; bootstrap=true;
- extra_configure_flags='--disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp';
- no_install= true;
- host="none-${host_vendor}-${host_os}";
- target="none-${host_vendor}-${host_os}"; };
+ extra_configure_flags='--disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl';
+ extra_exports='CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; ';
+ extra_make_flags='CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"';
+ no_install= true; };
+host_modules= { module= libelf; lib_path=.libs; bootstrap=true;
+ extra_configure_flags='--disable-shared';
+ no_install= true; };
host_modules= { module= gnuserv; };
host_modules= { module= gold; bootstrap=true; };
host_modules= { module= gprof; };
@@ -326,6 +329,7 @@ dependencies = { module=all-gcc; on=all-mpfr; };
dependencies = { module=all-gcc; on=all-mpc; };
dependencies = { module=all-gcc; on=all-ppl; };
dependencies = { module=all-gcc; on=all-cloog; };
+dependencies = { module=all-gcc; on=all-libelf; };
dependencies = { module=all-gcc; on=all-build-texinfo; };
dependencies = { module=all-gcc; on=all-build-bison; };
dependencies = { module=all-gcc; on=all-build-byacc; };
diff --git a/Makefile.in b/Makefile.in
index afff42e..e5fa1d3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -226,6 +226,21 @@ HOST_EXPORTS = \
@endif gcc-bootstrap
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
+POSTSTAGE1_CXX_EXPORT = \
+ CXX='$(CXX)'; export CXX; \
+ CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
+@if target-libstdc++-v3-bootstrap
+# Override the above if we're bootstrapping C++.
+POSTSTAGE1_CXX_EXPORT = \
+ CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \
+ -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
+ -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
+ -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
+ -I$$s/libstdc++-v3/libsupc++ \
+ -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs"; export CXX; \
+ CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
+@endif target-libstdc++-v3-bootstrap
+
# Similar, for later GCC stages.
POSTSTAGE1_HOST_EXPORTS = \
$(HOST_EXPORTS) \
@@ -233,13 +248,7 @@ POSTSTAGE1_HOST_EXPORTS = \
-B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
$(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
- CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \
- -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
- -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
- -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
- -I$$s/libstdc++-v3/libsupc++ \
- -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs"; export CXX; \
- CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD; \
+ $(POSTSTAGE1_CXX_EXPORT) \
GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
@@ -398,31 +407,61 @@ STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
# Defaults for stage 1; some are overridden below.
STAGE1_CFLAGS = $(STAGE_CFLAGS)
+STAGE1_CXXFLAGS = $(CXXFLAGS)
+@if target-libstdc++-v3-bootstrap
+# Override the above if we're bootstrapping C++.
+STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
+@endif target-libstdc++-v3-bootstrap
STAGE1_TFLAGS = $(STAGE_TFLAGS)
STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
# Defaults for stage 2; some are overridden below.
STAGE2_CFLAGS = $(STAGE_CFLAGS)
+STAGE2_CXXFLAGS = $(CXXFLAGS)
+@if target-libstdc++-v3-bootstrap
+# Override the above if we're bootstrapping C++.
+STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
+@endif target-libstdc++-v3-bootstrap
STAGE2_TFLAGS = $(STAGE_TFLAGS)
STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
# Defaults for stage 3; some are overridden below.
STAGE3_CFLAGS = $(STAGE_CFLAGS)
+STAGE3_CXXFLAGS = $(CXXFLAGS)
+@if target-libstdc++-v3-bootstrap
+# Override the above if we're bootstrapping C++.
+STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
+@endif target-libstdc++-v3-bootstrap
STAGE3_TFLAGS = $(STAGE_TFLAGS)
STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
# Defaults for stage 4; some are overridden below.
STAGE4_CFLAGS = $(STAGE_CFLAGS)
+STAGE4_CXXFLAGS = $(CXXFLAGS)
+@if target-libstdc++-v3-bootstrap
+# Override the above if we're bootstrapping C++.
+STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
+@endif target-libstdc++-v3-bootstrap
STAGE4_TFLAGS = $(STAGE_TFLAGS)
STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
# Defaults for stage profile; some are overridden below.
STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
+STAGEprofile_CXXFLAGS = $(CXXFLAGS)
+@if target-libstdc++-v3-bootstrap
+# Override the above if we're bootstrapping C++.
+STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
+@endif target-libstdc++-v3-bootstrap
STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
# Defaults for stage feedback; some are overridden below.
STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
+STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
+@if target-libstdc++-v3-bootstrap
+# Override the above if we're bootstrapping C++.
+STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
+@endif target-libstdc++-v3-bootstrap
STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
@@ -434,8 +473,8 @@ STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
# overrideable (for a bootstrap build stage1 also builds gcc.info).
STAGE1_CFLAGS = @stage1_cflags@
-STAGE1_CHECKING=@stage1_checking@
-STAGE1_LANGUAGES=@stage1_languages@
+STAGE1_CHECKING = @stage1_checking@
+STAGE1_LANGUAGES = @stage1_languages@
# * We force-disable intermodule optimizations, even if
# --enable-intermodule was passed, since the installed compiler
# probably can't handle them. Luckily, autoconf always respects
@@ -538,7 +577,7 @@ TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
# This is the list of directories that may be needed in RPATH_ENVVAR
# so that programs built for the host machine work.
-HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)$(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_ppl)$(HOST_LIB_PATH_cloog)
+HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)$(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_ppl)$(HOST_LIB_PATH_cloog)$(HOST_LIB_PATH_libelf)
# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
@if gcc
@@ -573,7 +612,7 @@ HOST_LIB_PATH_mpc = \
@if ppl
HOST_LIB_PATH_ppl = \
- $$r/$(HOST_SUBDIR)/ppl/.libs:$$r/$(HOST_SUBDIR)/prev-ppl/.libs:
+ $$r/$(HOST_SUBDIR)/ppl/src/.libs:$$r/$(HOST_SUBDIR)/prev-ppl/src/.libs:
@endif ppl
@if cloog
@@ -581,6 +620,11 @@ HOST_LIB_PATH_cloog = \
$$r/$(HOST_SUBDIR)/cloog/.libs:$$r/$(HOST_SUBDIR)/prev-cloog/.libs:
@endif cloog
+@if libelf
+HOST_LIB_PATH_libelf = \
+ $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
+@endif libelf
+
# Flags to pass down to all sub-makes.
BASE_FLAGS_TO_PASS = \
@@ -670,16 +714,22 @@ BASE_FLAGS_TO_PASS = \
"`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
"LEAN=$(LEAN)" \
"STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
+ "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
"STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
"STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
+ "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
"STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
"STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
+ "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
"STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
"STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
+ "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
"STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
"STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
+ "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
"STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
"STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
+ "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
"STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
"TFLAGS=$(TFLAGS)" \
"CONFIG_SHELL=$(SHELL)" \
@@ -727,8 +777,8 @@ POSTSTAGE1_FLAGS_TO_PASS = \
CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
GNATBIND="$${GNATBIND}" \
- LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)" \
- HOST_LIBS="$(POSTSTAGE1_LIBS)" \
+ LDFLAGS="$${LDFLAGS}" \
+ HOST_LIBS="$${HOST_LIBS}" \
"`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
# Flags to pass down to makes which are built with the target environment.
@@ -815,6 +865,7 @@ configure-host: \
maybe-configure-mpc \
maybe-configure-ppl \
maybe-configure-cloog \
+ maybe-configure-libelf \
maybe-configure-gnuserv \
maybe-configure-gold \
maybe-configure-gprof \
@@ -973,6 +1024,9 @@ all-host: maybe-all-ppl
@if cloog-no-bootstrap
all-host: maybe-all-cloog
@endif cloog-no-bootstrap
+@if libelf-no-bootstrap
+all-host: maybe-all-libelf
+@endif libelf-no-bootstrap
all-host: maybe-all-gnuserv
@if gold-no-bootstrap
all-host: maybe-all-gold
@@ -1111,6 +1165,7 @@ info-host: maybe-info-mpfr
info-host: maybe-info-mpc
info-host: maybe-info-ppl
info-host: maybe-info-cloog
+info-host: maybe-info-libelf
info-host: maybe-info-gnuserv
info-host: maybe-info-gold
info-host: maybe-info-gprof
@@ -1224,6 +1279,7 @@ dvi-host: maybe-dvi-mpfr
dvi-host: maybe-dvi-mpc
dvi-host: maybe-dvi-ppl
dvi-host: maybe-dvi-cloog
+dvi-host: maybe-dvi-libelf
dvi-host: maybe-dvi-gnuserv
dvi-host: maybe-dvi-gold
dvi-host: maybe-dvi-gprof
@@ -1337,6 +1393,7 @@ pdf-host: maybe-pdf-mpfr
pdf-host: maybe-pdf-mpc
pdf-host: maybe-pdf-ppl
pdf-host: maybe-pdf-cloog
+pdf-host: maybe-pdf-libelf
pdf-host: maybe-pdf-gnuserv
pdf-host: maybe-pdf-gold
pdf-host: maybe-pdf-gprof
@@ -1450,6 +1507,7 @@ html-host: maybe-html-mpfr
html-host: maybe-html-mpc
html-host: maybe-html-ppl
html-host: maybe-html-cloog
+html-host: maybe-html-libelf
html-host: maybe-html-gnuserv
html-host: maybe-html-gold
html-host: maybe-html-gprof
@@ -1563,6 +1621,7 @@ TAGS-host: maybe-TAGS-mpfr
TAGS-host: maybe-TAGS-mpc
TAGS-host: maybe-TAGS-ppl
TAGS-host: maybe-TAGS-cloog
+TAGS-host: maybe-TAGS-libelf
TAGS-host: maybe-TAGS-gnuserv
TAGS-host: maybe-TAGS-gold
TAGS-host: maybe-TAGS-gprof
@@ -1676,6 +1735,7 @@ install-info-host: maybe-install-info-mpfr
install-info-host: maybe-install-info-mpc
install-info-host: maybe-install-info-ppl
install-info-host: maybe-install-info-cloog
+install-info-host: maybe-install-info-libelf
install-info-host: maybe-install-info-gnuserv
install-info-host: maybe-install-info-gold
install-info-host: maybe-install-info-gprof
@@ -1789,6 +1849,7 @@ install-pdf-host: maybe-install-pdf-mpfr
install-pdf-host: maybe-install-pdf-mpc
install-pdf-host: maybe-install-pdf-ppl
install-pdf-host: maybe-install-pdf-cloog
+install-pdf-host: maybe-install-pdf-libelf
install-pdf-host: maybe-install-pdf-gnuserv
install-pdf-host: maybe-install-pdf-gold
install-pdf-host: maybe-install-pdf-gprof
@@ -1902,6 +1963,7 @@ install-html-host: maybe-install-html-mpfr
install-html-host: maybe-install-html-mpc
install-html-host: maybe-install-html-ppl
install-html-host: maybe-install-html-cloog
+install-html-host: maybe-install-html-libelf
install-html-host: maybe-install-html-gnuserv
install-html-host: maybe-install-html-gold
install-html-host: maybe-install-html-gprof
@@ -2015,6 +2077,7 @@ installcheck-host: maybe-installcheck-mpfr
installcheck-host: maybe-installcheck-mpc
installcheck-host: maybe-installcheck-ppl
installcheck-host: maybe-installcheck-cloog
+installcheck-host: maybe-installcheck-libelf
installcheck-host: maybe-installcheck-gnuserv
installcheck-host: maybe-installcheck-gold
installcheck-host: maybe-installcheck-gprof
@@ -2128,6 +2191,7 @@ mostlyclean-host: maybe-mostlyclean-mpfr
mostlyclean-host: maybe-mostlyclean-mpc
mostlyclean-host: maybe-mostlyclean-ppl
mostlyclean-host: maybe-mostlyclean-cloog
+mostlyclean-host: maybe-mostlyclean-libelf
mostlyclean-host: maybe-mostlyclean-gnuserv
mostlyclean-host: maybe-mostlyclean-gold
mostlyclean-host: maybe-mostlyclean-gprof
@@ -2241,6 +2305,7 @@ clean-host: maybe-clean-mpfr
clean-host: maybe-clean-mpc
clean-host: maybe-clean-ppl
clean-host: maybe-clean-cloog
+clean-host: maybe-clean-libelf
clean-host: maybe-clean-gnuserv
clean-host: maybe-clean-gold
clean-host: maybe-clean-gprof
@@ -2354,6 +2419,7 @@ distclean-host: maybe-distclean-mpfr
distclean-host: maybe-distclean-mpc
distclean-host: maybe-distclean-ppl
distclean-host: maybe-distclean-cloog
+distclean-host: maybe-distclean-libelf
distclean-host: maybe-distclean-gnuserv
distclean-host: maybe-distclean-gold
distclean-host: maybe-distclean-gprof
@@ -2467,6 +2533,7 @@ maintainer-clean-host: maybe-maintainer-clean-mpfr
maintainer-clean-host: maybe-maintainer-clean-mpc
maintainer-clean-host: maybe-maintainer-clean-ppl
maintainer-clean-host: maybe-maintainer-clean-cloog
+maintainer-clean-host: maybe-maintainer-clean-libelf
maintainer-clean-host: maybe-maintainer-clean-gnuserv
maintainer-clean-host: maybe-maintainer-clean-gold
maintainer-clean-host: maybe-maintainer-clean-gprof
@@ -2634,6 +2701,7 @@ check-host: \
maybe-check-mpc \
maybe-check-ppl \
maybe-check-cloog \
+ maybe-check-libelf \
maybe-check-gnuserv \
maybe-check-gold \
maybe-check-gprof \
@@ -2773,6 +2841,7 @@ install-host-nogcc: \
maybe-install-mpc \
maybe-install-ppl \
maybe-install-cloog \
+ maybe-install-libelf \
maybe-install-gnuserv \
maybe-install-gold \
maybe-install-gprof \
@@ -2853,6 +2922,7 @@ install-host: \
maybe-install-mpc \
maybe-install-ppl \
maybe-install-cloog \
+ maybe-install-libelf \
maybe-install-gnuserv \
maybe-install-gold \
maybe-install-gprof \
@@ -3002,7 +3072,7 @@ configure-build-libiberty:
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
- $(BUILD_EXPORTS) \
+ $(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/libiberty; \
cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
case $(srcdir) in \
@@ -3035,7 +3105,7 @@ all-build-libiberty: configure-build-libiberty
@: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(BUILD_EXPORTS) \
+ $(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/libiberty && \
$(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
$(TARGET-build-libiberty))
@@ -3058,7 +3128,7 @@ configure-build-bison:
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
- $(BUILD_EXPORTS) \
+ $(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/bison; \
cd "$(BUILD_SUBDIR)/bison" || exit 1; \
case $(srcdir) in \
@@ -3091,7 +3161,7 @@ all-build-bison: configure-build-bison
@: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(BUILD_EXPORTS) \
+ $(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/bison && \
$(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
$(TARGET-build-bison))
@@ -3114,7 +3184,7 @@ configure-build-byacc:
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
- $(BUILD_EXPORTS) \
+ $(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/byacc; \
cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
case $(srcdir) in \
@@ -3147,7 +3217,7 @@ all-build-byacc: configure-build-byacc
@: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(BUILD_EXPORTS) \
+ $(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/byacc && \
$(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
$(TARGET-build-byacc))
@@ -3170,7 +3240,7 @@ configure-build-flex:
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
* [SCM] master: Merge remote branch 'gdb/master'
@ 2009-11-16 2:22 jkratoch
0 siblings, 0 replies; 120+ messages in thread
From: jkratoch @ 2009-11-16 2:22 UTC (permalink / raw)
To: archer-commits
The branch, master has been updated
via 2d552d549a3db77bfe291cde268c48d3a942d5d6 (commit)
via 5e291547568309c89b995cf7dfee2f8dbe69ae4a (commit)
via b0793d2e9127adb8b630d1a2b93259a42d8a0e3c (commit)
via 615f724ac9d6abbd049958f2e8f7ff4ad0201102 (commit)
via a561b6628081120fdec5425e4f92520e12f01ace (commit)
via 57525cd906fac970697843c95a200728cd1dd3a5 (commit)
via 3ebd22671e746bdcf6777449263cebad1984a4e9 (commit)
via 522c6b2924ae5291fcd964ae9ca0679ae0777c1c (commit)
from d7fcfd6be145834cdadae42ecde52a62266d4784 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 2d552d549a3db77bfe291cde268c48d3a942d5d6
Merge: d7fcfd6be145834cdadae42ecde52a62266d4784 5e291547568309c89b995cf7dfee2f8dbe69ae4a
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Mon Nov 16 03:22:02 2009 +0100
Merge remote branch 'gdb/master'
commit 5e291547568309c89b995cf7dfee2f8dbe69ae4a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 16 00:00:03 2009 +0000
*** empty log message ***
commit b0793d2e9127adb8b630d1a2b93259a42d8a0e3c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun Nov 15 23:00:05 2009 +0000
daily update
commit 615f724ac9d6abbd049958f2e8f7ff4ad0201102
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Nov 15 20:13:58 2009 +0000
* gdb.base/watch-vfork.c, gdb.base/watch-vfork.exp: New files.
commit a561b6628081120fdec5425e4f92520e12f01ace
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Nov 15 20:10:34 2009 +0000
* infrun.c (handle_inferior_event): When handling a fork or vfork
event, check if the bpstat causes a stop, instead of if it
explains the signal.
* breakpoint.c (bpstat_causes_stop): New.
* breakpoint.h (bpstat_causes_stop): Declare.
commit 57525cd906fac970697843c95a200728cd1dd3a5
Author: Pedro Alves <pedro@codesourcery.com>
Date: Sun Nov 15 20:07:57 2009 +0000
* breakpoint.c (should_be_inserted): Don't insert breakpoints if
the pspace doesn't allow breakpoints.
(insert_breakpoint_locations): Remove waiting_for_vfork_done
special case. Expect watchpoints that shouldn't be inserted, to
not be inserted.
* progspace.h (struct program_space) <breakpoints_not_allowed>:
New field.
* infrun.c (handle_inferior_event): Clear it.
* linux-nat.c (linux_child_follow_fork): Set it.
commit 3ebd22671e746bdcf6777449263cebad1984a4e9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 15 00:00:03 2009 +0000
*** empty log message ***
commit 522c6b2924ae5291fcd964ae9ca0679ae0777c1c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat Nov 14 23:00:04 2009 +0000
daily update
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 20 ++++++++++++
gdb/breakpoint.c | 42 +++++++++++++------------
gdb/breakpoint.h | 3 ++
gdb/infrun.c | 7 ++++-
gdb/linux-nat.c | 1 +
gdb/progspace.h | 4 ++
gdb/testsuite/ChangeLog | 4 ++
gdb/testsuite/gdb.base/watch-vfork.c | 41 +++++++++++++++++++++++++
gdb/testsuite/gdb.base/watch-vfork.exp | 52 ++++++++++++++++++++++++++++++++
gdb/version.in | 2 +-
11 files changed, 155 insertions(+), 23 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/watch-vfork.c
create mode 100644 gdb/testsuite/gdb.base/watch-vfork.exp
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 7f5bcb9..cd2a903 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20091114
+#define BFD_VERSION_DATE 20091116
#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 7769fff..93fdd8c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,23 @@
+2009-11-15 Pedro Alves <pedro@codesourcery.com>
+
+ * infrun.c (handle_inferior_event): When handling a fork or vfork
+ event, check if the bpstat causes a stop, instead of if it
+ explains the signal.
+ * breakpoint.c (bpstat_causes_stop): New.
+ * breakpoint.h (bpstat_causes_stop): Declare.
+
+2009-11-15 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (should_be_inserted): Don't insert breakpoints if
+ the pspace doesn't allow breakpoints.
+ (insert_breakpoint_locations): Remove waiting_for_vfork_done
+ special case. Expect watchpoints that shouldn't be inserted, to
+ not be inserted.
+ * progspace.h (struct program_space) <breakpoints_not_allowed>:
+ New field.
+ * infrun.c (handle_inferior_event): Clear it.
+ * linux-nat.c (linux_child_follow_fork): Set it.
+
2009-11-13 Doug Evans <dje@google.com>
* dcache.c (dcache_hit, dcache_read_line): Tweak comments.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index cadc536..c6140b0 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -1193,6 +1193,17 @@ should_be_inserted (struct bp_location *bpt)
if (!bpt->enabled || bpt->shlib_disabled || bpt->duplicate)
return 0;
+ /* This is set for example, when we're attached to the parent of a
+ vfork, and have detached from the child. The child is running
+ free, and we expect it to do an exec or exit, at which point the
+ OS makes the parent schedulable again (and the target reports
+ that the vfork is done). Until the child is done with the shared
+ memory region, do not insert breakpoints in the parent, otherwise
+ the child could still trip on the parent's breakpoints. Since
+ the parent is blocked anyway, it won't miss any breakpoint. */
+ if (bpt->pspace->breakpoints_not_allowed)
+ return 0;
+
/* Tracepoints are inserted by the target at a time of its choosing,
not by us. */
if (bpt->owner->type == bp_tracepoint)
@@ -1530,25 +1541,6 @@ insert_breakpoint_locations (void)
&& ptid_equal (inferior_ptid, null_ptid))
continue;
- if (!ptid_equal (inferior_ptid, null_ptid))
- {
- struct inferior *inf = current_inferior ();
- if (inf->waiting_for_vfork_done)
- {
- /* This is set when we're attached to the parent of the
- vfork, and have detached from the child. The child
- is running free, and we expect it to do an exec or
- exit, at which point the OS makes the parent
- schedulable again (and the target reports that the
- vfork is done). Until the child is done with the
- shared memory region, do not insert breakpoints in
- parent, otherwise the child could still trip on the
- parent's breakpoints. Since the parent is blocked
- anyway, it won't miss any breakpoint. */
- continue;
- }
- }
-
val = insert_bp_location (b, tmp_error_stream,
&disabled_breaks,
&hw_breakpoint_error);
@@ -1573,7 +1565,7 @@ insert_breakpoint_locations (void)
continue;
for (loc = bpt->loc; loc; loc = loc->next)
- if (!loc->inserted)
+ if (!loc->inserted && should_be_inserted (loc))
{
some_failed = 1;
break;
@@ -3824,6 +3816,16 @@ bpstat_should_step (void)
return 0;
}
+int
+bpstat_causes_stop (bpstat bs)
+{
+ for (; bs != NULL; bs = bs->next)
+ if (bs->stop)
+ return 1;
+
+ return 0;
+}
+
\f
static void print_breakpoint_location (struct breakpoint *b,
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index d23a852..91e864c 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -629,6 +629,9 @@ extern struct breakpoint *bpstat_find_step_resume_breakpoint (bpstat);
a watchpoint enabled. */
#define bpstat_explains_signal(bs) ((bs) != NULL)
+/* Nonzero is this bpstat causes a stop. */
+extern int bpstat_causes_stop (bpstat);
+
/* Nonzero if we should step constantly (e.g. watchpoints on machines
without hardware support). This isn't related to a specific bpstat,
just to things like whether watchpoints are set. */
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 9d8ab68..98e215c 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2946,7 +2946,11 @@ handle_inferior_event (struct execution_control_state *ecs)
= bpstat_stop_status (get_regcache_aspace (get_current_regcache ()),
stop_pc, ecs->ptid);
- ecs->random_signal = !bpstat_explains_signal (ecs->event_thread->stop_bpstat);
+ /* Note that we're interested in knowing the bpstat actually
+ causes a stop, not just if it may explain the signal.
+ Software watchpoints, for example, always appear in the
+ bpstat. */
+ ecs->random_signal = !bpstat_causes_stop (ecs->event_thread->stop_bpstat);
/* If no catchpoint triggered for this, then keep going. */
if (ecs->random_signal)
@@ -3004,6 +3008,7 @@ handle_inferior_event (struct execution_control_state *ecs)
context_switch (ecs->ptid);
current_inferior ()->waiting_for_vfork_done = 0;
+ current_inferior ()->pspace->breakpoints_not_allowed = 0;
/* This also takes care of reinserting breakpoints in the
previously locked inferior. */
keep_going (ecs);
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index c0c0240..95feca6 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -793,6 +793,7 @@ holding the child stopped. Try \"set detach-on-fork\" or \
subsequent child exec or exit is enough to know when does
the child stops using the parent's address space. */
parent_inf->waiting_for_vfork_done = detach_fork;
+ parent_inf->pspace->breakpoints_not_allowed = detach_fork;
lp = find_lwp_pid (pid_to_ptid (parent_pid));
gdb_assert (linux_supports_tracefork_flag >= 0);
diff --git a/gdb/progspace.h b/gdb/progspace.h
index 0cf1382..4d87d16 100644
--- a/gdb/progspace.h
+++ b/gdb/progspace.h
@@ -165,6 +165,10 @@ struct program_space
to set breakpoints point at the wrong addresses. */
int executing_startup;
+ /* True if no breakpoints should be inserted in this program
+ space. */
+ int breakpoints_not_allowed;
+
/* The object file that the main symbol table was loaded from
(e.g. the argument to the "symbol-file" or "file" command). */
struct objfile *symfile_object_file;
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index fefd628..64eb802 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-15 Pedro Alves <pedro@codesourcery.com>
+
+ * gdb.base/watch-vfork.c, gdb.base/watch-vfork.exp: New files.
+
2009-11-13 Daniel Jacobowitz <dan@codesourcery.com>
* lib/gdb.exp (current_target_name): New procedure.
diff --git a/gdb/testsuite/gdb.base/watch-vfork.c b/gdb/testsuite/gdb.base/watch-vfork.c
new file mode 100644
index 0000000..a72be3d
--- /dev/null
+++ b/gdb/testsuite/gdb.base/watch-vfork.c
@@ -0,0 +1,41 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2009 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#include <unistd.h>
+
+int *global;
+
+int
+main (void)
+{
+ int pid;
+
+ pid = vfork ();
+ if (pid == -1)
+ {
+ return 1;
+ }
+ else if (pid != 0)
+ {
+ global = &pid;
+ }
+ else
+ {
+ _exit (0);
+ }
+ return 0;
+}
diff --git a/gdb/testsuite/gdb.base/watch-vfork.exp b/gdb/testsuite/gdb.base/watch-vfork.exp
new file mode 100644
index 0000000..940af99
--- /dev/null
+++ b/gdb/testsuite/gdb.base/watch-vfork.exp
@@ -0,0 +1,52 @@
+# This testcase is part of GDB, the GNU debugger.
+
+# Copyright 2009 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+global srcfile
+set testfile "watch-vfork"
+if { [build_executable ${testfile}.exp ${testfile} ${testfile}.c {debug}] } {
+ untested ${testfile}.exp
+ return -1
+}
+
+proc test_watchpoint_across_vfork { hw teststr } {
+ global testfile
+
+ clean_restart ${testfile}
+
+ if { ![runto main] } then {
+ fail "run to main ($teststr)"
+ return
+ }
+
+ if { ! $hw } {
+ gdb_test "set can-use-hw-watchpoints 0" "" ""
+ }
+
+ gdb_test "watch global" \
+ "atchpoint .*: global" \
+ "Watchpoint on global variable ($teststr)"
+
+ gdb_test "continue" \
+ "atchpoint .*: global.*" \
+ "Watchpoint triggers after vfork ($teststr)"
+}
+
+if { ![target_info exists gdb,no_hardware_watchpoints] } {
+ test_watchpoint_across_vfork 1 "hw"
+}
+
+test_watchpoint_across_vfork 0 "sw"
diff --git a/gdb/version.in b/gdb/version.in
index 6320344..0e67e74 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.0.50.20091114-cvs
+7.0.50.20091116-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 120+ messages in thread
end of thread, other threads:[~2011-02-01 19:25 UTC | newest]
Thread overview: 120+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-30 7:22 [SCM] master: Merge remote branch 'gdb/master' jkratoch
-- strict thread matches above, loose matches on Subject: below --
2011-02-01 19:25 jkratoch
2011-01-29 16:44 jkratoch
2011-01-25 12:53 pmuldoon
2011-01-25 9:10 jkratoch
2011-01-17 13:31 pmuldoon
2011-01-15 11:35 jkratoch
2011-01-14 8:04 jkratoch
2011-01-10 12:00 pmuldoon
2011-01-10 9:10 jkratoch
2011-01-07 5:57 jkratoch
2011-01-06 12:22 pmuldoon
2011-01-04 4:59 jkratoch
2010-12-31 22:30 jkratoch
2010-12-22 20:11 swagiaal
2010-12-14 17:13 jkratoch
2010-12-14 8:27 pmuldoon
2010-12-10 17:16 jkratoch
2010-12-08 15:55 pmuldoon
2010-12-06 6:40 jkratoch
2010-12-04 1:03 jkratoch
2010-12-02 15:47 pmuldoon
2010-11-30 0:15 jkratoch
2010-11-28 18:02 jkratoch
2010-11-28 5:41 jkratoch
2010-11-16 5:04 jkratoch
2010-11-12 11:47 pmuldoon
2010-11-11 11:39 pmuldoon
2010-11-10 9:09 pmuldoon
2010-11-08 9:34 pmuldoon
2010-11-07 18:15 jkratoch
2010-10-22 14:28 pmuldoon
2010-10-20 12:48 pmuldoon
2010-10-19 16:01 pmuldoon
2010-10-17 20:27 jkratoch
2010-10-15 17:07 jkratoch
2010-10-14 20:55 jkratoch
2010-10-13 15:06 jkratoch
2010-10-12 16:45 jkratoch
2010-10-11 9:21 jkratoch
2010-10-11 8:47 pmuldoon
2010-10-06 9:00 pmuldoon
2010-09-30 8:56 pmuldoon
2010-09-27 9:48 jkratoch
2010-09-20 12:34 pmuldoon
2010-09-16 20:49 ratmice
2010-09-04 19:59 jkratoch
2010-09-03 7:26 jkratoch
2010-09-02 15:04 jkratoch
2010-09-01 15:29 swagiaal
2010-08-23 13:54 jkratoch
2010-08-20 17:49 jkratoch
2010-08-12 15:19 swagiaal
2010-08-06 15:32 jkratoch
2010-07-29 19:17 swagiaal
2010-07-22 16:57 jkratoch
2010-07-22 16:26 jkratoch
2010-07-20 18:51 jkratoch
2010-07-09 8:09 jkratoch
2010-06-24 8:55 jkratoch
2010-06-23 20:56 jkratoch
2010-06-17 12:53 jkratoch
2010-06-07 8:14 jkratoch
2010-06-02 19:03 jkratoch
2010-05-28 21:27 jkratoch
2010-05-26 18:36 swagiaal
2010-05-17 18:02 jkratoch
2010-05-17 1:04 jkratoch
2010-05-10 19:30 swagiaal
2010-05-05 14:24 swagiaal
2010-05-03 13:49 jkratoch
2010-05-03 8:48 jkratoch
2010-05-02 23:10 jkratoch
2010-05-02 15:54 jkratoch
2010-04-30 7:11 jkratoch
2010-04-28 11:44 jkratoch
2010-04-25 20:22 jkratoch
2010-04-09 20:37 jkratoch
2010-04-07 1:41 jkratoch
2010-04-05 10:11 jkratoch
2010-04-04 11:58 jkratoch
2010-03-22 23:58 jkratoch
2010-03-20 17:23 jkratoch
2010-03-18 10:01 jkratoch
2010-03-17 18:04 jkratoch
2010-03-12 18:35 jkratoch
2010-03-04 22:28 jkratoch
2010-03-01 22:16 jkratoch
2010-02-26 22:16 jkratoch
2010-02-26 17:50 jkratoch
2010-02-17 16:01 swagiaal
2010-02-13 22:51 jkratoch
2010-02-11 12:51 jkratoch
2010-02-09 19:01 jkratoch
2010-02-08 21:46 jkratoch
2010-02-03 4:38 jkratoch
2010-01-31 17:25 jkratoch
2010-01-28 19:17 swagiaal
2010-01-28 10:56 jkratoch
2010-01-27 19:21 swagiaal
2010-01-27 8:08 jkratoch
2010-01-26 18:58 swagiaal
2010-01-20 21:48 jkratoch
2010-01-15 2:09 jkratoch
2010-01-15 0:52 jkratoch
2010-01-14 22:23 jkratoch
2010-01-13 20:53 jkratoch
2010-01-10 20:47 jkratoch
2010-01-09 10:03 jkratoch
2010-01-09 8:41 jkratoch
2010-01-08 19:16 jkratoch
2009-12-06 17:43 jkratoch
2009-12-03 16:32 jkratoch
2009-11-30 13:59 jkratoch
2009-11-24 21:21 jkratoch
2009-11-21 9:24 jkratoch
2009-11-20 21:06 jkratoch
2009-11-20 15:57 jkratoch
2009-11-17 19:59 jkratoch
2009-11-16 2:22 jkratoch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).