Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Gary Benson <gbenson@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: "Frank Ch. Eigler" <fche@redhat.com>,
	Steve Ellcey <sellcey@mips.com>,
	       Doug Evans <dje@google.com>,
	gdb-patches <gdb-patches@sourceware.org>,
	       Pedro Alves <palves@redhat.com>,
	       Joel Sherrill <joel.sherrill@oarcorp.com>
Subject: [PING PATCH] Rename SIM's debug_printf (Was: [PATCH 4/5 v7] Introduce common-debug.h)
Date: Wed, 27 Aug 2014 08:53:00 -0000	[thread overview]
Message-ID: <20140827085309.GC4533@blade.nx> (raw)
In-Reply-To: <2362980.Wvr8be2HuO@vapier>

Mike Frysinger wrote:
> On Wed 20 Aug 2014 18:47:41 Frank Ch. Eigler wrote:
> > > > (I have no objection to the #define in gdb/*.)
> > > 
> > > I take this to mean you do object to a #define in sim/*.
> > 
> > No - just that a gdb/* patch the only one I think I saw.  Making
> > an analogue for sim/* would be fine, but testing it for wide
> > buildability will be a hassle.
> 
> i wouldn't worry too much about that ... i have local builds for
> most every target, and i think some others notice when things break
> too

Frank, are you ok with the patch in sim/* with Mike's assurances?
I inlined the patch under discussion below, for avoidance of doubt.

Thanks,
Gary

-- 
2014-08-20  Gary Benson  <gbenson@redhat.com>

	* sim-trace.h (debug_printf): New define.

diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h
index 5fb58e1..69fffb4 100644
--- a/sim/common/sim-trace.h
+++ b/sim/common/sim-trace.h
@@ -583,6 +583,9 @@ extern void trace_vprintf (SIM_DESC, sim_cpu *, const char *, va_list);
 /* Non-zero if "--debug-insn" specified.  */
 #define DEBUG_INSN_P(cpu) DEBUG_P (cpu, DEBUG_INSN_IDX)
 
+/* GDB also has a debug_printf, so we shadow ours.  */
+#define debug_printf sim_debug_printf
+
 extern void debug_printf (sim_cpu *, const char *, ...)
      __attribute__((format (printf, 2, 3)));
 


  reply	other threads:[~2014-08-27  8:53 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-13  9:56 [PATCH 0/5 v7] Common code cleanups (first four, and one new) Gary Benson
2014-08-13  9:56 ` [PATCH 2/5 v7] Introduce common-types.h Gary Benson
2014-08-18 16:25   ` Doug Evans
2014-08-13  9:56 ` [PATCH 3/5 v7] Move print-utils.h to common-defs.h Gary Benson
2014-08-18 16:29   ` Doug Evans
2014-08-13  9:56 ` [PATCH 4/5 v7] Introduce common-debug.h Gary Benson
2014-08-18 16:38   ` Doug Evans
2014-08-19  9:12     ` Gary Benson
2014-08-19 23:22       ` Steve Ellcey
2014-08-20  8:53         ` Gary Benson
2014-08-20  9:42           ` Mike Frysinger
2014-08-20 12:09             ` Gary Benson
2014-08-20 13:32               ` Frank Ch. Eigler
2014-08-20 19:16                 ` Gary Benson
2014-08-20 21:41                   ` Frank Ch. Eigler
2014-08-20 21:58                     ` Doug Evans
2014-08-20 21:58                     ` Gary Benson
2014-08-20 22:48                       ` Frank Ch. Eigler
2014-08-21  1:19                         ` Mike Frysinger
2014-08-27  8:53                           ` Gary Benson [this message]
2014-08-28  0:09                             ` [PING PATCH] Rename SIM's debug_printf (Was: [PATCH 4/5 v7] Introduce common-debug.h) Frank Ch. Eigler
2014-08-28 13:31                               ` Gary Benson
2014-08-20 15:32               ` [PATCH 4/5 v7] Introduce common-debug.h Mike Frysinger
2014-08-20 19:14                 ` Gary Benson
2014-08-21  1:18                   ` Mike Frysinger
2014-08-13 10:34 ` [PATCH 5/5 v7] Introduce show_debug_regs Gary Benson
2014-08-18 16:40   ` Doug Evans
2014-08-13 10:55 ` [PATCH 1/5 v7] Introduce common/errors.h Gary Benson
2014-08-18 16:20   ` Doug Evans

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=20140827085309.GC4533@blade.nx \
    --to=gbenson@redhat.com \
    --cc=dje@google.com \
    --cc=fche@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=joel.sherrill@oarcorp.com \
    --cc=palves@redhat.com \
    --cc=sellcey@mips.com \
    --cc=vapier@gentoo.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