* gdb.asm/asm-source.exp (info symbol): Anchor the pattern

matching the entry point symbol's name at the beginning of the
line.
This commit is contained in:
Jim Blandy
2001-12-10 20:30:00 +00:00
parent 11dc9c30bf
commit 347dc97d2d
2 changed files with 10 additions and 1 deletions

View File

@@ -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"
}