This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFA] Improve completion of locations



On Sun, 6 May 2001, Daniel Berlin wrote:

> Complete on 'fred:
> 
> It'll list every symbol around (Or at least, 3792 of them, i would
> imagine this is every single one, i never checked)

This small patch (to be applied on top of the large one I sent) should 
solve this:

--- gdb/completer.c~4	Sun May  6 09:50:42 2001
+++ gdb/completer.c	Sun May  6 13:10:30 2001
@@ -215,6 +215,8 @@ location_completer (char *text, char *wo
 
 	  if (*p == quote_found)
 	    quote_found = 0;
+	  else
+	    break;		/* hit the end of text */
 	}
 #if HAVE_DOS_BASED_FILE_SYSTEM
       /* If we have a DOS-style absolute file name at the beginning of


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