aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/rust-lang.h')
-rw-r--r--gdb/rust-lang.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/gdb/rust-lang.h b/gdb/rust-lang.h
index e76a63e..9ae5961 100644
--- a/gdb/rust-lang.h
+++ b/gdb/rust-lang.h
@@ -34,9 +34,6 @@ extern bool rust_tuple_type_p (struct type *type);
/* Return true if TYPE is a tuple struct type; otherwise false. */
extern bool rust_tuple_struct_type_p (struct type *type);
-/* Return true if TYPE is a slice type, otherwise false. */
-extern bool rust_slice_type_p (const struct type *type);
-
/* Given a block, find the name of the block's crate. Returns an empty
stringif no crate name can be found. */
extern std::string rust_crate_for_block (const struct block *block);
@@ -196,8 +193,7 @@ public:
/* See language.h. */
- bool is_array_like (struct type *type) const override
- { return rust_slice_type_p (type); }
+ bool is_array_like (struct type *type) const override;
/* See language.h. */
@@ -212,6 +208,13 @@ public:
private:
/* Helper for value_print_inner, arguments are as for that function.
+ Prints a slice. */
+
+ void val_print_slice (struct value *val, struct ui_file *stream,
+ int recurse,
+ const struct value_print_options *options) const;
+
+ /* Helper for value_print_inner, arguments are as for that function.
Prints structs and untagged unions. */
void val_print_struct (struct value *val, struct ui_file *stream,