aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-12-12 17:03:37 +0000
committerTom Tromey <tromey@redhat.com>2008-12-12 17:03:37 +0000
commit17c8aaf5078f15d4cd621a5428a82080a7f4c516 (patch)
treefcedb227ffe2eabd84c347593e64bc3992776ce7 /gdb/testsuite
parentcc704ebecf3fd0ca95eadf7a89c6dfd4446e5c26 (diff)
downloadfsf-binutils-gdb-17c8aaf5078f15d4cd621a5428a82080a7f4c516.zip
fsf-binutils-gdb-17c8aaf5078f15d4cd621a5428a82080a7f4c516.tar.gz
fsf-binutils-gdb-17c8aaf5078f15d4cd621a5428a82080a7f4c516.tar.bz2
gdb
* macroexp.c (get_pp_number): Require digit after leading ".". Correctly handle suffixes. gdb/testsuite * gdb.base/macscp.exp: New regression test.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/macscp.exp8
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index cc5e365..71f9712 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2008-12-11 Tom Tromey <tromey@redhat.com>
+ * gdb.base/macscp.exp: New regression test.
+
+2008-12-11 Tom Tromey <tromey@redhat.com>
+
* gdb.base/macscp.exp: Print "address.addr".
* gdb.base/macscp1.c (struct outer): New struct.
(address): New global.
diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp
index f7553a5..b6d6016 100644
--- a/gdb/testsuite/gdb.base/macscp.exp
+++ b/gdb/testsuite/gdb.base/macscp.exp
@@ -656,3 +656,11 @@ gdb_test "print str(maude)" \
gdb_test "print xstr(maude)" \
" = \"5\"" \
"stringify with substitution"
+
+# Regression test for pp-number bug.
+gdb_test "macro define si_addr fields.fault.si_addr" \
+ "" \
+ "define si_addr macro"
+gdb_test "macro expand siginfo.si_addr" \
+ "expands to: siginfo.fields.fault.si_addr" \
+ "macro expand siginfo.si_addr"