Q45555: QuickC 2.00 Debugger Does Not Display Bit Fields.
Article: Q45555
Product(s): See article
Version(s): 2.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_c
Last Modified: 30-AUG-1989
The debugger in QuickC Version 2.00 does not display bit-field
structure members. An attempt to place a watch on a member of the
following structure
struct mystruct
{
unsigned level1: 4; /* bits 0 - 3 */
unsigned level2: 4; /* bits 4 - 7 */
unsigned level3: 4; /* bits 8 - 11 */
unsigned level4: 4; /* bits 12 - 15 */
} bitstruct;
results in the following message appearing in the debug window:
bitstruct.level1: <Cannot display>
This is by design, and is expected behavior. QuickC Versions 1.00 and
1.01, however, do display bit-field structure elements, as does CodeView.
To workaround this to take the address of the structure, and then
watch the memory contents at that address.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.