• 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: Esteban Bodigami <email@hidden>
  • Date: Tue, 7 Jul 2009 20:21:24 -0600

first of all, gdb stands for what exactly? "g" database? IMO, it looks like a configuration at runtime that can help your fooprogram return no errors... like a "display no errors" flag (assumming it is text/CLI-only software).

.../7/7 Aron-Zvi <email@hidden>
Hey guys,

I've downloaded and built the most recent gdb available at opensource.apple.com - gdb-966.
I'm running OS X Leopard 10.5.7.
 
I'm stepping through gdb with gdb like so: gdb --args ./gdb fooprogram

gdb fails in macosx_ptrace_him() following the task_for_pid() call.  task_for_pid() returns 5 which i believe is KERN_FAILURE. The message displayed in the debugger is "Unable to find Mach task port for process-id 8455".

When I run just ./gdb fooprogram - everything works fine.
gdb's gid is set to procmod. Furthermore, I've even tried running gdb as root with identical results.

How can I use gdb to step through gdb debugging another process?

Your help is most appreciated,

Aron-Zvi

 _______________________________________________
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

 _______________________________________________
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

  • Follow-Ups:
    • Re: Using gdb to step through gdb in os x leopard
      • From: Eli Bach <email@hidden>
References: 
 >Using gdb to step through gdb in os x leopard (From: Aron-Zvi <email@hidden>)

  • Prev by Date: 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: 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