Re: lldb equivalent to gdb's bt X?
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