Bug 21685

Summary: remote gdb: ptrace(PT_GETDBREGS) failed: No such process
Product: Base System Reporter: Robert Watson <rwatson>
Component: gnuAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Robert Watson freebsd_committer freebsd_triage 2000-10-01 21:20:01 UTC
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.

Fix: 

Not included.  This doesn't appear to result in actual breakage, just an
annoying message getting printed fairly frequently.
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;
Comment 1 Joerg Wunsch freebsd_committer freebsd_triage 2000-12-26 20:38:55 UTC
State Changed
From-To: open->closed

Fixed in rev 1.25 of freebsd-nat.c