mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 11:57:39 +08:00
platform connect <args> platform disconnect Each platform can decide the args they want to use for "platform connect". I will need to add a function that gets the connect options for the current platform as each one can have different options and argument counts. Hooked up more functionality in the PlatformMacOSX and PlatformRemoteiOS. Also started an platform agnostic PlatformRemoteGDBServer.cpp which can end up being used by one or more actual platforms. It can also be specialized and allow for platform specific commands. llvm-svn: 128123
87 lines
1.8 KiB
C++
87 lines
1.8 KiB
C++
//===-- StringExtractorGDBRemote.h ------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef utility_StringExtractorGDBRemote_h_
|
|
#define utility_StringExtractorGDBRemote_h_
|
|
|
|
// C Includes
|
|
// C++ Includes
|
|
#include <string>
|
|
// Other libraries and framework includes
|
|
// Project includes
|
|
#include "Utility/StringExtractor.h"
|
|
|
|
class StringExtractorGDBRemote : public StringExtractor
|
|
{
|
|
public:
|
|
|
|
StringExtractorGDBRemote() :
|
|
StringExtractor ()
|
|
{
|
|
}
|
|
|
|
StringExtractorGDBRemote(const char *cstr) :
|
|
StringExtractor (cstr)
|
|
{
|
|
}
|
|
StringExtractorGDBRemote(const StringExtractorGDBRemote& rhs) :
|
|
StringExtractor (rhs)
|
|
{
|
|
}
|
|
|
|
virtual ~StringExtractorGDBRemote()
|
|
{
|
|
}
|
|
|
|
enum ServerPacketType
|
|
{
|
|
eServerPacketType_nack = 0,
|
|
eServerPacketType_ack,
|
|
eServerPacketType_invalid,
|
|
eServerPacketType_unimplemented,
|
|
eServerPacketType_interrupt, // CTRL+c packet or "\x03"
|
|
eServerPacketType_qHostInfo
|
|
};
|
|
|
|
ServerPacketType
|
|
GetServerPacketType () const;
|
|
|
|
enum ResponseType
|
|
{
|
|
eUnsupported = 0,
|
|
eAck,
|
|
eNack,
|
|
eError,
|
|
eOK,
|
|
eResponse,
|
|
};
|
|
|
|
ResponseType
|
|
GetResponseType () const;
|
|
|
|
bool
|
|
IsOKResponse() const;
|
|
|
|
bool
|
|
IsUnsupportedResponse() const;
|
|
|
|
bool
|
|
IsNormalResponse () const;
|
|
|
|
bool
|
|
IsErrorResponse() const;
|
|
|
|
// Returns zero if the packet isn't a EXX packet where XX are two hex
|
|
// digits. Otherwise the error encoded in XX is returned.
|
|
uint8_t
|
|
GetError();
|
|
};
|
|
|
|
#endif // utility_StringExtractorGDBRemote_h_
|