mirror of
https://github.com/frida/tinycc
synced 2024-12-24 05:56:49 +03:00
Fix debug info
This commit is contained in:
parent
87639aae7c
commit
a86f47889c
2
tccgen.c
2
tccgen.c
@ -245,7 +245,7 @@ ST_FUNC void tcc_debug_line(TCCState *s1)
|
||||
{
|
||||
if (!s1->do_debug)
|
||||
return;
|
||||
if ((last_line_num != file->line_num || last_ind != ind)) {
|
||||
if (ind && ((last_line_num != file->line_num || last_ind != ind))) {
|
||||
put_stabn(s1, N_SLINE, 0, file->line_num, ind - func_ind);
|
||||
last_ind = ind;
|
||||
last_line_num = file->line_num;
|
||||
|
Loading…
Reference in New Issue
Block a user