--- parser3/src/main/pa_request.C 2015/10/21 21:45:25 1.349 +++ parser3/src/main/pa_request.C 2015/10/26 01:21:59 1.351 @@ -1,7 +1,7 @@ /** @file Parser: request class main part. @see compile.C and execute.C. - Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ @@ -32,7 +32,7 @@ #include "pa_vconsole.h" #include "pa_vdate.h" -volatile const char * IDENT_PA_REQUEST_C="$Id: pa_request.C,v 1.349 2015/10/21 21:45:25 moko Exp $" IDENT_PA_REQUEST_H IDENT_PA_REQUEST_CHARSETS_H IDENT_PA_REQUEST_INFO_H IDENT_PA_VCONSOLE_H; +volatile const char * IDENT_PA_REQUEST_C="$Id: pa_request.C,v 1.351 2015/10/26 01:21:59 moko Exp $" IDENT_PA_REQUEST_H IDENT_PA_REQUEST_CHARSETS_H IDENT_PA_REQUEST_INFO_H IDENT_PA_VCONSOLE_H; // consts @@ -947,10 +947,11 @@ Request::Exception_details Request::get_ if(!exception_trace.is_empty()) { Trace bottom=exception_trace.bottom_value(); - if(!problem_source || bottom.name()==problem_source) { // we don't know who trigged the bug or it is that same guy - origin=bottom.origin(); - if(!problem_source) - problem_source=bottom.name(); // we usually know source of next-from-throw-point exception did that + origin=bottom.origin(); + if(!problem_source) { // we don't know who trigged the bug + problem_source=bottom.name(); // we usually know source of next-from-throw-point exception did that + exception_trace.set_bottom_index(exception_trace.bottom_index()+1); + } else if (bottom.name()==problem_source) { // it is that same guy? exception_trace.set_bottom_index(exception_trace.bottom_index()+1); // throw away that trace } else { // stack top contains not us, leaving intact to help ^throw