Article View: borland.public.cppbuilder.nativeapi
Article #14488StackWalk & BorDebug
From: Eyyub Volkan �ektimur
Date: Tue, 12 Aug 2003 12:33
Date: Tue, 12 Aug 2003 12:33
48 lines
2613 bytes
2613 bytes
Hi,
As i posted before, i still can't use the returning address from
"StackWalk" method.
It returns me an address and i subtract it from base address of loaded image
and tried to find which section includes that address. All things look good
but i can't find a match with bordebug.dll of the resultant address. Non of
them matchs with the resultant address so i can't resolve the address' name
! when i try "Search/Go to address" from ide, it goes to the right code line
so the address that i found is correct.
i also tried Lucian Wischik's callstack library, it resolves names correctly
from address but it needs to converts borland's .map file to microsoft's
.dbg file, i don't want to do this so i'm tring to use bordebug.dll.
any way , the main question is how can i convert an physical address to
bordebug's address type and find the symbols ?
thanks for help
P.S. :
----------------------------------------------------------------------
Addr=Addr-BaseAddress;
LOADED_IMAGE *Data=NULL;
PIMAGE_SECTION_HEADER pSection;
...
...
pSection = Data->Sections;
sectionStart = pSection->VirtualAddress
sectionEnd = sectionStart +
max(pSection->SizeOfRawData,pSection->Misc.VirtualSize);
if Addr is between sectionStart & sectionEnd we can say that the address is
in that (in this example 1.st) section and then
Addr=Addr-sectionStart; // start address
but this address means nothing to me and also to bordebug.dll...
--
___________________________________
Eyyub Volkan �ektimur
Proya Software & Trade Inc.
Head of Core Development Department
Technical Details
Message-ID:
<3f38dea8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,fbd260f2faea62dd,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-12 05:36:41 PST From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr> Newsgroups: borland.public.cppbuilder.nativeapi Subject: StackWalk & BorDebug Date: Tue, 12 Aug 2003 15:33:44 +0300 Lines: 50 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.232.9.4 Message-ID: <3f38dea8@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060691624 213.232.9.4 (12 Aug 2003 05:33:44 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail