From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Marc Khouzam <marc.khouzam@ericsson.com>
Cc: "'Joel Brobecker'" <brobecker@adacore.com>,
"'Tom Tromey'" <tromey@redhat.com>,
"'gdb-patches@sourceware.org'"
<gdb-patches@sourceware.org>
Subject: [patch] testsuite: unreliable gdb.mi/mi-inheritance-syntax-error.exp [Re: [patch] Tweak output of -var-info-path-expression]
Date: Fri, 26 Aug 2011 20:59:00 -0000 [thread overview]
Message-ID: <20110826205907.GA14443@host1.jankratochvil.net> (raw)
In-Reply-To: <F7CE05678329534C957159168FA70DEC578744DD89@EUSAACMS0703.eamcs.ericsson.se>
On Fri, 26 Aug 2011 14:35:50 +0200, Marc Khouzam wrote:
> Committed as below to HEAD and the 7.3 branch.
-data-evaluate-expression "(*(class A*) this)"
^done,value="{a = -9296}"
(gdb)
FAIL: gdb.mi/mi-inheritance-syntax-error.exp: -data-evaluate-expression (*(class A*) this)
I guess this part was not the subject of the test but I rather ask, OK to
check-in?
Thanks,
Jan
gdb/testsuite/
2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.mi/mi-inheritance-syntax-error.cc (A): Make `a' public.
(C): Initialize `a'.
* gdb.mi/mi-inheritance-syntax-error.exp
(-data-evaluate-expression $path): Expect `a' as 5.
--- a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc
+++ b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc
@@ -5,7 +5,8 @@
class A
{
- int a;
+ public:
+ int a;
};
class C : public A
@@ -13,6 +14,7 @@ class C : public A
public:
C()
{
+ a = 5;
};
void testLocation()
{
--- a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp
+++ b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp
@@ -66,7 +66,7 @@ verbose "Using $path for data-evaluate-expression" 2
mi_gdb_test "-data-evaluate-expression \"$path\"" \
- "\\^done,value=\"\{a = \[0-9\]*\}\"" \
+ "\\^done,value=\"\{a = 5\}\"" \
"-data-evaluate-expression $path"
mi_gdb_exit
next prev parent reply other threads:[~2011-08-26 20:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 13:55 [patch] Tweak output of -var-info-path-expression Marc Khouzam
2011-08-10 14:47 ` Tom Tromey
2011-08-23 13:04 ` Marc Khouzam
2011-08-25 17:44 ` Tom Tromey
2011-08-26 1:48 ` Joel Brobecker
2011-08-26 12:36 ` Marc Khouzam
2011-08-26 20:59 ` Jan Kratochvil [this message]
2011-08-26 21:04 ` [patch] testsuite: unreliable gdb.mi/mi-inheritance-syntax-error.exp [Re: [patch] Tweak output of -var-info-path-expression] Tom Tromey
2011-08-26 21:12 ` Jan Kratochvil
2011-08-29 12:16 ` Marc Khouzam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110826205907.GA14443@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=marc.khouzam@ericsson.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox