aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-08 07:27:57 -0700
committerTom Tromey <tom@tromey.com>2021-03-08 07:28:39 -0700
commitd308ba78cfaf7c1b3a8d33ceb66c9a180352b888 (patch)
tree9276d701ff32795d68515ca1c4fec1737c2e9c41 /gdb/testsuite
parentf1b8ceef1b055a0eb927852e9a9402d21aea96f5 (diff)
downloadgdb-d308ba78cfaf7c1b3a8d33ceb66c9a180352b888.zip
gdb-d308ba78cfaf7c1b3a8d33ceb66c9a180352b888.tar.gz
gdb-d308ba78cfaf7c1b3a8d33ceb66c9a180352b888.tar.bz2
Convert f-exp.y to use operations
This converts the Fortran parser to generate operations rather than exp_elements. A couple of tests of expression debug dumping are updated to follow the new output. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * f-exp.y: Create operations. (f_language::parser): Update. gdb/testsuite/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * gdb.fortran/debug-expr.exp: Update tests.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.fortran/debug-expr.exp8
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 5b65aaf..5767fa5 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2021-03-08 Tom Tromey <tom@tromey.com>
+ * gdb.fortran/debug-expr.exp: Update tests.
+
+2021-03-08 Tom Tromey <tom@tromey.com>
+
* gdb.base/debug-expr.exp: Update expected dump output.
2021-03-06 Tom Tromey <tom@tromey.com>
diff --git a/gdb/testsuite/gdb.fortran/debug-expr.exp b/gdb/testsuite/gdb.fortran/debug-expr.exp
index fd63ea7..ca1fb97 100644
--- a/gdb/testsuite/gdb.fortran/debug-expr.exp
+++ b/gdb/testsuite/gdb.fortran/debug-expr.exp
@@ -42,10 +42,10 @@ gdb_continue_to_breakpoint "Break Here"
gdb_test_no_output "set debug expression 1"
gdb_test_debug_expr "print obj%three(1)%two(1)%one(1)%i" "\\\$$decimal = 1"
gdb_test_debug_expr "print .TRUE." [multi_line \
- "" \
- "\\s+0\\s+OP_BOOL\\s+TRUE" \
+ "Operation: OP_BOOL" \
+ " Constant: .*1" \
"\\\$$decimal = \.TRUE\."]
gdb_test_debug_expr "print .FALSE." [multi_line \
- "" \
- "\\s+0\\s+OP_BOOL\\s+FALSE" \
+ "Operation: OP_BOOL" \
+ " Constant: .*0" \
"\\\$$decimal = \.FALSE\."]