Path: utzoo!attcan!uunet!olivea!tymix!cirrusl!sunstorm!dhesi From: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) Newsgroups: comp.unix.questions Subject: sdb won't show static variables?? Message-ID: <2928@cirrusl.UUCP> Date: 5 Feb 91 06:35:20 GMT Sender: news@cirrusl.UUCP Organization: Cirrus Logic Inc. Lines: 15 I looked at the sdb documentation for SVR2 and for SVR4, and so far as I can tell, there is no documented way to get sdb to show you the value of a variable that has been declared with the "static" keyword in a C program . Experiments with SVR3 show that the syntax "function:variable/" shows only auto variables, and the syntax ":variable/" shows only extern (non-static) variables. Whether the variable is declared static inside a function or not seems to make no difference -- it is never found. (This using ESIX System V, equivalent to AT&T's SVR3 for 386 CPUs.) Is there some undocumented way to examine static variables using sdb? -- Rahul Dhesi UUCP: oliveb!cirrusl!dhesi