* [obv] Code cleanup: 1->OPF_TRY_CWD_FIRST
@ 2013-08-28 13:10 Jan Kratochvil
0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2013-08-28 13:10 UTC (permalink / raw)
To: gdb-patches
Hi,
this patch changed replaced constant 1 by OPF_TRY_CWD_FIRST.
commit be75459197a3c0df7337f88b8c2739fe3fbecb81
Author: Eli Zaretskii <eliz@gnu.org>
Date: Fri Jul 30 19:17:20 2004 +0000
* defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
and this patch still used the number 1 there, probably written before the
checked in one above:
commit 886e0d4a7331791c05905a31f5f39469fc63e854
Author: Kris Warkentin <kewarken@qnx.com>
Date: Fri Dec 10 13:38:23 2004 +0000
+ ret = openp (buf, 1, base, o_flags, 0, temp_pathname);
Checked in.
Jan
http://sourceware.org/ml/gdb-cvs/2013-08/msg00145.html
--- src/gdb/ChangeLog 2013/08/28 12:25:05 1.15937
+++ src/gdb/ChangeLog 2013/08/28 13:07:11 1.15938
@@ -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>
--- src/gdb/nto-tdep.c 2013/07/17 05:28:04 1.51
+++ src/gdb/nto-tdep.c 2013/08/28 13:07:12 1.52
@@ -128,7 +128,7 @@
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-28 13:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-28 13:10 [obv] Code cleanup: 1->OPF_TRY_CWD_FIRST Jan Kratochvil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).