Constify chain_candidate
authorTom Tromey <tromey@adacore.com>
Fri, 19 Nov 2021 15:02:38 +0000 (08:02 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 28 Mar 2022 19:07:42 +0000 (13:07 -0600)
commit394d8c59ea961e1dcf89ec6c8b6d6606b361590a
tree771df40888b2cb17f465518236664007415378b2
parent797662d7ef6705f9c300cb3e9a78f17f0f2aedad
Constify chain_candidate

While investigating this bug, I wasn't sure if chain_candidate might
update 'chain'.  I changed it to accept a const reference, making it
clear that it cannot.  This simplifies the code a tiny bit as well.
gdb/dwarf2/loc.c