chiark / gitweb /
base/regdump.[ch]: Add a feature for printing plain messages.
[catacomb] / base / regdump.c
index c591fd5a08dd2ad391abad75d84d8f4e29ba6ba9..89edbcd192ba25084ab934fccf47d1e1b8457151 100644 (file)
@@ -213,6 +213,7 @@ static const char *regname(char *buf, uint32 f)
 
   switch (src) {
 
+    case REGSRC_NONE:
     case REGSRC_ABS:
       return (0);
 
@@ -803,6 +804,11 @@ void regdump(const void *base, const char *lbl, uint32 f)
   }
 
   switch (f&REGF_SRCMASK) {
+
+    case REGSRC_NONE:
+      printf(";; %s\n", lbl);
+      return;
+
     case REGSRC_ABS:
       p = base;
       break;