gdb: remove mi_parse::make functions
authorAndrew Burgess <aburgess@redhat.com>
Fri, 11 Aug 2023 10:53:27 +0000 (11:53 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 23 Aug 2023 08:50:32 +0000 (09:50 +0100)
commit951dbdfeec44d8d2971b155f17edff09d6f1a67a
treec6c22adb73132ffc36e6ea112c6848b7fc17a5d5
parente200b179ce7d2b03e903a2da1e8d1a6739cdca1c
gdb: remove mi_parse::make functions

Remove the static mi_parse::make functions, and instead use the
mi_parse constructor.

This is a partial revert of the commit:

  commit fde3f93adb50c9937cd2e1c93561aea2fd167156
  Date:   Mon Mar 20 10:56:55 2023 -0600

      Introduce "static constructor" for mi_parse

which introduced the mi_parse::make functions, though after discussion
on the list the reasons for seem to have been lost[1].  Given there
are no test regressions when moving back to using the constructors, I
propose we should do that for now.

There should be no user visible changes after this commit.

[1] https://inbox.sourceware.org/gdb-patches/20230404-dap-loaded-sources-v2-5-93f229095e03@adacore.com/

Approved-By: Tom Tromey <tom@tromey.com>
gdb/mi/mi-main.c
gdb/mi/mi-parse.c
gdb/mi/mi-parse.h
gdb/python/py-mi.c