This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug exp/9309] Calling inferior functions returns wrong type onamd64
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 06 Feb 2012 15:33:44 +0000
- Subject: [Bug exp/9309] Calling inferior functions returns wrong type onamd64
- Auto-submitted: auto-generated
- References: <bug-9309-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=9309
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |tromey at redhat dot com
Resolution| |FIXED
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-02-06 15:33:44 UTC ---
gdb probably isn't seeing debuginfo for malloc, and so
is assuming it returns an int.
You can try casting malloc to a pointer-to-function of the correct type.
I'm closing this on account of its age and the theory that it isn't
really a gdb bug; please reopen if this is still an issue.
--
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.