This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] py-frame.c: Delete FIRST_ERROR, superfluous
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 23 Nov 2013 14:50:32 -0800
- Subject: [commit] py-frame.c: Delete FIRST_ERROR, superfluous
- Authentication-results: sourceware.org; auth=none
Hi.
I happened to notice defining FIRST_ERROR is unnecessary. Committed.
2013-11-23 Doug Evans <xdje42@gmail.com>
* python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
superfluous.
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c
index bff3ea4..0d024eb 100644
--- a/gdb/python/py-frame.c
+++ b/gdb/python/py-frame.c
@@ -646,12 +646,8 @@ gdbpy_initialize_frames (void)
#define SET(name, description) \
if (PyModule_AddIntConstant (gdb_module, "FRAME_"#name, name) < 0) \
return -1;
-#define FIRST_ERROR(name) \
- if (PyModule_AddIntConstant (gdb_module, "FRAME_"#name, name) < 0) \
- return -1;
#include "unwind_stop_reasons.def"
#undef SET
-#undef FIRST_ERROR
return gdb_pymodule_addobject (gdb_module, "Frame",
(PyObject *) &frame_object_type);