Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 790 Bytes

README.md

File metadata and controls

50 lines (40 loc) · 790 Bytes

Multiarchdocker

A docker environment which could run and debug multiarch program, such as mips, arm

Usage

run docker:

docker run -it \
	--rm \
	--name multiarch \
	--cap-add=SYS_PTRACE \
	skysider/multiarch-docker

debug mips program in docker:

socat TCP-LISTEN:2333,reuseaddr,fork EXEC:"qemu-mips -g 1234 ./demo"
qemu-mips -strace ./demo
gdb-multiarch ./demo
(gdb)set arch mips
(gdb)set endian big
(gdb)target remote localhost:1234

If you need cross compile environment, please specify tag: skysider/multiarch-docker:compile

cat > test.c <<EOF
#include <stdio.h>
int main()
{
	puts("hello world");
    return 0;
}
EOF
mips-linux-gnu-gcc test.c -o test-mips

Supported arch

mipsel
mips64el
mips
mips64
armel(armhf)
aarch64