gdb: tests: set remotetimeout to gdb_load_timeout for remote targets
authorMike Frysinger <vapier@gentoo.org>
Fri, 1 Jul 2011 00:19:25 +0000 (00:19 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 1 Jul 2011 00:19:25 +0000 (00:19 +0000)
commitdb863c4274ad1ea4f04feafe45540cc1c3dc7e4f
tree16f4e88578f45bf611379801a14001138148b246
parent5429523ed4a140a870c4ea8dde0e0efd03435c26
gdb: tests: set remotetimeout to gdb_load_timeout for remote targets

Rather than relying on the default remotetimeout value (which might be
too small for some slower devices), use the existing gdb_load_timeout
config option to set it.

This adds two new helpers for getting/setting the remotetimout to keep
the new logic simple.

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
gdb/testsuite/ChangeLog
gdb/testsuite/config/monitor.exp
gdb/testsuite/lib/gdb.exp