Subject: Re: gdb/PTRACE broken on sparc64?
To: None <current-users@netbsd.org, port-sparc64@netbsd.org>
From: Matt Thomas <matt@3am-software.com>
List: current-users
Date: 09/12/2006 15:24:51
David Young wrote:
> With -current sources of last night, I see the following error when I
> try to attach to a live process with gdb.  Anybody else?
> 
>   % sudo gdb ~/scratch-cuw/Z/utd/utd `pgrep utd`
>   GNU gdb 5.3nb1
>   Copyright 2002 Free Software Foundation, Inc.
>   GDB is free software, covered by the GNU General Public License, and you are
>   welcome to change it and/or distribute copies of it under certain conditions.
>   Type "show copying" to see the conditions.
>   There is absolutely no warranty for GDB.  Type "show warranty" for details.
>   This GDB was configured as "sparc64--netbsdelf"...
>   Attaching to program: /u1/dyoung/scratch-cuw/Z/utd/utd, process 1098
>   sorry, pid 1098 was killed: orphaned traced process
>   Sep 12 16:23:38 thule /netbsd: pid 1098 was killed: orphaned traced process
>   Bus error (core dumped)
>   % uname -a
>   NetBSD thule.ojctech.com 4.99.1 NetBSD 4.99.1 (GENERIC) #5: Tue Sep 12 12:01:59 CDT 2006  dyoung@cuw.ojctech.com:/u4/dyoung-scratch/new-nbsd/sparc64/O/sys/arch/sparc64/compile/GENERIC sparc64
> 
> Presumably this is fallout from recent PTRACE changes?

Try building gdb6 and see if it works better.  gdb5 on ppc did the
same while gdb6 mostly works.

-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this message.