mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
sql/mysqld.cc
small fixes in backtrace code
This commit is contained in:
parent
abd31b570e
commit
2c2c9c9fd5
1 changed files with 3 additions and 3 deletions
|
@ -1042,7 +1042,7 @@ static void init_signals(void)
|
|||
static sig_handler write_core(int sig);
|
||||
#ifdef __i386__
|
||||
#define SIGRETURN_FRAME_COUNT 1
|
||||
inline static void trace_stack()
|
||||
inline static __volatile__ void trace_stack()
|
||||
{
|
||||
uchar **stack_bottom;
|
||||
uchar** ebp;
|
||||
|
@ -1057,8 +1057,8 @@ inline static void trace_stack()
|
|||
:"r"(ebp));
|
||||
if(!ebp)
|
||||
{
|
||||
fprintf(stderr, "Stack is a mess, frame pointer (ebp) is NULL,\
|
||||
aborting backtrace\n");
|
||||
fprintf(stderr, "frame pointer (ebp) is NULL, did you compile with \
|
||||
-fomit-frame-pointer? Aborting backtrace\n");
|
||||
return;
|
||||
}
|
||||
if(!thd)
|
||||
|
|
Loading…
Add table
Reference in a new issue