projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce switch_to_inferior_no_thread
[deliverable/binutils-gdb.git]
/
gdb
/
record-full.c
diff --git
a/gdb/record-full.c
b/gdb/record-full.c
index 056b03b3fc70fadfbdf9835e55c56ab6b0495cb1..1fd72d5c7c99cf3f969c8f65171c401c6797021e 100644
(file)
--- a/
gdb/record-full.c
+++ b/
gdb/record-full.c
@@
-319,7
+319,7
@@
public:
struct bp_target_info *,
enum remove_bp_reason) override;
struct bp_target_info *,
enum remove_bp_reason) override;
- bool has_execution (
ptid_t
) override;
+ bool has_execution (
inferior *inf
) override;
};
static record_full_target record_full_ops;
};
static record_full_target record_full_ops;
@@
-1036,6
+1036,9
@@
record_full_base_target::async (int enable)
beneath ()->async (enable);
}
beneath ()->async (enable);
}
+/* The PTID and STEP arguments last passed to
+ record_full_target::resume. */
+static ptid_t record_full_resume_ptid = null_ptid;
static int record_full_resume_step = 0;
/* True if we've been resumed, and so each record_full_wait call should
static int record_full_resume_step = 0;
/* True if we've been resumed, and so each record_full_wait call should
@@
-1064,6
+1067,7
@@
static enum exec_direction_kind record_full_execution_dir = EXEC_FORWARD;
void
record_full_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
{
void
record_full_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
{
+ record_full_resume_ptid = inferior_ptid;
record_full_resume_step = step;
record_full_resumed = 1;
record_full_execution_dir = ::execution_direction;
record_full_resume_step = step;
record_full_resumed = 1;
record_full_execution_dir = ::execution_direction;
@@
-1190,7
+1194,8
@@
record_full_wait_1 (struct target_ops *ops,
/* This is not a single step. */
ptid_t ret;
CORE_ADDR tmp_pc;
/* This is not a single step. */
ptid_t ret;
CORE_ADDR tmp_pc;
- struct gdbarch *gdbarch = target_thread_architecture (inferior_ptid);
+ struct gdbarch *gdbarch
+ = target_thread_architecture (record_full_resume_ptid);
while (1)
{
while (1)
{
@@
-2239,7
+2244,7
@@
record_full_core_target::remove_breakpoint (struct gdbarch *gdbarch,
/* "has_execution" method for prec over corefile. */
bool
/* "has_execution" method for prec over corefile. */
bool
-record_full_core_target::has_execution (
ptid_t the_ptid
)
+record_full_core_target::has_execution (
inferior *inf
)
{
return true;
}
{
return true;
}
This page took
0.028075 seconds
and
4
git commands to generate.