]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/top.c
import gdb-1999-09-08 snapshot
[thirdparty/binutils-gdb.git] / gdb / top.c
index 4cad22d9c921772c32b986cc9a66ddbb491333eb..2271d2a0496ece0d30f91c412fa250489aba18f3 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -34,6 +34,7 @@
 #include "terminal.h"          /* For job_control.  */
 #include "annotate.h"
 #include "top.h"
+#include "version.h"
 
 /* readline include files */
 #include <readline/readline.h>
@@ -169,18 +170,6 @@ int inhibit_gdbinit = 0;
 
 int use_windows = 1;
 
-/* Version number of GDB, as a string.  */
-
-extern char *version;
-
-/* Canonical host name as a string. */
-
-extern char *host_name;
-
-/* Canonical target name as a string. */
-
-extern char *target_name;
-
 extern char lang_frame_mismatch_warn[];                /* language.c */
 
 /* Flag for whether we want all the "from_tty" gubbish printed.  */
@@ -3178,7 +3167,7 @@ get_prompt_1 (formatted_prompt)
                    else
                      {
                        if (available >= 16 /*? */ )    /* overflow protect */
-                         sprintf (outp, "%d", (long) longval);
+                         sprintf (outp, "%ld", (long) longval);
                      }
                    break;
                  }