Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: optimized-out pieces
Date: Wed, 09 Jun 2010 05:50:00 -0000	[thread overview]
Message-ID: <20100609054948.GA5627@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <m3iq5tjqsj.fsf@fleche.redhat.com>

Hi Tom,

a fixup is needed there.

 print operand0
-$1 = <value optimized out>
-(gdb) PASS: gdb.opt/clobbered-registers-O2.exp: print operand0
+$1 = (unsigned int *) <value optimized out>
+(gdb) FAIL: gdb.opt/clobbered-registers-O2.exp: print operand0
 print operand1
-$2 = <value optimized out>
-(gdb) PASS: gdb.opt/clobbered-registers-O2.exp: print operand1
+$2 = (unsigned int *) <value optimized out>
+(gdb) FAIL: gdb.opt/clobbered-registers-O2.exp: print operand1


Thanks,
Jan


2010-06-09  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.opt/clobbered-registers-O2.exp (print operand0, print operand1):
	Expect also the type.

--- a/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
+++ b/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
@@ -53,12 +53,12 @@ if { ![runto start_sequence] } then {
 gdb_test "frame 1" "#1.*in gen_movsd.*" "Backtracing"
 
 gdb_test_multiple "print operand0" "print operand0" {
-    -re "\\\$$decimal = <value optimized out>\r\n$gdb_prompt $" { pass "print operand0"}
+    -re "\\\$$decimal = \\(unsigned int \\*\\) <value optimized out>\r\n$gdb_prompt $" { pass "print operand0"}
     -re "$hex\r\n$gdb_prompt $" { gdb_test "print *operand0" "13" "print operand0" }
 }
 
 gdb_test_multiple "print operand1" "print operand1" {
-    -re "\\\$$decimal = <value optimized out>\r\n$gdb_prompt $" { pass "print operand1"}
+    -re "\\\$$decimal = \\(unsigned int \\*\\) <value optimized out>\r\n$gdb_prompt $" { pass "print operand1"}
     -re "$hex\r\n$gdb_prompt $" { gdb_test "print *operand1" "14" "print operand1" }
 }
 


  reply	other threads:[~2010-06-09  5:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-04 19:19 Tom Tromey
2010-06-04 21:42 ` Tom Tromey
2010-06-07 22:35 ` Jan Kratochvil
2010-06-08 18:36   ` Tom Tromey
2010-06-08 18:42     ` Jan Kratochvil
2010-06-08 18:57       ` Tom Tromey
2010-06-09  5:50         ` Jan Kratochvil [this message]
2010-06-10 17:14           ` Tom Tromey
2010-06-11 15:34             ` Tom Tromey
2010-06-14 12:07               ` Frederic Riss
2010-06-15 15:54                 ` Tom Tromey
2010-06-09 18:44         ` Jan Kratochvil
2010-06-14 12:13 ` [commit] Fix "return" command (Re: RFC: optimized-out pieces) Ulrich Weigand
2010-06-15 15:58   ` Tom Tromey

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=20100609054948.GA5627@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --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