diff options
author | Jim Blandy <jimb@codesourcery.com> | 2002-11-22 07:00:37 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2002-11-22 07:00:37 +0000 |
commit | b6d3ce701569389bbc78d5684ae137ad23f149ec (patch) | |
tree | f25a5038658544ad0ee6a7590b532a3c615a5715 /gdb/testsuite/gdb.base/step-line.exp | |
parent | 9e297a9744a5d723899cc73201720ed662caea3c (diff) | |
download | gdb-b6d3ce701569389bbc78d5684ae137ad23f149ec.zip gdb-b6d3ce701569389bbc78d5684ae137ad23f149ec.tar.gz gdb-b6d3ce701569389bbc78d5684ae137ad23f149ec.tar.bz2 |
* gdb.base/step-line.exp: Check that GDB can handle filenames that
appear in the line number info, but not in the preprocessor macro
info.
* lib/gdb.exp (gdb_internal_error_regexp): New variable.
(gdb_internal_error_resync): New procedure.
(gdb_test): If the command results in an internal error,
answer GDB's questions until we get back to a prompt.
Diffstat (limited to 'gdb/testsuite/gdb.base/step-line.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/step-line.exp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/step-line.exp b/gdb/testsuite/gdb.base/step-line.exp index cac3128..637f2af 100644 --- a/gdb/testsuite/gdb.base/step-line.exp +++ b/gdb/testsuite/gdb.base/step-line.exp @@ -53,6 +53,15 @@ gdb_test "continue" \ gdb_test "next" \ ".*i = f2 \\(i\\);.*" \ "next over dummy 1" + +# As of Oct 2002, GCC does record the effect of #line directives in +# the source line info, but not in macro info. This means that GDB's +# symtabs (built from the former, among other things) may mention +# filenames that GDB's macro tables (built from the latter) don't have +# any record of. Make sure GDB can handle this by trying to evaluate +# an expression, which will do a macro expansion. +gdb_test "print i" ".* = 4.*" + gdb_test "next" \ ".*dummy \\(2, i\\);.*" \ "next to dummy 2" |