From owner-freebsd-emulation Mon Sep 8 21:58:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA02794 for emulation-outgoing; Mon, 8 Sep 1997 21:58:58 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA02783 for ; Mon, 8 Sep 1997 21:58:49 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id OAA28185; Tue, 9 Sep 1997 14:57:44 +1000 Date: Tue, 9 Sep 1997 14:57:44 +1000 From: Bruce Evans Message-Id: <199709090457.OAA28185@godzilla.zeta.org.au> To: emulation@FreeBSD.ORG, wirth@zerberus.hai.siemens.co.at Subject: Re: Doscmd, debugging with gdb Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >The problem: Starting doscmd under gdb loads the symboltable of the >loader, not of doscmd.kernel. This is easy to solve (symbol-file ..). >There are other troubles (with the signals, for example,..) but there >are solutions for this too. I can trace into doscmd.kernel, load its >symbols, list the functions, handle the signals correctly (nostop, pass >for SIGBUS) and continue the program. But I cannot set breakpoints! >I think the reason for this is, that ptrace knows the text segment of >the original loader, and it refuses to set breakpoints into what it >sees as the data area of a program. There must be more to it than that, since gdb can set breakpoints in shared libraries although it doesn't understand symbols in shared libraries. Perhaps it is relocating text addresses by 0x110000 when it should use 0. Bruce