473,491 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Recover source from binary with debug symbols

16 New Member
Hi,
I was wondering, if I have a binary which was compiled with debug symbols, to what extent am I able to recover the source code of the various source files? And how? Usually crashing the program on purpose by passing bad pointers to the arguments allows me to view quite a lot of the source code in that specific section via gdb, but maybe there is a nicer way?
Thanks!
Oct 31 '10 #1
1 2359
weaknessforcats
9,208 Recognized Expert Moderator Expert
If you can crash a program on purpose, it suggests that the program needs error handling code installed.

The program should detect the bad pointer, write to a log file all necessary data, location, date time, user name, etc and then gracefully terminate.

The analyst, who has the code, looks in the log file to see what happened.

There are decompilers around but you lose the the variable names, function names, comments, etc. What you get is code that is not readable but compiles.
Nov 3 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3427
by: glaserp | last post by:
Hi, I am developing a Windows application with C# in Visual Stuio .NET. My application references three assemblies that are developed in another project. I have added these assemblies as...
0
1476
by: INGSOC | last post by:
Using remote debugging, I can attach to a windows service and run it in debug mode in VS.Net 2003. The problem is this service uses two supporting dlls. On the remote service, the dlls have...
1
1101
by: AK | last post by:
I have a ASP.NET project. Debugger refuses to load symbols for one of .aspx pages, though is does load them for other files. The error message on the breakpoint says "No symbols have been loaded for...
8
1908
by: | last post by:
I'm starting up the development server myself and using the "Startup Url" property of the web project. The problem is i cannot debug. The debug symbols are never loaded. I realize they are under...
4
1785
by: C.W. | last post by:
I lost my laptop as well as my backup server. I am wondering if there is a way to step through the code without the source code, but only with the dll and pdb (which are compiled in debug mode)...
3
4239
by: Bardo | last post by:
Hi all, We are trying to debug an assembly which was built in debug configuration on our build server. The output window of visual studio indicates that no symbols are being loaded for the...
7
15651
by: 2b|!2b==? | last post by:
I am attempting to manually load debug symbols for a module. I am doing it by carrying out the ff steps: i). Select the call stack window ii). right click and select 'Load Symbols' from...
1
1930
by: Blue Streak | last post by:
Hello, I know that the NT debug symbols for VC6 do not work in WinXP-SP2. So, what can be used to debug C/C++ code in under Windows XP-SP2 using VS6? TIA...
1
2145
by: sonnyz | last post by:
Hi everyone, (Using Visual Studio 2005) Assume I have a project with a single class named "MyClass.cs" and a setup project in the same solution. I know that if I want to include the debug symbols...
4
2497
by: Mr Gray | last post by:
Hello, I am using VS.NET 2003 and have multiple projects in my solution and an asp.net web app which is the startup project. I have inherited this project from someone else and am trying to...
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7190
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5451
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4881
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.