After a previous patch applied...
Bug: a line number declaration (# NUM xxx "file_name") is not used
when generating a debug info. A test case: precompile your project
files with tcc and then use a precompiled files to get an executable
with a debug info included. This info will be wrong. A gcc works rigth
in this case.


2015-01-04 8:10 GMT+03:00, Sergey Korshunoff <sey...@gmail.com>:
> Return back a grischka patch which lost after
> "Split elf_output_file in smaller functions"
>
> Author: grischka <grischka>
> Date:   Tue Feb 5 21:18:29 2013 +0100
> tccelf: fix debug section relocation
> With:
>        tcc -g hello.c
>        gdb a.out
>          b main
> gdb refused to know "main" because of broken dwarf info.
>
> 2015-01-03 22:03 GMT+03:00, Sergey Korshunoff <sey...@gmail.com>:
>> There is a patch 4aec2902cabb819e24850c80ddb364b7b4308b7b
>> Author: Thomas Preud'homme <robo...@celest.fr>
>> Date:   Wed Dec 18 11:17:17 2013 +0800
>> Split elf_output_file in smaller functions
>>
>> After this patch a usage of the gdb 6.6 on Linux is not possible (gdb
>> can not find a main proc for setting a breakpoint). Which debuger you
>> on LInux to debug a programs compiled by tcc?
>>
>> PS: I don't have problems with debugging a programs which are compiled
>> by gcc 4.1.2, 3.4.6, ...
>>
>

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to