From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98480 invoked by alias); 5 Sep 2015 17:55:17 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 98456 invoked by uid 48); 5 Sep 2015 17:55:17 -0000 From: "ppluzhnikov at google dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: ppluzhnikov at google dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q3/txt/msg00249.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15121 Paul Pluzhnikov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at sourceware dot org |ppluzhnikov at google dot com --- Comment #1 from Paul Pluzhnikov --- 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.