Skip to content
Snippets Groups Projects
Commit 67eb68d2 authored by Jim Ingham's avatar Jim Ingham
Browse files

For the purposes of setting breakpoints treat methods defined in the class and...

For the purposes of setting breakpoints treat methods defined in the class and methods defined in a category on the class as the same.

llvm-svn: 131331
parent df9db7ed
No related branches found
No related tags found
No related merge requests found
......@@ -809,6 +809,24 @@ DWARFCompileUnit::Index
// accelerator tables
size_t method_name_len = name_len - (method_name - name) - 1;
func_selectors.Insert (ConstString (method_name, method_name_len), die_info);
// Also see if this is a "category" on our class. If so strip off the category name,
// and add the class name without it to the basename table.
const char *first_paren = strnstr (name, "(", method_name - name);
if (first_paren)
{
const char *second_paren = strnstr (first_paren, ")", method_name - first_paren);
if (second_paren)
{
std::string buffer (name, first_paren - name);
buffer.append (second_paren + 1);
ConstString uncategoried_name (buffer.c_str());
func_basenames.Insert (uncategoried_name, die_info);
func_fullnames.Insert (uncategoried_name, die_info);
}
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment