This is an automated email from Gerrit.

Peter Bigot ([email protected]) just uploaded a new patch set to Gerrit, which 
you can find at http://openocd.zylin.com/3637

-- gerrit

commit bacdecae0a2e73da834e7a5c5920f8d0bbc16b86
Author: Peter A. Bigot <[email protected]>
Date:   Wed Aug 10 16:54:00 2016 -0500

    gdb_server: support disabling server
    
    Although the documentation suggested this worked, and it is implemented
    for tcl_port and telnet_port, the directive was not recognized for
    gdb_port.
    
    Change-Id: I38d95ee879ec3f6d551603b7313749a21e0e498e
    Signed-off-by: Peter A. Bigot <[email protected]>

diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 7d501b4..4a18198 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -2944,6 +2944,11 @@ static int gdb_target_add_one(struct target *target)
 
 int gdb_target_add_all(struct target *target)
 {
+       if (strcmp(gdb_port, "disabled") == 0) {
+               LOG_INFO("gdb server disabled");
+               return ERROR_OK;
+       }
+
        if (NULL == target) {
                LOG_WARNING("gdb services need one or more targets defined");
                return ERROR_OK;

-- 

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to