This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 4/6] Implement support for SystemTap probes
- From: Tom Tromey <tromey at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: Sergio Durigan Junior <sergiodj at redhat dot com>, gdb-patches at sourceware dot org
- Date: Thu, 07 Apr 2011 11:04:36 -0600
- Subject: Re: [PATCH 4/6] Implement support for SystemTap probes
- References: <m3k4fapvb8.fsf@redhat.com> <4D9D243A.3090505@codesourcery.com>
>>>>> "Yao" == Yao Qi <yao@codesourcery.com> 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?
stap-probe.exp specifically checks this code, by evaluating probe
arguments at a probe point.
Tom