summaryrefslogtreecommitdiff
path: root/gdb/pa64solib.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2004-07-30 19:17:20 +0000
committerEli Zaretskii <eliz@gnu.org>2004-07-30 19:17:20 +0000
commitbe75459197a3c0df7337f88b8c2739fe3fbecb81 (patch)
treebb9d38a8cbf116926c4aa944105124210a0e4541 /gdb/pa64solib.c
parent5cc1134f951d38efe3063b63e0473ef255312805 (diff)
downloadgdb-be75459197a3c0df7337f88b8c2739fe3fbecb81.tar.gz
* 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.
Diffstat (limited to 'gdb/pa64solib.c')
-rw-r--r--gdb/pa64solib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/pa64solib.c b/gdb/pa64solib.c
index b74cd5a9255..35d5559a8b2 100644
--- a/gdb/pa64solib.c
+++ b/gdb/pa64solib.c
@@ -157,8 +157,8 @@ pa64_solib_sizeof_symbol_table (char *filename)
/* We believe that filename was handed to us by the dynamic linker, and
is therefore always an absolute path. */
- desc = openp (getenv ("PATH"), 1, filename, O_RDONLY | O_BINARY,
- 0, &absolute_name);
+ desc = openp (getenv ("PATH"), OPF_TRY_CWD_FIRST, filename,
+ O_RDONLY | O_BINARY, 0, &absolute_name);
if (desc < 0)
{
perror_with_name (filename);