~davidagraf/zorba/trace_without_debug_info

« back to all changes in this revision

Viewing changes to src/diagnostics/xquery_stack_trace.cpp

  • Committer: David Graf
  • Date: 2012-06-27 07:20:59 UTC
  • mfrom: (10869.1.25 zorba)
  • Revision ID: davidagraf@gmail.com-20120627072059-723duu6vsbqu60ax
merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
  trace_.push_back( entry );
49
49
}
50
50
 
51
 
void recordStackTrace( QueryLoc const &loc, QueryLoc const &call_loc,
52
 
                       store::Item_t const &fn_name,
53
 
                       XQueryStackTrace::fn_arity_type fn_arity,
54
 
                       ZorbaException &ze ) {
55
 
  if ( XQueryException *const xe = dynamic_cast<XQueryException*>( &ze ) ) {
 
51
 
 
52
void recordStackTrace(
 
53
    QueryLoc const &loc,
 
54
    QueryLoc const &call_loc,
 
55
    store::Item_t const &fn_name,
 
56
    XQueryStackTrace::fn_arity_type fn_arity,
 
57
    ZorbaException &ze ) 
 
58
{
 
59
  if ( XQueryException *const xe = dynamic_cast<XQueryException*>( &ze ) )
 
60
  {
56
61
    XQueryStackTrace &trace = xe->query_trace();
57
62
 
58
63
    if ( trace.empty() && xe->has_source() ) {