~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/stacktrace.cc

  • Committer: Toru Maesaka
  • Date: 2008-12-17 07:16:37 UTC
  • mto: (685.1.40 devel) (713.1.5 devel)
  • mto: This revision was merged to the branch mainline in revision 713.
  • Revision ID: dev@torum.net-20081217071637-7j9040w7lpms77r2
Removed my_time() and added error checking

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
#endif
119
119
 
120
120
 
121
 
void  print_stacktrace(unsigned char* stack_bottom, ulong thread_stack)
 
121
void  print_stacktrace(unsigned char* stack_bottom, size_t thread_stack)
122
122
{
123
123
#if HAVE_BACKTRACE
124
124
  backtrace_current_thread();
156
156
      fp < (unsigned char**) stack_bottom - thread_stack)
157
157
  {
158
158
    fprintf(stderr, "Bogus stack limit or frame pointer,\
159
 
 fp=%p, stack_bottom=%p, thread_stack=%ld, aborting backtrace.\n",
160
 
            (void *)fp, (void *)stack_bottom, thread_stack);
 
159
 fp=%p, stack_bottom=%p, thread_stack=%"PRIu64", aborting backtrace.\n",
 
160
            (void *)fp, (void *)stack_bottom, (uint64_t)thread_stack);
161
161
    return;
162
162
  }
163
163