[PATCH 14/20] Use type allocator for range types
Simon Marchi
simark@simark.ca
Tue Mar 14 14:41:39 GMT 2023
> diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
> index dd9d59d5ae8..83fbfdbcee0 100644
> --- a/gdb/gdbtypes.h
> +++ b/gdb/gdbtypes.h
> @@ -2470,7 +2470,12 @@ extern struct type *lookup_function_type_with_arguments (struct type *,
> int,
> struct type **);
>
> -extern struct type *create_static_range_type (struct type *, struct type *,
> +/* Create a range type using ALLOC.
> +
> + Indices will be of type INDEX_TYPE, and will range from LOW_BOUND
> + to HIGH_BOUND, inclusive. */
> +
> +extern struct type *create_static_range_type (type_allocator &, struct type *,
> LONGEST, LONGEST);
I don't know what you think about declarations without names, but when I
touch one, I try to add the names. Especially if the comment refers to
them, it makes things a bit clearer.
Simon
More information about the Gdb-patches
mailing list