David Brownell <david-b@pacbell.net>:
OpenOCD doesn't actually *need* to be keeping all TCP ports active ... creating security issues in some network configs. Instead, let config file specify e.g. "tcl_port 0" (or gdb_port, telnet_port) to disable that particular remote access method. git-svn-id: svn://svn.berlios.de/openocd/trunk@2240 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -44,7 +44,7 @@ static int gdb_breakpoint_override;
|
||||
static enum breakpoint_type gdb_breakpoint_override_type;
|
||||
|
||||
extern int gdb_error(connection_t *connection, int retval);
|
||||
static unsigned short gdb_port;
|
||||
static unsigned short gdb_port = 3333;
|
||||
static const char *DIGITS = "0123456789abcdef";
|
||||
|
||||
static void gdb_log_callback(void *priv, const char *file, int line,
|
||||
@@ -2198,8 +2198,8 @@ int gdb_init(void)
|
||||
|
||||
if (gdb_port == 0 && server_use_pipes == 0)
|
||||
{
|
||||
LOG_DEBUG("no gdb port specified, using default port 3333");
|
||||
gdb_port = 3333;
|
||||
LOG_INFO("gdb port disabled");
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
if (server_use_pipes)
|
||||
|
||||
Reference in New Issue
Block a user