From 13df7891b1f4b50f15c9e2840e3d25c9cb2bbfd3 Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Wed, 11 Jun 2025 19:10:56 +0800 Subject: [PATCH] Display unknown when breakpoint type is unknown Fix bug of index error --- .gdbinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gdbinit b/.gdbinit index 3af237b..eac5d42 100644 --- a/.gdbinit +++ b/.gdbinit @@ -2291,7 +2291,7 @@ class Breakpoints(Dashboard.Module): # format common information style = R.style_selected_1 if breakpoint['enabled'] else R.style_selected_2 number = ansi(breakpoint['number'], style) - bp_type = ansi(Breakpoints.NAMES[breakpoint['type']], style) + bp_type = ansi(Breakpoints.NAMES.get(breakpoint['type'], 'unknown'), style) if breakpoint['temporary']: bp_type = bp_type + ' {}'.format(ansi('once', style)) if not R.ansi and breakpoint['enabled']: