Linux: Access memory even if threads are running
[deliverable/binutils-gdb.git] / gdb / go-valprint.c
index fdbc5c4e95a84303c536503518956323a797c2be..e04ea6b45faa1afc5c52394c0e304863add9f5fd 100644 (file)
@@ -1,6 +1,6 @@
 /* Support for printing Go values for GDB, the GNU debugger.
 
-   Copyright (C) 2012-2020 Free Software Foundation, Inc.
+   Copyright (C) 2012-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -43,7 +43,7 @@ print_go_string (struct type *type,
                 struct value *val,
                 const struct value_print_options *options)
 {
-  struct gdbarch *gdbarch = get_type_arch (type);
+  struct gdbarch *gdbarch = type->arch ();
   struct type *elt_ptr_type = type->field (0).type ();
   struct type *elt_type = TYPE_TARGET_TYPE (elt_ptr_type);
   LONGEST length;
This page took 0.025651 seconds and 4 git commands to generate.