diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2011-11-23 23:39:57 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2011-11-23 23:51:36 +0000 |
commit | b46231669928bf4edb48c50b327cb68b0d01a27e (patch) | |
tree | b47d50c5ff868cfce2eb0201e0343af90c9c4e0e /src/openocd.c | |
parent | 17322b729c9af2d1837fc1407f8ac9fc4b9483f5 (diff) | |
download | riscv-openocd-b46231669928bf4edb48c50b327cb68b0d01a27e.zip riscv-openocd-b46231669928bf4edb48c50b327cb68b0d01a27e.tar.gz riscv-openocd-b46231669928bf4edb48c50b327cb68b0d01a27e.tar.bz2 |
target: fix init_targets script handling
This fixes an issue when init is called before init_targets has been
executed.
Make sure init_targets is called before init.
Change-Id: Icd5bd4c2a8eea2e399d9de4e331a77560e9672ac
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/235
Tested-by: jenkins
Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/openocd.c b/src/openocd.c index 2c27fc4..66555e6 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -292,10 +292,6 @@ static int openocd_thread(int argc, char *argv[], struct command_context *cmd_ct if (ERROR_OK != ret) return EXIT_FAILURE; - ret = command_run_line(cmd_ctx, "init_targets"); - if (ERROR_OK != ret) - ret = EXIT_FAILURE; - if (init_at_startup) { ret = command_run_line(cmd_ctx, "init"); |