]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
DARWIN sync: add a comment.
authorNicholas Nethercote <njn@valgrind.org>
Mon, 25 May 2009 01:48:32 +0000 (01:48 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 25 May 2009 01:48:32 +0000 (01:48 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10149

coregrind/m_debuginfo/priv_storage.h

index 50abe79120f0da7d8ce694a2173fc0b880dc590d..9749b247299c35f52e748e970bd24423a788be04 100644 (file)
@@ -51,6 +51,10 @@ typedef
       Addr  addr;   /* lowest address of entity */
       Addr  tocptr; /* ppc64-linux only: value that R2 should have */
       UChar *name;  /* name */
+      // XXX: this could be shrunk (on 32-bit platforms) by using 31 bits for
+      // the size and 1 bit for the isText.  If you do this, make sure that
+      // all assignments to isText use 0 or 1 (or True or False), and that a
+      // positive number larger than 1 is never used to represent True.
       UInt  size;   /* size in bytes */
       Bool  isText;
    }