Allow multiple module names per --hide option.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4026 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/auxprogs/gen-mdg b/auxprogs/gen-mdg
index 030d03f..3bc5dcd 100755
--- a/auxprogs/gen-mdg
+++ b/auxprogs/gen-mdg
@@ -63,7 +63,7 @@
options:
--headers=no|yes show headers, ie. show module-to-module deps only
--libc=no|yes show m_libc* modules
- --hide=<module> hide module named <module>
+ --hide=<a>,<b>,... hide module(s) named <a>, <b>, ...
END
;
@@ -85,9 +85,12 @@
$show_libc = 1 if ($1 eq "yes");
$show_libc = 0 if ($1 eq "no");
- # --hide=<module>
+ # --hide=<a>,<b>,...
} elsif ($arg =~ /^--hide=(.*)$/) {
- $hide{$1} = 1;
+ my @hiders = split(/,/, $1);
+ foreach my $h (@hiders) {
+ $hide{$h} = 1;
+ }
} else {
die $usage;