Make TUI resizing tests more robust
[deliverable/binutils-gdb.git] / gdb / extension.c
index 0e44140786ec46413377634f0623c810703f20ef..1fb4b48003a755dd49e98d1413a8418dff88d4a1 100644 (file)
    have "ext_lang" in the name, and no other symbol in gdb does.  */
 
 #include "defs.h"
-
-/* Standard C includes.  */
 #include <signal.h>
-
-/* Local non-gdb includes.  */
+#include "target.h"
 #include "auto-load.h"
 #include "breakpoint.h"
-#include "cli/cli-script.h"
 #include "event-top.h"
-#include "extension-priv.h"
 #include "extension.h"
-#include "guile/guile.h"
+#include "extension-priv.h"
 #include "observable.h"
+#include "cli/cli-script.h"
 #include "python/python.h"
-#include "target.h"
+#include "guile/guile.h"
 
 /* Iterate over all external extension languages, regardless of whether the
    support has been compiled in or not.
@@ -158,6 +154,9 @@ get_ext_lang_of_file (const char *file)
   int i;
   const struct extension_language_defn *extlang;
 
+  if (has_extension (file, extension_language_gdb.suffix))
+    return &extension_language_gdb;
+
   ALL_EXTENSION_LANGUAGES (i, extlang)
     {
       if (has_extension (file, extlang->suffix))
This page took 0.023771 seconds and 4 git commands to generate.