public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/2 v2] jit : Generate debug info for variables
@ 2021-09-04 23:40 Petter Tomner
  0 siblings, 0 replies; only message in thread
From: Petter Tomner @ 2021-09-04 23:40 UTC (permalink / raw)
  To: gcc-patches, jit

Hi,

This is a revision of my patch for debug info.

The patches are posted as mails to this thread. Make check-jit runs fine on Debian x64.

Below is the original mail and under it a rehash of the review comments.

Regards, Petter

 ---------------------------------------------------------------------------------------------------------
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,
---------------------------------------------------------------------------------------------------------

> Can you write non-empty ChangeLog entries please.

Done. I think the python script chokes on asd/qwe/jit.db/ (the dot) though.

> @@ -2984,15 +2975,22 @@ replay ()
> Looks like some whitespace churn above

Fixed.

> I don't see "Signed-off-by" tags in the patches.

Added.

> I think this should be "unsupported" rather than "xfail".

Changed.

> This is OK, but maybe using gcc_jit_context_dump_to_file with
update_locations == 1 might be more sustainable in the long run?

Ye I didn't remember that flag. Entering loc manually aint no fun.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-04 23:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-04 23:40 [PATCH 0/2 v2] jit : Generate debug info for variables Petter Tomner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).