🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14630

Re: BorDebug.dll & StackWalk

#14630
From: Eyyub Volkan �ektimur
Date: Tue, 05 Aug 2003 08:02
54 lines
2658 bytes
I read that part , but not solved my problem , here is some code ;

//-------------------------------------------------
MODULEINFO MI;
GetModuleInformation(GetCurrentProcess(),GetModuleHandle(NULL),&MI,sizeof(MO
DULEINFO));
BaseAddr=MI.lpBaseOfDLL;    // base of loaded executable


 LOADED_IMAGE *Data=NULL;
 PIMAGE_SECTION_HEADER pSection;

 Data=ImageLoad("ProjectName.exe","");
 pSection = Data->Sections;

        sectionStart = pSection->VirtualAddress
        sectionEnd = sectionStart + max(pSection->SizeOfRawData,
pSection->Misc.VirtualSize);

 ImageUnload(Data);
//-------------------------------------------------------------

we can find that which segment contains the address and also can find the
offset, in my example addr. is;
0x401BDB
base addr : 0x400000
first segment offset : 0x1000
first segment size : 0x5000

0x400000 - 0x401BDB = 1BDB

0x1BDB - 0x1000 = 0xBDB and this number is smaller than 1. segments size so
we can say that converted address is : 0001:0BDB

but this address means nothing. Maybe i'm using this address in wrong way to
find symbol names in .tds file. when i cracked .tds file i found ;

  GPROC32: DoSomething
    End :0262
    Next   :0270
    debugStart:0000
    debugEnd :0B2D
    *offset   :0BE0
    *segment    :0001
    browserOffset:0000


as you see, they don't match....


___________________________________
Eyyub Volkan �ektimur
Proya Software & Trade Inc.
Head of Core Development Department
Technical Details
Message-ID: <3f2f649a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f2e627a@newsgroups.borland.com> <3f2e74c7@newsgroups.borland.com> <3f2e8540@newsgroups.borland.com> <3f2e9baa@newsgroups.borland.com> <3f2ead1a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,bb1b3ffe18d74dde
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-05 01:17:00 PST
From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f2e627a@newsgroups.borland.com> <3f2e74c7@newsgroups.borland.com> <3f2e8540@newsgroups.borland.com> <3f2e9baa@newsgroups.borland.com> <3f2ead1a$1@newsgroups.borland.com>
Subject: Re: BorDebug.dll & StackWalk
Date: Tue, 5 Aug 2003 11:02:33 +0300
Lines: 56
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: <3f2f649a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060070554 213.232.9.4 (5 Aug 2003 01:02:34 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail