Allow breakpoint commands to be set from Python
authorTom Tromey <tom@tromey.com>
Wed, 18 Apr 2018 23:37:56 +0000 (17:37 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 4 May 2018 21:58:09 +0000 (15:58 -0600)
commita913fffbdee21fdd50e8de0596358be425775678
tree4901f7f8fa47ae7127b72beb55875edba9d05150
parent60b3cef2e49ba72dea55181a8ad0cb8dbf3f8a5b
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.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/python.texi
gdb/python/py-breakpoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-breakpoint.exp