mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
fix offset in addr2line
This commit is contained in:
parent
f3f5795e31
commit
44a3e46770
1 changed files with 1 additions and 1 deletions
|
|
@ -3804,7 +3804,7 @@ _PyImport_LoadLazyImportTstate(PyThreadState *tstate, PyObject *lazy_import)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Resolve line number from instruction offset on demand */
|
/* Resolve line number from instruction offset on demand */
|
||||||
int lineno = PyCode_Addr2Line((PyCodeObject *)lz->lz_code, lz->lz_instr_offset);
|
int lineno = PyCode_Addr2Line((PyCodeObject *)lz->lz_code, lz->lz_instr_offset*2);
|
||||||
|
|
||||||
/* Get strings - these can return NULL on encoding errors */
|
/* Get strings - these can return NULL on encoding errors */
|
||||||
const char *filename_str = PyUnicode_AsUTF8(lz->lz_code->co_filename);
|
const char *filename_str = PyUnicode_AsUTF8(lz->lz_code->co_filename);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue