[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rpc trace and standard msg lists
From: |
James A Morrison |
Subject: |
rpc trace and standard msg lists |
Date: |
Sun, 5 Jan 2003 17:02:29 -0500 (EST) |
Hi,
Sometime last term I got sick of using -I msg.lists, so I made a simple
change so that rpctrace would read the msgids from a standard place.
Two problems came up with this:
Where should these msgids files be install? I think /share/hurd would
be the best place for them.
How do get the GNU Mach file to generate mach.msgids? I think adding
%.msgids: $(srcdir)/include/%.defs
if grep -q '^subsystem' $<; \
then $(CPP) $(CPPFLAGS) $< | $(MIGCOM) -n -list $@; \
else > $@; fi
mach.msgids: $(patsubst %.defs,%.msgids,$(filter %.defs, $(installed-headers)))
cat $^ > $@
to Makefile.in would work, but I keep getting
make: *** No rule to make target `device/device.msgids', needed by `mach.msgids'
. Stop.
James A. Morrison
2002-12-01 James A. Morrison <ja2morri@uwaterloo.ca>
* rpctrace.c: Add option to use standard rpc list files.
Index: rpctrace.c
===================================================================
RCS file: /cvsroot/hurd/hurd/utils/rpctrace.c,v
retrieving revision 1.14
diff -u -r1.14 rpctrace.c
--- rpctrace.c 28 May 2002 23:56:25 -0000 1.14
+++ rpctrace.c 2 Dec 2002 01:59:12 -0000
@@ -40,6 +40,7 @@
{"output", 'o', "FILE", 0, "Send trace output to FILE instead of stderr."},
{"rpc-list", 'I', "FILE", 0,
"Read FILE for assocations of message ID numbers to names."},
+ {"standard-list", 's', 0, 0, "Use standard rpc list files."},
{0}
};
@@ -1072,6 +1073,11 @@
case 'I':
parse_msgid_list (arg);
+ break;
+
+ case 's':
+ parse_msgid_list ("/share/hurd/hurd.msgids");
+ parse_msgid_list ("/share/hurd/mach.msgids");
break;
case ARGP_KEY_NO_ARGS:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- rpc trace and standard msg lists,
James A Morrison <=