Date: Tue, 4 Apr 2000 14:04:58 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: HELP! : Debugging a c/asm mixed programs In-Reply-To: <007b545d.e4358c4a@usw-ex0105-036.remarq.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 3 Apr 2000, batchex wrote: > I got around the random exception stuff in FSDB, but new one > arises. > > Hmm, I still haven't upgrade to 2.03 yet. Please do. > detect_dpmi_ok1: > mov [dosmem_selector],dx ; here FSDB throws > exception 0x3030 or 0x3036 > mov [dosmem_segment],ax Does the problem happen when you single-step through this instruction, or even if you let the program run freely? > ; if I try 'x/20bx vbe20DrvInfo' here, GDB crashes, error 04. > vbe20DrvInfo is global. Sorry, I don't understand: where is ``here''? On what line(s) does the crash happen? Are there any places where the same command does not crash? Also, what version of GDB do you have installed? What does "gdb --version" print? > How can I redirect the crash info from GDB to a file? Invoke GDB with its stderr redirected: redir -e crash.txt gdb prog.exe where prog.exe is your program. When it crashes, the file crash.txt will hold the crash message; please post it here. > Also, what do I need to upgrade my djgpp to 2.03? Download and unzip v2/djdev203.zip. It comes with a new fsdb.exe, among other things.