From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Faylor To: gdb@sources.redhat.com Subject: Re: DOS/Windows-specific code: utils.c Date: Tue, 08 May 2001 11:26:00 -0000 Message-id: <20010508142444.D25705@redhat.com> References: <20010503211502.21716.qmail@web6401.mail.yahoo.com> <3AF1DAA0.3060702@cygnus.com> <200105071609.TAA24129@is.elta.co.il> <200105081153.OAA06313@is.elta.co.il> X-SW-Source: 2001-05/msg00145.html On Tue, May 08, 2001 at 02:53:33PM +0300, Eli Zaretskii wrote: > #if !defined (MPW) && !defined (_WIN32) > /* No termcap under MPW, although might be cool to do something > by looking at worksheet or console window sizes. */ > /* Initialize the screen height and width from termcap. */ > { > char *termtype = getenv ("TERM"); > >Looks like using HAVE_TERMCAP (default to 1, 0 on Windows and DJGPP), >and allowing for a GET_SCREEN_SIZE macro which would return the screen >dimensions, should solve this. Comments? Yep. > > * utils.c:quit() > > #ifdef __MSDOS__ > /* No steenking SIGINT will ever be coming our way when the > program is resumed. Don't lie. */ > fprintf_unfiltered (gdb_stderr, "Quit\n"); > #else > if (job_control > /* If there is no terminal switching for this target, then we can't > possibly get screwed by the lack of job control. */ > || current_target.to_terminal_ours == NULL) > fprintf_unfiltered (gdb_stderr, "Quit\n"); > else > fprintf_unfiltered (gdb_stderr, > "Quit (expect signal SIGINT when the program is resumed)\n"); > #endif > >I'm not sure we should bother about this one. > > > * utils.c: > > #if defined(_MSC_VER) /* should test for wingdb instead? */ > > /* > * Windows translates all keyboard and mouse events > * into a message which is appended to the message > * queue for the process. > */ > > void > notice_quit (void) > { > int k = win32pollquit (); > if (k == 1) > quit_flag = 1; > else if (k == 2) > immediate_quit = 1; > } > >I think this should go to win32-nat.c. Actually, it should be nuked. This is wingdb code. I'll do that right now. cgf