This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

gdb-4.17 patch to use ROOTED_P instead SLASH_P


The patch for source.c is needed, since on DOS systems, an
absolute path might not start with a slash and in general
we should use the macro ROOTED_P macro when testing for an
absolute path.

here now the Changelog entry for directory gdb-4.17/gdb:

Sun Jan 17 1999 Robert Hoehne (robert.hoehne@gmx.net)

        * source.c(openp): use ROOTED_P instead of SLASH_P

        
Index: gdb-4.17/gdb/source.c
===================================================================
RCS file: Q:/gnu/gdb-4.17/gdb/source.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 source.c
- --- source.c 1998-10-06 09:16:30+00 1.1.1.1
+++ source.c 1998-10-06 10:23:14+00
@@ -517,7 +517,7 @@
   mode |= O_BINARY;
#endif

- -  if (try_cwd_first || SLASH_P (string[0]))
+  if (try_cwd_first || ROOTED_P (string))
     {
       int i;
       filename = string;

- -- 
******************************************************
* email:   Robert Hoehne <robert.hoehne@gmx.net>     *
* Post:    Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW:     http://www.tu-chemnitz.de/~sho/rho        *
******************************************************