.gdbinit:18: Error: Python: No enum type named tree_code.

Project / Subsystem

gcc / gcc

Date

2026-08-28

Proposer

Georg-Johann Lay <avr@gjlay.de>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

All attributes

project
gcc
subsystem
gcc
patch_id
—
discussion_id
4a18774b-9704-42f4-89e4-b50eb224c98e@gjlay.de
source_type
public_inbox
title
.gdbinit:18: Error: Python: No enum type named tree_code.
headline
GDB Python error: No enum type named tree_code
tldr
GDB fails with a Python error when debugging cc1, indicating an issue with symbol interpretation.
proposer
Georg-Johann Lay <avr@gjlay.de>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
[]
series_id
—
series_role
standalone
series_parts
[]
tags
  • • gdb
  • • debugging
  • • gcc
  • • python
bugzilla_url
—
date
2026-08-28T00:00:00.000Z

.gdbinit:18: Error: Python: No enum type named tree_code.

Georg-Johann Lay is encountering a Python error in GDB when attempting to debug the GCC compiler (cc1). The error message “No enum type named tree_code” suggests a mismatch or problem with how GDB is interpreting the compiler’s debugging symbols. The user is seeking assistance to resolve this debugging issue.