Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* gdb-4.17 patch to use ROOTED_P instead SLASH_P
  1999-04-01  0:00 gdb-4.17 patch to use ROOTED_P instead SLASH_P Robert Hoehne
@ 1999-01-17 11:36 ` Robert Hoehne
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Hoehne @ 1999-01-17 11:36 UTC (permalink / raw)
  To: GDB PATCH

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        *
******************************************************




^ permalink raw reply	[flat|nested] 2+ messages in thread

* gdb-4.17 patch to use ROOTED_P instead SLASH_P
@ 1999-04-01  0:00 Robert Hoehne
  1999-01-17 11:36 ` Robert Hoehne
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Hoehne @ 1999-04-01  0:00 UTC (permalink / raw)
  To: GDB PATCH

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        *
******************************************************




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-04-01  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-01  0:00 gdb-4.17 patch to use ROOTED_P instead SLASH_P Robert Hoehne
1999-01-17 11:36 ` Robert Hoehne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox