aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-05-27 16:53:49 +0100
committerPedro Alves <pedro@palves.net>2022-06-17 09:58:49 +0100
commitdac9773e17261f905d51684fe35da036e82c69cd (patch)
treed2db5b16a215c83434d7e222585e204d9d491f6c /gdb/linespec.c
parent709438c75abc52cdc4888e7eaa089c2709c75a07 (diff)
downloadfsf-binutils-gdb-dac9773e17261f905d51684fe35da036e82c69cd.zip
fsf-binutils-gdb-dac9773e17261f905d51684fe35da036e82c69cd.tar.gz
fsf-binutils-gdb-dac9773e17261f905d51684fe35da036e82c69cd.tar.bz2
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
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 5c75e2e..10dca95 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -2015,7 +2015,7 @@ canonicalize_linespec (struct linespec_state *state, const linespec *ls)
/* If this location originally came from a linespec, save a string
representation of it for display and saving to file. */
if (state->is_linespec)
- set_location_spec_string (explicit_loc, explicit_loc->to_linespec ());
+ explicit_loc->set_string (explicit_loc->to_linespec ());
}
/* Given a line offset in LS, construct the relevant SALs. */