aboutsummaryrefslogtreecommitdiff
path: root/compile
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-30 22:55:05 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-30 22:55:05 +0100
commit7b7cb45f7c1ed307b585ab3506dc57854ec076a6 (patch)
treec09faf9f8462fd72ecdfc893e0c87aadc692a436 /compile
parent45a21380fcc2c9a0b9035814ab0f8cc38165bb64 (diff)
downloadsst-7b7cb45f7c1ed307b585ab3506dc57854ec076a6.tar.gz
sst-7b7cb45f7c1ed307b585ab3506dc57854ec076a6.zip
Add some useful info printouts to debug builds
Specifically when building in debug mode, we now: * Display all features on load, including skipped and internal ones, sorted by internal name instead of display name. * Print the names of all matched gametype tags after the feature list. * Add an sst_dbg_getcmdcb command to get the address of a command callback for quick breakpoint insertion or Ghidra lookup. * Add an sst_dbg_sendtables command to dump out the full ServerClass tree to help get names for entprops.txt. Note: this output is very long so you'll likely need to log console output to a file to be able to read it all. There's a bunch of developer experience and debug help stuff I want to get done eventually. This is just a very small piece, but it's a start.
Diffstat (limited to 'compile')
-rwxr-xr-xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile b/compile
index 1e9812d..96f7be6 100755
--- a/compile
+++ b/compile
@@ -25,7 +25,7 @@ stdflags="-std=c2x -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64"
dbg=0
if [ "$dbg" = 1 ]; then
- cflags="-O0 -g3 -fsanitize-trap=undefined"
+ cflags="-O0 -g3 -fsanitize-trap=undefined -DSST_DBG"
ldflags="-O0 -g3"
else
cflags="-O2 -fvisibility=hidden"