From d990832569fdcd5c04c6e27c1d21835296703793 Mon Sep 17 00:00:00 2001 From: Geoff Gustafson Date: Thu, 22 Feb 2018 15:22:16 -0800 Subject: [PATCH] fix typos in debugger code (#2219) JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson geoff@linux.intel.com --- jerry-core/debugger/debugger-ws.h | 4 ++-- jerry-core/debugger/debugger.c | 6 +++--- jerry-core/debugger/debugger.h | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/jerry-core/debugger/debugger-ws.h b/jerry-core/debugger/debugger-ws.h index f3af65bb0..6c55e1fe2 100644 --- a/jerry-core/debugger/debugger-ws.h +++ b/jerry-core/debugger/debugger-ws.h @@ -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) diff --git a/jerry-core/debugger/debugger.c b/jerry-core/debugger/debugger.c index eabd614a9..b78ca1654 100644 --- a/jerry-core/debugger/debugger.c +++ b/jerry-core/debugger/debugger.c @@ -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 */ diff --git a/jerry-core/debugger/debugger.h b/jerry-core/debugger/debugger.h index 0e18050df..0deeb8e3d 100644 --- a/jerry-core/debugger/debugger.h +++ b/jerry-core/debugger/debugger.h @@ -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; /**