aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 14:19:04 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:03 -0700
commit9a7d8b4812687f9fed3e495024b166f04af44def (patch)
treee60e382f95c4dcb7f2c6a5d128a13fb49dcd5a93 /gdb/target.h
parentd9db5b2141d86dafe7b437f521ee98beffac381d (diff)
downloadgdb-9a7d8b4812687f9fed3e495024b166f04af44def.zip
gdb-9a7d8b4812687f9fed3e495024b166f04af44def.tar.gz
gdb-9a7d8b4812687f9fed3e495024b166f04af44def.tar.bz2
convert to_can_use_agent
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_can_use_agent. * target.h (struct target_ops) <to_can_use_agent>: Use TARGET_DEFAULT_RETURN.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 4cc20cf..c891192 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -967,7 +967,8 @@ struct target_ops
TARGET_DEFAULT_NORETURN (tcomplain ());
/* Is the target able to use agent in current state? */
- int (*to_can_use_agent) (struct target_ops *);
+ int (*to_can_use_agent) (struct target_ops *)
+ TARGET_DEFAULT_RETURN (0);
/* Check whether the target supports branch tracing. */
int (*to_supports_btrace) (struct target_ops *)