This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Debug Methods in GDB Python

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]