Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest using -gdwarf-2 instead of -ggdb with mingw64. #2510

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions drmemory/docs/using.dox
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Dr. Memory supports applications compiled with the MinGW gcc or g++
compilers, but will only provide line number information if DWARF
debugging information is present. The default for MinGW gcc prior to
version 4.3 is to use the stabs format, which is not supported by
Dr. Memory. Pass the \p -ggdb option to gcc to generate DWARF format
Dr. Memory. Pass the \p -gdwarf-2 option to gcc to generate DWARF format
instead.

You install the MinGW compiler in a Cygwin installation by running the
Expand All @@ -342,7 +342,7 @@ GCC for Win32 (i686-w64-mingw32) toolchain (C++)" Cygwin package (this is a
32-bit compiler available for both 32-bit and 64-bit Cygwin):

\verbatim
i686-w64-mingw32-g++.exe -static-libgcc -static-libstdc++ -ggdb -o myapp.exe myfile1.cpp myfile2.cpp
i686-w64-mingw32-g++.exe -static-libgcc -static-libstdc++ -gdwarf-2 -o myapp.exe myfile1.cpp myfile2.cpp
\endverbatim

********************
Expand Down
Loading