Pierre-Marie de Rodat
f495252396
Fix use of a dangling pointer for Python breakpoint objects
...
When a Python script tries to create a breakpoint but fails to do so,
gdb.Breakpoint.__init__ raises an exception and the breakpoint does not
exist anymore in the Python interpreter. However, GDB still keeps a
reference to the Python object to be used for a later hook, which is
wrong.
This commit adds the necessary cleanup code so that there is no stale
reference to this Python object. It also adds a new testcase to
reproduce the bug and check the fix.
2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
gdb/
* python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
when there is an error during the breakpoint creation.
gdb/testsuite
* gdb.python/py-breakpoint-create-fail.c,
gdb.python/py-breakpoint-create-fail.exp,
gdb.python/py-breakpoint-create-fail.py: New testcase.
2016-06-27 12:11:25 +02:00
..
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-03-10 17:12:30 -05:00
2016-03-10 17:12:30 -05:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-06-27 12:11:25 +02:00
2016-06-27 12:11:25 +02:00
2016-06-27 12:11:25 +02:00
2016-01-01 08:43:22 +04:00
2016-05-24 09:55:01 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-04-27 18:09:14 -04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-06-23 07:56:35 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-12 01:12:38 +00:00
2016-01-13 11:00:54 +00:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-06-21 01:11:43 +01:00
2016-03-31 15:32:38 +03:00
2016-06-21 01:11:43 +01:00
2016-04-06 09:39:16 +03:00
2016-01-01 08:43:22 +04:00
2016-04-06 09:39:16 +03:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-05-23 10:08:34 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-20 13:44:33 -05:00
2016-01-20 13:44:33 -05:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-05-23 10:08:34 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-18 14:30:23 +00:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-06-02 13:18:42 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-05-24 10:05:59 -06:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00
2016-01-01 08:43:22 +04:00