From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31366 invoked by alias); 20 Aug 2011 18:30:17 -0000 Received: (qmail 31357 invoked by uid 22791); 20 Aug 2011 18:30:16 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 20 Aug 2011 18:30:02 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id p7KITsVB029037; Sat, 20 Aug 2011 20:29:54 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id p7KITqt7024731; Sat, 20 Aug 2011 20:29:52 +0200 (CEST) Date: Sat, 20 Aug 2011 18:30:00 -0000 Message-Id: <201108201829.p7KITqt7024731@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: jan.kratochvil@redhat.com CC: sanjoy@playingwithpointers.com, gdb-patches@sourceware.org In-reply-to: <20110820175838.GC26447@host1.jankratochvil.net> (message from Jan Kratochvil on Sat, 20 Aug 2011 19:58:38 +0200) Subject: Re: [PATCH 5/6] New JIT unwinder. References: <1313821635-22137-1-git-send-email-sanjoy@playingwithpointers.com> <1313821635-22137-6-git-send-email-sanjoy@playingwithpointers.com> <20110820175838.GC26447@host1.jankratochvil.net> 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: 2011-08/txt/msg00402.txt.bz2 > Date: Sat, 20 Aug 2011 19:58:38 +0200 > From: Jan Kratochvil > > > + > > + inf_data = get_jit_inferior_data (); > > + > > + callbacks.reg_get = jit_unwind_reg_get_impl; > > + callbacks.reg_set = jit_unwind_reg_set_impl; > > + callbacks.target_read = jit_target_read_impl; > > Couldn't GDB just export these functions to the plugin without having to use > the callbacks vector? Python does so, libthread_db does so (see > proc-service.list). I'd say that's a bad idea. The --dynamic-list linker option isn't uniformly available, and even -rdynamic may not work everywehere.