diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-19 20:04:57 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-19 20:04:57 +0000 |
commit | 95df797b2e711286e3909a7d25e36519d5a6e335 (patch) | |
tree | d1fe8a2be36e83050173289cf31b3daff52697a1 /src/server | |
parent | ee340df8417772b8c29a54ddf7b36556ec20d609 (diff) | |
download | openocd_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/server')
-rw-r--r-- | src/server/gdb_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index c256c24b..71f82dd4 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -32,6 +32,7 @@ #include "breakpoints.h" #include "flash.h" #include "target_request.h" +#include "configuration.h" #include <string.h> #include <errno.h> @@ -539,7 +540,7 @@ int gdb_program_handler(struct target_s *target, enum target_event event, void * if (target->gdb_program_script) { - script = fopen(target->gdb_program_script, "r"); + script = open_file_from_path(cmd_ctx, target->gdb_program_script, "r"); if (!script) { ERROR("couldn't open script file %s", target->gdb_program_script); |