> Attached is a patch which adds the 'end' attribute to
> gdb.Symtab_and_line. Essentially, it exposes the 'end' field of
> 'struct symtab_and_line'.
> Though I have named the new attribute 'end' in the attached patch, I
> would like to discuss this. There is already an attribute 'pc' which
> is described as "Indicates the current program counter address" in the
> documentation. I do not think this description is accurate: 'pc' is
> actually the begin address of the program counter address range for
> the current source line. To indicate the right meaning of 'pc' and
> the new 'end' attribute, should they be named 'start_pc' and 'end_pc'
> respectively, at least in the python API?
> 2012-05-21 Siva Chandra Reddy <sivachandra@...>
> New attribute 'end' for gdb.Symtab_and_line.
> * NEWS (Python Scripting): Add entry about the new attribute.
> * python/py-symtab.c (salpy_get_end): New function which
> implements the get method for the 'end' attribute of
> (sal_object_getset): Add entry for the 'end' attribute.
> * gdb.texinfo (Symbol Tables In Python): Add description about
> the new 'end' attribute of gdb.Symtab_and line.
> * gdb.python/py-symtab.exp: Add tests to test the new
> 'end' of gdb.Symtab_and_line.
> * gdb.python/py-symbol.c: Move break point comment to enable
> testing of gdb.Symtab_and_line.end.
> Siva Chandra