diff options
author | Eli Zaretskii <eliz@gnu.org> | 2004-07-30 19:23:54 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2004-07-30 19:23:54 +0000 |
commit | 0b66e38ceaeab28fb4138f6e4b42d1f70116a46b (patch) | |
tree | 2fe988025b71c05df00c75ec395034c740b8b193 /gdb/wince.c | |
parent | 014d698b35008f566973fc2fe0d4a0d3e3009a06 (diff) | |
download | gdb-0b66e38ceaeab28fb4138f6e4b42d1f70116a46b.zip gdb-0b66e38ceaeab28fb4138f6e4b42d1f70116a46b.tar.gz gdb-0b66e38ceaeab28fb4138f6e4b42d1f70116a46b.tar.bz2 |
* defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
* exec.c (exec_file_attach):
* nto-tdep.c (nto_find_and_open_solib):
* pa64solib.c (pa64_solib_sizeof_symbol_table):
* solib.c (solib_open):
* somsolib.c (som_solib_sizeof_symbol_table):
* source.c (is_regular_file, openp, open_source_file):
* symfile.c (symfile_bfd_open):
* wince.c (upload_to_device): Differentiate between the search for
binary and source files.
* gdb.texinfo (Source Path): Document the new behavior of
searching for the source files.
Diffstat (limited to 'gdb/wince.c')
-rw-r--r-- | gdb/wince.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/wince.c b/gdb/wince.c index b70e5b9..a9dafee 100644 --- a/gdb/wince.c +++ b/gdb/wince.c @@ -1587,7 +1587,8 @@ upload_to_device (const char *to, const char *from) return remotefile; /* Don't bother uploading. */ /* Open the source. */ - if ((fd = openp (getenv ("PATH"), TRUE, (char *) from, O_RDONLY, 0, NULL)) < 0) + if ((fd = openp (getenv ("PATH"), OPF_TRY_CWD_FIRST, (char *) from, O_RDONLY, + 0, NULL)) < 0) error ("couldn't open %s", from); /* Get the time for later comparison. */ |