X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fmonitor.c;h=5bc83c33968afc24eee586c4a92bbab88c2877a2;hb=77d7fddb855305e783c100bfe9b6b46bdb05e4b6;hp=9d175086ca9829725094e122f340895e173468b7;hpb=18d08023458b475bbd6734ece3b428166f74a8f3;p=sbcl.git diff --git a/src/runtime/monitor.c b/src/runtime/monitor.c index 9d17508..5bc83c3 100644 --- a/src/runtime/monitor.c +++ b/src/runtime/monitor.c @@ -273,8 +273,7 @@ search_cmd(char **ptr) end += 2; if (widetag_of(obj) == SIMPLE_FUN_HEADER_WIDETAG) { print((long)addr | FUN_POINTER_LOWTAG); - } else if (lowtag_of(obj) == OTHER_IMMEDIATE_0_LOWTAG || - lowtag_of(obj) == OTHER_IMMEDIATE_1_LOWTAG) { + } else if (other_immediate_lowtag_p(obj)) { print((lispobj)addr | OTHER_POINTER_LOWTAG); } else { print((lispobj)addr); @@ -454,6 +453,10 @@ sub_monitor(void) if (!ldb_in) { #ifndef LISP_FEATURE_WIN32 ldb_in = fopen("/dev/tty","r+"); + if (ldb_in == NULL) { + perror("Error opening /dev/tty"); + ldb_in = stdin; + } #else ldb_in = stdin; #endif