From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25113 invoked by alias); 14 Mar 2013 04:19:18 -0000 Received: (qmail 25100 invoked by uid 22791); 14 Mar 2013 04:19:15 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Mar 2013 04:19:09 +0000 Received: by mail-wg0-f43.google.com with SMTP id e12so1273052wge.34 for ; Wed, 13 Mar 2013 21:19:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=B0SzYq9wvVDF7VlBmIzgSAzEZiDo+YR9gw6doYDejyw=; b=ILaVAU6UagGVsu49BHk8jlYD1uQnjWFXzH3QLu52em73TkMfyiOD2RkhlF0HrHDzuZ 7nr3B8yiAi2Dp0D9STVdlDJmVPFqYPpzcqr1Y3CeBjh5hMrxa9FtACdHzQWUDMdS9VT/ lkoUEZHRG0OHzlq4uHmvYSt0eCSeZnaJx9d6OpQOberGGfdXaj7fy+5wWqGAHCCehO1J t0vkeZputLLXcLl7Kzczcxbo6QPYq4z1g3RtxzhFGo3b9cGic+jOiRrc49r5ia5nDNQy s4l4a/IgALwFvxzn8jlVxULi0Tc8gmkQBmHOVUNZUtEMy+nraG6EYneN+30TFmKYKLXL 3aQg== X-Received: by 10.194.92.231 with SMTP id cp7mr1264807wjb.19.1363234745535; Wed, 13 Mar 2013 21:19:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.242.199 with HTTP; Wed, 13 Mar 2013 21:18:45 -0700 (PDT) From: Gareth McMullin Date: Thu, 14 Mar 2013 04:19:00 -0000 Message-ID: Subject: Exposing inferior_created in Python To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnne4YCmdFdiw74UQVckxjXzXMpq3kGDFUWiXoX+TDKAVOYYCjHb7LY8nmYolDwkg/q9W8Z X-IsSubscribed: yes 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 X-SW-Source: 2013-03/txt/msg00012.txt.bz2 Hi I'm interested in having the inferior_created observer exposed as a Python event. The application I intend to work on is trace port capture on ARM Cortex microcontrollers using a Python GDB extension. I have this at a proof-of-concept level[1], but a problem that I have is that the trace port registers in the target are reset with the target on say a GDB 'run' command. It would be convenient if a Python event was available on which I can configure the appropriate registers. I'm happy to do the work to make this happen, but I'm interested if this change would be considered for inclusion. I am happy to sign the copyright assignment to the FSF. Cheers, Gareth [1] https://github.com/gsmcmullin/magictpa -- Black Sphere Technologies Ltd. Web: www.blacksphere.co.nz Mobile: +64 27 777 2182 Tel: +64 9 478 8885 Skype: gareth.mcmullin LinkedIn: http://nz.linkedin.com/in/gsmcmullin