From: Yao Qi Date: Tue, 4 Mar 2014 09:39:10 +0000 (+0800) Subject: Change the default implementation of to_traceframe_info to tcomplain X-Git-Tag: gdb-7.8-branchpoint~796 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a5f844b29319793deb3840b20803bd3a0fa01a2;p=thirdparty%2Fbinutils-gdb.git 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 * target.h (struct target_ops) : Use TARGET_DEFAULT_NORETURN (tcomplain ()). * target-delegates.c: Regenerated. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b9ac372b442..e3911e9e82a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-03-06 Yao Qi + + * target.h (struct target_ops) : Use + TARGET_DEFAULT_NORETURN (tcomplain ()). + * target-delegates.c: Regenerated. + 2014-03-05 Pedro Alves PR gdb/16575 diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 5b27b599067..3ca24b79663 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -1297,7 +1297,7 @@ delegate_traceframe_info (struct target_ops *self) static struct traceframe_info * tdefault_traceframe_info (struct target_ops *self) { - return NULL; + tcomplain (); } static int diff --git a/gdb/target.h b/gdb/target.h index ab797b2ffa6..91f0cc96a3b 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. */