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
161161 { VT_VOID, "void:t25=25", },
162162 };
163163
164−static int debug_next_type = sizeof(default_debug) / sizeof(default_debug[0]);
164+static int debug_next_type;
165165
166166 static struct debug_hash {
167167 int debug_type;
@@ -403,6 +403,7 @@ ST_FUNC void tcc_debug_start(TCCState *s1) · 235 unmodified lines
403403 normalize_slashes(buf);
404404 #endif
405405 pstrcat(buf, sizeof(buf), "/");
406+ debug_next_type = sizeof(default_debug) / sizeof(default_debug[0]);
406407 put_stabs_r(s1, buf, N_SO, 0, 0,
407408 text_section->data_offset, text_section, section_sym);
408409 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
694695 tcc_debug_stabn(N_RBRAC, size);
695696 tcc_debug_finish (debug_info_root);
696697 debug_info_root = NULL;
698+ debug_info = NULL;
697699 cstr_free (&debug_str);
698700 }
699701

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