Remove a string copy from event_location_to_sals
authorTom Tromey <tom@tromey.com>
Sat, 31 Mar 2018 18:21:10 +0000 (12:21 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 5 Apr 2018 13:39:36 +0000 (07:39 -0600)
commit9be2c17a900178df75a2208fd112ceb4325a70c1
treea22e6175b1a96c74622746475ddf31d856dc0c42
parentf73c6ece7888af880d3b03b2d57ee7782f2a539b
Remove a string copy from event_location_to_sals

The use of "const" showed that a string copy in event_location_to_sals
was unnecessary.  This patch removes it.

ChangeLog
2018-04-05  Tom Tromey  <tom@tromey.com>

* linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
Remove a string copy.
gdb/ChangeLog
gdb/linespec.c