* ada-lang.c (ada_decode): Add handling of "TB" suffixes for
[deliverable/binutils-gdb.git] / gdb / ada-lang.c
index 4d3c2b44f4c1b95952a7b485267da77ebfe16b7b..06aaadc327bc6c9f178ae4bef74435d72dfb180e 100644 (file)
@@ -946,6 +946,13 @@ ada_decode (const char *encoded)
   if (len0 > 3 && strncmp (encoded + len0 - 3, "TKB", 3) == 0)
     len0 -= 3;
 
+  /* Remove any trailing TB suffix.  The TB suffix is slightly different
+     from the TKB suffix because it is used for non-anonymous task
+     bodies.  */
+
+  if (len0 > 2 && strncmp (encoded + len0 - 2, "TB", 2) == 0)
+    len0 -= 2;
+
   /* Remove trailing "B" suffixes.  */
   /* FIXME: brobecker/2006-04-19: Not sure what this are used for...  */
 
This page took 0.024706 seconds and 4 git commands to generate.