]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fixed a bug in the code for reading suppression files: the line numbers
authorBart Van Assche <bvanassche@acm.org>
Mon, 27 Jul 2009 12:03:03 +0000 (12:03 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 27 Jul 2009 12:03:03 +0000 (12:03 +0000)
commit2919d9219170e3d63a4d7e89851541d209f47157
treeff20fdca2e650127b027da89152e3f88cc5711a1
parentfb1b7c8a7e83dfb5b8b064bd471746d9dd26c684
Fixed a bug in the code for reading suppression files: the line numbers
reported in error messages were not correct. As an example, the following
output was produced before this patch (not correct):
$ ./vg-in-place --tool=helgrind --num-callers=1 /bin/true
...
FATAL: in suppressions file ".in_place/default.supp" near line 893:
   suppression must contain at least one location line which is not "..."
exiting now.
$ ./vg-in-place --tool=drd --num-callers=1 /bin/true
FATAL: in suppressions file ".in_place/default.supp" near line 475:
   suppression must contain at least one location line which is not "..."
exiting now.

After having applied this patch the above commands display line numbers
1104 and 619, referring to the first suppression pattern containing
three dots for the topmost stack frame, as expected.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10632
coregrind/m_errormgr.c
exp-ptrcheck/pc_common.c
include/pub_tool_errormgr.h
memcheck/mc_errors.c