public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Remove duplicated creation of "frame" command and "f" alias.
@ 2020-04-30 16:41 Philippe Waroquiers
  0 siblings, 0 replies; only message in thread
From: Philippe Waroquiers @ 2020-04-30 16:41 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=102e38eba728cd3b969723f7cebd13f7220364b8

commit 102e38eba728cd3b969723f7cebd13f7220364b8
Author: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Date:   Thu Apr 30 18:35:33 2020 +0200

    Remove duplicated creation of "frame" command and "f" alias.
    
    "frame" and "f" are created twice by stack.c _initialize_stack.
    Remove the second creation.
    Regression tested on amd64/Debian.
    
    2020-04-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
            * stack.c (_initialize_stack): Remove duplicated creation
            of "frame" command and "f" alias.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/stack.c   | 9 ---------
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3a8d2448e3a..f78d8292488 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2020-04-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+	* stack.c (_initialize_stack): Remove duplicated creation
+	of "frame" command and "f" alias.
+
 2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
 
 	PR gdb/18706
diff --git a/gdb/stack.c b/gdb/stack.c
index 7f541a6a010..e8a9a924d4f 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -3324,7 +3324,6 @@ Select and print a stack frame.\n\
 With no argument, print the selected stack frame.  (See also \"info frame\").\n\
 A single numerical argument specifies the frame to select."),
                   &frame_cmd_list, "frame ", 1, &cmdlist);
-
   add_com_alias ("f", "frame", class_stack, 1);
 
 #define FRAME_APPLY_OPTION_HELP "\
@@ -3384,14 +3383,6 @@ shortcut for 'frame apply all -s [OPTION]... COMMAND'\n\
 See \"help frame apply all\" for available options."));
   set_cmd_completer_handle_brkchars (cmd, frame_apply_all_cmd_completer);
 
-  add_prefix_cmd ("frame", class_stack,
-		  &frame_cmd.base_command, _("\
-Select and print a stack frame.\n\
-With no argument, print the selected stack frame.  (See also \"info frame\").\n\
-A single numerical argument specifies the frame to select."),
-		  &frame_cmd_list, "frame ", 1, &cmdlist);
-  add_com_alias ("f", "frame", class_stack, 1);
-
   add_cmd ("address", class_stack, &frame_cmd.address,
 	   _("\
 Select and print a stack frame by stack address.\n\


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-30 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 16:41 [binutils-gdb] Remove duplicated creation of "frame" command and "f" alias Philippe Waroquiers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).