[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] [PATCH] Re: using gdb 6.6 on linux fail after dec18 2
From: |
Sergey Korshunoff |
Subject: |
Re: [Tinycc-devel] [PATCH] Re: using gdb 6.6 on linux fail after dec18 2013 |
Date: |
Sun, 4 Jan 2015 17:42:38 +0300 |
Yes, you are right. I'm lost the ground trying to detect a point after
which debugger don't do the work. tcc v0.9.25 was working. After a
grischka patch a debugger don't work. And exactly with the same
symptom: gdb refused to know "main".I don't understand why, sorry. Did
gdb work for you w/o a patch?
PS: may be this is because I work in 32bit environment...
2015-01-04 16:36 GMT+03:00, Thomas Preud'homme <address@hidden>:
> Le dimanche 4 janvier 2015, 08:10:40 Sergey Korshunoff a écrit :
>> 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.
>
> I don't understand. The commit you mention
> (92024ab07ad8e1c4a05f90add3d3ca7932251016) contains the exact opposite
> patch.
> Also the patch I wrote to split elf_output_file in several functions didn't
>
> change this line. I quote the rest of the commit message:
>
> "This partially reverts commit 0d598aca087e46ea67f97dda50df3eed522d5e7a.
> I don't remember what the problem was but it was the wrong way to fix it."
>
> So before we revert the revert it would be nice to have an explanation of
> why
> this is necessary. By this I mean an analysis of what's happening, not just
>
> "it works after I revert".
>
> Best regards,
>
> Thomas
>