This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
"Michael" == Michael Snyder <msnyder@vmware.com> writes:
Michael> Is there a syntax for printing/using a static variable from a Michael> different module, even though it's eclipsed by a more-local Michael> variable of the same name?
According the node Variables in the manual, this should work:
print 'file.c'::global
Surprisingly, I don't think I have ever actually done this.
There's no syntax for printing a local variable which is hidden by a more inner definition.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |