History

Fix dwarf on 32 bits targets

Never do last minute commits :-(

herman ten brugge committed 4 years ago

Commit f0df48f1 parent 2f2708a1 file · +2 −1Browse files

Unified · Split

tccgen.c+2−1
@@ -1742,8 +1742,8 @@ static void tcc_debug_funcstart(TCCState *s1, Sym *sym) · 1741 unmodified lines
17421742 tcc_debug_stabn(s1, N_LBRAC, ind - func_ind);
17431743 if (!(f = put_new_file(s1)))
17441744 return;
1745− tcc_debug_line(s1);
17461745 if (s1->dwarf) {
1746+ tcc_debug_line(s1);
17471747 dwarf_info.func = sym;
17481748 dwarf_info.line = file->line_num;
17491749 if (s1->do_backtrace) {
@@ -1762,6 +1762,7 @@ static void tcc_debug_funcstart(TCCState *s1, Sym *sym) · 12 unmodified lines
17621762 tcc_get_debug_info(s1, sym->type.ref, &debug_str);
17631763 put_stabs_r(s1, debug_str.data, N_FUN, 0, f->line_num, 0, cur_text_section, sym->c);
17641764 cstr_free (&debug_str);
1765+ tcc_debug_line(s1);
17651766 }
17661767 }
17671768

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t