From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12030 invoked by alias); 25 Jul 2009 07:27:32 -0000 Received: (qmail 12012 invoked by uid 22791); 25 Jul 2009 07:27:31 -0000 X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_00,BOTNET,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout1.012.net.il (HELO mtaout1.012.net.il) (84.95.2.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 25 Jul 2009 07:27:15 +0000 Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KNB00600TYY4800@i-mtaout1.012.net.il> for gdb-patches@sourceware.org; Sat, 25 Jul 2009 10:26:40 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.68.240]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KNB00IKXU0CJIE0@i-mtaout1.012.net.il>; Sat, 25 Jul 2009 10:26:37 +0300 (IDT) Date: Sat, 25 Jul 2009 15:29:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] Add interface for registering JITed code In-reply-to: To: Tom Tromey Cc: rnk@mit.edu, gdb-patches@sourceware.org, unladen-swallow@googlegroups.com Reply-to: Eli Zaretskii Message-id: <83eis5440j.fsf@gnu.org> References: <9a9942200907221615o570e749fh5cb186c1600f159c@mail.gmail.com> <9a9942200907240946q1546646ft6e9112f263bcefdf@mail.gmail.com> <83iqhh52un.fsf@gnu.org> 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/msg00622.txt.bz2 > Cc: Reid Kleckner , gdb-patches@sourceware.org, > unladen-swallow@googlegroups.com > From: Tom Tromey > Date: Fri, 24 Jul 2009 13:18:30 -0600 > > >>>>> "Eli" == Eli Zaretskii writes: > > Eli> Unfortunately, the NEWS entry is not instrumental enough. It doesn't > Eli> tell the user how to use the feature. Is it possible to come up with > Eli> a more useful entry? > > I think the NEWS entry is fine. The feature works automatically. Users > need do nothing. Maybe that is true, but the text as written left me wondering whether I do need to do something to get that working. +* GDB now has an interface for JIT compilation. Applications that +dynamically generate code can create object files with debug info in +memory and register them with GDB. The interface also supports +attaching to a running process. The second sentence begs 2 questions: (1) how does one write or compile or otherwise get hold of such applications, and (2) how does one register object files with GDB. Granted, a NEWS entry is not a place for long explanations (if they are long), but without any pointers to the manual or at least some Web site, I couldn't figure out how to go about adding this feature to my workflow.