Re: [RFC] Debug Methods in GDB Python

Siva Chandra
2013-11-20T00:03:29Z

I am working the new patch sets that would address most of your
comments. For one or two, I will probably ask more questions when I
post the patches. But I want to respond to one comment now.

On Tue, Nov 19, 2013 at 3:41 PM, Doug Evans <dje@google.com> wrote:
> For matching on the method, I would just use a string comparison.
> Again, this is for the simple version. IIUC the API allows for more
> complex mechanisms, but for the start I'd say start small with
> something simple.
> [I can imagine an issue arising with operators, e.g., "operator ()" vs
> "operator()" or some such. Is handling that with a regexp the best
> way to go? Dunno.]

For things "operator ()" vs "operator()", I think GDB handles that
before looking up the method. But otherwise, a simple name match can
have problems with template methods as the template argument could be
anything. I am working on setting up tests which illustrate debug
methods for template classes with template methods.