public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Hui Zhu <hui_zhu@mentor.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Subject: [OB PATCH] target.h (to_traceframe_info): Fix TARGET_DEFAULT_RETURN
Date: Tue, 25 Feb 2014 15:55:00 -0000	[thread overview]
Message-ID: <530CBCED.3000200@mentor.com> (raw)

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.  */

             reply	other threads:[~2014-02-25 15:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-25 15:55 Hui Zhu [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=530CBCED.3000200@mentor.com \
    --to=hui_zhu@mentor.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).