This commit enables pretty-printers in gdb.
authorKirill Frolov <k.frolov@samsung.com>
Fri, 30 Oct 2020 13:06:48 +0000 (16:06 +0300)
committerAlexander Soldatov/Platform Lab /SRR/Staff Engineer/Samsung Electronics <soldatov.a@samsung.com>
Tue, 1 Dec 2020 13:29:42 +0000 (16:29 +0300)
compileoptions.cmake

index 50065345c7b6f51d8056927c203d952ba99e7e2e..14764c2a27c96cc5e953065835a1ced8570da26c 100644 (file)
@@ -1,6 +1,9 @@
 if (CLR_CMAKE_PLATFORM_UNIX)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
 
+  # this allows pretty-printers in gdb to work with clang
+  set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG")
+
   # Disable frame pointer optimizations so profilers can get better call stacks
   add_compile_options(-fno-omit-frame-pointer)