chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base/regdump.[ch]: Add a feature for printing plain messages.
[catacomb]
/
base
/
regdump.c
diff --git
a/base/regdump.c
b/base/regdump.c
index c591fd5a08dd2ad391abad75d84d8f4e29ba6ba9..89edbcd192ba25084ab934fccf47d1e1b8457151 100644
(file)
--- a/
base/regdump.c
+++ b/
base/regdump.c
@@
-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®F_SRCMASK) {
+
+ case REGSRC_NONE:
+ printf(";; %s\n", lbl);
+ return;
+
case REGSRC_ABS:
p = base;
break;