This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ob] Make GO_USAGE go away


Not very useful.  Checked in.

-- 
Pedro Alves
2008-10-17  Pedro Alves  <pedro@codesourcery.com>

	* infcmd.c (GO_USAGE): Delete.
	(go_command): Adjust.

---
 gdb/infcmd.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Index: src/gdb/infcmd.c
===================================================================
--- src.orig/gdb/infcmd.c	2008-10-18 00:25:55.000000000 +0100
+++ src/gdb/infcmd.c	2008-10-18 00:27:36.000000000 +0100
@@ -120,8 +120,6 @@ static int strip_bg_char (char **);
 
 void _initialize_infcmd (void);
 
-#define GO_USAGE   "Usage: go <location>\n"
-
 #define ERROR_NO_INFERIOR \
    if (!target_has_execution) error (_("The program is not being run."));
 
@@ -1055,7 +1053,7 @@ static void
 go_command (char *line_no, int from_tty)
 {
   if (line_no == (char *) NULL || !*line_no)
-    printf_filtered (GO_USAGE);
+    printf_filtered (_("Usage: go <location>\n"));
   else
     {
       tbreak_command (line_no, from_tty);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]