gdb: add comment in dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 28 May 2020 19:47:53 +0000 (15:47 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 28 May 2020 19:47:53 +0000 (15:47 -0400)
commit989ade05525047fc6b94f24ece5fc09e076027b0
tree572f397400e3008548b24603eeaebc15cc5ce594
parentc47bae859a5af0d95224d90000df0e529f7c5aa0
gdb: add comment in dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value

Add a comment to clarify why we temporarily override some of the
context's fields, and especially the per_objfile field.  A longer
explanation can be found in this previous commit

    44486dcf19b ("gdb: use caller objfile in dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value")

gdb/ChangeLog:

* dwarf2/loc.c (class dwarf_evaluate_loc_desc)
<push_dwarf_reg_entry_value>: Add comment.

Change-Id: I60c6e1062799f729b30a9db78bcb6448783324b4
gdb/ChangeLog
gdb/dwarf2/loc.c