[comp.unix.questions] sdb won't show static variables??

dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) (02/05/91)

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 <dhesi%cirrusl@oliveb.ATC.olivetti.com>
UUCP:  oliveb!cirrusl!dhesi