This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Submit process record and replay third time, 4/9
- From: teawater <teawater at gmail dot com>
- To: Pedro Alves <pedro at codesourcery dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Sun, 8 Feb 2009 21:06:40 +0800
- Subject: Re: [RFA] Submit process record and replay third time, 4/9
- References: <daef60380901072147s192c72d3j34d782f3fc3d8ff2@mail.gmail.com>
This patch doesn't need.
Hui
On Thu, Jan 8, 2009 at 13:47, teawater <teawater@gmail.com> wrote:
> The process record and replay target has six function pointers
> record_beneath_to_resume, record_beneath_to_wait,
> record_beneath_to_prepare_to_store, record_beneath_to_xfer_partial,
> record_beneath_to_insert_breakpoint and
> record_beneath_to_remove_breakpoint.
> This patch add code to function "update_current_target" make these
> pointers always point to the function of lower strata target than
> process record and replay target.
>
> When GDB in record mode, we need to call the really debug function in
> low strata target because process record and replay target need call
> this function to control the inferior.
>
> Struct target_ops already has a pointer "beneath" point to low strata
> target, but process record and replay target doesn't use it. Because
> if low strata target doesn't set some function pointers, process
> record and replay target will need to call the function pointers of
> the target that is low strata target of this target. If this target
> doesn't set them too, it will need to call anothers. So use "beneath"
> is not a good choice and "multi-thread" target that need function
> pointers of low strata target doesn't use "beneath" too.
>
> 2009-01-08 Hui Zhu <teawater@gmail.com>
>
> * target.c (update_current_target): Set function points
> record_beneath_to_resume,
> record_beneath_to_wait,
> record_beneath_to_prepare_to_store,
> record_beneath_to_xfer_partial,
> record_beneath_to_insert_breakpoint
> and record_beneath_to_remove_breakpoint point to the function
> of target that lower than process record and replay target.
>