[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:
Jérôme Gardou 2014-09-12 22:56:22 +00:00
parent 1bbea7c093
commit 836ae31c1d
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ endif()
# Debugging
if(SEPARATE_DBG)
add_compile_flags("-gdwarf-4 -fvar-tracking-assignments")
add_compile_flags("-gdwarf-2 -ggdb")
else()
add_compile_flags("-gdwarf-2 -gstrict-dwarf")
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")

View file

@ -30,7 +30,7 @@ set_subsystem(ntoskrnl native)
if(MSVC)
set_image_base(ntoskrnl 0x00400000)
else()
set_image_base(ntoskrnl 0x80800000)
set_image_base(ntoskrnl 0x00800000)
endif()
target_link_libraries(ntoskrnl