• Antonio Borneo's avatar
    gdb_server: add per target option "-gdb-port" · ab858feb
    Antonio Borneo authored
    The argument passed to global config command "gdb_port" is usually,
    but not always, a TCP port number. In case of multiple targets, this
    numeric value is used as the first port of a set of consecutive TCP
    ports assigned one per target.
    If the argument is not a numeric value (e.g. "pipe", "disabled", ...)
    then incrementing it for the next target has no sense.
    Add the option "-gdb-port number" to the commands "target create" and
    "$target_name configure" to override, for the specific target, the
    general global configuration.
    This permits to use a per target "-gdb-port disabled", when no gdb
    port is required for that specific target.
    It also makes possible to choose a custom TCP port number for each
    target, overriding the usual sequence of consecutive port numbers.
    Change-Id: I3b9a1910b28ab4bc757e839d0e5d08ffc29f7ab4
    Signed-off-by: default avatarAntonio Borneo <borneo.antonio@gmail.com>
    Reviewed-on: http://openocd.zylin.com/4530
    Tested-by: jenkins
    Reviewed-by: default avatarChristopher Head <chead@zaber.com>
    Reviewed-by: default avatarMatthias Welwarsky <matthias@welwarsky.de>
target.c 171 KB