Hi,
While building lldb driver I ran into the missing init_lldb() in ScriptInterpreterPython.cpp.
Seems that lldb_private::Initialize() is the right function to call and I just wanted to confirm that.
The other minor issue is the missing LLDBVersionNumber but that is easily taken care of.
Cheers,
Pawel
Scanning dependencies of target lldb
Linking CXX executable ../../../../bin/lldb
../../../../lib/libInterpreter.a(ScriptInterpreterPython.cpp.o): In function `lldb_private::ScriptInterpreterPython::ScriptInterpreterPython()':
ScriptInterpreterPython.cpp:(.text+0x15d): undefined reference to `init_lldb'
../../../../lib/libsource.a(lldb.cpp.o): In function `lldb_private::GetVersion()':
lldb.cpp:(.text+0x1c8): undefined reference to `LLDBVersionNumber'
Hi,
While building lldb driver I ran into the missing init_lldb() in
ScriptInterpreterPython.cpp.
Seems that lldb_private::Initialize() is the right function to call and
I just wanted to confirm that.
The other minor issue is the missing LLDBVersionNumber but that is
easily taken care of.
See http://lists.cs.uiuc.edu/pipermail/lldb-dev/2010-June/000039.html .
Also, if you're also working on Linux porting, we should coordinate;
I'm efriedma on #llvm on irc.oftc.net .
-Eli
Hi,
While building lldb driver I ran into the missing init_lldb() in
ScriptInterpreterPython.cpp.
Seems that lldb_private::Initialize() is the right function to call and
I just wanted to confirm that.
The other minor issue is the missing LLDBVersionNumber but that is
easily taken care of.
Cheers,
Pawel
From a previous discussion at http://lists.cs.uiuc.edu/pipermail/lldb-dev/2010-June/000039.html
> ><i> source/Interpreter/ScriptInterpreterPython.cpp:
</i>><i> My build doesn't define init_lldb anywhere; I have no idea where the
</i>><i> definition is supposed to be.
</i>> This comes from the file cpp file that is generated by swig when run on the ABI sources.
This is done by a shell script build phase in the Xcode project that essentially does a:
cd scripts
sh ./build-swig-wrapper-classes.sh lldb.swig ../source/LLDBWrapPython.cpp
The init_lldb ends up being in the LLDBWrapPython.cpp
Read this answer too, it may be interesting:
http://lists.cs.uiuc.edu/pipermail/lldb-dev/2010-June/000045.html
– Jean-Daniel
From a previos discussion at http://lists.cs.uiuc.edu/pipermail/lldb-dev/2010-June/000039.html
SFAL!
Read this answer too, it may be interesting:
http://lists.cs.uiuc.edu/pipermail/lldb-dev/2010-June/000045.html
It is, thx!
-- Jean-Daniel
After some mocking with the types and lldb namespace in the lldb.swig (see below ) I got it to link nicely.
Oh, there is this cute liblld typo to take care. But the thing SEGVs in the strlen, curious.
Pawel
Index: lldb.swig
% svn commit
Sending scripts/lldb.swig
Transmitting file data .
Committed revision 105884.
Thanks Pawel!