๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: BorDebug.dll & StackWalk

#14600
From: Russell Hind
Date: Mon, 04 Aug 2003 16:09
39 lines
2754 bytes
Eyyub Volkan ๏ฟฝektimur wrote:
>     BaseAddr : 0x400000
>     EntryPoint : 0x401254
> 
> My address is :
>     0x404980
> 
> 0x404980 - 0x400000 = 0x4980    // off1
> 0x404980 - 0x401254 = 0x372C    // off2
> 
> But in my BorDebug.dll tests i couldn't find these address'. I've add all of
> the offsets but couldn't found. What am i missing or doing wrong ?
>

Don't worry about the entry point address.  This is a function in the 
crtl that is automatically linked in to your app and called as soon as 
the app is executed.  It performs inital setup and then calls your WinMain.

Also, the offset won't be exact because it will be the function offset 
from the start of the file, + the offset in bytes into the function, so 
what you need to find is the nearest offset not greater than the offset 
you have, so look for a function at offset just less than 0x4980.

> Also i couldn't understand the "segment" idea. Borland holds debug
> information on seperated segments i understood. but i couldn't find any
> method to get segment information.
> 
> I think i'm newbie to this subject,
> some documents will help.

I don't fully understand the segment stuff yet.  I did get what you are 
trying to achieve working last year, and I will try and dig out the code 
again (don't know where it is at the moment)>

Unfortunately, Borland don't document what all the entries and structure 
of the TDS file, just provide the debug hook library 'as is' for people 
who want to try and understand it themselves.

Russell
Technical Details
Message-ID: <3f2e8540@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f2e627a@newsgroups.borland.com> <3f2e74c7@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-04 09:10:20 PST
Date: Mon, 04 Aug 2003 17:09:33 +0100
From: Russell Hind <unknown@unknown.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: BorDebug.dll & StackWalk
References: <3f2e627a@newsgroups.borland.com> <3f2e74c7@newsgroups.borland.com>
In-Reply-To: <3f2e74c7@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 212.240.15.125
Message-ID: <3f2e8540@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060013376 212.240.15.125 (4 Aug 2003 09:09:36 -0700)
Lines: 40
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail