public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Zimmermann <netzimme@gmail.com>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: crossgcc@sourceware.org
Subject: [PATCH] debug/ltrace: pump ltrace to version 0.7.3
Date: Wed, 19 Feb 2014 21:36:00 -0000	[thread overview]
Message-ID: <8349c35b506aa79c4e69.1392845765@haus-VirtualBox> (raw)

# HG changeset patch
# User Daniel Zimmermann <netzimme@gmail.com>
# Date 1392845763 -3600
#      Wed Feb 19 22:36:03 2014 +0100
# Node ID 8349c35b506aa79c4e69eeab564e4c0657ca20a9
# Parent  a8cb9039fadee8d34669d83824c8eb1f56805691
debug/ltrace: pump ltrace to version 0.7.3

pump ltrace to version 0.7.3
backport a patch from Peter Wu to silence warnings/errors in ltrace

Signed-off-by: '"Peter Wu" <lekensteyn@gmail.com>'
Signed-off-by: '"Daniel Zimmermann" <netzimme@gmail.com>'

diff -r a8cb9039fade -r 8349c35b506a config/debug/ltrace.in
--- a/config/debug/ltrace.in	Tue Feb 11 21:34:48 2014 +0100
+++ b/config/debug/ltrace.in	Wed Feb 19 22:36:03 2014 +0100
@@ -15,6 +15,12 @@
 # Don't remove next line
 # CT_INSERT_VERSION_BELOW
 
+
+config LTRACE_V_0_7_3
+    bool
+    prompt "0.7.3"
+
+
 config LTRACE_V_0_5_3
     bool
     prompt "0.5.3"
@@ -30,6 +36,7 @@
     string
 # Don't remove next line
 # CT_INSERT_VERSION_STRING_BELOW
+    default "0.7.3" if LTRACE_V_0_7_3
     default "0.5.3" if LTRACE_V_0_5_3
     default "0.5.2" if LTRACE_V_0_5_2
 
diff -r a8cb9039fade -r 8349c35b506a patches/ltrace/0.7.3/100-ltrace.git-a77b267abb870c935f9b4187ca31409fa5eb9dcb.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/ltrace/0.7.3/100-ltrace.git-a77b267abb870c935f9b4187ca31409fa5eb9dcb.patch	Wed Feb 19 22:36:03 2014 +0100
@@ -0,0 +1,42 @@
+From a77b267abb870c935f9b4187ca31409fa5eb9dcb Mon Sep 17 00:00:00 2001
+From: Peter Wu <lekensteyn@gmail.com>
+Date: Thu, 26 Sep 2013 00:55:55 +0200
+Subject: [PATCH] Fix compile warning about unused typedef
+
+Switch assertion to style as used by the Linux kernel (BUILD_BUG_ON)
+
+Signed-off-by: Peter Wu <lekensteyn@gmail.com>
+---
+ lens_default.c | 2 +-
+ value.c        | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lens_default.c b/lens_default.c
+index e0c0566..84b74ea 100644
+--- a/lens_default.c
++++ b/lens_default.c
+@@ -345,7 +345,7 @@ format_array(FILE *stream, struct value *value, struct value_dict *arguments,
+ {
+ 	/* We need "long" to be long enough to cover the whole address
+ 	 * space.  */
+-	typedef char assert__long_enough_long[-(sizeof(long) < sizeof(void *))];
++	(void)sizeof(char[1 - 2*(sizeof(long) < sizeof(void *))]);
+ 	long l;
+ 	if (expr_eval_word(length, value, arguments, &l) < 0)
+ 		return -1;
+diff --git a/value.c b/value.c
+index d18db17..8caf98c 100644
+--- a/value.c
++++ b/value.c
+@@ -284,7 +284,7 @@ value_init_deref(struct value *ret_val, struct value *valp)
+ 
+ 	/* We need "long" to be long enough to hold platform
+ 	 * pointers.  */
+-	typedef char assert__long_enough_long[-(sizeof(l) < sizeof(void *))];
++	(void)sizeof(char[1 - 2*(sizeof(l) < sizeof(void *))]);
+ 
+ 	value_common_init(ret_val, valp->inferior, valp,
+ 			  valp->type->u.ptr_info.info, 0);
+-- 
+1.8.5.2
+

--
For unsubscribe information see http://sourceware.org/lists.html#faq

             reply	other threads:[~2014-02-19 21:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-19 21:36 Daniel Zimmermann [this message]
2014-02-19 21:51 ` Yann E. MORIN

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=8349c35b506aa79c4e69.1392845765@haus-VirtualBox \
    --to=netzimme@gmail.com \
    --cc=crossgcc@sourceware.org \
    --cc=yann.morin.1998@free.fr \
    /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).