From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 952 invoked by alias); 17 Oct 2014 15:42:45 -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 942 invoked by uid 89); 17 Oct 2014 15:42:45 -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-ig0-f182.google.com Received: from mail-ig0-f182.google.com (HELO mail-ig0-f182.google.com) (209.85.213.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 17 Oct 2014 15:42:44 +0000 Received: by mail-ig0-f182.google.com with SMTP id hn15so1101255igb.3 for ; Fri, 17 Oct 2014 08:42:42 -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:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=LppHK0ZDksad2xsBLUnaDa0cT7Kf+ZuVtS3qrygtWrw=; b=B7kQYH/38WquWCTfFCllPwtNoGKaEisIcrObmYViRcPsgETDG3igcTpEnWdp/4gx9B K79e5cb+3kFNl/c+RCZD0de6Lz8WKJPW6584NfkOx2AoicJHJGc+YyyVWurgbwHJEjB9 jS6jqcHfD54X9rzQ11liflFKsCdh2tioMSkECKh1CZPmiOKTjI74CerTrwPMEbDmIcXR h7GkWOOWS5MGASHcuvRPu4AhFqPQl0Ecze/Ccr31V2ofiW5/1jIGIsDJlQ3HTv5g7NfJ o/XqtRrIBcQSZ2JW4VQGJLkF7UEdwffHubySAAz75OvhIgeS8KGi1Ko4QlvC9X/TZGvS 5d8g== X-Gm-Message-State: ALoCoQmQ8sV14v5zZbEX1BIW8Sg5pF1r1XpIyOyKuLqm4MZbvsUNPHJiefjH25zg9slNmpReXXDN MIME-Version: 1.0 X-Received: by 10.50.128.170 with SMTP id np10mr13121788igb.42.1413560561970; Fri, 17 Oct 2014 08:42:41 -0700 (PDT) Received: by 10.107.156.75 with HTTP; Fri, 17 Oct 2014 08:42:41 -0700 (PDT) Date: Fri, 17 Oct 2014 15:42:00 -0000 Message-ID: Subject: 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/msg00073.txt.bz2 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 that "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 compi= ler (user-specified), loads it as a shared object, and finally replaces the com= mands of the breakpoints by calls to the compiled breakpoint-functions. Any comment/suggestion? Would this be accepted within gdb? Thanks, Daniel. --=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