eval.c: reverse minsym and sym
authorPedro Alves <palves@redhat.com>
Sun, 25 Mar 2018 17:02:43 +0000 (18:02 +0100)
committerPedro Alves <palves@redhat.com>
Sun, 25 Mar 2018 17:56:58 +0000 (18:56 +0100)
commit3e5ef9a4de7919971130f7f2ca3052898a069e76
tree67a24bdf90eb1f9b05f5fa1777f555b8f71c779e
parentc88d2fccb148d38ca53d379b7b71eb0467e1a2cc
eval.c: reverse minsym and sym

I noticed that in evaluate_funcall, where we handle
OP_VAR_MSYM_VALUE/OP_VAR_VALUE to figure out the symbol's name gets
the minimal_symbol/symbol backwards.  Happens to be harmless in
practice because the symbol name is recorded in the common initial
sequence (in the general_symbol_info field).

gdb/ChangeLog:
2018-03-25  Pedro Alves  <palves@redhat.com>

* eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
if then/else bodies in var_func_name extraction.
gdb/ChangeLog
gdb/eval.c