home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!dsong
- From: dsong@ncsa.uiuc.edu (Deyang Song)
- Subject: dbx question.
- Message-ID: <BxtKHF.4wK@news.cso.uiuc.edu>
- Originator: dsong@merlin.ncsa.uiuc.edu
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: Nat'l Ctr for Supercomp App (NCSA) @ University of Illinois
- Date: Mon, 16 Nov 1992 17:27:11 GMT
- Keywords: dbx
- Lines: 33
-
-
-
- I came across a problem with dbx that I think may be a bug. The
- problem is that dbx does not handle nested blocks properly. I have
- a simple C test program below:
-
- 1 #include <stdio.h>
- 2
- 3 main()
- 4 {
- 5 int p=2;
- 6
- 7 {
- 8 int p=4;
- 9
- 10 printf("\tp=%d\n", p);
- 11 }
- 12
- 13 printf("p=%d\n",p);
- 14 }
-
- I compiled it with -g and loaded it into dbx. When I stepped to
- line 13, the visible p is still the one in the inner block. Can
- someone tell me if it's a bug or there's an explanation for it?
- The dbx I'm using is version 2.10.
-
-
- Chris Song UUCP: uiucuxc!newton!dsong
- National Center for Supercomputing Applications INTERNET:dsong@ncsa.uiuc.edu
- 605 E. Springfield Ave., Rm 152 FAX: (217) 244-2909
- Champaign, IL 61820 PHONE:(217) 244-1981
-
-
-