Introduce target_is_gdbserver
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 10 Dec 2014 20:12:17 +0000 (15:12 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 10 Dec 2014 20:12:17 +0000 (15:12 -0500)
commit0a46d518c7565be02e544ab508f8b5a99b1b5192
treed74ed928fc7edc3d0854d8d2cce7d882cff3c589
parent56286edfdc0acaed8f412c6b414bb10c867bd2e8
Introduce target_is_gdbserver

This patch introduces a function in gdbserver-support.exp to find out
whether the current target is GDBserver.

The code was inspired from gdb.trace/qtro.exp, so it replaces the code
there by a call to the new function.

gdb/testsuite/ChangeLog:

* gdb.trace/qtro.exp: Replace gdbserver detection code by...
* lib/gdb.exp (target_is_gdbserver): New
procedure.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/qtro.exp
gdb/testsuite/lib/gdb.exp