This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug exp/12281] Incorrect interpretation of returned point in 64 bit platform
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 27 Nov 2017 11:48:15 +0000
- Subject: [Bug exp/12281] Incorrect interpretation of returned point in 64 bit platform
- Auto-submitted: auto-generated
- References: <bug-12281-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=12281
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |palves at redhat dot com
Resolution|--- |FIXED
Target Milestone|--- |8.1
--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
The problem is that without debug info (-g), GDB can't know the return type
of the function, And then, in all released versions, if GDB doesn't know the
type of the function, it assumes "int ()".
This assumption was recently removed in GDB master (soon-to-be gdb 8.1),
exactly because it's very confusing:
https://sourceware.org/ml/gdb-patches/2017-07/msg00137.html
specifically:
https://sourceware.org/ml/gdb-patches/2017-07/msg00150.html
--
You are receiving this mail because:
You are on the CC list for the bug.