• 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: lldb equivalent to gdb's bt X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lldb equivalent to gdb's bt X?


  • Subject: Re: lldb equivalent to gdb's bt X?
  • From: Jason Molenda <email@hidden>
  • Date: Fri, 26 Oct 2012 16:56:14 -0700

In Xcode 4.5.x you'll need to do "bt -c X" to get this functionality (-c for count).  In that release the "bt" command is a thin wrapper over "thread backtrace".

This was an unnecessary divergence from gdb command equivalences; in the current sources at http://lldb.llvm.org/ the bt alias has been changed to accept "bt X" to mean "X frames" while still accepting "bt all" to mean "backtrace all threads" ("t a a bt" in gdb).

I updated the gdb/lldb command equivalences page http://lldb.llvm.org/lldb-gdb.html to note the Xcode 4.5.x and earlier behavior as well as the newer behavior.

J

On Oct 26, 2012, at 3:28 PM, Lee Ann Rucker <email@hidden> wrote:

> In gdb, "bt X" shows the top X calls of the backtrace; in lldb it's the backtrace for thread X. Is there an lldb equivalent? http://lldb.llvm.org/lldb-gdb.html doesn't seem to know about the gdb feature.
>
> If I've got a frequently-called method and I'm trying to track down who's using it, I'd like to set a breakpoint that does "bt 3" then continues; if it prints the whole bt that's an awful lot of noise to filter out.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users 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.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >lldb equivalent to gdb's bt X? (From: Lee Ann Rucker <email@hidden>)

  • Prev by Date: Re: Code signing confusion
  • Next by Date: Re: How to make a path relative to the current Xcode application?
  • Previous by thread: lldb equivalent to gdb's bt X?
  • Next by thread: Private ivar not showing up in debugger?
  • Index(es):
    • Date
    • Thread