Skip to content

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

License

Notifications You must be signed in to change notification settings

skysider/multiarch-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published