* linespec.c (decode_objc): Record the function name

in the linespec.
This commit is contained in:
Keith Seitz
2012-07-23 20:31:34 +00:00
parent da1cc82f30
commit 0f5f4ffe7a
2 changed files with 6 additions and 0 deletions

View File

@@ -2477,6 +2477,7 @@ decode_objc (struct linespec_state *self, linespec_p ls, char **argptr)
memcpy (saved_arg, *argptr, new_argptr - *argptr);
saved_arg[new_argptr - *argptr] = '\0';
ls->function_name = xstrdup (saved_arg);
ls->function_symbols = info.result.symbols;
ls->minimal_symbols = info.result.minimal_symbols;
values = convert_linespec_to_sals (self, ls);