From: Simon Marchi Date: Tue, 24 Nov 2020 14:57:21 +0000 (-0500) Subject: gdb: remove struct cached_reg typedef X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c64f6cbcfb2acef1f80b6c03d989d77f9237779;p=binutils-gdb.git gdb: remove struct cached_reg typedef Since we are in C++, this typedef is no longer necessary, we can just refer to the struct name directly. gdb/ChangeLog: * regcache.h (struct cached_reg): Remove typedef. Change-Id: I0168b5a9cf88e9b962521760c7e2d0e6f0b52cdf --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7c610763e4e..50435b6eb59 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-11-24 Simon Marchi + + * regcache.h (struct cached_reg): Remove typedef. + 2020-11-24 Joel Brobecker * README: Fix the URL of the MPFR library. diff --git a/gdb/regcache.h b/gdb/regcache.h index 9390f5708ea..bb7d3c5ea86 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -167,11 +167,11 @@ typedef gdb::function_view /* A (register_number, register_value) pair. */ -typedef struct cached_reg +struct cached_reg_t { int num; gdb_byte *data; -} cached_reg_t; +}; /* Buffer of registers. */