From ad523d014ca6baddbf84196e8a8a7a4335c1d03c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 20 Oct 2020 15:28:22 -0600 Subject: [PATCH] Remove varobj_item typedef While working on some minor varobj cleanups, I noticed this obvious one: the varobj_item typedef isn't redundant in C++, and so can be removed. gdb/ChangeLog 2020-10-20 Tom Tromey * varobj-iter.h (struct varobj_item): Remove typedef. --- gdb/ChangeLog | 4 ++++ gdb/varobj-iter.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7dec61d47d..b74ffa4b895 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-10-20 Tom Tromey + + * varobj-iter.h (struct varobj_item): Remove typedef. + 2020-10-20 Simon Marchi * infrun.c (currently_stepping): Change int to bool diff --git a/gdb/varobj-iter.h b/gdb/varobj-iter.h index 0422492c6dd..240b686b256 100644 --- a/gdb/varobj-iter.h +++ b/gdb/varobj-iter.h @@ -19,14 +19,14 @@ /* A node or item of varobj, composed of the name and the value. */ -typedef struct varobj_item +struct varobj_item { /* Name of this item. */ std::string name; /* Value of this item. */ struct value *value; -} varobj_item; +}; struct varobj_iter_ops; -- 2.30.2