This is the mail archive of the gdb-prs@sources.redhat.com 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]

c++/911: calling user-defined operators in gdb


>Number:         911
>Category:       c++
>Synopsis:       calling user-defined operators in gdb
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 08 08:58:03 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     kraftche@cae.wisc.edu
>Release:        5.3
>Organization:
>Environment:

>Description:
Would like to be able to call user-defined operators in gdb when debugging c++ code.  I understand that it isn't feasible to implicitly call user-defined operators when the operators are used in a statement.  However, it would be nice if gdb could understand an explicit call to the operator.  For example:

(gdb) print my_class_ref.operator==(my_other_class_ref)

>How-To-Repeat:
(gdb) print my_class_ref.operator==(my_other_class_ref)
There is no member or method named operator.

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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