public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "kevinb at redhat dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/31563] Problems with accessing errno Date: Fri, 10 May 2024 20:10:53 +0000 [thread overview] Message-ID: <bug-31563-4717-i2cNWYjJk4@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-31563-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=31563 Kevin Buettner <kevinb at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #4 from Kevin Buettner <kevinb at redhat dot com> --- Regarding the type of __errno_location... When I run the test, compiled with -g3, on a machine without installed glibc debuginfo and also with debuginfod disabled, I see: (gdb) p errno '__errno_location' has unknown return type; cast the call to its declared return type But, when I look at the DWARF for the binary, I see: <1><32>: Abbrev Number: 2 (DW_TAG_subprogram) <33> DW_AT_external : 1 <33> DW_AT_name : (indirect string, offset: 0x1f7e): __errno_location <37> DW_AT_decl_file : 2 <38> DW_AT_decl_line : 37 <39> DW_AT_decl_column : 13 <3a> DW_AT_prototyped : 1 <3a> DW_AT_type : <0x3e> <3e> DW_AT_declaration : 1 <1><3e>: Abbrev Number: 3 (DW_TAG_pointer_type) <3f> DW_AT_byte_size : 8 <40> DW_AT_type : <0x44> <1><44>: Abbrev Number: 4 (DW_TAG_base_type) <45> DW_AT_byte_size : 4 <46> DW_AT_encoding : 5 (signed) <47> DW_AT_name : int So gdb could know the type if it didn't ignore it. (It is ignored in read_func_scope in gdb/dwarf2/read.c due to not having low and high pc attributes.) -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2024-05-10 20:10 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-27 2:10 [Bug gdb/31563] New: " kevinb at redhat dot com 2024-03-27 2:10 ` [Bug gdb/31563] " kevinb at redhat dot com 2024-05-10 7:00 ` vries at gcc dot gnu.org 2024-05-10 10:56 ` pedro at palves dot net 2024-05-10 20:10 ` kevinb at redhat dot com [this message] 2024-05-13 15:05 ` pedro at palves dot net 2024-05-14 3:00 ` kevinb at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-31563-4717-i2cNWYjJk4@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).