Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/zephyr/arch/arm/gdbstub.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_GDBSTUB_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_GDBSTUB_H_

#include <zephyr/arch/arm/exc.h>
#include <zephyr/arch/arm/exception.h>

#ifndef _ASMLANGUAGE

Expand Down
25 changes: 17 additions & 8 deletions tests/subsys/debug/gdbstub/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,24 @@
# SPDX-License-Identifier: Apache-2.0
#

common:
tags:
- debug
- gdbstub
filter: CONFIG_ARCH_HAS_GDBSTUB

tests:
# Basic build-only test for all platforms supporting gdbstub
debug.gdbstub.build_only:
platform_allow:
- qemu_x86
- qemu_cortex_a9
build_only: true

# Connect to Zephyr gdbstub and run a simple GDB script
debug.gdbstub.breakpoints:
platform_allow: qemu_x86
platform_allow:
- qemu_x86
harness: pytest
harness_config:
pytest_root:
Expand All @@ -19,9 +33,6 @@ tests:
- "test_breakpoints.gdbinit"
- "--gdb_target_remote"
- "tcp::5678"
tags:
- debug
- gdbstub
extra_configs:
# Make sure the gdbstub port chosen is unique for this test to avoid conflicts
# when Twister runs tests in parallel on the same host.
Expand All @@ -33,7 +44,8 @@ tests:
# Use non-default QEMU gdbstub port 1235 for this test to avoid conflicts
# with some other test on QEMU running in parallel.
debug.gdbstub_qemu.breakpoints:
platform_allow: qemu_x86
platform_allow:
- qemu_x86
harness: pytest
harness_config:
pytest_root:
Expand All @@ -45,9 +57,6 @@ tests:
- "test_breakpoints.gdbinit"
- "--gdb_target_remote"
- "tcp::1235"
tags:
- debug
- gdbstub
extra_configs:
# Turn off Zephyr's gdbstub for this test case.
- CONFIG_GDBSTUB=n
Expand Down