]> Git Repo - binutils.git/blobdiff - gdb/python/py-finishbreakpoint.c
Use thread_info and inferior pointers more throughout
[binutils.git] / gdb / python / py-finishbreakpoint.c
index b3978f717d60bd85a0659916234f7878d95aad6f..c33b7dd7aa64a127d4f4aba5787f2b67a98784b3 100644 (file)
@@ -221,14 +221,15 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs)
   if (PyErr_Occurred ())
     return -1;
 
-  thread = ptid_to_global_thread_id (inferior_ptid);
-  if (thread == 0)
+  if (inferior_ptid == null_ptid)
     {
       PyErr_SetString (PyExc_ValueError,
                        _("No thread currently selected."));
       return -1;
     }
 
+  thread = inferior_thread ()->global_num;
+
   if (internal)
     {
       internal_bp = PyObject_IsTrue (internal);
This page took 0.026252 seconds and 4 git commands to generate.