]> Git Repo - binutils.git/blobdiff - gdb/rust-lang.h
Automatic date update in version.in
[binutils.git] / gdb / rust-lang.h
index 6da57f8633fddd2ea2d5c1268b3b113ac2f47c74..a1d10263feb3ffc355ad983de1600d7399d0c2c5 100644 (file)
@@ -107,6 +107,13 @@ public:
 
   /* See language.h.  */
 
+  bool can_print_type_offsets () const override
+  {
+    return true;
+  }
+
+  /* See language.h.  */
+
   void print_type (struct type *type, const char *varstring,
                   struct ui_file *stream, int show, int level,
                   const struct type_print_options *flags) const override;
@@ -116,7 +123,7 @@ public:
   gdb::unique_xmalloc_ptr<char> watch_location_expression
        (struct type *type, CORE_ADDR addr) const override
   {
-    type = check_typedef (TYPE_TARGET_TYPE (check_typedef (type)));
+    type = check_typedef (check_typedef (type)->target_type ());
     std::string name = type_to_string (type);
     return xstrprintf ("*(%s as *mut %s)", core_addr_to_string (addr),
                       name.c_str ());
This page took 0.024512 seconds and 4 git commands to generate.