public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/13356] New: Be less strict about C++ overloading when calling functions from the inferior
@ 2011-10-28 13:46 rguenth at gcc dot gnu.org
  2011-10-28 15:34 ` [Bug gdb/13356] " pedro at codesourcery dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-28 13:46 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-04-25 18:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-28 13:46 [Bug gdb/13356] New: Be less strict about C++ overloading when calling functions from the inferior rguenth at gcc dot gnu.org
2011-10-28 15:34 ` [Bug gdb/13356] " pedro at codesourcery dot com
2011-10-28 15:37 ` pedro at codesourcery dot com
2011-11-02  8:35 ` rguenth at gcc dot gnu.org
2012-08-15 11:58 ` rguenther at suse dot de
2012-08-17 17:37 ` cvs-commit at gcc dot gnu.org
2012-08-17 17:40 ` keiths at redhat dot com
2013-04-25 18:36 ` keiths at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).