Jeffrey Walton
2012-Nov-15 07:18 UTC
[LLVMdev] Apple Xcode, LLVM, and automatic (or permanent) breakpoints
Hi All, Please forgive me if this is the wrong group. I did not see a llvm-user group (). The User Guide also lacked a topic (http://llvm.org/docs/userguides.html#userguides). I am an Xcode user. I want to set a breakpoint on malloc_error_break all the time (it makes no sense to re-run after setting the breakpoint on occasion). I want the breakpoint whenever the debugger starts, and for all projects (even projects that have not been created). Under GDB, I could probably do this via '.gdbinit.' It does not appear LLVM has the same as a search turned up no results (please correct me here). How can one set a permanent breakpoint on malloc_error_break under LLVM? Thanks in advance, Jeff
Eli Friedman
2012-Nov-15 07:34 UTC
[LLVMdev] Apple Xcode, LLVM, and automatic (or permanent) breakpoints
On Wed, Nov 14, 2012 at 11:18 PM, Jeffrey Walton <noloader at gmail.com> wrote:> Hi All, > > Please forgive me if this is the wrong group. I did not see a > llvm-user group (). The User Guide also lacked a topic > (http://llvm.org/docs/userguides.html#userguides). > > I am an Xcode user. I want to set a breakpoint on malloc_error_break > all the time (it makes no sense to re-run after setting the breakpoint > on occasion). I want the breakpoint whenever the debugger starts, and > for all projects (even projects that have not been created). > > Under GDB, I could probably do this via '.gdbinit.' It does not appear > LLVM has the same as a search turned up no results (please correct me > here). > > How can one set a permanent breakpoint on malloc_error_break under LLVM?Take a look at http://lldb.llvm.org/ for LLDB documentation. If you have further questions, this isn't really the best place to ask; the Xcode section of http://devforums.apple.com/ is generally best for Xcode questions; you can also try the lldb-dev mailing list for questions about lldb. -Eli
Jeffrey Walton
2012-Nov-15 07:37 UTC
[LLVMdev] Apple Xcode, LLVM, and automatic (or permanent) breakpoints
On Thu, Nov 15, 2012 at 2:34 AM, Eli Friedman <eli.friedman at gmail.com> wrote:> On Wed, Nov 14, 2012 at 11:18 PM, Jeffrey Walton <noloader at gmail.com> wrote: >> Hi All, >> >> Please forgive me if this is the wrong group. I did not see a >> llvm-user group (). The User Guide also lacked a topic >> (http://llvm.org/docs/userguides.html#userguides). >> >> I am an Xcode user. I want to set a breakpoint on malloc_error_break >> all the time (it makes no sense to re-run after setting the breakpoint >> on occasion). I want the breakpoint whenever the debugger starts, and >> for all projects (even projects that have not been created). >> >> Under GDB, I could probably do this via '.gdbinit.' It does not appear >> LLVM has the same as a search turned up no results (please correct me >> here). >> >> How can one set a permanent breakpoint on malloc_error_break under LLVM? > > Take a look at http://lldb.llvm.org/ for LLDB documentation. If you > have further questions, this isn't really the best place to ask; the > Xcode section of http://devforums.apple.com/ is generally best for > Xcode questions; you can also try the lldb-dev mailing list for > questions about lldb.Thanks Eli. Since you did not answer, can I assume there is no easy way to do this (as a dev, I would expect folks like you to know). Jeff
Jeffrey Walton
2012-Nov-15 07:40 UTC
[LLVMdev] Apple Xcode, LLVM, and automatic (or permanent) breakpoints
On Thu, Nov 15, 2012 at 2:34 AM, Eli Friedman <eli.friedman at gmail.com> wrote:> On Wed, Nov 14, 2012 at 11:18 PM, Jeffrey Walton <noloader at gmail.com> wrote: >> Hi All, >> >> Please forgive me if this is the wrong group. I did not see a >> llvm-user group (). The User Guide also lacked a topic >> (http://llvm.org/docs/userguides.html#userguides). >> >> I am an Xcode user. I want to set a breakpoint on malloc_error_break >> all the time (it makes no sense to re-run after setting the breakpoint >> on occasion). I want the breakpoint whenever the debugger starts, and >> for all projects (even projects that have not been created). >> >> Under GDB, I could probably do this via '.gdbinit.' It does not appear >> LLVM has the same as a search turned up no results (please correct me >> here). >> >> How can one set a permanent breakpoint on malloc_error_break under LLVM? > > Take a look at http://lldb.llvm.org/ for LLDB documentation. If you > have further questions, this isn't really the best place to ask; the > Xcode section of http://devforums.apple.com/ is generally best for > Xcode questions; you can also try the lldb-dev mailing list for > questions about lldb.Ah, shit. The proper search terms do wonders. Thanks.