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]

[commit] completer.c (location_completer): Fix typo in comment.


Hi.

While location_completer will "work" for

(gdb) complete b hello.c:::::::::::mai

only one colon really works when passed to the break command.
This command fixes the comment.
Deciding what to do about multiple colons is a separate project.

Committed.

2013-02-05  Doug Evans  <dje@google.com>

	* completer.c (location_completer): Fix typo in comment.

Index: completer.c
===================================================================
RCS file: /cvs/src/src/gdb/completer.c,v
retrieving revision 1.55
diff -u -p -r1.55 completer.c
--- completer.c	31 Jan 2013 18:37:37 -0000	1.55
+++ completer.c	5 Feb 2013 21:25:45 -0000
@@ -199,7 +199,7 @@ location_completer (struct cmd_list_elem
   char *orig_text = text;
   size_t text_len;
 
-  /* Do we have an unquoted colon, as in "break foo.c::bar"?  */
+  /* Do we have an unquoted colon, as in "break foo.c:bar"?  */
   for (p = text; *p != '\0'; ++p)
     {
       if (*p == '\\' && p[1] == '\'')


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