Browse Source

* Added experimental code to generate a stack dump when it segfaults

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1027 54d463be-8e91-2dee-dedb-b68131a5f0ec
(no author) 20 years ago
parent
commit
0c863d750f
2 changed files with 12 additions and 0 deletions
  1. 11 0
      Changelog.txt
  2. 1 0
      Makefile

+ 11 - 0
Changelog.txt

@@ -1,6 +1,17 @@
 Date	Added
 
 02/04
+        * Added experimental code to generate a stack dump when it segfaults, thanks
+          to Ser [celest]
+          - does not work with Cygwin, as it does not have glibc
+          - to enable, edit the Makefile and remove the # on the line:
+
+                # OPT += -DDUMPSTACK -rdynamic
+
+          - What it does: everytime eA crashes it'll generate a file "stackdump_
+            <number>.txt" in your save folder with a backtrace, which you can
+            examine and send to a dev to be fixed.
+
         * Some more tidying up in status_get_ functions [celest]
 
 02/03

+ 1 - 0
Makefile

@@ -25,6 +25,7 @@ MAKE = make
 endif
 
 OPT = -g -O2 -ffast-math
+# OPT += -DDUMPSTACK -rdynamic
 
 ifeq ($(findstring CYGWIN,$(PLATFORM)), CYGWIN)
 OS_TYPE = -DCYGWIN