~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/stacktrace.cc

  • Committer: Brian Aker
  • Date: 2009-03-27 22:55:28 UTC
  • mto: This revision was merged to the branch mainline in revision 968.
  • Revision ID: brian@tangent.org-20090327225528-8y76cfx8a4oemqv9
Remove ref_count

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
 
20
#include "drizzled/global.h"
20
21
#include "stacktrace.h"
21
22
 
22
23
#include <signal.h>
118
119
#endif
119
120
 
120
121
 
121
 
void  print_stacktrace(unsigned char* stack_bottom, ulong thread_stack)
 
122
void  print_stacktrace(unsigned char* stack_bottom, size_t thread_stack)
122
123
{
123
124
#if HAVE_BACKTRACE
124
125
  backtrace_current_thread();
156
157
      fp < (unsigned char**) stack_bottom - thread_stack)
157
158
  {
158
159
    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);
 
160
 fp=%p, stack_bottom=%p, thread_stack=%"PRIu64", aborting backtrace.\n",
 
161
            (void *)fp, (void *)stack_bottom, (uint64_t)thread_stack);
161
162
    return;
162
163
  }
163
164