![]() ![]() To include debug information, use the /Zi flag to the Visual Studio compiler. Here is a sample command line for compiling your application that combines all of the above recommendations: c++ -m32 -g -fno-inline -fno-omit-frame-pointer myfile1.cpp myfile2.cpp -o myapp DWARF2 is the default for modern versions of gcc as well as clang. Memory currently only supports DWARF2 line information, not stabs. ![]() Here is a sample command line for compiling your application that combines all of the above recommendations: g++ -g -fno-inline -fno-omit-frame-pointer myfile1.cpp myfile2.cpp -o myappĮnsure your compiler is able to build 32-bit applications.ĭr. ![]() DWARF2 is the default for modern versions of gcc. These will add some additional overhead on malloc-intensive applications, but should eliminate skipped frames.ĭr. Memory runtime options -no_callstack_use_top_fp, -no_callstack_use_fp, and -callstack_conservative. If your application links with a static library that was built with frame pointer optimizations and you observe missing frames on your callstacks, try running with the Dr. Memory should be able to determine callstacks in the presence of frame pointer optimizations (FPO) in most cases, but if you see strange callstacks in an optimized application consider disabling FPO. You'll get better callstacks in error reports if you disable inlining. Memory supports PDB debug information (produced by Visual Studio) as well as PECOFF files with DWARF2 line information (produced by MinGW gcc). Memory supports Mach-O files with DWARF2 line information. ![]() Memory supports ELF files with DWARF2 line information. In order to obtain line number information, compile your target application with debugging information enabled. These cross-platform steps apply to Linux, Mac, and Windows. First we give cross-plaform guidelines for how to build your application, before giving specific compiler parameters for each platform. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |