diff options
-rw-r--r-- | gdb/dwarf2/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 9311666..d834870 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -5647,7 +5647,7 @@ compute_delayed_physnames (struct dwarf2_cu *cu) while (1) { - if (physname[len] == ')') /* shortcut */ + if (physname[len - 1] == ')') /* shortcut */ break; else if (check_modifier (physname, len, " const")) TYPE_FN_FIELD_CONST (fn_flp->fn_fields, mi.index) = 1; |