Constify parse_and_eval_type
authorTom Tromey <tom@tromey.com>
Sun, 13 Dec 2020 16:51:42 +0000 (09:51 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 13 Dec 2020 16:51:42 +0000 (09:51 -0700)
commitf5756acc153e2605a0468b461ff4f6b0942a68b7
tree8b5bcb0dedcceabcf0fb774201e3acfa7a29aee2
parent862fcbd8f02b03cbf37b452e35bff8361d7a0208
Constify parse_and_eval_type

I noticed that the argumen to parse_and_eval_type could be "const".
This patch implements this change.

I wonder if this could be removed.  It's only called via
check_stub_method_group, which seems questionable to me.  However, I
didn't look into doing this.

gdb/ChangeLog
2020-12-13  Tom Tromey  <tom@tromey.com>

* gdbtypes.c (safe_parse_type): Make argument const.
* value.h (parse_and_eval_type): Make argument const.
* eval.c (parse_and_eval_type): Make argument const.
gdb/ChangeLog
gdb/eval.c
gdb/gdbtypes.c
gdb/value.h