public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-sergiodj-stap: Fixing unwanted side-effect in assertion.
@ 2011-02-14 21:18 sergiodj
  0 siblings, 0 replies; only message in thread
From: sergiodj @ 2011-02-14 21:18 UTC (permalink / raw)
  To: archer-commits

The branch, archer-sergiodj-stap has been updated
       via  0685505386da12a958e2067ac9d50fa5ad9efed4 (commit)
      from  49b7527b4e10aca253ebaa3159c6e4bbec1cf68e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 0685505386da12a958e2067ac9d50fa5ad9efed4
Author: Sergio Durigan Junior <sergiodj@redhat.com>
Date:   Mon Feb 14 19:18:29 2011 -0200

    Fixing unwanted side-effect in assertion.

-----------------------------------------------------------------------

Summary of changes:
 gdb/elfread.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

First 500 lines of diff:
diff --git a/gdb/elfread.c b/gdb/elfread.c
index b7ecac4..a7c8d3b 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -1089,10 +1089,10 @@ handle_probe (struct sdt_note *el, struct stap_probe *ret, bfd *abfd,
   ret->args = memchr (ret->name, '\0',
 		      (unsigned long *) el->data
 		      + el->size - (unsigned long *) ret->name);
-  gdb_assert (ret->args++ != NULL
-	      && memchr (ret->args, '\0',
-			 (unsigned long *) el->data
-			 + el->size - (unsigned long *) ret->name)
+  gdb_assert (ret->args != NULL);
+  ++ret->args;
+  gdb_assert (memchr (ret->args, '\0', (unsigned long *) el->data
+		      + el->size - (unsigned long *) ret->name)
 	      == el->data + el->size - 1);
 }
 


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-14 21:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14 21:18 [SCM] archer-sergiodj-stap: Fixing unwanted side-effect in assertion sergiodj

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).