diff options
author | Tom Tromey <tom@tromey.com> | 2018-04-18 17:37:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-05-04 15:58:09 -0600 |
commit | a913fffbdee21fdd50e8de0596358be425775678 (patch) | |
tree | 4901f7f8fa47ae7127b72beb55875edba9d05150 /gdb/doc | |
parent | 60b3cef2e49ba72dea55181a8ad0cb8dbf3f8a5b (diff) | |
download | gdb-a913fffbdee21fdd50e8de0596358be425775678.zip gdb-a913fffbdee21fdd50e8de0596358be425775678.tar.gz gdb-a913fffbdee21fdd50e8de0596358be425775678.tar.bz2 |
Allow breakpoint commands to be set from Python
This changes the Python API so that breakpoint commands can be set by
writing to the "commands" attribute.
ChangeLog
2018-05-04 Tom Tromey <tom@tromey.com>
PR python/22731:
* NEWS: Mention that breakpoint commands are writable.
* python/py-breakpoint.c (bppy_set_commands): New function.
(breakpoint_object_getset) <"commands">: Use it.
doc/ChangeLog
2018-05-04 Tom Tromey <tom@tromey.com>
PR python/22731:
* python.texi (Breakpoints In Python): Mention that "commands" is
writable.
testsuite/ChangeLog
2018-05-04 Tom Tromey <tom@tromey.com>
PR python/22731:
* gdb.python/py-breakpoint.exp: Test setting breakpoint commands.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/python.texi | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 9f5063f..798ff37 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2018-05-04 Tom Tromey <tom@tromey.com> + + PR python/22731: + * python.texi (Breakpoints In Python): Mention that "commands" is + writable. + 2018-05-02 Tom Tromey <tom@tromey.com> PR python/20084: diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index c471e57..4182b60 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -5136,7 +5136,7 @@ value is @code{None}. This attribute is writable. This attribute holds the commands attached to the breakpoint. If there are commands, this attribute's value is a string holding all the commands, separated by newlines. If there are no commands, this -attribute is @code{None}. This attribute is not writable. +attribute is @code{None}. This attribute is writable. @end defvar @node Finish Breakpoints in Python |