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: RFA: add C++ alternate punctuators
Date: Tue, 23 Dec 2008 10:02:00 -0000	[thread overview]
Message-ID: <20081223100154.GA1079@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <m3zlio9tpf.fsf@fleche.redhat.com>

On Mon, 22 Dec 2008 15:21:16 +0100, Tom Tromey wrote:
> I checked it in.  Thanks.

Getting:

Running ../.././gdb/testsuite/gdb.cp/punctuator.exp ...
PASS: gdb.cp/punctuator.exp: set lang c++
PASS: gdb.cp/punctuator.exp: print (0x5a5a bitand 0xaaaa) == (0x5a5a & 0xaaaa)
PASS: gdb.cp/punctuator.exp: print (0x5a5a bitor 0xaaaa) == (0x5a5a | 0xaaaa)
PASS: gdb.cp/punctuator.exp: print (0x5a5a xor 0xaaaa) == (0x5a5a ^ 0xaaaa)
PASS: gdb.cp/punctuator.exp: print (0x5a5a and 0xaaaa) == (0x5a5a && 0xaaaa)
PASS: gdb.cp/punctuator.exp: print (0x5a5a or 0xaaaa) == (0x5a5a || 0xaaaa)
PASS: gdb.cp/punctuator.exp: print (not not 0xaaaa) == (!!0xaaaa)
PASS: gdb.cp/punctuator.exp: print (compl 0xaaaa) == (~0xaaaa)
ERROR: tcl error sourcing ../.././gdb/testsuite/gdb.cp/punctuator.exp.
ERROR: can't read "u": no such variable
    while executing
"gdb_test "set $u = 0x5a5a" """
    (file "../.././gdb/testsuite/gdb.cp/punctuator.exp" line 38)
    invoked from within
"source ../.././gdb/testsuite/gdb.cp/punctuator.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source ../.././gdb/testsuite/gdb.cp/punctuator.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""


on dejagnu-1.4.4-13.fc10.noarch, I do not understand where it could work.

OK to check in?


Regards,
Jan


gdb/testsuite/
2008-12-23  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.cp/punctuator.exp: Backslash the '$' signs.

--- gdb/testsuite/gdb.cp/punctuator.exp	22 Dec 2008 14:21:01 -0000	1.1
+++ gdb/testsuite/gdb.cp/punctuator.exp	23 Dec 2008 09:58:46 -0000
@@ -35,18 +35,18 @@ gdb_test "print (0x5a5a or 0xaaaa) == (0
 gdb_test "print (not not 0xaaaa) == (!!0xaaaa)" " = true"
 gdb_test "print (compl 0xaaaa) == (~0xaaaa)" " = true"
 
-gdb_test "set $u = 0x5a5a" ""
-gdb_test "set $v = 0x5a5a" ""
-gdb_test "print ($u not_eq 0xaaaa) == ($v != 0xaaaa)" "= true"
-gdb_test "print ($u and_eq 0xaaaa) == ($v &= 0xaaaa)" "= true"
+gdb_test "set \$u = 0x5a5a" ""
+gdb_test "set \$v = 0x5a5a" ""
+gdb_test "print (\$u not_eq 0xaaaa) == (\$v != 0xaaaa)" "= true"
+gdb_test "print (\$u and_eq 0xaaaa) == (\$v &= 0xaaaa)" "= true"
 
-gdb_test "set $u = 0x5a5a" ""
-gdb_test "set $v = 0x5a5a" ""
-gdb_test "print ($u or_eq 0xaaaa) == ($v |= 0xaaaa)" "= true"
+gdb_test "set \$u = 0x5a5a" ""
+gdb_test "set \$v = 0x5a5a" ""
+gdb_test "print (\$u or_eq 0xaaaa) == (\$v |= 0xaaaa)" "= true"
 
-gdb_test "set $u = 0x5a5a" ""
-gdb_test "set $v = 0x5a5a" ""
-gdb_test "print ($u xor_eq 0xaaaa) == ($v ^= 0xaaaa)" "= true"
+gdb_test "set \$u = 0x5a5a" ""
+gdb_test "set \$v = 0x5a5a" ""
+gdb_test "print (\$u xor_eq 0xaaaa) == (\$v ^= 0xaaaa)" "= true"
 
 gdb_exit
 return 0


  reply	other threads:[~2008-12-23 10:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-20 15:58 Tom Tromey
2008-12-20 17:02 ` Pedro Alves
2008-12-20 17:16 ` Daniel Jacobowitz
2008-12-20 17:45   ` Tom Tromey
2008-12-20 20:26     ` Daniel Jacobowitz
2008-12-22 14:22       ` Tom Tromey
2008-12-23 10:02         ` Jan Kratochvil [this message]
2008-12-23 16:36           ` Tom Tromey
2008-12-23 17:21             ` Jan Kratochvil
2008-12-23 17:02           ` Joel Brobecker

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=20081223100154.GA1079@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