sdb won't show static variables??
Rahul Dhesi
dhesi%cirrusl at oliveb.ATC.olivetti.com
Tue Feb 5 17:35:20 AEST 1991
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 at oliveb.ATC.olivetti.com>
UUCP: oliveb!cirrusl!dhesi
More information about the Comp.unix.questions
mailing list