From: divverent Date: Thu, 20 Dec 2012 11:37:38 +0000 (+0000) Subject: use LNO files for backtraces (by Blub) X-Git-Tag: xonotic-v0.8.0~96^2~176 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6724642e44d68a429ef9a9e036460b99917bcce5;p=xonotic%2Fdarkplaces.git use LNO files for backtraces (by Blub) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11862 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_exec.c b/prvm_exec.c index df57f66f..f2ad83ed 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -224,7 +224,12 @@ void PRVM_StackTrace (prvm_prog_t *prog) if (!f) Con_Print("\n"); else - Con_Printf("%12s : %s : statement %i\n", PRVM_GetString(prog, f->s_file), PRVM_GetString(prog, f->s_name), prog->stack[i].s - f->first_statement); + { + if (prog->statement_linenums) + Con_Printf("%12s:%i : %s : statement %i\n", PRVM_GetString(prog, f->s_file), prog->statement_linenums[prog->stack[i].s], PRVM_GetString(prog, f->s_name), prog->stack[i].s - f->first_statement); + else + Con_Printf("%12s : %s : statement %i\n", PRVM_GetString(prog, f->s_file), PRVM_GetString(prog, f->s_name), prog->stack[i].s - f->first_statement); + } } }