aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2010-02-28 21:56:50 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2010-02-28 21:56:50 +0000
commitdc00d89fd009e18f9fc43f4bcc8c7a9661729471 (patch)
treede077027d456ab6216eba08a47be70014a7c0240 /gdb/doc
parent0e095b7eee9adf0be7109de8662647df7d0ee0ac (diff)
downloadgdb-dc00d89fd009e18f9fc43f4bcc8c7a9661729471.zip
gdb-dc00d89fd009e18f9fc43f4bcc8c7a9661729471.tar.gz
gdb-dc00d89fd009e18f9fc43f4bcc8c7a9661729471.tar.bz2
2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
PR python/11036 * python/py-frame.c (frapy_read_var): Add block argument and logic to cope with user provided blocks. 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Frames In Python): Add block parameter and description to read_var text. 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-frame.exp: Add read_var block tests. * gdb.python/py-frame.c (block): New function.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo10
2 files changed, 12 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index b92f634..078fdb9 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
+
+ * gdb.texinfo (Frames In Python): Add block parameter and
+ description to read_var text.
+
2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index f6105b7..460d0d5 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20799,9 +20799,13 @@ Return the frame's symtab and line object.
@xref{Symbol Tables In Python}.
@end defmethod
-@defmethod Frame read_var variable
-Return the value of the given variable in this frame. @var{variable} must
-be a string.
+@defmethod Frame read_var variable @r{[}block@r{]}
+Return the value of @var{variable} in this frame. If the optional
+argument @var{block} is provided, search for the variable from that
+block; otherwise start at the frame's current block (which is
+determined by the frame's current program counter). @var{variable}
+must be a string or a @code{gdb.Symbol} object. @var{block} must be a
+@code{gdb.Block} object.
@end defmethod
@defmethod Frame select