From mboxrd@z Thu Jan 1 00:00:00 1970 From: Elena Zannoni To: Eli Zaretskii Cc: gdb@sources.redhat.com, ac131313@cygnus.com Subject: Re: DOS/Windows-specific code: top.c Date: Tue, 08 May 2001 07:46:00 -0000 Message-id: <15096.1760.747754.256898@kwikemart.cygnus.com> References: <20010503211502.21716.qmail@web6401.mail.yahoo.com> <3AF1DAA0.3060702@cygnus.com> <200105071609.TAA24129@is.elta.co.il> <200105081152.OAA06296@is.elta.co.il> X-SW-Source: 2001-05/msg00123.html Eli Zaretskii writes: > > * top.c: > > #ifdef __MSDOS__ > void > do_chdir_cleanup (void *old_dir) > { > chdir (old_dir); > xfree (old_dir); > } > #endif > > See the next snippet. > > * top.c:gdb_init() > > #ifdef __MSDOS__ > /* Make sure we return to the original directory upon exit, come > what may, since the OS doesn't do that for us. */ > make_final_cleanup (do_chdir_cleanup, xstrdup (current_directory)); > #endif > > This is the same issue as with cli-cmds.c:shell_escape(), and the same > solution will do here. > > > * top.c:init_history() > > #ifdef __MSDOS__ > /* No leading dots in file names are allowed on MSDOS. */ > history_filename = concat (current_directory, "/_gdb_history", NULL); > #else > history_filename = concat (current_directory, "/.gdb_history", NULL); > #endif > ` > > Should we have a NO_LEADING_DOTS_IN_FILENAMES macro? > I am not familiar with the first issue. But the second one seems to also be OK for filenames.h. Elena