Add accessors for members of complex numbers
[deliverable/binutils-gdb.git] / gdb / value.h
index e4fd258aa8f43025904f9fbcb0ad39af4f2f7cf9..85fe6c297f50d3f39b43cd92be99d900d3604c71 100644 (file)
@@ -1141,6 +1141,14 @@ extern struct value *value_slice (struct value *, int, int);
 extern struct value *value_literal_complex (struct value *, struct value *,
                                            struct type *);
 
+/* Return the real part of a complex value.  */
+
+extern struct value *value_real_part (struct value *value);
+
+/* Return the imaginary part of a complex value.  */
+
+extern struct value *value_imaginary_part (struct value *value);
+
 extern struct value *find_function_in_inferior (const char *,
                                                struct objfile **);
 
This page took 0.024033 seconds and 4 git commands to generate.