Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'lldbbridge' #24

Open
mightbxg opened this issue Apr 28, 2021 · 6 comments
Open

No module named 'lldbbridge' #24

mightbxg opened this issue Apr 28, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@mightbxg
Copy link

mightbxg commented Apr 28, 2021

Environment

OS: Manjaro 21.0.2 Ornara
GCC: 10.2.0
GDB: 10.1
LLDB: 11.1.0
CMake: 3.20.1
Qt: 5.15.2
IDE: Qt Creator 4.14.2

How I built and configured OID

# in OID source path
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=./Install
make -j12
make install
echo "source $PWD/Install/OpenImageDebugger/oid.py" > ~/.gdbinit

Run python3 oid.py --test, and the test passed (the OID window showed up).

Problem

When I start debugging in qtcreator, the image watch window doesn't show up. So I logged error_traces in register_ide_hooks in oid.py, and get this error message:

  File "/home/user/Packages/OpenImageDebugger/build/Install/OpenImageDebugger/oid.py", line 80, in register_ide_hooks
    initializer(debugger, event_handler)
  File "/home/user/Packages/OpenImageDebugger/build/Install/OpenImageDebugger/oidscripts/ides/qtcreator.py", line 68, in register_symbol_fetch_hook
    lldb_fetch_hook(debugger, event_handler)
  File "/home/user/Packages/OpenImageDebugger/build/Install/OpenImageDebugger/oidscripts/ides/qtcreator.py", line 41, in lldb_fetch_hook
    imp = __import__('lldbbridge')
ModuleNotFoundError: No module named 'lldbbridge'
@svarjo
Copy link

svarjo commented Apr 28, 2021

I'm more than n00b but have you been able to run this with lldb before? Current with gdb seems to work....

@mightbxg
Copy link
Author

mightbxg commented Apr 29, 2021

@svarjo
I have tried gdb and lldb (v11.1.0), and they both don't work. Maybe versions of python and gdb/lldb on Manjaro are too high?

GDB ImageWatch used to work on my computer many months ago, but it can't work now.

@brunoalr
Copy link
Member

brunoalr commented Jun 24, 2021

Hi @mightbxg thanks for the detailed report! When we get some free time we will look at it. Last thing I remember about lldb is that they recently broke API compatibility. Don't know about the status of gdb API, though.

We haven't officialized this yet, but the idea is to try and guarantee support for the two latest Ubuntu LTS releases, but time has been a scarse resource for us lately.

Edit: just saw that you already mentioned GDB version.

@brunoalr brunoalr pinned this issue Jun 24, 2021
@brunoalr
Copy link
Member

@mightbxg one more thing: can you try building OID with qmake instead? CMake is more or less still experimental (I should have written there somewhere), so I created #31 to deal with any remaining problems related to CMake.

@brunoalr
Copy link
Member

I also created #27 to better deal with the dependency versions that are currently supported.

@brunoalr brunoalr added the bug Something isn't working label Jun 27, 2021
@mightbxg
Copy link
Author

@brunoalr Thanks for your reply.

I have tried building OID with qmake, and the result is just the same (both gdb and lldb). Tested on the latest source code (commit id: 0041453).

As Manjaro is rolling-updating, the environment on my computer is now:

GCC: 11.1.0
GDB: 10.2
LLDB: 12.0.0
Qt(qmake): 5.15.2
IDE: Qt Creator 4.15.0
Python: 3.9.5

@brunoalr brunoalr self-assigned this Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants