Implement explicit locations for Python breakpoints.
authorPhil Muldoon <pmuldoon@redhat.com>
Thu, 7 Dec 2017 16:47:33 +0000 (16:47 +0000)
committerPhil Muldoon <pmuldoon@redhat.com>
Thu, 7 Dec 2017 16:47:33 +0000 (16:47 +0000)
commit824cc835aa9a4d585d955db4ab2a5dd4c17cc22c
tree8f0ee6f88956328aea665e4016ea7ae09274c6bd
parent9c226a8689db8bced43b94f551e118551219ce54
Implement explicit locations for Python breakpoints.

This introduces several new keywords to the bppy_init constructor.
The spec parameter is now optional but mutually exclusive to the
explicit keywords source, label, function and line.

gdb/ChangeLog

2017-12-07  Phil Muldoon  <pmuldoon@redhat.com>

       * python/py-breakpoint.c (bppy_init): Use string_to_event_location
       over basic location code. Implement explicit location keywords.
       (bppy_init_validate_args): New function.
       * NEWS: Document Python explicit breakpoint locations.

doc/ChangeLog

2017-12-07  Phil Muldoon  <pmuldoon@redhat.com>

       * python.texi (Breakpoints In Python): Add text relating
       to allowed explicit locations and keywords in gdb.Breakpoints.

testsuite/ChangeLog

2017-12-07  Phil Muldoon  <pmuldoon@redhat.com>

       * gdb.python/py-breakpoint.exp (test_bkpt_explicit_loc): Add new
       tests for explicit locations.
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.c
gdb/testsuite/gdb.python/py-breakpoint.exp