From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6746 invoked by alias); 30 Apr 2012 19:20:37 -0000 Received: (qmail 6723 invoked by uid 22791); 30 Apr 2012 19:20:34 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-qa0-f51.google.com (HELO mail-qa0-f51.google.com) (209.85.216.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Apr 2012 19:20:21 +0000 Received: by qaea16 with SMTP id a16so1879493qae.3 for ; Mon, 30 Apr 2012 12:20:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record:x-gm-message-state; bh=90mNHKluoopwG83OGAGgpHhZKrIB7uOYva2xl0I6mWM=; b=cFWdaVBuvXhy/8XsHXH+xkQEgxhqUNuf2zjpurGDZHXwS7JSY3cth1rmX9yCamUYQD ZFsEXh/pNmn2jFQDdeb/mZJcWM6itRWJ+Dn8IRl4MVBKc1mlNm02qR4VfdTDRpU9xkBC F+NHjxjI0gVFOEEtScDqmyNVFAGaLdRZO+u0Ba8gkvXz3KDPINPRrOhcFuvKb8ouLAVu L1PsowQnKdZu7NHT21hJkOBO+q2w2AZUMIgKGQw74I1I1q25nFJOq3vUf7kqYDagUl4b SxgG0sh/nT30xerb/uH43dXpI4Z2+H1VFtI1azcf0M6HTaxasUCMXGTYzNE/8OQo38FB slvw== Received: by 10.229.106.34 with SMTP id v34mr5637024qco.57.1335813621084; Mon, 30 Apr 2012 12:20:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.106.34 with SMTP id v34mr5637019qco.57.1335813620984; Mon, 30 Apr 2012 12:20:20 -0700 (PDT) Received: by 10.224.215.132 with HTTP; Mon, 30 Apr 2012 12:20:20 -0700 (PDT) In-Reply-To: <878vhh5gk8.fsf@fleche.redhat.com> References: <878vhh5gk8.fsf@fleche.redhat.com> Date: Mon, 30 Apr 2012 20:01:00 -0000 Message-ID: Subject: Re: [RFC] Extend gdb.Breakpoint to allow setting a breakpoint at the current execution address From: Siva Chandra To: Tom Tromey Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-Gm-Message-State: ALoCoQmyfJW3Sda9t1bLIJYJk1lN3rYRk0UC4a/Hca7EpHn/JDGEbVc7glbSX6Lv2e82c5bI5q8sUh6nvR3ib1Dp5S55PRS5QQXP5SDdpVN3cfmazZzzdlI4PElDO/sDIa8TEQW7/WWW8Qgib0FdWoPME2C3pBWubw== X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-04/txt/msg01089.txt.bz2 Siva> I didn't find a way to set a breakpoint at the current execution Siva> address through the existing Python API. Tom> I think you can use '*$pc' as the linespec. Tom> Or you can get the value of the PC (any way you want) and use ('*%d' % pc). Since gdb.Frame.pc works for me, I can drop this patch unless you feel it adds a "good-to-have". Thanks, Siva Chandra