public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-01-07 5:57 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-01-07 5:57 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 4e8db338a850ad8a9c04e99a3d02852e2d0bd29d (commit)
via e20d822c0ea76308c9f4d06ed0592cb71c99717e (commit)
via 8a7a187e6291aefbd0264430a903b7d4750f8c2a (commit)
from bb9b3b4698de958da2cf67a9786b6b35e22c6180 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 4e8db338a850ad8a9c04e99a3d02852e2d0bd29d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 7 00:00:32 2011 +0000
*** empty log message ***
commit e20d822c0ea76308c9f4d06ed0592cb71c99717e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 6 00:00:03 2011 +0000
*** empty log message ***
commit 8a7a187e6291aefbd0264430a903b7d4750f8c2a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 5 00:00:02 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 3a62d4e..5f11a9d 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110104-cvs
+7.2.0.20110107-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-04-11 13:53 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-04-11 13:53 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 303278cc8bd6eb780432dceb17bc53e2b5aff85a (commit)
via 74471c39bbea5221e09f11a42122e6f36c624a54 (commit)
via ff35787c7cace73a36b5426fde9d558037d19cb5 (commit)
via 841e27d27c940cbd5751525d9249dfef872ef728 (commit)
via fb6317f933ae76da8688891afeb33fc7bf7868d8 (commit)
via ae5fd02a2412716236f4f10affcbc1f2f36382ca (commit)
from e5ed3af505ded6d24f87f2c024bca13690038de6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 303278cc8bd6eb780432dceb17bc53e2b5aff85a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Apr 3 00:00:03 2011 +0000
*** empty log message ***
commit 74471c39bbea5221e09f11a42122e6f36c624a54
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Apr 2 00:00:03 2011 +0000
*** empty log message ***
commit ff35787c7cace73a36b5426fde9d558037d19cb5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Apr 1 00:00:02 2011 +0000
*** empty log message ***
commit 841e27d27c940cbd5751525d9249dfef872ef728
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 31 00:00:33 2011 +0000
*** empty log message ***
commit fb6317f933ae76da8688891afeb33fc7bf7868d8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Mar 30 00:00:33 2011 +0000
*** empty log message ***
commit ae5fd02a2412716236f4f10affcbc1f2f36382ca
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Mar 29 00:00:33 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 35baba4..52a8640 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110328-cvs
+7.2.0.20110403-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-03-28 16:12 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-03-28 16:12 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via e5ed3af505ded6d24f87f2c024bca13690038de6 (commit)
via 18684d159ce242fa6188236a9b989a27d8a2f137 (commit)
via db741a20f56016394053134ec989a56846c1f0a2 (commit)
via 835229a665b0ffd5da74de99e45e1558e13b2d49 (commit)
via a3dce8a569258772af040056583e0cc3a02122ac (commit)
via b733b433337e8a961009f174dda82e8b13af415c (commit)
via 92fb50443be40e533d49ed0a54a92860c6a21c19 (commit)
via 0cf2c75f980905f51db5a611b8cae4f692a959f1 (commit)
from ae60ce8f0ad6f8c6c1388a07b41b4d39827c69cb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit e5ed3af505ded6d24f87f2c024bca13690038de6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Mar 28 00:00:32 2011 +0000
*** empty log message ***
commit 18684d159ce242fa6188236a9b989a27d8a2f137
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Mar 27 00:00:34 2011 +0000
*** empty log message ***
commit db741a20f56016394053134ec989a56846c1f0a2
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Mar 26 00:00:02 2011 +0000
*** empty log message ***
commit 835229a665b0ffd5da74de99e45e1558e13b2d49
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Mar 25 00:00:33 2011 +0000
*** empty log message ***
commit a3dce8a569258772af040056583e0cc3a02122ac
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 24 00:00:33 2011 +0000
*** empty log message ***
commit b733b433337e8a961009f174dda82e8b13af415c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Mar 23 00:00:02 2011 +0000
*** empty log message ***
commit 92fb50443be40e533d49ed0a54a92860c6a21c19
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Mar 22 00:00:33 2011 +0000
*** empty log message ***
commit 0cf2c75f980905f51db5a611b8cae4f692a959f1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Mar 21 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 29eb0a7..35baba4 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110320-cvs
+7.2.0.20110328-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-03-20 12:45 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-03-20 12:45 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via ae60ce8f0ad6f8c6c1388a07b41b4d39827c69cb (commit)
from 0d67e36793b57a30261830041affec3101c86fa5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ae60ce8f0ad6f8c6c1388a07b41b4d39827c69cb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Mar 20 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index a19751e..29eb0a7 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110319-cvs
+7.2.0.20110320-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-03-19 8:35 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-03-19 8:35 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 0d67e36793b57a30261830041affec3101c86fa5 (commit)
via 3ff1e179fdf03a9a1e7fd75174076b309fbec105 (commit)
via d7fbde9b5d32773380494f7d76e5655817b2e058 (commit)
via b13c434307630a06f75d195a0fbbbea1f06a3f12 (commit)
from de015f23158ddf229e423a9f0e902afcb0846ea8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 0d67e36793b57a30261830041affec3101c86fa5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Mar 19 00:00:02 2011 +0000
*** empty log message ***
commit 3ff1e179fdf03a9a1e7fd75174076b309fbec105
Author: kcy <kcy>
Date: Fri Mar 18 00:43:58 2011 +0000
2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
* MAINTAINERS: Add myself as a write-after-approval maintainer.
commit d7fbde9b5d32773380494f7d76e5655817b2e058
Author: kcy <kcy>
Date: Fri Mar 18 00:32:12 2011 +0000
Fix relocation of jump and call instructions (used when inserting fast
tracepoints).
2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
* amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
to store_signed_integer. Add debug message when relocating CALL
instructions. Fix formatting of debug message.
* i386-tdep.c (i386_relocate_instruction): Ditto.
commit b13c434307630a06f75d195a0fbbbea1f06a3f12
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Mar 18 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 11 +++++++++++
gdb/MAINTAINERS | 1 +
gdb/amd64-tdep.c | 15 +++++++++++----
gdb/i386-tdep.c | 15 +++++++++++----
gdb/version.in | 2 +-
5 files changed, 35 insertions(+), 9 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ea27ff3..ac5a8be 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,14 @@
+2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * MAINTAINERS: Add myself as a write-after-approval maintainer.
+
+2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
+ to store_signed_integer. Add debug message when relocating CALL
+ instructions. Fix formatting of debug message.
+ * i386-tdep.c (i386_relocate_instruction): Ditto.
+
2011-03-14 Tom Tromey <tromey@redhat.com>
PR gdb/12576:
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index 2b3a3e0..463c2d8 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -618,6 +618,7 @@ Ulrich Weigand uweigand@de.ibm.com
Nathan Williams nathanw@wasabisystems.com
Bob Wilson bob.wilson@acm.org
Jim Wilson wilson@tuliptree.org
+Kwok Cheung Yeung kcy@codesourcery.com
Elena Zannoni elena.zannoni@oracle.com
Eli Zaretskii eliz@gnu.org
Jie Zhang jie@codesourcery.com
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 9feed90..dcfa965 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -1588,7 +1588,14 @@ amd64_relocate_instruction (struct gdbarch *gdbarch,
/* Adjust the destination offset. */
rel32 = extract_signed_integer (insn + 1, 4, byte_order);
newrel = (oldloc - *to) + rel32;
- store_signed_integer (insn + 1, 4, newrel, byte_order);
+ store_signed_integer (insn + 1, 4, byte_order, newrel);
+
+ if (debug_displaced)
+ fprintf_unfiltered (gdb_stdlog,
+ "Adjusted insn rel32=%s at %s to"
+ " rel32=%s at %s\n",
+ hex_string (rel32), paddress (gdbarch, oldloc),
+ hex_string (newrel), paddress (gdbarch, *to));
/* Write the adjusted jump into its displaced location. */
append_insns (to, 5, insn);
@@ -1611,11 +1618,11 @@ amd64_relocate_instruction (struct gdbarch *gdbarch,
{
rel32 = extract_signed_integer (insn + offset, 4, byte_order);
newrel = (oldloc - *to) + rel32;
- store_signed_integer (insn + offset, 4, newrel, byte_order);
+ store_signed_integer (insn + offset, 4, byte_order, newrel);
if (debug_displaced)
fprintf_unfiltered (gdb_stdlog,
- "Adjusted insn rel32=0x%s at 0x%s to"
- " rel32=0x%s at 0x%s\n",
+ "Adjusted insn rel32=%s at %s to"
+ " rel32=%s at %s\n",
hex_string (rel32), paddress (gdbarch, oldloc),
hex_string (newrel), paddress (gdbarch, *to));
}
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 435b623..8102426 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -747,7 +747,14 @@ i386_relocate_instruction (struct gdbarch *gdbarch,
/* Adjust the destination offset. */
rel32 = extract_signed_integer (insn + 1, 4, byte_order);
newrel = (oldloc - *to) + rel32;
- store_signed_integer (insn + 1, 4, newrel, byte_order);
+ store_signed_integer (insn + 1, 4, byte_order, newrel);
+
+ if (debug_displaced)
+ fprintf_unfiltered (gdb_stdlog,
+ "Adjusted insn rel32=%s at %s to"
+ " rel32=%s at %s\n",
+ hex_string (rel32), paddress (gdbarch, oldloc),
+ hex_string (newrel), paddress (gdbarch, *to));
/* Write the adjusted jump into its displaced location. */
append_insns (to, 5, insn);
@@ -766,11 +773,11 @@ i386_relocate_instruction (struct gdbarch *gdbarch,
{
rel32 = extract_signed_integer (insn + offset, 4, byte_order);
newrel = (oldloc - *to) + rel32;
- store_signed_integer (insn + offset, 4, newrel, byte_order);
+ store_signed_integer (insn + offset, 4, byte_order, newrel);
if (debug_displaced)
fprintf_unfiltered (gdb_stdlog,
- "Adjusted insn rel32=0x%s at 0x%s to"
- " rel32=0x%s at 0x%s\n",
+ "Adjusted insn rel32=%s at %s to"
+ " rel32=%s at %s\n",
hex_string (rel32), paddress (gdbarch, oldloc),
hex_string (newrel), paddress (gdbarch, *to));
}
diff --git a/gdb/version.in b/gdb/version.in
index f71f5b2..a19751e 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110317-cvs
+7.2.0.20110319-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-03-17 15:12 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-03-17 15:12 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via de015f23158ddf229e423a9f0e902afcb0846ea8 (commit)
from a3a0a794bfa5f6deacdea8a3e2ddecb228f74638 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit de015f23158ddf229e423a9f0e902afcb0846ea8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 17 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 5b030cd..f71f5b2 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110316-cvs
+7.2.0.20110317-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-03-16 7:11 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-03-16 7:11 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via a3a0a794bfa5f6deacdea8a3e2ddecb228f74638 (commit)
from aca9d761dc6f74a8e57f749d509acf9914a5d1f9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit a3a0a794bfa5f6deacdea8a3e2ddecb228f74638
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Mar 16 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index ed02633..5b030cd 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110315-cvs
+7.2.0.20110316-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-03-15 20:20 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-03-15 20:20 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via aca9d761dc6f74a8e57f749d509acf9914a5d1f9 (commit)
via 4a9bb84edad606964192e679fa9487d5fba7f8c9 (commit)
via db425ebcdce21fffe59ee11fb9ef188463bd7cd1 (commit)
via de88681aa009084adf0751457694e197b6f3962a (commit)
via 953de73d64d48b4032aa2931b6a9015a6d5d85eb (commit)
via 65cb55ae8dee9c292044b775a35d09200686a4fc (commit)
via ad1bd0d885fe4c8d716733bb633a331411ecc206 (commit)
from 82d7fd5439a4d7e7c6eaf93732834ca9b1dc4286 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit aca9d761dc6f74a8e57f749d509acf9914a5d1f9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Mar 15 00:00:33 2011 +0000
*** empty log message ***
commit 4a9bb84edad606964192e679fa9487d5fba7f8c9
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Mar 14 15:54:13 2011 +0000
PR gdb/12576:
* dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
(needs_frame_dwarf_call): Likewise.
commit db425ebcdce21fffe59ee11fb9ef188463bd7cd1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Mar 14 00:00:03 2011 +0000
*** empty log message ***
commit de88681aa009084adf0751457694e197b6f3962a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Mar 13 00:00:03 2011 +0000
*** empty log message ***
commit 953de73d64d48b4032aa2931b6a9015a6d5d85eb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Mar 12 00:00:33 2011 +0000
*** empty log message ***
commit 65cb55ae8dee9c292044b775a35d09200686a4fc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Mar 11 00:00:03 2011 +0000
*** empty log message ***
commit ad1bd0d885fe4c8d716733bb633a331411ecc206
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 10 00:00:32 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 6 ++++++
gdb/dwarf2loc.c | 6 +++---
gdb/version.in | 2 +-
3 files changed, 10 insertions(+), 4 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index df6ec77..ea27ff3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-14 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/12576:
+ * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
+ (needs_frame_dwarf_call): Likewise.
+
2011-03-08 Pedro Alves <pedro@codesourcery.com>
* remote.c (remote_check_symbols): Skip if the target has no
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index f59bc40..dd618e7 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -1,6 +1,6 @@
/* DWARF 2 location expression support for GDB.
- Copyright (C) 2003, 2005, 2007, 2008, 2009, 2010
+ Copyright (C) 2003, 2005, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Contributed by Daniel Jacobowitz, MontaVista Software, Inc.
@@ -260,7 +260,7 @@ 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);
+ per_cu_dwarf_call (ctx, die_offset, debaton->per_cu);
}
struct piece_closure
@@ -1070,7 +1070,7 @@ needs_frame_dwarf_call (struct dwarf_expr_context *ctx, size_t die_offset)
{
struct needs_frame_baton *nf_baton = ctx->baton;
- return per_cu_dwarf_call (ctx, die_offset, nf_baton->per_cu);
+ per_cu_dwarf_call (ctx, die_offset, nf_baton->per_cu);
}
/* Return non-zero iff the location expression at DATA (length SIZE)
diff --git a/gdb/version.in b/gdb/version.in
index 18b4e92..ed02633 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110309-cvs
+7.2.0.20110315-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-03-09 22:50 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-03-09 22:50 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 82d7fd5439a4d7e7c6eaf93732834ca9b1dc4286 (commit)
via ccd77d74672879f2654d8bdce523ab41e01ea323 (commit)
from 6b6b59338753501b088ec4da07f404468f027e68 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 82d7fd5439a4d7e7c6eaf93732834ca9b1dc4286
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Mar 9 00:00:02 2011 +0000
*** empty log message ***
commit ccd77d74672879f2654d8bdce523ab41e01ea323
Author: Pedro Alves <pedro@codesourcery.com>
Date: Tue Mar 8 12:11:46 2011 +0000
gdb/
2011-03-08 Pedro Alves <pedro@codesourcery.com>
* remote.c (remote_check_symbols): Skip if the target has no
execution.
gdb/testsuite/
2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.server/ext-run.exp
(load new file without any gdbserver inferior): New test.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 5 +++++
gdb/remote.c | 11 ++++++++++-
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.server/ext-run.exp | 5 +++++
gdb/version.in | 2 +-
5 files changed, 26 insertions(+), 2 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 289c5e2..df6ec77 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-08 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (remote_check_symbols): Skip if the target has no
+ execution.
+
2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
* c-valprint.c (c_val_print): Add embedded_offset to address
diff --git a/gdb/remote.c b/gdb/remote.c
index d1b52b7..70daf82 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3431,10 +3431,19 @@ remote_check_symbols (struct objfile *objfile)
struct minimal_symbol *sym;
int end;
+ /* The remote side has no concept of inferiors that aren't running
+ yet, it only knows about running processes. If we're connected
+ but our current inferior is not running, we should not invite the
+ remote target to request symbol lookups related to its
+ (unrelated) current process. */
+ if (!target_has_execution)
+ return;
+
if (remote_protocol_packets[PACKET_qSymbol].support == PACKET_DISABLE)
return;
- /* Make sure the remote is pointing at the right process. */
+ /* Make sure the remote is pointing at the right process. Note
+ there's no way to select "no process". */
set_general_process ();
/* Allocate a message buffer. We can't reuse the input buffer in RS,
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 4889add..e5e6c42 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.server/ext-run.exp
+ (load new file without any gdbserver inferior): New test.
+
2011-01-14 Joel Brobecker <brobecker@adacore.com>
* gdb.base/wchar.c, gdb.base/wchar.exp: New testcases.
diff --git a/gdb/testsuite/gdb.server/ext-run.exp b/gdb/testsuite/gdb.server/ext-run.exp
index d8fda73..0016432 100644
--- a/gdb/testsuite/gdb.server/ext-run.exp
+++ b/gdb/testsuite/gdb.server/ext-run.exp
@@ -57,4 +57,9 @@ if { [istarget *-*-linux*] } {
}
gdb_test "kill" "" "kill" "Kill the program being debugged.*" "y"
+
+gdb_load $binfile
+gdb_test "monitor help" "The following monitor commands.*" \
+ "load new file without any gdbserver inferior"
+
gdb_test_no_output "monitor exit"
diff --git a/gdb/version.in b/gdb/version.in
index 88e3090..18b4e92 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110308-cvs
+7.2.0.20110309-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-03-08 8:16 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-03-08 8:16 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 6b6b59338753501b088ec4da07f404468f027e68 (commit)
via 6488eb3acb7f9c8527887c7433329d9365dbdd58 (commit)
via a6692e61349e7c38c910b99a42f6d10bcda05f82 (commit)
from 721471b98ffdb8f47ab017b18b218a4636bd1dfd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6b6b59338753501b088ec4da07f404468f027e68
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Mar 8 00:00:33 2011 +0000
*** empty log message ***
commit 6488eb3acb7f9c8527887c7433329d9365dbdd58
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Mar 7 00:00:33 2011 +0000
*** empty log message ***
commit a6692e61349e7c38c910b99a42f6d10bcda05f82
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Mar 6 00:00:33 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index f67b774..88e3090 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110305-cvs
+7.2.0.20110308-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-03-05 7:15 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-03-05 7:15 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 721471b98ffdb8f47ab017b18b218a4636bd1dfd (commit)
via 4765a20058bfd70bdbbc302c4cec61c9cab68781 (commit)
via 255884b4b43a4edacc91afb810b304d2aabfae59 (commit)
via 094faa405c5e9edb5c060d4fc56dbdb3cf0a163e (commit)
via b939e0e3de1bb14e39fe190fdc95af3eb0e8c896 (commit)
via 6413b5e09b0405c5372f5aeba82f065e04269de0 (commit)
via e4bc5a383864df5ebebfb980e6b558ae215125e4 (commit)
via d9e5f2bc32788a10f2f23ba3d078d1f130e87262 (commit)
via 0ea89bb238997e2a3ebfd3dfd3f04370f6531e04 (commit)
from 787f3a2560d14fde3738686bf4b1af5cf32c6d83 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 721471b98ffdb8f47ab017b18b218a4636bd1dfd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Mar 5 00:00:03 2011 +0000
*** empty log message ***
commit 4765a20058bfd70bdbbc302c4cec61c9cab68781
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Mar 4 00:00:02 2011 +0000
*** empty log message ***
commit 255884b4b43a4edacc91afb810b304d2aabfae59
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Mar 3 00:00:33 2011 +0000
*** empty log message ***
commit 094faa405c5e9edb5c060d4fc56dbdb3cf0a163e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Mar 2 00:00:32 2011 +0000
*** empty log message ***
commit b939e0e3de1bb14e39fe190fdc95af3eb0e8c896
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Mar 1 00:00:32 2011 +0000
*** empty log message ***
commit 6413b5e09b0405c5372f5aeba82f065e04269de0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Feb 28 00:00:33 2011 +0000
*** empty log message ***
commit e4bc5a383864df5ebebfb980e6b558ae215125e4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Feb 27 00:00:32 2011 +0000
*** empty log message ***
commit d9e5f2bc32788a10f2f23ba3d078d1f130e87262
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Feb 26 00:00:34 2011 +0000
*** empty log message ***
commit 0ea89bb238997e2a3ebfd3dfd3f04370f6531e04
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Feb 25 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 4fe5217..f67b774 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110224-cvs
+7.2.0.20110305-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-02-24 1:29 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-02-24 1:29 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 787f3a2560d14fde3738686bf4b1af5cf32c6d83 (commit)
via 4bc6e10575cf8f72f8d7a5c94d8de79162d0e2ab (commit)
from 23e5bf368bd9dde1760ea3dbf01d009c295a0b7e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 787f3a2560d14fde3738686bf4b1af5cf32c6d83
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Feb 24 00:00:02 2011 +0000
*** empty log message ***
commit 4bc6e10575cf8f72f8d7a5c94d8de79162d0e2ab
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Feb 23 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 43c1a83..4fe5217 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110222-cvs
+7.2.0.20110224-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-02-22 22:55 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-02-22 22:55 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 23e5bf368bd9dde1760ea3dbf01d009c295a0b7e (commit)
via 4bc6f711e697c2418403b65062921d8956c5b81f (commit)
via a7f9adc6ea3368cd8c508b1f094395c7335d76f7 (commit)
from 09ca883f836814976f37bacb0866e9a0cf8ad45f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 23e5bf368bd9dde1760ea3dbf01d009c295a0b7e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Feb 22 00:00:33 2011 +0000
*** empty log message ***
commit 4bc6f711e697c2418403b65062921d8956c5b81f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Feb 21 00:00:02 2011 +0000
*** empty log message ***
commit a7f9adc6ea3368cd8c508b1f094395c7335d76f7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Feb 20 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 8153e10..43c1a83 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110219-cvs
+7.2.0.20110222-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-02-19 20:17 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-02-19 20:17 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 09ca883f836814976f37bacb0866e9a0cf8ad45f (commit)
via 46c03ac1ce4bde2e93b97769c09c1328dd2ba1d4 (commit)
via 457611fd62e0e2b56defeb3df62f3928c0ac80f6 (commit)
from 66dd0c76ee8edfc44280874d70638ea2fcb45d6a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 09ca883f836814976f37bacb0866e9a0cf8ad45f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Feb 19 00:00:03 2011 +0000
*** empty log message ***
commit 46c03ac1ce4bde2e93b97769c09c1328dd2ba1d4
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date: Fri Feb 18 17:15:41 2011 +0000
* c-valprint.c (c_val_print): Add embedded_offset to address
for arrays of unspecified length.
* p-valprint.c (pascal_val_print): Likewise.
commit 457611fd62e0e2b56defeb3df62f3928c0ac80f6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Feb 18 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 6 ++++++
gdb/c-valprint.c | 2 +-
gdb/p-valprint.c | 2 +-
gdb/version.in | 2 +-
4 files changed, 9 insertions(+), 3 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9f935d3..289c5e2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * c-valprint.c (c_val_print): Add embedded_offset to address
+ for arrays of unspecified length.
+ * p-valprint.c (pascal_val_print): Likewise.
+
2011-02-11 Pedro Alves <pedro@codesourcery.com>
* infrun.c (proceed): Move switching out and in of tfind mode from
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 85ca354..5ff65e2 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -230,7 +230,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
break;
}
/* Array of unspecified length: treat like pointer to first elt. */
- addr = address;
+ addr = address + embedded_offset;
goto print_unpacked_pointer;
case TYPE_CODE_MEMBERPTR:
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index 4d39bed..633a233 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -132,7 +132,7 @@ pascal_val_print (struct type *type, const gdb_byte *valaddr,
break;
}
/* Array of unspecified length: treat like pointer to first elt. */
- addr = address;
+ addr = address + embedded_offset;
goto print_unpacked_pointer;
case TYPE_CODE_PTR:
diff --git a/gdb/version.in b/gdb/version.in
index 4e9fa6d..8153e10 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110217-cvs
+7.2.0.20110219-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-02-17 22:03 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-02-17 22:03 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 66dd0c76ee8edfc44280874d70638ea2fcb45d6a (commit)
from 7d5f78e86cbb2f7f275fbddab5eec2609c36b522 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 66dd0c76ee8edfc44280874d70638ea2fcb45d6a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Feb 17 00:00:33 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index f9057dd..4e9fa6d 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110216-cvs
+7.2.0.20110217-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-02-16 22:30 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-02-16 22:30 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 7d5f78e86cbb2f7f275fbddab5eec2609c36b522 (commit)
via 7275ffb04065af76953f29b42329c124c173cf6a (commit)
via 409a11a61350c71fd3dfbc320e068b71949662ca (commit)
from 6d31a598766da062819bd72d2d633b1b9491587d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 7d5f78e86cbb2f7f275fbddab5eec2609c36b522
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Feb 16 00:00:32 2011 +0000
*** empty log message ***
commit 7275ffb04065af76953f29b42329c124c173cf6a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Feb 15 00:00:33 2011 +0000
*** empty log message ***
commit 409a11a61350c71fd3dfbc320e068b71949662ca
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Feb 14 00:00:32 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index bcee7db..f9057dd 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110213-cvs
+7.2.0.20110216-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-02-13 17:49 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-02-13 17:49 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 6d31a598766da062819bd72d2d633b1b9491587d (commit)
via b226aae6dbeed541e1c79b599af1b6610859e572 (commit)
via 932f487794686d074efd630fd80b1c69eb0978ab (commit)
via 2e68f9462631742b4f51f0cb2ab069055a7d93fc (commit)
via b18e809ba26f02dd4dda7c6a8b999432cf6d3b67 (commit)
via 25730f13a9d090f68ee0a140ed65d319a51a5241 (commit)
via 7002aba9b56e622262ec654ac837564132c9d3b7 (commit)
via d93d2cd097fa6b5d4675eea29aaa7cfbceff3c12 (commit)
from f746ca7cd3608a373918d8ac7d229bd29777bf26 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6d31a598766da062819bd72d2d633b1b9491587d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Feb 13 00:00:03 2011 +0000
*** empty log message ***
commit b226aae6dbeed541e1c79b599af1b6610859e572
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Feb 12 00:00:33 2011 +0000
*** empty log message ***
commit 932f487794686d074efd630fd80b1c69eb0978ab
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Feb 11 15:04:46 2011 +0000
* infrun.c (proceed): Move switching out and in of tfind mode from
here ...
(fetch_inferior_event): ... to here.
commit 2e68f9462631742b4f51f0cb2ab069055a7d93fc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Feb 11 00:00:03 2011 +0000
*** empty log message ***
commit b18e809ba26f02dd4dda7c6a8b999432cf6d3b67
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Feb 10 00:00:33 2011 +0000
*** empty log message ***
commit 25730f13a9d090f68ee0a140ed65d319a51a5241
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Feb 9 00:00:03 2011 +0000
*** empty log message ***
commit 7002aba9b56e622262ec654ac837564132c9d3b7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Feb 8 00:00:03 2011 +0000
*** empty log message ***
commit d93d2cd097fa6b5d4675eea29aaa7cfbceff3c12
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Feb 7 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 6 ++++++
gdb/infrun.c | 20 ++++++++++----------
gdb/version.in | 2 +-
3 files changed, 17 insertions(+), 11 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 41c076b..9f935d3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-11 Pedro Alves <pedro@codesourcery.com>
+
+ * infrun.c (proceed): Move switching out and in of tfind mode from
+ here ...
+ (fetch_inferior_event): ... to here.
+
2011-01-18 Joel Brobecker <brobecker@adacore.com>
* ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 3ac82f6..20ce924 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1954,16 +1954,6 @@ proceed (CORE_ADDR addr, enum target_signal siggnal, int step)
"infrun: proceed (addr=%s, signal=%d, step=%d)\n",
paddress (gdbarch, addr), siggnal, step);
- /* We're handling a live event, so make sure we're doing live
- debugging. If we're looking at traceframes while the target is
- running, we're going to need to get back to that mode after
- handling the event. */
- if (non_stop)
- {
- make_cleanup_restore_current_traceframe ();
- set_traceframe_number (-1);
- }
-
if (non_stop)
/* In non-stop, each thread is handled individually. The context
must already be set to the right thread here. */
@@ -2607,6 +2597,16 @@ fetch_inferior_event (void *client_data)
/* We'll update this if & when we switch to a new thread. */
previous_inferior_ptid = inferior_ptid;
+ /* We're handling a live event, so make sure we're doing live
+ debugging. If we're looking at traceframes while the target is
+ running, we're going to need to get back to that mode after
+ handling the event. */
+ if (non_stop)
+ {
+ make_cleanup_restore_current_traceframe ();
+ set_traceframe_number (-1);
+ }
+
if (non_stop)
/* In non-stop mode, the user/frontend should not notice a thread
switch due to internal events. Make sure we reverse to the
diff --git a/gdb/version.in b/gdb/version.in
index f829701..bcee7db 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110206-cvs
+7.2.0.20110213-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-02-06 19:15 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-02-06 19:15 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via f746ca7cd3608a373918d8ac7d229bd29777bf26 (commit)
via 28470bbfba636211c628a2827eaecddc7f64a2be (commit)
via b18ed5b87f24a5eda4d9175b391f0e1378528804 (commit)
via cdc9f7f76474d8e9152e7fdffc289049da0434ca (commit)
via a4d937db02093a417ad0686b556881775001e6b7 (commit)
from 83ed57eecb24fc2ce567a414a9fdd74e2b4ad14b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f746ca7cd3608a373918d8ac7d229bd29777bf26
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Feb 6 00:00:03 2011 +0000
*** empty log message ***
commit 28470bbfba636211c628a2827eaecddc7f64a2be
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Feb 5 00:00:33 2011 +0000
*** empty log message ***
commit b18ed5b87f24a5eda4d9175b391f0e1378528804
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Feb 4 00:00:02 2011 +0000
*** empty log message ***
commit cdc9f7f76474d8e9152e7fdffc289049da0434ca
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Feb 3 00:00:02 2011 +0000
*** empty log message ***
commit a4d937db02093a417ad0686b556881775001e6b7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Feb 2 00:00:33 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index d657962..f829701 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110201-cvs
+7.2.0.20110206-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-02-01 19:25 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-02-01 19:25 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 83ed57eecb24fc2ce567a414a9fdd74e2b4ad14b (commit)
via 03b425499b9552ad15f555f2d0a0ce464f5d5f87 (commit)
via 1d89125eab885773f4a17bd125b978e9193439a2 (commit)
from b0d346536e19d7f6eef2853f932e89c7eb98e4a6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 83ed57eecb24fc2ce567a414a9fdd74e2b4ad14b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Feb 1 00:00:33 2011 +0000
*** empty log message ***
commit 03b425499b9552ad15f555f2d0a0ce464f5d5f87
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 31 00:00:32 2011 +0000
*** empty log message ***
commit 1d89125eab885773f4a17bd125b978e9193439a2
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 30 00:00:33 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index e0fe8cd..d657962 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110129-cvs
+7.2.0.20110201-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-01-29 16:44 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-01-29 16:44 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via b0d346536e19d7f6eef2853f932e89c7eb98e4a6 (commit)
via 34569b4f8bf525c159ee5a051ab550c2645dc20f (commit)
via 239cbc9d2cc995e94ee30fa273aa1cd12c59d8d3 (commit)
via c6f197d8a794040443c4ef656a731a6150fa3943 (commit)
from 4bec4bde2b45de87d887ba241948f9e1cd67039e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit b0d346536e19d7f6eef2853f932e89c7eb98e4a6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 29 00:00:33 2011 +0000
*** empty log message ***
commit 34569b4f8bf525c159ee5a051ab550c2645dc20f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 28 00:00:03 2011 +0000
*** empty log message ***
commit 239cbc9d2cc995e94ee30fa273aa1cd12c59d8d3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 27 00:00:35 2011 +0000
*** empty log message ***
commit c6f197d8a794040443c4ef656a731a6150fa3943
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 26 00:00:33 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 616ba05..e0fe8cd 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110125-cvs
+7.2.0.20110129-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-01-25 9:11 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-01-25 9:11 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 4bec4bde2b45de87d887ba241948f9e1cd67039e (commit)
via c436f2d8ab4dfa67da57c65619a05173219d6429 (commit)
via 04f0cc99958ea607aa4506f9187ca6525ed12b68 (commit)
via 4f1ce0f9b926e3d7fcf860773710264e2cbe3885 (commit)
via 0fbc3732725941c87f04695f61ac675e8ad5305b (commit)
via 9ecefbab484ca81c27d03b6eb284a04444dceaa3 (commit)
via 3a66917849133a2789d5e51b5041d3d63d561f6b (commit)
via 7d4c274bc7e36c90a032e093e5b9153f9be7a32e (commit)
via 39e2cef60897a8323c30eeab65b74f690238fd2e (commit)
from 8f46f9ed50030755ed64c9cd9f6d7a00bd190657 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 4bec4bde2b45de87d887ba241948f9e1cd67039e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 25 00:00:03 2011 +0000
*** empty log message ***
commit c436f2d8ab4dfa67da57c65619a05173219d6429
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 24 00:00:33 2011 +0000
*** empty log message ***
commit 04f0cc99958ea607aa4506f9187ca6525ed12b68
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 23 00:00:33 2011 +0000
*** empty log message ***
commit 4f1ce0f9b926e3d7fcf860773710264e2cbe3885
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 22 00:00:32 2011 +0000
*** empty log message ***
commit 0fbc3732725941c87f04695f61ac675e8ad5305b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 21 00:00:03 2011 +0000
*** empty log message ***
commit 9ecefbab484ca81c27d03b6eb284a04444dceaa3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 20 00:00:02 2011 +0000
*** empty log message ***
commit 3a66917849133a2789d5e51b5041d3d63d561f6b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 19 00:00:33 2011 +0000
*** empty log message ***
commit 7d4c274bc7e36c90a032e093e5b9153f9be7a32e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Tue Jan 18 17:03:52 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 39e2cef60897a8323c30eeab65b74f690238fd2e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 18 00:00:33 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 5 +++++
gdb/ada-valprint.c | 5 ++---
gdb/version.in | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4edda80..41c076b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-18 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
+ (ada_val_print_1): Likewise.
+
2011-01-14 Joel Brobecker <brobecker@adacore.com>
* ada-valprint. (ada_printchar): Use the correct type length
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index c9a8c94..cc74a33 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -417,7 +417,7 @@ ada_print_scalar (struct type *type, LONGEST val, struct ui_file *stream)
break;
case TYPE_CODE_CHAR:
- LA_PRINT_CHAR ((unsigned char) val, type, stream);
+ LA_PRINT_CHAR (val, type, stream);
break;
case TYPE_CODE_BOOL:
@@ -795,8 +795,7 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr0,
if (ada_is_character_type (type))
{
fputs_filtered (" ", stream);
- ada_printchar ((unsigned char) unpack_long (type, valaddr),
- type, stream);
+ ada_printchar (unpack_long (type, valaddr), type, stream);
}
}
return 0;
diff --git a/gdb/version.in b/gdb/version.in
index 2bb82ce..616ba05 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110117-cvs
+7.2.0.20110125-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-01-17 14:05 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-01-17 14:05 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 8f46f9ed50030755ed64c9cd9f6d7a00bd190657 (commit)
via 38ea00711bcf7c42f966837966f5b8674054d6b6 (commit)
from d9e1da669254297fbb27490e54fa97c2b365bb4d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 8f46f9ed50030755ed64c9cd9f6d7a00bd190657
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 17 00:00:03 2011 +0000
*** empty log message ***
commit 38ea00711bcf7c42f966837966f5b8674054d6b6
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 16 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 6058ada..2bb82ce 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110115-cvs
+7.2.0.20110117-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-01-15 11:35 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-01-15 11:35 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via d9e1da669254297fbb27490e54fa97c2b365bb4d (commit)
via 353e74e9bf58682f2eb5288844485fbff8de38ee (commit)
via 3ba6410aa53b3d8125151a83329bde23c1a84246 (commit)
via 944bd1df01574fa3ecb254eef23fdf5abcb5980e (commit)
via 013af6b6e0442c6e9b27a3926a40ee17934f1084 (commit)
from 8c9fa63f533c60f7261a8e149ce298a12a2e0a2e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit d9e1da669254297fbb27490e54fa97c2b365bb4d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 15 00:00:33 2011 +0000
*** empty log message ***
commit 353e74e9bf58682f2eb5288844485fbff8de38ee
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 14 20:19:05 2011 +0000
new testcase printing wchar_t characters and strings
gdb/testsuite/ChangeLog:
* gdb.base/wchar.c, gdb.base/wchar.exp: New testcases.
commit 3ba6410aa53b3d8125151a83329bde23c1a84246
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 14 20:18:47 2011 +0000
new testcase for Ada Wide Wide Characters and Strings
gdb/testsuite/ChangeLog:
* gdb.ada/widewide: New testcase.
commit 944bd1df01574fa3ecb254eef23fdf5abcb5980e
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 14 20:18:21 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 013af6b6e0442c6e9b27a3926a40ee17934f1084
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Jan 14 20:18:09 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.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 12 ++++++++
gdb/ada-valprint.c | 24 +++++++++-------
gdb/c-valprint.c | 4 +-
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/testsuite/gdb.base/wchar.c | 40 +++++++++++++++++++++++++++
gdb/testsuite/gdb.base/wchar.exp | 38 +++++++++++++++++++++++++
gdb/version.in | 2 +-
11 files changed, 233 insertions(+), 14 deletions(-)
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
create mode 100644 gdb/testsuite/gdb.base/wchar.c
create mode 100644 gdb/testsuite/gdb.base/wchar.exp
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cb0e021..4edda80 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2011-01-14 Joel Brobecker <brobecker@adacore.com>
+
+ * 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.
+
+2011-01-14 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.
+
2010-12-30 Hui Zhu <teawater@gmail.com>
* ax-gdb.c (gen_expr): Change error message.
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index 2ab2ba2..c9a8c94 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -261,18 +261,19 @@ printable_val_type (struct type *type, const gdb_byte *valaddr)
/* Print the character C on STREAM as part of the contents of a literal
string whose delimiter is QUOTER. TYPE_LEN is the length in bytes
- (1 or 2) of the character. */
+ of the character. */
void
ada_emit_char (int c, struct type *type, struct ui_file *stream,
int quoter, int type_len)
{
- if (type_len != 2)
- type_len = 1;
-
- c &= (1 << (type_len * TARGET_CHAR_BIT)) - 1;
-
- if (isascii (c) && isprint (c))
+ /* If this character fits in the normal ASCII range, and is
+ a printable character, then print the character as if it was
+ an ASCII character, even if this is a wide character.
+ The UCHAR_MAX check is necessary because the isascii function
+ requires that its argument have a value of an unsigned char,
+ or EOF (EOF is obviously not printable). */
+ if (c <= UCHAR_MAX && isascii (c) && isprint (c))
{
if (c == quoter && c == '"')
fprintf_filtered (stream, "\"\"");
@@ -283,8 +284,8 @@ ada_emit_char (int c, struct type *type, struct ui_file *stream,
fprintf_filtered (stream, "[\"%0*x\"]", type_len * 2, c);
}
-/* Character #I of STRING, given that TYPE_LEN is the size in bytes (1
- or 2) of a character. */
+/* Character #I of STRING, given that TYPE_LEN is the size in bytes
+ of a character. */
static int
char_at (const gdb_byte *string, int i, int type_len,
@@ -293,7 +294,8 @@ char_at (const gdb_byte *string, int i, int type_len,
if (type_len == 1)
return string[i];
else
- return (int) extract_unsigned_integer (string + 2 * i, 2, byte_order);
+ return (int) extract_unsigned_integer (string + type_len * i,
+ type_len, byte_order);
}
/* Wrapper around memcpy to make it legal argument to ui_file_put */
@@ -366,7 +368,7 @@ void
ada_printchar (int c, struct type *type, struct ui_file *stream)
{
fputs_filtered ("'", stream);
- ada_emit_char (c, type, stream, '\'', 1);
+ ada_emit_char (c, type, stream, '\'', TYPE_LENGTH (type));
fputs_filtered ("'", stream);
}
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index f0895a4..85ca354 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -507,7 +507,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
if (c_textual_element_type (unresolved_type, options->format))
{
fputs_filtered (" ", stream);
- LA_PRINT_CHAR ((unsigned char) unpack_long (type, valaddr + embedded_offset),
+ LA_PRINT_CHAR (unpack_long (type, valaddr + embedded_offset),
unresolved_type, stream);
}
}
@@ -530,7 +530,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
else
fprintf_filtered (stream, "%d", (int) val);
fputs_filtered (" ", stream);
- LA_PRINT_CHAR ((unsigned char) val, unresolved_type, stream);
+ LA_PRINT_CHAR (val, unresolved_type, stream);
}
break;
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 93f1a88..4889add 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2011-01-14 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.base/wchar.c, gdb.base/wchar.exp: New testcases.
+
+2011-01-14 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.ada/widewide: New testcase.
+
2010-12-14 Yao Qi <yao@codesourcery.com>
Backport from mainline:
diff --git a/gdb/testsuite/gdb.ada/widewide.exp b/gdb/testsuite/gdb.ada/widewide.exp
new file mode 100644
index 0000000..83b6d74
--- /dev/null
+++ b/gdb/testsuite/gdb.ada/widewide.exp
@@ -0,0 +1,47 @@
+# Copyright 2011 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/>.
+
+load_lib "ada.exp"
+
+set testdir "widewide"
+set testfile "${testdir}/foo"
+set srcfile ${srcdir}/${subdir}/${testfile}.adb
+set binfile ${objdir}/${subdir}/${testfile}
+
+file mkdir ${objdir}/${subdir}/${testdir}
+if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
+ return -1
+}
+
+clean_restart ${testfile}
+
+set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
+if ![runto "foo.adb:$bp_location" ] then {
+ perror "Couldn't run ${testfile}"
+ return
+}
+
+gdb_test "print some_easy" "= 74 'J'"
+
+gdb_test "print some_larger" "= 48879 '\\\[\"0000beef\"\\\]'"
+
+gdb_test "print some_big" "= 14335727 '\\\[\"00dabeef\"\\\]'"
+
+gdb_test "print my_wws" "= \" helo\""
+
+gdb_test "print my_wws(1)" "= 32 ' '"
+
+gdb_test "print my_wws(2)" "= 104 'h'"
+
diff --git a/gdb/testsuite/gdb.ada/widewide/foo.adb b/gdb/testsuite/gdb.ada/widewide/foo.adb
new file mode 100644
index 0000000..056f1f0
--- /dev/null
+++ b/gdb/testsuite/gdb.ada/widewide/foo.adb
@@ -0,0 +1,27 @@
+-- Copyright 2011 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/>.
+
+with Pck; use Pck;
+
+procedure Foo is
+ Some_Easy : Wide_Wide_Character := 'J';
+ Some_Larger : Wide_Wide_Character := Wide_Wide_Character'Val(16#beef#);
+ Some_Big : Wide_Wide_Character := Wide_Wide_Character'Val(16#00dabeef#);
+ My_WWS : Wide_Wide_String := " helo";
+begin
+ Do_Nothing (Some_Easy'Address); -- START
+ Do_Nothing (Some_Larger'Address);
+ Do_Nothing (Some_Big'Address);
+end Foo;
diff --git a/gdb/testsuite/gdb.ada/widewide/pck.adb b/gdb/testsuite/gdb.ada/widewide/pck.adb
new file mode 100644
index 0000000..a9c836b
--- /dev/null
+++ b/gdb/testsuite/gdb.ada/widewide/pck.adb
@@ -0,0 +1,23 @@
+-- Copyright 2011 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/>.
+
+package body Pck is
+
+ procedure Do_Nothing (A : System.Address) is
+ begin
+ null;
+ end Do_Nothing;
+
+end Pck;
diff --git a/gdb/testsuite/gdb.ada/widewide/pck.ads b/gdb/testsuite/gdb.ada/widewide/pck.ads
new file mode 100644
index 0000000..c48415a
--- /dev/null
+++ b/gdb/testsuite/gdb.ada/widewide/pck.ads
@@ -0,0 +1,22 @@
+-- Copyright 2011 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/>.
+
+with System;
+
+package Pck is
+
+ procedure Do_Nothing (A : System.Address);
+
+end Pck;
diff --git a/gdb/testsuite/gdb.base/wchar.c b/gdb/testsuite/gdb.base/wchar.c
new file mode 100644
index 0000000..9eaf766
--- /dev/null
+++ b/gdb/testsuite/gdb.base/wchar.c
@@ -0,0 +1,40 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2011 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 <wchar.h>
+
+void
+do_nothing (wchar_t *c)
+{
+}
+
+int
+main (void)
+{
+ wchar_t narrow = 97;
+ wchar_t single = 0xbeef;
+ wchar_t simple[] = L"facile";
+ wchar_t difficile[] = { 0xdead, 0xbeef, 0xfeed, 0xface};
+ wchar_t mixed[] = {L'f', 0xdead, L'a', L'c', 0xfeed, 0xface};
+
+ do_nothing (&narrow); /* START */
+ do_nothing (&single);
+ do_nothing (simple);
+ do_nothing (difficile);
+ do_nothing (mixed);
+}
+
diff --git a/gdb/testsuite/gdb.base/wchar.exp b/gdb/testsuite/gdb.base/wchar.exp
new file mode 100644
index 0000000..f3e09f2
--- /dev/null
+++ b/gdb/testsuite/gdb.base/wchar.exp
@@ -0,0 +1,38 @@
+# Copyright 2011 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/>.
+
+set testfile wchar
+set srcfile ${testfile}.c
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
+ return -1
+}
+
+set bp_location [gdb_get_line_number "START"]
+if ![runto "wchar.c:$bp_location" ] then {
+ return -1
+}
+
+gdb_test "print narrow" "= 97 L'a'"
+
+gdb_test "print single" "= 48879 L'\\\\xbeef'"
+
+gdb_test "print simple" "= L\"facile\""
+
+gdb_test "print difficile" "= L\"\\\\xdead\\\\xbeef\\\\xfeed\\\\xface\""
+
+gdb_test "print simple\[2\]" "= 99 L'c'"
+
+gdb_test "print difficile\[2\]" "= 65261 L'\\\\xfeed'"
+
diff --git a/gdb/version.in b/gdb/version.in
index eb06d35..6058ada 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110114-cvs
+7.2.0.20110115-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-01-14 8:04 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-01-14 8:04 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 8c9fa63f533c60f7261a8e149ce298a12a2e0a2e (commit)
via c4fcd5b6e82553a26dd8e5805d36951f0e1db8c4 (commit)
via 5f47babbec51ea6c5319c07fcaf814194b8ba0f5 (commit)
via 0f1bea9fe50eae6f217f03a63687db0e55e09695 (commit)
from 8ef64465dfee6ecde6fb1e52280bb9a7b20c7fab (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 8c9fa63f533c60f7261a8e149ce298a12a2e0a2e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jan 14 00:00:33 2011 +0000
*** empty log message ***
commit c4fcd5b6e82553a26dd8e5805d36951f0e1db8c4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jan 13 00:00:33 2011 +0000
*** empty log message ***
commit 5f47babbec51ea6c5319c07fcaf814194b8ba0f5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jan 12 00:00:32 2011 +0000
*** empty log message ***
commit 0f1bea9fe50eae6f217f03a63687db0e55e09695
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 11 00:00:03 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 1c0f91d..eb06d35 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110110-cvs
+7.2.0.20110114-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-01-10 9:11 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-01-10 9:11 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 8ef64465dfee6ecde6fb1e52280bb9a7b20c7fab (commit)
via 93f83db78bcb152c441625f30d29cab338c51b68 (commit)
via 96b2ce33d71564fb9599285aa08827d6f5fe700d (commit)
from 4e8db338a850ad8a9c04e99a3d02852e2d0bd29d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 8ef64465dfee6ecde6fb1e52280bb9a7b20c7fab
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 10 00:00:02 2011 +0000
*** empty log message ***
commit 93f83db78bcb152c441625f30d29cab338c51b68
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 9 00:00:03 2011 +0000
*** empty log message ***
commit 96b2ce33d71564fb9599285aa08827d6f5fe700d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 8 00:00:33 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 5f11a9d..1c0f91d 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20110107-cvs
+7.2.0.20110110-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2011-01-04 4:59 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2011-01-04 4:59 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via bb9b3b4698de958da2cf67a9786b6b35e22c6180 (commit)
via 49435799bcb63f162c6ee0acf9e0eea3fb662c3a (commit)
via a24986c291d5fa2fd50cbe1bb72ea2128f650443 (commit)
via 98cad3f3d25116d8afb912e9cc54b1b007576f38 (commit)
from 4c33c5f4923970ffc107e4024eb5ddb61cc607fe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit bb9b3b4698de958da2cf67a9786b6b35e22c6180
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jan 4 00:00:33 2011 +0000
*** empty log message ***
commit 49435799bcb63f162c6ee0acf9e0eea3fb662c3a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jan 3 00:00:33 2011 +0000
*** empty log message ***
commit a24986c291d5fa2fd50cbe1bb72ea2128f650443
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jan 2 00:00:03 2011 +0000
*** empty log message ***
commit 98cad3f3d25116d8afb912e9cc54b1b007576f38
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jan 1 00:00:33 2011 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index ee39afc..3a62d4e 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101231-cvs
+7.2.0.20110104-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-12-31 22:31 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-12-31 22:31 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 4c33c5f4923970ffc107e4024eb5ddb61cc607fe (commit)
from 8f614fc651c3e011de1eecd51df50d71bc664fa4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 4c33c5f4923970ffc107e4024eb5ddb61cc607fe
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Dec 31 00:00:33 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index e33d983..ee39afc 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101230-cvs
+7.2.0.20101231-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-12-06 6:41 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-12-06 6:41 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 8fa856132ab0edd99dc7aed81ffee1be617c0c22 (commit)
via 0808727ed5c8df7ff2a104bfb0434a9cce9767f4 (commit)
from 15233616e812872b3cfa94b0f169ace983b5a5e4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 8fa856132ab0edd99dc7aed81ffee1be617c0c22
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Dec 6 00:00:33 2010 +0000
*** empty log message ***
commit 0808727ed5c8df7ff2a104bfb0434a9cce9767f4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Dec 5 00:00:03 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index d6f2a55..8a6eeac 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101204-cvs
+7.2.0.20101206-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-12-04 1:03 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-12-04 1:03 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 15233616e812872b3cfa94b0f169ace983b5a5e4 (commit)
via 004d36d07fdf0446c33efbe0e7a4d4ffeb885d3b (commit)
via 64d1df026d0b24636fad09e8c40d78faa7b2fdb9 (commit)
via 74c11302f7f23a82470a3182485cf919e496f2e0 (commit)
via 245a01bcf37b43dac4b7707393454c846a4c5523 (commit)
from 2b2829bf8169767204254fb0aa351cdc245720be (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 15233616e812872b3cfa94b0f169ace983b5a5e4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Dec 4 00:00:03 2010 +0000
*** empty log message ***
commit 004d36d07fdf0446c33efbe0e7a4d4ffeb885d3b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Dec 3 00:00:03 2010 +0000
*** empty log message ***
commit 64d1df026d0b24636fad09e8c40d78faa7b2fdb9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Dec 2 00:00:03 2010 +0000
*** empty log message ***
commit 74c11302f7f23a82470a3182485cf919e496f2e0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Dec 1 00:00:03 2010 +0000
*** empty log message ***
commit 245a01bcf37b43dac4b7707393454c846a4c5523
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 30 00:00:03 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 99c1036..d6f2a55 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101129-cvs
+7.2.0.20101204-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-11-30 0:16 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-11-30 0:16 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 2b2829bf8169767204254fb0aa351cdc245720be (commit)
from 6f58aff3b47ab397210c59224721e2313887fd15 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 2b2829bf8169767204254fb0aa351cdc245720be
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 29 00:00:03 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index d3eb328..99c1036 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101128-cvs
+7.2.0.20101129-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-11-28 5:46 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-11-28 5:46 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 6f58aff3b47ab397210c59224721e2313887fd15 (commit)
via 4b3aeb3cd30102dc21d927acf0bbb72a8e24aaba (commit)
via 5a47c7ef410f1d1b688e54da319c03371f1c918d (commit)
via 1b27d4277cda1e704233cbc91b72dfccc5493ee7 (commit)
via 4f0bb67f3d9d27fb8d9ddf1020016cc310442c6f (commit)
via b1d90084d49c51d6b77e2f0d8322c8f709e3fed1 (commit)
via 8216dd4959a57232d305fd0b57e59236e980d5e3 (commit)
via 36c9402972a34ff08932f5c12e15b09ac13f46f3 (commit)
via cb21f25912152f13a41ea0722fbb32b24032acb7 (commit)
via 17f9592d7d941c71deb084d4cfeb8aee95ee73a1 (commit)
via 3b0cb3b77ede311a0d1886a7cdd71422e6a657ff (commit)
via 2215657cec5ddc516e0f3f20f2f205944dab465e (commit)
via ad2130deefb17ed8cd6e1fd27f1265f3271c1b78 (commit)
via 6462ea8eacf33cafd83692ac8156c08519b7726a (commit)
via 48bfeaee663bf5a381ee4ad078afe899f1c792ba (commit)
from 419dab3d3cfd4a7f828056907bd0bb4c72f9bdc1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 6f58aff3b47ab397210c59224721e2313887fd15
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 28 00:00:33 2010 +0000
*** empty log message ***
commit 4b3aeb3cd30102dc21d927acf0bbb72a8e24aaba
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 27 00:00:32 2010 +0000
*** empty log message ***
commit 5a47c7ef410f1d1b688e54da319c03371f1c918d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 26 00:00:33 2010 +0000
*** empty log message ***
commit 1b27d4277cda1e704233cbc91b72dfccc5493ee7
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Thu Nov 25 23:25:32 2010 +0000
2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
PR breakpoints/12217
* breakpoint.c (is_marker_spec): Check for NULL.
commit 4f0bb67f3d9d27fb8d9ddf1020016cc310442c6f
Author: Doug Evans <dje@google.com>
Date: Thu Nov 25 19:42:26 2010 +0000
* dwarf2read.c (dwarf2_const_value_data): Never sign extend.
commit b1d90084d49c51d6b77e2f0d8322c8f709e3fed1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 25 00:00:03 2010 +0000
*** empty log message ***
commit 8216dd4959a57232d305fd0b57e59236e980d5e3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 24 00:00:03 2010 +0000
*** empty log message ***
commit 36c9402972a34ff08932f5c12e15b09ac13f46f3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 23 00:00:33 2010 +0000
*** empty log message ***
commit cb21f25912152f13a41ea0722fbb32b24032acb7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 22 00:00:33 2010 +0000
*** empty log message ***
commit 17f9592d7d941c71deb084d4cfeb8aee95ee73a1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 21 00:00:33 2010 +0000
*** empty log message ***
commit 3b0cb3b77ede311a0d1886a7cdd71422e6a657ff
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 20 00:00:33 2010 +0000
*** empty log message ***
commit 2215657cec5ddc516e0f3f20f2f205944dab465e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 19 00:00:32 2010 +0000
*** empty log message ***
commit ad2130deefb17ed8cd6e1fd27f1265f3271c1b78
Author: pmuldoon <pmuldoon>
Date: Thu Nov 18 14:40:27 2010 +0000
2010-11-18 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-11-18 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 6462ea8eacf33cafd83692ac8156c08519b7726a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 18 00:00:32 2010 +0000
*** empty log message ***
commit 48bfeaee663bf5a381ee4ad078afe899f1c792ba
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 17 00:00:32 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 16 ++
gdb/breakpoint.c | 2 +-
gdb/dwarf2read.c | 16 +-
gdb/mi/mi-cmd-stack.c | 54 +++++--
gdb/testsuite/ChangeLog | 9 +
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/version.in | 2 +-
10 files changed, 408 insertions(+), 27 deletions(-)
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/gdb/ChangeLog b/gdb/ChangeLog
index b224cf6..d480538 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,19 @@
+2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ PR breakpoints/12217
+
+ * breakpoint.c (is_marker_spec): Check for NULL.
+
+2010-11-25 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
+
+2010-11-18 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-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
* mi/mi-main.c (mi_cmd_target_detach): Accept new
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 6a6864c..484cc37 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -233,7 +233,7 @@ static void trace_pass_command (char *, int);
/* Assuming we're creating a static tracepoint, does S look like a
static tracepoint marker spec ("-m MARKER_ID")? */
#define is_marker_spec(s) \
- (strncmp (s, "-m", 2) == 0 && ((s)[2] == ' ' || (s)[2] == '\t'))
+ (s != NULL && strncmp (s, "-m", 2) == 0 && ((s)[2] == ' ' || (s)[2] == '\t'))
/* A reference-counted struct command_line. This lets multiple
breakpoints share a single command list. */
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 1e75235..55b3f08 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -9165,8 +9165,13 @@ dwarf2_const_value (struct attribute *attr, struct symbol *sym,
}
-/* Given an attr with a DW_FORM_dataN value in host byte order, sign-
- or zero-extend it as appropriate for the symbol's type. */
+/* Given an attr with a DW_FORM_dataN value in host byte order,
+ zero-extend it as appropriate for the symbol's type. The DWARF
+ standard (v4) is not entirely clear about the meaning of using
+ DW_FORM_dataN for a constant with a signed type, where the type is
+ wider than the data. The conclusion of a discussion on the DWARF
+ list was that this is unspecified. We choose to always zero-extend
+ because that is the interpretation long in use by GCC. */
static void
dwarf2_const_value_data (struct attribute *attr,
struct symbol *sym,
@@ -9175,12 +9180,7 @@ dwarf2_const_value_data (struct attribute *attr,
LONGEST l = DW_UNSND (attr);
if (bits < sizeof (l) * 8)
- {
- if (TYPE_UNSIGNED (SYMBOL_TYPE (sym)))
- l &= ((LONGEST) 1 << bits) - 1;
- else
- l = (l << (sizeof (l) * 8 - bits)) >> (sizeof (l) * 8 - bits);
- }
+ l &= ((LONGEST) 1 << bits) - 1;
SYMBOL_VALUE (sym) = l;
SYMBOL_CLASS (sym) = LOC_CONST;
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index 6797055..7ee075c 100644
--- a/gdb/mi/mi-cmd-stack.c
+++ b/gdb/mi/mi-cmd-stack.c
@@ -31,7 +31,7 @@
#include "gdb_string.h"
#include "language.h"
#include "valprint.h"
-
+#include "exceptions.h"
enum what_to_list { locals, arguments, all };
@@ -334,27 +334,47 @@ list_args_or_locals (enum what_to_list what, int values, struct frame_info *fi)
&& TYPE_CODE (type) != TYPE_CODE_STRUCT
&& TYPE_CODE (type) != TYPE_CODE_UNION)
{
- struct value_print_options opts;
-
- val = read_var_value (sym2, fi);
- get_raw_print_options (&opts);
- opts.deref_ref = 1;
- common_val_print
- (val, stb->stream, 0, &opts,
- language_def (SYMBOL_LANGUAGE (sym2)));
+ volatile struct gdb_exception except;
+
+ TRY_CATCH (except, RETURN_MASK_ERROR)
+ {
+ struct value_print_options opts;
+
+ val = read_var_value (sym2, fi);
+ get_raw_print_options (&opts);
+ opts.deref_ref = 1;
+ common_val_print
+ (val, stb->stream, 0, &opts,
+ language_def (SYMBOL_LANGUAGE (sym2)));
+ }
+ if (except.reason < 0)
+ fprintf_filtered (stb->stream,
+ _("<error reading variable: %s>"),
+ except.message);
+
ui_out_field_stream (uiout, "value", stb);
}
break;
case PRINT_ALL_VALUES:
{
- struct value_print_options opts;
-
- val = read_var_value (sym2, fi);
- get_raw_print_options (&opts);
- opts.deref_ref = 1;
- common_val_print
- (val, stb->stream, 0, &opts,
- language_def (SYMBOL_LANGUAGE (sym2)));
+ volatile struct gdb_exception except;
+
+ TRY_CATCH (except, RETURN_MASK_ERROR)
+ {
+ struct value_print_options opts;
+
+ val = read_var_value (sym2, fi);
+ get_raw_print_options (&opts);
+ opts.deref_ref = 1;
+ common_val_print
+ (val, stb->stream, 0, &opts,
+ language_def (SYMBOL_LANGUAGE (sym2)));
+ }
+ if (except.reason < 0)
+ fprintf_filtered (stb->stream,
+ _("<error reading variable: %s>"),
+ except.message);
+
ui_out_field_stream (uiout, "value", stb);
}
break;
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 0f46bbf..cb55849 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2010-11-18 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.
+
2010-10-05 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.base/prelink-lib.c (copyreloc): New initialized variable.
diff --git a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame-func.c b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame-func.c
new file mode 100644
index 0000000..10ddd81
--- /dev/null
+++ b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame-func.c
@@ -0,0 +1,54 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ 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/>. */
+
+asm (".globl cu_text_start");
+asm ("cu_text_start:");
+
+asm (".globl func_nofb_start");
+asm ("func_nofb_start:");
+
+void
+func_nofb (void)
+{
+ /* int func_nofb_var; */
+ /* int func_nofb_var2; */
+
+ extern void func_nofb_marker (void);
+ func_nofb_marker ();
+}
+
+asm (".globl func_nofb_end");
+asm ("func_nofb_end:");
+
+asm (".globl func_loopfb_start");
+asm ("func_loopfb_start:");
+
+void
+func_loopfb (void)
+{
+ /* int func_loopfb_var; */
+ /* int func_loopfb_var2; */
+
+ extern void func_loopfb_marker (void);
+ func_loopfb_marker ();
+}
+
+asm (".globl func_loopfb_end");
+asm ("func_loopfb_end:");
+
+asm (".globl cu_text_end");
+asm ("cu_text_end:");
diff --git a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame-main.c b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame-main.c
new file mode 100644
index 0000000..b3ec33a
--- /dev/null
+++ b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame-main.c
@@ -0,0 +1,40 @@
+/* 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/>. */
+
+extern void func_nofb (void);
+extern void func_loopfb (void);
+
+void
+func_nofb_marker (void)
+{
+}
+
+void
+func_loopfb_marker (void)
+{
+}
+
+int
+main (void)
+{
+ int main_var = 1;
+
+ func_nofb ();
+ func_loopfb ();
+
+ return 0;
+}
diff --git a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S
new file mode 100644
index 0000000..a93b3a6
--- /dev/null
+++ b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S
@@ -0,0 +1,165 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2007, 2008, 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/>. */
+
+/* Debug information */
+
+ .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 */
+ .4byte cu_text_end /* DW_AT_high_pc */
+ .4byte cu_text_start /* DW_AT_low_pc */
+ .ascii "file1.txt\0" /* DW_AT_name */
+ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */
+ .byte 1 /* DW_AT_language (C) */
+
+.Ltype_int:
+ .uleb128 3 /* Abbrev: DW_TAG_base_type */
+ .ascii "int\0" /* DW_AT_name */
+ .byte 4 /* DW_AT_byte_size */
+ .byte 5 /* DW_AT_encoding */
+
+ /* func_nofb */
+ .uleb128 5 /* Abbrev: DW_TAG_subprogram (no fb) */
+ .ascii "func_nofb\0" /* DW_AT_name */
+ .4byte func_nofb_start /* DW_AT_low_pc */
+ .4byte func_nofb_end /* DW_AT_high_pc */
+
+ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */
+ .ascii "func_nofb_var\0" /* DW_AT_name */
+ .byte 2f - 1f /* DW_AT_location */
+1: .byte 0x91 /* DW_OP_fbreg */
+ .sleb128 0 /* 0 */
+2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */
+
+ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */
+ .ascii "func_nofb_var2\0" /* DW_AT_name */
+ .byte 2f - 1f /* DW_AT_location */
+1: .byte 0x91 /* DW_OP_fbreg */
+ .sleb128 0 /* 0 */
+2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */
+
+ .byte 0 /* End of children of func */
+
+ /* func_loopfb */
+ .uleb128 6 /* Abbrev: DW_TAG_subprogram (loop fb) */
+ .ascii "func_loopfb\0" /* DW_AT_name */
+ .4byte func_loopfb_start /* DW_AT_low_pc */
+ .4byte func_loopfb_end /* DW_AT_high_pc */
+ .byte 2f - 1f /* DW_AT_frame_base */
+1: .byte 0x91 /* DW_OP_fbreg */
+ .sleb128 0 /* 0 */
+2:
+
+ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */
+ .ascii "func_loopfb_var\0" /* DW_AT_name */
+ .byte 2f - 1f /* DW_AT_location */
+1: .byte 0x91 /* DW_OP_fbreg */
+ .sleb128 0 /* 0 */
+2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */
+
+ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */
+ .ascii "func_loopfb_var2\0" /* DW_AT_name */
+ .byte 2f - 1f /* DW_AT_location */
+1: .byte 0x91 /* DW_OP_fbreg */
+ .sleb128 0 /* 0 */
+2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */
+
+ .byte 0 /* End of children of func */
+
+ .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 0x12 /* DW_AT_high_pc */
+ .uleb128 0x1 /* DW_FORM_addr */
+ .uleb128 0x11 /* DW_AT_low_pc */
+ .uleb128 0x1 /* DW_FORM_addr */
+ .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 3 /* 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 5 /* Abbrev code */
+ .uleb128 0x2e /* DW_TAG_subprogram (no fb) */
+ .byte 1 /* has_children */
+ .uleb128 0x3 /* DW_AT_name */
+ .uleb128 0x8 /* DW_FORM_string */
+ .uleb128 0x11 /* DW_AT_low_pc */
+ .uleb128 0x1 /* DW_FORM_addr */
+ .uleb128 0x12 /* DW_AT_high_pc */
+ .uleb128 0x1 /* DW_FORM_addr */
+ .byte 0x0 /* Terminator */
+ .byte 0x0 /* Terminator */
+
+ .uleb128 6 /* Abbrev code */
+ .uleb128 0x2e /* DW_TAG_subprogram (loop fb) */
+ .byte 1 /* has_children */
+ .uleb128 0x3 /* DW_AT_name */
+ .uleb128 0x8 /* DW_FORM_string */
+ .uleb128 0x11 /* DW_AT_low_pc */
+ .uleb128 0x1 /* DW_FORM_addr */
+ .uleb128 0x12 /* DW_AT_high_pc */
+ .uleb128 0x1 /* DW_FORM_addr */
+ .uleb128 0x40 /* DW_AT_frame_base */
+ .uleb128 0xa /* DW_FORM_block1 */
+ .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.mi/dw2-ref-missing-frame.exp b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp
new file mode 100644
index 0000000..cd29de5
--- /dev/null
+++ b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp
@@ -0,0 +1,77 @@
+# Copyright 2008, 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/>.
+
+# This test can only be run on targets which support DWARF-2 and use gas.
+# For now pick a sampling of likely targets.
+load_lib mi-support.exp
+set MIFLAGS "-i=mi"
+
+if {![istarget *-*-linux*]
+ && ![istarget *-*-gnu*]
+ && ![istarget *-*-elf*]
+ && ![istarget *-*-openbsd*]
+ && ![istarget arm-*-eabi*]
+ && ![istarget powerpc-*-eabi*]} {
+ return 0
+}
+
+set testfile "dw2-ref-missing-frame"
+set srcsfile ${testfile}.S
+set objsfile ${objdir}/${subdir}/${testfile}.o
+set srcfuncfile ${testfile}-func.c
+set objfuncfile ${objdir}/${subdir}/${testfile}-func.o
+set srcmainfile ${testfile}-main.c
+set objmainfile ${objdir}/${subdir}/${testfile}-main.o
+set executable ${testfile}
+set binfile ${objdir}/${subdir}/${executable}
+
+if { [gdb_compile "${srcdir}/${subdir}/${srcsfile}" $objsfile object {}] != ""
+ || [gdb_compile "${srcdir}/${subdir}/${srcfuncfile}" $objfuncfile object {}] != ""
+ || [gdb_compile "${srcdir}/${subdir}/${srcmainfile}" $objmainfile object {debug}] != ""
+ || [gdb_compile "$objsfile $objfuncfile $objmainfile" $binfile executable {}] != "" } {
+ return -1
+}
+
+if [mi_gdb_start] {
+ continue
+}
+
+mi_delete_breakpoints
+mi_gdb_reinitialize_dir $srcdir/$subdir
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-11-16 5:04 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-11-16 5:04 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 419dab3d3cfd4a7f828056907bd0bb4c72f9bdc1 (commit)
via c487ee2cbba68091277859ba597205200a3b675f (commit)
via ffe5be3bd51116816029cca8f4c37709ee8d483a (commit)
via 7ef45762af7a4d982f6140a7eee3e43f1e555976 (commit)
via d208c908e90e853f01399722798507bc42587fa8 (commit)
via 8db48bae3cd095d9c45bd5e416cfe544ba81cdc1 (commit)
via 2d7a3ed492741ec15f2b3638723d1e4f6c6f1592 (commit)
via e0aab6196b8c4df8d22120a5d15a5a5f45a094aa (commit)
via 2491819721e0fc69ca67518e05ed73875668b023 (commit)
via f30ffb776ac64ce676a9bf555f77c2715606a310 (commit)
from dc6136b7435598bf1778eac1a08bb8924ea027ce (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 419dab3d3cfd4a7f828056907bd0bb4c72f9bdc1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 16 00:00:33 2010 +0000
*** empty log message ***
commit c487ee2cbba68091277859ba597205200a3b675f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 15 00:00:03 2010 +0000
*** empty log message ***
commit ffe5be3bd51116816029cca8f4c37709ee8d483a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 14 00:00:04 2010 +0000
*** empty log message ***
commit 7ef45762af7a4d982f6140a7eee3e43f1e555976
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 13 00:00:03 2010 +0000
*** empty log message ***
commit d208c908e90e853f01399722798507bc42587fa8
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Fri Nov 12 19:04:44 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 8db48bae3cd095d9c45bd5e416cfe544ba81cdc1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 12 00:00:32 2010 +0000
*** empty log message ***
commit 2d7a3ed492741ec15f2b3638723d1e4f6c6f1592
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 11 00:00:03 2010 +0000
*** empty log message ***
commit e0aab6196b8c4df8d22120a5d15a5a5f45a094aa
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 10 00:00:33 2010 +0000
*** empty log message ***
commit 2491819721e0fc69ca67518e05ed73875668b023
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 9 00:00:03 2010 +0000
*** empty log message ***
commit f30ffb776ac64ce676a9bf555f77c2715606a310
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 8 00:00:02 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 5 +++++
gdb/mi/mi-main.c | 31 ++++++++++++++++++++++++++-----
gdb/version.in | 2 +-
3 files changed, 32 insertions(+), 6 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4570262..b224cf6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+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-04 Hui Zhu <teawater@gmail.com>
* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index b996475..96c02fe 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/version.in b/gdb/version.in
index b88196c..679c5fb 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101107-cvs
+7.2.0.20101116-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-11-07 18:18 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-11-07 18:18 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via dc6136b7435598bf1778eac1a08bb8924ea027ce (commit)
via e19c15a071b03c1c513362fb848a3f0fc50de2a3 (commit)
via ac7fb1469991597cd40de03255290558bec941f9 (commit)
via d6c1c7254952a84cabb90c5a695376882b26f6a9 (commit)
via 4f2c776ab886cd52f1c4461c9d91077fe6d62e6b (commit)
via bd99921e04d991975b7d55d70778ae14e37c7491 (commit)
via b813f46e47500162bf2adbaddcc67686d9c97e7f (commit)
via 3efab610203645ec65550a8cc2c40b880724a570 (commit)
via 52021544e5f380eee4ac1364dd8fd658f625625c (commit)
via 1fb107a0b2ad6aa27166309ee0c0518c0beb6bcc (commit)
via 5bb9074801addfe4586120d1d5c839becea2ef0f (commit)
via 1b949defa4269ef41071f17c852d5d075ca0334d (commit)
via b0c529c6046c41131913a24edde567cbd675cf4d (commit)
via a7bd977ccb8ac029173fbc39a58f07fa0e70a1e1 (commit)
via 5003873716b139c89687104ea003972a73ad92be (commit)
via 9cdd5b7dfa14621cfb313443263125460c9263ad (commit)
via 49a47150cfbb862a521c585c6b53f8047efb3e15 (commit)
via 7f8b9b69ad51af0bc2c13658ddd6ce3142f69a96 (commit)
via a0fe4d9503bd50fb0e9f44578f57a42df9df974d (commit)
via d23370dca4fa332ca10b1f18b156b7e1ae5f8164 (commit)
via e7664e47d4b0cfc65788753cb48aa34c5d3f5bf8 (commit)
via bd16133bf2ba6e154e31f8ef527215cf6d6d80d7 (commit)
via a970404845d95c5ae408ab6bd0ca016bcd4c955d (commit)
from c52413fd4c8d00fec4d1c45477200cc93957a3a0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit dc6136b7435598bf1778eac1a08bb8924ea027ce
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Nov 7 00:00:33 2010 +0000
*** empty log message ***
commit e19c15a071b03c1c513362fb848a3f0fc50de2a3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Nov 6 00:00:33 2010 +0000
*** empty log message ***
commit ac7fb1469991597cd40de03255290558bec941f9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Nov 5 00:00:33 2010 +0000
*** empty log message ***
commit d6c1c7254952a84cabb90c5a695376882b26f6a9
Author: Hui Zhu <teawater@gmail.com>
Date: Thu Nov 4 05:01:03 2010 +0000
2010-11-04 Hui Zhu <teawater@gmail.com>
* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
commit 4f2c776ab886cd52f1c4461c9d91077fe6d62e6b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Nov 4 00:00:03 2010 +0000
*** empty log message ***
commit bd99921e04d991975b7d55d70778ae14e37c7491
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Nov 3 00:00:32 2010 +0000
*** empty log message ***
commit b813f46e47500162bf2adbaddcc67686d9c97e7f
Author: Hui Zhu <teawater@gmail.com>
Date: Tue Nov 2 05:34:22 2010 +0000
2010-11-02 Hui Zhu <teawater@gmail.com>
* tracepoint.c (tfile_xfer_partial): Change lma to vma.
2010-11-02 Hui Zhu <teawater@gmail.com>
* tracepoint.c (trace_save): Change utp->actions to
utp->step_actions.
2010-11-02 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.
commit 3efab610203645ec65550a8cc2c40b880724a570
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Nov 2 00:00:03 2010 +0000
*** empty log message ***
commit 52021544e5f380eee4ac1364dd8fd658f625625c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Nov 1 00:00:03 2010 +0000
*** empty log message ***
commit 1fb107a0b2ad6aa27166309ee0c0518c0beb6bcc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 31 00:00:33 2010 +0000
*** empty log message ***
commit 5bb9074801addfe4586120d1d5c839becea2ef0f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 30 00:00:32 2010 +0000
*** empty log message ***
commit 1b949defa4269ef41071f17c852d5d075ca0334d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 29 00:00:32 2010 +0000
*** empty log message ***
commit b0c529c6046c41131913a24edde567cbd675cf4d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Oct 28 00:00:33 2010 +0000
*** empty log message ***
commit a7bd977ccb8ac029173fbc39a58f07fa0e70a1e1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Oct 27 00:00:02 2010 +0000
*** empty log message ***
commit 5003873716b139c89687104ea003972a73ad92be
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Oct 26 00:00:33 2010 +0000
*** empty log message ***
commit 9cdd5b7dfa14621cfb313443263125460c9263ad
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Oct 25 00:00:33 2010 +0000
*** empty log message ***
commit 49a47150cfbb862a521c585c6b53f8047efb3e15
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 24 00:00:03 2010 +0000
*** empty log message ***
commit 7f8b9b69ad51af0bc2c13658ddd6ce3142f69a96
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 23 00:00:32 2010 +0000
*** empty log message ***
commit a0fe4d9503bd50fb0e9f44578f57a42df9df974d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 22 00:00:33 2010 +0000
*** empty log message ***
commit d23370dca4fa332ca10b1f18b156b7e1ae5f8164
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Oct 21 00:00:33 2010 +0000
*** empty log message ***
commit e7664e47d4b0cfc65788753cb48aa34c5d3f5bf8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Oct 20 00:00:03 2010 +0000
*** empty log message ***
commit bd16133bf2ba6e154e31f8ef527215cf6d6d80d7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Oct 19 00:00:02 2010 +0000
*** empty log message ***
commit a970404845d95c5ae408ab6bd0ca016bcd4c955d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Oct 18 00:00:03 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 24 ++++++++++++++++++++++++
gdb/remote.c | 8 ++++----
gdb/tracepoint.c | 45 +++++++++++++++++++++++++++++++++++++--------
gdb/version.in | 2 +-
4 files changed, 66 insertions(+), 13 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 373b0c9..4570262 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,27 @@
+2010-11-04 Hui Zhu <teawater@gmail.com>
+
+ * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
+
+2010-11-02 Hui Zhu <teawater@gmail.com>
+
+ * tracepoint.c (tfile_xfer_partial): Change lma to vma.
+
+2010-11-02 Hui Zhu <teawater@gmail.com>
+
+ * tracepoint.c (trace_save): Change utp->actions to
+ utp->step_actions.
+
+2010-11-02 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.
+
2010-10-05 Jan Kratochvil <jan.kratochvil@redhat.com>
* symfile.c (addr_section_name): New function.
diff --git a/gdb/remote.c b/gdb/remote.c
index e03a611..d1b52b7 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -9878,7 +9878,7 @@ remote_trace_set_readonly_regions (void)
{
asection *s;
bfd_size_type size;
- bfd_vma lma;
+ bfd_vma vma;
int anysecs = 0;
if (!exec_bfd)
@@ -9895,10 +9895,10 @@ remote_trace_set_readonly_regions (void)
continue;
anysecs = 1;
- lma = s->lma;
+ vma = bfd_get_section_vma (,s);
size = bfd_get_section_size (s);
- sprintf_vma (tmp1, lma);
- sprintf_vma (tmp2, lma + size);
+ sprintf_vma (tmp1, vma);
+ sprintf_vma (tmp2, vma + size);
sprintf (target_buf + strlen (target_buf),
":%s,%s", tmp1, tmp2);
}
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 28ba550..049ff74 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -2734,7 +2734,7 @@ trace_save (const char *filename, int target_does_save)
for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
fprintf (fp, "tp A%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
- for (a = 0; VEC_iterate (char_ptr, utp->actions, a, act); ++a)
+ for (a = 0; VEC_iterate (char_ptr, utp->step_actions, a, act); ++a)
fprintf (fp, "tp S%x:%s:%s\n",
utp->number, phex_nz (utp->addr, sizeof (utp->addr)), act);
if (utp->at_string)
@@ -3661,6 +3661,9 @@ tfile_get_traceframe_address (off_t tframe_offset)
perror_with_name (trace_filename);
else if (gotten < 2)
error (_("Premature end of file while reading trace file"));
+ tpnum = (short) extract_signed_integer ((gdb_byte *)&tpnum, 2,
+ gdbarch_byte_order
+ (target_gdbarch));
tp = get_tracepoint_by_number_on_target (tpnum);
/* FIXME this is a poor heuristic if multiple locations */
@@ -3684,7 +3687,7 @@ tfile_trace_find (enum trace_find_type type, int num,
{
short tpnum;
int tfnum = 0, found = 0, gotten;
- int data_size;
+ unsigned int data_size;
struct breakpoint *tp;
off_t offset, tframe_offset;
ULONGEST tfaddr;
@@ -3699,6 +3702,9 @@ tfile_trace_find (enum trace_find_type type, int num,
perror_with_name (trace_filename);
else if (gotten < 2)
error (_("Premature end of file while reading trace file"));
+ tpnum = (short) extract_signed_integer ((gdb_byte *)&tpnum, 2,
+ gdbarch_byte_order
+ (target_gdbarch));
offset += 2;
if (tpnum == 0)
break;
@@ -3707,6 +3713,9 @@ tfile_trace_find (enum trace_find_type type, int num,
perror_with_name (trace_filename);
else if (gotten < 4)
error (_("Premature end of file while reading trace file"));
+ data_size = (unsigned int) extract_unsigned_integer
+ ((gdb_byte *)&data_size, 4,
+ gdbarch_byte_order (target_gdbarch));
offset += 4;
switch (type)
{
@@ -3828,6 +3837,10 @@ tfile_fetch_registers (struct target_ops *ops,
perror_with_name (trace_filename);
else if (gotten < 2)
error (_("Premature end of file while reading trace file"));
+ mlen = (unsigned short)
+ extract_unsigned_integer ((gdb_byte *)&mlen, 2,
+ gdbarch_byte_order
+ (target_gdbarch));
lseek (trace_fd, mlen, SEEK_CUR);
pos += (8 + 2 + mlen);
break;
@@ -3920,12 +3933,18 @@ tfile_xfer_partial (struct target_ops *ops, enum target_object object,
perror_with_name (trace_filename);
else if (gotten < 8)
error (_("Premature end of file while reading trace file"));
-
+ maddr = extract_unsigned_integer ((gdb_byte *)&maddr, 8,
+ gdbarch_byte_order
+ (target_gdbarch));
gotten = read (trace_fd, &mlen, 2);
if (gotten < 0)
perror_with_name (trace_filename);
else if (gotten < 2)
error (_("Premature end of file while reading trace file"));
+ mlen = (unsigned short)
+ extract_unsigned_integer ((gdb_byte *)&mlen, 2,
+ gdbarch_byte_order
+ (target_gdbarch));
/* If the block includes the first part of the desired
range, return as much it has; GDB will re-request the
remainder, which might be in a different block of this
@@ -3968,7 +3987,7 @@ tfile_xfer_partial (struct target_ops *ops, enum target_object object,
{
asection *s;
bfd_size_type size;
- bfd_vma lma;
+ bfd_vma vma;
for (s = exec_bfd->sections; s; s = s->next)
{
@@ -3976,16 +3995,16 @@ tfile_xfer_partial (struct target_ops *ops, enum target_object object,
(s->flags & SEC_READONLY) == 0)
continue;
- lma = s->lma;
+ vma = s->vma;
size = bfd_get_section_size (s);
- if (lma <= offset && offset < (lma + size))
+ if (vma <= offset && offset < (vma + size))
{
- amt = (lma + size) - offset;
+ amt = (vma + size) - offset;
if (amt > len)
amt = len;
amt = bfd_get_section_contents (exec_bfd, s,
- readbuf, offset - lma, amt);
+ readbuf, offset - vma, amt);
return amt;
}
}
@@ -4028,6 +4047,10 @@ tfile_get_trace_state_variable_value (int tsvnum, LONGEST *val)
perror_with_name (trace_filename);
else if (gotten < 2)
error (_("Premature end of file while reading trace file"));
+ mlen = (unsigned short)
+ extract_unsigned_integer ((gdb_byte *)&mlen, 2,
+ gdbarch_byte_order
+ (target_gdbarch));
lseek (trace_fd, mlen, SEEK_CUR);
pos += (8 + 2 + mlen);
break;
@@ -4037,6 +4060,9 @@ tfile_get_trace_state_variable_value (int tsvnum, LONGEST *val)
perror_with_name (trace_filename);
else if (gotten < 4)
error (_("Premature end of file while reading trace file"));
+ vnum = (int) extract_signed_integer ((gdb_byte *)&vnum, 4,
+ gdbarch_byte_order
+ (target_gdbarch));
if (tsvnum == vnum)
{
gotten = read (trace_fd, val, 8);
@@ -4044,6 +4070,9 @@ tfile_get_trace_state_variable_value (int tsvnum, LONGEST *val)
perror_with_name (trace_filename);
else if (gotten < 8)
error (_("Premature end of file while reading trace file"));
+ *val = extract_signed_integer ((gdb_byte *)val, 8,
+ gdbarch_byte_order
+ (target_gdbarch));
return 1;
}
lseek (trace_fd, 8, SEEK_CUR);
diff --git a/gdb/version.in b/gdb/version.in
index f3c92cc..b88196c 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101017-cvs
+7.2.0.20101107-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-10-17 20:28 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-10-17 20:28 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via c52413fd4c8d00fec4d1c45477200cc93957a3a0 (commit)
via 49a4ac8cd27be887c5ff8a880beb420dbb9e355b (commit)
from 3c14def90cdb69e7762000fbf7d5aada05c610d5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit c52413fd4c8d00fec4d1c45477200cc93957a3a0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 17 00:00:02 2010 +0000
*** empty log message ***
commit 49a4ac8cd27be887c5ff8a880beb420dbb9e355b
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 16 00:00:03 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 28c5f90..f3c92cc 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101015-cvs
+7.2.0.20101017-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-10-15 17:07 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-10-15 17:07 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 3c14def90cdb69e7762000fbf7d5aada05c610d5 (commit)
from 20a066d1049341abbfa639db147e4cf25fbc56fe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 3c14def90cdb69e7762000fbf7d5aada05c610d5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 15 00:00:33 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 0593ff8..28c5f90 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101014-cvs
+7.2.0.20101015-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-10-14 20:56 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-10-14 20:56 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 20a066d1049341abbfa639db147e4cf25fbc56fe (commit)
from 38d1c0dcf3da8d489f87d8f52ddaaf1746aa87f4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 20a066d1049341abbfa639db147e4cf25fbc56fe
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Oct 14 00:00:32 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 2b7f895..0593ff8 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101013-cvs
+7.2.0.20101014-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-10-13 15:07 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-10-13 15:07 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 38d1c0dcf3da8d489f87d8f52ddaaf1746aa87f4 (commit)
from ad004539ae85cdb3262a8e9541a0625fb5b4a7e4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 38d1c0dcf3da8d489f87d8f52ddaaf1746aa87f4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Oct 13 00:00:03 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 9d39808..2b7f895 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101012-cvs
+7.2.0.20101013-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-10-12 16:46 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-10-12 16:46 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via ad004539ae85cdb3262a8e9541a0625fb5b4a7e4 (commit)
from c673cc0befce0ddda8b03fcfe150d6dc0f00abf8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ad004539ae85cdb3262a8e9541a0625fb5b4a7e4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Oct 12 00:00:32 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 358077d..9d39808 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20101011-cvs
+7.2.0.20101012-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-10-11 9:22 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-10-11 9:22 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via c673cc0befce0ddda8b03fcfe150d6dc0f00abf8 (commit)
via 974605c856eb2435df88bdc15cfc265d0fe9d8e0 (commit)
via e09f9d592d1824f5634079a266316f743aac5927 (commit)
via 809c9b288767935df7fb67c9493fe3bfb1b3e0dd (commit)
via 11ee9dce0a0d808f4f3d5f7558de20460e801549 (commit)
via 752c5cd07114167db9194b95275891414d0f2c12 (commit)
via aa5bedaf2018ac716b8660e1eee046e2a9b0db49 (commit)
via bb336412159fe29c0961aa87e13c80df6eb248b9 (commit)
via 02901209dfcc15e7b3aa12aa8fe6c29c52a2832a (commit)
via aa28d16b86197cf64e571ef0855db3dcd9cc8751 (commit)
via f7f2a27771eb9137bb7d6589ca1995df476e5298 (commit)
via b86c7f3fbf5126b98d6ca7771eb1a2d900dcb045 (commit)
via 28ce97660a3b5d9c82d0ff35236bfdf0eb42a84e (commit)
via 75de3527ed30c5f2ad082edacea5c46652ed618d (commit)
via 2111540d21b3b16c9b74cd39eb7e5570ac1c7146 (commit)
from 617129ce500bd485ace2107a5f758e40356872c3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit c673cc0befce0ddda8b03fcfe150d6dc0f00abf8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Oct 11 00:00:03 2010 +0000
*** empty log message ***
commit 974605c856eb2435df88bdc15cfc265d0fe9d8e0
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 10 00:00:03 2010 +0000
*** empty log message ***
commit e09f9d592d1824f5634079a266316f743aac5927
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 9 00:00:02 2010 +0000
*** empty log message ***
commit 809c9b288767935df7fb67c9493fe3bfb1b3e0dd
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 8 00:00:02 2010 +0000
*** empty log message ***
commit 11ee9dce0a0d808f4f3d5f7558de20460e801549
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Oct 7 00:00:32 2010 +0000
*** empty log message ***
commit 752c5cd07114167db9194b95275891414d0f2c12
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Oct 6 00:00:03 2010 +0000
*** empty log message ***
commit aa5bedaf2018ac716b8660e1eee046e2a9b0db49
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Oct 5 20:53:36 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 bb336412159fe29c0961aa87e13c80df6eb248b9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Oct 5 00:00:03 2010 +0000
*** empty log message ***
commit 02901209dfcc15e7b3aa12aa8fe6c29c52a2832a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Oct 4 00:00:03 2010 +0000
*** empty log message ***
commit aa28d16b86197cf64e571ef0855db3dcd9cc8751
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Oct 3 00:00:32 2010 +0000
*** empty log message ***
commit f7f2a27771eb9137bb7d6589ca1995df476e5298
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Oct 2 00:00:03 2010 +0000
*** empty log message ***
commit b86c7f3fbf5126b98d6ca7771eb1a2d900dcb045
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Oct 1 00:00:02 2010 +0000
*** empty log message ***
commit 28ce97660a3b5d9c82d0ff35236bfdf0eb42a84e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 30 00:01:33 2010 +0000
*** empty log message ***
commit 75de3527ed30c5f2ad082edacea5c46652ed618d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 29 00:00:03 2010 +0000
*** empty log message ***
commit 2111540d21b3b16c9b74cd39eb7e5570ac1c7146
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Sep 28 00:00:03 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 7 +++++
gdb/symfile.c | 45 ++++++++++++++++++++++++++++------
gdb/testsuite/ChangeLog | 8 ++++++
gdb/testsuite/gdb.base/prelink-lib.c | 2 +
gdb/testsuite/gdb.base/prelink.c | 6 ++++
gdb/testsuite/gdb.base/prelink.exp | 9 +++++++
gdb/version.in | 2 +-
7 files changed, 70 insertions(+), 9 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b9ebe52..373b0c9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2010-10-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * 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.
+
2010-09-23 Sami Wagiaalla <swagiaal@redhat.com>
PR C++/12028
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 42f7ae3..8181d6e 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -547,6 +547,23 @@ relative_addr_info_to_section_offsets (struct section_offsets *section_offsets,
}
}
+/* Transform section name S for a name comparison. prelink can split section
+ `.bss' into two sections `.dynbss' and `.bss' (in this order). Similarly
+ prelink can split `.sbss' into `.sdynbss' and `.sbss'. Use virtual address
+ of the new `.dynbss' (`.sdynbss') section as the adjacent new `.bss'
+ (`.sbss') section has invalid (increased) virtual address. */
+
+static const char *
+addr_section_name (const char *s)
+{
+ if (strcmp (s, ".dynbss") == 0)
+ return ".bss";
+ if (strcmp (s, ".sdynbss") == 0)
+ return ".sbss";
+
+ return s;
+}
+
/* qsort comparator for addrs_section_sort. Sort entries in ascending order by
their (name, sectindex) pair. sectindex makes the sort by name stable. */
@@ -557,7 +574,7 @@ addrs_section_compar (const void *ap, const void *bp)
const struct other_sections *b = *((struct other_sections **) bp);
int retval, a_idx, b_idx;
- retval = strcmp (a->name, b->name);
+ retval = strcmp (addr_section_name (a->name), addr_section_name (b->name));
if (retval)
return retval;
@@ -641,14 +658,16 @@ addr_info_make_relative (struct section_addr_info *addrs, bfd *abfd)
while (*addrs_sorted)
{
- const char *sect_name = (*addrs_sorted)->name;
+ const char *sect_name = addr_section_name ((*addrs_sorted)->name);
while (*abfd_addrs_sorted
- && strcmp ((*abfd_addrs_sorted)->name, sect_name) < 0)
+ && strcmp (addr_section_name ((*abfd_addrs_sorted)->name),
+ sect_name) < 0)
abfd_addrs_sorted++;
if (*abfd_addrs_sorted
- && strcmp ((*abfd_addrs_sorted)->name, sect_name) == 0)
+ && strcmp (addr_section_name ((*abfd_addrs_sorted)->name),
+ sect_name) == 0)
{
int index_in_addrs;
@@ -676,7 +695,6 @@ addr_info_make_relative (struct section_addr_info *addrs, bfd *abfd)
for (i = 0; i < addrs->num_sections && addrs->other[i].name; i++)
{
- const char *sect_name = addrs->other[i].name;
struct other_sections *sect = addrs_to_abfd_addrs[i];
if (sect)
@@ -694,6 +712,9 @@ addr_info_make_relative (struct section_addr_info *addrs, bfd *abfd)
}
else
{
+ /* addr_section_name transformation is not used for SECT_NAME. */
+ const char *sect_name = addrs->other[i].name;
+
/* This section does not exist in ABFD, which is normally
unexpected and we want to issue a warning.
@@ -704,12 +725,20 @@ addr_info_make_relative (struct section_addr_info *addrs, bfd *abfd)
a warning. Shared libraries contain just the section
".gnu.liblist" but it is not marked as loadable there. There is
no other way to identify them than by their name as the sections
- created by prelink have no special flags. */
+ created by prelink have no special flags.
+
+ For the sections `.bss' and `.sbss' see addr_section_name. */
if (!(strcmp (sect_name, ".gnu.liblist") == 0
|| strcmp (sect_name, ".gnu.conflict") == 0
- || strcmp (sect_name, ".dynbss") == 0
- || strcmp (sect_name, ".sdynbss") == 0))
+ || (strcmp (sect_name, ".bss") == 0
+ && i > 0
+ && strcmp (addrs->other[i - 1].name, ".dynbss") == 0
+ && addrs_to_abfd_addrs[i - 1] != NULL)
+ || (strcmp (sect_name, ".sbss") == 0
+ && i > 0
+ && strcmp (addrs->other[i - 1].name, ".sdynbss") == 0
+ && addrs_to_abfd_addrs[i - 1] != NULL)))
warning (_("section %s not found in %s"), sect_name,
bfd_get_filename (abfd));
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index d75cb9f..0f46bbf 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2010-10-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * 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.
+
2010-09-23 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/pr12028.cc: New.
diff --git a/gdb/testsuite/gdb.base/prelink-lib.c b/gdb/testsuite/gdb.base/prelink-lib.c
index a28d724..c8f7c10 100644
--- a/gdb/testsuite/gdb.base/prelink-lib.c
+++ b/gdb/testsuite/gdb.base/prelink-lib.c
@@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+int copyreloc = 1;
+
int
g (void (*p)(void))
{
diff --git a/gdb/testsuite/gdb.base/prelink.c b/gdb/testsuite/gdb.base/prelink.c
index 115dc1f..96c1bb9 100644
--- a/gdb/testsuite/gdb.base/prelink.c
+++ b/gdb/testsuite/gdb.base/prelink.c
@@ -18,6 +18,11 @@
#include <stdio.h>
+extern int copyreloc;
+
+/* Test GDB itself finds `&bssvar' right. */
+static int bssvar, *bssvarp = &bssvar;
+
extern void (*h (void)) (void (*)(void));
int
@@ -25,5 +30,6 @@ main (void)
{
void (*f) (void (*)(void)) = h ();
printf ("%p\n", f);
+ printf ("%d\n", copyreloc);
f (0);
}
diff --git a/gdb/testsuite/gdb.base/prelink.exp b/gdb/testsuite/gdb.base/prelink.exp
index 8931c9f..fe88d25 100644
--- a/gdb/testsuite/gdb.base/prelink.exp
+++ b/gdb/testsuite/gdb.base/prelink.exp
@@ -57,6 +57,13 @@ if {$prelink_args == ""} {
return -1
}
+set test "split debug of executable"
+if [gdb_gnu_strip_debug $binfile] {
+ fail $test
+} else {
+ pass $test
+}
+
if ![prelink_yes $prelink_args] {
# Maybe we don't have prelink.
return -1
@@ -105,3 +112,5 @@ clean_restart $executable
gdb_test_no_output "set verbose on"
gdb_test "core-file $objdir/$subdir/prelink.core" "Using PIC \\(Position Independent Code\\) prelink displacement 0x\[^0\]\[0-9a-f\]* for \[^\r\n\]*[file tail ${libfile}].*" "seen displacement message"
+
+gdb_test "p &bssvar == bssvarp" " = 1" ".dynbss vs. .bss address shift"
diff --git a/gdb/version.in b/gdb/version.in
index a09ae7a..358077d 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20100927-cvs
+7.2.0.20101011-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-09-27 9:49 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-09-27 9:49 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 617129ce500bd485ace2107a5f758e40356872c3 (commit)
via 93c9548b61fd396708beaeee2a880c436291c2b5 (commit)
via 64e221702a24ca1abacd01fc1f9ac46a3e49495d (commit)
via 29640085ad1742ebd5ad66ee49eed1ce1dc4fbf7 (commit)
via 7f40e8b99615c1aaf20f6b0dfae753be443382a2 (commit)
via 14c088476242d1b684e3cf0d787ed2ea2b76fe01 (commit)
via 3eb58f647f57f611727a79cc5b31fb2dae63e71d (commit)
via c682fc193219df509ec2eefabd812f092160a0ea (commit)
via 125af8f292e239576ad53552142ddf510f734d4c (commit)
via 0ad16c3e433abdec291f7160e8109ea50408d884 (commit)
via 30d6339e1085a80ba9464e2da9c0308f2c5197df (commit)
via 89db947409a0bab2923d18b48ea93eac9a72fbab (commit)
via 8ea7d6da981594e0bfabde83e48318a4460bb3e1 (commit)
via d75ee7e84d0ff12838baa612f47dae2e38cc4fcc (commit)
via 99c52102d123eb5caf8b7aefb1958f38f72a1ccf (commit)
via 35df4c79ea54e33f7f2f29866da5a241a9241b5c (commit)
via 7909b3989e570706b4f3fab5dee2eeebec48bdcb (commit)
via e57191e79e1fb645d96f29ae51600402720d9e7c (commit)
via ed64b2e79b6dd65bcf0ed2878fb39094f27dbe21 (commit)
via 3ee4a7d39330ae46f4a4cd4043398e605bf46c80 (commit)
via c3dcaaddd53b2f7f4d5875532e7458836995f245 (commit)
via 620d54cfedee44deb49a336361f87480ce371f50 (commit)
via 2962eba9f8b0c1f7aa1a31a27fc635191cdb286e (commit)
via 1ab64a670e95620c1e0cf66b44b8a9174a75924f (commit)
via e0578ce5c21f295f46913befbb977be83c6e4a9a (commit)
via d0ebc354a622bdb8e5d6496f4630614e9815d8ee (commit)
from b87ead15276d9b679a05f58f236e98ce57adcf7e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 617129ce500bd485ace2107a5f758e40356872c3
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Sep 27 00:00:03 2010 +0000
*** empty log message ***
commit 93c9548b61fd396708beaeee2a880c436291c2b5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Sep 26 00:00:03 2010 +0000
*** empty log message ***
commit 64e221702a24ca1abacd01fc1f9ac46a3e49495d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Sep 25 00:00:03 2010 +0000
*** empty log message ***
commit 29640085ad1742ebd5ad66ee49eed1ce1dc4fbf7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Sep 24 00:00:03 2010 +0000
*** empty log message ***
commit 7f40e8b99615c1aaf20f6b0dfae753be443382a2
Author: swagiaal <swagiaal>
Date: Thu Sep 23 20:07:34 2010 +0000
Fix PR 12028: "GDB crashes on a double free during overload resolution "
2010-09-23 Sami Wagiaalla <swagiaal@redhat.com>
PR C++/12028
* valops.c (find_oload_champ_namespace_loop): removed incorrect
'old_cleanups' reassignment.
2010-09-23 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/pr12028.cc: New.
* gdb.cp/pr12028.exp: New.
commit 14c088476242d1b684e3cf0d787ed2ea2b76fe01
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 23 00:00:03 2010 +0000
*** empty log message ***
commit 3eb58f647f57f611727a79cc5b31fb2dae63e71d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 22 00:00:03 2010 +0000
*** empty log message ***
commit c682fc193219df509ec2eefabd812f092160a0ea
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Sep 21 00:00:04 2010 +0000
*** empty log message ***
commit 125af8f292e239576ad53552142ddf510f734d4c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Sep 20 00:00:02 2010 +0000
*** empty log message ***
commit 0ad16c3e433abdec291f7160e8109ea50408d884
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Sep 19 00:00:04 2010 +0000
*** empty log message ***
commit 30d6339e1085a80ba9464e2da9c0308f2c5197df
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Sep 18 00:00:33 2010 +0000
*** empty log message ***
commit 89db947409a0bab2923d18b48ea93eac9a72fbab
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Sep 17 00:00:02 2010 +0000
*** empty log message ***
commit 8ea7d6da981594e0bfabde83e48318a4460bb3e1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 16 00:00:03 2010 +0000
*** empty log message ***
commit d75ee7e84d0ff12838baa612f47dae2e38cc4fcc
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 15 00:00:03 2010 +0000
*** empty log message ***
commit 99c52102d123eb5caf8b7aefb1958f38f72a1ccf
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Sep 14 00:00:33 2010 +0000
*** empty log message ***
commit 35df4c79ea54e33f7f2f29866da5a241a9241b5c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Sep 13 00:00:03 2010 +0000
*** empty log message ***
commit 7909b3989e570706b4f3fab5dee2eeebec48bdcb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Sep 12 00:00:03 2010 +0000
*** empty log message ***
commit e57191e79e1fb645d96f29ae51600402720d9e7c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Sep 11 00:00:33 2010 +0000
*** empty log message ***
commit ed64b2e79b6dd65bcf0ed2878fb39094f27dbe21
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Sep 10 00:00:04 2010 +0000
*** empty log message ***
commit 3ee4a7d39330ae46f4a4cd4043398e605bf46c80
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 9 00:00:03 2010 +0000
*** empty log message ***
commit c3dcaaddd53b2f7f4d5875532e7458836995f245
Author: qiyao <qiyao>
Date: Wed Sep 8 12:25:18 2010 +0000
2010-09-08 Yao Qi <yao@codesourcery.com>
Pedro Alves <pedro@codesourcery.com>
* infrunc(resume): When inferior is waiting_for_vfork_done,
clear step and don't use displaced stepping.
Extend comment on ignoring single-step requests on vfork
parents waiting for a vfork-done.
commit 620d54cfedee44deb49a336361f87480ce371f50
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 8 00:00:03 2010 +0000
*** empty log message ***
commit 2962eba9f8b0c1f7aa1a31a27fc635191cdb286e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Sep 7 00:00:03 2010 +0000
*** empty log message ***
commit 1ab64a670e95620c1e0cf66b44b8a9174a75924f
Author: Pedro Alves <pedro@codesourcery.com>
Date: Mon Sep 6 10:56:18 2010 +0000
* Makefile.in (install-only): Replace $IPA_DEPFILES with
"$(IPA_DEPFILES)".
commit e0578ce5c21f295f46913befbb977be83c6e4a9a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Sep 6 00:00:33 2010 +0000
*** empty log message ***
commit d0ebc354a622bdb8e5d6496f4630614e9815d8ee
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Sep 5 00:00:03 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 14 ++++++++++++++
gdb/gdbserver/ChangeLog | 5 +++++
gdb/gdbserver/Makefile.in | 2 +-
gdb/infrun.c | 28 ++++++++++++++++++++++++++--
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.cp/pr12028.cc | 21 +++++++++++++++++++++
gdb/testsuite/gdb.cp/pr12028.exp | 29 +++++++++++++++++++++++++++++
gdb/valops.c | 2 +-
gdb/version.in | 2 +-
9 files changed, 103 insertions(+), 5 deletions(-)
create mode 100644 gdb/testsuite/gdb.cp/pr12028.cc
create mode 100644 gdb/testsuite/gdb.cp/pr12028.exp
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7abb05a..b9ebe52 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,17 @@
+2010-09-23 Sami Wagiaalla <swagiaal@redhat.com>
+
+ PR C++/12028
+ * valops.c (find_oload_champ_namespace_loop): removed incorrect
+ 'old_cleanups' reassignment.
+
+2010-09-08 Yao Qi <yao@codesourcery.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ * infrunc(resume): When inferior is waiting_for_vfork_done,
+ clear step and don't use displaced stepping.
+ Extend comment on ignoring single-step requests on vfork
+ parents waiting for a vfork-done.
+
2010-09-03 Joel Brobecker <brobecker@adacore.com>
* version.in: Set version to 7.2.0.20100903-cvs.
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 90bb280..ad9b296 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-06 Pedro Alves <pedro@codesourcery.com>
+
+ * Makefile.in (install-only): Replace $IPA_DEPFILES with
+ "$(IPA_DEPFILES)".
+
2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
* linux-low.c (linux_wait_1): Correctly return the ptid of the child
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index 76577cf..0d3bda2 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -164,7 +164,7 @@ install: all install-only
install-only:
n=`echo gdbserver | sed '$(program_transform_name)'`; \
if [ x$$n = x ]; then n=gdbserver; else true; fi; \
- if [ x$IPA_DEPFILES != x ]; then \
+ if [ x"$(IPA_DEPFILES)" != x ]; then \
$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
$(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
fi; \
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 54b1d9f..3ac82f6 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1549,6 +1549,25 @@ resume (int step, enum target_signal sig)
QUIT;
+ /* Don't try to single-step a vfork parent that is waiting for
+ the child to get out of the shared memory region (by exec'ing
+ or exiting). This is particularly important on software
+ single-step archs, as the child process would trip on the
+ software single step breakpoint inserted for the parent
+ process. Since the parent will not actually execute any
+ instruction until the child is out of the shared region (such
+ are vfork's semantics), it is safe to simply continue it.
+ Eventually, we'll see a TARGET_WAITKIND_VFORK_DONE event for
+ the parent, and tell it to `keep_going', which automatically
+ re-sets it stepping. */
+ if (current_inferior ()->waiting_for_vfork_done)
+ {
+ if (debug_infrun)
+ fprintf_unfiltered (gdb_stdlog,
+ "infrun: resume : clear step\n");
+ step = 0;
+ }
+
if (debug_infrun)
fprintf_unfiltered (gdb_stdlog,
"infrun: resume (step=%d, signal=%d), "
@@ -1576,11 +1595,16 @@ a command like `return' or `jump' to continue execution."));
We can't use displaced stepping when we have a signal to deliver;
the comments for displaced_step_prepare explain why. The
comments in the handle_inferior event for dealing with 'random
- signals' explain what we do instead. */
+ signals' explain what we do instead.
+
+ We can't use displaced stepping when we are waiting for vfork_done
+ event, displaced stepping breaks the vfork child similarly as single
+ step software breakpoint. */
if (use_displaced_stepping (gdbarch)
&& (tp->trap_expected
|| (step && gdbarch_software_single_step_p (gdbarch)))
- && sig == TARGET_SIGNAL_0)
+ && sig == TARGET_SIGNAL_0
+ && !current_inferior ()->waiting_for_vfork_done)
{
struct displaced_step_inferior_state *displaced;
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8f81444..d75cb9f 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-23 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * gdb.cp/pr12028.cc: New.
+ * gdb.cp/pr12028.exp: New.
+
2010-08-26 Yao Qi <yao@codesourcery.com>
* gdb.dwarf2/dw2-ref-missing-frame-func.c: Add .p2align 4 for labels
diff --git a/gdb/testsuite/gdb.cp/pr12028.cc b/gdb/testsuite/gdb.cp/pr12028.cc
new file mode 100644
index 0000000..0fcab6b
--- /dev/null
+++ b/gdb/testsuite/gdb.cp/pr12028.cc
@@ -0,0 +1,21 @@
+class A{};
+class B{};
+class C: public B {};
+
+namespace D{
+ int foo (A) { return 11; }
+ int foo (C) { return 12; }
+}
+
+int main()
+{
+ A a;
+ B b;
+ C c;
+
+ D::foo (a);
+ // D::foo (b);
+ D::foo (c);
+
+ return 0;
+}
diff --git a/gdb/testsuite/gdb.cp/pr12028.exp b/gdb/testsuite/gdb.cp/pr12028.exp
new file mode 100644
index 0000000..746c6b5
--- /dev/null
+++ b/gdb/testsuite/gdb.cp/pr12028.exp
@@ -0,0 +1,29 @@
+# Copyright 2008 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/>.
+
+set testfile pr12028
+set srcfile ${testfile}.cc
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug c++}] } {
+ return -1
+}
+
+############################################
+
+if ![runto_main] then {
+ perror "couldn't run to breakpoint main"
+ continue
+}
+
+gdb_test "p D::foo(b)" "Cannot resolve function foo to any overloaded instance"
diff --git a/gdb/valops.c b/gdb/valops.c
index 7fbad10..4e83a04 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -2715,7 +2715,7 @@ find_oload_champ_namespace_loop (struct type **arg_types, int nargs,
function symbol to start off with.) */
old_cleanups = make_cleanup (xfree, *oload_syms);
- old_cleanups = make_cleanup (xfree, *oload_champ_bv);
+ make_cleanup (xfree, *oload_champ_bv);
new_namespace = alloca (namespace_len + 1);
strncpy (new_namespace, qualified_name, namespace_len);
new_namespace[namespace_len] = '\0';
diff --git a/gdb/version.in b/gdb/version.in
index edd8b42..a09ae7a 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20100904-cvs
+7.2.0.20100927-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-09-04 19:59 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-09-04 19:59 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via b87ead15276d9b679a05f58f236e98ce57adcf7e (commit)
from 5feed060c6824bc390d5e99eca004b8b219a92c0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit b87ead15276d9b679a05f58f236e98ce57adcf7e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Sep 4 00:00:03 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 8250cb0..edd8b42 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.2.0.20100903-cvs
+7.2.0.20100904-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-09-02 15:05 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-09-02 15:05 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via e637166c19a2be706107c4eef416e0ed48cdc0c9 (commit)
via 8423443c339c3f51ec6ac382b9b0f36a1a46a725 (commit)
via 52c0b9c7730ed99617c8d39847742220d1d15384 (commit)
via b2a02c5a228af7bb4bc780119588fb92f482669f (commit)
via 677a55f4b7a0052f43174a2f6974bbf3ce3e1286 (commit)
via 4727010fec5661f1498ec31ad928fd6597339ae4 (commit)
via a12a474308fb675f627f527460611f58e695204c (commit)
via b8fdd823e54f132cbf53bba8b709aed530263baf (commit)
via ec0e608abd4b2aba650aec263502ecc36586f8ad (commit)
via 5af123ecb78ea9aef96cadc0c07da9fcb38ee24a (commit)
via 53663c6ee920ec085155e80db959956bb5f13e30 (commit)
via 635159936af4cd062e54cb34e44d584a86b41603 (commit)
via 0862fb921acf456ae083ada61685c864139e0940 (commit)
via 6ad683b447949956fd3070f8a84bf6d77c099741 (commit)
via 400e18b7c516901507b33589d7e1f21f79f3ce5c (commit)
via 61aa46ef92bd148cf08c5a6c848f21d4b76c6900 (commit)
from 8541ad14df1e60f103f672773a9eed617ad7b06e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit e637166c19a2be706107c4eef416e0ed48cdc0c9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Sep 2 00:00:03 2010 +0000
*** empty log message ***
commit 8423443c339c3f51ec6ac382b9b0f36a1a46a725
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Wed Sep 1 19:15:59 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 52c0b9c7730ed99617c8d39847742220d1d15384
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Sep 1 00:00:04 2010 +0000
*** empty log message ***
commit b2a02c5a228af7bb4bc780119588fb92f482669f
Author: Michael Snyder <msnyder@specifix.com>
Date: Tue Aug 31 19:31:22 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 677a55f4b7a0052f43174a2f6974bbf3ce3e1286
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 31 00:00:04 2010 +0000
*** empty log message ***
commit 4727010fec5661f1498ec31ad928fd6597339ae4
Author: qiyao <qiyao>
Date: Mon Aug 30 15:33:03 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 a12a474308fb675f627f527460611f58e695204c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 30 00:00:03 2010 +0000
*** empty log message ***
commit b8fdd823e54f132cbf53bba8b709aed530263baf
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 29 00:00:33 2010 +0000
*** empty log message ***
commit ec0e608abd4b2aba650aec263502ecc36586f8ad
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Aug 28 00:00:33 2010 +0000
*** empty log message ***
commit 5af123ecb78ea9aef96cadc0c07da9fcb38ee24a
Author: Doug Evans <dje@google.com>
Date: Fri Aug 27 18:37:16 2010 +0000
* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
the order they're defined in. munmap .debug_types buffer.
commit 53663c6ee920ec085155e80db959956bb5f13e30
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Aug 27 00:01:03 2010 +0000
*** empty log message ***
commit 635159936af4cd062e54cb34e44d584a86b41603
Author: qiyao <qiyao>
Date: Thu Aug 26 08:30:37 2010 +0000
2010-08-26 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 0862fb921acf456ae083ada61685c864139e0940
Author: qiyao <qiyao>
Date: Thu Aug 26 08:18:07 2010 +0000
2010-08-26 Yao Qi <yao@codesourcery.com>
* gdb.gdb/selftest.exp (do_steps_and_nexts): Update test case
to reflect latest c source file.
commit 6ad683b447949956fd3070f8a84bf6d77c099741
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Aug 26 00:00:34 2010 +0000
*** empty log message ***
commit 400e18b7c516901507b33589d7e1f21f79f3ce5c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Aug 25 00:00:04 2010 +0000
*** empty log message ***
commit 61aa46ef92bd148cf08c5a6c848f21d4b76c6900
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 24 00:00:32 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 26 ++++++
gdb/arm-linux-tdep.c | 94 ++++++++++++++++++--
gdb/arm-tdep.c | 22 ++++-
gdb/arm-tdep.h | 5 +
gdb/doc/ChangeLog | 5 +
gdb/doc/gdb.texinfo | 4 +
gdb/dwarf2read.c | 7 +-
gdb/infrun.c | 5 +
gdb/mi/mi-main.c | 2 +
gdb/testsuite/ChangeLog | 11 +++
.../gdb.dwarf2/dw2-ref-missing-frame-func.c | 2 +
gdb/testsuite/gdb.gdb/selftest.exp | 8 ++-
gdb/version.in | 2 +-
13 files changed, 178 insertions(+), 15 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 70c2d52..6b0a925 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,29 @@
+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-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.
+
+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.
+
+2010-08-27 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
+ the order they're defined in. munmap .debug_types buffer.
+
2010-08-19 Stan Shebs <stan@codesourcery.com>
* NEWS: Mention some additional changes.
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index 15fc1c9..af11274 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -630,6 +630,82 @@ arm_linux_regset_from_core_section (struct gdbarch *gdbarch,
return NULL;
}
+/* Copy the value of next pc of sigreturn and rt_sigrturn into PC,
+ and return 1. Return 0 if it is not a rt_sigreturn/sigreturn
+ syscall. */
+static int
+arm_linux_sigreturn_return_addr (struct frame_info *frame,
+ unsigned long svc_number,
+ CORE_ADDR *pc)
+{
+ /* Is this a sigreturn or rt_sigreturn syscall? */
+ if (svc_number == 119 || svc_number == 173)
+ {
+ if (get_frame_type (frame) == SIGTRAMP_FRAME)
+ {
+ *pc = frame_unwind_caller_pc (frame);
+ return 1;
+ }
+ }
+ return 0;
+}
+
+/* When FRAME is at a syscall instruction, return the PC of the next
+ instruction to be executed. */
+
+static CORE_ADDR
+arm_linux_syscall_next_pc (struct frame_info *frame)
+{
+ CORE_ADDR pc = get_frame_pc (frame);
+ CORE_ADDR return_addr = 0;
+ int is_thumb = arm_frame_is_thumb (frame);
+ ULONGEST svc_number = 0;
+ int is_sigreturn = 0;
+
+ if (is_thumb)
+ {
+ svc_number = get_frame_register_unsigned (frame, 7);
+ }
+ else
+ {
+ struct gdbarch *gdbarch = get_frame_arch (frame);
+ enum bfd_endian byte_order_for_code =
+ gdbarch_byte_order_for_code (gdbarch);
+ unsigned long this_instr =
+ read_memory_unsigned_integer (pc, 4, byte_order_for_code);
+
+ unsigned long svc_operand = (0x00ffffff & this_instr);
+ if (svc_operand) /* OABI. */
+ {
+ svc_number = svc_operand - 0x900000;
+ }
+ else /* EABI. */
+ {
+ svc_number = get_frame_register_unsigned (frame, 7);
+ }
+ }
+
+ is_sigreturn = arm_linux_sigreturn_return_addr (frame, svc_number,
+ &return_addr);
+
+ if (is_sigreturn)
+ return return_addr;
+
+ if (is_thumb)
+ {
+ return_addr = pc + 2;
+ /* Addresses for calling Thumb functions have the bit 0 set. */
+ return_addr |= 1;
+ }
+ else
+ {
+ return_addr = pc + 4;
+ }
+
+ return return_addr;
+}
+
+
/* Insert a single step breakpoint at the next executed instruction. */
static int
@@ -688,8 +764,11 @@ arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to,
struct regcache *regs, struct displaced_step_closure *dsc)
{
CORE_ADDR from = dsc->insn_addr;
+ CORE_ADDR return_to = 0;
+
struct frame_info *frame;
unsigned int svc_number = displaced_read_reg (regs, from, 7);
+ int is_sigreturn = 0;
if (debug_displaced)
fprintf_unfiltered (gdb_stdlog, "displaced: copying Linux svc insn %.8lx\n",
@@ -697,13 +776,10 @@ arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to,
frame = get_current_frame ();
- /* Is this a sigreturn or rt_sigreturn syscall? Note: these are only useful
- for EABI. */
- if (svc_number == 119 || svc_number == 173)
+ is_sigreturn = arm_linux_sigreturn_return_addr(frame, svc_number,
+ &return_to);
+ if (is_sigreturn)
{
- if (get_frame_type (frame) == SIGTRAMP_FRAME)
- {
- CORE_ADDR return_to;
struct symtab_and_line sal;
if (debug_displaced)
@@ -711,7 +787,6 @@ arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to,
"sigreturn/rt_sigreturn SVC call. PC in frame = %lx\n",
(unsigned long) get_frame_pc (frame));
- return_to = frame_unwind_caller_pc (frame);
if (debug_displaced)
fprintf_unfiltered (gdb_stdlog, "displaced: unwind pc = %lx. "
"Setting momentary breakpoint.\n", (unsigned long) return_to);
@@ -743,7 +818,7 @@ arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to,
else if (debug_displaced)
fprintf_unfiltered (gdb_stdlog, "displaced: sigreturn/rt_sigreturn "
"SVC call not in signal trampoline frame\n");
- }
+
/* Preparation: If we detect sigreturn, set momentary breakpoint at resume
location, else nothing.
@@ -944,6 +1019,9 @@ arm_linux_init_abi (struct gdbarch_info info,
set_gdbarch_displaced_step_free_closure (gdbarch,
simple_displaced_step_free_closure);
set_gdbarch_displaced_step_location (gdbarch, displaced_step_at_entry_point);
+
+
+ tdep->syscall_next_pc = arm_linux_syscall_next_pc;
}
/* Provide a prototype to silence -Wmissing-prototypes. */
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 1ac8817..36b46b5 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -257,7 +257,7 @@ int arm_apcs_32 = 1;
/* Determine if FRAME is executing in Thumb mode. */
-static int
+int
arm_frame_is_thumb (struct frame_info *frame)
{
CORE_ADDR cpsr;
@@ -2808,7 +2808,16 @@ thumb_get_next_pc_raw (struct frame_info *frame, CORE_ADDR pc, int insert_bkpt)
else if ((inst1 & 0xf000) == 0xd000) /* conditional branch */
{
unsigned long cond = bits (inst1, 8, 11);
- if (cond != 0x0f && condition_true (cond, status)) /* 0x0f = SWI */
+ if (cond == 0x0f) /* 0x0f = SWI */
+ {
+ struct gdbarch_tdep *tdep;
+ tdep = gdbarch_tdep (gdbarch);
+
+ if (tdep->syscall_next_pc != NULL)
+ nextpc = tdep->syscall_next_pc (frame);
+
+ }
+ else if (cond != 0x0f && condition_true (cond, status))
nextpc = pc_val + (sbits (inst1, 0, 7) << 1);
}
else if ((inst1 & 0xf800) == 0xe000) /* unconditional branch */
@@ -3257,7 +3266,16 @@ arm_get_next_pc_raw (struct frame_info *frame, CORE_ADDR pc, int insert_bkpt)
case 0xc:
case 0xd:
case 0xe: /* coproc ops */
+ break;
case 0xf: /* SWI */
+ {
+ struct gdbarch_tdep *tdep;
+ tdep = gdbarch_tdep (gdbarch);
+
+ if (tdep->syscall_next_pc != NULL)
+ nextpc = tdep->syscall_next_pc (frame);
+
+ }
break;
default:
diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h
index b6283ef..2f4e99b 100644
--- a/gdb/arm-tdep.h
+++ b/gdb/arm-tdep.h
@@ -193,6 +193,10 @@ struct gdbarch_tdep
struct type *arm_ext_type;
struct type *neon_double_type;
struct type *neon_quad_type;
+
+ /* Return the expected next PC if FRAME is stopped at a syscall
+ instruction. */
+ CORE_ADDR (*syscall_next_pc) (struct frame_info *frame);
};
/* Structures used for displaced stepping. */
@@ -294,6 +298,7 @@ extern void
CORE_ADDR arm_skip_stub (struct frame_info *, CORE_ADDR);
CORE_ADDR arm_get_next_pc (struct frame_info *, CORE_ADDR);
int arm_software_single_step (struct frame_info *);
+int arm_frame_is_thumb (struct frame_info *frame);
extern struct displaced_step_closure *
arm_displaced_step_copy_insn (struct gdbarch *, CORE_ADDR, CORE_ADDR,
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 448c435..71c605c 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-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb.texinfo (PowerPC Embedded): Mention support for the DVC register.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 708a5d5..65d4899 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -28748,6 +28748,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 acbeed6..1e75235 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -12579,13 +12579,16 @@ dwarf2_per_objfile_free (struct objfile *objfile, void *d)
{
struct dwarf2_per_objfile *data = d;
+ /* This is sorted according to the order they're defined in to make it easier
+ to keep in sync. */
munmap_section_buffer (&data->info);
munmap_section_buffer (&data->abbrev);
munmap_section_buffer (&data->line);
- munmap_section_buffer (&data->str);
+ munmap_section_buffer (&data->loc);
munmap_section_buffer (&data->macinfo);
+ munmap_section_buffer (&data->str);
munmap_section_buffer (&data->ranges);
- munmap_section_buffer (&data->loc);
+ munmap_section_buffer (&data->types);
munmap_section_buffer (&data->frame);
munmap_section_buffer (&data->eh_frame);
}
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 57f2ab8..54b1d9f 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -6436,6 +6436,11 @@ set_exec_direction_func (char *args, int from_tty,
else if (!strcmp (exec_direction, exec_reverse))
execution_direction = EXEC_REVERSE;
}
+ else
+ {
+ exec_direction = exec_forward;
+ error (_("Target does not support this operation."));
+ }
}
static void
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 95a0bc5..b996475 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1579,6 +1579,8 @@ mi_cmd_list_target_features (char *command, char **argv, int argc)
cleanup = make_cleanup_ui_out_list_begin_end (uiout, "features");
if (target_can_async_p ())
ui_out_field_string (uiout, NULL, "async");
+ if (target_can_execute_reverse)
+ ui_out_field_string (uiout, NULL, "reverse");
do_cleanups (cleanup);
return;
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 71cb96d..8f81444 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,14 @@
+2010-08-26 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.
+
+2010-08-26 Yao Qi <yao@codesourcery.com>
+
+ * gdb.gdb/selftest.exp (do_steps_and_nexts): Update test case
+ to reflect latest c source file.
+
2010-08-19 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb.arch/vsx-regs.exp: Remove wrong comment about testing AltiVec
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-func.c b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-func.c
index 5f77883..e6fa680 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-func.c
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame-func.c
@@ -19,6 +19,7 @@ asm (".globl cu_text_start");
asm ("cu_text_start:");
asm (".globl func_nofb_start");
+asm (".p2align 4");
asm ("func_nofb_start:");
void
@@ -31,6 +32,7 @@ asm (".globl func_nofb_end");
asm ("func_nofb_end:");
asm (".globl func_loopfb_start");
+asm (".p2align 4");
asm ("func_loopfb_start:");
void
diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp
index 1aed252..fc8bccc 100644
--- a/gdb/testsuite/gdb.gdb/selftest.exp
+++ b/gdb/testsuite/gdb.gdb/selftest.exp
@@ -185,11 +185,15 @@ proc do_steps_and_nexts {} {
set description "step over instream initialization"
set command "step"
}
- -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf..;.*$gdb_prompt $" {
+ -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf.*$gdb_prompt $" {
set description "next over getcwd"
set command "next"
}
- -re ".*quit_flag = 0.*$gdb_prompt $" {
+ -re ".*gdb_program_name = xstrdup.*$gdb_prompt $" {
+ set description "next over xstrdup"
+ set command "next"
+ }
+ -re ".*quit_flag = 0.*$gdb_prompt $" {
set description "step over quit_flag initialization"
set command "step"
}
diff --git a/gdb/version.in b/gdb/version.in
index 755e248..2f5b8d6 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.1.90.20100823-cvs
+7.1.90.20100902-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-08-23 13:54 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-08-23 13:54 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via 8541ad14df1e60f103f672773a9eed617ad7b06e (commit)
via 62bb9ab3ae2f4f19e52fdc33d92193595cc495c9 (commit)
via 63cc0f1c3903c8215893cc41103557d31fce3573 (commit)
from b089cf75ec05880b557518a444af4149b848f463 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 8541ad14df1e60f103f672773a9eed617ad7b06e
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 23 00:00:34 2010 +0000
*** empty log message ***
commit 62bb9ab3ae2f4f19e52fdc33d92193595cc495c9
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 22 00:00:03 2010 +0000
*** empty log message ***
commit 63cc0f1c3903c8215893cc41103557d31fce3573
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Aug 21 00:00:32 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/version.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
First 500 lines of diff:
diff --git a/gdb/version.in b/gdb/version.in
index 95ba5ff..755e248 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.1.90.20100820-cvs
+7.1.90.20100823-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-08-20 17:49 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-08-20 17:49 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via b089cf75ec05880b557518a444af4149b848f463 (commit)
via e7e6e2a46b483b327e83171d1b39dde3f7941e23 (commit)
via 35f93e9e8fa2c302df2a0f04bf69f884bc27839d (commit)
via 24660db925b8722743aba2a5fe0ecb9b0e1b954e (commit)
via 1afc7758e886a59d4ad55ea7782dddf6f4fe18d8 (commit)
via 81b5053579e82941ffdd682ce605eef5ec518ceb (commit)
via 18d7c2b1fa488112c37302b7bd1e3d5fae326464 (commit)
via a57da38498ab9f60e98003cc7714833decd39199 (commit)
via 461721bf365f8e80fca4036c829c641c3a054fcc (commit)
via 0435f77c72adbf1bdb95322e26520cd3a3cee4b1 (commit)
via 1e77c4dc7186ff270b1964c4daf89daf4b1e4d97 (commit)
via 5c599900430ea25c890609aa07e140eab8387223 (commit)
via d7d8797c238954277f4a26c0d391bd436051fceb (commit)
via 160d37a8f0194a7bbd44a91bf63cddac923c084b (commit)
via e662a4d528c5d103544d0b6e2169b0921b20df05 (commit)
via acdb1a724b7091bb0d9160271be9705c533f7700 (commit)
via 4f375a0e5d822c6496d090118f62249452fcb2a4 (commit)
via 5ad31112678c9aaf0478a1edcf7686475a717951 (commit)
via cd0e10e1b239e1bbcf8c2d4ca55b6ab19a348493 (commit)
via 6ce988e0b8d7dddf759ef8b02583e3024090cdb5 (commit)
via ab40990dd4b1f32d2332b29d15b2e0d8f5cfd349 (commit)
via deabd636fca816718ff93f02b1ba55c474d7d607 (commit)
via 0da6427539977517f7665ef8fd7023eadda110c8 (commit)
via fc4aafd93185f76575a0eaaf771e911b6729541b (commit)
via 0725ec26aee321086be5f4eb75c0a8d1ab2b32ff (commit)
via 5f87194acf901cc67dd5f0896d05b9b6940a2743 (commit)
via bbf2bc21959a7b81746eb98ef2bdf048860e70d5 (commit)
via 29f0986022a1d1fd7440a02233e92d3314038bd8 (commit)
from ec30362b6c3428a6dbdc332a165ee8280b9059fb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit b089cf75ec05880b557518a444af4149b848f463
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Aug 20 00:00:34 2010 +0000
*** empty log message ***
commit e7e6e2a46b483b327e83171d1b39dde3f7941e23
Author: Stan Shebs <shebs@apple.com>
Date: Thu Aug 19 23:31:50 2010 +0000
* NEWS: Mention some additional changes.
commit 35f93e9e8fa2c302df2a0f04bf69f884bc27839d
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Aug 19 18:40:33 2010 +0000
* Makefile.in (install-python): Add DESTDIR.
commit 24660db925b8722743aba2a5fe0ecb9b0e1b954e
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Thu Aug 19 17:53:53 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 1afc7758e886a59d4ad55ea7782dddf6f4fe18d8
Author: Doug Evans <dje@google.com>
Date: Thu Aug 19 15:50:00 2010 +0000
PR exp/11926
* c-exp.y (parse_number): Handle 0 return from sscanf.
testsuite/
* gdb.base/printcmds.exp (test_integer_literals_rejected): Add
test of "p 0x1.1".
commit 81b5053579e82941ffdd682ce605eef5ec518ceb
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Aug 19 09:12:32 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 18d7c2b1fa488112c37302b7bd1e3d5fae326464
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Aug 19 00:00:05 2010 +0000
*** empty log message ***
commit a57da38498ab9f60e98003cc7714833decd39199
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Aug 18 22:55:53 2010 +0000
PR python/11900:
* configure: Rebuild.
* configure.ac: Add install-python to CONFIG_INSTALL.
* Makefile.in (install-python): New.
commit 461721bf365f8e80fca4036c829c641c3a054fcc
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Wed Aug 18 18:03:51 2010 +0000
* gdb.texinfo (PowerPC Embedded): Mention support for the DVC register.
commit 0435f77c72adbf1bdb95322e26520cd3a3cee4b1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Aug 18 00:00:04 2010 +0000
*** empty log message ***
commit 1e77c4dc7186ff270b1964c4daf89daf4b1e4d97
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 17 00:00:33 2010 +0000
*** empty log message ***
commit 5c599900430ea25c890609aa07e140eab8387223
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 16 00:00:03 2010 +0000
*** empty log message ***
commit d7d8797c238954277f4a26c0d391bd436051fceb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 15 00:00:03 2010 +0000
*** empty log message ***
commit 160d37a8f0194a7bbd44a91bf63cddac923c084b
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Sat Aug 14 00:46:43 2010 +0000
* arm-tdep.c (arm_push_dummy_call): Handle pointers to
typedef'ed function types correctly.
commit e662a4d528c5d103544d0b6e2169b0921b20df05
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Aug 14 00:00:33 2010 +0000
*** empty log message ***
commit acdb1a724b7091bb0d9160271be9705c533f7700
Author: Doug Evans <dje@google.com>
Date: Fri Aug 13 20:44:42 2010 +0000
* gdb.texinfo (.debug_gdb_scripts section): Fix typo.
commit 4f375a0e5d822c6496d090118f62249452fcb2a4
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Aug 13 00:00:03 2010 +0000
*** empty log message ***
commit 5ad31112678c9aaf0478a1edcf7686475a717951
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Aug 12 00:00:33 2010 +0000
*** empty log message ***
commit cd0e10e1b239e1bbcf8c2d4ca55b6ab19a348493
Author: tschwinge <tschwinge>
Date: Wed Aug 11 15:58:49 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 6ce988e0b8d7dddf759ef8b02583e3024090cdb5
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Aug 11 15:43:00 2010 +0000
2010-08-11 Brad Roberts <braddr@puremagic.com>
* d-lang.c (extract_identifiers): Handle multiple digits.
commit ab40990dd4b1f32d2332b29d15b2e0d8f5cfd349
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Aug 11 00:00:34 2010 +0000
*** empty log message ***
commit deabd636fca816718ff93f02b1ba55c474d7d607
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Aug 10 20:24:54 2010 +0000
* gdb.texinfo (Pretty Printing API): Document
gdb.default_visualizer.
commit 0da6427539977517f7665ef8fd7023eadda110c8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 10 00:00:03 2010 +0000
*** empty log message ***
commit fc4aafd93185f76575a0eaaf771e911b6729541b
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Mon Aug 9 19:22:57 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 0725ec26aee321086be5f4eb75c0a8d1ab2b32ff
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 9 00:00:33 2010 +0000
*** empty log message ***
commit 5f87194acf901cc67dd5f0896d05b9b6940a2743
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 8 00:00:04 2010 +0000
*** empty log message ***
commit bbf2bc21959a7b81746eb98ef2bdf048860e70d5
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Aug 7 00:00:33 2010 +0000
*** empty log message ***
commit 29f0986022a1d1fd7440a02233e92d3314038bd8
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Aug 6 19:51:48 2010 +0000
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.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 60 +++++++++++++++++++++++++
gdb/Makefile.in | 2 +
gdb/NEWS | 52 +++++++++++++++++++++
gdb/arm-tdep.c | 2 +-
gdb/c-exp.y | 6 +++
gdb/configure | 1 +
gdb/configure.ac | 1 +
gdb/d-lang.c | 8 ++-
gdb/defs.h | 8 +++
gdb/doc/ChangeLog | 19 ++++++++
gdb/doc/gdb.texinfo | 35 ++++++++++++--
gdb/gdbcmd.h | 1 +
gdb/gdbserver/ChangeLog | 5 ++
gdb/gdbserver/linux-low.c | 2 +-
gdb/psymtab.c | 2 +-
gdb/python/python.c | 47 ++------------------
gdb/symtab.c | 2 +-
gdb/testsuite/ChangeLog | 20 ++++++++
gdb/testsuite/gdb.arch/vsx-regs.exp | 20 ++++----
gdb/testsuite/gdb.base/printcmds.exp | 1 +
gdb/testsuite/gdb.python/python.exp | 23 +++++++++
gdb/thread.c | 4 +-
gdb/top.c | 33 ++++++++++++++
gdb/utils.c | 82 ++++++++++++++++++++++++++++++++++
gdb/version.in | 2 +-
25 files changed, 370 insertions(+), 68 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c94c80a..70c2d52 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,63 @@
+2010-08-19 Stan Shebs <stan@codesourcery.com>
+
+ * NEWS: Mention some additional changes.
+
+2010-08-19 Tom Tromey <tromey@redhat.com>
+
+ * Makefile.in (install-python): Add DESTDIR.
+
+2010-08-19 Doug Evans <dje@google.com>
+
+ PR exp/11926
+ * c-exp.y (parse_number): Handle 0 return from sscanf.
+
+2010-08-19 Joel Brobecker <brobecker@adacore.com>
+
+ * 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.
+
+2010-08-18 Tom Tromey <tromey@redhat.com>
+
+ PR python/11900:
+ * configure: Rebuild.
+ * configure.ac: Add install-python to CONFIG_INSTALL.
+ * Makefile.in (install-python): New.
+
+2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * arm-tdep.c (arm_push_dummy_call): Handle pointers to
+ typedef'ed function types correctly.
+
+2010-08-11 Brad Roberts <braddr@puremagic.com>
+
+ * d-lang.c (extract_identifiers): Handle multiple digits.
+
+2010-08-09 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-05 Marc Khouzam <marc.khouzam@ericsson.com>
* mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 65eb1fe..f07bc8b 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1037,6 +1037,8 @@ install-tui:
$(INSTALL_DATA) $(srcdir)/gdb.1 \
$(DESTDIR)$(man1dir)/$$transformed_name.1
+install-python:
+ $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb
uninstall: force $(CONFIG_UNINSTALL)
transformed_name=`t='$(program_transform_name)'; \
diff --git a/gdb/NEWS b/gdb/NEWS
index 95a6b10..c1553d2 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -75,6 +75,26 @@
remote packets have been defined to support static tracepoints, see
the "New remote packets" section below.
+* Better reconstruction of tracepoints after disconnected tracing
+
+ GDB will attempt to download the original source form of tracepoint
+ definitions when starting a trace run, and then will upload these
+ upon reconnection to the target, resulting in a more accurate
+ reconstruction of the tracepoints that are in use on the target.
+
+* Observer mode
+
+ You can now exercise direct control over the ways that GDB can
+ affect your program. For instance, you can disallow the setting of
+ breakpoints, so that the program can run continuously (assuming
+ non-stop mode). In addition, the "observer" variable is available
+ to switch all of the different controls; in observer mode, GDB
+ cannot affect the target's behavior at all, which is useful for
+ tasks like diagnosing live systems in the field.
+
+* The new convenience variable $_thread holds the number of the
+ current thread.
+
* New remote packets
qGetTIBAddr
@@ -105,6 +125,15 @@ qXfer:statictrace:read
tracepoint action). The remote stub reports support for this packet
to gdb's qSupported query.
+QAllow
+
+ Send the current settings of GDB's permission flags.
+
+QTDPsrc
+
+ Send part of the source (textual) form of a tracepoint definition,
+ which includes location, conditional, and action list.
+
* The source command now accepts a -s option to force searching for the
script in the source search path even if the script name specifies
a directory.
@@ -190,6 +219,29 @@ strace FN | FILE:LINE | *ADDR | -m MARKER_ID
Define a static tracepoint by probing a marker at the given
function, line, address, or marker ID.
+set observer on|off
+show observer
+ Enable and disable observer mode.
+
+set may-write-registers on|off
+set may-write-memory on|off
+set may-insert-breakpoints on|off
+set may-insert-tracepoints on|off
+set may-insert-fast-tracepoints on|off
+set may-interrupt on|off
+ Set individual permissions for GDB effects on the target. Note that
+ some of these settings can have undesirable or surprising
+ consequences, particularly when changed in the middle of a session.
+ For instance, disabling the writing of memory can prevent
+ breakpoints from being inserted, cause single-stepping to fail, or
+ even crash your program, if you disable after breakpoints have been
+ inserted. However, GDB should not crash.
+
+set record memory-query on|off
+show record memory-query
+ Control whether to stop the inferior if memory changes caused
+ by an instruction cannot be recorded.
+
* Changed commands
disassemble
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 31f17f1..1ac8817 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -2144,7 +2144,7 @@ arm_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
the THUMB bit in it. */
if (TYPE_CODE_PTR == typecode
&& target_type != NULL
- && TYPE_CODE_FUNC == TYPE_CODE (target_type))
+ && TYPE_CODE_FUNC == TYPE_CODE (check_typedef (target_type)))
{
CORE_ADDR regval = extract_unsigned_integer (val, len, byte_order);
if (arm_pc_is_thumb (regval))
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 030554c..d83bbf4 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1371,6 +1371,12 @@ parse_number (char *p, int len, int parsed_float, YYSTYPE *putithere)
&putithere->typed_val_float.dval, s);
p[len] = saved_char; /* restore the input stream */
+ if (num == 0)
+ {
+ free (s);
+ return ERROR;
+ }
+
if (num == 1)
putithere->typed_val_float.type =
parse_type->builtin_double;
diff --git a/gdb/configure b/gdb/configure
index 814fdb4..041ffc1 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -10918,6 +10918,7 @@ $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
+ CONFIG_INSTALL="$CONFIG_INSTALL install-python"
ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
# Flags needed to compile Python code (taken from python-config --cflags).
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 0647b1d..b69c3b6 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -832,6 +832,7 @@ if test "${have_libpython}" != no; then
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
+ CONFIG_INSTALL="$CONFIG_INSTALL install-python"
ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
# Flags needed to compile Python code (taken from python-config --cflags).
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 9b2decd..266c009 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -351,6 +351,10 @@ 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);
+
+extern struct cleanup *
+ make_cleanup_restore_ui_file (struct ui_file **variable);
extern struct cleanup *make_final_cleanup (make_cleanup_ftype *, void *);
@@ -383,6 +387,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 5dea506..448c435 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,22 @@
+2010-08-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * gdb.texinfo (PowerPC Embedded): Mention support for the DVC register.
+
+2010-08-13 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (.debug_gdb_scripts section): Fix typo.
+
+2010-08-10 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Pretty Printing API): Document
+ gdb.default_visualizer.
+
+2010-08-09 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-30 Hui Zhu <teawater@gmail.com>
* gdb.texinfo (Inferiors and Programs): Update the introduce of
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 7a372a3..708a5d5 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
@@ -18421,6 +18421,19 @@ Set suspend trace mode.
@node PowerPC Embedded
@subsection PowerPC Embedded
+@cindex DVC register
+@value{GDBN} supports using the DVC (Data Value Compare) register to
+implement in hardware simple hardware watchpoint conditions of the form:
+
+@smallexample
+(@value{GDBP}) watch @var{ADDRESS|VARIABLE} \
+ if @var{ADDRESS|VARIABLE} == @var{CONSTANT EXPRESSION}
+@end smallexample
+
+The DVC register will be automatically used whenever @value{GDBN} detects
+such pattern in a condition expression. This feature is available in native
+@value{GDBN} running on a Linux kernel version 2.6.34 or newer.
+
@value{GDBN} provides the following PowerPC-specific commands:
@table @code
@@ -20432,7 +20445,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
@@ -21086,6 +21101,16 @@ are peformed in this method and nothing is printed.
If the result is not one of these types, an exception is raised.
@end defop
+@value{GDBN} provides a function which can be used to look up the
+default pretty-printer for a @code{gdb.Value}:
+
+@findex gdb.default_visualizer
+@defun default_visualizer value
+This function takes a @code{gdb.Value} object as an argument. If a
+pretty-printer for this value exists, then it is returned. If no such
+printer exists, then this returns @code{None}.
+@end defun
+
@node Selecting Pretty-Printers
@subsubsection Selecting Pretty-Printers
@@ -22584,7 +22609,7 @@ Entries can be placed in section @code{.debug_gdb_scripts} with,
for example, this GCC macro:
@example
-/* Note: The "MS" section flags are to remote duplicates. */
+/* Note: The "MS" section flags are to remove duplicates. */
#define DEFINE_GDB_SCRIPT(script_name) \
asm("\
.pushsection \".debug_gdb_scripts\", \"MS\",@@progbits,1\n\
diff --git a/gdb/gdbcmd.h b/gdb/gdbcmd.h
index 6a230c0..78151dd 100644
--- a/gdb/gdbcmd.h
+++ b/gdb/gdbcmd.h
@@ -125,6 +125,7 @@ extern struct cmd_list_element *setchecklist;
extern struct cmd_list_element *showchecklist;
extern void execute_command (char *, int);
+extern char *execute_command_to_string (char *p, int from_tty);
enum command_control_type execute_control_command (struct command_line *);
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 7c182cb..90bb280 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
+
+ * linux-low.c (linux_wait_1): Correctly return the ptid of the child
+ after its termination.
+
2010-07-21 Ozkan Sezer <sezeroz@gmail.com>
* server.c (handle_query): strcpy() the returned string from paddress()
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 64007b0..241e0ab 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -2071,7 +2071,7 @@ retry:
}
- return pid_to_ptid (pid);
+ return ptid_of (event_child);
}
}
else
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 367cf1e..97a4eec 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -905,7 +905,7 @@ map_symbol_filenames_psymtab (struct objfile *objfile,
continue;
fullname = psymtab_to_fullname (ps);
- (*fun) (fullname, ps->filename, data);
+ (*fun) (ps->filename, fullname, data);
}
}
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 6680126..7346fba 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -309,33 +309,6 @@ gdbpy_target_wide_charset (PyObject *self, PyObject *args)
return PyUnicode_Decode (cset, strlen (cset), host_charset (), NULL);
}
-struct restore_ui_file_closure
-{
- struct ui_file **variable;
- struct ui_file *value;
-};
-
-static void
-restore_ui_file (void *p)
-{
- struct restore_ui_file_closure *closure = p;
-
- *(closure->variable) = closure->value;
-}
-
-/* Remember the current value of *VARIABLE and make it restored when
- the cleanup is run. */
-struct cleanup *
-make_cleanup_restore_ui_file (struct ui_file **variable)
-{
- struct restore_ui_file_closure *c = XNEW (struct restore_ui_file_closure);
-
- c->variable = variable;
- c->value = *variable;
-
- return make_cleanup_dtor (restore_ui_file, (void *) c, xfree);
-}
-
/* A Python function which evaluates a string using the gdb CLI. */
static PyObject *
@@ -376,27 +349,15 @@ execute_gdb_command (PyObject *self, PyObject *args, PyObject *kw)
/* Copy the argument text in case the command modifies it. */
char *copy = xstrdup (arg);
struct cleanup *cleanup = make_cleanup (xfree, copy);
- struct ui_file *str_file = NULL;
if (to_string)
+ result = execute_command_to_string (copy, from_tty);
+ else
{
- str_file = mem_fileopen ();
-
- make_cleanup_restore_ui_file (&gdb_stdout);
- make_cleanup_restore_ui_file (&gdb_stderr);
- make_cleanup_ui_file_delete (str_file);
-
- gdb_stdout = str_file;
- gdb_stderr = str_file;
+ result = NULL;
+ execute_command (copy, from_tty);
}
- execute_command (copy, from_tty);
-
- if (str_file)
- result = ui_file_xstrdup (str_file, NULL);
- else
- result = NULL;
-
do_cleanups (cleanup);
}
GDB_PY_HANDLE_EXCEPTION (except);
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 9472c24..2c4c9e4 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -3997,7 +3997,7 @@ struct add_partial_filename_data
/* A callback for map_partial_symbol_filenames. */
static void
-maybe_add_partial_symtab_filename (const char *fullname, const char *filename,
+maybe_add_partial_symtab_filename (const char *filename, const char *fullname,
void *user_data)
{
struct add_partial_filename_data *data = user_data;
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index bf28361..71cb96d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,23 @@
+2010-08-19 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * gdb.arch/vsx-regs.exp: Remove wrong comment about testing AltiVec
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-08-06 15:32 jkratoch
0 siblings, 0 replies; 46+ messages in thread
From: jkratoch @ 2010-08-06 15:32 UTC (permalink / raw)
To: archer-commits
The branch, gdb_7_2-branch has been updated
via ec30362b6c3428a6dbdc332a165ee8280b9059fb (commit)
via c2052b0e7f3ee63a0e6af8523e82a78a58f05dca (commit)
via 9519ebfd49811b0b1c949bbd9012de4671db8a00 (commit)
via 9772882ae2d7ac8448b06b554fea631526022d17 (commit)
via 8f58978a7768cbb70110eaf136641f8a3a465f0f (commit)
via 5feef7c01a204fa606e6d1992a6e88681afcdd1c (commit)
via 928d43440ba207d3d46fc3fbddd739b4044c20ab (commit)
via a9860317574f459388ec0ab7c4de5f9c03c56571 (commit)
via 582c012408a73234763de7825e4d554e5a584e64 (commit)
via 64c344813afa4c00b880da70498c798eb3fe3901 (commit)
via cf6530392c70d9aa29432624cc01c913e0f0c71d (commit)
via 0e6c111e20133d95a1d84614ec1d23b7ac7783bf (commit)
via bad9ceda1b70a0511ee6a588e1e3344e8b1d9c58 (commit)
via f8a1ae91c1e514ba1a23eb6d1f92e15c7bf3c019 (commit)
via 7e56c80e6e9abb8990baade20bc418d6306d15d8 (commit)
via 62acb95065161d63b06520b9e33a372ce56ad6ec (commit)
via 3f679d9e6b31c82702f6b7afca80492f8d3aba33 (commit)
via 72977b73f3544249edafa80fa1e6e81d334de76d (commit)
via 2d5e1c9512898ccffc75e64839d652a84dd1f4f1 (commit)
via 3c9bcf68855e7f22db97447fdb91fd65419a22e0 (commit)
via 3446b84077cc0d65346bfe740730673f5daf00c0 (commit)
via 073ebdbeb2809486d5a976be6da6eb1152df3e3d (commit)
via 2c70422705b66ef8d4477bc73632336f65ac335c (commit)
via 8b850f0f4a98c654907d6716bdb6a0198d1df653 (commit)
via 1c3bce6c48b2b0da78340f68d498fc2a9fa45bcc (commit)
via 246946de5bca957b7c34a48222655bfa9ab60b54 (commit)
via 9238639b233ad4da42ae6de33f1d95734585aac7 (commit)
via d13f12e88a12a7744d755a7c63d748e0002ffb78 (commit)
via d7d087193234adb87b63d2659f6f2e7985b5f47a (commit)
via 52f292a02c9baa31790a6b78fdc7483874b71762 (commit)
from ea8f06a2b443c1f4264a62b50badbd402caebc8f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ec30362b6c3428a6dbdc332a165ee8280b9059fb
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Aug 6 00:00:33 2010 +0000
*** empty log message ***
commit c2052b0e7f3ee63a0e6af8523e82a78a58f05dca
Author: Marc Khouzam <marc.khouzam@ericsson.com>
Date: Thu Aug 5 16:06:35 2010 +0000
* mi/mi-main.c (mi_cmd_remove_inferior): Properly access first argument.
commit 9519ebfd49811b0b1c949bbd9012de4671db8a00
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Aug 5 00:00:04 2010 +0000
*** empty log message ***
commit 9772882ae2d7ac8448b06b554fea631526022d17
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Aug 4 00:00:04 2010 +0000
*** empty log message ***
commit 8f58978a7768cbb70110eaf136641f8a3a465f0f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Aug 3 00:00:36 2010 +0000
*** empty log message ***
commit 5feef7c01a204fa606e6d1992a6e88681afcdd1c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Aug 2 00:00:04 2010 +0000
*** empty log message ***
commit 928d43440ba207d3d46fc3fbddd739b4044c20ab
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Aug 1 00:00:04 2010 +0000
*** empty log message ***
commit a9860317574f459388ec0ab7c4de5f9c03c56571
Author: crq <crq>
Date: Sat Jul 31 01:31:34 2010 +0000
gdb/
* MAINTAINERS: Add myself for write after approval privileges.
commit 582c012408a73234763de7825e4d554e5a584e64
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jul 31 00:00:33 2010 +0000
*** empty log message ***
commit 64c344813afa4c00b880da70498c798eb3fe3901
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jul 30 16:02:16 2010 +0000
* configure: Rebuild.
* configure.ac: Add missing case for Python 2.7.
commit cf6530392c70d9aa29432624cc01c913e0f0c71d
Author: Hui Zhu <teawater@gmail.com>
Date: Fri Jul 30 14:40:59 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 0e6c111e20133d95a1d84614ec1d23b7ac7783bf
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jul 30 00:00:03 2010 +0000
*** empty log message ***
commit bad9ceda1b70a0511ee6a588e1e3344e8b1d9c58
Author: Pedro Alves <pedro@codesourcery.com>
Date: Thu Jul 29 14:44:45 2010 +0000
* PROBLEMS: Remove mention of all problems.
commit f8a1ae91c1e514ba1a23eb6d1f92e15c7bf3c019
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jul 29 00:00:03 2010 +0000
*** empty log message ***
commit 7e56c80e6e9abb8990baade20bc418d6306d15d8
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 28 20:20:11 2010 +0000
2010-07-28 Oleg Nesterov <oleg@redhat.com>
* remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
commit 62acb95065161d63b06520b9e33a372ce56ad6ec
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 28 18:32:46 2010 +0000
* Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
commit 3f679d9e6b31c82702f6b7afca80492f8d3aba33
Author: Joel Brobecker <brobecker@gnat.com>
Date: Wed Jul 28 18:00:01 2010 +0000
* breakpoint.c (breakpoint_re_set_one): Move call to set_language
down, just before the block that parse the breakpoint addr_string.
commit 72977b73f3544249edafa80fa1e6e81d334de76d
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jul 28 00:00:03 2010 +0000
*** empty log message ***
commit 2d5e1c9512898ccffc75e64839d652a84dd1f4f1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 27 23:21:07 2010 +0000
gdb/testsuite/
* gdb.base/help.exp (help disassemble): Update the content.
commit 3c9bcf68855e7f22db97447fdb91fd65419a22e0
Author: crq <crq>
Date: Tue Jul 27 20:14:23 2010 +0000
* cli/cli-cmds.c (disassemble_command): Add support of disassemble
"start,+length" form of arguments.
commit 3446b84077cc0d65346bfe740730673f5daf00c0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 27 19:13:09 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 073ebdbeb2809486d5a976be6da6eb1152df3e3d
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 27 18:10:21 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 2c70422705b66ef8d4477bc73632336f65ac335c
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 27 17:05:26 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 8b850f0f4a98c654907d6716bdb6a0198d1df653
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Tue Jul 27 16:13:44 2010 +0000
* ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
VSX registers contents.
commit 1c3bce6c48b2b0da78340f68d498fc2a9fa45bcc
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 27 16:11:02 2010 +0000
* dwarf2loc.c (locexpr_describe_location_piece): Also recognize
TLS with DW_OP_const4u or DW_OP_const8u.
commit 246946de5bca957b7c34a48222655bfa9ab60b54
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jul 27 00:00:04 2010 +0000
*** empty log message ***
commit 9238639b233ad4da42ae6de33f1d95734585aac7
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jul 26 00:00:34 2010 +0000
*** empty log message ***
commit d13f12e88a12a7744d755a7c63d748e0002ffb78
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jul 25 00:00:33 2010 +0000
*** empty log message ***
commit d7d087193234adb87b63d2659f6f2e7985b5f47a
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jul 24 00:00:32 2010 +0000
*** empty log message ***
commit 52f292a02c9baa31790a6b78fdc7483874b71762
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jul 23 00:00:34 2010 +0000
*** empty log message ***
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 56 +++++++++++++++++
gdb/MAINTAINERS | 1 +
gdb/Makefile.in | 2 +-
gdb/NEWS | 13 +++--
gdb/PROBLEMS | 102 +-------------------------------
gdb/breakpoint.c | 2 +-
gdb/cli/cli-cmds.c | 18 +++++-
gdb/configure | 37 ++++++++++++
gdb/configure.ac | 8 ++-
gdb/doc/ChangeLog | 10 +++
gdb/doc/gdb.texinfo | 36 ++++++++++--
gdb/dwarf2loc.c | 14 +++--
gdb/mi/mi-main.c | 2 +-
gdb/ppc-linux-nat.c | 2 +-
gdb/remote.c | 3 +-
gdb/testsuite/ChangeLog | 29 +++++++++
gdb/testsuite/gdb.base/help.exp | 2 +-
gdb/testsuite/gdb.base/relocate.c | 7 ++
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.stabs/gdb11479.c | 14 ++++-
gdb/top.c | 3 +
gdb/utils.c | 5 +-
gdb/version.in | 2 +-
27 files changed, 278 insertions(+), 147 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1585b52..c94c80a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,59 @@
+2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
+ argument.
+
+2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
+
+ * MAINTAINERS: Add myself for write after approval privileges.
+
+2010-07-30 Tom Tromey <tromey@redhat.com>
+
+ * configure: Rebuild.
+ * configure.ac: Add missing case for Python 2.7.
+
+2010-07-29 Pedro Alves <pedro@codesourcery.com>
+
+ * PROBLEMS: Remove mention of all problems.
+
+2010-07-28 Oleg Nesterov <oleg@redhat.com>
+
+ * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
+
+2010-07-28 Tom Tromey <tromey@redhat.com>
+
+ * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
+
+2010-07-28 Joel Brobecker <brobecker@adacore.com>
+
+ * breakpoint.c (breakpoint_re_set_one): Move call to set_language
+ down, just before the block that parse the breakpoint addr_string.
+
+2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
+
+ * cli/cli-cmds.c (disassemble_command): Add support of disassemble
+ "start,+length" form of arguments.
+ * NEWS: Add "Changed commands" (disassemble) section for "Changes
+ since GDB 7.1"; and merge two separated paragraphs of disassemble
+ description in "Changes in GDB 7.0".
+
+2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * 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.
+
+2010-07-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
+ VSX registers contents.
+
+2010-07-27 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
+ TLS with DW_OP_const4u or DW_OP_const8u.
+
2010-07-22 Pedro Alves <pedro@codesourcery.com>
* NEWS: Mention target reported shared libraries support by
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index e023426..2b3a3e0 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -482,6 +482,7 @@ Andrew Cagney cagney@gnu.org
David Carlton carlton@bactrian.org
Stephane Carrez stcarrez@nerim.fr
Michael Chastain mec.gnu@mindspring.com
+Renquan Cheng crq@gcc.gnu.org
Eric Christopher echristo@apple.com
Randolph Chung tausq@debian.org
Nick Clifton nickc@redhat.com
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 6dbb284..65eb1fe 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -737,7 +737,7 @@ ia64-tdep.h ada-lang.h varobj.h frv-tdep.h nto-tdep.h serial.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 \
+gnulib/string.in.h gnulib/str-two-way.h \
gnulib/stdint.in.h remote.h gdb.h sparc-nat.h gdbserver/win32-low.h \
gdbserver/i387-fp.h gdbserver/server.h gdbserver/terminal.h \
gdbserver/mem-break.h gdbserver/wincecompat.h gdbserver/target.h \
diff --git a/gdb/NEWS b/gdb/NEWS
index b552d70..95a6b10 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -190,6 +190,11 @@ strace FN | FILE:LINE | *ADDR | -m MARKER_ID
Define a static tracepoint by probing a marker at the given
function, line, address, or marker ID.
+* Changed commands
+
+disassemble
+ The disassemble command now supports "start,+length" form of two arguments.
+
* Python scripting
** GDB now provides a new directory location, called the python directory,
@@ -539,8 +544,9 @@ or the "condition" command is available. GDB sends the condition to
the target for evaluation using the same bytecode format as is used
for tracepoint actions.
-* "disassemble" command with a /r modifier, print the raw instructions
-in hex as well as in symbolic form.
+* The disassemble command now supports: an optional /r modifier, print the
+raw instructions in hex as well as in symbolic form, and an optional /m
+modifier to print mixed source+assembly.
* Process record and replay
@@ -632,9 +638,6 @@ qXfer:siginfo:write
packet that permited the stub to pass a process id was removed.
Remote servers should use the `T' stop reply packet instead.
-* The "disassemble" command now supports an optional /m modifier to print mixed
-source+assembly.
-
* GDB now supports multiple function calling conventions according to the
DWARF-2 DW_AT_calling_convention function attribute.
diff --git a/gdb/PROBLEMS b/gdb/PROBLEMS
index 030f8ed..094957e 100644
--- a/gdb/PROBLEMS
+++ b/gdb/PROBLEMS
@@ -1,104 +1,6 @@
- Known problems in GDB 6.5
+ Known problems in GDB 7.2
See also: http://www.gnu.org/software/gdb/bugs/
-
-*** Build problems
-
-build/1411: build fails on hpux 10.20 and hpux 11.00 with CMA threads
-
-GDB does not build on HP/UX 10.20 or HP/UX 11.00 if the CMA
-thread package is installed. The compile error is:
-
- ../../gdb/hpux-thread.c:222: variable-size type declared outside of any function
-
-This happens only if the CMA thread package is installed.
-
-As a workaround, you can disable support for CMA threads
-by editing the file gdb/configure. Find the line:
-
- if test -f /usr/include/dce/cma_config.h ; then
-
-And replace it with:
-
- if false ; then
-
-*** Misc
-
-gdb/1560: Control-C does not always interrupt GDB.
-
-When GDB is busy processing a command which takes a long time to
-complete, hitting Control-C does not have the expected effect.
-The command execution is not aborted, and the "QUIT" message confirming
-the abortion is displayed only after the command has been completed.
-
-*** C++ support
-
-gdb/931: GDB could be more generous when reading types C++ templates on input
-
-When the user types a template, GDB frequently requires the type to be
-typed in a certain way (e.g. "const char*" as opposed to "const char *"
-or "char const *" or "char const*").
-
-gdb/1512: no canonical way to output names of C++ types
-
-We currently don't have any canonical way to output names of C++ types.
-E.g. "const char *" versus "char const *"; more subtleties arise when
-dealing with templates.
-
-gdb/1516: [regression] local classes, gcc 2.95.3, dwarf-2
-
-With gcc 2.95.3 and the dwarf-2 debugging format, classes which are
-defined locally to a function include the demangled name of the function
-as part of their name. For example, if a function "foobar" contains a
-local class definition "Local", gdb will say that the name of the class
-type is "foobar__Fi.0:Local".
-
-This applies only to classes where the class type is defined inside a
-function, not to variables defined with types that are defined somewhere
-outside any function (which most types are).
-
-gdb/1588: names of c++ nested types in casts must be enclosed in quotes
-
-You must type
- (gdb) print ('Foo::Bar') x
-or
- (gdb) print ('Foo::Bar' *) y
-instead of
- (gdb) print (Foo::Bar) x
-or
- (gdb) print (Foo::Bar *) y
-respectively.
-
-gdb/1091: Constructor breakpoints ignored
-gdb/1193: g++ 3.3 creates multiple constructors: gdb 5.3 can't set breakpoints
-
-When gcc 3.x compiles a C++ constructor or C++ destructor, it generates
-2 or 3 different versions of the object code. These versions have
-unique mangled names (they have to, in order for linking to work), but
-they have identical source code names, which leads to a great deal of
-confusion. Specifically, if you set a breakpoint in a constructor or a
-destructor, gdb will put a breakpoint in one of the versions, but your
-program may execute the other version. This makes it impossible to set
-breakpoints reliably in constructors or destructors.
-
-gcc 3.x generates these multiple object code functions in order to
-implement virtual base classes. gcc 2.x generated just one object code
-function with a hidden parameter, but gcc 3.x conforms to a multi-vendor
-ABI for C++ which requires multiple object code functions.
-
-*** Threads
-
-threads/1650: manythreads.exp
-
-On GNU/Linux systems that use the old LinuxThreads thread library, a
-program rapidly creating and deleting threads can confuse GDB leading
-to an internal error.
-
-This problem does not occur on newer systems that use the NPTL
-library, and did not occur with GDB 6.1.
-
-threads/2137: Native Solaris Thread Debugging broken.
-
-Use GDB 6.4 if thread debugging is needed on Solaris.
+None worth mentioning here.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 4affe0a..6a6864c 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -10010,7 +10010,6 @@ breakpoint_re_set_one (void *bint)
return 0;
}
- set_language (b->language);
input_radix = b->input_radix;
s = b->addr_string;
@@ -10019,6 +10018,7 @@ breakpoint_re_set_one (void *bint)
marker_spec = b->type == bp_static_tracepoint && is_marker_spec (s);
+ set_language (b->language);
TRY_CATCH (e, RETURN_MASK_ERROR)
{
if (marker_spec)
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 16506d1..e5df8f5 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -1108,8 +1108,9 @@ disassemble_current_function (int flags)
- dump the assembly code for the function of the current pc
disassemble [/mr] addr
- dump the assembly code for the function at ADDR
- disassemble [/mr] low high
- - dump the assembly code in the range [LOW,HIGH)
+ disassemble [/mr] low,high
+ disassemble [/mr] low,+length
+ - dump the assembly code in the range [LOW,HIGH), or [LOW,LOW+length)
A /m modifier will include source code with the assembly.
A /r modifier will include raw instructions in hex with the assembly. */
@@ -1180,8 +1181,18 @@ disassemble_command (char *arg, int from_tty)
else
{
/* Two arguments. */
+ int incl_flag = 0;
low = pc;
+ while (isspace (*arg))
+ arg++;
+ if (arg[0] == '+')
+ {
+ ++arg;
+ incl_flag = 1;
+ }
high = parse_and_eval_address (arg);
+ if (incl_flag)
+ high += low;
}
print_disassembly (gdbarch, name, low, high, flags);
@@ -1615,7 +1626,8 @@ Default is the function surrounding the pc of the selected frame.\n\
With a /m modifier, source lines are included (if available).\n\
With a /r modifier, raw instructions in hex are included.\n\
With a single argument, the function surrounding that address is dumped.\n\
-Two arguments (separated by a comma) are taken as a range of memory to dump."));
+Two arguments (separated by a comma) are taken as a range of memory to dump,\n\
+ in the form of \"start,end\", or \"start,+length\"."));
set_cmd_completer (c, location_completer);
if (xdb_commands)
add_com_alias ("va", "disassemble", class_xdb, 0);
diff --git a/gdb/configure b/gdb/configure
index 94eb9b9..814fdb4 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -10699,6 +10699,43 @@ $as_echo "${found_usable_python}" >&6; }
elif test "${have_python_config}" != failed; then
if test "${have_libpython}" = no; then
+ version=python2.7
+
+ new_CPPFLAGS=${python_includes}
+ new_LIBS="${python_libs} -lpython2.7"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
+$as_echo_n "checking for ${version}... " >&6; }
+ save_CPPFLAGS=$CPPFLAGS
+ save_LIBS=$LIBS
+ CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
+ LIBS="$LIBS $new_LIBS"
+ found_usable_python=no
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include "${version}/Python.h"
+int
+main ()
+{
+Py_Initialize ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ have_libpython=${version}
+ found_usable_python=yes
+else
+ CPPFLAGS=$save_CPPFLAGS
+ LIBS=$save_LIBS
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
+$as_echo "${found_usable_python}" >&6; }
+
+ fi
+ if test "${have_libpython}" = no; then
+
version=python2.6
new_CPPFLAGS=${python_includes}
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 9300544..0647b1d 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -622,7 +622,7 @@ dnl no - Don't include python support.
dnl yes - Include python support, error if it's missing.
dnl If we find python in $PATH, use it to fetch configure options,
dnl otherwise assume the compiler can find it with no help from us.
-dnl Python 2.6, 2.5, and then 2.4 are tried in turn.
+dnl Python 2.7, 2.6, 2.5, and then 2.4 are tried in turn.
dnl auto - Same as "yes", but if python is missing from the system,
dnl fall back to "no".
dnl /path/to/python/exec-prefix -
@@ -631,7 +631,7 @@ dnl If /path/to/python/exec-prefix/bin/python exists, use it to find
dnl the compilation parameters. Otherwise use
dnl -I/path/to/python/exec-prefix/include,
dnl -L/path/to/python/exec-prefix/lib.
-dnl Python 2.6, 2.5, and then 2.4 are tried in turn.
+dnl Python 2.7, 2.6, 2.5, and then 2.4 are tried in turn.
dnl NOTE: This case is historical. It is what was done for 7.0/7.1
dnl but is deprecated.
dnl /path/to/python/executable -
@@ -780,6 +780,10 @@ else
esac
elif test "${have_python_config}" != failed; then
if test "${have_libpython}" = no; then
+ AC_TRY_LIBPYTHON(python2.7, have_libpython,
+ ${python_includes}, "${python_libs} -lpython2.7")
+ fi
+ if test "${have_libpython}" = no; then
AC_TRY_LIBPYTHON(python2.6, have_libpython,
${python_includes}, "${python_libs} -lpython2.6")
fi
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 04f1683..5dea506 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,13 @@
+2010-07-30 Hui Zhu <teawater@gmail.com>
+
+ * gdb.texinfo (Inferiors and Programs): Update the introduce of
+ "detach inferior" and "kill inferior".
+
+2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
+
+ * gdb.texinfo (Machine Code): Update description of two forms of
+ arguments, and add new example to demonstrate the new form.
+
2010-07-13 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (GDB/MI Variable Objects): Remove extra 'for'.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 1297175..7a372a3 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -2481,12 +2481,16 @@ using the @w{@code{kill inferior}} command:
@kindex detach inferior @var{infno}
@item detach inferior @var{infno}
Detach from the inferior identified by @value{GDBN} inferior number
-@var{infno}, and remove it from the inferior list.
+@var{infno}. Note that the inferior's entry still stays on the list
+of inferiors shown by @code{info inferiors}, but its Description will
+show @samp{<null>}.
@kindex kill inferior @var{infno}
@item kill inferior @var{infno}
Kill the inferior identified by @value{GDBN} inferior number
-@var{infno}, and remove it from the inferior list.
+@var{infno}. Note that the inferior's entry still stays on the list
+of inferiors shown by @code{info inferiors}, but its Description will
+show @samp{<null>}.
@end table
After the successful completion of a command such as @code{detach},
@@ -6735,9 +6739,19 @@ program counter of the selected frame. A single argument to this
command is a program counter value; @value{GDBN} dumps the function
surrounding this value. When two arguments are given, they should
be separated by a comma, possibly surrounded by whitespace. The
-arguments specify a range of addresses (first inclusive, second exclusive)
-to dump. In that case, the name of the function is also printed (since
-there could be several functions in the given range).
+arguments specify a range of addresses to dump, in one of two forms:
+
+@table @code
+@item @var{start},@var{end}
+the addresses from @var{start} (inclusive) to @var{end} (exclusive)
+@item @var{start},+@var{length}
+the addresses from @var{start} (inclusive) to
+@code{@var{start}+@var{length}} (exclusive).
+@end table
+
+@noindent
+When 2 arguments are specified, the name of the function is also
+printed (since there could be several functions in the given range).
The argument(s) can be any expression yielding a numeric value, such as
@samp{0x32c4}, @samp{&main+10} or @samp{$pc - 8}.
@@ -6789,6 +6803,18 @@ Dump of assembler code for function main:
End of assembler dump.
@end smallexample
+Here is another example showing raw instructions in hex for AMD x86-64,
+
+@smallexample
+(gdb) disas /r 0x400281,+10
+Dump of assembler code from 0x400281 to 0x40028b:
+ 0x0000000000400281: 38 36 cmp %dh,(%rsi)
+ 0x0000000000400283: 2d 36 34 2e 73 sub $0x732e3436,%eax
+ 0x0000000000400288: 6f outsl %ds:(%rsi),(%dx)
+ 0x0000000000400289: 2e 32 00 xor %cs:(%rax),%al
+End of assembler dump.
+@end smallexample
+
Some architectures have more than one commonly-used set of instruction
mnemonics or other syntax.
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 2a8e557..f59bc40 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -2016,15 +2016,19 @@ locexpr_describe_location_piece (struct symbol *symbol, struct ui_file *stream,
DW_AT_location : 10 byte block: 3 4 0 0 0 0 0 0 0 e0
(DW_OP_addr: 4; DW_OP_GNU_push_tls_address)
-
+
0x3 is the encoding for DW_OP_addr, which has an operand as long
as the size of an address on the target machine (here is 8
- bytes). 0xe0 is the encoding for DW_OP_GNU_push_tls_address.
- The operand represents the offset at which the variable is within
- the thread local storage. */
+ bytes). Note that more recent version of GCC emit DW_OP_const4u
+ or DW_OP_const8u, depending on address size, rather than
+ DW_OP_addr. 0xe0 is the encoding for
+ DW_OP_GNU_push_tls_address. The operand represents the offset at
+ which the variable is within the thread local storage. */
else if (data + 1 + addr_size < end
- && data[0] == DW_OP_addr
+ && (data[0] == DW_OP_addr
+ || (addr_size == 4 && data[0] == DW_OP_const4u)
+ || (addr_size == 8 && data[0] == DW_OP_const8u))
&& data[1 + addr_size] == DW_OP_GNU_push_tls_address
&& piece_end_p (data + 2 + addr_size, end))
{
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 85a3f99..95a0bc5 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
* [SCM] gdb_7_2-branch: *** empty log message ***
@ 2010-07-20 18:51 jkratoch
0 siblings, 0 replies; 46+ 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: 17561 bytes --]
The branch, gdb_7_2-branch has been updated
via 7d3d6fa3fe2c56d2120482a0fc75011356aa2e99 (commit)
via 8a8516b974085aa6772d522eb7d083b85373abe1 (commit)
via 6992bfc4887afcffeb3a318a2d675a9ba38f600f (commit)
via f30a31eba26b27820384e82f0a2cd76427faf270 (commit)
via ffeb7030b0fce8df97c813e9b9ef8ec30b54bdfa (commit)
via 1e384c02c910e604e2408a9a31fd738119f7397c (commit)
via 0f72eb8318d5a61dc6a8761f49ea807b5e54c937 (commit)
via fde73799ef7cd32d009baa3e69984ff6f4158447 (commit)
via 4e2a8b7c36956278c9cb84f6772d0eed5b9f27ac (commit)
via bb2d6379788153d6daae6637559628da356630f9 (commit)
via 7fe8d7d81666ee33ea2fe03ca8190af3043be5cc (commit)
via 01d3912c64acdbe488c4c5120f159ed7d8b8510f (commit)
via 29ec463a09b028e75f1a84899129f7ff8da960a1 (commit)
via c1ee5e857e351607cc67cb257b808ee0d973e907 (commit)
via 931b248c03254bd5ff95072dc6756585ca795ec8 (commit)
via 2856622c0bd239f3de2b8239012ae61450b42b50 (commit)
from 20f684fd4a26f1e371807802ea5cd59a0589349c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 7d3d6fa3fe2c56d2120482a0fc75011356aa2e99
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jul 20 00:00:03 2010 +0000
*** empty log message ***
commit 8a8516b974085aa6772d522eb7d083b85373abe1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jul 19 00:00:34 2010 +0000
*** empty log message ***
commit 6992bfc4887afcffeb3a318a2d675a9ba38f600f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jul 18 00:00:03 2010 +0000
*** empty log message ***
commit f30a31eba26b27820384e82f0a2cd76427faf270
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jul 17 00:00:33 2010 +0000
*** empty log message ***
commit ffeb7030b0fce8df97c813e9b9ef8ec30b54bdfa
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date: Fri Jul 16 23:17:44 2010 +0000
* NEWS: Mention support for the new ptrace interface and hardware
accelerated watchpoint conditions on powerpc-linux.
commit 1e384c02c910e604e2408a9a31fd738119f7397c
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Jul 16 00:00:03 2010 +0000
*** empty log message ***
commit 0f72eb8318d5a61dc6a8761f49ea807b5e54c937
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Thu Jul 15 00:00:03 2010 +0000
*** empty log message ***
commit fde73799ef7cd32d009baa3e69984ff6f4158447
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 14 14:18:03 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 4e2a8b7c36956278c9cb84f6772d0eed5b9f27ac
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Wed Jul 14 00:00:33 2010 +0000
*** empty log message ***
commit bb2d6379788153d6daae6637559628da356630f9
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 20:34:16 2010 +0000
* gdb.texinfo (GDB/MI Variable Objects): Remove extra 'for'.
commit 7fe8d7d81666ee33ea2fe03ca8190af3043be5cc
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Jul 13 15:09:45 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 01d3912c64acdbe488c4c5120f159ed7d8b8510f
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Tue Jul 13 00:00:03 2010 +0000
*** empty log message ***
commit 29ec463a09b028e75f1a84899129f7ff8da960a1
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon Jul 12 00:00:03 2010 +0000
*** empty log message ***
commit c1ee5e857e351607cc67cb257b808ee0d973e907
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sun Jul 11 00:00:03 2010 +0000
*** empty log message ***
commit 931b248c03254bd5ff95072dc6756585ca795ec8
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat Jul 10 00:00:33 2010 +0000
*** empty log message ***
commit 2856622c0bd239f3de2b8239012ae61450b42b50
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Jul 9 20:30:20 2010 +0000
* python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
'hint' if it is NULL.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 27 +++++++++++++++++++++++++++
gdb/NEWS | 15 +++++++++++++++
gdb/c-valprint.c | 3 ++-
gdb/doc/ChangeLog | 4 ++++
gdb/doc/gdb.texinfo | 2 +-
gdb/dwarf2loc.c | 17 +++++------------
gdb/dwarf2loc.h | 10 +++++++++-
gdb/dwarf2read.c | 17 ++++++++++++++++-
gdb/python/py-prettyprint.c | 8 +++++---
gdb/testsuite/ChangeLog | 6 ++++++
gdb/testsuite/gdb.python/py-prettyprint.c | 11 +++++++++++
gdb/testsuite/gdb.python/py-prettyprint.exp | 2 ++
gdb/version.in | 2 +-
13 files changed, 104 insertions(+), 20 deletions(-)
First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2b49e0c..1fbf5f8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,30 @@
+2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * NEWS: Mention support for the new ptrace interface and hardware
+ accelerated watchpoint conditions on powerpc-linux.
+
+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>
+
+ * 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.
+
+2010-07-09 Tom Tromey <tromey@redhat.com>
+
+ * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
+ 'hint' if it is NULL.
+
2010-07-09 Hui Zhu <teawater@gmail.com>
* source.c (print_source_lines_base): Add check for noprint.
diff --git a/gdb/NEWS b/gdb/NEWS
index 77c55de..d3704b7 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -221,6 +221,21 @@ ARM Symbian arm*-*-symbianelf*
GDB now supports debugging programs written in the D programming
language.
+* GDB now supports the extended ptrace interface for PowerPC which is
+ available since Linux kernel version 2.6.34. This automatically enables
+ any hardware breakpoints and additional hardware watchpoints available in
+ the processor. The old ptrace interface exposes just one hardware
+ watchpoint and no hardware breakpoints.
+
+* GDB is now able to use the Data Value Compare (DVC) register available on
+ embedded PowerPC processors to implement in hardware simple watchpoint
+ conditions of the form:
+
+ watch ADDRESS|VARIABLE if ADDRESS|VARIABLE == CONSTANT EXPRESSION
+
+ This works in native GDB running on Linux kernels with the extended ptrace
+ interface mentioned above.
+
*** Changes in GDB 7.1
* C++ Improvements
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 4e5a95f..f0895a4 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -222,7 +222,8 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
{
i = 0;
}
- val_print_array_elements (type, valaddr + embedded_offset, address, stream,
+ val_print_array_elements (type, valaddr + embedded_offset,
+ address + embedded_offset, stream,
recurse, original_value, options, i);
fprintf_filtered (stream, "}");
}
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 240ba89..04f1683 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-13 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (GDB/MI Variable Objects): Remove extra 'for'.
+
2010-07-01 Pedro Alves <pedro@codesourcery.com>
* gdb.texinfo (Create and Delete Tracepoints): Add more index
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 7abb9ed..1297175 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -26386,7 +26386,7 @@ be available.
Return a list of the children of the specified variable object and
create variable objects for them, if they do not already exist. With
-a single argument or if @var{print-values} has a value for of 0 or
+a single argument or if @var{print-values} has a value of 0 or
@code{--no-values}, print only the names of the variables; if
@var{print-values} is 1 or @code{--all-values}, also print their
values; and if it is 2 or @code{--simple-values} print the name and
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 4106b7f..2a8e557 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -70,8 +70,7 @@ find_location_expression (struct dwarf2_loclist_baton *baton,
int signed_addr_p = bfd_get_sign_extend_vma (objfile->obfd);
CORE_ADDR base_mask = ~(~(CORE_ADDR)1 << (addr_size * 8 - 1));
/* Adjust base_address for relocatable objects. */
- CORE_ADDR base_offset = ANOFFSET (objfile->section_offsets,
- SECT_OFF_TEXT (objfile));
+ CORE_ADDR base_offset = dwarf2_per_cu_text_offset (baton->per_cu);
CORE_ADDR base_address = baton->base_address + base_offset;
loc_ptr = baton->data;
@@ -909,7 +908,7 @@ dwarf2_evaluate_loc_desc (struct type *type, struct frame_info *frame,
ctx->gdbarch = get_objfile_arch (objfile);
ctx->addr_size = dwarf2_per_cu_addr_size (per_cu);
- ctx->offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
+ ctx->offset = dwarf2_per_cu_text_offset (per_cu);
ctx->baton = &baton;
ctx->read_reg = dwarf_expr_read_reg;
ctx->read_mem = dwarf_expr_read_mem;
@@ -1095,7 +1094,7 @@ dwarf2_loc_desc_needs_frame (const gdb_byte *data, unsigned short size,
ctx->gdbarch = get_objfile_arch (objfile);
ctx->addr_size = dwarf2_per_cu_addr_size (per_cu);
- ctx->offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
+ ctx->offset = dwarf2_per_cu_text_offset (per_cu);
ctx->baton = &baton;
ctx->read_reg = needs_frame_read_reg;
ctx->read_mem = needs_frame_read_mem;
@@ -1304,12 +1303,7 @@ compile_dwarf_to_ax (struct agent_expr *expr, struct axs_value *loc,
index, not an address. We don't support things like
branching between the address and the TLS op. */
if (op_ptr >= op_end || *op_ptr != DW_OP_GNU_push_tls_address)
- {
- struct objfile *objfile = dwarf2_per_cu_objfile (per_cu);
-
- uoffset += ANOFFSET (objfile->section_offsets,
- SECT_OFF_TEXT (objfile));
- }
+ uoffset += dwarf2_per_cu_text_offset (per_cu);
ax_const_l (expr, uoffset);
break;
@@ -2511,8 +2505,7 @@ loclist_describe_location (struct symbol *symbol, CORE_ADDR addr,
int signed_addr_p = bfd_get_sign_extend_vma (objfile->obfd);
CORE_ADDR base_mask = ~(~(CORE_ADDR)1 << (addr_size * 8 - 1));
/* Adjust base_address for relocatable objects. */
- CORE_ADDR base_offset = ANOFFSET (objfile->section_offsets,
- SECT_OFF_TEXT (objfile));
+ CORE_ADDR base_offset = dwarf2_per_cu_text_offset (dlbaton->per_cu);
CORE_ADDR base_address = dlbaton->base_address + base_offset;
loc_ptr = dlbaton->data;
diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h
index 3ff595e..826bc45 100644
--- a/gdb/dwarf2loc.h
+++ b/gdb/dwarf2loc.h
@@ -28,7 +28,9 @@ struct dwarf2_per_cu_data;
/* This header is private to the DWARF-2 reader. It is shared between
dwarf2read.c and dwarf2loc.c. */
-/* Return the OBJFILE associated with the compilation unit CU. */
+/* Return the OBJFILE associated with the compilation unit CU. If CU
+ came from a separate debuginfo file, then the master objfile is
+ returned. */
struct objfile *dwarf2_per_cu_objfile (struct dwarf2_per_cu_data *cu);
/* Return the address size given in the compilation unit header for CU. */
@@ -37,6 +39,12 @@ CORE_ADDR dwarf2_per_cu_addr_size (struct dwarf2_per_cu_data *cu);
/* Return the offset size given in the compilation unit header for CU. */
int dwarf2_per_cu_offset_size (struct dwarf2_per_cu_data *cu);
+/* Return the text offset of the CU. The returned offset comes from
+ this CU's objfile. If this objfile came from a separate debuginfo
+ file, then the offset may be different from the corresponding
+ offset in the parent objfile. */
+CORE_ADDR dwarf2_per_cu_text_offset (struct dwarf2_per_cu_data *cu);
+
struct dwarf2_locexpr_baton dwarf2_fetch_die_location_block
(unsigned int offset, struct dwarf2_per_cu_data *per_cu);
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index e4ab034..16381de 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -12047,7 +12047,9 @@ dwarf2_symbol_mark_computed (struct attribute *attr, struct symbol *sym,
}
}
-/* Return the OBJFILE associated with the compilation unit CU. */
+/* Return the OBJFILE associated with the compilation unit CU. If CU
+ came from a separate debuginfo file, then the master objfile is
+ returned. */
struct objfile *
dwarf2_per_cu_objfile (struct dwarf2_per_cu_data *per_cu)
@@ -12106,6 +12108,19 @@ dwarf2_per_cu_offset_size (struct dwarf2_per_cu_data *per_cu)
}
}
+/* Return the text offset of the CU. The returned offset comes from
+ this CU's objfile. If this objfile came from a separate debuginfo
+ file, then the offset may be different from the corresponding
+ offset in the parent objfile. */
+
+CORE_ADDR
+dwarf2_per_cu_text_offset (struct dwarf2_per_cu_data *per_cu)
+{
+ struct objfile *objfile = per_cu->psymtab->objfile;
+
+ return ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
+}
+
/* Locate the .debug_info compilation unit from CU's objfile which contains
the DIE at OFFSET. Raises an error on failure. */
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index 9a205b4..434c8a5 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -229,10 +229,12 @@ gdbpy_get_display_hint (PyObject *printer)
return NULL;
hint = PyObject_CallMethodObjArgs (printer, gdbpy_display_hint_cst, NULL);
- if (gdbpy_is_string (hint))
- result = python_string_to_host_string (hint);
if (hint)
- Py_DECREF (hint);
+ {
+ if (gdbpy_is_string (hint))
+ result = python_string_to_host_string (hint);
+ Py_DECREF (hint);
+ }
else
gdbpy_print_stack ();
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index c154519..11e689f 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2010-07-08 Doug Evans <dje@google.com>
* lib/gdb.exp (gdb_test_list_exact): New function.
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.c b/gdb/testsuite/gdb.python/py-prettyprint.c
index f461bb1..66a9014 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint.c
+++ b/gdb/testsuite/gdb.python/py-prettyprint.c
@@ -29,6 +29,12 @@ struct ss
struct s b;
};
+struct arraystruct
+{
+ int y;
+ struct s x[2];
+};
+
struct ns {
const char *null_str;
int length;
@@ -199,6 +205,7 @@ main ()
{
struct ss ss;
struct ss ssa[2];
+ struct arraystruct arraystruct;
string x = make_string ("this is x");
zzz_type c = make_container ("container");
zzz_type c2 = make_container ("container2");
@@ -214,6 +221,10 @@ main ()
init_ss(ssa+1, 5, 6);
memset (&nullstr, 0, sizeof nullstr);
+ arraystruct.y = 7;
+ init_s (&arraystruct.x[0], 23);
+ init_s (&arraystruct.x[1], 24);
+
struct ns ns;
ns.null_str = "embedded\0null\0string";
ns.length = 20;
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp
index f435fb7..3b2aadd 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint.exp
+++ b/gdb/testsuite/gdb.python/py-prettyprint.exp
@@ -76,6 +76,8 @@ proc run_lang_tests {lang} {
gdb_test "print ssa\[1\]" " = a=< a=<5> b=<$hex>> b=< a=<6> b=<$hex>>"
gdb_test "print ssa" " = {a=< a=<3> b=<$hex>> b=< a=<4> b=<$hex>>, a=< a=<5> b=<$hex>> b=< a=<6> b=<$hex>>}"
+ gdb_test "print arraystruct" " = {$nl *y = 7, *$nl *x = { a=<23> b=<$hex>, a=<24> b=<$hex>} *$nl *}"
+
if {$lang == "c++"} {
gdb_test "print cps" "= a=<8> b=<$hex>"
gdb_test "print cpss" " = {$nl *zss = 9, *$nl *s = a=<10> b=<$hex>$nl}"
diff --git a/gdb/version.in b/gdb/version.in
index e3fdb83..56f1de5 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.1.90.20100709-cvs
+7.1.90.20100720-cvs
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 46+ messages in thread
end of thread, other threads:[~2011-04-11 13:53 UTC | newest]
Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07 5:57 [SCM] gdb_7_2-branch: *** empty log message *** jkratoch
-- strict thread matches above, loose matches on Subject: below --
2011-04-11 13:53 jkratoch
2011-03-28 16:12 jkratoch
2011-03-20 12:45 jkratoch
2011-03-19 8:35 jkratoch
2011-03-17 15:12 jkratoch
2011-03-16 7:11 jkratoch
2011-03-15 20:20 jkratoch
2011-03-09 22:50 jkratoch
2011-03-08 8:16 jkratoch
2011-03-05 7:15 jkratoch
2011-02-24 1:29 jkratoch
2011-02-22 22:55 jkratoch
2011-02-19 20:17 jkratoch
2011-02-17 22:03 jkratoch
2011-02-16 22:30 jkratoch
2011-02-13 17:49 jkratoch
2011-02-06 19:15 jkratoch
2011-02-01 19:25 jkratoch
2011-01-29 16:44 jkratoch
2011-01-25 9:11 jkratoch
2011-01-17 14:05 jkratoch
2011-01-15 11:35 jkratoch
2011-01-14 8:04 jkratoch
2011-01-10 9:11 jkratoch
2011-01-04 4:59 jkratoch
2010-12-31 22:31 jkratoch
2010-12-06 6:41 jkratoch
2010-12-04 1:03 jkratoch
2010-11-30 0:16 jkratoch
2010-11-28 5:46 jkratoch
2010-11-16 5:04 jkratoch
2010-11-07 18:18 jkratoch
2010-10-17 20:28 jkratoch
2010-10-15 17:07 jkratoch
2010-10-14 20:56 jkratoch
2010-10-13 15:07 jkratoch
2010-10-12 16:46 jkratoch
2010-10-11 9:22 jkratoch
2010-09-27 9:49 jkratoch
2010-09-04 19:59 jkratoch
2010-09-02 15:05 jkratoch
2010-08-23 13:54 jkratoch
2010-08-20 17:49 jkratoch
2010-08-06 15:32 jkratoch
2010-07-20 18:51 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).