Code cleanup.
	* nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
This commit is contained in:
Jan Kratochvil 2013-08-28 13:07:12 +00:00
parent ffa4ac956c
commit c8a2a41934
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
* nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2013-08-28 Yao Qi <yao@codesourcery.com>
Pedro Alves <palves@redhat.com>

View File

@ -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);