Unified · Split
| @@ -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 | ||
| 164 | static int debug_next_type = sizeof(default_debug) / sizeof(default_debug[0]); | 164 | static int debug_next_type; |
| 165 | 165 | ||
| 166 | static struct debug_hash { | 166 | static 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 | #endif | 404 | #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 | ||