This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [python] [patch] PR 13369/13374


>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:

Phil> @@ -157,15 +157,9 @@ inferior_to_inferior_object (struct inferior *inferior)
Phil>    inf_obj = inferior_data (inferior, infpy_inf_data_key);
Phil>    if (!inf_obj)
Phil>      {
Phil> -      struct cleanup *cleanup;
Phil> -      cleanup = ensure_python_env (python_gdbarch, python_language);
Phil> -
Phil>        inf_obj = PyObject_New (inferior_object, &inferior_object_type);
Phil>        if (!inf_obj)
Phil> -	{
Phil> -	  do_cleanups (cleanup);
Phil>  	  return NULL;
Phil> -	}

This doesn't handle the call chain

delete_thread_object -> find_inferior_object -> inferior_to_inferior_object

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]