[GDBserver] unit test to i386_tdesc
[deliverable/binutils-gdb.git] / gdb / regformats / regdef.h
index de7a010ec7558d92b97a5f020c0c3685b76b865c..ff1d40b777db70ba8b01d96945c03365854e3872 100644 (file)
@@ -34,6 +34,18 @@ struct reg
 
   /* The size (in bits) of the value of this register, as transmitted.  */
   int size;
+
+  bool operator== (const reg &other) const
+  {
+    return (strcmp (name, other.name) == 0
+           && offset == other.offset
+           && size == other.size);
+  }
+
+  bool operator!= (const reg &other) const
+  {
+    return !(*this == other);
+  }
 };
 
 #endif /* REGDEF_H */
This page took 0.028169 seconds and 4 git commands to generate.