[NTOSKRNL] Completely disable optimizations when using GDB

This commit is contained in:
Jérôme Gardou 2020-10-21 12:32:54 +02:00
parent ab825334dd
commit f26754e6dd

View file

@ -39,6 +39,8 @@ if(MSVC)
add_target_link_flags(ntoskrnl "/SECTION:INIT,D")
else()
if(GDB)
# Completely disable optimizations when debugging the kernel
target_compile_options(ntoskrnl PRIVATE -O0)
set_image_base(ntoskrnl 0x00800000)
else()
set_image_base(ntoskrnl 0x80800000)