diff options
Diffstat (limited to 'gdb/completer.c')
-rw-r--r-- | gdb/completer.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gdb/completer.c b/gdb/completer.c index 6acf115..f152dd5 100644 --- a/gdb/completer.c +++ b/gdb/completer.c @@ -587,7 +587,6 @@ expression_completer (struct cmd_list_element *ignore, { struct type *type = NULL; char *fieldname; - const char *p; enum type_code code = TYPE_CODE_UNDEF; /* Perform a tentative parse of the expression, to see whether a @@ -635,15 +634,8 @@ expression_completer (struct cmd_list_element *ignore, } xfree (fieldname); - /* Commands which complete on locations want to see the entire - argument. */ - for (p = word; - p > text && p[-1] != ' ' && p[-1] != '\t'; - p--) - ; - /* Not ideal but it is what we used to do before... */ - return location_completer (ignore, p, word); + return location_completer (ignore, text, word); } /* See definition in completer.h. */ |