]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-framefilter.c
gdb/python: fix FrameDecorator regression on Python 2
[thirdparty/binutils-gdb.git] / gdb / python / py-framefilter.c
index 6dd741ab7040fc16ea74a59f6f81f1bf171fb677..18071982e201d2b357d5277ff38a55999865cde3 100644 (file)
@@ -924,7 +924,11 @@ py_print_frame (PyObject *filter, frame_filter_flags flags,
 
              function = function_to_free.get ();
            }
-         else if (PyLong_Check (py_func.get ()))
+         else if (PyLong_Check (py_func.get ())
+#if PY_MAJOR_VERSION == 2
+                  || PyInt_Check (py_func.get ())
+#endif
+                  )
            {
              CORE_ADDR addr;
              struct bound_minimal_symbol msymbol;