mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
Clean up batch-preserve-term-settings.exp
See ChangeLog for details. No functional change intended. Tested on x86_64 Debian Stretch by verifying that the gdb.log output remains unchanged for native, gdbserver and extended-gdbserver. gdb/testsuite/ChangeLog: * gdb.base/batch-preserve-term-settings.exp: Remove top-level manipulation of saved_gdbflags. (test_terminal_settings_preserved): Remove global declaration of the unused variable pagination_prompt. Remove manipulation of saved_gdbflags. Use a local variable EXTRA_GDBFLAGS instead of GDBFLAGS.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
|
||||||
|
|
||||||
|
* gdb.base/batch-preserve-term-settings.exp: Remove top-level
|
||||||
|
manipulation of saved_gdbflags.
|
||||||
|
(test_terminal_settings_preserved): Remove global declaration of
|
||||||
|
the unused variable pagination_prompt. Remove manipulation of
|
||||||
|
saved_gdbflags. Use a local variable EXTRA_GDBFLAGS instead of
|
||||||
|
GDBFLAGS.
|
||||||
|
|
||||||
2015-07-29 Pedro Alves <palves@redhat.com>
|
2015-07-29 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* boards/gdbserver-base.exp: Don't set gdb,noinferiorio.
|
* boards/gdbserver-base.exp: Don't set gdb,noinferiorio.
|
||||||
|
@ -27,9 +27,6 @@ if [is_remote host] {
|
|||||||
set file_arg [remote_download host $file_arg]
|
set file_arg [remote_download host $file_arg]
|
||||||
}
|
}
|
||||||
|
|
||||||
global GDBFLAGS
|
|
||||||
set saved_gdbflags $GDBFLAGS
|
|
||||||
|
|
||||||
# The shell's prompt.
|
# The shell's prompt.
|
||||||
set shell_prompt "$ "
|
set shell_prompt "$ "
|
||||||
set shell_prompt_re [string_to_regexp $shell_prompt]
|
set shell_prompt_re [string_to_regexp $shell_prompt]
|
||||||
@ -119,8 +116,7 @@ proc run_stty {message result} {
|
|||||||
proc test_terminal_settings_preserved {} {
|
proc test_terminal_settings_preserved {} {
|
||||||
global file_arg
|
global file_arg
|
||||||
global GDB INTERNAL_GDBFLAGS GDBFLAGS
|
global GDB INTERNAL_GDBFLAGS GDBFLAGS
|
||||||
global gdb_prompt pagination_prompt
|
global gdb_prompt
|
||||||
global saved_gdbflags
|
|
||||||
global shell_prompt_re
|
global shell_prompt_re
|
||||||
|
|
||||||
if ![spawn_shell] {
|
if ![spawn_shell] {
|
||||||
@ -130,12 +126,11 @@ proc test_terminal_settings_preserved {} {
|
|||||||
set stty_supported [run_stty "stty before" stty_before]
|
set stty_supported [run_stty "stty before" stty_before]
|
||||||
|
|
||||||
set test "gdb -batch -ex run"
|
set test "gdb -batch -ex run"
|
||||||
set GDBFLAGS $saved_gdbflags
|
append EXTRA_GDBFLAGS "-batch"
|
||||||
append GDBFLAGS " -batch"
|
append EXTRA_GDBFLAGS " -ex \"set height unlimited\""
|
||||||
append GDBFLAGS " -ex \"set height unlimited\""
|
append EXTRA_GDBFLAGS " -ex \"start\""
|
||||||
append GDBFLAGS " -ex \"start\""
|
append EXTRA_GDBFLAGS " --args \"$file_arg\""
|
||||||
append GDBFLAGS " --args \"$file_arg\""
|
send_gdb "$GDB $INTERNAL_GDBFLAGS $GDBFLAGS $EXTRA_GDBFLAGS [host_info gdb_opts]\n"
|
||||||
send_gdb "$GDB $INTERNAL_GDBFLAGS $GDBFLAGS [host_info gdb_opts]\n"
|
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "Don't know how to run.*$shell_prompt_re$" {
|
-re "Don't know how to run.*$shell_prompt_re$" {
|
||||||
unsupported $test
|
unsupported $test
|
||||||
@ -182,5 +177,3 @@ proc test_terminal_settings_preserved {} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test_terminal_settings_preserved
|
test_terminal_settings_preserved
|
||||||
|
|
||||||
set GDBFLAGS $saved_gdbflags
|
|
||||||
|
Reference in New Issue
Block a user