mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-26 07:19:16 +08:00
target, record: add PTID argument to to_record_is_replaying
The to_record_is_replaying target method is used to query record targets if they are replaying. This is currently interpreted as "is any thread being replayed". Add a PTID argument and change the interpretation to "is any thread matching PTID being replayed". Change all users to pass minus_one_ptid to preserve the old meaning. The record full target does not really support multi-threading and ignores the PTID argument. gdb/ * record-btrace.c (record_btrace_is_replaying): Add ptid argument. Update users to pass minus_one_ptid. * record-full.c (record_full_is_replaying): Add ptid argument (ignored). * record.c (cmd_record_delete): Pass inferior_ptid to target_record_is_replaying. * target-delegates.c: Regenerated. * target.c (target_record_is_replaying): Add ptid argument. * target.h (struct target_ops) <to_record_is_replaying>: Add ptid argument. (target_record_is_replaying): Add ptid argument.
This commit is contained in:
@ -1153,8 +1153,8 @@ struct target_ops
|
||||
void (*to_delete_record) (struct target_ops *)
|
||||
TARGET_DEFAULT_NORETURN (tcomplain ());
|
||||
|
||||
/* Query if the record target is currently replaying. */
|
||||
int (*to_record_is_replaying) (struct target_ops *)
|
||||
/* Query if the record target is currently replaying PTID. */
|
||||
int (*to_record_is_replaying) (struct target_ops *, ptid_t ptid)
|
||||
TARGET_DEFAULT_RETURN (0);
|
||||
|
||||
/* Go to the begin of the execution trace. */
|
||||
@ -2440,7 +2440,7 @@ extern int target_supports_delete_record (void);
|
||||
extern void target_delete_record (void);
|
||||
|
||||
/* See to_record_is_replaying in struct target_ops. */
|
||||
extern int target_record_is_replaying (void);
|
||||
extern int target_record_is_replaying (ptid_t ptid);
|
||||
|
||||
/* See to_goto_record_begin in struct target_ops. */
|
||||
extern void target_goto_record_begin (void);
|
||||
|
Reference in New Issue
Block a user