From aeaec16283729646a2269c53f64c2bc06096906b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 7 Mar 2011 15:58:13 +0000 Subject: * target.h (struct target_ops) : Add ptid_t parameter. (target_has_execution_1): Update. (target_has_execution_current): Declare. (target_has_execution): Call target_has_execution_current. (default_child_has_execution): Update. * target.c (default_child_has_execution): Add 'the_ptid' parameter. (target_has_execution_1): Likewise. (target_has_execution_current): New function. (add_target): Update. (init_dummy_target): Update. * remote-m32r-sdi.c (m32r_has_execution): New function. (init_m32r_ops): Use it. * record.c (record_core_has_execution): Now static. Add 'the_ptid' parameter. * inferior.c (have_live_inferiors): Don't save current thread. Use target_has_execution_1. --- gdb/remote-m32r-sdi.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gdb/remote-m32r-sdi.c') diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c index 3247b6f..70d6dd5 100644 --- a/gdb/remote-m32r-sdi.c +++ b/gdb/remote-m32r-sdi.c @@ -1610,6 +1610,14 @@ m32r_return_one (struct target_ops *target) return 1; } +/* Implementation of the to_has_execution method. */ + +static int +m32r_has_execution (struct target_ops *target, ptid_t the_ptid) +{ + return 1; +} + /* Define the target subroutine names. */ struct target_ops m32r_ops; @@ -1650,7 +1658,7 @@ init_m32r_ops (void) m32r_ops.to_has_memory = m32r_return_one; m32r_ops.to_has_stack = m32r_return_one; m32r_ops.to_has_registers = m32r_return_one; - m32r_ops.to_has_execution = m32r_return_one; + m32r_ops.to_has_execution = m32r_has_execution; m32r_ops.to_magic = OPS_MAGIC; }; -- cgit v1.1