🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Stackwalk, map2dbg, BCB6 - solved

#14186
From: Sacha Manson-Smith
Date: Wed, 03 Sep 2003 16:04
22 lines
1762 bytes
Hi,

I posted a while ago trying to get stack walking (stack tracing) to
work with BCB6, first using Lucian Wischik's map2dbg code, and then
using StackWalk64, to no avail. With a bit of help from Steve Leary, I
got it going.

There are two problems:

1. The .map file format has changed a bit from BCB5 to BCB6, so the
.dbg file was not generated properly. map2dbg has to be tweaked a bit.

2. If you turn on the "Makes enums byte-sized when possible" switch in
BCB6 (-b-) then calls to StackWalk64 will fail. This is because the
STACKFRAME64 structure contains an ADDRESS_MODE structure, which, you
guessed it, is an enum.

I'll tidy up some code and repost for those who are interested.

Cheers,

Sacha
Technical Details
Message-ID: <3f561007$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!hermes.visi.com!priapus.visi.com!news-out.visi.com!green.readfreenews.net!news.readfreenews.net!cox.net!news-xfer.cox.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a39750829d03669,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-03 09:10:27 PST
From: "Sacha Manson-Smith" <unknown@unknown.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Stackwalk, map2dbg, BCB6 - solved
Date: Wed, 3 Sep 2003 17:04:37 +0100
Lines: 24
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: 212.250.215.13
Message-ID: <3f561007$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062604807 212.250.215.13 (3 Sep 2003 09:00:07 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!hermes.visi.com!priapus.visi.com!news-out.visi.com!green.readfreenews.net!news.readfreenews.net!cox.net!news-xfer.cox.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail