This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/13356] New: Be less strict about C++ overloading whencalling functions from the inferior
- From: "rguenth at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 28 Oct 2011 13:45:29 +0000
- Subject: [Bug gdb/13356] New: Be less strict about C++ overloading whencalling functions from the inferior
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13356
Bug #: 13356
Summary: Be less strict about C++ overloading when calling
functions from the inferior
Product: gdb
Version: HEAD
Status: NEW
Severity: enhancement
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: rguenth@gcc.gnu.org
Classification: Unclassified
When debugging the C++ app
void foo (int *p) {}
int main() {}
gdb does not accept a constant as address
Temporary breakpoint 1, main () at t.C:2
2 int main() {}
(gdb) call foo(1)
Cannot resolve function foo to any overloaded instance
even though there is only a single possible overload candidate.
it's annoying to figure out and paste a cast to whatever specific
pointer type is required here when pasting an address from some
location.
gdb should be more forgiving than a C++ compiler here and do what I want.
Happens a lot to me when debugging gcc built with a C++ compiler.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.