Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!brl-smoke!smoke!sefunix@NWC-143B.arpa From: sefunix@NWC-143B.arpa Newsgroups: net.unix-wizards Subject: DBX bug in Ultrix 1.2 Message-ID: <2484@brl-smoke.ARPA> Date: Tue, 22-Jul-86 22:03:57 EDT Article-I.D.: brl-smok.2484 Posted: Tue Jul 22 22:03:57 1986 Date-Received: Thu, 24-Jul-86 00:22:29 EDT Sender: news@brl-smoke.ARPA Lines: 43 We recently received Ultrix-32m (Release 1.2) for our MicroVAX II and began writing some code in C. In doing so, a problem appeared when initializing a static structure. The program printed out the values correctly, but when dbx was invoked to examine the structure, it printed out something entirely different. The following is a test program and dbx output. Is this a known problem with Ultrix 1.2 that we happened to miss on the net, since we have not been on that long? PROGRAM: struct symtab { char *name; }; static struct symtab St[] = { "abc", "xyz", }; main() { int i; for ( i = 0; i < 2; i++ ) printf( "%s\n", St[i].name ); } DBX OUTPUT: dbx version 1.2 of 2/19/86 19:05. Type 'help' for help. reading symbolic information ... (dbx) print St ( (name = "@(#)crt0.c^I4.6 (Berkeley) 3/30/83") (name = (nil)) ) (dbx) Any help/thoughts are appreciated. Gene Guglielmo SEFUNIX@NWC-143B.ARPA ------