Implement cngetc, don't abort.
This commit is contained in:
parent
8ca9a81697
commit
832b64785c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: crash.c,v 1.15 2023/04/12 17:53:32 riastradh Exp $ */
|
||||
/* $NetBSD: crash.c,v 1.16 2023/12/11 14:00:47 mlelstv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2009 The NetBSD Foundation, Inc.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: crash.c,v 1.15 2023/04/12 17:53:32 riastradh Exp $");
|
||||
__RCSID("$NetBSD: crash.c,v 1.16 2023/12/11 14:00:47 mlelstv Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -94,7 +94,6 @@ void lockdebug_lock_print(void) {
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
static void
|
||||
cleanup(void)
|
||||
{
|
||||
|
@ -309,9 +308,11 @@ db_check_interrupt(void)
|
|||
int
|
||||
cngetc(void)
|
||||
{
|
||||
char ch;
|
||||
|
||||
fprintf(stderr, "cngetc\n");
|
||||
abort();
|
||||
if (el_getc(elptr, &ch) <= 0)
|
||||
return 0;
|
||||
return (unsigned char)ch;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue