Mono.Debugger.Process.get_thread_info C# (CSharp) Method

get_thread_info() static private method

static private get_thread_info ( Inferior inferior, SingleSteppingEngine engine ) : void
inferior Mono.Debugger.Backend.Inferior
engine Mono.Debugger.Backend.SingleSteppingEngine
return void
        void get_thread_info(Inferior inferior, SingleSteppingEngine engine)
        {
            if (thread_db == null) {
                if (mono_manager == null)
                    return;
                Report.Error ("Failed to initialize thread_db on {0}: {1} {2}",
                          start.CommandLine, start, Environment.StackTrace);
                throw new InternalError ();
            }

            bool found = false;
            thread_db.GetThreadInfo (inferior, delegate (int lwp, long tid) {
                if (lwp != engine.PID)
                    return;

                engine.SetTID (tid);
                found = true;
            });

            if (!found)
                Report.Error ("Cannot find thread {0:x} in {1}",
                          engine.PID, start.CommandLine);
        }