Article ID: 117147
Article Last Modified on 10/23/2003
For an MS-DOS target For a Windows target --------------------------------- --------------------------------- p2 // step into code p2 // step into code bp =A.s // BP when A.s changes bp =A.s // BP when A.s changes g // break hit correctly g // break hit correctly g // break in exit code g // break in exit code g // program terminates g // hit 3 more times l // restart g // program terminates g // break in startup code l // restart g // hit 19 times to finish g // breakpoint missed bc* // clear all breakpoints bc* // clear all breakpoints l // restart l // restart p2 p2 bp =A.s // break when A.s changes bp =A.s // break when A.s changes g // repeat of above g // repeat of aboveNote that the problem is not as severe for static structures. (substitute bp = B.i in the steps above).
/* Compile options needed: /Zi /Od
*/
#ifdef _WINDOWS
#include <windows.h>
#endif
void main( void )
{
struct tagA {
short s;
} A;
static struct tagB {
int i;
} B;
A.s = 1;
B.i = 2;
}
Keywords: kb16bitonly KB117147