diff options
author | Guinevere Larsen <blarsen@redhat.com> | 2023-10-24 17:44:43 +0200 |
---|---|---|
committer | Guinevere Larsen <blarsen@redhat.com> | 2023-10-25 18:23:47 +0200 |
commit | f603d794f94cb8e6ffb86e0eb78b739788b448b6 (patch) | |
tree | 8d2cbea20e25d40defebc7a7b953eb490d4bdefc /gdb/testsuite | |
parent | fe7c8e26fcadc377e1b76435f767d665a0b69f94 (diff) | |
download | gdb-f603d794f94cb8e6ffb86e0eb78b739788b448b6.zip gdb-f603d794f94cb8e6ffb86e0eb78b739788b448b6.tar.gz gdb-f603d794f94cb8e6ffb86e0eb78b739788b448b6.tar.bz2 |
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>
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.python/py-explore.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-explore.cc b/gdb/testsuite/gdb.python/py-explore.cc index dfbc08c..e526c3c 100644 --- a/gdb/testsuite/gdb.python/py-explore.cc +++ b/gdb/testsuite/gdb.python/py-explore.cc @@ -42,7 +42,8 @@ func (const A &a) b.i = 10; b.c = 'a'; - return 0; /* Break here. */ + val *= 1; /* Break here. */ + return 0; } int |