From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10522 invoked by alias); 2 Dec 2014 10:46:28 -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 10511 invoked by uid 89); 2 Dec 2014 10:46:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f42.google.com Received: from mail-la0-f42.google.com (HELO mail-la0-f42.google.com) (209.85.215.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 02 Dec 2014 10:46:26 +0000 Received: by mail-la0-f42.google.com with SMTP id s18so10591168lam.1 for ; Tue, 02 Dec 2014 02:46:23 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.112.205.65 with SMTP id le1mr46580959lbc.54.1417517183088; Tue, 02 Dec 2014 02:46:23 -0800 (PST) Received: by 10.112.43.176 with HTTP; Tue, 2 Dec 2014 02:46:23 -0800 (PST) Date: Tue, 02 Dec 2014 10:46:00 -0000 Message-ID: Subject: Custom catchpoints with Python API From: Armando Miraglia To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00002.txt.bz2 Hi everybody. this is my first intervention here on the mainling list, so I hope I will be asking the right question in the right place :) First of all, thanks a lot for the great job done with GDB. As the subject suggests, my question relates the Python API of GDB. I am writing a GDB Python extension for a University project and so far I managed to do a lot. However, I am having difficulties finding a way to create custom Catchpoints similarly to what I have been doing with Breakpoints. I see that extending gdb.Breakpoints I can create custom breakpoints and watchpoints but I have not managed to find a way to instantiate a class for a catchpoint that invokes my own code. Is this even possible right now? Thanks a lot!