This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC - Python Scripting] Add 'end' attribute to gdb.Symtab_and_line
On Wed, Jun 13, 2012 at 11:45 PM, Siva Chandra <sivachandra@google.com> wrote:
> On Wed, Jun 13, 2012 at 10:38 PM, Doug Evans <dje@google.com> wrote:
>> I like "last".
>> So the range would be [pc,last] ??
>
> Yes. The only reason I do not want to call it 'end' is to avoid
> confusion with the internal 'end' which has a different behavior.
>
> 2012-06-13 ?Siva Chandra Reddy ?<sivachandra@google.com>
>
> ? ? ? ?New attribute 'last' for gdb.Symtab_and_line.
> ? ? ? ?* NEWS (Python Scripting): Add entry about the new attribute.
> ? ? ? ?* python/py-symtab.c (salpy_get_last): New function which
> ? ? ? ?implements the get method for the 'last' attribute of
> ? ? ? ?gdb.Symtab_and_line.
> ? ? ? ?(sal_object_getset): Add entry for the 'last' attribute.
>
> ? ? ? ?doc/
> ? ? ? ?* gdb.texinfo (Symbol Tables In Python): Add description about
> ? ? ? ?the new 'last' attribute of gdb.Symtab_and line.
>
> ? ? ? ?testsuite/
> ? ? ? ?* gdb.python/py-symtab.exp: Add tests to test the new attribute
> ? ? ? ?'last' of gdb.Symtab_and_line.
> ? ? ? ?* gdb.python/py-symbol.c: Move break point comment to enable
> ? ? ? ?testing of gdb.Symtab_and_line.last.
Ping. Is this good to go in?