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/12281] Incorrect interpretation of returned point in 64 bit platform


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.

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