From 1c64f6cbcfb2acef1f80b6c03d989d77f9237779 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 24 Nov 2020 09:57:21 -0500 Subject: [PATCH] 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 --- gdb/ChangeLog | 4 ++++ gdb/regcache.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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. */ -- 2.30.2