From 795ad1861d35444efec9b5e1c40295d51104bd51 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 30 Nov 2023 12:49:04 -0800 Subject: [PATCH] Also show the first line when using --pycode-extra --- pycdas.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pycdas.cpp b/pycdas.cpp index cd7612f23..ddc210b6a 100644 --- a/pycdas.cpp +++ b/pycdas.cpp @@ -142,6 +142,7 @@ void output_object(PycRef obj, PycModule* mod, int indent, bc_disasm(pyc_output, codeObj, mod, indent + 2, flags); if (mod->verCompare(1, 5) >= 0 && (flags & Pyc::DISASM_PYCODE_VERBOSE) != 0) { + iprintf(pyc_output, indent + 1, "First Line: %d\n", codeObj->firstLine()); iputs(pyc_output, indent + 1, "[Line Number Table]\n"); output_object(codeObj->lnTable().cast(), mod, indent + 2, flags, pyc_output); }