From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25543 invoked by alias); 13 Oct 2012 03:22:00 -0000 Received: (qmail 25524 invoked by uid 48); 13 Oct 2012 03:22:00 -0000 From: "ppluzhnikov at google dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/13987] jit debug interface fails attaching to pie executables Date: Sat, 13 Oct 2012 03:22: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-q4/txt/msg00057.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13987 --- Comment #4 from Paul Pluzhnikov 2012-10-13 03:21:57 UTC --- Just hit this while debugging native process from the start: cat t.c void __jit_debug_register_code() { } int __jit_debug_descriptor[] = { 1, 0, 0, 0, }; int main() { return 0; } gcc -g -fPIE -pie t.c gdb GNU gdb (GDB) 7.5.50.20121013-cvs ... (gdb) set debug jit 1 (gdb) file ./a.out Reading symbols from /tmp/a.out...done. jit_inferior_init jit_read_descriptor, descriptor_addr = 0x201020 jit_breakpoint_re_set_internal, breakpoint_addr = 0x72c (gdb) run Starting program: /tmp/a.out Warning: Cannot insert breakpoint -1. Error accessing memory address 0x72c: Input/output error. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.