This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] Record function name in decode_objc
- From: Keith Seitz <keiths at redhat dot com>
- To: "gp >> \"gdb-patches at sourceware dot org ml\"" <gdb-patches at sourceware dot org>
- Date: Mon, 23 Jul 2012 11:38:28 -0700
- Subject: [RFA] Record function name in decode_objc
Hi,
decode_objc currently does not save the found function name into the
linespec_p. [It saves the found function, but not the string name for it.]
This patch fixes this omission.
Keith
ChangeLog
2012-07-23 Keith Seitz <keiths@redhat.com>
* linespec.c (decode_objc): Record the function name
in the linespec.
Index: linespec.c
===================================================================
RCS file: /cvs/src/src/gdb/linespec.c,v
retrieving revision 1.162
diff -u -p -r1.162 linespec.c
--- linespec.c 18 Jul 2012 20:38:18 -0000 1.162
+++ linespec.c 18 Jul 2012 21:04:59 -0000
@@ -2477,6 +2477,7 @@ decode_objc (struct linespec_state *self
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);