From: Keith Seitz Date: Mon, 23 Jul 2012 20:31:34 +0000 (+0000) Subject: * linespec.c (decode_objc): Record the function name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f5f4ffe7a8025a0cfb16b9a71c8c7347280bc5e;p=binutils-gdb.git * linespec.c (decode_objc): Record the function name in the linespec. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bce298b13b4..3449cc6e04d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-07-23 Keith Seitz + + * linespec.c (decode_objc): Record the function name + in the linespec. + 2012-07-23 Tom Tromey * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference diff --git a/gdb/linespec.c b/gdb/linespec.c index 849d69c5933..9bc2dbe47d5 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -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);