Hi
Here is a strange dbx behavior:
dbx version 3.11.8
on
Digital UNIX V3.2D-1 (Rev. 41)
upper/lower case seems to be identical?
main()
{
int nn=0;
int NN=1;
printf("av NN=%d &NN=%x nn=%d &nn=%x\n",NN,&NN,nn,&nn);
nn=NN+1;
printf("ap NN=%d &NN=%x nn=%d &nn=%x\n",NN,&NN,nn,&nn);
}
cc -g ess.c
dbx a.out
dbx version 3.11.8
Type 'help' for help.
main: 3 int nn=0;
(dbx) l
4 int NN=1;
5
6 printf("av NN=%d &NN=%x nn=%d &nn=%x\n",NN,&NN,nn,&nn);
7 nn=NN+1;
8 printf("ap NN=%d &NN=%x nn=%d &nn=%x\n",NN,&NN,nn,&nn);
9 }
(dbx) stop at 8
[2] stop at "ess.c":8
(dbx) run
av NN=1 &NN=1ffffd40 nn=0 &nn=1ffffd48
[2] stopped at [main:8 ,0x1200011e0] printf("ap NN=%d &NN=%x nn=%d &nn=%x\n",NN,&NN,nn,&nn);
(dbx) p nn
2
(dbx) p NN
2
(dbx) next
ap NN=1 &NN=1ffffd40 nn=2 &nn=1ffffd48
[main:9 ,0x120001208] }
(dbx) p nn
2
(dbx) p NN
2
(dbx) quit
Same on ultrix 4.3 quid of 4.0d ?
Received on Wed Sep 23 1998 - 08:00:01 NZST