Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] MI: Add value field to output of -var-create
Date: Sat, 20 Jan 2007 21:53:00 -0000	[thread overview]
Message-ID: <17842.36650.58436.387233@kahikatea.snap.net.nz> (raw)
In-Reply-To: <20070120190903.GA22153@nevyn.them.org>

 > Thanks for doing this.  I get some new failures - just three though.
 > 
 > FAIL: gdb.mi/gdb701.exp: create fooPtr
 > FAIL: gdb.mi/gdb792.exp: create var for class A
 > FAIL: gdb.mi/gdb792.exp: create var for class C which has baseclass A

Sorry, I forgot to include these (see below).

 >   # Why does this have a FIXME?
 >   setup_xfail *-*-*
 >   mi_gdb_test "-var-update *" \
 > ! 	"FIXME\\^done,changelist=\\\[\{name=\"psnp->ptrs.0.next.long_ptr\",in_scope=\pe_changed=\"false\"\}\\\]" \
 >         "update all vars psnp->next->long_ptr (and 1.long_ptr) changed"
 >   clear_xfail *-*-*
 > 
 > Typo, I think ("in_scope=\pe_changed")?

OK.  I could remove the setup_xfail and "FIXME" in the output string as this
test passes for me.  WDYT?


-- 
Nick                                           http://www.inet.net.nz/~nickrob


2007-01-21  Nick Roberts  <nickrob@snap.net.nz>

	* gdb.mi/gdb701.exp, gdb.mi/gdb792.exp:
	Update tests for -var-create to include value field.


Index: gdb.mi/gdb701.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/gdb701.exp,v
retrieving revision 1.3
diff -c -p -r1.3 gdb701.exp
*** gdb.mi/gdb701.exp	9 Jan 2007 17:59:13 -0000	1.3
--- gdb.mi/gdb701.exp	20 Jan 2007 21:50:16 -0000
*************** mi_run_to_main
*** 50,58 ****
  # Step over "foo = 0"
  mi_next "step over \"foo = 0\""
  
! mi_gdb_test "-var-create fooPtr * foo" \
!   "(&\".*\"\r\n)*\\^done,name=\"fooPtr\",numchild=\"3\",type=\"Foo \\*\"" \
!   "create fooPtr"
  
  mi_gdb_test "-var-list-children fooPtr" \
    "(&\".*\"\r\n)*\\^done,numchild=\"3\",.*" \
--- 50,56 ----
  # Step over "foo = 0"
  mi_next "step over \"foo = 0\""
  
! mi_create_varobj fooPtr foo "create fooPtr"
  
  mi_gdb_test "-var-list-children fooPtr" \
    "(&\".*\"\r\n)*\\^done,numchild=\"3\",.*" \
Index: gdb.mi/gdb792.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/gdb792.exp,v
retrieving revision 1.6
diff -c -p -r1.6 gdb792.exp
*** gdb.mi/gdb792.exp	9 Jan 2007 17:59:13 -0000	1.6
--- gdb.mi/gdb792.exp	20 Jan 2007 21:50:16 -0000
*************** if {[gdb_compile $srcdir/$subdir/$srcfil
*** 50,56 ****
  mi_run_to_main
  
  mi_gdb_test "-var-create - * a" \
!   "(&\".*\"\r\n)*\\^done,name=\"var1\",numchild=\"3\",type=\"A\"" \
    "create var for class A"
  
  mi_gdb_test "-var-list-children var1" \
--- 50,56 ----
  mi_run_to_main
  
  mi_gdb_test "-var-create - * a" \
!   "(&\".*\"\r\n)*\\^done,name=\"var1\",numchild=\"3\",value=\".*\",type=\"A\"" \
    "create var for class A"
  
  mi_gdb_test "-var-list-children var1" \
*************** mi_gdb_test "-var-list-children var1.pro
*** 82,88 ****
    "list children of A.protected.b.private"
  
  mi_gdb_test "-var-create - * c" \
!   "(&\".*\"\r\n)*\\^done,name=\"var2\",numchild=\"3\",type=\"C\"" \
    "create var for class C which has baseclass A"
  
  mi_gdb_test "-var-list-children var2" \
--- 82,88 ----
    "list children of A.protected.b.private"
  
  mi_gdb_test "-var-create - * c" \
!   "(&\".*\"\r\n)*\\^done,name=\"var2\",numchild=\"3\",value=\".*\",type=\"C\"" \
    "create var for class C which has baseclass A"
  
  mi_gdb_test "-var-list-children var2" \


  reply	other threads:[~2007-01-20 21:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-02 10:07 Nick Roberts
2007-01-04 20:20 ` Vladimir Prus
2007-01-04 23:22   ` Nick Roberts
2007-01-04 23:24     ` Daniel Jacobowitz
2007-01-05  7:40     ` Vladimir Prus
2007-01-05 15:07 ` Daniel Jacobowitz
2007-01-05 21:30   ` Nick Roberts
2007-01-07 23:32     ` Daniel Jacobowitz
2007-01-18  9:09   ` Nick Roberts
2007-01-20 19:09     ` Daniel Jacobowitz
2007-01-20 21:53       ` Nick Roberts [this message]
2007-02-03  4:54         ` Nick Roberts
2007-02-04 14:10           ` Daniel Jacobowitz
2007-02-04 21:42             ` Nick Roberts
2007-02-08 17:58               ` Daniel Jacobowitz
2007-02-08 20:07                 ` Nick Roberts
2007-02-08 20:25                   ` Daniel Jacobowitz
2007-02-08 20:27                     ` Daniel Jacobowitz
2007-02-08 20:37                       ` Nick Roberts
2007-02-08 20:37                         ` Daniel Jacobowitz
2007-02-08 20:44                     ` Nick Roberts

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=17842.36650.58436.387233@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=drow@false.org \
    --cc=gdb-patches@sources.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