[Debugger] Implementation of transport over serial connection (#2800)
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -193,6 +193,8 @@ jerry_cleanup (void)
|
||||
#ifdef JERRY_DEBUGGER
|
||||
if (JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED)
|
||||
{
|
||||
jerry_debugger_send_type (JERRY_DEBUGGER_CLOSE_CONNECTION);
|
||||
|
||||
jerry_debugger_transport_close ();
|
||||
}
|
||||
#endif /* JERRY_DEBUGGER */
|
||||
|
||||
@@ -38,9 +38,9 @@ typedef struct
|
||||
* The number of message types in the debugger should reflect the
|
||||
* debugger versioning.
|
||||
*/
|
||||
JERRY_STATIC_ASSERT (JERRY_DEBUGGER_MESSAGES_OUT_MAX_COUNT == 32
|
||||
JERRY_STATIC_ASSERT (JERRY_DEBUGGER_MESSAGES_OUT_MAX_COUNT == 33
|
||||
&& JERRY_DEBUGGER_MESSAGES_IN_MAX_COUNT == 21
|
||||
&& JERRY_DEBUGGER_VERSION == 8,
|
||||
&& JERRY_DEBUGGER_VERSION == 9,
|
||||
debugger_version_correlates_to_message_type_count);
|
||||
|
||||
/**
|
||||
|
||||
@@ -156,6 +156,7 @@ typedef enum
|
||||
JERRY_DEBUGGER_SCOPE_CHAIN_END = 29, /**< last output of scope chain */
|
||||
JERRY_DEBUGGER_SCOPE_VARIABLES = 30, /**< scope variables */
|
||||
JERRY_DEBUGGER_SCOPE_VARIABLES_END = 31, /**< last output of scope variables */
|
||||
JERRY_DEBUGGER_CLOSE_CONNECTION = 32, /**< close connection with the client */
|
||||
JERRY_DEBUGGER_MESSAGES_OUT_MAX_COUNT, /**< number of different type of output messages by the debugger */
|
||||
|
||||
/* Messages sent by the client to server. */
|
||||
|
||||
@@ -31,7 +31,7 @@ extern "C"
|
||||
/**
|
||||
* JerryScript debugger protocol version.
|
||||
*/
|
||||
#define JERRY_DEBUGGER_VERSION (8)
|
||||
#define JERRY_DEBUGGER_VERSION (9)
|
||||
|
||||
/**
|
||||
* Types for the client source wait and run method.
|
||||
|
||||
Reference in New Issue
Block a user