This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [PATCH 1/4] 'catch syscall' feature -- Architecture-independent part


On Thu, Oct 02, 2008 at 11:06:29PM -0700, Joel Brobecker wrote:
> That's correct. The short answer is that, if we make your catchpoint
> use a more generic type and base the actual implementation of
> breakpoint_ops methods, then, later on, when someone decides to
> implement a new kind of catchpoint with similar functionality,
> then all he should have to do is create a new breakpoint_ops vector
> with appropriate methods, and voila.

Right.  This is what's supposed to be possible, at least.

The way I would suggest to do this is to create a new bp_catchpoint.
We can either leave existing OS catchpoints alone, or else convert
some of them (fork/vfork for example) to the new mechanism as proof
that it works.

-- 
Daniel Jacobowitz
CodeSourcery


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