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
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
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
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