This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] Code cleanup: 1->OPF_TRY_CWD_FIRST


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]