From: Tom Tromey Date: Mon, 27 Jan 2025 23:58:12 +0000 (-0700) Subject: Use "::" as separator for Fortran in cooked index X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d3fbbd4c4c60d494d742e9dd188f5f7d638e9de;p=thirdparty%2Fbinutils-gdb.git Use "::" as separator for Fortran in cooked index This teaches cooked_index_entry::full_name that "::" is the separator for Fortran. I don't know enough Fortran to write a test case for this. However, a different series I am working on has a regression if this patch is not applied. Approved-By: Simon Marchi --- diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c index 21d9dab5f41..bbe14adcd56 100644 --- a/gdb/dwarf2/cooked-index.c +++ b/gdb/dwarf2/cooked-index.c @@ -234,6 +234,7 @@ cooked_index_entry::full_name (struct obstack *storage, bool for_main, { case language_cplus: case language_rust: + case language_fortran: sep = "::"; break;