Shuffling --debug around and making it work.

This commit is contained in:
Ben Vanik
2015-07-22 17:26:10 -07:00
parent 2f233c7974
commit a42ab648ed
9 changed files with 28 additions and 24 deletions

View File

@@ -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.");

View File

@@ -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

View File

@@ -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 {