]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix build bug in ppc-linux-nat.c
authorTom Tromey <tom@tromey.com>
Tue, 14 Feb 2023 07:28:47 +0000 (00:28 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 14 Feb 2023 07:31:04 +0000 (00:31 -0700)
commitf54cd6441de5c057b43ea1501c1b075984067e7c
treee82abe213234310f396c379bd7ce9580510a76a3
parent978042640c7da4ee0d14c9c6e20fe7b6c07615fb
Fix build bug in ppc-linux-nat.c

The buildbot pointed out that my value refactoring series introduced a
bug in ppc-linux-nat.c:

../../binutils-gdb/gdb/ppc-linux-nat.c: In member function β€˜int ppc_linux_nat_target::num_memory_accesses(const std::vector<gdb::ref_ptr<value, value_ref_policy> >&)’:
../../binutils-gdb/gdb/ppc-linux-nat.c:2458:44: error: expected unqualified-id before β€˜->’ token
 2458 |       if (VALUE_LVAL (v) == not_lval || v->->deprecated_modifiable () == 0)

I don't know how that happened, but I am checking in this patch which
I think should fix it.  It just removes the second "->".

I can't readily test this, so perhaps there's another bug lurking
after this one.
gdb/ppc-linux-nat.c