mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
fix typos in debugger code (#2219)
JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson geoff@linux.intel.com
This commit is contained in:
parent
51e3c4455a
commit
d990832569
@ -28,12 +28,12 @@
|
||||
#define JERRY_DEBUGGER_MAX_BUFFER_SIZE 128
|
||||
|
||||
/**
|
||||
* Maximum number of bytes can be received in a single message.
|
||||
* Maximum number of bytes that can be sent in a single message.
|
||||
*/
|
||||
#define JERRY_DEBUGGER_MAX_SEND_SIZE (JERRY_DEBUGGER_MAX_BUFFER_SIZE - 1)
|
||||
|
||||
/**
|
||||
* Maximum number of bytes can be received in a single message.
|
||||
* Maximum number of bytes that can be received in a single message.
|
||||
*/
|
||||
#define JERRY_DEBUGGER_MAX_RECEIVE_SIZE (JERRY_DEBUGGER_MAX_BUFFER_SIZE - 6)
|
||||
|
||||
|
||||
@ -80,7 +80,7 @@ jerry_debugger_free_unreferenced_byte_code (void)
|
||||
* Send backtrace.
|
||||
*/
|
||||
static void
|
||||
jerry_debugger_send_backtrace (uint8_t *recv_buffer_p) /**< pointer the the received data */
|
||||
jerry_debugger_send_backtrace (uint8_t *recv_buffer_p) /**< pointer to the received data */
|
||||
{
|
||||
JERRY_DEBUGGER_RECEIVE_BUFFER_AS (jerry_debugger_receive_get_backtrace_t, get_backtrace_p);
|
||||
|
||||
@ -198,7 +198,7 @@ jerry_debugger_send_eval (const lit_utf8_byte_t *eval_string_p, /**< evaluated s
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Primitve type. */
|
||||
/* Primitive type. */
|
||||
message = ecma_op_to_string (result);
|
||||
JERRY_ASSERT (!ECMA_IS_VALUE_ERROR (message));
|
||||
}
|
||||
@ -253,7 +253,7 @@ jerry_debugger_sleep (void)
|
||||
* false - otherwise
|
||||
*/
|
||||
inline bool __attr_always_inline___
|
||||
jerry_debugger_process_message (uint8_t *recv_buffer_p, /**< pointer the the received data */
|
||||
jerry_debugger_process_message (uint8_t *recv_buffer_p, /**< pointer to the received data */
|
||||
uint32_t message_size, /**< message size */
|
||||
bool *resume_exec_p, /**< pointer to the resume exec flag */
|
||||
uint8_t *expected_message_type_p, /**< message type */
|
||||
|
||||
@ -90,7 +90,7 @@ typedef enum
|
||||
{
|
||||
JERRY_DEBUGGER_CONNECTED = 1u << 0, /**< debugger is connected */
|
||||
JERRY_DEBUGGER_BREAKPOINT_MODE = 1u << 1, /**< debugger waiting at a breakpoint */
|
||||
JERRY_DEBUGGER_VM_STOP = 1u << 2, /**< stop at the next breakpoint regardless it is enabled */
|
||||
JERRY_DEBUGGER_VM_STOP = 1u << 2, /**< stop at the next breakpoint even if disabled */
|
||||
JERRY_DEBUGGER_VM_IGNORE = 1u << 3, /**< ignore all breakpoints */
|
||||
JERRY_DEBUGGER_VM_IGNORE_EXCEPTION = 1u << 4, /**< debugger stop at an exception */
|
||||
JERRY_DEBUGGER_PARSER_WAIT = 1u << 5, /**< debugger should wait after parsing is completed */
|
||||
@ -142,7 +142,7 @@ typedef enum
|
||||
JERRY_DEBUGGER_WAITING_AFTER_PARSE = 13, /**< engine waiting for a parser resume */
|
||||
/* These messages are generic messages. */
|
||||
JERRY_DEBUGGER_RELEASE_BYTE_CODE_CP = 14, /**< invalidate byte code compressed pointer */
|
||||
JERRY_DEBUGGER_MEMSTATS_RECEIVE = 15, /**< memstats sent to the client*/
|
||||
JERRY_DEBUGGER_MEMSTATS_RECEIVE = 15, /**< memstats sent to the client */
|
||||
JERRY_DEBUGGER_BREAKPOINT_HIT = 16, /**< notify breakpoint hit */
|
||||
JERRY_DEBUGGER_EXCEPTION_HIT = 17, /**< notify exception hit */
|
||||
JERRY_DEBUGGER_EXCEPTION_STR = 18, /**< exception string fragment */
|
||||
@ -151,7 +151,7 @@ typedef enum
|
||||
JERRY_DEBUGGER_BACKTRACE_END = 21, /**< last backtrace data */
|
||||
JERRY_DEBUGGER_EVAL_RESULT = 22, /**< eval result */
|
||||
JERRY_DEBUGGER_EVAL_RESULT_END = 23, /**< last part of eval result */
|
||||
JERRY_DEBUGGER_WAIT_FOR_SOURCE = 24, /**< engine waiting for a source code */
|
||||
JERRY_DEBUGGER_WAIT_FOR_SOURCE = 24, /**< engine waiting for source code */
|
||||
JERRY_DEBUGGER_OUTPUT_RESULT = 25, /**< output sent by the program to the debugger */
|
||||
JERRY_DEBUGGER_OUTPUT_RESULT_END = 26, /**< last output result data */
|
||||
|
||||
@ -193,7 +193,7 @@ typedef enum
|
||||
typedef enum
|
||||
{
|
||||
JERRY_DEBUGGER_EVAL_OK = 1, /**< eval result, no error */
|
||||
JERRY_DEBUGGER_EVAL_ERROR = 2, /**< eval result when an error is occured */
|
||||
JERRY_DEBUGGER_EVAL_ERROR = 2, /**< eval result when an error has occurred */
|
||||
} jerry_debugger_eval_subtype_t;
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user