]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
authorDoug Evans <xdje42@gmail.com>
Sat, 23 Nov 2013 22:46:43 +0000 (14:46 -0800)
committerDoug Evans <xdje42@gmail.com>
Sat, 23 Nov 2013 22:46:43 +0000 (14:46 -0800)
superfluous.

gdb/ChangeLog
gdb/python/py-frame.c

index dcca6ebcb86255738c8de173e4876c1b6559d35e..f3e456e6e0bdf4ab460503f643285fd35c532e7c 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-23  Doug Evans  <xdje42@gmail.com>
+
+       * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
+       superfluous.
+
 2013-11-23  Doug Evans  <xdje42@gmail.com>
 
        * python/py-frame.c (frapy_block): Fix error message text.
index bff3ea42c69d55e169be751dc7e97f10d9bc00be..0d024eb5ce42033ee2aa499db8cb81b300a52933 100644 (file)
@@ -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);