Giter Site home page Giter Site logo

macOS support? about gdb-frontend HOT 12 CLOSED

rohanrhu avatar rohanrhu commented on May 8, 2024 1
macOS support?

from gdb-frontend.

Comments (12)

XNinety9 avatar XNinety9 commented on May 8, 2024 2

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.

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024 1

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. 👀

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024 1

I will do stuffs about MacOS compatibility on macos-compatibility branch if it needs.

from gdb-frontend.

XNinety9 avatar XNinety9 commented on May 8, 2024 1

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

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

I've added MacOS executable for Gotty.

Can you try macos-compatibility branch?: https://github.com/rohanrhu/gdb-frontend/tree/macos-compatibility

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

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?

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Hi, I've added a custom realpath for Mac shell. Can you try the latest revision? 04c4f1a

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

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:

http_port = ctypes.c_uint16.from_buffer(mmapBuff, 0)
http_port.value = api.globalvars.httpServer.server_port

Like this:
image

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.

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Hi, any progress? I'm not able to test it on macOS since i don't have a mac.

from gdb-frontend.

XNinety9 avatar XNinety9 commented on May 8, 2024

Hi! No progress yet, no time to test right now. But I will soon 😉

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Hi! No progress yet, no time to test right now. But I will soon 😉

Ok. Have a nice day 🙂

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

This issue must be fixed. Also there was this issue: #37 it is fixed too.

from gdb-frontend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.