• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using gdb to step through gdb in os x leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using gdb to step through gdb in os x leopard


  • Subject: Re: Using gdb to step through gdb in os x leopard
  • From: Jonas Maebe <email@hidden>
  • Date: Wed, 8 Jul 2009 12:47:27 +0200


On 08 Jul 2009, at 12:43, Aron-Zvi wrote:

I've tried running the entire thing as root by switching with su before
running the command. I've even tried logging in as root.
gdb --args ./gdb fooprogram as root still results in "Unable to find Mach
task port for process-id *pid_of_ fooprogram *(os/kern) failure (0x5)" in
the debugee gdb when attempting to run fooprogram.
Once again, this happens in macosx_ptrace_him() after task_for_pid() .

I guess you compiled that gdb yourself. On Mac OS X 10.5.x, gdb has to be owned by the procmod group and have mode 2755 to have the appropriate rights to trace other programs. I.e., after compiling gdb, do the following:


sudo chgrp procamod gdb
chmod 2755 gdb


Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Using gdb to step through gdb in os x leopard (From: Aron-Zvi <email@hidden>)
 >Re: Using gdb to step through gdb in os x leopard (From: Terry Lambert <email@hidden>)
 >Re: Using gdb to step through gdb in os x leopard (From: Aron-Zvi <email@hidden>)

  • Prev by Date: Re: Using gdb to step through gdb in os x leopard
  • Next by Date: Re: Using gdb to step through gdb in os x leopard
  • Previous by thread: Re: Using gdb to step through gdb in os x leopard
  • Next by thread: Re: Using gdb to step through gdb in os x leopard
  • Index(es):
    • Date
    • Thread