Code Monkey home page Code Monkey logo

Comments (7)

tbodt avatar tbodt commented on August 17, 2024 3

I've never tried to run gdb so I'm not surprised this happens. In any case, gdb relies on ptrace which is totally unimplemented.

from ish.

Mnpn avatar Mnpn commented on August 17, 2024
Device:~# apk add gdb
OK: 92 MiB in 45 packages
Device:~# gdb
Segmentation fault
Device:~# dmesg
FIXME socketcall 16
13 page fault on 0x50 at 0x567336fd

from ish.

Mnpn avatar Mnpn commented on August 17, 2024

This seems to work now. It runs and seems to work fine on TestFlight build 45, but I haven't tried it any more than that.

from ish.

tbodt avatar tbodt commented on August 17, 2024

It's not likely to work as well when you start trying to actually debug something though

from ish.

Mnpn avatar Mnpn commented on August 17, 2024

Correct. Bad system call. dmesg crashed iSH once after that, but I cannot replicate it again.

from ish.

ntindle avatar ntindle commented on August 17, 2024

34 missing syscall 136 When debugging hello world.

#include <stdio.h>
int main()
{
   printf("Hello, World!");
   return 0;
}

If saved as prog1.c

gcc  -Wall -Werror -ansi -pedantic-error
s -g prog1.c -o prog1.x
gdb prog1.x
Reading symbols from prog1.x...
(gdb) run

from ish.

saagarjha avatar saagarjha commented on August 17, 2024

Should be fixed by #736, so closing this for now. Much of ptrace is still unimplemented, but you should be able to debug simple single-threaded programs now.

If you find something specific that's broken (hangs, strange errors) while debugging, feel free to make an issue for that.

from ish.

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.