This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: fix PR python/13599
- From: Tom Tromey <tromey at redhat dot com>
- To: Kevin Pouget <kevin dot pouget at gmail dot com>
- Cc: Doug Evans <dje at google dot com>, gdb-patches at sourceware dot org
- Date: Wed, 01 Feb 2012 09:08:32 -0700
- Subject: Re: RFA: fix PR python/13599
- References: <m3y5sncz08.fsf@fleche.redhat.com> <CADPb22RaFYaB0XGxCiftTAshX1S2PGVuYaAvB6Ky45MFz6cg6Q@mail.gmail.com> <CAPftXUJt7ia7YqLjOP-af_tHKbVT2sp6RQtMRK1Fu_w6BvjM9g@mail.gmail.com>
>>>>> "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