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]

Re: how to search for a global type?


On Tue, Jan 01, 2008 at 09:16:26PM -0800, Gary Funck wrote:
> The typedef appears to be in inner block.  Does that make it static?

Block 0 is the global symbols; block 1 is the file static symbols.
Later blocks are the bodies of functions, et cetera.

It makes sense for types to be static if you think about it from the
right perspective, since types do not (generally) have linker
visibility; the linker can't patch up your code to reference a type
declared in another file.

In short, try just lookup_symbol?

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]