From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: gdb@sources.redhat.com Cc: ac131313@cygnus.com Subject: DOS/Windows-specific code: top.c Date: Tue, 08 May 2001 04:50:00 -0000 Message-id: <200105081152.OAA06296@is.elta.co.il> References: <20010503211502.21716.qmail@web6401.mail.yahoo.com> <3AF1DAA0.3060702@cygnus.com> <200105071609.TAA24129@is.elta.co.il> X-SW-Source: 2001-05/msg00109.html * 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?