aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-14 19:38:04 +0000
committerrsc <devnull@localhost>2006-02-14 19:38:04 +0000
commita4b2187729f7c9f3da0f0e28dd590758e9065a5d (patch)
treeeb790d9f3fd58b78d4eaf144ba0c37891510b907
parent469e5e5196565eac53b2d341ea865800150705d4 (diff)
downloadplan9port-a4b2187729f7c9f3da0f0e28dd590758e9065a5d.tar.gz
plan9port-a4b2187729f7c9f3da0f0e28dd590758e9065a5d.tar.bz2
plan9port-a4b2187729f7c9f3da0f0e28dd590758e9065a5d.zip
better symbols
-rw-r--r--acid/port12
1 files changed, 8 insertions, 4 deletions
diff --git a/acid/port b/acid/port
index c6bf9056..c8e195fc 100644
--- a/acid/port
+++ b/acid/port
@@ -603,13 +603,17 @@ defn mem(addr, fmt)
defn symbols(pattern)
{
- local l, s;
-
+ local l, s, name;
+
l = symbols;
while l do {
s = head l;
- if regexp(pattern, s[0]) then
- print(s[0], "\t", s[1], "\t", s[2], "\t", s[3], "\n");
+ if regexp(pattern, s[0]) then {
+ name = s[4];
+ if name == {} then
+ name = "";
+ print(s[0], "\t", s[1], "\t", s[2], "\t", s[3], "\t", name, "\n");
+ }
l = tail l;
}
}