Convert set_location_spec_string to a method
authorPedro Alves <pedro@palves.net>
Fri, 27 May 2022 15:53:49 +0000 (16:53 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 17 Jun 2022 08:58:49 +0000 (09:58 +0100)
commitdac9773e17261f905d51684fe35da036e82c69cd
treed2db5b16a215c83434d7e222585e204d9d491f6c
parent709438c75abc52cdc4888e7eaa089c2709c75a07
Convert set_location_spec_string to a method

This converts set_location_spec_string to a method of location_spec,
and makes the location_spec::as_string field protected, renaming it to
m_as_string along the way.

Change-Id: Iccfb1654e9fa7808d0512df89e775f9eacaeb9e0
gdb/linespec.c
gdb/location.c
gdb/location.h