debug-symbols

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

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...

Problem with WINDOWS debug symbol loading. I could not load WINDOWS operating system binaries .pdb in visual studio.

I am working in a software company on a system software product. Day before yesterday that product got crashed and core shown. To findout exact problem, I want to know full core stack with function names(kernel32.dll, ntdll.dll .. not showing function names). I have downloaded WINDOWS debug symbols from Microsoft site. http://www.micro...

Post-mortem crash-dump debugging without having the exact version of a Windows DLL in the Symbol Server

Within my application, I use the MiniDumpWriteDump function (see dbghelp.dll) to write a crash dump file whenever my application crashes. I also use a symbol server to store all my executables and pdb files, so that whenever a customer sends me a crash-dump file, the debugger automatically picks up the correct version of the executable ...

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

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 wa...

Function name and address missing from Linux System.map

Hello all, I am doing embedded development on an AT91SAM9263 board and running into a strange problem. It is running debian Linux kernel 2.6.18.4 and is cross-compiled with arm-linux-gcc 3.4.6 and uses uClibc-0.9.28 for the C library. I am debugging a kernel device driver and a specific function is not appearing in the System.map file...

Debugging symbols shipped on deploy

I wonder why software shall be deployed with its related debugging symbols. What are advantages and disadvantages? Are there code revealing issues (information security related issues)? ...

Why does gcc add symbols to non-debug build?

When I do a release build with gcc (i.e. I do not specify -g), I still seem to end up with symbols in the binary, and have to use strip to remove them. In fact, I can still breakpoint functions and get backtraces in gdb (albeit without line numbers). This surprised me - can anyone explain why this happens? e.g. #include <stdio.h> sta...

Visual Studio Symbols stored/loaded from wrong place

Hello, I'm rather new to symbol servers and I've been experimenting with them and Visual Studio 2008 running Windows XP(SP3). I've encountered a wierd problem as my symbols are not being cached locally in the directory I've specified all the time. The possible reasons I have found for this si that the symbols(.pdb's) are being written t...

symbolicatecrash does not give me method names for my own functions

Hey all, Running into a weird issue using symbolicatecrash to debug crash logs. After I run symbolicatecrash with the .dSYM file of the build that crashed, it gives me function names for all of the Foundation classes, but not for my own app. Is there some setting in XCode that I may be missing? GENERATE DEBUG SYMBOLS is turned on to YES...

gcc : Is using -Werror and -pedantic considered good practice?

I'm just digging into the gcc manual and some things are still unclear to me: When specifying a std, should I always use -pedantic in conjunction? When using -g, it the standard level sufficient or should I specify level 3, i.e. -g3? Is it good practice to use -Werror to promote all warnings to errors and -pedantic-errors to promote al...

How to debug problems in Linux kernel module `init()`?

I am using remote (k)gdb to debug a problem in a module that causes a panic when loaded e.g. when init() is called. The stack trace just shows that do_one_initcall(mod->init) causes the crash. In order to get the symbol file loaded in the gdb, I need to get the address of the module text section, and to get that I need to get the module...

GCC: visibility of symbols in standalone C++ applications

Hi, 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?...

How can I get .NET/Silverlight source code symbols to work in VS 2010?

Back when M$ first released the ability to point visual studio at a symbol server and actually debug into .NET code I got it up and working no problem on VS2008. Now trying to do this with VS2010 or my local copy of VS2008 doesn't seem to work. It successfully downloads the symbols and the stack frames turn from gray to black but the...

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

Hi all, 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 (...

Xcode, no debug symbols for certain subclass

I'm using Xcode 3.2.3 and iPhone SDK So I'm trying to debug a UIView subclass, I hit a breakpoint in an overridden method and I can't see any symbols in either the GUI or gdb, just globals and registers. This is what I see: (gdb) po self No symbol "self" in current context. Yet when I set a breakpoint in a UIViewController subclass,...

Is stacktrace information available in .NET release mode build?

If I choose release mode to build a dll, is the stacktrace information still available? If so, then what information is unavailable in release mode? ...

How can I set a breakpoint in .NET Framework source code using Visual Studio 2010 Express?

I need to set a breakpoint in System.Web.Handlers.ScriptModule.OnPostAcquireRequestState and then step into some of the System.Web.Script.Services.WebServiceData methods. But I only have Visual Web Developer 2010 Express (or other Express SKUs). I have configured the Microsoft Symbol Server and unchecked the Just My Code option. I can s...

Where has my debugging information gone? Xcode 3.2.3

Im trying out some iPhone scroll view tests, but when i load the view, the app just blows up. I get no debugging information in Xcode, no EXC_BAD_ACCESS, no errors, just [Session started at 2010-07-16 10:35:21 +0100.] and Debugging terminated in the bottom of the debugger window. I have set Generate Debug Symbols in the target prefer...

How do I debug C++0x programs in MacPorts gcc 4.5?

I have a simple c++ program I am trying to debug, but gdb cannot find the object file for the libraries (or no debug info is available), and it does not seem able to find the debug symbols for my executable either. I am on OSX 10.5.8, with macports, and I compile my code with g++-mp-4.5 -Wall -pedantic -std=c++0x -g -ggdb -I/opt/loc...

Cannot set startup object in WPF VB.NET Project

I am using VS2010 VB.NET, working on a solution that has a number of projects. I have been developing on it for a while now, and in an attempt to debug a custom class inherited from ObservableCollection (which by the way would not load symbols when debugging even though it was apparent that the breakpointed line was being called), I cha...