* gdb.base/consecutive.exp: Don't use global in gdb_expect.

This commit is contained in:
Jie Zhang 2008-12-15 13:04:56 +00:00
parent 9f3fe11c95
commit 90142adc1d
2 changed files with 4 additions and 5 deletions

View 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.

View 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"