summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-19 20:04:57 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-19 20:04:57 +0000
commit95df797b2e711286e3909a7d25e36519d5a6e335 (patch)
treed1fe8a2be36e83050173289cf31b3daff52697a1 /src/target
parentee340df8417772b8c29a54ddf7b36556ec20d609 (diff)
downloadopenocd+libswd-95df797b2e711286e3909a7d25e36519d5a6e335.tar.gz
openocd+libswd-95df797b2e711286e3909a7d25e36519d5a6e335.tar.bz2
openocd+libswd-95df797b2e711286e3909a7d25e36519d5a6e335.tar.xz
openocd+libswd-95df797b2e711286e3909a7d25e36519d5a6e335.zip
- add search paths via new arg -s (-search). Thanks Ted Roth
- updated docs for new command git-svn-id: svn://svn.berlios.de/openocd/trunk@312 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 4d6ffe3d..ab8a1610 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -224,7 +224,7 @@ int target_init_handler(struct target_s *target, enum target_event event, void *
{
target_unregister_event_callback(target_init_handler, priv);
- script = fopen(target->reset_script, "r");
+ script = open_file_from_path(cmd_ctx, target->reset_script, "r");
if (!script)
{
ERROR("couldn't open script file %s", target->reset_script);