mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 22:32:58 +00:00
[NTOSKRNL] Completely disable optimizations when using GDB
This commit is contained in:
parent
ab825334dd
commit
f26754e6dd
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ if(MSVC)
|
||||||
add_target_link_flags(ntoskrnl "/SECTION:INIT,D")
|
add_target_link_flags(ntoskrnl "/SECTION:INIT,D")
|
||||||
else()
|
else()
|
||||||
if(GDB)
|
if(GDB)
|
||||||
|
# Completely disable optimizations when debugging the kernel
|
||||||
|
target_compile_options(ntoskrnl PRIVATE -O0)
|
||||||
set_image_base(ntoskrnl 0x00800000)
|
set_image_base(ntoskrnl 0x00800000)
|
||||||
else()
|
else()
|
||||||
set_image_base(ntoskrnl 0x80800000)
|
set_image_base(ntoskrnl 0x80800000)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue