From owner-freebsd-hackers Thu Jul 15 17:29:43 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from darwin.ntu.edu.au (darwin.ntu.edu.au [138.80.128.3]) by hub.freebsd.org (Postfix) with ESMTP id 710F9157AB for ; Thu, 15 Jul 1999 17:29:37 -0700 (PDT) (envelope-from grog@lemis.com) Received: from mojave.lemis.com ([138.80.54.116]) by darwin.ntu.edu.au (8.8.8/8.8.8) with ESMTP id JAA21687; Fri, 16 Jul 1999 09:58:43 +0930 (CST) Received: (grog@localhost) by mojave.lemis.com (8.9.3/8.6.12) id XAA00606; Thu, 15 Jul 1999 23:38:37 +0930 (CST) Message-ID: <19990715233837.17211@mojave.lemis.com> Date: Thu, 15 Jul 1999 23:38:37 +0930 From: Greg Lehey To: Mike Smith , Marc Tardif Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: gdb instead of adb References: <199907150545.WAA00453@dingo.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199907150545.WAA00453@dingo.cdrom.com>; from Mike Smith on Wed, Jul 14, 1999 at 10:45:32PM -0700 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 14 July 1999 at 22:45:32 -0700, Mike Smith wrote: >> Is the reason why adb hasn't been ported to freebsd because the source is >> proprietary? > > You make no sense. What don't you understand? It makes plenty of sense to me (and the answer is: yes). >> If gdb should suffice for my debugging needs, how can a breakpoint be set >> at a particular interrupt, or even at any interrupt? The break command >> only seems to accept functions, offsets, linenumbers and addresses... >> I'm all out of ideas and the gdb info file isn't helping. > > You make little more sense, unless you are talking about using > gdb-remote on a running kernel, in which case you should know that > interrupts are vectored through functions, and thus the entire issue is > moot. Translation: to set a breakpoint on an "interrupt", set the breakpoint on its interrupt handler. > Note also that debugging through interrupt handlers can be > problematic on PC hardware. On all hardware. But if Marc has used adb to set breakpoints on interrupt handlers, he'll know that. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message