How to launch LLDB with a set of commands? -
i want debug application lldb. @ beginning, want set few breakpoints set of commands. i'm aware of -s option, somehow doesn't let me interactively debug application after executing commands in file. want replicate behavior of gdb. how do this?
there bug in way lldb command parser sources command files, doesn't recognize command "breakpoint command add" has switched new "input parser" (the 1 reads , stashes away commands doesn't execute them, , waits done exit.) effect of that, if do:
breakpoint command add command other command done the input gets messed , things go poorly, have seen. bug fixed in tot lldb, though hasn't made official xcode release yet.
in meantime, there aren't great workarounds this. if breakpoint commands simple, can use --one-liner option specify them without switching breakpoint input parser. or, if know little python can make python function breakpoint commands, import them "script import" , tie them breakpoint -f option.
Comments
Post a Comment