x86_64: cmake: add support for running qemu with debugging and stdio monitor output
This commit is contained in:
@@ -78,6 +78,16 @@ if (LLDB)
|
|||||||
USES_TERMINAL
|
USES_TERMINAL
|
||||||
DEPENDS ${patched_kernel} bsp)
|
DEPENDS ${patched_kernel} bsp)
|
||||||
|
|
||||||
|
add_custom_target(debug-kernel-monitor
|
||||||
|
COMMAND
|
||||||
|
${QEMU}
|
||||||
|
-kernel ${patched_kernel}
|
||||||
|
-initrd ${sys_dir}/${bsp_name}
|
||||||
|
${generic_flags}
|
||||||
|
-monitor stdio -s -S
|
||||||
|
USES_TERMINAL
|
||||||
|
DEPENDS ${patched_kernel} bsp)
|
||||||
|
|
||||||
if (image_cdrom)
|
if (image_cdrom)
|
||||||
message(STATUS "QEMU: Enable CD-ROM debug with LLDB")
|
message(STATUS "QEMU: Enable CD-ROM debug with LLDB")
|
||||||
add_custom_target(debug-cdrom
|
add_custom_target(debug-cdrom
|
||||||
|
|||||||
Reference in New Issue
Block a user