]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Ahem, reverse comparison so that normal stack traces have more than one entry
authorNicholas Nethercote <njn@valgrind.org>
Wed, 2 Oct 2002 07:56:02 +0000 (07:56 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 2 Oct 2002 07:56:02 +0000 (07:56 +0000)
and 75% of regression tests don't fail.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1158

coregrind/vg_execontext.c

index 3eac6c801eae3452050e6e0a802992bdafde334e..24939c5a4b1328c052437265b76f4f7a65984ab4 100644 (file)
@@ -193,7 +193,7 @@ ExeContext* VG_(get_ExeContext2) ( Addr eip, Addr ebp,
     * offending stack traces only have one item.  --njn, 2002-aug-16 */
    /* vg_assert(ebp_min <= ebp_max);*/
 
-   if (ebp_min + 4000000 > ebp_max) {
+   if (ebp_min + 4000000 <= ebp_max) {
       /* If the stack is ridiculously big, don't poke around ... but
          don't bomb out either.  Needed to make John Regehr's
          user-space threads package work. JRS 20021001 */