diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-04-11 19:49:03 +0200 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-04-11 19:49:03 +0200 |
commit | 4f45d44599b232266c49ff470868efe6771832a0 (patch) | |
tree | f1c2e8fbcb941665eba574fb4bef14f47d817e9f /gdb/tui | |
parent | e3c0e327923e27c7d96e6e44e22e10998ff158d7 (diff) | |
download | gdb-4f45d44599b232266c49ff470868efe6771832a0.zip gdb-4f45d44599b232266c49ff470868efe6771832a0.tar.gz gdb-4f45d44599b232266c49ff470868efe6771832a0.tar.bz2 |
Remove --xdb
Pedro Alves:
The commands that enables aren't even documented in the manual.
Judging from that, I assume that only wdb users would ever really
be using the --xdb switch.
I think it's time to drop "support" for the --xdb switch too. I
looked through the commands that that exposes, the only that looked
potentially interesting was "go", but then it's just an alias
for "tbreak+jump", which can easily be done with "define go...end".
I'd rather free up the "go" name for something potentially
more interesting (either run control, or maybe even unrelated,
e.g., for golang).
gdb/ChangeLog
2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
* NEWS (Changes since GDB 7.9): Add removed -xdb.
* breakpoint.c (command_line_is_silent): Remove xdb_commands
conditional.
(_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
and lb.
* cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
va.
* cli/cli-decode.c (find_command_name_length): Remove xdb_commands
conditional.
* defs.h (xdb_commands): Remove declaration.
* f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
* guile/scm-cmd.c (command_classes): Remove xdb from comment.
* infcmd.c (run_no_args_command, go_command): Remove.
(_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
* infrun.c (xdb_handle_command): Remove.
(_initialize_infrun): Remove xdb_commands for lz and z.
* main.c (xdb_commands): Remove variable.
(captured_main): Remove "xdb" from long_options.
(print_gdb_help): Remove --xdb from help.
* python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
* source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
* stack.c (backtrace_full_command, args_plus_locals_info)
(current_frame_command): Remove.
(_initialize_stack): Remove xdb_commands for t, T and l.
* symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
* thread.c (_initialize_thread): Remove xdb_commands condition.
* tui/tui-layout.c (tui_toggle_layout_command)
(tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
(_initialize_tui_layout): Remove xdb_commands for td and ts.
* tui/tui-regs.c (tui_scroll_regs_forward_command)
(tui_scroll_regs_backward_command): Remove.
(_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
* tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
(_initialize_tui_win): Remove xdb_commands for U and w.
* utils.c (pagination_on_command, pagination_off_command): Remove.
(initialize_utils): Remove xdb_commands for am and sm.
gdb/doc/ChangeLog
2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.texinfo (Mode Options): Remove -xdb.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-layout.c | 58 | ||||
-rw-r--r-- | gdb/tui/tui-regs.c | 30 | ||||
-rw-r--r-- | gdb/tui/tui-win.c | 46 |
3 files changed, 0 insertions, 134 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 6547404..4c25d43 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -63,10 +63,7 @@ static void show_data (enum tui_layout_type); static enum tui_layout_type next_layout (void); static enum tui_layout_type prev_layout (void); static void tui_layout_command (char *, int); -static void tui_toggle_layout_command (char *, int); -static void tui_toggle_split_layout_command (char *, int); static void extract_display_start_addr (struct gdbarch **, CORE_ADDR *); -static void tui_handle_xdb_layout (struct tui_layout_def *); /*************************************** @@ -396,14 +393,6 @@ Layout names are:\n\ source/assembly/command (split) is displayed, \n\ the register window is displayed with \n\ the window that has current logical focus.\n")); - if (xdb_commands) - { - add_com ("td", class_tui, tui_toggle_layout_command, _("\ -Toggle between Source/Command and Disassembly/Command layouts.\n")); - add_com ("ts", class_tui, tui_toggle_split_layout_command, _("\ -Toggle between Source/Command or Disassembly/Command and \n\ -Source/Disassembly/Command layouts.\n")); - } } @@ -554,53 +543,6 @@ extract_display_start_addr (struct gdbarch **gdbarch_p, CORE_ADDR *addr_p) static void -tui_handle_xdb_layout (struct tui_layout_def *layout_def) -{ - if (layout_def->split) - { - tui_set_layout (SRC_DISASSEM_COMMAND, TUI_UNDEFINED_REGS); - tui_set_win_focus_to (tui_win_list[layout_def->display_mode]); - } - else - { - if (layout_def->display_mode == SRC_WIN) - tui_set_layout (SRC_COMMAND, TUI_UNDEFINED_REGS); - else - tui_set_layout (DISASSEM_DATA_COMMAND, layout_def->regs_display_type); - } -} - - -static void -tui_toggle_layout_command (char *arg, int from_tty) -{ - struct tui_layout_def *layout_def = tui_layout_def (); - - /* Make sure the curses mode is enabled. */ - tui_enable (); - if (layout_def->display_mode == SRC_WIN) - layout_def->display_mode = DISASSEM_WIN; - else - layout_def->display_mode = SRC_WIN; - - if (!layout_def->split) - tui_handle_xdb_layout (layout_def); -} - - -static void -tui_toggle_split_layout_command (char *arg, int from_tty) -{ - struct tui_layout_def *layout_def = tui_layout_def (); - - /* Make sure the curses mode is enabled. */ - tui_enable (); - layout_def->split = (!layout_def->split); - tui_handle_xdb_layout (layout_def); -} - - -static void tui_layout_command (char *arg, int from_tty) { /* Make sure the curses mode is enabled. */ diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 961491f..feb11ba 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -58,9 +58,6 @@ static enum tui_status tui_get_register (struct frame_info *frame, struct tui_data_element *data, int regnum, int *changedp); -static void tui_scroll_regs_forward_command (char *, int); -static void tui_scroll_regs_backward_command (char *, int); - /***************************************** @@ -637,20 +634,6 @@ _initialize_tui_regs (void) add_cmd ("next", class_tui, tui_reg_next_command, _("Display next register group."), &tuireglist); - - if (xdb_commands) - { - add_com ("fr", class_tui, tui_reg_float_command, - _("Display only floating point registers\n")); - add_com ("gr", class_tui, tui_reg_general_command, - _("Display only general registers\n")); - add_com ("sr", class_tui, tui_reg_system_command, - _("Display only special registers\n")); - add_com ("+r", class_tui, tui_scroll_regs_forward_command, - _("Scroll the registers window forward\n")); - add_com ("-r", class_tui, tui_scroll_regs_backward_command, - _("Scroll the register window backward\n")); - } } @@ -730,16 +713,3 @@ tui_get_register (struct frame_info *frame, } return ret; } - -static void -tui_scroll_regs_forward_command (char *arg, int from_tty) -{ - tui_scroll (FORWARD_SCROLL, TUI_DATA_WIN, 1); -} - - -static void -tui_scroll_regs_backward_command (char *arg, int from_tty) -{ - tui_scroll (BACKWARD_SCROLL, TUI_DATA_WIN, 1); -} diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 4dfa834..77218e8 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -64,7 +64,6 @@ static int new_height_ok (struct tui_win_info *, int); static void tui_set_tab_width_command (char *, int); static void tui_refresh_all_command (char *, int); static void tui_set_win_height_command (char *, int); -static void tui_xdb_set_win_height_command (char *, int); static void tui_all_windows_info (char *, int); static void tui_set_focus_command (char *, int); static void tui_scroll_forward_command (char *, int); @@ -380,8 +379,6 @@ _initialize_tui_win (void) add_com ("refresh", class_tui, tui_refresh_all_command, _("Refresh the terminal display.\n")); - if (xdb_commands) - add_com_alias ("U", "refresh", class_tui, 0); add_com ("tabset", class_tui, tui_set_tab_width_command, _("\ Set the width (in characters) of tab stops.\n\ Usage: tabset <n>\n")); @@ -417,10 +414,6 @@ Usage: < [win] [n]\n")); add_com (">", class_tui, tui_scroll_right_command, _("\ Scroll window text to the right.\n\ Usage: > [win] [n]\n")); - if (xdb_commands) - add_com ("w", class_xdb, tui_xdb_set_win_height_command, _("\ -XDB compatibility command for setting the height of a command window.\n\ -Usage: w <#lines>\n")); /* Define the tui control variables. */ add_setshow_enum_cmd ("border-kind", no_class, tui_border_kind_enums, @@ -1167,45 +1160,6 @@ tui_set_win_height_command (char *arg, int from_tty) tui_set_win_height (arg, from_tty); } - -/* XDB Compatibility command for setting the window height. This will - increase or decrease the command window by the specified - amount. */ -static void -tui_xdb_set_win_height (char *arg, int from_tty) -{ - /* Make sure the curses mode is enabled. */ - tui_enable (); - if (arg != (char *) NULL) - { - int input_no = atoi (arg); - - if (input_no > 0) - { /* Add 1 for the locator. */ - int new_height = tui_term_height () - (input_no + 1); - - if (!new_height_ok (tui_win_list[CMD_WIN], new_height) - || tui_adjust_win_heights (tui_win_list[CMD_WIN], - new_height) == TUI_FAILURE) - warning (_("Invalid window height specified.\n%s"), - XDBWIN_HEIGHT_USAGE); - } - else - warning (_("Invalid window height specified.\n%s"), - XDBWIN_HEIGHT_USAGE); - } - else - warning (_("Invalid window height specified.\n%s"), XDBWIN_HEIGHT_USAGE); -} - -/* Set the height of the specified window, with va_list. */ -static void -tui_xdb_set_win_height_command (char *arg, int from_tty) -{ - tui_xdb_set_win_height (arg, from_tty); -} - - /* Function to adjust all window heights around the primary. */ static enum tui_status tui_adjust_win_heights (struct tui_win_info *primary_win_info, |