Compiling with debug info
Andrea Corallo
andrea.corallo@arm.com
Mon May 25 12:04:06 GMT 2020
Antoni Boucher via Jit <jit@gcc.gnu.org> writes:
> Hi.
> I'd like to debug a segfault I'm having with libgccjit, but I'm unable
> to get debug info.
> I tried adding -g and setting STRIP to 0 but I still get no symbols in
> gdb (in the compiler itself, not the program compiled with it).
>
> For reference, here's my starting point to compile libgccjit:
> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libgccjit#n60
>
> Thanks.
Hi Antoni,
not sure if it's the only or the best way, what I usually do when I
discover I need debug symbols is just to recompile the gcc/ folder
within the build directory using the flags I want.
You probably have seen already this page
https://gcc.gnu.org/onlinedocs/jit/internals/index.html#environment-variables
with instructions on how to work with a non installed libgccjit in case
you don't want to install your dev build.
Regards
Andrea
More information about the Jit
mailing list