From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8324 invoked by alias); 11 Apr 2011 03:21:21 -0000 Received: (qmail 8315 invoked by uid 22791); 11 Apr 2011 03:21:20 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Apr 2011 03:21:14 +0000 Received: (qmail 18337 invoked from network); 11 Apr 2011 03:21:12 -0000 Received: from unknown (HELO ?192.168.0.102?) (yao@127.0.0.2) by mail.codesourcery.com with ESMTPA; 11 Apr 2011 03:21:12 -0000 Message-ID: <4DA2739F.1080400@codesourcery.com> Date: Mon, 11 Apr 2011 03:21:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: Tom Tromey CC: Sergio Durigan Junior , gdb-patches@sourceware.org Subject: Re: [PATCH 4/6] Implement support for SystemTap probes References: <4D9D243A.3090505@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 2011-04/txt/msg00145.txt.bz2 On 04/08/2011 01:04 AM, Tom Tromey wrote: >>>>>> "Yao" == Yao Qi writes: > >>> + pc_probe = find_probe_by_pc (pc, &objfile); > > Yao> I don't understand this part. We are looking for probe by matching > Yao> frame's PC here, but address of stap_probe is the address where the > Yao> probe is inserted. So, probably, we can't find any probe here, is that > Yao> correct? > > I believe that the frame PC here actually is the location of the probe. > Is there a situation where this would not be the case? > No. I misunderstood it. Thanks for your explanation. -- Yao (齐尧)