gdb/testsuite: fix running gdb.python/py-explore-cc with clang
authorGuinevere Larsen <blarsen@redhat.com>
Tue, 24 Oct 2023 15:44:43 +0000 (17:44 +0200)
committerGuinevere Larsen <blarsen@redhat.com>
Wed, 25 Oct 2023 16:23:47 +0000 (18:23 +0200)
commitf603d794f94cb8e6ffb86e0eb78b739788b448b6
tree8d2cbea20e25d40defebc7a7b953eb490d4bdefc
parentfe7c8e26fcadc377e1b76435f767d665a0b69f94
gdb/testsuite: fix running gdb.python/py-explore-cc with clang

The test gdb.python/py-explore-cc.exp was showing one unexpected
failure. This was due to how clang mapped instructions to lines,
resulting in the inferior seemingly stopping at a different location.

This patch adds a nop line in the relevant location so we don't need to
add XFAILs for existing clang releases, if this gets solved in future
versions.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.python/py-explore.cc