File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2920,6 +2920,11 @@ static int gdb_target_start(struct target *target, const char *port)
2920
2920
2921
2921
static int gdb_target_add_one (struct target * target )
2922
2922
{
2923
+ if (strcmp (gdb_port , "disabled" ) == 0 ) {
2924
+ LOG_INFO ("gdb port disabled" );
2925
+ return ERROR_OK ;
2926
+ }
2927
+
2923
2928
/* one gdb instance per smp list */
2924
2929
if ((target -> smp ) && (target -> gdb_service ))
2925
2930
return ERROR_OK ;
@@ -3108,7 +3113,7 @@ static const struct command_registration gdb_command_handlers[] = {
3108
3113
"server listens for the next port number after the "
3109
3114
"base port number specified. "
3110
3115
"No arguments reports GDB port. \"pipe\" means listen to stdin "
3111
- "output to stdout, an integer is base port number, \"disable \" disables "
3116
+ "output to stdout, an integer is base port number, \"disabled \" disables "
3112
3117
"port. Any other string is are interpreted as named pipe to listen to. "
3113
3118
"Output pipe is the same name as input pipe, but with 'o' appended." ,
3114
3119
.usage = "[port_num]" ,
You can’t perform that action at this time.
0 commit comments