diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-08 07:27:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-08 07:28:38 -0700 |
commit | d182f2797922a305fbd1ef6a483cc39a56b43e02 (patch) | |
tree | 7fb8bb5c51031d16dd169180accded548f17041b /gdb/testsuite/gdb.base | |
parent | c1299a23448227e9bb57df883aba0118618db9f4 (diff) | |
download | gdb-d182f2797922a305fbd1ef6a483cc39a56b43e02.zip gdb-d182f2797922a305fbd1ef6a483cc39a56b43e02.tar.gz gdb-d182f2797922a305fbd1ef6a483cc39a56b43e02.tar.bz2 |
Convert c-exp.y to use operations
This converts the C parser to generate operations rather than
exp_elements.
One test needed a tweak in order to handle the different debugging
output.
gdb/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* objc-lang.c (end_msglist): Create operations.
* c-exp.y: Change parser to create operations.
(write_destructor_name): Remove.
(c_parse): Update.
gdb/testsuite/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* gdb.base/debug-expr.exp: Update expected dump output.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/debug-expr.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/debug-expr.exp b/gdb/testsuite/gdb.base/debug-expr.exp index 068c88a..77cf030 100644 --- a/gdb/testsuite/gdb.base/debug-expr.exp +++ b/gdb/testsuite/gdb.base/debug-expr.exp @@ -45,10 +45,10 @@ gdb_test_debug_expr "print /x {char\[4\]} array" \ # This caused gdb to output garbage and possibly segfault gdb_test_debug_expr "print \"hello\"" \ - ".*OP_STRING\[^\r\n\]*Language-specific string type: 0.*\[\r\n\]\\$$decimal = \"hello\"" \ + ".*OP_STRING\[^\r\n\]*.*: ordinary string.*\[\r\n\]\\$$decimal = \"hello\"" \ "string evaluation with debug expr" # An expression using a function call. gdb_test_debug_expr "print call_me ( &val )" \ - ".*OP_FUNCALL\[^\r\n\]*Number of args: 1.*\[\r\n\]\\$$decimal = 0.*" \ + ".*OP_FUNCALL\[^\r\n\]*.*UNOP_ADDR.*\[\r\n\]\\$$decimal = 0.*" \ "function call expression" |