forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2013-05-20 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2013-05-20 Tom Tromey <tromey@redhat.com>
|
2013-05-20 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* python/py-arch.c (archpy_disassemble): Update.
|
* python/py-arch.c (archpy_disassemble): Update.
|
||||||
|
|||||||
@@ -115,8 +115,9 @@ extern int emit_new_objfile_event (struct objfile *objfile);
|
|||||||
|
|
||||||
extern void evpy_dealloc (PyObject *self);
|
extern void evpy_dealloc (PyObject *self);
|
||||||
extern int evpy_add_attribute (PyObject *event,
|
extern int evpy_add_attribute (PyObject *event,
|
||||||
char *name, PyObject *attr);
|
char *name, PyObject *attr)
|
||||||
int gdbpy_initialize_event_generic (PyTypeObject *type, char *name);
|
CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION;
|
||||||
|
int gdbpy_initialize_event_generic (PyTypeObject *type, char *name)
|
||||||
|
CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION;
|
||||||
|
|
||||||
#endif /* GDB_PY_EVENT_H */
|
#endif /* GDB_PY_EVENT_H */
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ static struct PyModuleDef EventModuleDef =
|
|||||||
|
|
||||||
/* Initialize python events. */
|
/* Initialize python events. */
|
||||||
|
|
||||||
static int
|
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
|
||||||
add_new_registry (eventregistry_object **registryp, char *name)
|
add_new_registry (eventregistry_object **registryp, char *name)
|
||||||
{
|
{
|
||||||
*registryp = create_eventregistry_object ();
|
*registryp = create_eventregistry_object ();
|
||||||
|
|||||||
@@ -53,6 +53,13 @@
|
|||||||
#define CPYCHECKER_SETS_EXCEPTION
|
#define CPYCHECKER_SETS_EXCEPTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WITH_CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION_ATTRIBUTE
|
||||||
|
#define CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION \
|
||||||
|
__attribute__ ((cpychecker_negative_result_sets_exception))
|
||||||
|
#else
|
||||||
|
#define CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/* Python 2.4 doesn't include stdint.h soon enough to get {u,}intptr_t
|
/* Python 2.4 doesn't include stdint.h soon enough to get {u,}intptr_t
|
||||||
|
|||||||
Reference in New Issue
Block a user