debug-symbols

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

懵懂的女人 提交于 2020-01-04 09:27:36
问题 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

Is there a way to access debug symbols at run time?

耗尽温柔 提交于 2020-01-04 02:26:09
问题 Here's some example code to give an idea of what I want. int regular_function(void) { int x,y,z; /** do some stuff **/ my_api_call(); return x; } ... void my_api_call(void) { char* caller = get_caller_file(); int line = get_caller_line(); printf("I was called from %s:%d\n", caller, line); } Is there a way to implement the get_caller_file() and get_caller_line() ? I've seen/used tricks like #define ing my_api_call as a function call passing in the __FILE__ and __LINE__ macros. I was wondering

GCC - generate absolute paths for #includes in debug symbols

百般思念 提交于 2020-01-03 04:43:06
问题 OS is Windows, GCC is 4.7.2, GDB is 7.3. I have a .c file in the C:/project/src/ folder with an include: #include "../inc/header.h" After the compilation I have a relative path in the debug symbols: > objdump -WL obj.o | grep header.h C:/project/src/../inc/header.h ... Yet I want it to be C:/project/inc/header.h, because setting BPs in gdb fail for me if I use absolute paths when issuing the set breakpoint command. This situation is artificial, but due to the environmental conditions the only

NHibernate loading symbols from SymbolSource.org

 ̄綄美尐妖づ 提交于 2020-01-02 07:09:21
问题 I would like to be able to debug NHibernate and I have never loaded any symbols from SymbolSource.org before. What url do I need to enter in Visual Studio to get it to load the symbols for NHibernate so that I can debug it properly? I'm running version 3.2.0.4000 of NHibernate. Edit: This is how I have it configured. I see this in the output window. Notice that it loads the symbols for Iesi.Collections but not NHibernate. 'QTAgent32.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\cwerner\TFS

How to get source file-name/line-number from a java.lang.Class object

梦想的初衷 提交于 2019-12-30 05:46:07
问题 Is it possible, given a java.lang.Class object, to get the source file name and the line number at which the class was declared? The data should be available in the .class file's debug info. The only place I know of, where the JDK returns such debug info is in java.lang.StackTraceElement but I'm not sure if it's possible to force Java to create a java.lang.StackTraceElement instance for an arbitrary class, because we are not executing a method in the class. My exact use case is an anonymous

How to debug (step into) BinaryFormatter.Deserialize()?

大憨熊 提交于 2019-12-28 18:05:35
问题 My app tries to deserialize data sent by client and it fails with the following error: Exception thrown: 'System.Runtime.Serialization.SerializationException' in mscorlib.dll Additional information: Cannot get the member '<.ctor>b__0'. googling gives no results. Okay, I decided I would step into deserialization logic and try to figure out what exactly is causing this. Well, a day has passed and I'm nowhere close. I used instructions from Microsoft Reference Source website to configure Visual

Java jar symbol info : what is the equivalent of tdstrip?

自古美人都是妖i 提交于 2019-12-23 17:52:16
问题 I have a .jar file which is 1MB. Without debug info, it should be about 100KB. Now, how do I strip the debug info? Oldtimers from the borland world might remember of a tool called tdstrip which would remove the symbol info from an .exe. What is the equivalent in the Java world? I'm trying to do mobile development where a 1MB file is way too big. I know that I could recompile and rebuild the .jar file without the debug info, but if you don't have sources, etc, how do you go about doing it? 回答1

Is showing the Exception StackTrace useful in a RELEASE assembly or only a DEBUG .dll

不想你离开。 提交于 2019-12-23 04:21:11
问题 I've gone to some lengths to improve the error handling in my webservice - in particular, showing the StackTrace as in this example: catch (Exception ex) { EventLog log = new EventLog(); log.Source = g_EventSource; StringBuilder msg = new StringBuilder("Exception in UpdateRecord method has been logged:"); msg.Append(Environment.NewLine); msg.Append("passedURL="); msg.Append(passedURL); msg.Append(Environment.NewLine); msg.Append(ex.Message); msg.Append(Environment.NewLine); msg.Append(ex

Windows Debugging Symbols - Not Loading

二次信任 提交于 2019-12-22 05:16:13
问题 I am having Windows 7 x64 SP1. I have downloaded symbols from: http://msdn.microsoft.com/en-us/windows/hardware/gg463028 I have downloaded and installed x64 RTM and x64 SP1 symbols for Windows 7 x64 SP1. Installed on T:\Symbols folder. But When I debug a 64-bit native C++ application, the symbols would not load at all. For ntdll.dll , for instance, the PDBs are located in: T:\Symbols\ntdll.pdb\6192BFDB9F04442995FFCB0BE95172E12 T:\Symbols\ntdll.pdb\CFF40300FD804691B73E12CF2A150EE02 But Visual

Using perlbrew to build a perl with debugging symbols

我是研究僧i 提交于 2019-12-21 09:09:33
问题 I'm trying to track down a segmentation fault that I've been able to isolate to just a few lines of code on different versions of Perl. I use perlbrew to manage my various versions for development and testing, but it doesn't build perl with debugging symbols, so using gdb to analyse the core dump file is pretty useless. So what's the best way to have perlbrew build with debugging symbols enabled. And if possible I'd like to be able to have it be a separate perl that I could switch to instead