Re: [lldb-dev] Breakpoint matching with -n seems to have gotten too generous

2019-09-03 Thread Greg Clayton via lldb-dev
Yikes. This is how it is coded currently as we do a search by removing any decl context and then making sure all resulting strings match by starting with "A::AMethod", strip off the basename so we get "AMethod", search for all matches, and then we currently make sure the result contains "A::AMet

Re: [lldb-dev] Breakpoint matching with -n seems to have gotten too generous

2019-08-30 Thread Ted Woodward via lldb-dev
I agree - I wouldn't expect class AA to be a match for "A::". > -Original Message- > From: lldb-dev On Behalf Of Pavel Labath > via lldb-dev > Sent: Friday, August 30, 2019 1:28 AM > To: Jim Ingham ; LLDB > Subject: [EXT] Re: [lldb-dev] Breakpoi

Re: [lldb-dev] Breakpoint matching with -n seems to have gotten too generous

2019-08-29 Thread Pavel Labath via lldb-dev
On 30/08/2019 02:33, Jim Ingham via lldb-dev wrote: If I have a program like: class A { public: int AMethod() { return 100; } }; class AA { public: int AMethod() { return 200; } }; int main() { A myA; AA myAA; myA.AMethod(); myAA.AMethod(); return 0; } Build and run it un

[lldb-dev] Breakpoint matching with -n seems to have gotten too generous

2019-08-29 Thread Jim Ingham via lldb-dev
If I have a program like: class A { public: int AMethod() { return 100; } }; class AA { public: int AMethod() { return 200; } }; int main() { A myA; AA myAA; myA.AMethod(); myAA.AMethod(); return 0; } Build and run it under lldb, and do: (lldb) b s -n A::AMethod Breakpoint 1: 2 l