meta: add debugging library
the debug library can be used by both server (the kernel) and client (the debugger) applications. the library implements the protocol that is used for communication between the kernel and debugger, as well as handling for any requests supported by the protocol.
This commit is contained in:
+13
-1
@@ -69,7 +69,19 @@ add_custom_command(
|
||||
COMMAND ${CMAKE_STRIP} -g $<TARGET_FILE:${kernel_exe_name}>)
|
||||
|
||||
target_link_libraries(${kernel_exe_name} -nostdlib -ffreestanding -lgcc)
|
||||
target_compile_definitions(${kernel_exe_name} PRIVATE KERNEL_VERSION="${kernel_version}")
|
||||
target_compile_definitions(${kernel_exe_name} PRIVATE
|
||||
KERNEL_NAME="${kernel_name}"
|
||||
KERNEL_VERSION="${kernel_version}"
|
||||
KERNEL_ARCH="${kernel_arch}")
|
||||
|
||||
include(arch/${kernel_arch}/config.cmake)
|
||||
include(arch/${kernel_arch}/targets.cmake)
|
||||
|
||||
add_subdirectory(debug)
|
||||
target_link_libraries(${kernel_exe_name} magenta_debug)
|
||||
target_compile_definitions(magenta_debug PRIVATE KERNEL_VERSION="${kernel_version}")
|
||||
target_include_directories(magenta_debug PRIVATE
|
||||
include
|
||||
libc/include
|
||||
libmagenta/include
|
||||
arch/${kernel_arch}/include)
|
||||
|
||||
Reference in New Issue
Block a user