diff --git a/notes/README.thread-groups b/notes/README.thread-groups new file mode 100644 index 0000000..6fef6af --- /dev/null +++ b/notes/README.thread-groups @@ -0,0 +1,51 @@ + +-list-thread-groups + + ^done,groups=[ + { + id=\"i1\", + type=\"process\", + pid=\"19521\", + executable=\"/home/erniep/Development/Peak/src/Apps/Explorer/explorer\", + cores=[\"6\"] + } + ] + +-list-thread-groups --recurse 1 + + ^done,groups=[ + { + id=\"i1\", + type=\"process\", + pid=\"19521\", + executable=\"/home/erniep/Development/Peak/src/Apps/Explorer/explorer\", + cores=[\"6\"], + threads=[ + { + id=\"1\", + target-id=\"Thread 0x7ffff7f97940 (LWP 19521)\", + name=\"explorer\", + frame={level=\"0\", + addr=\"0x0000000000403a40\", + func=\"main\", + args=[ + { + name=\"argc\", + value=\"2\" + }, + { + name=\"argv\", + value=\"0x7fffffffd528\" + } + ], + file=\"explorer.cpp\", + fullname=\"/home/erniep/Development/Peak/src/Apps/Explorer/explorer.cpp\", + line=\"78\", + arch=\"i386:x86-64\"}, + state=\"stopped\", + core=\"6\" + } + ] + } + ] + diff --git a/tests/.gitignore b/tests/.gitignore index 80069dc..81d271a 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -3,3 +3,4 @@ ui_*.h .objs .deps *.ini +*.brk diff --git a/tests/helloasm/.gitignore b/tests/helloasm/.gitignore new file mode 100644 index 0000000..ef57d41 --- /dev/null +++ b/tests/helloasm/.gitignore @@ -0,0 +1 @@ +helloasm diff --git a/tests/helloasm/helloasm.asm b/tests/helloasm/helloasm.asm new file mode 100644 index 0000000..dfe0199 --- /dev/null +++ b/tests/helloasm/helloasm.asm @@ -0,0 +1,28 @@ + +section .text ;section declaration + + ;we must export the entry point to the ELF linker or + global _start ;loader. They conventionally recognize _start as their + ;entry point. Use ld -e foo to override the default. + +_start: + + ;write our string to stdout + + mov edx,len ;third argument: message length + mov ecx,msg ;second argument: pointer to message to write + mov ebx,1 ;first argument: file handle (stdout) + mov eax,4 ;system call number (sys_write) + int 0x80 ;call kernel + + ;and exit + + mov ebx,0 ;first syscall argument: exit code + mov eax,1 ;system call number (sys_exit) + int 0x80 ;call kernel + +section .data ;section declaration + +msg db "Hello, world!",0xa ;our dear string +len equ $ - msg ;length of our dear string + diff --git a/tests/hellofork/.gitignore b/tests/hellofork/.gitignore new file mode 100644 index 0000000..d8ddf12 --- /dev/null +++ b/tests/hellofork/.gitignore @@ -0,0 +1 @@ +hellofork