Split struct symtab into two: struct symtab and compunit_symtab.
[deliverable/binutils-gdb.git] / gdb / python / py-symtab.c
index 6f4070d8143d42b0cabfac6f2a240186d81d818d..caa09986ee4da6c5cefe0608eee037f67ae9f419 100644 (file)
@@ -132,11 +132,13 @@ static PyObject *
 stpy_get_producer (PyObject *self, void *closure)
 {
   struct symtab *symtab = NULL;
+  struct compunit_symtab *cust;
 
   STPY_REQUIRE_VALID (self, symtab);
-  if (symtab->producer != NULL)
+  cust = SYMTAB_COMPUNIT (symtab);
+  if (COMPUNIT_PRODUCER (cust) != NULL)
     {
-      const char *producer = symtab->producer;
+      const char *producer = COMPUNIT_PRODUCER (cust);
 
       return PyString_Decode (producer, strlen (producer),
                              host_charset (), NULL);
This page took 0.025966 seconds and 4 git commands to generate.