mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-25 00:05:25 +00:00
Sample example built with gdbstub enabled. Two serials are used, one for normal output and another one that is used talk with gdb in the host machine. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
13 lines
292 B
CMake
13 lines
292 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
|
|
|
if(BOARD MATCHES "qemu_x86")
|
|
list(APPEND QEMU_EXTRA_FLAGS -serial tcp:127.0.0.1:1234,server)
|
|
endif()
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(debug)
|
|
|
|
target_sources(app PRIVATE src/main.c)
|