Closed XNinety9 closed 2 years ago
Looks like we need a gotty executable for macOS π I'm currently working on a new feature, I'm going to stash it and look this issue. π
I've added MacOS executable for Gotty.
Can you try macos-compatibility
branch?: https://github.com/rohanrhu/gdb-frontend/tree/macos-compatibility
I will do stuffs about MacOS compatibility on macos-compatibility
branch if it needs.
That was quick, thank you!
I launched gdbfrontend from the cloned repo (I was using brew), and I get this new error:
./gdbfrontend: line 10: realpath: command not found
python3: can't open file '/run.py': [Errno 2] No such file or directory
Ah looks like realpath
is not available on Mac shell.. I'm looking.
Were you running with python3 run.py
? So is it working on Mac now?
Hi, I've added a custom realpath
for Mac shell. Can you try the latest revision? https://github.com/rohanrhu/gdb-frontend/commit/04c4f1a8e352ef59f23e7b3fb247fca5cd74abf4
New error:
GDBFrontend v0.6.2-git
Traceback (most recent call last):
File "/Users/x99/Desktop/gdb-frontend/./run.py", line 350, in <module>
gotty = subprocess.Popen(
File "/Users/x99/miniconda3/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/x99/miniconda3/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './bin/gotty_macos'
Ran chmod +x bin/gotty_macos
, got this one afterwards:
GDBFrontend v0.6.2-git
Traceback (most recent call last):
File "/Users/x99/Desktop/gdb-frontend/./run.py", line 350, in <module>
gotty = subprocess.Popen(
File "/Users/x99/miniconda3/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/x99/miniconda3/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 86] Bad CPU type in executable: './bin/gotty_macos'
Replaced bin/gotty_macos
with the one I had installed from here using brew install yudai/gotty/gotty
, got this:
GDBFrontend v0.6.2-git
Listening on 127.0.0.1: http://127.0.0.1:5551/
Open this address in web browser: http://127.0.0.1:5551/terminal/
Sending SIGKILL to PGID: 1582.
Stopped GDBFrontend.
Are you sure for the port is available? π
Also can you send outputs of these commands:
ps -e | grep gdb
tmux ls
tmux a -t gdb-frontend
If you don't see anything, add while True: pass
to end of the file: https://github.com/rohanrhu/gdb-frontend/blob/7b9d2c2cab01489d2f86c93b6e9021fe87bd897e/gdbfrontend.py#L69-L71
Like this:
and later, try again ./gdbfrontend
by ensuring the port is available and look to tmux a -t gdb-frontend
output.
If we can't catch it with this way, I will do something for you to get some errors from tmux session.
Hi, any progress? I'm not able to test it on macOS since i don't have a mac.
Hi! No progress yet, no time to test right now. But I will soon π
Hi! No progress yet, no time to test right now. But I will soon π
Ok. Have a nice day π
This issue must be fixed. Also there was this issue: https://github.com/rohanrhu/gdb-frontend/issues/37 it is fixed too.
Hi!
I tried giving gdbfrontend a test drive on my macOS laptop this morning, and was only treated with an error message:
macOS Version: Big Sur 11.5.2 pip 21.2.4 python 3.8.5
Any help is greatly appreciated π