fix stabstr with linked objects

This commit is contained in:
grischka
2008-04-27 18:49:31 +00:00
parent 0d598aca08
commit 5247bbc2f0
2 changed files with 33 additions and 1 deletions

2
tcc.c
View File

@ -9148,6 +9148,8 @@ void put_func_debug(Sym *sym)
funcname, sym->type.t & VT_STATIC ? 'f' : 'F');
put_stabs_r(buf, N_FUN, 0, file->line_num, 0,
cur_text_section, sym->c);
/* //gr gdb wants a line at the function */
put_stabn(N_SLINE, 0, file->line_num, 0);
last_ind = 0;
last_line_num = 0;
}