diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:19:54 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:19:54 +0000 |
commit | 5d153bd188d03fcd90deb4d3a51e93f77e095894 (patch) | |
tree | c22c47c0d2982677307259692743724e6f7857cb /gdb/python/py-event.h | |
parent | 56cc411c4ba10261e0149bdb80d613969c3ab130 (diff) | |
download | gdb-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-event.h')
-rw-r--r-- | gdb/python/py-event.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/python/py-event.h b/gdb/python/py-event.h index 1db8bd2..4850f1a 100644 --- a/gdb/python/py-event.h +++ b/gdb/python/py-event.h @@ -115,8 +115,9 @@ extern int emit_new_objfile_event (struct objfile *objfile); extern void evpy_dealloc (PyObject *self); extern int evpy_add_attribute (PyObject *event, - char *name, PyObject *attr); -int gdbpy_initialize_event_generic (PyTypeObject *type, char *name); - + char *name, PyObject *attr) + CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION; +int gdbpy_initialize_event_generic (PyTypeObject *type, char *name) + CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION; #endif /* GDB_PY_EVENT_H */ |