v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::wasm::gdb_server::Packet Class Reference

#include <packet.h>

Collaboration diagram for v8::internal::wasm::gdb_server::Packet:

Public Types

enum class  ErrDef { None = 0 , BadFormat = 1 , BadArgs = 2 , Failed = 3 }
 

Public Member Functions

 Packet ()
 
void Clear ()
 
void Rewind ()
 
bool EndOfPacket () const
 
void AddRawChar (char ch)
 
void AddBlock (const void *ptr, uint32_t len)
 
void AddWord8 (uint8_t val)
 
void AddNumberSep (uint64_t val, char sep)
 
void AddString (const char *str)
 
void AddHexString (const char *str)
 
bool GetRawChar (char *ch)
 
bool GetBlock (void *ptr, uint32_t len)
 
bool GetWord8 (uint8_t *val)
 
bool GetNumberSep (uint64_t *val, char *sep)
 
bool GetString (std::string *str)
 
bool GetHexString (std::string *str)
 
const char * GetPayload () const
 
size_t GetPayloadSize () const
 
bool GetSequence (int32_t *seq) const
 
void ParseSequence ()
 
void SetSequence (int32_t seq)
 
void SetError (ErrDef)
 
std::string GetPacketData () const
 

Private Attributes

int32_t seq_
 
std::string data_
 
size_t read_index_
 

Detailed Description

Definition at line 17 of file packet.h.

Member Enumeration Documentation

◆ ErrDef

Enumerator
None 
BadFormat 
BadArgs 
Failed 

Definition at line 85 of file packet.h.

Constructor & Destructor Documentation

◆ Packet()

v8::internal::wasm::gdb_server::Packet::Packet ( )

Definition at line 13 of file packet.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AddBlock()

void v8::internal::wasm::gdb_server::Packet::AddBlock ( const void * ptr,
uint32_t len )

Definition at line 36 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddHexString()

void v8::internal::wasm::gdb_server::Packet::AddHexString ( const char * str)

Definition at line 55 of file packet.cc.

Here is the call graph for this function:

◆ AddNumberSep()

void v8::internal::wasm::gdb_server::Packet::AddNumberSep ( uint64_t val,
char sep )

Definition at line 64 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddRawChar()

void v8::internal::wasm::gdb_server::Packet::AddRawChar ( char ch)

Definition at line 27 of file packet.cc.

Here is the caller graph for this function:

◆ AddString()

void v8::internal::wasm::gdb_server::Packet::AddString ( const char * str)

Definition at line 46 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddWord8()

void v8::internal::wasm::gdb_server::Packet::AddWord8 ( uint8_t val)

Definition at line 29 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Clear()

void v8::internal::wasm::gdb_server::Packet::Clear ( )

Definition at line 18 of file packet.cc.

Here is the caller graph for this function:

◆ EndOfPacket()

bool v8::internal::wasm::gdb_server::Packet::EndOfPacket ( ) const

Definition at line 25 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBlock()

bool v8::internal::wasm::gdb_server::Packet::GetBlock ( void * ptr,
uint32_t len )

Definition at line 232 of file packet.cc.

Here is the call graph for this function:

◆ GetHexString()

bool v8::internal::wasm::gdb_server::Packet::GetHexString ( std::string * str)

Definition at line 258 of file packet.cc.

Here is the call graph for this function:

◆ GetNumberSep()

bool v8::internal::wasm::gdb_server::Packet::GetNumberSep ( uint64_t * val,
char * sep )

Definition at line 111 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPacketData()

std::string v8::internal::wasm::gdb_server::Packet::GetPacketData ( ) const

Definition at line 321 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPayload()

const char * v8::internal::wasm::gdb_server::Packet::GetPayload ( ) const

Definition at line 284 of file packet.cc.

Here is the caller graph for this function:

◆ GetPayloadSize()

size_t v8::internal::wasm::gdb_server::Packet::GetPayloadSize ( ) const

Definition at line 286 of file packet.cc.

Here is the caller graph for this function:

◆ GetRawChar()

bool v8::internal::wasm::gdb_server::Packet::GetRawChar ( char * ch)

Definition at line 167 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSequence()

bool v8::internal::wasm::gdb_server::Packet::GetSequence ( int32_t * seq) const

Definition at line 288 of file packet.cc.

Here is the caller graph for this function:

◆ GetString()

bool v8::internal::wasm::gdb_server::Packet::GetString ( std::string * str)

Definition at line 248 of file packet.cc.

Here is the call graph for this function:

◆ GetWord8()

bool v8::internal::wasm::gdb_server::Packet::GetWord8 ( uint8_t * val)

Definition at line 221 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseSequence()

void v8::internal::wasm::gdb_server::Packet::ParseSequence ( )

Definition at line 299 of file packet.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Rewind()

void v8::internal::wasm::gdb_server::Packet::Rewind ( )

Definition at line 23 of file packet.cc.

◆ SetError()

void v8::internal::wasm::gdb_server::Packet::SetError ( ErrDef error)

Definition at line 315 of file packet.cc.

Here is the call graph for this function:

◆ SetSequence()

void v8::internal::wasm::gdb_server::Packet::SetSequence ( int32_t seq)

Definition at line 313 of file packet.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ data_

std::string v8::internal::wasm::gdb_server::Packet::data_
private

Definition at line 96 of file packet.h.

◆ read_index_

size_t v8::internal::wasm::gdb_server::Packet::read_index_
private

Definition at line 97 of file packet.h.

◆ seq_

int32_t v8::internal::wasm::gdb_server::Packet::seq_
private

Definition at line 95 of file packet.h.


The documentation for this class was generated from the following files: