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: RFA: fix PR python/13599


>>>>> "Kevin" == Kevin Pouget <kevin.pouget@gmail.com> writes:

Kevin> I was curious about the difference between your new method and this one:

>> def whereis(arg):
>> symbols = gdb.decode_line(arg)

decode_line won't return, e.g., a local variable.
It is also much less efficient than just fetching the field from the
symbol.

Kevin> Actually, the difference between Symbol, Symtab and Symtab_and_line is
Kevin> still a bit obscure to me, I'm not sure that the documentation really
Kevin> explains the meaning of these classes, but just what they do (or maybe
Kevin> I missed something):

File bugs against the python component for any documentation oddities
you find, and we will fix them.

Phil has a long-term goal of getting more examples into the manual, that
would help too :)

Tom


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