mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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>
This commit is contained in:
@ -284,8 +284,8 @@ gdbpy_execute_mi_command (PyObject *self, PyObject *args, PyObject *kw)
|
||||
try
|
||||
{
|
||||
scoped_restore save_uiout = make_scoped_restore (¤t_uiout, &uiout);
|
||||
std::unique_ptr<struct mi_parse> parser
|
||||
= mi_parse::make (std::move (mi_command), std::move (arg_strings));
|
||||
auto parser = gdb::make_unique<mi_parse> (std::move (mi_command),
|
||||
std::move (arg_strings));
|
||||
mi_execute_command (parser.get ());
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
|
Reference in New Issue
Block a user