Bug #640549: dbg fails if wx configured but not on.
- My previous rev to dbg_main.cc caused the debugger to fail when readline was disabled. With these changes I have tested more thoroughly and it works with readline enabled or disabled, and with wxWindows enabled and disabled.
This commit is contained in:
parent
fde59551a1
commit
c62dda51d3
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: dbg_main.cc,v 1.89 2002-11-19 09:27:38 bdenney Exp $
|
||||
// $Id: dbg_main.cc,v 1.90 2002-11-19 16:19:20 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -530,15 +530,18 @@ bx_get_command(void)
|
||||
free (charptr_ret);
|
||||
charptr_ret = &tmp_buf[0];
|
||||
}
|
||||
}
|
||||
#endif
|
||||
else if (bx_infile_stack_index == 0) {
|
||||
dbg_printf ( "%s", prompt);
|
||||
}
|
||||
if (bx_infile_stack_index != 0) {
|
||||
} else {
|
||||
charptr_ret = fgets(tmp_buf, 512,
|
||||
bx_infile_stack[bx_infile_stack_index].fp);
|
||||
}
|
||||
#else /* !HAVE_LIBREADLINE */
|
||||
else {
|
||||
if (bx_infile_stack_index == 0)
|
||||
dbg_printf ( "%s", prompt);
|
||||
charptr_ret = fgets(tmp_buf, 512,
|
||||
bx_infile_stack[bx_infile_stack_index].fp);
|
||||
}
|
||||
#endif
|
||||
if (charptr_ret == NULL) {
|
||||
// see if error was due to EOF condition
|
||||
if (feof(bx_infile_stack[bx_infile_stack_index].fp)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user