diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-12-10 20:30:00 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-12-10 20:30:00 +0000 |
commit | 347dc97d2d4b80f3d8c23570fbedf7c6fa5e7c5c (patch) | |
tree | b411a471586f46670f54371343c4cf7a6f3cce2c /gdb/testsuite/gdb.asm | |
parent | 11dc9c30bfe31918a30d95ac3fc46367c7106631 (diff) | |
download | gdb-347dc97d2d4b80f3d8c23570fbedf7c6fa5e7c5c.zip gdb-347dc97d2d4b80f3d8c23570fbedf7c6fa5e7c5c.tar.gz gdb-347dc97d2d4b80f3d8c23570fbedf7c6fa5e7c5c.tar.bz2 |
* gdb.asm/asm-source.exp (info symbol): Anchor the pattern
matching the entry point symbol's name at the beginning of the
line.
Diffstat (limited to 'gdb/testsuite/gdb.asm')
-rw-r--r-- | gdb/testsuite/gdb.asm/asm-source.exp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index 2af398f..a864686 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -122,7 +122,10 @@ gdb_expect { -re "info symbol 0x$entry_point\[\r\n\]*" { exp_continue } - -re "(.*) in section .*$gdb_prompt $" { + -re "^(.*) in section .*$gdb_prompt $" { + # It's important to anchor the pattern above at the beginning + # of the line. Without that carat, the (.*) may end up + # matching the empty string. set entry_symbol $expect_out(1,string) pass "info symbol" } |