Am 28.08.26 um 19:20 schrieb Georg-Johann Lay via Gcc:
Perhaps someone can help me with debugging cc1.
What I am doing is to run
$ ddd cc1
from the gcc $buildir/gcc
gdb says:
GNU DDD 3.3.12 (x86_64-pc-linux-gnu), by Dorothea LReading symbols from
cc1...
Breakpoint 1 at 0x1fa219b
Breakpoint 2 at 0x1f97ea1
Breakpoint 3 at 0x95a5e0
Breakpoint 4 at 0x95a690
File tree.h will be skipped when stepping.
File is-a.h will be skipped when stepping.
File line-map.h will be skipped when stepping.
File timevar.h will be skipped when stepping.
Function rtx_expr_list::next will be skipped when stepping.
Function rtx_expr_list::element will be skipped when stepping.
Function rtx_insn_list::next will be skipped when stepping.
Function rtx_insn_list::insn will be skipped when stepping.
Function rtx_sequence::len will be skipped when stepping.
Function rtx_sequence::element will be skipped when stepping.
Function rtx_sequence::insn will be skipped when stepping.
Function INSN_UID will be skipped when stepping.
Function PREV_INSN will be skipped when stepping.
Function SET_PREV_INSN will be skipped when stepping.
Function NEXT_INSN will be skipped when stepping.
Function SET_NEXT_INSN will be skipped when stepping.
Function BLOCK_FOR_INSN will be skipped when stepping.
Function PATTERN will be skipped when stepping.
Function INSN_LOCATION will be skipped when stepping.
Function INSN_HAS_LOCATION will be skipped when stepping.
Function JUMP_LABEL_AS_INSN will be skipped when stepping.
Python Exception <class 'gdb.error'>: No enum type named tree_code.
.gdbinit:18: Error in sourced command file:
Error occurred in Python: No enum type named tree_code.
For reference, this is builddir/gcc/.gdbinit:
dir .
dir ../../../source/gcc-master/gcc
dir ../../../source/gcc-master/gcc/ada
dir ../../../source/gcc-master/gcc/algol68
dir ../../../source/gcc-master/gcc/c
dir ../../../source/gcc-master/gcc/cobol
dir ../../../source/gcc-master/gcc/cp
dir ../../../source/gcc-master/gcc/d
dir ../../../source/gcc-master/gcc/fortran
dir ../../../source/gcc-master/gcc/go
dir ../../../source/gcc-master/gcc/jit
dir ../../../source/gcc-master/gcc/lto
dir ../../../source/gcc-master/gcc/m2
dir ../../../source/gcc-master/gcc/objc
dir ../../../source/gcc-master/gcc/objcp
dir ../../../source/gcc-master/gcc/rust
source ../../../source/gcc-master/gcc/gdbinit.in
python import sys; sys.path.append('../../../source/gcc-master/gcc');
import gdbhooks
Line 18 is the python command.
(gdb)
What to do about it? I have
$ gdb --version
GNU gdb (Ubuntu 15.1-1ubuntu1~24.04.1) 15.1
$ python --version
Python 2.7.18
and GCC is from current trunk.
When I just continue and "run", then
Starting program: .../gcc/cc1
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.ubuntu.com>
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off'
to .gdbinit.
What's the recommendation here?
Thanks in advance.