On Mon, Feb 16, 2026 at 10:34 AM Richard Biener <[email protected]> wrote: > > Hi, > > Ever since the change of now passing the diagnostic option ID as > struct (now diagnostics::option_id) I struggle with what previously > was as simple as > > (gdb) b warning_at if id == OPT_Wuninitialized > > doing > > (gdb) b warning_at if option_id == OPT_Wuninitialized
I do know that (gdb) cond 5 (opt_code)option_id.m_idx == OPT_Wmaybe_uninitialized works, but this is a) hard to remember and b) unwieldy. A better point to break at is also appreciated given there's of course warning_n and friends as well. > causes > > Error in testing condition for breakpoint 5.1: > Internal error: incompatible overload candidates proposed > > and I'm facing gazillion calls of warning_at that in the end are > not emitted and not relevant to what I am trying to debug. > > Can I ask for a sensible workaround / tip as to where I can > break to catch an actually emitted diagnostic reliably, > eventually filtered by the option kind? > > Thanks, > Richard.
