aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-evts.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-20 20:19:54 +0000
committerTom Tromey <tromey@redhat.com>2013-05-20 20:19:54 +0000
commit5d153bd188d03fcd90deb4d3a51e93f77e095894 (patch)
treec22c47c0d2982677307259692743724e6f7857cb /gdb/python/py-evts.c
parent56cc411c4ba10261e0149bdb80d613969c3ab130 (diff)
downloadgdb-5d153bd188d03fcd90deb4d3a51e93f77e095894.zip
gdb-5d153bd188d03fcd90deb4d3a51e93f77e095894.tar.gz
gdb-5d153bd188d03fcd90deb4d3a51e93f77e095894.tar.bz2
* python/py-event.h (gdbpy_initialize_event_generic): Use
CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. * python/py-evts.c (add_new_registry): Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. * python/python-internal.h (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
Diffstat (limited to 'gdb/python/py-evts.c')
-rw-r--r--gdb/python/py-evts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-evts.c b/gdb/python/py-evts.c
index 4c079e2..427b6d5 100644
--- a/gdb/python/py-evts.c
+++ b/gdb/python/py-evts.c
@@ -37,7 +37,7 @@ static struct PyModuleDef EventModuleDef =
/* Initialize python events. */
-static int
+static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
add_new_registry (eventregistry_object **registryp, char *name)
{
*registryp = create_eventregistry_object ();