|
From: <sv...@va...> - 2009-05-24 23:43:34
|
Author: njn
Date: 2009-05-25 00:43:30 +0100 (Mon, 25 May 2009)
New Revision: 10137
Log:
Trunk sync: revert DiSym layout, but add a comment about it.
Modified:
branches/DARWIN/coregrind/m_debuginfo/priv_storage.h
Modified: branches/DARWIN/coregrind/m_debuginfo/priv_storage.h
===================================================================
--- branches/DARWIN/coregrind/m_debuginfo/priv_storage.h 2009-05-24 23:36:50 UTC (rev 10136)
+++ branches/DARWIN/coregrind/m_debuginfo/priv_storage.h 2009-05-24 23:43:30 UTC (rev 10137)
@@ -51,8 +51,12 @@
Addr addr; /* lowest address of entity */
Addr tocptr; /* ppc64-linux only: value that R2 should have */
UChar *name; /* name */
- UInt size:31; /* size in bytes */
- UInt isText:1;
+ // 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;
}
DiSym;
|