~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/stacktrace.c

  • Committer: Brian Aker
  • Date: 2008-07-09 22:21:43 UTC
  • mfrom: (77.1.56 codestyle)
  • Revision ID: brian@tangent.org-20080709222143-xkqmyqv2442iizyy
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
    /* Assume that the stack starts at the previous even 65K */
199
199
    stack_bottom= (uchar*) (((ulong) &fp + tmp) &
200
200
                          ~(ulong) 0xFFFF);
201
 
    fprintf(stderr, "Cannot determine thread, fp=%p, backtrace may not be correct.\n", fp);
 
201
    fprintf(stderr, "Cannot determine thread, fp=%p, backtrace may not be correct.\n", (void *)fp);
202
202
  }
203
203
  if (fp > (uchar**) stack_bottom ||
204
204
      fp < (uchar**) stack_bottom - thread_stack)
205
205
  {
206
206
    fprintf(stderr, "Bogus stack limit or frame pointer,\
207
207
 fp=%p, stack_bottom=%p, thread_stack=%ld, aborting backtrace.\n",
208
 
            fp, stack_bottom, thread_stack);
 
208
            (void *)fp, (void *)stack_bottom, thread_stack);
209
209
    return;
210
210
  }
211
211
 
259
259
    if (new_fp <= fp )
260
260
    {
261
261
      fprintf(stderr, "New value of fp=%p failed sanity check,\
262
 
 terminating stack trace!\n", new_fp);
 
262
 terminating stack trace!\n", (void *)new_fp);
263
263
      goto end;
264
264
    }
265
265
    fp = new_fp;