aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-20 12:19:37 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:40 -0700
commite88ef65ce5f5ec33931c71c2c7a1f490b90ddd44 (patch)
treef18ff48f2225f5b8171a2a7c47205e45fa44ff86 /gdb/target.c
parent86a0854a691a220419785b2008bf2fb0ddd6e46f (diff)
downloadfsf-binutils-gdb-e88ef65ce5f5ec33931c71c2c7a1f490b90ddd44.zip
fsf-binutils-gdb-e88ef65ce5f5ec33931c71c2c7a1f490b90ddd44.tar.gz
fsf-binutils-gdb-e88ef65ce5f5ec33931c71c2c7a1f490b90ddd44.tar.bz2
convert to_can_run
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_can_run. (find_default_run_target): Check against delegate_can_run. * target.h (struct target_ops) <to_can_run>: Use TARGET_DEFAULT_RETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/target.c b/gdb/target.c
index bf93220..13b2e65 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -653,7 +653,7 @@ update_current_target (void)
/* Do not inherit to_set_syscall_catchpoint. */
/* Do not inherit to_has_exited. */
/* Do not inherit to_mourn_inferior. */
- INHERIT (to_can_run, t);
+ /* Do not inherit to_can_run. */
/* Do not inherit to_pass_signals. */
/* Do not inherit to_program_signals. */
/* Do not inherit to_thread_alive. */
@@ -748,9 +748,6 @@ update_current_target (void)
(int (*) (CORE_ADDR, gdb_byte *, int, int,
struct mem_attrib *, struct target_ops *))
nomemory);
- de_fault (to_can_run,
- (int (*) (struct target_ops *))
- return_zero);
current_target.to_read_description = NULL;
#undef de_fault
@@ -2852,7 +2849,7 @@ find_default_run_target (char *do_mesg)
for (t = target_structs; t < target_structs + target_struct_size;
++t)
{
- if ((*t)->to_can_run && target_can_run (*t))
+ if ((*t)->to_can_run != delegate_can_run && target_can_run (*t))
{
runable = *t;
++count;