Make debugger port runtime configurable

Convert debug server port from a compile-time constant to a context
variable. This enables each engine instance (either running in the
same process or in different processes) to listen for connections
at different ports, i.e., multiple engines can be debugged at the
same time on the same machine.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2017-06-21 15:30:28 +02:00
committed by yichoi
parent cfa4fdd1ef
commit 18283d22c0
21 changed files with 59 additions and 47 deletions
@@ -35,6 +35,9 @@ void jerry_debugger_stop (void);
void jerry_debugger_continue (void);
void jerry_debugger_stop_at_breakpoint (bool enable_stop_at_breakpoint);
void jerry_debugger_init (uint16_t port);
void jerry_debugger_cleanup (void);
/**
* @}
*/