1# Debugging libgccjit
2
3▶Sometimes, libgccjit will crash and output an error like this:
4
5```
· · ·
6during RTL pass: expand
7▶libgccjit.so: error: in expmed_mode_index, at expmed.h:249
80x7f0da2e61a35 expmed_mode_index
9 ../../../gcc/gcc/expmed.h:249
· · ·
28```
29
30▶To see the code which causes this error, call the following function:
31
32```c
· · ·
38
39```
40▶libgccjit.so: /tmp/something.c:61322:0: error: in expmed_mode_index, at expmed.h:249
41```
42
· · ·
43▶Or add a breakpoint to `add_error` in gdb and print the line number using:
44
45```