Mono.Debugger.Backend.ThreadDB.Initialize C# (CSharp) Method

Initialize() protected method

protected Initialize ( Inferior target ) : bool
target Inferior
return bool
        protected bool Initialize(Inferior target)
        {
            try {
                mutex.Lock ();
                this.target = target;

                handle = mono_debugger_thread_db_init (
                    target.PID, global_lookup_func, read_memory_func,
                    write_memory_func);

                return handle != IntPtr.Zero;
            } finally {
                this.target = null;
                mutex.Unlock ();
            }
        }

Usage Example

示例#1
0
        public static ThreadDB Create(Process process, Inferior target)
        {
            ThreadDB db = new ThreadDB (process);
            if (!db.Initialize (target))
                return null;

            return db;
        }
All Usage Examples Of Mono.Debugger.Backend.ThreadDB::Initialize