From owner-freebsd-hackers Thu Aug 29 09:12:59 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA16217 for hackers-outgoing; Thu, 29 Aug 1996 09:12:59 -0700 (PDT) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA16210 for ; Thu, 29 Aug 1996 09:12:55 -0700 (PDT) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id JAA02428; Thu, 29 Aug 1996 09:11:41 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) by whistle.com via smap (V1.3) id sma002425; Thu Aug 29 09:11:23 1996 Message-ID: <3225C0E9.41C67EA6@whistle.com> Date: Thu, 29 Aug 1996 09:10:17 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0b6 (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Paul Traina CC: hackers@FreeBSD.org Subject: Re: gdb remote References: <199608291448.HAA02892@precipice.shockwave.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Paul Traina wrote: > > First off, don't use comconsole yet, it's not quite 100% there. > > Just boot off of syscons/pcvt, with the -g (and optionally -d), put > the cable on the com1 port. ok here is what I'm doing; tell me if I'm doinf something stupid.. compiel new kernel with new gdb stub boot kernel (normal bootblocks) with -g start gdb -k /sys/compile/IAF the following .gdbinit exists: set remotedevice /dev/cuaa1 set remotebaud 9600 dir /sys/netatalk dir /sys/kern dir /sys/net dir /sys/netinet file compile/IAF/kernel target remote /dev/cuaa1 this is with the new 4.16 gdb.. the previos version 4,13 works better it 1/ responds to the -k option 2/ gives symbold and a stacktrace 4.16 give (sometimes ) a single address in hex and that's all, > > start gdb: > > gdb target-kernel > > target remote /dev/cuaa1