mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-01-13 00:28:33 +00:00
Compare commits
4 Commits
4d100d16fa
...
9531a67476
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9531a67476 | ||
|
|
687e5ccb4f | ||
|
|
bdb6e914ab | ||
|
|
6a9c39ec2b |
@@ -2,6 +2,8 @@
|
||||
|
||||
if [[ "$1" == "debug" ]]; then
|
||||
export CTYPE=RelWithDebInfo
|
||||
export CFLAGS="-g -O0 -fno-inline"
|
||||
export CXXFLAGS="-g -O0 -fno-inline"
|
||||
else
|
||||
export CTYPE=Release
|
||||
fi
|
||||
|
||||
@@ -75,23 +75,25 @@ AUTH_CMD="${ROOT}/_server/azerothcore/acore.sh run-authserver"
|
||||
# Worldserver
|
||||
if [[ $DEBUG_MODE -eq 1 ]]; then
|
||||
|
||||
# via GDB with RelWithDebInfo or Debug build
|
||||
# via GDB with RelWithDebInfo or Debug build (debuginfod downloads missing symbols real-time)
|
||||
echo "DEBUG MODE: Running worldserver under GDB"
|
||||
WORLD_CMD="cd $ROOT/_server/azerothcore/env/dist/bin && \
|
||||
gdb -ex \"set logging file $GDB_LOG\" \
|
||||
-ex \"set debuginfod enabled on\" \
|
||||
-ex \"set logging on\" \
|
||||
-ex \"set pagination off\" \
|
||||
-ex \"set confirm off\" \
|
||||
-ex \"set print thread-events on\" \
|
||||
-ex \"set print pretty on\" \
|
||||
-ex \"set print elements 0\" \
|
||||
-ex \"set print object on\" \
|
||||
-ex \"catch signal SIGSEGV\" \
|
||||
-ex \"catch signal SIGABRT\" \
|
||||
-ex \"catch signal SIGFPE\" \
|
||||
-ex \"catch signal SIGILL\" \
|
||||
-ex \"run -c ../etc/worldserver.conf\" \
|
||||
-ex \"thread apply all bt full\" \
|
||||
-ex \"bt full\" \
|
||||
-ex \"info locals\" \
|
||||
-ex \"info threads\" \
|
||||
-ex \"thread apply all info locals\" \
|
||||
-ex \"quit\" \
|
||||
--args ./worldserver"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user