]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Record and check initial implementation
authorMatthew Malcomson <matthew.malcomson@arm.com>
Mon, 7 Mar 2022 18:10:53 +0000 (18:10 +0000)
committerMatthew Malcomson <matthew.malcomson@arm.com>
Mon, 7 Mar 2022 18:10:53 +0000 (18:10 +0000)
commit9db78a71d606f4f03ec86f35a13efaadd279ac1d
tree2fd79a64a2a5ab530539b09da04f702477477a72
parent7470bce3993ef4d4fc441be5b888e06e82c62f3a
Record and check initial implementation

Really don't like that we use hard-coded addresses.  There are examples
in the existing testsuite that use options of hard-coded addresses, but
I want something more general that we can actually test the things we
need to test with.

Here we add an initial implementation to do such a thing.

This initial implementation has quite a lot of problems, but it adds
a lot in the fact that we can write testcases which should work across
different setups.
Hopefully we can work out the problems with use (or maybe identify that
the problems don't actually matter very much in practice) and eventually
upstream something better.

To document the problems:
  - The implementation means that recording something actually puts that
    into the regexp_diff namespace which could shadow existing variables.
  - We don't have a way to say "the previous value", but always have to
    write some TCL procedure to return that previous value.
binutils/testsuite/lib/binutils-common.exp
ld/testsuite/ld-aarch64/emit-relocs-morello-2.d