Fix rust_dump_subexp_body
authorTom Tromey <tom@tromey.com>
Fri, 12 May 2017 01:50:47 +0000 (19:50 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 12 May 2017 14:52:55 +0000 (08:52 -0600)
commit68f2f2e308a8585c39ddb2f391a9ae8d779c5029
tree1881748e66801a38a7055aab44336011a628c737
parent256afbc259c1e22fafba601a27cf3c8d7bdde417
Fix rust_dump_subexp_body

rust_dump_subexp_body was not correct in a couple of cases.  While
debugging the bug I was really interested in, this caused a crash.
This patch fixes the problems.  No test case because, IIRC there
generally aren't tests for expression dumping.

ChangeLog
2017-05-12  Tom Tromey  <tom@tromey.com>

* rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
OP_RUST_ARRAY>: Fix.
gdb/ChangeLog
gdb/rust-lang.c