* gdb.base/consecutive.exp: Don't use global in gdb_expect.
authorJie Zhang <jie.zhang@analog.com>
Mon, 15 Dec 2008 13:04:56 +0000 (13:04 +0000)
committerJie Zhang <jie.zhang@analog.com>
Mon, 15 Dec 2008 13:04:56 +0000 (13:04 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/consecutive.exp

index 88c5070e9c59db85df85df4112b41d44c083ae44..f3932ba05fb1432df3b77a72d76959627a3cd297 100644 (file)
@@ -1,3 +1,7 @@
+2008-12-15  Jie Zhang  <jie.zhang@analog.com>
+
+       * gdb.base/consecutive.exp: Don't use global in gdb_expect.
+
 2008-12-12  Tom Tromey  <tromey@redhat.com>
 
        * gdb.base/commands.exp (redefine_hook_test): New proc.
index 179bfc0961824185310921d6a2a9586a739b52f9..7dc77c06ddb218714f003b199a7ee7ef4e1f8f1c 100644 (file)
@@ -64,11 +64,6 @@ set stop_addr 0
 
 send_gdb "x /2i \$pc\n"
 gdb_expect {
-    global hex
-    global nl
-    global bp_addr
-    global gdb_prompt
-
     -re "$hex.*${nl}($hex).*$gdb_prompt $" {
        set bp_addr $expect_out(1,string)
        pass "get breakpoint address for foo"