tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Add debug information.


From: Herman ten Brugge
Subject: Re: [Tinycc-devel] Add debug information.
Date: Sat, 18 Jan 2020 21:55:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Oops. Sent the wrong patch. See correct one in attachment.

Herman

On 2020-01-18 18:24, Herman ten Brugge wrote:
I created a path to add debug type information (see attachment).

The patch only supports basic types and array/ptr types of them.

So:
int main(int argc, char *argv[])

is supported.

Other things like structs/unions/enums/bitfields are all translated to void.
This should probably change in the future.

I also generate a new type whenever I see a pointer or array.
This creates a lot of types but gdb seems happy with it.
If I compile tcc with bounds-checking I see 1473 types.
In the future types should be optimized.

Can I apply this patch?

Regards,

    Herman

Attachment: patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]