Closed mark2185 closed 3 years ago
Hi,
LLDB is a different debugger. Do you have the requirements: Python3
, GDB with Python3
and Tmux
?
What errors are you getting? You can access GDB shell after running GDBFrontend, with this command: tmux a -t gdb-frontend
. Do you see any error in there?
Well, I tried:
gdb
binary in the code with the path to lldb
python
to python3
gotty
with an appropriate one, installed by brew
psutils
Since that didn't get me anywhere, I tried installing gdb
, but then it stops about a second after starting, I added a sleep
after the message Open this address...
, attached to the tmux
and it looks like ordinary gdb
~so I don't know what might be the issue~, it turns out it cannot import gdb-frontend
since config
doesn't initialize as expected, it says PLUGINS_DIR
doesn't exist when importing.
Looks like adding config.init()
after the import config
in gdbfrontend.py
helps. But now it says it cannot import module gdb
on line 33
since it doesn't exist.
Back to the lldb
experiment, for example line 284
fails since lldb
doesn't support the -ex
flag. Then I tried starting the program with -p 0
so it skips that line ( by using a random port ), but on line 331
it requires the same logic, and that's necessary for the gdbfrontend
to load and run, and lldb
doesn't support it. All I can manage to do is see my terminal in the browser.
So I thought you might have a better idea how to solve that. Installing gdb
feels like fighting the OS since I'd have to generate and sign certificates and whatnot, it would be easier to make it work with lldb
.
If you don't have a mac available, I'll try diving into the code and see what can be changed.
I thought your GDB has no Python3. I found this: https://stackoverflow.com/questions/48962558/installing-gdb-with-python-3-on-mac-with-homebrew
LLDB is a different debugger. I have not used that before and dont know about is it a GDB fork or GDB-compatible debugger. So you can check your GDB for is it including embbedded-Python3.
What about this issue?
We can close it. I'd rather not install gdb
on mac, but I will try this debugger out on linux!
Thanks for your efforts!
Any chance we might get a
mac + lldb
version?I tried modifying it and solving the issues, but ultimately stopped because
lldb
doesn't support the-ex
flag and I thought you might have a better idea on how to circumvent that.