Last active
December 18, 2015 00:58
-
-
Save Raydor/5699961 to your computer and use it in GitHub Desktop.
Debugger para las caidas.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set logging overwrite on | |
set logging file backtrace.log | |
handle SIG33 pass nostop noprint | |
set pagination 0 | |
set logging on | |
echo \n--- DEBUG: --- START\n\n | |
run | |
echo \n--- DEBUG: BACKTRACE FULL\n\n | |
backtrace full | |
echo \n--- DEBUG: INFO REGISTERS\n\n | |
info registers | |
echo \n--- DEBUG: CALLS (x/32i $pc)\n\n | |
x/32i $pc | |
echo \n--- DEBUG: THREAD APPLY ALL BACKTRACE\n | |
thread apply all backtrace | |
echo \n--- DEBUG: --- STOP\n\n | |
set logging off | |
quit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The included crashreport.gdb allows for semiautomated hunting of | |
crashes. The crashlog-file will be named backtrace.log and contains all | |
the commands required to partially automate a crashlog-creation with the | |
proper information. | |
Usage: gdb -x crashreport.gdb <executable file> | |
Example: gdb -x crashreport.gdb worldserver | |
For creating an efficient backtrace, use -DCMAKE_BUILD_TYPE=Debug as a | |
parameter to CMake during configuration - this increases the filesize, | |
but includes all the needed information for a decent and efficient | |
crashreport. | |
-- Good luck, and happy crashhunting. | |
SPANISH//ESPANOL: | |
El archivo crashreport.gdb permite una deteccion semiautomatizada de los crashes. | |
el archivo con todo el log del crash se guardara como backtrace.log, y contiene todos los comandos requeridos para automatizar parcialmente la creacion de logs con la informacion adecuada. | |
Uso: gdb -x crashreport.gdb <archivo ejecutable> | |
Ejemplo: gdb -x crashreport.gdb worldserver | |
Para crear un backtrace eficiente usa -DCMAKE_BUILD_TYPE=Debug como un parametrk para Cmake durante la configuracion - Esto incrementa el tamaño del archivo, pero incluye toda la informacion necesaria para una reporte eficiente. | |
-- Buena suerte y feliz caza de crashes. | |
NOTA: Gracias a Osler por traducir esto, me daba pereze jeje. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment