From a913fffbdee21fdd50e8de0596358be425775678 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Apr 2018 17:37:56 -0600 Subject: 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 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 PR python/22731: * python.texi (Breakpoints In Python): Mention that "commands" is writable. testsuite/ChangeLog 2018-05-04 Tom Tromey PR python/22731: * gdb.python/py-breakpoint.exp: Test setting breakpoint commands. --- gdb/NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 46f6635dda0..da7147b47ea 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -31,6 +31,9 @@ set|show record btrace cpu ** Type alignment is now exposed via the "align" attribute of a gdb.Type. + ** The commands attached to a breakpoint can be set by assigning to + the breakpoint's "commands" field. + * New targets RiscV ELF riscv*-*-elf -- cgit v1.2.1