From robert@fledge.watson.org  Sun Oct  1 13:17:10 2000
Return-Path: <robert@fledge.watson.org>
Received: from fledge.watson.org (fledge.watson.org [204.156.12.50])
	by hub.freebsd.org (Postfix) with ESMTP id 61CFA37B66D
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  1 Oct 2000 13:17:06 -0700 (PDT)
Received: (from robert@localhost)
	by fledge.watson.org (8.9.3/8.9.3) id QAA57771;
	Sun, 1 Oct 2000 16:17:01 -0400 (EDT)
	(envelope-from robert)
Message-Id: <200010012017.QAA57771@fledge.watson.org>
Date: Sun, 1 Oct 2000 16:17:01 -0400 (EDT)
From: rwatson@freebsd.org
Sender: robert@fledge.watson.org
Reply-To: rwatson@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: remote gdb: ptrace(PT_GETDBREGS) failed: No such process
X-Send-Pr-Version: 3.2

>Number:         21685
>Category:       gnu
>Synopsis:       remote gdb: ptrace(PT_GETDBREGS) failed: No such process
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 01 13:20:01 PDT 2000
>Closed-Date:    Tue Dec 26 21:38:55 MET 2000
>Last-Modified:  Tue Dec 26 21:39:30 MET 2000
>Originator:     Robert Watson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

FreeBSD alsvid.watson.org 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Fri Sep 22 10:54:51 EDT 2000     robert@alsvid.watson.org:/data/fbsd-current/fresh/acl/src/sys/compile/ACL  i386

Using gdb to remote debug a kernel.

>Description:

Gdb spits out lots of ptrace() errors during remote debugging, whereas
previously it did not.  Since ptrace() should only be used for local
debugging, there's probably a call to ptrace() that should not be occuring.
Don't have the threshold date that it started due to spotty following of
-CURRENT.

>How-To-Repeat:

(kgdb) target remote /dev/cuaa0
Remote debugging using /dev/cuaa0
ptrace(PT_GETDBREGS) failed: No such process
Debugger (msg=0xc039af4f "Boot flags requested debugger")
    at ../../i386/i386/db_interface.c:326
326                 in_Debugger = 0;

>Fix:

Not included.  This doesn't appear to result in actual breakage, just an
annoying message getting printed fairly frequently.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Tue Dec 26 21:38:55 MET 2000 
State-Changed-Why:  
Fixed in rev 1.25 of freebsd-nat.c 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21685 
>Unformatted:
