aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/charset.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-04-15 21:55:04 +0000
committerTom Tromey <tromey@redhat.com>2009-04-15 21:55:04 +0000
commit334cc82d44775325475752b1126a3257b51b2b0c (patch)
treee7ff2bd8ba5616e0ad8f236b60ebf19ece961c68 /gdb/testsuite/gdb.base/charset.exp
parent27e3013dec60479105b8c69995b41e909e09d252 (diff)
downloadgdb-334cc82d44775325475752b1126a3257b51b2b0c.zip
gdb-334cc82d44775325475752b1126a3257b51b2b0c.tar.gz
gdb-334cc82d44775325475752b1126a3257b51b2b0c.tar.bz2
gdb
* c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP. gdb/testsuite * gdb.base/charset.exp: Add regression test.
Diffstat (limited to 'gdb/testsuite/gdb.base/charset.exp')
-rw-r--r--gdb/testsuite/gdb.base/charset.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/charset.exp b/gdb/testsuite/gdb.base/charset.exp
index 1ce275d..8c23848 100644
--- a/gdb/testsuite/gdb.base/charset.exp
+++ b/gdb/testsuite/gdb.base/charset.exp
@@ -604,4 +604,9 @@ if {$ucs2_ok && $ucs4_ok} {
test_combination u UCS-2 U UCS-4
}
+# Regression test for a cleanup bug in the charset code.
+gdb_test "print 'a' == 'a' || 'b' == 'b'" \
+ ".* = 1" \
+ "EVAL_SKIP cleanup handling regression test"
+
gdb_exit