Compare commits

4 Commits

Author SHA1 Message Date
bashermens
9531a67476 Update 6_server-start.sh 2026-01-11 01:45:27 +01:00
bashermens
687e5ccb4f Update 4_server-compile.sh 2026-01-11 00:45:09 +01:00
bashermens
bdb6e914ab Update 6_server-start.sh 2026-01-11 00:40:43 +01:00
bashermens
6a9c39ec2b Update 6_server-start.sh 2026-01-11 00:33:27 +01:00
2 changed files with 8 additions and 4 deletions

View File

@@ -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

View File

@@ -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