gdb.base/default.exp: Use verbose -log in a few places.
Commit Message
Hi.
I found this useful while debugging a problem.
2015-10-05 Doug Evans <dje@google.com>
* gdb.base/default.exp (info set): Always send some debugging output
to log file.
if { $set_prompt_seen && $set_confirm_seen } {
pass "info set"
} else {
Comments
On 10/05/2015 11:27 PM, Doug Evans wrote:
> Hi.
>
> I found this useful while debugging a problem.
>
> 2015-10-05 Doug Evans <dje@google.com>
>
> * gdb.base/default.exp (info set): Always send some debugging output
> to log file.
LGTM.
Thanks,
Pedro Alves
b/gdb/testsuite/gdb.base/default.exp
@@ -318,17 +318,17 @@ set set_confirm_seen 0
set set_prompt_seen 0
gdb_test_multiple "info set" "info set" {
-re "confirm: Whether to confirm potentially dangerous operations is
o\[a-z\]*.(\[^\r\n\]*\[\r\n\])+history filename: The filename in which to
record the command history is (\[^\r\n\]*\[\r\n\])+listsize: Number of
source lines gdb will list by default is 10" {
- verbose "Confirm dislayed"
+ verbose -log "Confirm displayed"
set set_confirm_seen 1
exp_continue
}
-re "Gdb's prompt is \"$gdb_prompt \"" {
- verbose "GDB prompt displayed"
+ verbose -log "GDB prompt displayed"
set set_prompt_seen 1
exp_continue
}
-re "Writing into executable.*$gdb_prompt $" {
- verbose "write displayed"
+ verbose -log "write displayed"