This is an automated email from the git hooks/post-receive script.
unknown user pushed a commit to branch aoliva/libcp1 in repository gcc.
commit ecfe0e84495f339f220943285738fdc5d654e0e8 Author: Alexandre Oliva aoliva@redhat.com Date: Thu May 21 15:40:47 2015 -0300
Work around GDB's supplying namespace and signature for now --- libcc1/libcp1plugin.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 7a4270a..f32a2f3 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -386,6 +386,18 @@ plugin_build_decl (cc1_plugin::connection *self, unsigned int line_number) { plugin_context *ctx = static_cast<plugin_context *> (self); + { // FIXME in gdb: + char *nname = (char*)strrchr (name, ':'); + if (nname) + name = nname + 1; + char *nameend = (char*)strchr (name, '('); + if (nameend) + { + *nameend = 0; + name = strdupa (name); + *nameend = '('; + } + } tree identifier = get_identifier (name); enum tree_code code; tree decl;