Looks like you missed an "import sys" script import sys; sys.path[:0] = [os.path.expanduser('~')]; import binutils command script add -f binutils.itob itob command script add -f binutils.utob utob
> On Aug 18, 2014, at 12:58 PM, Jared Carlson <jared.carlso...@gmail.com> wrote: > > I’m running on OS X, but I’m confused, I can give it a script right? So in > this case if I do: > > lldb <scriptname> it should load LLDB without a target but by adding any > environment or other scripting variables right? So I know I can use an > .lldbinit such as: > > # So that ~/binutils.py takes precedence. > script sys.path[:0] = [os.path.expanduser('~')] > script import binutils > command script add -f binutils.itob itob > command script add -f binutils.utob utob > > > But I thought I could feed LLDB a script as the arg as well, no?? > > - Jared > > > > On Aug 18, 2014, at 3:54 PM, Todd Fiala <tfi...@google.com> wrote: > >> What kind of OS are you running on? On several of our platforms, if you >> specify a directory rather than an exe (and it doesn't happen to be a MacOSX >> .app or some kind of special bundle), it will give you that message. >> >> >> On Mon, Aug 18, 2014 at 12:51 PM, Jared Carlson <jared.carlso...@gmail.com> >> wrote: >> Afternoon, >> >> When I try to set up lldb to run via a script, I get an error: “doesn’t >> contain any ‘host’ platform architectures: x86_64, i386” >> >> I’m wondering what this means and where I can find more information about >> it? Thanks! >> >> - Jared >> >> >> _______________________________________________ >> lldb-dev mailing list >> lldb-dev@cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev >> >> >> >> >> -- >> Todd Fiala | Software Engineer | tfi...@google.com | 650-943-3180 >> > > _______________________________________________ > lldb-dev mailing list > lldb-dev@cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev _______________________________________________ lldb-dev mailing list lldb-dev@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev