From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27212 invoked by alias); 18 Mar 2010 20:32:06 -0000 Received: (qmail 27134 invoked by uid 22791); 18 Mar 2010 20:32:05 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-pz0-f192.google.com (HELO mail-pz0-f192.google.com) (209.85.222.192) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 20:31:59 +0000 Received: by pzk30 with SMTP id 30so1780820pzk.12 for ; Thu, 18 Mar 2010 13:31:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.50.13 with SMTP id x13mr2163615wax.200.1268944317371; Thu, 18 Mar 2010 13:31:57 -0700 (PDT) From: Reid Kleckner Date: Thu, 18 Mar 2010 20:32:00 -0000 Message-ID: <9a9942201003181331yf721b45j981831cfd4b07459@mail.gmail.com> Subject: [RFA] Fix bug with the JIT interface and shared libraries To: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00695.txt.bz2 I uploaded the patch here and am pasting it inline below, since that seems to the preferred review method here: http://sourceware.org/bugzilla/show_bug.cgi?id=11094 If it looks good, would someone please apply it for me? Thanks! Reid 2010-02-20 Reid Kleckner PR gdb/11094 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add bp_jit_event Index: gdb/breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.455 diff -c -3 -r1.455 breakpoint.c *** gdb/breakpoint.c 12 Feb 2010 01:24:09 -0000 1.455 --- gdb/breakpoint.c 20 Feb 2010 21:27:09 -0000 *************** *** 5168,5173 **** --- 5168,5174 ---- all breakpoints. If we don't set shlib_disabled here, we'll try to insert those breakpoints and fail. */ if (((b->type == bp_breakpoint) + || (b->type == bp_jit_event) || (b->type == bp_hardware_breakpoint) || (tracepoint_type (b))) && loc->pspace == current_program_space *************** *** 5208,5214 **** || loc->loc_type == bp_loc_software_breakpoint) && solib->pspace == loc->pspace && !loc->shlib_disabled ! && (b->type == bp_breakpoint || b->type == bp_hardware_breakpoint) && solib_contains_address_p (solib, loc->address)) { loc->shlib_disabled = 1; --- 5209,5217 ---- || loc->loc_type == bp_loc_software_breakpoint) && solib->pspace == loc->pspace && !loc->shlib_disabled ! && (b->type == bp_breakpoint ! || b->type == bp_jit_event ! || b->type == bp_hardware_breakpoint) && solib_contains_address_p (solib, loc->address)) { loc->shlib_disabled = 1;