public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "ppluzhnikov at google dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/15121] x/a broken for addresses in shared libraries Date: Sat, 05 Sep 2015 17:55:00 -0000 [thread overview] Message-ID: <bug-15121-4717-O6P3mdgzrC@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-15121-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=15121 Paul Pluzhnikov <ppluzhnikov at google dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at sourceware dot org |ppluzhnikov at google dot com --- Comment #1 from Paul Pluzhnikov <ppluzhnikov at google dot com> --- The problem only happens when a 64-bit GDB is debugging 32-bit program (which is probably why this hasn't been bothering everyone else for the last 5 years). The problem is that unpack_pointer() sign-extends the returned value from 0xf7fd65e6 to 0xfffffffff7fd65e6 here: #0 unpack_pointer (type=0xf4dea0, valaddr=0xfb0ea0 "\370\323\377\377") at ../../gdb/value.c:2931 #1 0x00000000005de455 in print_scalar_formatted (valaddr=0xfb0ea0, type=0xf4dea0, options=0x7fffffffdc00, size=119, stream=0xefd6a0) at ../../gdb/printcmd.c:445 #2 0x00000000005d9b09 in val_print_scalar_formatted (type=0xf4dea0, valaddr=0xfb0ea0 "\370\323\377\377", embedded_offset=0, val=0xf80570, options=0x7fffffffdc00, size=119, stream=0xefd6a0) at ../../gdb/valprint.c:1205 #3 0x00000000005ddf4e in print_formatted (val=0xf80570, size=119, options=0x7fffffffdc00, stream=0xefd6a0) at ../../gdb/printcmd.c:319 #4 0x00000000005df280 in do_examine (fmt=..., gdbarch=0xf49eb0, addr=4294956008) at ../../gdb/printcmd.c:907 #5 0x00000000005e0a2c in x_command (exp=0xd5f195 "", from_tty=1) at ../../gdb/printcmd.c:1467 Subsequent find_pc_section() calls on 0xfffffffff7fd65e6 fail (naturally). -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2015-09-05 17:55 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-02-08 2:12 [Bug gdb/15121] New: " ppluzhnikov at google dot com 2015-09-05 17:55 ` ppluzhnikov at google dot com [this message] 2023-05-13 23:47 ` [Bug gdb/15121] " ppluzhnikov at google 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-15121-4717-O6P3mdgzrC@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).