From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Hoehne To: GDB PATCH Subject: gdb-4.17 patch to use ROOTED_P instead SLASH_P Date: Sun, 17 Jan 1999 11:36:00 -0000 Message-ID: <003601be4261$46e49900$19a46d86@robby.dittmannsdorf.de> X-SW-Source: 1999-01/msg00012.html Message-ID: <19990117113600.b5SOoYy2xMcOMMZ0NPOAjZn4WtQ6TTMNBeUbky41O2I@z> 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 * * Post: Am Berg 3, D-09573 Dittmannsdorf, Germany * * WWW: http://www.tu-chemnitz.de/~sho/rho * ******************************************************