Simon Marchi
b89641bab5
python: Add qualified parameter to gdb.Breakpoint
...
This patch adds the possibility to pass a qualified=True|False parameter
when creating a breakpoint in Python. It is equivalent to using
-qualified in a linespec. The parameter actually accepts any Python
value, and converts it to boolean using Python's standard rules for
that (https://docs.python.org/3/library/stdtypes.html#truth ).
Unlike the -source/-line/-function/-label parameters, it is possible to
use -qualified with a "normal" (non-explicit) linespec. Therefore, it
is possible (unlike these other parameters) to use this new parameter
along with the spec parameter.
I updated the py-breakpoint.exp test. To be able to test multiple
locations using a namespace, I had to switch the test case to compile as
C++. If we really wanted to, we could run it as both C and C++, but
omit the C++-specific parts when running it as C.
gdb/ChangeLog:
* location.h (string_to_event_location): Add match_type
parameter.
* location.c (string_to_event_location): Likewise.
* python/py-breakpoint.c (bppy_init): Handle qualified
parameter.
gdb/doc/ChangeLog:
* python.texi (Manipulating breakpoints using Python): Document
qualified parameter to gdb.Breakpoint.
gdb/testsuite/ChangeLog:
* gdb.python/py-breakpoint.c (foo_ns::multiply): New function.
* gdb.python/py-breakpoint.exp: Compile the test case as c++,
call test_bkpt_qualified.
(test_bkpt_qualified): New proc.
2017-12-13 11:44:28 -05:00
..
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-26 16:12:12 -05:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-12-13 11:44:28 -05:00
2017-12-13 11:44:28 -05:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-06-30 09:31:21 -04:00
2017-03-08 12:46:44 +00:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-02-14 10:38:56 -07:00
2017-01-01 10:52:34 +04:00
2017-10-13 12:29:49 +01:00
2017-01-01 10:52:34 +04:00
2017-10-13 13:25:20 +01:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-26 16:12:12 -05:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-26 16:12:12 -05:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-26 16:12:12 -05:00
2017-01-01 10:52:34 +04:00
2017-01-26 16:12:12 -05:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-09-11 14:15:20 -06:00
2017-10-28 14:19:08 -04:00
2017-03-16 10:43:21 -07:00
2017-03-16 09:28:11 -07:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-26 16:12:12 -05:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-26 16:12:12 -05:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-26 16:12:12 -05:00
2017-01-01 10:52:34 +04:00
2017-08-21 11:34:32 +01:00
2017-08-21 11:34:32 +01:00
2017-08-21 11:34:32 +01:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-11-16 14:14:03 +00:00
2017-11-16 14:14:03 +00:00
2017-11-29 16:50:36 +00:00
2017-05-02 11:35:54 +02:00
2017-05-04 16:02:36 +01:00
2017-02-14 10:57:56 +01:00
2017-05-02 11:35:54 +02:00
2017-02-14 10:57:56 +01:00
2017-02-14 10:57:56 +01:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-03-20 13:47:59 -07:00
2017-03-20 13:47:59 -07:00
2017-01-01 10:52:34 +04:00
2017-03-29 21:53:43 +02:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-09-21 11:49:48 -07:00
2017-11-03 10:41:03 +00:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-26 16:12:12 -05:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-07-22 00:01:03 +02:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-03-16 09:28:11 -07:00
2017-03-16 09:28:11 -07:00
2017-01-01 10:52:34 +04:00
2017-02-10 12:24:35 -07:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00
2017-01-20 13:15:36 -06:00
2017-01-01 10:52:34 +04:00
2017-01-01 10:52:34 +04:00