Re: [ANNOUNCEMENT] GDB 7.0 release process created

Paul Pluzhnikov
2009-09-20T18:37:16Z

On Sun, Sep 20, 2009 at 10:36 AM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:

> (gdb) r
> Starting program: /Users/howarth/a.out
> Unable to find Mach task port for process-id 154: (os/kern) failure (0x5).
>  (please check gdb is setgid procmod)
> (gdb)
>
> So it seems like breakpoints can be set but their is a setgid problem.

This is not really related to GDB. Explanation (at least as far as I
understand what's happening):
http://sourceware.org/ml/gdb/2009-08/msg00085.html

On Sun, Sep 20, 2009 at 10:39 AM, Joel Brobecker <brobecker@adacore.com> wrote:

> % sudo chgrp procmod gdb
> % sudo chmod g+s gdb

That appears to no longer be sufficient on Mac OS X 10.5.8 (at least
it doesn't work for me):

$ ls -l gdb/gdb
-rwxrwsr-x 1 ppluzhnikov procmod 4416668 Sep 20 10:20 gdb/gdb
$ gdb/gdb ./t
GNU gdb (GDB) 7.0.50.20090920-cvs
...
Reading symbols from /Users/ppluzhnikov/gdb-cvs/build/t...(no
debugging symbols found)...done.
(gdb) r
Starting program: /Users/ppluzhnikov/gdb-cvs/build/t
Unable to find Mach task port for process-id 39624: (os/kern) failure (0x5).
(please check gdb is setgid procmod)
(gdb) q

--
Paul Pluzhnikov