gdb: remove unexpected xstrdup in _initialize_maint_test_settings
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 2 Dec 2021 19:12:44 +0000 (14:12 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 2 Dec 2021 19:14:01 +0000 (14:14 -0500)
commita6ea2592a983a67f7c537fb97eab7c9e9ba675c7
treefa37ec45fd9889ddea07b8e6c17a9405e94f887a
parent117e35f51972acd1f29fd249ef20343258ef5256
gdb: remove unexpected xstrdup in _initialize_maint_test_settings

That xstrdup is not correct, since we are assigning an std::string.  The
result of xstrdup is used to initialize the string, and then lost
forever.  Remove it.

Change-Id: Ief7771055e4bfd643ef3b285ec9fb7b1bfd14335
gdb/maint-test-settings.c