summaryrefslogtreecommitdiffstats
path: root/bin/trace
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-02-27 00:49:32 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-02-27 00:49:32 (GMT)
commit4c2749fb1da5181528e8b48caeda056d331e4e40 (patch)
treef793ee2c468bbbe6d7b4a356ac970c8727f7b810 /bin/trace
parent2048e0bff92e65442c454d7bd103d15a1a298325 (diff)
downloadhdf5-4c2749fb1da5181528e8b48caeda056d331e4e40.zip
hdf5-4c2749fb1da5181528e8b48caeda056d331e4e40.tar.gz
hdf5-4c2749fb1da5181528e8b48caeda056d331e4e40.tar.bz2
[svn-r26324] Fixes another bug in bin/trace that prevents adding TRACE macros to API
calls that use a FUNC_ENTER macro that does not include parentheses. This does not affect any source code at this time. Part of: HDFFV-9141 Tested on: jam (bin/trace behavior only)
Diffstat (limited to 'bin/trace')
-rwxr-xr-xbin/trace2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/trace b/bin/trace
index 5d5c5be..2823982 100755
--- a/bin/trace
+++ b/bin/trace
@@ -285,7 +285,7 @@ sub rewrite_func ($$$$$) {
# Ignored due to NO TRACE comment.
} elsif ($body =~ s/((\n[ \t]*)H5TRACE\d+\s*\(.*?\);)\n/"$2$trace"/es) {
# Replaced an H5TRACE macro.
- } elsif ($body=~s/((\n[ \t]*)FUNC_ENTER\w*\s*\(.*?\);??)\n/"$1$2$trace"/es) {
+ } elsif ($body=~s/((\n[ \t]*)FUNC_ENTER\w*\s*(\(.*?\))?;??)\n/"$1$2$trace"/es) {
# Added an H5TRACE macro after a FUNC_ENTER macro.
} else {
errmesg $file, $name, "unable to insert tracing information";