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
1742 tcc_debug_stabn(s1, N_LBRAC, ind - func_ind);1742 tcc_debug_stabn(s1, N_LBRAC, ind - func_ind);
1743 if (!(f = put_new_file(s1)))1743 if (!(f = put_new_file(s1)))
1744 return;1744 return;
1745 tcc_debug_line(s1);
1746 if (s1->dwarf) {1745 if (s1->dwarf) {
1746 tcc_debug_line(s1);
1747 dwarf_info.func = sym;1747 dwarf_info.func = sym;
1748 dwarf_info.line = file->line_num;1748 dwarf_info.line = file->line_num;
1749 if (s1->do_backtrace) {1749 if (s1->do_backtrace) {
@@ -1762,6 +1762,7 @@ static void tcc_debug_funcstart(TCCState *s1, Sym *sym) · 12 unmodified lines
1762 tcc_get_debug_info(s1, sym->type.ref, &debug_str);1762 tcc_get_debug_info(s1, sym->type.ref, &debug_str);
1763 put_stabs_r(s1, debug_str.data, N_FUN, 0, f->line_num, 0, cur_text_section, sym->c);1763 put_stabs_r(s1, debug_str.data, N_FUN, 0, f->line_num, 0, cur_text_section, sym->c);
1764 cstr_free (&debug_str);1764 cstr_free (&debug_str);
1765 tcc_debug_line(s1);
1765 }1766 }
1766}1767}
1767 1768

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