From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80549 invoked by alias); 12 Dec 2018 16:09:39 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 80525 invoked by uid 89); 12 Dec 2018 16:09:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Inserting, H*UA:Application, snippet X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Dec 2018 16:09:36 +0000 Received: from horde5.polymtl.ca (horde5.polymtl.ca [132.207.4.156]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id wBCG9XF7009513 for ; Wed, 12 Dec 2018 11:09:34 -0500 Received: from dyn47.dorsal.polymtl.ca (dyn47.dorsal.polymtl.ca [132.207.72.47]) by www.imp.polymtl.ca (Horde Framework) with HTTP; Wed, 12 Dec 2018 16:09:33 +0000 Date: Wed, 12 Dec 2018 16:09:00 -0000 Message-ID: <20181212160933.Horde.zgKx70qWwfqOpGUV4Dq7x5_@www.imp.polymtl.ca> From: Paul Naert To: gdb@sourceware.org Subject: [Compile] Inserting compiled code via jumps User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00004.txt.bz2 Hi, I am a masters student and I would like to devote my research to improving GDB's GCC Compile and Execute by adding the possibility to jump directly to the compiled code without having to hit a breakpoint. The idea is to reuse the same principle that was used in fast tracepoints to insert code in a compiled program, except that instead of jumping to GDB's collector function we would execute the code compiled by GCC each time we hit the selected instruction. Given the code for compiling a snippet of C through GCC and the code for inserting fast tracepoint already exist, I think that this should be feasible. What I was wondering is : - Has someone already worked on this ? On the wiki page there are mentions to future projects that seem related (fast breakpoint conditions most notably) - Do you see any reason why that would not work that I missed, except for the limitations of the existing Compile project? Thank you, Paul NAERT