1
1
/* **********************************************************
2
- * Copyright (c) 2011-2023 Google, Inc. All rights reserved.
2
+ * Copyright (c) 2011-2024 Google, Inc. All rights reserved.
3
3
* Copyright (c) 2009-2010 VMware, Inc. All rights reserved.
4
4
* **********************************************************/
5
5
@@ -204,10 +204,10 @@ These cross-platform steps apply to Linux, Mac, and Windows.
204
204
205
205
In order to obtain line number information, compile your target
206
206
application with debugging information enabled.
207
- On Linux, Dr. Memory supports ELF files with DWARF2 line information.
208
- On Mac, Dr. Memory supports Mach-O files with DWARF2 line information. On
207
+ On Linux, Dr. Memory supports ELF files with DWARF line information.
208
+ On Mac, Dr. Memory supports Mach-O files with DWARF line information. On
209
209
Windows, Dr. Memory supports PDB debug information (produced by Visual
210
- Studio) as well as PECOFF files with DWARF2 line information (produced by
210
+ Studio) as well as PECOFF files with DWARF line information (produced by
211
211
MinGW gcc).
212
212
213
213
********************
@@ -228,25 +228,21 @@ but should eliminate skipped frames.
228
228
********************
229
229
\section sec_prep_linux Linux
230
230
231
- Dr. Memory currently only supports DWARF2 through DWARF4 line information, not
232
- stabs nor DWARF5. DWARF4 can be requested from the compiler with the `-gdwarf-4`
233
- flag.
234
-
235
231
Here is a sample command line for compiling your application that combines
236
232
all of the above recommendations:
237
233
238
234
\verbatim
239
- g++ -g -gdwarf-4 - fno-inline -fno-omit-frame-pointer myfile1.cpp myfile2.cpp -o myapp
235
+ g++ -g -fno-inline -fno-omit-frame-pointer myfile1.cpp myfile2.cpp -o myapp
240
236
\endverbatim
241
237
242
238
********************
243
239
\section sec_prep_mac Mac
244
240
245
241
Ensure your compiler is able to build 32-bit applications.
246
242
247
- Dr. Memory currently only supports DWARF2 through DWARF4 line information, not
248
- stabs nor DWARF5. DWARF4 can be requested from the compiler with the `-gdwarf-4`
249
- flag.
243
+ Dr. Memory currently only supports DWARF2 through DWARF4 line information on
244
+ Mac, not stabs nor DWARF5. DWARF4 can be requested from the compiler with the
245
+ `-gdwarf-4` flag.
250
246
251
247
Here is a sample command line for compiling your application that combines
252
248
all of the above recommendations:
@@ -324,10 +320,10 @@ cl /Zi /MT /EHsc /Oy- /Ob0 /Femyapp.exe *.cpp
324
320
\section sec_prep_mingw Windows MinGW
325
321
326
322
Dr. Memory supports applications compiled with the MinGW gcc or g++
327
- compilers, but will only provide line number information if DWARF2
323
+ compilers, but will only provide line number information if DWARF
328
324
debugging information is present. The default for MinGW gcc prior to
329
325
version 4.3 is to use the stabs format, which is not supported by
330
- Dr. Memory. Pass the \p -ggdb option to gcc to generate DWARF2 format
326
+ Dr. Memory. Pass the \p -ggdb option to gcc to generate DWARF format
331
327
instead.
332
328
333
329
You install the MinGW compiler in a Cygwin installation by running the
0 commit comments