mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:54:41 +08:00
2001-04-22 Michael Chastain <chastain@redhat.com>
* gdb.c++/local.exp: Use the 'runto' library function. * gdb.c++/namespace.exp: Likewise. * gdb.c++/overload.exp: Likewise.
This commit is contained in:
parent
fe4770f478
commit
db14485300
@ -1,3 +1,9 @@
|
||||
2001-04-22 Michael Chastain <chastain@redhat.com>
|
||||
|
||||
* gdb.c++/local.exp: Use the 'runto' library function.
|
||||
* gdb.c++/namespace.exp: Likewise.
|
||||
* gdb.c++/overload.exp: Likewise.
|
||||
|
||||
2001-03-26 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* gdb.base/Makefile.in (EXECUTABLES): Add step-line.
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
# Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -61,25 +61,13 @@ if ![runto_main] then {
|
||||
continue
|
||||
}
|
||||
|
||||
send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
|
||||
if ![runto 'marker1'] then {
|
||||
perror "couldn't run to marker1"
|
||||
continue
|
||||
}
|
||||
|
||||
gdb_test "up" ".*main.*" "up from marker1"
|
||||
|
||||
send_gdb "cont\n"
|
||||
gdb_expect {
|
||||
-re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
|
||||
send_gdb "up\n"
|
||||
gdb_expect {
|
||||
-re ".*main.*$gdb_prompt $" {
|
||||
pass "up from marker1"
|
||||
}
|
||||
-re ".*$gdb_prompt $" {
|
||||
fail "up from marker1"
|
||||
}
|
||||
timeout { fail "up from marker1 (timeout)" }
|
||||
}
|
||||
}
|
||||
-re "$gdb_prompt $" { fail "continue to marker1" }
|
||||
timeout { fail "(timeout) continue to marker1" }
|
||||
}
|
||||
|
||||
# srikanth, These tests have always been run only with aCC. Now in
|
||||
# the new scheme of things, we run it twice, once with aCC, and once
|
||||
|
@ -68,20 +68,12 @@ if ![runto_main] then {
|
||||
continue
|
||||
}
|
||||
|
||||
send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
|
||||
send_gdb "cont\n"
|
||||
gdb_expect {
|
||||
-re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
|
||||
send_gdb "up\n"
|
||||
gdb_expect {
|
||||
-re ".*main.*$gdb_prompt $" { pass "up from marker1" }
|
||||
-re ".*$gdb_prompt $" { fail "up from marker1" }
|
||||
timeout { fail "up from marker1 (timeout)" }
|
||||
}
|
||||
}
|
||||
-re "$gdb_prompt $" { fail "continue to marker1" }
|
||||
timeout { fail "(timeout) continue to marker1" }
|
||||
}
|
||||
if ![runto 'marker1'] then {
|
||||
perror "couldn't run to marker1"
|
||||
continue
|
||||
}
|
||||
|
||||
gdb_test "up" ".*main.*" "up from marker1"
|
||||
|
||||
# Access a data item inside a namespace using colons and
|
||||
# single quotes :-(
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
# Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -61,26 +61,12 @@ if ![runto_main] then {
|
||||
continue
|
||||
}
|
||||
|
||||
send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
|
||||
|
||||
send_gdb "cont\n"
|
||||
gdb_expect {
|
||||
-re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
|
||||
send_gdb "up\n"
|
||||
gdb_expect {
|
||||
-re ".*main.*$gdb_prompt $" {
|
||||
pass "up from marker1"
|
||||
}
|
||||
-re ".*$gdb_prompt $" {
|
||||
fail "up from marker1"
|
||||
}
|
||||
timeout { fail "up from marker1 (timeout)" }
|
||||
}
|
||||
}
|
||||
-re "$gdb_prompt $" { fail "continue to marker1" }
|
||||
timeout { fail "(timeout) continue to marker1" }
|
||||
}
|
||||
if ![runto 'marker1'] then {
|
||||
perror "couldn't run to marker1"
|
||||
continue
|
||||
}
|
||||
|
||||
gdb_test "up" ".*main.*" "up from marker1"
|
||||
|
||||
send_gdb "print foo_instance1\n"
|
||||
gdb_expect {
|
||||
|
Loading…
Reference in New Issue
Block a user