Article View: comp.sys.mac.programmer.codewarrior
Article #809Re: How to find routine names from crashlog and xMAP ?
From: Isaac Wankerl
Date: Wed, 28 May 2003 18:21
Date: Wed, 28 May 2003 18:21
51 lines
2852 bytes
2852 bytes
In article <kents-0411FF.16434527052003@news21.bellnet.ca>,
Kent Sorensen <kents@snak.REMOVETHIS.com> wrote:
> I would like to find a way to make release build crashlogs useful. When
> I get a release crashlog (which of course has no symbols in it) there is
> nothing I can do to find the offending routine.
>
> I use CodeWarrior and I have symbol and linkmap files for the release
> build.
>
> If you have a crashlog from a release build, and the corresponding xMAP
> and XSYM files how do you actually map the addresses in the crashlog to
> routines ?
>
> I have tried searching for the addresses listed in the crashlog, but
> they appear to be offset by the programs location in memory so I can't
> find them in the xMAP.
>
> Any pointers appreciated.
> Thanks
>
> Kent
You might want to try turning on symbols for a few of the key routines
so you can determine the address space that your application is loaded
into. This can easily be done with pragmas:
void Foo()
{
// ...
}
#pragma traceback on
int main()
{
// ...
}
#pragma traceback reset
Now your crashlog will show main as one of the routines on the stack.
From the address listed there and and address in the xMAP file, I think
you can come up with an offset and apply that to the crashlog addresses
to translate them into the routine names.
--
Isaac Wankerl
Metrowerks
Mac Software Developer
Technical Details
Message-ID:
<spam-207DF5.13213228052003@newshost.mot.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.sea.pnap.net!newsfeed.pnap.net!newsgate.mot.com!newshost.mot.com!spamReferences:
<kents-0411FF.16434527052003@news21.bellnet.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,42c902b46c268042
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,42c902b46c268042
X-Google-Attributes: gidf635e,public
X-Google-Thread: fed41,42c902b46c268042
X-Google-Attributes: gidfed41,public
X-Google-ArrivalTime: 2003-05-28 11:29:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.sea.pnap.net!newsfeed.pnap.net!newsgate.mot.com!newshost.mot.com!spam
From: Isaac Wankerl <spam@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,comp.sys.mac.programmer.misc,codewarrior.mac
Subject: Re: How to find routine names from crashlog and xMAP ?
Date: Wed, 28 May 2003 13:21:32 -0500
Organization: Metrowerks
Lines: 51
Message-ID: <spam-207DF5.13213228052003@newshost.mot.com>
References: <kents-0411FF.16434527052003@news21.bellnet.ca>
NNTP-Posting-Host: bangkok.mtwk.sps.mot.com
X-Trace: newshost.mot.com 1054145952 23560 10.86.0.94 (28 May 2003 18:19:12 GMT)
X-Complaints-To: motpost1@azmsg.mot.com
NNTP-Posting-Date: 28 May 2003 18:19:12 GMT
User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X)
X-Face: )mY~XFHLw)UOW!W#[Ljvxq6Ja7(g'#F0-g*&puNxR8hEJkd@Oue/70^.)I78\
(%a%&Id211u"l/t.llWo/M|?15XUlx9!IGkdWiEmcasiyg"k;Q9[~XuE+`t2"*n(>nmm
@L/q,TjMd5+H{gASEPDR^$