]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove split_style::UNDERSCORE
authorTom Tromey <tromey@adacore.com>
Fri, 10 Nov 2023 21:13:23 +0000 (14:13 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 6 Dec 2023 17:14:25 +0000 (10:14 -0700)
The recent changes to the way Ada names are matched means that
split_style::UNDERSCORE is no longer used.  This patch removes it.

gdb/split-name.c
gdb/split-name.h

index 0805cb82700fb1af390ebeab14efd8d12c258bd4..4ef022cf58eb156e35e04566acc58a94bce6ca69 100644 (file)
@@ -45,19 +45,6 @@ split_name (const char *name, split_style style)
        }
       break;
 
-    case split_style::UNDERSCORE:
-      /* Handle the Ada encoded (aka mangled) form here.  */
-      for (const char *iter = strstr (name, "__");
-          iter != nullptr;
-          iter = strstr (iter, "__"))
-       {
-         result.emplace_back (&name[previous_len],
-                              iter - &name[previous_len]);
-         iter += 2;
-         previous_len = iter - name;
-       }
-      break;
-
     case split_style::DOT_STYLE:
       /* D and Go-style names.  */
       for (const char *iter = strchr (name, '.');
index ad2862e222d7d7bf295407136da03b645776ceb7..2674c9b8d273b3053eab733c97a7c667767ee296 100644 (file)
@@ -33,8 +33,6 @@ enum class split_style
   /* Split at ".".  Used by Ada, Go, D.  This has a funny name to work
      around a bug in Bison 2.3, which is used on macOS.  */
   DOT_STYLE,
-  /* Split at "__".  Used by Ada encoded names.  */
-  UNDERSCORE,
 };
 
 /* Split NAME into components at module boundaries.  STYLE indicates