From c8a2a4193498b0aa0fb28a3a0a7dec9c1fd2cc5e Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 28 Aug 2013 13:07:12 +0000 Subject: [PATCH] gdb/ Code cleanup. * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST. --- gdb/ChangeLog | 5 +++++ gdb/nto-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e9d1eade87b..3f63836a7a6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-08-28 Jan Kratochvil + + Code cleanup. + * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST. + 2013-08-28 Yao Qi Pedro Alves diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c index fa31f140dfa..69ab5adb2cf 100644 --- a/gdb/nto-tdep.c +++ b/gdb/nto-tdep.c @@ -128,7 +128,7 @@ nto_find_and_open_solib (char *solib, unsigned o_flags, char **temp_pathname) arch_path); base = lbasename (solib); - ret = openp (buf, 1, base, o_flags, temp_pathname); + ret = openp (buf, OPF_TRY_CWD_FIRST, base, o_flags, temp_pathname); if (ret < 0 && base != solib) { xsnprintf (arch_path, arch_len, "/%s", solib); -- 2.30.2