473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Assembly problem

Hello,
I have a huge application thats written in C and C++. The application
crashes and I am trying to find a pattern to these crashes. I recently
got my hands on the DrWatson log and the user.dmp file. On running this
dump using Visual studio, I got a lot of Assembly code that I can't
make head or tail of. I was wondering if I can compile the entire
application on my local box and generate the assembly code so that I
can then pinpoint the section of the assembly code that causes the
unhandled exception and trace it back to my C/C++ code. So my questions
are:
1. Is there a better way to know what function in C C++ code is causing
the Unhandled exception when you ONLY have access to assembly code
without any symbols?
2. Is there a setting in some compiler (visual studio for e.g.) that
generates Assembly code instead of object code?
Thanks in advance for your time.

Best regards,
B.

Jun 21 '06 #1
3 1610
On 20 Jun 2006 22:47:51 -0700, bi**********@yahoo.com wrote:
Hello,
I have a huge application thats written in C and C++. The application
crashes and I am trying to find a pattern to these crashes. I recently
got my hands on the DrWatson log and the user.dmp file. On running this
dump using Visual studio, I got a lot of Assembly code that I can't
make head or tail of. I was wondering if I can compile the entire
application on my local box and generate the assembly code so that I
can then pinpoint the section of the assembly code that causes the
unhandled exception and trace it back to my C/C++ code. So my questions
are:
This newsgroup, comp.lang.c, is about discussing standard C
language-related issues.

Unfortunately, the C standard doesn't mention anything about DrWatson
or user.dmp or Visual Studio or even assembly code, so technically
your post is off-topic and consequently we can't really, technically,
help you.
1. Is there a better way to know what function in C C++ code is causing
the Unhandled exception when you ONLY have access to assembly code
without any symbols?
Maybe, but some would equate this to making a cow out of hamburger. Be
forewarned.
2. Is there a setting in some compiler (visual studio for e.g.) that
generates Assembly code instead of object code?
Thanks in advance for your time.


If there is, you're best off asking this question in a newsgroup that
is more specific to your compiler. Search http://groups.google.com.

--
jay

Jun 21 '06 #2
On 2006-06-21, bi**********@yahoo.com <bi**********@yahoo.com> wrote:
Hello,
I have a huge application thats written in C and C++. The application
crashes and I am trying to find a pattern to these crashes. I recently
got my hands on the DrWatson log and the user.dmp file. On running this
dump using Visual studio, I got a lot of Assembly code that I can't
make head or tail of. I was wondering if I can compile the entire
application on my local box and generate the assembly code so that I
can then pinpoint the section of the assembly code that causes the
unhandled exception and trace it back to my C/C++ code. So my questions
are:
1. Is there a better way to know what function in C C++ code is causing
the Unhandled exception when you ONLY have access to assembly code
without any symbols?
You can usually tell the linker to emit a "map file" as well the
executable, which can help you find your way back from a code address to
the C function the code came from.

Check your tool's docs for map file-- hopefully it will also explain how
they work on your system.
2. Is there a setting in some compiler (visual studio for e.g.) that
generates Assembly code instead of object code?


Most compilers can do this, I don't know how you do it in Visual Studio.
The alternative is to disassemble the object code with a disassembler,
which usually works just as well (assembly -> object code is a pretty
much reversible transformation, unlike cow -> hamburger).
Jun 21 '06 #3
On 21 Jun 2006 10:52:40 GMT, Ben C <sp******@spam.eggswrote:
On 2006-06-21, bi**********@yahoo.com <bi**********@yahoo.comwrote:
2. Is there a setting in some compiler (visual studio for e.g.) that
generates Assembly code instead of object code?

Most compilers can do this, I don't know how you do it in Visual Studio.
M$VC has options to generate assy listing _in addition to_ object, and
for linker to generate a map. And the IDE debugger can display
disassembly (by default for code with no symbol info) but see below.
The alternative is to disassemble the object code with a disassembler,
which usually works just as well (assembly -object code is a pretty
much reversible transformation, unlike cow -hamburger).
Not fully. Disassembly can't give you any macros, assy-time
computations, comments, formatting, or ordering of pieces of segments;
and depending on what symbols are kept in your object or executable
maybe not names (symbols) for values or even for locations.

What is true is that disassembly usually gives you code that can be
read with modest effort and even maintained (modified) if needed,
while decompilation doesn't.

To stretch the analogy: A bunch of hamburger pressed back together
isn't really a steak, and it would be fraud to price it as such, but
you can cook it and eat it and get (essentially) the same nutrition.
Whereas you have no hope of getting it to amble and moo.

- David.Thompson1 at worldnet.att.net
Jul 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul Klanderud | last post by:
I'm having a problem with being unable to remove a reference to an old, nonexistent version of a strongly- named assembly. I should mention that my issues arose at the same time I upgraded from...
2
by: Peter Gomis | last post by:
I have encountered a situation where I am unable to remove a .NET assembly from the GAC. The message I receive is "Assembly 'assemblyname' could not be uninstalled because it is required by other...
0
by: Ken Durden | last post by:
I'm working on a client-server application where the client is controlling two devices (aka servers) which both implement the same interface contract. We have a set of about 4 assemblies which...
5
by: Lucas Sain | last post by:
Hi, I have a form (A) which has a collection as a property. All my forms inhert from this base form. I'm tring to put some code in form A where I can get the fieldInfo from the form that...
4
by: V. Jenks | last post by:
I'm using reflection to dynamically load an assembly and even though I'm sure the assembly is present, I keep getting an error telling me the "assembly or one of its references can't be found". ...
2
by: Andrew Jocelyn | last post by:
Hi I get this error when I change something in the web.config file. When I build the VS projects and load the first web page the application runs fine. If I then make a save the web.config file...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
1
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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
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,...

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.