Comments (7)
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.
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.
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.
It's not likely to work as well when you start trying to actually debug something though
from ish.
Correct. Bad system call
. dmesg
crashed iSH once after that, but I cannot replicate it again.
from ish.
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.
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)
- Terminal Icon
- coreutils on Alpine 3.20 breaks /dev
- Can't pip install curl_cffi - Getting Unsupported arch error
- iSH runs in compatibility mode on M4 iPad Pro HOT 1
- G HOT 1
- Why i cant install anything please i'm still beginner 🥲😶🌫️ HOT 10
- Vnc setup: couldn’t create cookie
- alt+deleted should delete word
- No such package HOT 2
- $ docker pull positronsecurity/ssh-audit
- Outdated APK version on App Store
- App icon not working on desktop (iOS)
- Python library pyttsx3 HOT 1
- slideshow-bgm HOT 1
- About official apk repo php81 segmentation fault
- Terminal Paster Buffer size limit ? HOT 2
- Rawr HOT 1
- Petry is not install
- x
- Process Killing issue & Delete key
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ish.