debug-symbols

GDB: lx-symbols undefined command

末鹿安然 提交于 2019-12-01 11:33:46
I am following the guide below: https://www.kernel.org/doc/Documentation/gdb-kernel-debugging.txt When I try to load the module symbols using the command below: (gdb) lx-symbols gdb says that the command is undefined. How do I add these helper command to gdb? gdb info: gdb-7.6.1-51.el7.x86-64 on Centos 7.0 Milind Dumbare You have to get the latest kernel sources (may be 4.0-rc4) or backport the patch . Basically see if you have script/gdb/ directory like this in your kernel sources. Because that is where you get these scripts. Then you follow the steps mentioned in https://www.kernel.org/doc

Getting a List of Symbols Used by My VC++ Code

醉酒当歌 提交于 2019-12-01 11:15:17
问题 I am building a tool that process my VC++ source codes. For this, I need to obtain a list of symbols including local variable names and their types used by my codes. I know Visual C++ 2010 already provides a .bsc file that allows the object browser to locate symbols quickly. But this is an interactive tool. I need to obtain a list of the symbols in a file. Is there any tools allowing us to programmatically obtain the list of symbols used in our own VC++ source codes? I tried the Debug

Debug into nightly build of ASP.NET MVC4 using Symbolserver

大兔子大兔子 提交于 2019-12-01 10:08:29
问题 I used this description to get the nightly build of ASP.NET MVC for my project http://blogs.msdn.com/b/henrikn/archive/2012/06/01/using-nightly-asp-net-web-stack-nuget-packages-with-vs-2012-rc.aspx Its pulls the assemblies sucesfully from nuget and I can run the project. I now try to debug into the pdb pulled from the MS symbol server. Thats actually the point: I dont know if these symbols are realy located on the servers. Either I am doing something wrong or symbols are not available. Here

GDB: lx-symbols undefined command

若如初见. 提交于 2019-12-01 08:39:05
问题 I am following the guide below: https://www.kernel.org/doc/Documentation/gdb-kernel-debugging.txt When I try to load the module symbols using the command below: (gdb) lx-symbols gdb says that the command is undefined. How do I add these helper command to gdb? gdb info: gdb-7.6.1-51.el7.x86-64 on Centos 7.0 回答1: You have to get the latest kernel sources (may be 4.0-rc4) or backport the patch. Basically see if you have script/gdb/ directory like this in your kernel sources. Because that is

Do not show file paths of build machine in stack trace [duplicate]

[亡魂溺海] 提交于 2019-12-01 02:11:16
This question already has an answer here: Stacktrace information preserving paths of original source 3 answers I am currently developing a C# application which has got it's own logging. When exceptions are thrown, the exception is saved into a list which can be viewed by the user via a list view. When the user clicks on a exception in the list view, the stack trace of the exception is shown in a text box. But even when I am executing the program on a remote machine, the stack trace shows the file paths to the original source files from the machine where the application was compiled. e.g.: at C

VS2010 and VS2012 “Script Documents” section never appears, and I can't debug JavaScript

人走茶凉 提交于 2019-11-30 22:30:19
Tools: Windows 7, Visual Studio 2010 and 2012, IE 9, ASP.NET 4.0, MVC4 Until a couple of days ago I had been able to debug by using the Script Documents section in the Solution Explorer. Now, the Scripts Documents section does not appear when Start Debugging (F5). I do have IE set as the default browser. Using "debugger;" has no effect. Configuration is set to "Active (Debug)." Silverlight debugging is off. I have 'repaired' the Visual Studio 2010 inatallation. I have no idea how to correct this frustrating situation. What have I done to displease the VS gods? Thanks for any advice! Arnold

Do not show file paths of build machine in stack trace [duplicate]

江枫思渺然 提交于 2019-11-30 21:38:50
问题 This question already has answers here : Stacktrace information preserving paths of original source (3 answers) Closed 2 years ago . I am currently developing a C# application which has got it's own logging. When exceptions are thrown, the exception is saved into a list which can be viewed by the user via a list view. When the user clicks on a exception in the list view, the stack trace of the exception is shown in a text box. But even when I am executing the program on a remote machine, the

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

家住魔仙堡 提交于 2019-11-30 17:35:17
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 inner class which has a compiler generated name. I want to know the file name and the line number for

Where can I find and download different version of mscorwks.dll and mscordacwks.dll?

試著忘記壹切 提交于 2019-11-30 16:31:29
I'm trying to get used to working with WinDbg to troubleshoot crash dumps when I'm able to get them, but every time I do it seems it's asking me for a different version of mscorwks.dll and mscordacwks.dll, and I don't always have access to the machine the dump came from. Other than telling end users they have to dig around in their Windows directory for these files on top of sending me an absurdly large "mini"-dump, is there somewhere I can get copies of different builds of these files? WinDbg doesn't seem to be able to find them through Microsoft's symbols server. You are supposed to get the

mono debug information with exceptions on debian?

∥☆過路亽.° 提交于 2019-11-30 12:08:06
I thought apt-get install mono-dbg would solve it but i was wrong. How do i get debug information with mono? i am using debian squeeze but couldnt figure it out on debian lenny or etch. I wrote a dummy program below and i was hoping for a line number but i got this instead. This is a copy/paste from the console/terminal. Unhandled Exception: System.Exception: nooo blah at ExceptionTest.Program.func (Int32 a) [0x00000] in <filename unknown>:0 at ExceptionTest.Program.func (Int32 a) [0x00000] in <filename unknown>:0 at ExceptionTest.Program.func (Int32 a) [0x00000] in <filename unknown>:0 at