This is the mail archive of the
mailing list for the GDB project.
Re: [RFC] Testsuite: permit simple transformation of gdb_expect code
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 2 Jun 2010 14:29:29 -0700
- Subject: Re: [RFC] Testsuite: permit simple transformation of gdb_expect code
- References: <000001cb0250$e4034590$ac09d0b0$@firstname.lastname@example.org>
> I would like to insert a no-op change to lib/gdb.exp that allows
> easily to write a transformation function (that can be inside the
> target board file). The idea is to simply add a global variable
> named `transform_gdb_expect_code' that defaults to empty.
No objection from my end in principle; I guess there is no way to
make that decision automatic? In AdaCore's testsuite, we get
the version information in GDB and determine from there the host
and target, and that allows to whether or not certain features
are available, etc.
In terms of implementation, rather than having an empty global,
perhaps it'd be just as simple to test its existence? Just thinking