how to find find the source path line and col of a gcc_jit_location (GCC-15, Linux)

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

 



Hello all,

Assume I have a valid struct gcc_jit_context.

Assume I have some valid gcc_jit_location* pointer say locptr.

Assume I am using libgccjit (e.g. compiled from gcc-15-20250105 on
Linux/Debian/Trixie/x86-64)

What public functions can I use to retrieve the source file path (as a
std::string) of locptr and the line and column numbers?

So I am seeking the reverse functions of  gcc_jit_context_new_location


Thanks

PS. This is for https://github.com/RefPerSys/RefPerSys/ (an inference engine
project GPLv3+)


-- 
Basile STARYNKEVITCH           <basile@xxxxxxxxxxxxxxxxx>
8 rue de la Faïencerie
92340 Bourg-la-Reine,          France
http://starynkevitch.net/Basile & https://github.com/bstarynk 





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux