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] |
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. 2008-11-06 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. target.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+)
Attachment:
target_record_beneath.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |