Shuffling --debug around and making it work.
This commit is contained in:
@@ -27,6 +27,14 @@
|
||||
#include "xenia/kernel/objects/xthread.h"
|
||||
#include "xenia/kernel/objects/xuser_module.h"
|
||||
|
||||
#if 0 && DEBUG
|
||||
#define DEFAULT_DEBUG_FLAG true
|
||||
#else
|
||||
#define DEFAULT_DEBUG_FLAG false
|
||||
#endif
|
||||
|
||||
DEFINE_bool(debug, DEFAULT_DEBUG_FLAG,
|
||||
"Allow debugging and retain debug information.");
|
||||
DEFINE_string(debug_session_path, "", "Debug output path.");
|
||||
DEFINE_bool(wait_for_debugger, false,
|
||||
"Waits for a debugger to attach before starting the game.");
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#ifndef XENIA_DEBUG_DEBUGGER_H_
|
||||
#define XENIA_DEBUG_DEBUGGER_H_
|
||||
|
||||
#include <gflags/gflags.h>
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
@@ -23,6 +25,8 @@
|
||||
#include "xenia/cpu/thread_state.h"
|
||||
#include "xenia/debug/breakpoint.h"
|
||||
|
||||
DECLARE_bool(debug);
|
||||
|
||||
namespace xe {
|
||||
class Emulator;
|
||||
} // namespace xe
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "xenia/base/logging.h"
|
||||
#include "xenia/debug/debugger.h"
|
||||
|
||||
DEFINE_int32(gdb_port, 9000, "Debugger GDB server TCP port.");
|
||||
DEFINE_int32(gdb_port, 9000, "Debugger gdbserver TCP port.");
|
||||
|
||||
namespace xe {
|
||||
namespace debug {
|
||||
|
||||
Reference in New Issue
Block a user