From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: drow@false.org (Daniel Jacobowitz)
Cc: gdb-patches@sourceware.org
Subject: Re: [mi] Some error path fixes
Date: Fri, 09 Mar 2007 00:55:00 -0000 [thread overview]
Message-ID: <200703090055.l290tKxL022867@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <20061207220013.GA9470@nevyn.them.org> from "Daniel Jacobowitz" at Dec 07, 2006 05:00:13 PM
Daniel Jacobowitz wrote:
> 2006-12-07 Daniel Jacobowitz <dan@codesourcery.com>
>
> * gdb.mi/mi-var-cmd.exp: Add tests for unreadable varobjs.
> +# Test whether bad varobjs crash GDB.
> +
> +# A varobj we fail to read during -var-update should be considered
> +# out of scope.
> +mi_gdb_test "-var-create null_ptr * **0" \
> + {\^done,name="null_ptr",numchild="0",type="int"} \
> + "create null_ptr"
> +
> +# Allow this to succeed, if address zero is readable, although it
> +# will not test what it was meant to. Most important is that GDB
> +# does not crash.
> +mi_gdb_test "-var-update null_ptr" \
> + {\^done,changelist=\[{.*}\]} \
> + "update null_ptr"
This fails on SPU, where address zero is indeed readable. I get:
-var-create null_ptr * **0^M
^done,name="null_ptr",numchild="0",value="",type="int"^M
(gdb) ^M
PASS: gdb.mi/mi-var-cmd.exp: create null_ptr
-var-update null_ptr^M
^done,changelist=[]^M
(gdb) ^M
FAIL: gdb.mi/mi-var-cmd.exp: update null_ptr
Note the completely empty changelist, while the test checks
for at least one element { ... }.
Is this a testcase bug, or should there really be a change?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2007-03-09 0:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-07 22:00 Daniel Jacobowitz
2007-01-04 21:59 ` Daniel Jacobowitz
2007-03-09 0:55 ` Ulrich Weigand [this message]
2007-03-09 1:02 ` Daniel Jacobowitz
2007-03-09 1:16 ` Ulrich Weigand
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=200703090055.l290tKxL022867@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
/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