diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-20 12:19:37 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:40 -0700 |
commit | e88ef65ce5f5ec33931c71c2c7a1f490b90ddd44 (patch) | |
tree | f18ff48f2225f5b8171a2a7c47205e45fa44ff86 /gdb/target.h | |
parent | 86a0854a691a220419785b2008bf2fb0ddd6e46f (diff) | |
download | gdb-e88ef65ce5f5ec33931c71c2c7a1f490b90ddd44.zip gdb-e88ef65ce5f5ec33931c71c2c7a1f490b90ddd44.tar.gz 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.h')
-rw-r--r-- | gdb/target.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h index 1ceb74d..ec15e5b 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -547,7 +547,8 @@ struct target_ops TARGET_DEFAULT_RETURN (0); void (*to_mourn_inferior) (struct target_ops *) TARGET_DEFAULT_FUNC (default_mourn_inferior); - int (*to_can_run) (struct target_ops *); + int (*to_can_run) (struct target_ops *) + TARGET_DEFAULT_RETURN (0); /* Documentation of this routine is provided with the corresponding target_* macro. */ |