summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorunknown <serg@sergbook.mysql.com>2002-11-05 16:06:11 +0100
committerunknown <serg@sergbook.mysql.com>2002-11-05 16:06:11 +0100
commitc0309e5a2f2b6f3f060f0a5b5fb781c1206c2c58 (patch)
tree245594c5b1ddf129e4f8d66e27d8b342de0823fa /dbug
parent7675eafe155a67567c37d1e955d70eb2e80bad0e (diff)
downloadmariadb-git-c0309e5a2f2b6f3f060f0a5b5fb781c1206c2c58.tar.gz
added DBUG_ENTER/RETURN tags, dbug_add_tags.pl bugfix
dbug/dbug_add_tags.pl: small fix sql/ha_myisam.cc: added DBUG_ENTER/RETURN tags sql/ha_myisammrg.cc: added DBUG_ENTER/RETURN tags sql/handler.cc: added DBUG_ENTER/RETURN tags
Diffstat (limited to 'dbug')
-rwxr-xr-xdbug/dbug_add_tags.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/dbug/dbug_add_tags.pl b/dbug/dbug_add_tags.pl
index a376fdb2f59..141a2ed85f1 100755
--- a/dbug/dbug_add_tags.pl
+++ b/dbug/dbug_add_tags.pl
@@ -5,7 +5,7 @@ die "No files specified\n" unless $ARGV[0];
$ctags="exctags -x -f - --c-types=f -u";
sub get_tag {
- local $_=<TAGS>;
+ local $.; local $_=<TAGS>;
($symbol, $line)= /^(.*\S)\s+function\s+(\d+)/;
$symbol=$1 if /\s(\S+)\s*\(/;
$line=1e50 unless $line;
@@ -40,7 +40,6 @@ while($src=shift)
warn "$src:".($.-1)."\t$orig" if /\breturn\b/;
}
print;
- next if /DBUG_ENTER/;
next if $. < $line;
die "Something wrong: \$.=$., \$line=$line, \$symbol=$symbol\n" if $. > $line;
&get_tag && next if /^\s*inline /;