2 * Copyright 2009-2016, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Copyright 2011-2016, Rene Gollent, rene@gollent.com.
4 * Distributed under the terms of the MIT License.
7 #include "DebuggerGlobals.h"
9 #include "ImageDebugLoadingStateHandlerRoster.h"
10 #include "TargetHostInterface.h"
11 #include "TypeHandlerRoster.h"
15 debugger_global_init(TargetHostInterfaceRoster::Listener
* listener
)
17 status_t error
= TypeHandlerRoster::CreateDefault();
21 error
= ImageDebugLoadingStateHandlerRoster::CreateDefault();
25 error
= TargetHostInterfaceRoster::CreateDefault(listener
);
29 // for now, always create an instance of the local interface
31 TargetHostInterface
* hostInterface
;
32 TargetHostInterfaceRoster
* roster
= TargetHostInterfaceRoster::Default();
33 error
= roster
->CreateInterface(roster
->InterfaceInfoAt(0), NULL
,
43 debugger_global_uninit()
45 TargetHostInterfaceRoster::DeleteDefault();
46 ImageDebugLoadingStateHandlerRoster::DeleteDefault();
47 TypeHandlerRoster::DeleteDefault();