The gdb developers are rapidly approaching the release of gdb 7.0 (which will be required to debug optimized code generated by gcc 4.5 due changes related to the var tracking association merge and other code). They currently have patches proposed that allows gdb 7.0 to debug code in darwin9.6. However there was some change made in darwin9.8 and darwin10 which no longer allows the previous approach of making gdb belong to the procmod group... sudo chgrp procmod gdb sudo chmod g+s gdb Under darwin9.6 and darwin10 (but not darwin9.5), this results in the error... (gdb) break 4 Breakpoint 1 at 0x10000154c: file himenoBMTxpa.c, line 4. (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) Can someone at Apple provide the gdb developers with some advice on what is the new approach recommnded for gdb to have proper permissions and group ownership to function under darwin9.5.8 and darwin10? The messages discussing this issue are archived at... http://sourceware.org/ml/gdb/2009-09/msg00239.html http://sourceware.org/ml/gdb/2009-09/msg00240.html http://sourceware.org/ml/gdb/2009-09/msg00241.html http://sourceware.org/ml/gdb/2009-09/msg00242.html http://sourceware.org/ml/gdb/2009-09/msg00243.html http://sourceware.org/ml/gdb/2009-09/msg00245.html http://sourceware.org/ml/gdb/2009-09/msg00246.html http://sourceware.org/ml/gdb/2009-09/msg00247.html http://sourceware.org/ml/gdb/2009-09/msg00248.html http://sourceware.org/ml/gdb/2009-09/msg00249.html http://sourceware.org/ml/gdb/2009-09/msg00250.html http://sourceware.org/ml/gdb/2009-09/msg00252.html Thanks for any authoritative answer on the correct approach to solving this problem. Jack ps This does also indirectly effect the llvm project on darwin (if any one wants to use FSF gdb 7.0).
On Sep 21, 2009, at 6:16 AM, Jack Howarth wrote:> The gdb developers are rapidly approaching the > release of gdb 7.0 (which will be required to debugHi Jack, I know you're trying to help improve tools for Darwin, but llvm-dev is not really an appropriate place for it. Please stick to LLVM related topics on this list where possible. -Chris
On Mon, Sep 21, 2009 at 10:08:34AM -0700, Chris Lattner wrote:> > On Sep 21, 2009, at 6:16 AM, Jack Howarth wrote: > >> The gdb developers are rapidly approaching the >> release of gdb 7.0 (which will be required to debug > > Hi Jack, > > I know you're trying to help improve tools for Darwin, but llvm-dev is > not really an appropriate place for it. Please stick to LLVM related > topics on this list where possible. > > -ChrisWhere are we most likely to find the Apple gdb developers? We are very close to the gdb 7.0 release and I wanted to find the most likely place that they would view the request. Jack
Possibly Parallel Threads
- [LLVMdev] OT: gdb and procmod on darwin9.8/darwin10
- [LLVMdev] OT: gdb and procmod on darwin9.8/darwin10
- [LLVMdev] Broken build 'clang-x86_64-darwin10-self-mingw32'
- [LLVMdev] [cfe-commits] Broken build 'clang-x86_64-darwin10-self-mingw32'
- [LLVMdev] [cfe-commits] Broken build 'clang-x86_64-darwin10-self-mingw32'