From ee84482730adfca7e70ce190b9ac85bb2c92c7b0 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 1 Nov 2004 17:37:08 +0000 Subject: [PATCH] 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 --- coregrind/vg_symtab2.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; } -- 2.47.2