This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug exp/9309] Calling inferior functions returns wrong type onamd64


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.


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