Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [OB PATCH] target.h (to_traceframe_info): Fix TARGET_DEFAULT_RETURN
@ 2014-02-25 15:55 Hui Zhu
  2014-03-04  0:52 ` Yao Qi
  0 siblings, 1 reply; 7+ messages in thread
From: Hui Zhu @ 2014-02-25 15:55 UTC (permalink / raw)
  To: gdb-patches ml

Hi.

make-target-delegates target.h >target-delegates.c
git diff target-delegates.c
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c
index 5b27b59..fdea5d6 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;
+  return tcomplain ();
  }

Committed as obvious.

Thanks,
Hui

2014-02-25  Hui Zhu  <hui@codesourcery.com>

	* target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
	to_traceframe_info.

diff --git a/gdb/target.h b/gdb/target.h
index db248a8..7ce66c1 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -976,7 +976,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 (tcomplain ());
+       TARGET_DEFAULT_RETURN (NULL);
  
      /* Ask the target to use or not to use agent according to USE.  Return 1
         successful, 0 otherwise.  */


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-06  2:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-25 15:55 [OB PATCH] target.h (to_traceframe_info): Fix TARGET_DEFAULT_RETURN Hui Zhu
2014-03-04  0:52 ` Yao Qi
2014-03-04  1:18   ` Hui Zhu
2014-03-04  1:38     ` Yao Qi
2014-03-05  1:17       ` Yao Qi
2014-03-05 20:04         ` Tom Tromey
2014-03-06  2:21           ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox