aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-m32r-sdi.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-03-07 15:58:13 +0000
committerTom Tromey <tromey@redhat.com>2011-03-07 15:58:13 +0000
commitaeaec16283729646a2269c53f64c2bc06096906b (patch)
tree12290b6d41234aab200c674bd14f14b2f64a50b8 /gdb/remote-m32r-sdi.c
parent08e1408309952d0890e72ca2b3ac813570127aa0 (diff)
downloadgdb-aeaec16283729646a2269c53f64c2bc06096906b.zip
gdb-aeaec16283729646a2269c53f64c2bc06096906b.tar.gz
gdb-aeaec16283729646a2269c53f64c2bc06096906b.tar.bz2
* target.h (struct target_ops) <to_has_execution>: 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.
Diffstat (limited to 'gdb/remote-m32r-sdi.c')
-rw-r--r--gdb/remote-m32r-sdi.c10
1 files changed, 9 insertions, 1 deletions
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;
};