diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bba7d14e25..73a84bd9b5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -320,7 +320,7 @@ endif () set (COMPILER_FLAGS "${COMPILER_FLAGS}") # Our built-in unwinder only supports DWARF version up to 4. -set (DEBUG_INFO_FLAGS "-g -gdwarf-4") +set (DEBUG_INFO_FLAGS "-g") # Disable omit frame pointer compiler optimization using -fno-omit-frame-pointer option(DISABLE_OMIT_FRAME_POINTER "Disable omit frame pointer compiler optimization" OFF) diff --git a/src/Common/Dwarf.h b/src/Common/Dwarf.h index 3b717305d70..8f8df3acd1a 100644 --- a/src/Common/Dwarf.h +++ b/src/Common/Dwarf.h @@ -46,8 +46,8 @@ class Elf; * can parse Debug Information Entries (DIEs), abbreviations, attributes (of * all forms), and we can interpret bytecode for the line number VM. * - * We can interpret DWARF records of version 2, 3, or 4, although we don't - * actually support many of the version 4 features (such as VLIW, multiple + * We can interpret DWARF records of version 2, 3, 4, or 5, although we don't + * actually support many of the features of versions 4 and 5 (such as VLIW, multiple * operations per instruction) * * Note that the DWARF record parser does not allocate heap memory at all.