gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / go-exp.y
index ad174119abb57cc4da35241c9fbf830d48a2b4d9..17c76ac02ab07dc2baa073cb00304af9b8c061e1 100644 (file)
@@ -1,6 +1,6 @@
 /* YACC parser for Go expressions, for GDB.
 
-   Copyright (C) 2012-2019 Free Software Foundation, Inc.
+   Copyright (C) 2012-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -1333,7 +1333,7 @@ package_name_p (const char *name, const struct block *block)
 
   if (sym
       && SYMBOL_CLASS (sym) == LOC_TYPEDEF
-      && TYPE_CODE (SYMBOL_TYPE (sym)) == TYPE_CODE_MODULE)
+      && SYMBOL_TYPE (sym)->code () == TYPE_CODE_MODULE)
     return 1;
 
   return 0;
This page took 0.026794 seconds and 4 git commands to generate.