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.
(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.