debug-symbols

GCC: visibility of symbols in standalone C++ applications

南笙酒味 提交于 2020-01-15 06:00:09
问题 Because of a strange C++ warning about the visibility of some symbols and an interesting answer, linking to a paper which describes the different visibility types and cases (section 2.2.4 is about C++ classes), I started to wonder if it is needed for a standalone application to export symbols at all (except main - or is that needed?). Why exactly are they needed to be exported in standalone applications? Is "an exported symbol" an synomym for "visible symbol"? I.e. a hidden symbol is a symbol

Unable to debug MVC source code in Visual Studio 2010

∥☆過路亽.° 提交于 2020-01-14 18:52:19
问题 I'm trying to debug MVC source code in Visual Studio 2010 using the Microsoft Symbols Server. I've configured Debugging options as seen below: and my project is targeting .NET Framework 4.0. (as said in Debug .NET Framework's source code only shows disassembly in Visual Studio 2010) When I try to load the symbols of System.Web.MVC.dll, some window pops up saying that they're being loaded. But in the end, the Modules window says they couldn't be found, call stack lines are still grayed out and

Unable to debug MVC source code in Visual Studio 2010

别等时光非礼了梦想. 提交于 2020-01-14 18:51:33
问题 I'm trying to debug MVC source code in Visual Studio 2010 using the Microsoft Symbols Server. I've configured Debugging options as seen below: and my project is targeting .NET Framework 4.0. (as said in Debug .NET Framework's source code only shows disassembly in Visual Studio 2010) When I try to load the symbols of System.Web.MVC.dll, some window pops up saying that they're being loaded. But in the end, the Modules window says they couldn't be found, call stack lines are still grayed out and

Unable to debug MVC source code in Visual Studio 2010

ぐ巨炮叔叔 提交于 2020-01-14 18:51:21
问题 I'm trying to debug MVC source code in Visual Studio 2010 using the Microsoft Symbols Server. I've configured Debugging options as seen below: and my project is targeting .NET Framework 4.0. (as said in Debug .NET Framework's source code only shows disassembly in Visual Studio 2010) When I try to load the symbols of System.Web.MVC.dll, some window pops up saying that they're being loaded. But in the end, the Modules window says they couldn't be found, call stack lines are still grayed out and

warning message RTTI symbol not found when using boost::iostreams

喜欢而已 提交于 2020-01-14 08:59:12
问题 I use Boost::iostreams to write simultaneously to my console and a file. When i use eclipse to debug(with gdb of course), i receive a warning which says RTTI symbol not found for one of the classes that i am using from Boost::iostreams. Here is the minimal code to reproduce the problem. #ifndef BOOST_IO_STREAM_H_ #define BOOST_IO_STREAM_H_ #include <fstream> #include <boost/iostreams/tee.hpp> #include <boost/iostreams/stream.hpp> using boost::iostreams::tee_device; using boost::iostreams:

Separating out symbols and stripping unneeded symbols at the same time

£可爱£侵袭症+ 提交于 2020-01-13 13:08:09
问题 I am interested in creating an external symbol file which I reference from my ELF file using objcopy --add-gnu-debuglink=... . Now I know how to extract only the debug symbols ( objcopy --only-keep-debug ) and how to only strip the debug symbols ( objcopy --strip-debug ). However, I'd like to strip all unneeded symbols . I know this can be done via objcopy --strip-unneeded . The fact that debug and unneeded symbols are two different categories and two different command line switches suggests

How do debug symbols affect performance of a Linux executable compiled by GCC?

柔情痞子 提交于 2020-01-09 19:40:10
问题 All other factors being equal (eg optimisation level), how does having debug symbols in an ELF or SO affect: Load time. Runtime memory footprint. Runtime performance? And what could be done to mitigate any negative effects? EDIT I've seen this question but I find the discussion unhelpful, as the code optimization factor has confused the issue there. Why does my code run slower with multiple threads than with a single thread when it is compiled for profiling (-pg)? 回答1: The debug symbols are

C# and ASP.NET MVC: Using #if directive in a view

放肆的年华 提交于 2020-01-09 04:53:05
问题 I've got a conditional compilation symbol I'm using called "RELEASE", that I indicated in my project's properties in Visual Studio. I want some particular CSS to be applied to elements when the RELEASE symbol is defined, and I was trying to do that from the view, but it doesn't seem to be working. My view code looks like this (shortened a bit for demo purposes): <% #if (RELEASE) %> <div class="releaseBanner">Banner text here</div> <% #else %> <div class="debugBanner">Banner text here</div> <%

Removing type information from symbols partly

守給你的承諾、 提交于 2020-01-07 01:48:09
问题 As we learned recently, Microsoft has stripped type information from symbols in some versions of ntdll . Imagine I have the source code of a library and I would like to publish public symbols, but remove some type definitions from that PDB, how would I technically achieve this, especially without breaking the PDB identity information (timestamp and checksum)? I could not find a compiler switch in the online documentation that would allow me to pass a list of types to be excluded. Note that I

WinDbg, display Symbol Server paths of loaded modules (even if the symbols did not load)?

给你一囗甜甜゛ 提交于 2020-01-04 09:27:53
问题 Is there a way from WinDbg, without using the DbgEng API, to display the symbol server paths (i.e. PdbSig70 and PdbAge) for all loaded modules? I know that lml does this for the modules whose symbols have loaded. I would like to know these paths for the symbols that did not load so as to diagnose the problem. Anyone know if this is possible without having to utilize the DbgEng API? edited: I also realize that you can use !sym noisy to get error messages about symbols loading. While this does