Is there a tool which gives me side by side mapping of C code and
assembly.I am seeing an issue with my software that it is crashing when it
is compiled without symbols.I know only the assembler dump which tells me
which address it crashed in.
Thanks
Sreekanth
Sreekanth <sreekanth@cambira.com> wrote:
Is there a tool which gives me side by side mapping of C code and
assembly.I am seeing an issue with my software that it is crashing when it
is compiled without symbols.I know only the assembler dump which tells me
which address it crashed in.
Just add the -S option to CC, it will produce
int fileManager::newSession( char *name_ )
{
session_t sessionNew;
long newSessionPos;
0408 int near fileManager::newSession( char near * ):
0408 53 push ebx
0409 51 push ecx
040a 56 push esi
040b 57 push edi
040c c8 3c 00 00 enter 003cH,00H
0410 89 c6 mov esi,eax
0412 89 d1 mov ecx,edx
int ret = 0;
0414 31 ff xor edi,edi
if ( statusBlock.data.freeSpace <= ( signed long )sizeof( session_t ))
{
0416 83 78 4e 38 cmp dword ptr +4eH[eax],00000038H
041a 7f 0a jg L18
ret = -1;
041c bf ff ff ff ff mov edi,0ffffffffH
}
regards,
Tom