This is the mail archive of the gdb-patches@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: [RFC - Python Scripting] New method Objfile.symtabs () - docs included


> Assuming we want to provide the ability to iterate over all the symbol 
> tables, we want to be able to do that without first expanding them.
> So I think the first question is what will the user want to do with 
> this feature?

Something else I'm looking for, and this seems to be a step in that direction, is a way to iterate over all the defined types.  For example, I want to do some checking similar to what "pahole" does.  The command line utility by that name processes all the types but its output is hard to handle.  The Python machinery to do the equivalent on a single type is already in place, but how do I get all the types defined in my program?  Those presumably live in a symtab but I didn't see a gdb.Symtab method to get them.  (Is that the right approach?  I can work on creating the machinery if this is the place for them, or if someone can point me to where in the gdb.* class hierarchy to fit this.)

	paul


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