gdb: remove decref_target
authorAndrew Burgess <aburgess@redhat.com>
Thu, 22 Sep 2022 18:10:52 +0000 (19:10 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 14 Dec 2022 13:57:22 +0000 (13:57 +0000)
commit9678f8fe975c213c94735221dcb438395e4de9e1
treecb3bbbd084837f973f00217d4ca2dc6a12421925
parent91e3d1d1a5462e49bbf70e0ff2fa3bf3a6a80503
gdb: remove decref_target

The decref_target function is not really needed.  Calling
target_ops::decref will just redirect to decref_target anyway, so why
not just rename decref_target to target_ops::decref?

That's what this commit does.

It's not exactly renaming to target_ops::decref, because the decref
functionality is handled by a policy class, so the new name is now
target_ops_ref_policy::decref.

There should be no user visible change after this commit.
gdb/target.c
gdb/target.h