PRCV9108001: Breakpoints on Member of Structure Not Saved

ID Number: Q75181

3.00 3.10 3.11 3.14 | 3.00 3.10 3.11 3.12 3.50

MS-DOS | OS/2

buglist3.00 buglist3.10 buglist3.11 buglist3.14

Summary:

PROBLEM ID: CV9108001

SYMPTOMS

Microsoft CodeView versions 3.0, 3.1, 3.11, 3.12, 3.14, and 3.5

will not save breakpoints set on a member of a structure in an

array of structures. This type of breakpoint may be set, and will

operate correctly, but will not be saved for the next CodeView

session. This is illustrated in the sample code below.

STATUS

Microsoft has confirmed this to be a problem in CodeView versions

3.0, 3.1, 3.11, 3.12, 3.14, and 3.5. We are researching this

problem and will post new information here as it becomes available.

More Information:

The sample code below may be used to illustrate this problem. Set

breakpoints on the expressions BOTTLESLIST[0].mask and x.mask to break

when the expression has changed. Note that you must first execute past

the declarations in order to set the breakpoints. After exiting

CodeView and then restarting again, the entry for BOTTLESLIST[0].mask

is missing.

Sample Code

-----------

/* Compile options needed: /Zi

*/

#include <stdio.h>

typedef struct BOTTLES {

char pt_id[21];

int pt_index;

int mask;

} BOTTLES;

void main(void)

{

BOTTLES BOTTLESLIST[5];

BOTTLES x;

BOTTLESLIST[0].mask=1;

BOTTLESLIST[0].mask=0;

BOTTLESLIST[0].mask=1;

x.mask=5;

x.mask=10;

}

Additional reference words: buglist3.12 buglist3.50