History

Fix symbolic debugging for -g -dt -run

herman ten brugge committed 6 years ago

Commit 973a14b1 parent 3e731e31 file · +3 −1Browse files

Unified · Split

tccgen.c+3−1
@@ -161,7 +161,7 @@ static struct { · 160 unmodified lines
161 { VT_VOID, "void:t25=25", },161 { VT_VOID, "void:t25=25", },
162};162};
163 163
164static int debug_next_type = sizeof(default_debug) / sizeof(default_debug[0]);164static int debug_next_type;
165 165
166static struct debug_hash {166static struct debug_hash {
167 int debug_type;167 int debug_type;
@@ -403,6 +403,7 @@ ST_FUNC void tcc_debug_start(TCCState *s1) · 235 unmodified lines
403 normalize_slashes(buf);403 normalize_slashes(buf);
404#endif404#endif
405 pstrcat(buf, sizeof(buf), "/");405 pstrcat(buf, sizeof(buf), "/");
406 debug_next_type = sizeof(default_debug) / sizeof(default_debug[0]);
406 put_stabs_r(s1, buf, N_SO, 0, 0,407 put_stabs_r(s1, buf, N_SO, 0, 0,
407 text_section->data_offset, text_section, section_sym);408 text_section->data_offset, text_section, section_sym);
408 put_stabs_r(s1, file->prev->filename, N_SO, 0, 0,409 put_stabs_r(s1, file->prev->filename, N_SO, 0, 0,
@@ -694,6 +695,7 @@ ST_FUNC void tcc_debug_funcend(TCCState *s1, int size) · 285 unmodified lines
694 tcc_debug_stabn(N_RBRAC, size);695 tcc_debug_stabn(N_RBRAC, size);
695 tcc_debug_finish (debug_info_root);696 tcc_debug_finish (debug_info_root);
696 debug_info_root = NULL;697 debug_info_root = NULL;
698 debug_info = NULL;
697 cstr_free (&debug_str);699 cstr_free (&debug_str);
698}700}
699 701

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