debug-symbols

Is stacktrace information available in .NET release mode build?

ぃ、小莉子 提交于 2019-12-04 08:03:06
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? You always have stack trace information--that's a runtime feature unrelated to the build mode--but line numbers and source file names are normally unavailable in release build stack traces. You can get both line numbers and source file names in release build stack traces (including in exceptions) by altering the build configuration to create full program database (.pdb) files. To do so in Visual Studio: open your project's property pages select

Read debugging information at runtime from an application

时间秒杀一切 提交于 2019-12-04 02:59:16
I have some questions regarding debugging symbols and what can be done with them, besides, well, debugging. I'm mostly interested in answers regarding GCC, but I'd also be happy to know how it looks like under other compilers, including MSVC. First of all: What are the common formats/types of debugging symbols? How do they relate to compilers and platforms? Is it always the same format on GCC and MinGW among platforms? Can I check in runtime whether the build has them and what format are they in? And some more practical questions... How can I : Check the current file and line number? Obtain

No debugging symbols in gdb even when compiling with -g flag

主宰稳场 提交于 2019-12-04 02:54:12
问题 I am trying to compile my program with debugging symbols for use in gdb. I have added the -g flag to my makefile but I still get "Reading symbols from ...(no debugging symbols found)" when I load the program in gdb. What is wrong?? Here is a stripped down example of my makefile which should have the relevant bits: CPP = g++ CFLAGS = -c -g -Wall $(BIN): $(OBJ) $(CPP) $(LDFLAGS) $(OBJ) -o $(BIN) $(LIBS) <test.o>: <test.cpp> $(CPP) $(CFLAGS) <test.cpp> -o <test.o> If you'd like to see the whole

Using perlbrew to build a perl with debugging symbols

喜你入骨 提交于 2019-12-04 02:43:56
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 of overriding the standard one for the same version. ikegami perlbrew install -v 5.14.2 --as=5.14.2d

Debug Symbols not loading

好久不见. 提交于 2019-12-04 00:03:19
I am trying to configure visual studio to enable me to step into the .net framework source code when I am debugging. I have tried with both Visual Web-Developer-Express-2010 and Visual-Studio-2011-Express-For-Web as well as Visual-Studio-2011-Express-For-Web on Win8CP and I am getting the same problem with each. I have read numerous tutorials on how to set it up and the settings I have I believe to be correct. Debugging General Settings - also - Debugging Symbol Settings - I have tried both of these symbol servers. When I click Load all Symbols this is the output I get saying symbol loads have

How to generate Debug symbols with Makefile for C? [Linux]

假装没事ソ 提交于 2019-12-03 17:24:58
问题 I'm trying to use GDB and KDEvelop to debug a console app under Knoppix VM. KDevelop and GDB don't break at my breakpoints. I suspect it's because they don't have debug symbols. If I'm correct how do I need to change my Makefile to create those. Maybe the problem is somewhere else? Regards, Ariel 回答1: Include -g in the flags sent to the compiler and linker. The default variables for this are CFLAGS and LDFLAGS respectively. The second step: exclude -s from flags ( -s means strip ) 回答2: If you

Is it possible to remove symbols from a shared library built with Android NDK?

房东的猫 提交于 2019-12-03 14:27:08
I'm building a shared library for use in a Java app using the Android NDK. Using readelf to inspect the lib/armeabi-v7a/libXXXlib.so file generated by a release build, it appears to contain all the symbols (function, variable names) of my native C/C++ code. Indeed, the shared object file appears to be identical for the debug and release builds. (The only difference in the output in the libs folder being whether or not the gsb.setup and gdbserver files are created.) I'm overriding the optimisation set by the NDK with an APP_CFLAGS += -O3 in my Application.mk , but I wouldn't expect the release

Source Link with an Azure DevOps Symbol Server

狂风中的少年 提交于 2019-12-03 13:20:55
There are several documented ways on internet on how to use Symbols Source files and Source Link to debug inside a Nuget Package but it's honestly hard to understand what is the good way for me. We have an Azure DevOps Server on which we generate Nuget packages and at the same time publish the .pdb files to the Azure DevOps Symbol Server using an Index Sources & Publish Symbols task in our build pipelines as described here My project' also has a reference to Microsoft.SourceLink.Vsts.Git and this code in the .csproj file <PublishRepositoryUrl>true</PublishRepositoryUrl> <EmbedUntrackedSources

How to setup/using GDB 7 on MacOS Lion with MacPorts

我只是一个虾纸丫 提交于 2019-12-03 10:34:26
I run into trouble using GDB 7 (7.3) on MacOS Lion. What I did was: $ sudo port install gdb After that GDB was installed to: /opt/local/bin/ggdb But when I try to execute GDB I always receive the following at start: BFD: unable to read unknown load command 0x24 BFD: unable to read unknown load command 0x26 BFD: unable to read unknown load command 0x24 BFD: unable to read unknown load command 0x26 Further it tells me: Reading symbols from ... done. but when I try to get for example a backtrace via 'bt' I only see unresolved function adresses. I tried to set the LIBRARY_PATH inside my

How to deal with 3rd party c++ libraries LNK4099 Warning in VisualStudio

偶尔善良 提交于 2019-12-03 08:03:18
I have a Visual Studio c++ project where I use the linker Settings /WX (TreatWarningsAsLinkerErrors=true) In Debug, I compile with /Zi (Debug Database), which works fine. Now I have a 3rd party SDK which comes with a static library, but no .pdb file. As soon as I link this file in Debug, I get LNK4099: 3rd-party.lib(3rd-party.obj) : warning LNK4099: PDB "vc90.pdb" was not found "3rd-party.lib(3rd-party.obj)" or with "C:\OutDir\vc90.pdb" Please note that this message is misleading, as placing vc90.pdb next to 3rd-party.lib does not solve the problem, because the source code and pdb of that 3rd