mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
Display "main" on initial TUI startup
I noticed that even when there's a symbol file, "tui enable" won't show "main" by default. I think it should, and this patch fixes this. gdb/ChangeLog 2019-12-20 Tom Tromey <tom@tromey.com> * tui/tui.c (tui_enable): Call tui_display_main. gdb/testsuite/ChangeLog 2019-12-20 Tom Tromey <tom@tromey.com> * gdb.tui/list.exp: Check for source on initial listing. Change-Id: Ic7bfc930e1179f5b61111e30a2dae46a98b00064
This commit is contained in:
parent
52469d7673
commit
77b97e0062
@ -1,3 +1,7 @@
|
||||
2019-12-20 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tui/tui.c (tui_enable): Call tui_display_main.
|
||||
|
||||
2019-12-20 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tui/tui-disasm.c (tui_get_begin_asm_address): Use
|
||||
|
@ -1,3 +1,7 @@
|
||||
2019-12-20 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* gdb.tui/list.exp: Check for source on initial listing.
|
||||
|
||||
2019-12-11 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* gdb.xml/tdesc-arch.exp (set_arch): Add "trans_mode" parameter.
|
||||
|
@ -28,7 +28,7 @@ if {![Term::enter_tui]} {
|
||||
unsupported "TUI not supported"
|
||||
}
|
||||
|
||||
Term::check_contents "initial source listing" "No Source Available"
|
||||
Term::check_contents "initial source listing" "21 *return 0"
|
||||
|
||||
Term::command "layout asm"
|
||||
Term::check_contents "asm window shows main" "$hex <main>"
|
||||
|
@ -513,6 +513,8 @@ tui_enable (void)
|
||||
|
||||
if (deprecated_safe_get_selected_frame ())
|
||||
tui_show_frame_info (deprecated_safe_get_selected_frame ());
|
||||
else
|
||||
tui_display_main ();
|
||||
|
||||
/* Restore TUI keymap. */
|
||||
tui_set_key_mode (tui_current_key_mode);
|
||||
|
Loading…
Reference in New Issue
Block a user