]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Minor rearrangement of tui-stack.c
authorTom Tromey <tom@tromey.com>
Thu, 18 Jul 2019 20:12:31 +0000 (14:12 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 30 Aug 2019 18:57:09 +0000 (12:57 -0600)
This move _initialize_tui_stack to the end of tui-stack.c, per the gdb
style; and then removes two unnecessary forward declarations.

gdb/ChangeLog
2019-08-30  Tom Tromey  <tom@tromey.com>

* tui/tui-stack.c (_initialize_tui_stack): Move later.
Remove unnecessary forward declarations.

gdb/ChangeLog
gdb/tui/tui-stack.c

index 38619ef6479839a97ce18bfbcbc87b888ca1d37a..981189e1785681e5144e49955eda1e21696ee88d 100644 (file)
@@ -1,3 +1,8 @@
+2019-08-30  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.c (_initialize_tui_stack): Move later.
+       Remove unnecessary forward declarations.
+
 2019-08-30  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
index f6b6bb72b2a4de460a7e791c948fa1b0eb6485ef..36208d0cac02d83729a85642ce890d331729a631 100644 (file)
 
 static struct tui_locator_window _locator;
 
-/* Get a printable name for the function at the address.
-   The symbol name is demangled if demangling is turned on.
-   Returns a pointer to a static area holding the result.  */
-static char *tui_get_function_from_frame (struct frame_info *fi);
-
-static void tui_update_command (const char *, int);
 \f
 
 /* Accessor for the locator win info.  Answers a pointer to the static
@@ -405,6 +399,13 @@ tui_show_locator_content ()
   locator->rerender ();
 }
 
+/* Command to update the display with the current execution point.  */
+static void
+tui_update_command (const char *arg, int from_tty)
+{
+  execute_command ("frame 0", from_tty);
+}
+
 /* Function to initialize gdb commands, for tui window stack
    manipulation.  */
 
@@ -415,10 +416,3 @@ _initialize_tui_stack (void)
           _("Update the source window and locator to "
             "display the current execution point."));
 }
-
-/* Command to update the display with the current execution point.  */
-static void
-tui_update_command (const char *arg, int from_tty)
-{
-  execute_command ("frame 0", from_tty);
-}