Hello Sergey,
in 09d4e4f40838 you reverted an older patch from grischka that was
supposed to make gdb work. Your explanation was:
Revert a grischka patch: gdb refused to know "main"
It is a strange patch because before this commit a gdb is working well
and after this commit there is exactly the same problem on Linux:
gdb refuses to know "main"
This is not correct. Before grischkas patch, and now, after your revert,
gdb does _not_ work correctly:
----------
% tcc -g ~/hello.c
% gdb ./a.out
...
(gdb) start
Temporary breakpoint 1 at 0x0
Starting program: /matz/git/tinycc/hello
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x0: Input/output error.
----------
I also can't see how this could work for you. .stabs sections must be
relocated in executables, and the above is exactly the effect of not
relocating them. As grischka already had a reproducer receipt in his
changelog, next time, please use them to verify your revert. Reverting
your revert makes hello debuggable.
Now, before reverting your revert, please explain which problem you really
wanted to fix, surely it wasn't just because you thought the patch was
"strange".
Ciao,
Michael.
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel