mdebug

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6e505bf2e0af469d27616c708f112921474288dc
parent 420887d81db7234e51430cc02ae01488214dde7e
Author: Brian Swetland <swetland@playground.global>
Date:   Mon, 11 Jan 2016 15:44:26 -0800

debugger: allow attach to select a transport to use

- attach swd, attach jtag, etc

Diffstat:
Mtools/debugger-commands.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/tools/debugger-commands.c b/tools/debugger-commands.c @@ -83,6 +83,15 @@ int do_exit(int argc, param *argv) { } int do_attach(int argc, param *argv) { + if (argc > 0) { + if (!strcmp(argv[0].s, "swd")) { + ACTIVE_TRANSPORT = &SWDP_TRANSPORT; + } else if (!strcmp(argv[0].s, "jtag")) { + ACTIVE_TRANSPORT = &JTAG_TRANSPORT; + } else { + xprintf(XCORE, "unknown transport '%s'\n", argv[0].s); + } + } return swdp_reset(); }