Add support for reading frame registers to Python API.
[deliverable/binutils-gdb.git] / gdb / doc / python.texi
index 4688783e40a3437179a6f37c371df143506f99c1..3cb6bf8b28bc6ae81fbda0a32525ca3f7d2a48c0 100644 (file)
@@ -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
This page took 0.023941 seconds and 4 git commands to generate.