aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-03-04 11:29:27 -0700
committerTom Tromey <tromey@adacore.com>2022-03-31 13:48:07 -0600
commit49a82d50c0ee41bf51db6899291a8beaea4e7e2a (patch)
treecf079ae28dd9a264a8d7d091899735d51676c941 /gdb/stack.c
parent0653f01479ecbcbf3c4dfa6083187a5b2c2258c2 (diff)
downloadgdb-49a82d50c0ee41bf51db6899291a8beaea4e7e2a.zip
gdb-49a82d50c0ee41bf51db6899291a8beaea4e7e2a.tar.gz
gdb-49a82d50c0ee41bf51db6899291a8beaea4e7e2a.tar.bz2
Remove dbx mode
This patch removes gdb's dbx mode. Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 3a6a01b..1ccad83 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -2903,24 +2903,6 @@ find_frame_for_function (const char *function_name)
return frame;
}
-/* Implements the dbx 'func' command. */
-
-static void
-func_command (const char *arg, int from_tty)
-{
- if (arg == NULL)
- return;
-
- struct frame_info *frame = find_frame_for_function (arg);
- if (frame == NULL)
- error (_("'%s' not within current stack frame."), arg);
- if (frame != get_selected_frame (NULL))
- {
- select_frame (frame);
- print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC, 1);
- }
-}
-
/* The qcs command line flags for the "frame apply" commands. Keep
this in sync with the "thread apply" commands. */
@@ -3560,11 +3542,6 @@ Prints the argument variables of the current stack frame.\n"),
false));
set_cmd_completer_handle_brkchars (cmd, info_print_command_completer);
- if (dbx_commands)
- add_com ("func", class_stack, func_command, _("\
-Select the stack frame that contains NAME.\n\
-Usage: func NAME"));
-
/* Install "set print raw frame-arguments", a deprecated spelling of
"set print raw-frame-arguments". */
set_show_commands set_show_frame_args