2014-07-30 05:29:50 +02:00
|
|
|
/**
|
|
|
|
|
******************************************************************************
|
|
|
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
|
|
|
******************************************************************************
|
|
|
|
|
* Copyright 2014 Ben Vanik. All rights reserved. *
|
|
|
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
|
|
|
******************************************************************************
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef POLY_DEBUGGING_H_
|
|
|
|
|
#define POLY_DEBUGGING_H_
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
2015-02-01 07:49:47 +01:00
|
|
|
#include "poly/config.h"
|
2014-07-30 05:29:50 +02:00
|
|
|
|
|
|
|
|
namespace poly {
|
|
|
|
|
namespace debugging {
|
|
|
|
|
|
|
|
|
|
// Returns true if a debugger is attached to this process.
|
|
|
|
|
// The state may change at any time (attach after launch, etc), so do not
|
|
|
|
|
// cache this value. Determining if the debugger is attached is expensive,
|
|
|
|
|
// though, so avoid calling it frequently.
|
|
|
|
|
bool IsDebuggerAttached();
|
|
|
|
|
|
2014-07-30 07:12:39 +02:00
|
|
|
// Breaks into the debugger if it is attached.
|
|
|
|
|
// If no debugger is present, a signal will be raised.
|
|
|
|
|
void Break();
|
|
|
|
|
|
2014-07-30 05:29:50 +02:00
|
|
|
} // namespace debugging
|
|
|
|
|
} // namespace poly
|
|
|
|
|
|
|
|
|
|
#endif // POLY_DEBUGGING_H_
|