[binutils-gdb] Use "::" as separator for Fortran in cooked index
Tom Tromey
tromey@sourceware.org
Thu Mar 6 14:34:18 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9d3fbbd4c4c60d494d742e9dd188f5f7d638e9de
commit 9d3fbbd4c4c60d494d742e9dd188f5f7d638e9de
Author: Tom Tromey <tom@tromey.com>
Date: Mon Jan 27 16:58:12 2025 -0700
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 <simon.marchi@efficios.com>
Diff:
---
gdb/dwarf2/cooked-index.c | 1 +
1 file changed, 1 insertion(+)
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;
More information about the Gdb-cvs
mailing list