forked from Imagelibrary/binutils-gdb
Add support for reading frame registers to Python API.
The ability to read registers is needed to use Frame Filter API to display the frames created by JIT compilers. gdb/ChangeLog: 2014-08-29 Sasha Smundak <asmundak@google.com> * python/py-frame.c (frapy_read_register): New function. gdb/doc/ChangeLog: 2014-08-26 Sasha Smundak <asmundak@google.com> * python.texi (Frames in Python): Add read_register description. gdb/testsuite/ChangeLog: 2014-08-26 Sasha Smundak <asmundak@google.com> * gdb.python/py-frame.exp: Test Frame.read_register.
This commit is contained in:
committed by
Doug Evans
parent
ac740bc7a9
commit
5f3b99cfed
@@ -3589,6 +3589,13 @@ Return the frame's symtab and line object.
|
||||
@xref{Symbol Tables In Python}.
|
||||
@end defun
|
||||
|
||||
@defun Frame.read_register (register)
|
||||
Return the value of @var{register} in this frame. The @var{register}
|
||||
argument must be a string (e.g., @code{'sp'} or @code{'rax'}).
|
||||
Returns a @code{Gdb.Value} object. Throws an exception if @var{register}
|
||||
does not exist.
|
||||
@end defun
|
||||
|
||||
@defun 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
|
||||
|
||||
Reference in New Issue
Block a user