aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-03-04 17:39:10 +0800
committerYao Qi <yao@codesourcery.com>2014-03-06 09:39:50 +0800
commit6a5f844b29319793deb3840b20803bd3a0fa01a2 (patch)
treefb8387d5b41a2082ba09a06baf5265de4fa91d27 /gdb/target.h
parent9e43f3e57d4ddf1ac042e8af35517f7fd2c776a7 (diff)
downloadgdb-6a5f844b29319793deb3840b20803bd3a0fa01a2.zip
gdb-6a5f844b29319793deb3840b20803bd3a0fa01a2.tar.gz
gdb-6a5f844b29319793deb3840b20803bd3a0fa01a2.tar.bz2
Change the default implementation of to_traceframe_info to tcomplain
This patch is to change the default implementation of to_traceframe_info from 'return NULL' to tcomplain, which is intended. If new target supports tracepoint, this method should be implemented, otherwise, an error is thrown. gdb: 2014-03-06 Yao Qi <yao@codesourcery.com> * target.h (struct target_ops) <to_traceframe_info>: Use TARGET_DEFAULT_NORETURN (tcomplain ()). * target-delegates.c: Regenerated.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h
index ab797b2..91f0cc9 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -950,7 +950,7 @@ struct target_ops
higher layers take care of caching, invalidating, and
re-fetching when necessary. */
struct traceframe_info *(*to_traceframe_info) (struct target_ops *)
- TARGET_DEFAULT_RETURN (NULL);
+ TARGET_DEFAULT_NORETURN (tcomplain ());
/* Ask the target to use or not to use agent according to USE. Return 1
successful, 0 otherwise. */