rust: Fix rust modules test
authorDaniel Xu <dxu@dxuuu.xyz>
Sat, 4 Jul 2020 03:59:53 +0000 (20:59 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 11 Jul 2020 22:08:28 +0000 (16:08 -0600)
commit0ed35c9ae0434dcda2d5d3e3f0be77fa1f323283
tree09201e2d9fbc53f00bfc056ba356c1eac3258ae8
parent0a278aa7552de49be4816409a793c2403f6e87be
rust: Fix rust modules test

I noticed that the modules test was failing. Some choice use of `nm`
revealed `TWENTY_THREE` was not in the final binary. Fix by taking a
pointer to the global, forcing the linker to keep the symbol in.

gdb/testsuite/ChangeLog
2020-07-11  Daniel Xu  <dxu@dxuuu.xyz>

PR rust/26121
* gdb.rust/modules.rs: Prevent linker from discarding test
symbol.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.rust/modules.rs
This page took 0.047497 seconds and 4 git commands to generate.