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