summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2000-12-19 18:02:25 -0700
committerunknown <sasha@mysql.sashanet.com>2000-12-19 18:02:25 -0700
commit8310a70cc1ed7d6fb48ab4d86ae6ffd7ed8e231b (patch)
tree64be07c8ac84e5b643203ba8981e5c9a1c8b7863 /sql
parentbadb90fd8408498052f571faceba3bcc47433082 (diff)
downloadmariadb-git-8310a70cc1ed7d6fb48ab4d86ae6ffd7ed8e231b.tar.gz
sql/mysqld.cc
small fixes in backtrace code sql/mysqld.cc: small fixes in backtrace code
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 25229191236..a2385c82f8b 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -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)