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 gdb/19487] Result of call to __errno_location() is truncated to 32 bit on amd64


https://sourceware.org/bugzilla/show_bug.cgi?id=19487

--- Comment #3 from Ruslan <b7.10110111 at gmail dot com> ---
(In reply to Pedro Alves from comment #2)
> What does:
> 
>  (gdb) ptype __errno_location 
> 
> say?  I think you'll get this if you don't have debug info for
> __errno_location, and then gdb assumes the function return "int" (not "int
> *").

It says `type = int ()`, both with debug info ("gcc -g") and without.

-- 
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]