From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14896 invoked by alias); 2 Jan 2013 17:27:55 -0000 Received: (qmail 14830 invoked by uid 22791); 2 Jan 2013 17:27:53 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Jan 2013 17:27:46 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r02HR8HC027877 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Jan 2013 12:27:08 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r02HR6nv011816 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 2 Jan 2013 12:27:07 -0500 From: Tom Tromey To: Hui Zhu Cc: Marc =?utf-8?Q?Br=C3=BCnink?= , gdb@sourceware.org Subject: Re: Tracepoints (and python) References: <464A745A-AA80-4485-820E-64C4D01A270C@nus.edu.sg> <87k3scn69b.fsf@fleche.redhat.com> Date: Wed, 02 Jan 2013 17:27:00 -0000 In-Reply-To: (Hui Zhu's message of "Fri, 21 Dec 2012 16:54:47 +0800") Message-ID: <87obh75wd1.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-01/txt/msg00000.txt.bz2 >>>>> "Hui" == Hui Zhu writes: Hui> I have 3 issues with it: Hui> 1. Not sure about upstream, but when I use it, it is hard to setup Hui> tracepoint action with python. How I handle it is write tracepoint Hui> and action to a GDB source file and call soure command in python Hui> script. Yeah, I think you would be better off writing a new Python API to make tracepoints directly. Tom