aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-01-27 16:58:12 -0700
committerTom Tromey <tom@tromey.com>2025-03-06 07:33:28 -0700
commit9d3fbbd4c4c60d494d742e9dd188f5f7d638e9de (patch)
tree5ec59510a742ad4f156c9d3dd92ae1df04225a0f
parent5393cfd07abcafad6f3a84dcd263f7248943ace6 (diff)
downloadbinutils-9d3fbbd4c4c60d494d742e9dd188f5f7d638e9de.zip
binutils-9d3fbbd4c4c60d494d742e9dd188f5f7d638e9de.tar.gz
binutils-9d3fbbd4c4c60d494d742e9dd188f5f7d638e9de.tar.bz2
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>
-rw-r--r--gdb/dwarf2/cooked-index.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c
index 21d9dab..bbe14ad 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;