Fix add debug support to macos

This commit is contained in:
herman ten brugge 2022-12-02 07:05:12 +01:00
parent 702b802316
commit 60d52f0d68

View File

@ -819,6 +819,7 @@ ST_FUNC void tcc_debug_start(TCCState *s1)
dwarf_line.filename_table[0].name = tcc_strdup(undo + 1);
dwarf_line.filename_table[1].dir_entry = 1;
dwarf_line.filename_table[1].name = tcc_strdup(undo + 1);
*undo = '/';
}
else {
dwarf_line.filename_table[0].name = tcc_strdup(filename);