Change the default implementation of to_traceframe_info to tcomplain
authorYao Qi <yao@codesourcery.com>
Tue, 4 Mar 2014 09:39:10 +0000 (17:39 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 6 Mar 2014 01:39:50 +0000 (09:39 +0800)
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.

gdb/ChangeLog
gdb/target-delegates.c
gdb/target.h

index b9ac372b44229519d78518068044a7cbd2366939..e3911e9e82a005a2f27f8a85c200d4b7d68fbf42 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2014-03-05  Pedro Alves  <palves@redhat.com>
 
        PR gdb/16575
index 5b27b599067288a8b9ff18af3fd3789eb1963df7..3ca24b7966326bf8b244b968c3b3d0fb26d2ea95 100644 (file)
@@ -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
index ab797b2ffa60efbc08a72376dea3779f800b3fce..91f0cc96a3be3f09ae29b71310506ba238a64871 100644 (file)
@@ -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.  */
This page took 0.030871 seconds and 4 git commands to generate.