Commit 8310a70c authored by unknown's avatar unknown

sql/mysqld.cc

    small fixes in backtrace code


sql/mysqld.cc:
  small fixes in backtrace code
parent badb90fd
...@@ -1042,7 +1042,7 @@ static void init_signals(void) ...@@ -1042,7 +1042,7 @@ static void init_signals(void)
static sig_handler write_core(int sig); static sig_handler write_core(int sig);
#ifdef __i386__ #ifdef __i386__
#define SIGRETURN_FRAME_COUNT 1 #define SIGRETURN_FRAME_COUNT 1
inline static void trace_stack() inline static __volatile__ void trace_stack()
{ {
uchar **stack_bottom; uchar **stack_bottom;
uchar** ebp; uchar** ebp;
...@@ -1057,8 +1057,8 @@ inline static void trace_stack() ...@@ -1057,8 +1057,8 @@ inline static void trace_stack()
:"r"(ebp)); :"r"(ebp));
if(!ebp) if(!ebp)
{ {
fprintf(stderr, "Stack is a mess, frame pointer (ebp) is NULL,\ fprintf(stderr, "frame pointer (ebp) is NULL, did you compile with \
aborting backtrace\n"); -fomit-frame-pointer? Aborting backtrace\n");
return; return;
} }
if(!thd) if(!thd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment