Remove VAR_DOMAIN/STRUCT_DOMAIN ambiguity from ada-tasks.c.
authorKeith Seitz <keiths@redhat.com>
Wed, 26 Mar 2014 15:25:03 +0000 (08:25 -0700)
committerKeith Seitz <keiths@redhat.com>
Wed, 26 Mar 2014 15:26:19 +0000 (08:26 -0700)
2014-03-26  Keith Seitz  <keiths@redhat.com>

* ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
types, not VAR_DOMAIN.

gdb/ChangeLog
gdb/ada-tasks.c

index 60a81afa2ffcf1d06f90f3ff98af77e289576db8..53f12e87f90bfa4c5cebdc11618a752c955133b5 100644 (file)
@@ -1,3 +1,8 @@
+2014-03-26  Keith Seitz  <keiths@redhat.com>
+
+       * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
+       types, not VAR_DOMAIN.
+
 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
 
        * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
index 8b37f518900738813c6e52bb1ce6beee3bfdd517..585c1f6ccc9b119818990233cca8c5f5b1e2d215 100644 (file)
@@ -470,24 +470,24 @@ get_tcb_types_info (void)
      C-like) lookups to get the first match.  */
 
   struct symbol *atcb_sym =
-    lookup_symbol_in_language (atcb_name, NULL, VAR_DOMAIN,
+    lookup_symbol_in_language (atcb_name, NULL, STRUCT_DOMAIN,
                               language_c, NULL);
   const struct symbol *common_atcb_sym =
-    lookup_symbol_in_language (common_atcb_name, NULL, VAR_DOMAIN,
+    lookup_symbol_in_language (common_atcb_name, NULL, STRUCT_DOMAIN,
                               language_c, NULL);
   const struct symbol *private_data_sym =
-    lookup_symbol_in_language (private_data_name, NULL, VAR_DOMAIN,
+    lookup_symbol_in_language (private_data_name, NULL, STRUCT_DOMAIN,
                               language_c, NULL);
   const struct symbol *entry_call_record_sym =
-    lookup_symbol_in_language (entry_call_record_name, NULL, VAR_DOMAIN,
+    lookup_symbol_in_language (entry_call_record_name, NULL, STRUCT_DOMAIN,
                               language_c, NULL);
 
   if (atcb_sym == NULL || atcb_sym->type == NULL)
     {
       /* In Ravenscar run-time libs, the  ATCB does not have a dynamic
          size, so the symbol name differs.  */
-      atcb_sym = lookup_symbol_in_language (atcb_name_fixed, NULL, VAR_DOMAIN,
-                                           language_c, NULL);
+      atcb_sym = lookup_symbol_in_language (atcb_name_fixed, NULL,
+                                           STRUCT_DOMAIN, language_c, NULL);
 
       if (atcb_sym == NULL || atcb_sym->type == NULL)
         error (_("Cannot find Ada_Task_Control_Block type. Aborting"));
This page took 0.028953 seconds and 4 git commands to generate.