mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[NTOSKRNL/GCC]
- Use 0x00800000 as base address. This doesn't change anything (still loaded at 0x80800000) and it produces debug symbols that GDB can understand [CMAKE] - Get back to using DWARF2 symbols. They are a lot bigger, but at least they work Now GDB can be used to source-level debug ntoskrnl. svn path=/trunk/; revision=64128
This commit is contained in:
parent
1bbea7c093
commit
836ae31c1d
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ endif()
|
||||||
|
|
||||||
# Debugging
|
# Debugging
|
||||||
if(SEPARATE_DBG)
|
if(SEPARATE_DBG)
|
||||||
add_compile_flags("-gdwarf-4 -fvar-tracking-assignments")
|
add_compile_flags("-gdwarf-2 -ggdb")
|
||||||
else()
|
else()
|
||||||
add_compile_flags("-gdwarf-2 -gstrict-dwarf")
|
add_compile_flags("-gdwarf-2 -gstrict-dwarf")
|
||||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||||
|
|
|
@ -30,7 +30,7 @@ set_subsystem(ntoskrnl native)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set_image_base(ntoskrnl 0x00400000)
|
set_image_base(ntoskrnl 0x00400000)
|
||||||
else()
|
else()
|
||||||
set_image_base(ntoskrnl 0x80800000)
|
set_image_base(ntoskrnl 0x00800000)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(ntoskrnl
|
target_link_libraries(ntoskrnl
|
||||||
|
|
Loading…
Reference in a new issue