From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12574 invoked by alias); 31 Jul 2009 19:46:03 -0000 Received: (qmail 12553 invoked by uid 22791); 31 Jul 2009 19:46:01 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 31 Jul 2009 19:45:52 +0000 Received: from zps77.corp.google.com (zps77.corp.google.com [172.25.146.77]) by smtp-out.google.com with ESMTP id n6VJjmnY025228 for ; Fri, 31 Jul 2009 20:45:49 +0100 Received: from qyk16 (qyk16.prod.google.com [10.241.83.144]) by zps77.corp.google.com with ESMTP id n6VJjkM3003532 for ; Fri, 31 Jul 2009 12:45:46 -0700 Received: by qyk16 with SMTP id 16so3445868qyk.27 for ; Fri, 31 Jul 2009 12:45:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.82.10 with SMTP id z10mr531042qck.83.1249069545990; Fri, 31 Jul 2009 12:45:45 -0700 (PDT) In-Reply-To: <200907311201.28986.thiago.bauermann@gmail.com> References: <9a9942200907221615o570e749fh5cb186c1600f159c@mail.gmail.com> <200907301501.17812.thiago.bauermann@gmail.com> <200907311201.28986.thiago.bauermann@gmail.com> Date: Fri, 31 Jul 2009 20:55:00 -0000 Message-ID: <8ac60eac0907311245p39481427y4071e5eeef655c89@mail.gmail.com> Subject: Re: [RFA] Add interface for registering JITed code From: Paul Pluzhnikov To: Thiago Jung Bauermann Cc: gdb-patches@sourceware.org, Tom Tromey , Reid Kleckner , unladen-swallow@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true X-IsSubscribed: yes 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: 2009-07/txt/msg00768.txt.bz2 On Fri, Jul 31, 2009 at 8:01 AM, Thiago Jung Bauermann wrote: >> If/when someone wants to add another scripting language to GDB, we will be >> bitten by this issue. I can see that happening already. :-) > > I still think this will happen soon enough ... If I understand correctly what you mean, you aren't worried about adding a new scripting language to GDB (as in, embed 'Tcl' in addition to 'Python' into GDB), but rather about debugging inferior with two (or more) separate JITters in it. If I understand the patch, proposed GDB/JIT interface allows this: there could be several (local) "__jit_debug_register_code" symbols in a statically-linked executable, and several (possibly global) "__jit_debug_register_code" symbols if JITters are in separate shared libs. When this situation arises, GDB could be fixed to set a breakpoint on all such symbols, and read data from all "__jit_debug_descriptor" symbols. Once that's done, debugging inferior with multiple JITters will "Just Work(TM)". What did I miss? Thanks, -- Paul Pluzhnikov