From owner-freebsd-hackers Tue Apr 23 07:45:57 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA07479 for hackers-outgoing; Tue, 23 Apr 1996 07:45:57 -0700 (PDT) Received: from bacall.lodgenet.com (bacall.lodgenet.com [205.138.147.242]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA07460 for ; Tue, 23 Apr 1996 07:45:48 -0700 (PDT) Received: (from mail@localhost) by bacall.lodgenet.com (8.6.12/8.6.12) id JAA18144; Tue, 23 Apr 1996 09:43:54 -0500 Received: from garbo.lodgenet.com(204.124.123.250) by bacall via smap (V1.3) id sma018138; Tue Apr 23 09:43:51 1996 Received: from jake.lodgenet.com (jake.lodgenet.com [204.124.120.30]) by garbo.lodgenet.com (8.6.12/8.6.9) with ESMTP id JAA30205; Tue, 23 Apr 1996 09:48:01 -0500 Received: from localhost (localhost [127.0.0.1]) by jake.lodgenet.com (8.7.5/8.6.12) with SMTP id JAA21041; Tue, 23 Apr 1996 09:47:59 -0500 (CDT) Message-Id: <199604231447.JAA21041@jake.lodgenet.com> X-Authentication-Warning: jake.lodgenet.com: Host localhost [127.0.0.1] didn't use HELO protocol X-Mailer: exmh version 1.6.2 7/18/95 To: Greg Lehey cc: erich@lodgenet.com (Eric L. Hernes), hackers@freebsd.org (FreeBSD hackers) Subject: Re: request for a new "feature" as regards DDB In-reply-to: Your message of "Tue, 23 Apr 1996 16:23:20 MDT." <199604231423.QAA08113@nixpbe.pdb.sni.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Apr 1996 09:47:59 -0500 From: "Eric L. Hernes" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Greg Lehey writes: > >I think that we should consider making these breakpoint forms more >generally available (e.g. via ptrace ()). Do you feel like >retrofitting gdb to use them? > Yea, that'd be ok. I was planning to prototype it as an lkm, but maybe a wart on ptrace() would be just as easy. >I wouldn't call that a typical debugging sesseion. First, one of my >intentions is to have the addresses of the functions available to ddb >(they are to lowbug at the moment, though the implementation is pretty >kludgy). Secondly, the ptrace () interface should also be able to >specify whether you want a user-level or system-level breakpoint >(i.e. does hitting the breakpoint stop the process or the kernel?). >Thirdly, you would never want to use a kernel debugger to do things >which a user-level debugger can do. But if you're debugging a system >call, it's nice to be able to follow it back to the user level. I understand now. I have traced user-space through to a system call and back, but it was kind of a pain. > >> I've found gdb much easier to debug user programs. Now days you >> can even attach gdb to the program and get much of the per-process >> stuff. > >Is this available on FreeBSD? I hadn't noticed... > yup, needs procfs though, usually not a problem. > >Greg > -- erich@lodgenet.com http://rrnet.com/~erich erich@rrnet.com