Test handling of additional brk instruction patterns
authorLuis Machado <luis.machado@linaro.org>
Mon, 13 Jan 2020 15:31:01 +0000 (12:31 -0300)
committerLuis Machado <luis.machado@linaro.org>
Wed, 29 Jan 2020 14:26:07 +0000 (11:26 -0300)
commitb62a802857adafecc64bc1de3efd1c2e59059af9
tree2777ce98d765d2df4c2df8c91c87d5bd8b6d9098
parent5133a31537c8f90f3b8b7172f385b3b2856d1566
Test handling of additional brk instruction patterns

New in v5:

- Use gdb_test_name for gdb_test_multiple.
- Use gdb_assert.
- Verify count matches the expected sigtraps exactly.

New in v4:

- Fix formatting nit in gdb/testsuite/gdb.arch/aarch64-brk-patterns.c.

New in v3:

- Minor formatting and code cleanups.
- Added count check to validate number of brk SIGTRAP's.
- Moved count to SIGTRAP check conditional block.

This test exercises the previous patch's code and makes sure GDB can
properly get a SIGTRAP from various brk instruction patterns.

GDB needs to be able to see the program exiting normally. If GDB doesn't
support the additional brk instructions, we will see timeouts.

We bail out with the first timeout since we won't be able to step through
the program breakpoint anyway, so it is no use carrying on.

gdb/testsuite/ChangeLog:

2020-01-29  Luis Machado  <luis.machado@linaro.org>

* gdb.arch/aarch64-brk-patterns.c: New source file.
* gdb.arch/aarch64-brk-patterns.exp: New test.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/aarch64-brk-patterns.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp [new file with mode: 0644]
This page took 0.02676 seconds and 4 git commands to generate.