From: Keith Seitz <keiths@redhat.com>
To: "gp >> \"gdb-patches@sourceware.org ml\"" <gdb-patches@sourceware.org>
Subject: [RFA] Record function name in decode_objc
Date: Mon, 23 Jul 2012 18:38:00 -0000 [thread overview]
Message-ID: <500D9A24.7030409@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 319 bytes --]
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.
[-- Attachment #2: decode_objc-save-function-name.patch --]
[-- Type: text/x-patch, Size: 652 bytes --]
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);
next reply other threads:[~2012-07-23 18:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-23 18:38 Keith Seitz [this message]
2012-07-23 18:57 ` Tom Tromey
2012-07-23 20:32 ` Keith Seitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=500D9A24.7030409@redhat.com \
--to=keiths@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox