This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
c++/911: calling user-defined operators in gdb
- From: kraftche at cae dot wisc dot edu
- To: gdb-gnats at sources dot redhat dot com
- Date: 8 Jan 2003 16:53:51 -0000
- Subject: c++/911: calling user-defined operators in gdb
- Reply-to: kraftche at cae dot wisc dot edu
>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: