This is the mail archive of the mailing list for the frysk project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Frysk minutes 20060905

On Sep  6, 2006, Andrew Cagney <> wrote:

> Wu Zhou wrote:
>>> libunwind: please test Alex patches. Andrew: to review. We can start
>>> plug it into the sourcewindow, in the space reserved for it already.
>>> The patches from Alex are not checked in yet. Please review and check
>>> in asap.
>> We had a test.  TestStackBacktrace works ok with this patch applied.
>> But we have a concern that frysk-sys are using some synchronization
>> mechanism to handle ptrace requests.  This patch use ptrace
>> directly.  Is it possible some synchroinization problem might be
>> introduced in?
> Wu, good catch.  Yes, the backtrace code cannot call ptrace directory;
> it will not work.  All ptrace calls must be routed through the ptrace
> thread that Mike added.

Just for the record (I hadn't read this before, and I'm not sure I've
already clarified it), nothing in the backtrace code calls ptrace
directly.  We're only using part of the libunwind-ptrace interface,
and that's the part that interfaces with files et al.  All of the
callbacks that actually issue ptrace calls are implemented entirely in
frysk, so even when the libunwind-ptrace callbacks need to read
registers or memory from remote processes, they go through frysk's
callbacks to do so, getting correct synchronization.

Alexandre Oliva
Secretary for FSF Latin America
Red Hat Compiler Engineer   aoliva@{,}
Free Software Evangelist  oliva@{,}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]