Skip to content

Instantly share code, notes, and snippets.

@haxpor
Last active May 30, 2019 14:57
Show Gist options
  • Save haxpor/fc97b0d64f6d5b15bfb4713c6c1fbb52 to your computer and use it in GitHub Desktop.
Save haxpor/fc97b0d64f6d5b15bfb4713c6c1fbb52 to your computer and use it in GitHub Desktop.
openbor log when loading a save file. Used ctrl+c to see location of code in execution via gdb
Thread 1 "OpenBOR-debug-1" received signal SIGINT, Interrupt.
0x000055555565eaa9 in List_AddHash (list=0x55555eca0304,
node=0x55555ec6e880) at source/scriptlib/List.c:65
65 save = list->buckets[h]->size;
(gdb) where
#0 0x000055555565eaa9 in List_AddHash (list=0x55555eca0304,
node=0x55555ec6e880) at source/scriptlib/List.c:65
#1 0x00005555556600e3 in List_InsertAfter (list=0x55555eca0304,
e=0x55555ec63b90, theName=0x55555ec70620 "L20")
at source/scriptlib/List.c:639
#2 0x0000555555658dc8 in Parser_AddInstructionViaToken (
pparser=0x55555eca03f4, pCode=NOOP, pToken=0x0,
label=0x55555ec70620 "L20") at source/scriptlib/Parser.c:158
#3 0x000055555565a57d in Parser_Select_stmt (
pparser=0x55555eca03f4) at source/scriptlib/Parser.c:738
#4 0x000055555565a0b5 in Parser_Stmt (pparser=0x55555eca03f4)
at source/scriptlib/Parser.c:634
#5 0x0000555555659f87 in Parser_Stmt_list (pparser=0x55555eca03f4)
at source/scriptlib/Parser.c:603
#6 0x000055555565a2a8 in Parser_Comp_stmt_Label (
pparser=0x55555eca03f4, theLabel=0x55555eca0b00 "L1")
at source/scriptlib/Parser.c:684
#7 0x00005555556594c7 in Parser_External_decl2 (
pparser=0x55555eca03f4, variableonly=0)
at source/scriptlib/Parser.c:335
#8 0x000055555565900d in Parser_External_decl (
pparser=0x55555eca03f4) at source/scriptlib/Parser.c:253
#9 0x0000555555658bf0 in Parser_ParseText (pparser=0x55555eca03f4,
pcontext=0x55555eca0d24, pIList=0x55555eca0304,
scriptText=0x55555eca1e50 "void main()\r\n{\r\n\tvoid self \t\t= getlocalvar(\"self\");\r\n\tvoid vRName \t= getentityproperty(self,\"defaultname\"); // Get caller's real name.\r\n\tvoid vAlias\t\t= getentityproperty(self,\"name\"); // Get caller's "...,
startingLineNumber=1,
path=0x7fffffffaecf "data/scripts/onspawn/bigben.c")
at source/scriptlib/Parser.c:86
#10 0x0000555555655f61 in Interpreter_ParseText (
pinterpreter=0x55555eca0200,
scriptText=0x55555eca1e50 "void main()\r\n{\r\n\tvoid self \t\t= getlocalvar(\"self\");\r\n\tvoid vRName \t= getentityproperty(self,\"defaultname\"); // Get caller's real name.\r\n\tvoid vAlias\t\t= getentityproperty(self,\"name\"); // Get caller's "...,
startingLineNumber=1,
igben.c") at source/scriptlib/Interpreter.c:89
#11 0x00005555555ec709 in Script_AppendText (pscript=0x55555ec70710,
text=0x55555eca1e50 "void main()\r\n{\r\n\tvoid self \t\t= getlocalvar(\"self\");\r\n\tvoid vRName \t= getentityproperty(self,\"defaultname\"); // Get caller's real name.\r\n\tvoid vAlias\t\t= getentityproperty(self,\"name\"); // Get caller's "...,
path=0x7fffffffaecf "data/scripts/onspawn/bigben.c") at openborscript.c:580
#12 0x0000555555568a97 in load_script (script=0x55555ec70710, file=0x7fffffffaecf "data/scripts/onspawn/bigben.c") at openbor.c:1033
#13 0x000055555557b5fe in lcmHandleCommandScripts (arglist=0x7fffffffa6b0,
buf=0x55555ebbae3e "onspawnscript\t\tdata/scripts/onspawn/bigben.c\r\n\r\n##ICONS\r\nicon\t\t\t\tdata/chars/bigben/icon.gif 1\r\n\r\n##DIESOUND\r\ndiesound\t\t\tdata/voices/enemy/BossDie1.wav\r\n\r\n##REMAPS\r\nremap\t\t\t\tdata/chars/bigben/idle00.gi"...,
script=0x55555ec70710, scriptname=0x5555556923cf "onspawnscript", filename=0x555557b2d090 "data/chars/Bigben/bigben4.txt", compile=1,
first=0) at openbor.c:8380
#14 0x000055555558495a in load_cached_model (name=0x7fffffffc7d7 "Bigben4", owner=0x5555575e2dc0 "data/levels/st7b.txt", unload=0 '\000')
at openbor.c:10382
#15 0x000055555559b25c in load_level (filename=0x5555575e2dc0 "data/levels/st7b.txt") at openbor.c:15569
#16 0x00005555555ddc65 in playlevel (filename=0x5555575e2dc0 "data/levels/st7b.txt") at openbor.c:36545
#17 0x00005555555e0b18 in playgame (players=0x7fffffffcd20, which_set=0, useSavedGame=1) at openbor.c:37454
#18 0x00005555555e2f4a in choose_mode (players=0x7fffffffcd20) at openbor.c:37889
#19 0x00005555555eaef3 in openborMain (argc=1, argv=0x7fffffffd378) at openbor.c:40062
#20 0x000055555560a9cd in main (argc=1, argv=0x7fffffffd378) at sdl/sdlport.c:145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment