Share proc get_var_address
authorYao Qi <yao.qi@linaro.org>
Thu, 13 Oct 2016 15:08:17 +0000 (16:08 +0100)
committerYao Qi <yao.qi@linaro.org>
Thu, 13 Oct 2016 15:08:17 +0000 (16:08 +0100)
commit5ad9dba7519caa3e6193c87699ae37e24d0fe05c
tree35dc98a9a393e58867c36e61cdec360c72430adf
parent62df7e210ebf096dc09ad14d9316fcda0f6217f7
Share proc get_var_address

This patch moves proc get_var_address into lib/gdb.exp, and remove the
duplicate copy in gdb.base/*.exp files.

gdb/testsuite:

2016-10-13  Yao Qi  <yao.qi@linaro.org>

* gdb.base/code_elim.exp (get_var_address): Remove.
* gdb.base/relocate.exp: Likewise.
* gdb.base/shreloc.exp: Likewise.
* lib/gdb.exp (get_var_address): New.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/code_elim.exp
gdb/testsuite/gdb.base/relocate.exp
gdb/testsuite/gdb.base/shreloc.exp
gdb/testsuite/lib/gdb.exp