Sv: [PATCH] jit : Generate debug info for variables

Petter Tomner tomner@kth.se
Tue Aug 31 00:23:52 GMT 2021


Well I seemed to have attached the wrong testcase. Here is the proper one attached.

Regards,

-----Ursprungligt meddelande-----
Från: Petter Tomner 
Skickat: den 31 augusti 2021 02:14
Till: gcc-patches@gcc.gnu.org; jit@gcc.gnu.org
Ämne: [PATCH] jit : Generate debug info for variables

Hi,

This is a patch to generate debug info for local variables as well as globals. 
With this, "ptype foo", "info variables", "info locals" etc works when debugging in GDB.

Finalizing of global variable declares are moved to after locations are handled and done
as Fortran, C, Go etc do it. Also, primitive types have their TYPE_NAME set for debug info
on types to work.

Below are the patch, and I attached a testcase. Since it requires GDB to run it might
not be suitable? Make check-jit runs fine on Debian x64.

Regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-libgccjit-Test-cases-for-debug-info.patch
Type: application/octet-stream
Size: 4668 bytes
Desc: 0002-libgccjit-Test-cases-for-debug-info.patch
URL: <https://gcc.gnu.org/pipermail/jit/attachments/20210831/bb73fe56/attachment-0001.obj>


More information about the Jit mailing list