* linespec.c (decode_objc): Record the function name
authorKeith Seitz <keiths@redhat.com>
Mon, 23 Jul 2012 20:31:34 +0000 (20:31 +0000)
committerKeith Seitz <keiths@redhat.com>
Mon, 23 Jul 2012 20:31:34 +0000 (20:31 +0000)
in the linespec.

gdb/ChangeLog
gdb/linespec.c

index bce298b..3449cc6 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-23  Keith Seitz  <keiths@redhat.com>
+
+       * linespec.c (decode_objc): Record the function name
+       in the linespec.
+
 2012-07-23  Tom Tromey  <tromey@redhat.com>
 
        * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
index 849d69c..9bc2dbe 100644 (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);