Browse Source

Add Core::GetState() for debugger

pull/15/merge
Mathieu Vaillancourt 12 years ago
parent
commit
564e3f5032
  1. 5
      src/core/src/core.cpp
  2. 4
      src/core/src/core.h

5
src/core/src/core.cpp

@ -143,6 +143,11 @@ int Init() {
return 0; return 0;
} }
ARMul_State* GetState()
{
return core->state;
}
void Shutdown() { void Shutdown() {
//delete g_arm_state; //delete g_arm_state;
//g_arm_state = NULL; //g_arm_state = NULL;

4
src/core/src/core.h

@ -25,6 +25,8 @@
#ifndef CORE_CORE_H_ #ifndef CORE_CORE_H_
#define CORE_CORE_H_ #define CORE_CORE_H_
#include "arm/armdefs.h"
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
namespace Core { namespace Core {
@ -47,6 +49,8 @@ void Stop();
/// Initialize the core /// Initialize the core
int Init(); int Init();
ARMul_State* GetState();
} // namespace } // namespace
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save