50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
/**
|
|
******************************************************************************
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
******************************************************************************
|
|
* Copyright 2013 Ben Vanik. All rights reserved. *
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef XENIA_DEBUG_PROTOCOLS_GDB_GDB_PROTOCOL_H_
|
|
#define XENIA_DEBUG_PROTOCOLS_GDB_GDB_PROTOCOL_H_
|
|
|
|
#include <xenia/common.h>
|
|
#include <xenia/core.h>
|
|
|
|
#include <xenia/debug/protocol.h>
|
|
|
|
|
|
XEDECLARECLASS2(xe, debug, DebugServer);
|
|
|
|
|
|
namespace xe {
|
|
namespace debug {
|
|
namespace protocols {
|
|
namespace gdb {
|
|
|
|
|
|
class GDBProtocol : public Protocol {
|
|
public:
|
|
GDBProtocol(DebugServer* debug_server);
|
|
virtual ~GDBProtocol();
|
|
|
|
virtual int Setup();
|
|
virtual int WaitForClient();
|
|
|
|
protected:
|
|
uint32_t port_;
|
|
|
|
socket_t socket_id_;
|
|
};
|
|
|
|
|
|
} // namespace gdb
|
|
} // namespace protocols
|
|
} // namespace debug
|
|
} // namespace xe
|
|
|
|
|
|
#endif // XENIA_DEBUG_PROTOCOLS_GDB_GDB_PROTOCOL_H_
|