mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
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
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user