From 4893e4b2858af12d916c3915a97336cdb0c8236b Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 8 Nov 2005 19:45:59 +0000 Subject: 2005-11-08 Frank Ch. Eigler * tapsets.cxx (blacklisted_p): Tolerate NULL filename parameter. * src/testsuite/semok/twenty.stp: New test to enumerate everything dwarfly probeable. --- tapsets.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index 7b0d2b78..d9a75340 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1710,7 +1710,8 @@ dwarf_query::blacklisted_p(string const & funcname, // properly generalized, perhaps via a table populated from script // files. A "noprobe kernel.function("...")" construct might do // the trick. - string filename_s = filename ? filename : ""; // is passed as const char* + if (filename == 0) filename = ""; // possibly 0 + string filename_s = filename; // is passed as const char* if (funcname == "do_IRQ" || filename_s == "kernel/kprobes.c" || 0 == fnmatch ("arch/*/kernel/kprobes.c", filename, 0) || -- cgit