From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28373 invoked by alias); 17 Oct 2014 16:12:23 -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 28363 invoked by uid 89); 17 Oct 2014 16:12:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mail-ie0-f178.google.com Received: from mail-ie0-f178.google.com (HELO mail-ie0-f178.google.com) (209.85.223.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 17 Oct 2014 16:12:21 +0000 Received: by mail-ie0-f178.google.com with SMTP id rl12so1057663iec.9 for ; Fri, 17 Oct 2014 09:12:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=WMWJsnuehPWjurR0xHloBslwCcjPeCUPL9I9MnNWeNY=; b=dqd8vCeq006Rk6jUC4rRJZqj2buGoymoZSMvNXwzt2QFabalMfe7SjMp7brqnEU1+w j9swAbG1qVF/cAnAjgVXD9b1xbkTKCJ/rbqIfn3oUjLyNRcTcagtdMxPOih/sfrwQYsz hMR8tpiQLMSjiPoyVtOd62fUvVNVRMb+3xKcNIBCcecu08z1epF6f6h/26jFs0H8jyst R57Lbxl4aTwUuAA4etZzBVPfOFuG8vPut6D3Ztui6BhrxEvyt6/6ZP+UT8uXlS8GORFl 1jGjJlIh9XAgqHnhEcbjacUGefKQcgzMciBe8/6UZFvRXfxs7ZUWlJI3YhNXGF6Q/e5g FiiA== X-Gm-Message-State: ALoCoQk27m/nbG6z4LJWWdBQn84xrh3umFvuCusSNdGIZ+OGoVajTqOSA+pYkLUIUcPCRPqUdocY MIME-Version: 1.0 X-Received: by 10.50.134.8 with SMTP id pg8mr29920949igb.1.1413562339628; Fri, 17 Oct 2014 09:12:19 -0700 (PDT) Received: by 10.107.156.75 with HTTP; Fri, 17 Oct 2014 09:12:19 -0700 (PDT) In-Reply-To: References: Date: Fri, 17 Oct 2014 16:12:00 -0000 Message-ID: Subject: Re: Breakpoint commands compiler From: Daniel Gutson To: gdb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-10/txt/msg00074.txt.bz2 On Fri, Oct 17, 2014 at 12:42 PM, Daniel Gutson wrote: > Hi, > > gdb is sometimes used for changing the runtime behavior of a program. > That is, suppose there is a program that has a bug, > it is spotted with gdb, then I create a set of non-stopping breakpoints t= hat > "fix" the runtime behavior by altering memory and registers. > It does work, but it's slow. > > I was thinking to start a project to add a "breakpoint commands compiler" > to gdb, which basically generates C code from the breakpoint commands > (one function per breakpoint), > which in turns calls a C API (similar to the python api), invokes the com= piler (Note: I just saw the C API discussion in this list. Funny). > (user-specified), loads it as a shared object, and finally replaces the c= ommands > of the breakpoints by calls to the compiled breakpoint-functions. > > Any comment/suggestion? Would this be accepted within gdb? > > Thanks, > > Daniel. > > -- > > Daniel F. Gutson > Chief Engineering Officer, SPD > > > San Lorenzo 47, 3rd Floor, Office 5 > > C=C3=B3rdoba, Argentina > > > Phone: +54 351 4217888 / +54 351 4218211 > > Skype: dgutson --=20 Daniel F. Gutson Chief Engineering Officer, SPD San Lorenzo 47, 3rd Floor, Office 5 C=C3=B3rdoba, Argentina Phone: +54 351 4217888 / +54 351 4218211 Skype: dgutson