Fix dwarf on 32 bits targets
Never do last minute commits :-(
This commit is contained in:
parent
2f2708a769
commit
f0df48fcdd
1 changed files with 2 additions and 1 deletions
3
tccgen.c
3
tccgen.c
|
@ -1742,8 +1742,8 @@ static void tcc_debug_funcstart(TCCState *s1, Sym *sym)
|
||||||
tcc_debug_stabn(s1, N_LBRAC, ind - func_ind);
|
tcc_debug_stabn(s1, N_LBRAC, ind - func_ind);
|
||||||
if (!(f = put_new_file(s1)))
|
if (!(f = put_new_file(s1)))
|
||||||
return;
|
return;
|
||||||
tcc_debug_line(s1);
|
|
||||||
if (s1->dwarf) {
|
if (s1->dwarf) {
|
||||||
|
tcc_debug_line(s1);
|
||||||
dwarf_info.func = sym;
|
dwarf_info.func = sym;
|
||||||
dwarf_info.line = file->line_num;
|
dwarf_info.line = file->line_num;
|
||||||
if (s1->do_backtrace) {
|
if (s1->do_backtrace) {
|
||||||
|
@ -1762,6 +1762,7 @@ static void tcc_debug_funcstart(TCCState *s1, Sym *sym)
|
||||||
tcc_get_debug_info(s1, sym->type.ref, &debug_str);
|
tcc_get_debug_info(s1, sym->type.ref, &debug_str);
|
||||||
put_stabs_r(s1, debug_str.data, N_FUN, 0, f->line_num, 0, cur_text_section, sym->c);
|
put_stabs_r(s1, debug_str.data, N_FUN, 0, f->line_num, 0, cur_text_section, sym->c);
|
||||||
cstr_free (&debug_str);
|
cstr_free (&debug_str);
|
||||||
|
tcc_debug_line(s1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue