summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/infcmd.c24
-rw-r--r--gdb/inferior.h10
3 files changed, 13 insertions, 29 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c965eeacc49..a43a218c7ac 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2012-12-18 Tom Tromey <tromey@redhat.com>
+
+ * infcmd.c (all_registers_info, nexti_command, stepi_command)
+ (continue_command, interrupt_target_command): Now static.
+ (registers_info): Remove declaration.
+ * inferior.h (all_registers_info, nexti_command, stepi_command)
+ (continue_command, interrupt_target_command): Don't declare.
+
2012-12-12 Tom Tromey <tromey@redhat.com>
* cli/cli-cmds.c (apropos_command): Now static.
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 4e38725ce29..af89a0fe8d8 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -57,20 +57,6 @@
#include "continuations.h"
#include "linespec.h"
-/* Functions exported for general use, in inferior.h: */
-
-void all_registers_info (char *, int);
-
-void registers_info (char *, int);
-
-void nexti_command (char *, int);
-
-void stepi_command (char *, int);
-
-void continue_command (char *, int);
-
-void interrupt_target_command (char *args, int from_tty);
-
/* Local functions: */
static void nofp_registers_info (char *, int);
@@ -756,7 +742,7 @@ continue_1 (int all_threads)
}
/* continue [-a] [proceed-count] [&] */
-void
+static void
continue_command (char *args, int from_tty)
{
int async_exec = 0;
@@ -875,13 +861,13 @@ next_command (char *count_string, int from_tty)
/* Likewise, but step only one instruction. */
-void
+static void
stepi_command (char *count_string, int from_tty)
{
step_1 (0, 1, count_string);
}
-void
+static void
nexti_command (char *count_string, int from_tty)
{
step_1 (1, 1, count_string);
@@ -2294,7 +2280,7 @@ registers_info (char *addr_exp, int fpregs)
}
}
-void
+static void
all_registers_info (char *addr_exp, int from_tty)
{
registers_info (addr_exp, 1);
@@ -2809,7 +2795,7 @@ interrupt_target_1 (int all_threads)
if the `-a' switch is used. */
/* interrupt [-a] */
-void
+static void
interrupt_target_command (char *args, int from_tty)
{
if (target_can_async_p ())
diff --git a/gdb/inferior.h b/gdb/inferior.h
index f7236e7b55b..fa55425c00e 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -242,20 +242,10 @@ extern void set_inferior_args (char *);
extern void set_inferior_args_vector (int, char **);
-extern void all_registers_info (char *, int);
-
extern void registers_info (char *, int);
-extern void nexti_command (char *, int);
-
-extern void stepi_command (char *, int);
-
extern void continue_1 (int all_threads);
-extern void continue_command (char *, int);
-
-extern void interrupt_target_command (char *args, int from_tty);
-
extern void interrupt_target_1 (int all_threads);
extern void delete_longjmp_breakpoint_cleanup (void *arg);