* gdb.asm/asm-source.exp (info symbol): Anchor the pattern
authorJim Blandy <jimb@codesourcery.com>
Mon, 10 Dec 2001 20:30:00 +0000 (20:30 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 10 Dec 2001 20:30:00 +0000 (20:30 +0000)
matching the entry point symbol's name at the beginning of the
line.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.asm/asm-source.exp

index d8bbcdcf860dace662611c84324f662c6baa4ac5..6b1e36747fbea47c66c8e37f929004f9c1a82fc8 100644 (file)
@@ -1,3 +1,9 @@
+2001-12-10  Jim Blandy  <jimb@redhat.com>
+
+       * gdb.asm/asm-source.exp (info symbol): Anchor the pattern
+       matching the entry point symbol's name at the beginning of the
+       line.
+
 2001-12-07  Daniel Jacobowitz  <drow@mvista.com>
 
        * gdb.c++/classes.exp, gdb.c++/derivation.exp,
index 2af398f91f991d0457c437252cfbc85ed9c7999f..a864686db3176251eace30af07f9a83016c0bb3a 100644 (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"
     }
This page took 0.032745 seconds and 4 git commands to generate.