From: Tom Hughes Date: Mon, 1 Nov 2004 17:37:08 +0000 (+0000) Subject: Make sure source-location mapping entries of size zero are converted X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee84482730adfca7e70ce190b9ac85bb2c92c7b0;p=thirdparty%2Fvalgrind.git Make sure source-location mapping entries of size zero are converted to size one even if verbose more is off. MERGE TO STABLE git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_2_0_BRANCH@2895 --- diff --git a/coregrind/vg_symtab2.c b/coregrind/vg_symtab2.c index c0e803cba9..e4dd8284d4 100644 --- a/coregrind/vg_symtab2.c +++ b/coregrind/vg_symtab2.c @@ -215,10 +215,12 @@ void VG_(addLineInfo) ( SegInfo* si, * correspond to one line, unlike with C-level debug info where * multiple instructions can map to the one line), but avoid * catching any other instructions bogusly. */ - if (this > next && VG_(clo_verbosity) > 2) { - VG_(message)(Vg_DebugMsg, - "warning: line info addresses out of order " - "at entry %d: 0x%x 0x%x", entry, this, next); + if (this > next) { + if (VG_(clo_verbosity) > 2) { + VG_(message)(Vg_DebugMsg, + "warning: line info addresses out of order " + "at entry %d: 0x%x 0x%x", entry, this, next); + } size = 1; }