Author: jgardou
Date: Fri Sep 12 22:56:22 2014
New Revision: 64128
URL: http://svn.reactos.org/svn/reactos?rev=64128&view=rev
Log:
[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.
Modified:
trunk/reactos/cmake/gcc.cmake
trunk/reactos/ntoskrnl/CMakeLists.txt
Modified: trunk/reactos/cmake/gcc.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=64128&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Fri Sep 12 22:56:22 2014
@@ -68,7 +68,7 @@
# 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")
Modified: trunk/reactos/ntoskrnl/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/CMakeLists.txt?re…
==============================================================================
--- trunk/reactos/ntoskrnl/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/CMakeLists.txt [iso-8859-1] Fri Sep 12 22:56:22 2014
@@ -30,7 +30,7 @@
if(MSVC)
set_image_base(ntoskrnl 0x00400000)
else()
- set_image_base(ntoskrnl 0x80800000)
+ set_image_base(ntoskrnl 0x00800000)
endif()
target_link_libraries(ntoskrnl