diff options
author | Tom Tromey <tromey@redhat.com> | 2012-02-07 19:42:27 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-02-07 19:42:27 +0000 |
commit | 64e7d9dddc00228cdbcecdd4c053cf83cf6608b7 (patch) | |
tree | 81e5d325950872985aca39c9bf8ea390c04261b1 /gdb/doc | |
parent | 1d6b2d2b4a864c478fb6a46e15a29859641fe788 (diff) | |
download | gdb-64e7d9dddc00228cdbcecdd4c053cf83cf6608b7.zip gdb-64e7d9dddc00228cdbcecdd4c053cf83cf6608b7.tar.gz gdb-64e7d9dddc00228cdbcecdd4c053cf83cf6608b7.tar.bz2 |
PR python/13599:
* python/py-symbol.c (sympy_line): New function.
(symbol_object_getset): Add "line".
gdb/doc
* gdb.texinfo (Symbols In Python): Document Symbol.line.
gdb/testsuite
* gdb.python/py-symbol.c (qq): New global.
* gdb.python/py-symbol.exp: Add test for frame-less
lookup_symbol.
* gdb.python/py-symtab.exp: Fix line number.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 4986107..8dd113e 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2012-02-07 Tom Tromey <tromey@redhat.com> + + * gdb.texinfo (Symbols In Python): Document Symbol.line. + 2012-01-27 Thomas Schwinge <thomas@codesourcery.com> * gdb.textinfo (Packets): Move vCont paragraph to the correct place. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 5738d14..052820b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -23967,6 +23967,11 @@ represented as a @code{gdb.Symtab} object. @xref{Symbol Tables In Python}. This attribute is not writable. @end defvar +@defvar Symbol.line +The line number in the source code at which the symbol was defined. +This is an integer. +@end defvar + @defvar Symbol.name The name of the symbol as a string. This attribute is not writable. @end defvar |