Make dwarf2_evaluate_property parameter const
authorTom Tromey <tromey@adacore.com>
Fri, 20 Mar 2020 19:04:56 +0000 (13:04 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 20 Mar 2020 19:06:22 +0000 (13:06 -0600)
commitfe26d3a34a223a86fddb59ed70a621a13940a088
treee0bcab5c08279f3a85d330865abb232b8de2d857
parentc623cc90890de9958bcee382cc60ff1b605532ab
Make dwarf2_evaluate_property parameter const

dwarf2_evaluate_property should not modify its "addr_stack"
parameter's contents.  This patch makes this part of the API, by
marking it const.

gdb/ChangeLog
2020-03-20  Tom Tromey  <tromey@adacore.com>

* dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
const.
* dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
const.
gdb/ChangeLog
gdb/dwarf2/loc.c
gdb/dwarf2/loc.h