From owner-freebsd-emulation Thu Aug 7 18:05:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA12206 for emulation-outgoing; Thu, 7 Aug 1997 18:05:46 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA12192 for ; Thu, 7 Aug 1997 18:05:41 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Thu, 7 Aug 1997 21:04:35 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA03376; Thu, 7 Aug 97 21:04:32 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id VAA04630; Thu, 7 Aug 1997 21:01:58 -0400 Message-Id: <19970807210157.52853@ct.picker.com> Date: Thu, 7 Aug 1997 21:01:57 -0400 From: Randall Hopper To: Sean Eric Fagan Cc: emulation@FreeBSD.ORG Subject: Re: Fun with DOSCMD (was Re: modifying boot mgrs FROM FREEBSD) References: <199708080028.RAA17158@kithrup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <199708080028.RAA17158@kithrup.com>; from Sean Eric Fagan on Thu, Aug 07, 1997 at 05:28:47PM -0700 Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Sean Eric Fagan: |> |> I also need to figure out how to run doscmd in gdb. I rebuild | |After you jump through the (rather annoying) jump into doscmd.kernel, you |can do: | | symbol-file doscmd.kernel | |That will reload the symbol table. I've used it before. Thanks for the reply. I'd tried all sorts of variations with step/jump/symbol-file (loading before, loading after) and so far no luck. Could you point out what I'm doing wrong here? This gets the DOSCMD window up, and I can ^C it, but then even after loading doscmd.kernel, GDB is lost. Randall > gdb doscmd GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc... (gdb) break 94 Breakpoint 1 at 0x2760: file doscmd_loader.c, line 94. (gdb) run -x Starting program: /share/home/rhh/DOSCMD/doscmd-970320/freebsd/doscmd -x Breakpoint 1, main (argc=2, argv=0xefbfd384, environ=0xefbfd390) at doscmd_loader.c:94 94 (*entry_point)(argc, argv, environ); (gdb) delete 1 (gdb) handle SIGBUS pass nostop noprint Signal Stop Print Pass to program Description SIGBUS No No Yes Bus error (gdb) step ^C Program received signal SIGINT, Interrupt. 0x18cc27 in ?? () (gdb) symbol-file doscmd.kernel Load new symbol table from "doscmd.kernel"? (y or n) y Reading symbols from doscmd.kernel...done. (gdb) where reading register eip (#8): No such process.