- 16 Jun, 2009 5 commits
-
-
Mika Westerberg authored
- to not to break strace with GUEST_BASE is set: - Strace now can load and print guest strings correctly. - Added printing support for commonly used flags in some syscalls (e.g open, creat, mmap etc.) v2: - fix strace.c build on etch - add futex print to strace Signed-off-by:
Mika Westerberg <mika.westerberg@iki.fi> Signed-off-by:
Riku Voipio <riku.voipio@iki.fi>
-
Mika Westerberg authored
Signed-off-by:
Mika Westerberg <mika.westerberg@iki.fi> Signed-off-by:
Riku Voipio <riku.voipio@iki.fi>
-
Mika Westerberg authored
When target process is killed with signal (such signal that should dump core) a coredump file is created. This file is similar than coredump generated by Linux (there are few exceptions though). Riku Voipio: added support for rlimit Signed-off-by:
Mika Westerberg <mika.westerberg@iki.fi> Signed-off-by:
Riku Voipio <riku.voipio@iki.fi>
-
Riku Voipio authored
No regressions were observed on either 64bit or 32bit IA hosts. Patch based on original patches by: Kirill A. Shutemov <kirill@shutemov.name> - Implement shm* syscalls - Fix and cleanup IPCOP_shm* ipc calls handling Depends on "export mmap_find_vma for shmat" patch. Various whitespace uglifications applied to minimize patch size. Signed-off-by:
Riku Voipio <riku.voipio@iki.fi>
-
Riku Voipio authored
Signed-off-by:
Riku Voipio <riku.voipio@iki.fi>
-
- 04 Jun, 2009 1 commit
-
-
Nathan Froyd authored
When debugging multi-threaded programs, QEMU's gdb stub would report the correct number of threads (the qfThreadInfo and qsThreadInfo packets). However, the stub was unable to actually switch between threads (the T packet), since it would report every thread except the first as being dead. Furthermore, the stub relied upon cpu_index as a reliable means of assigning IDs to the threads. This was a bad idea; if you have this sequence of events: initial thread created new thread #1 new thread #2 thread #1 exits new thread #3 thread #3 will have the same cpu_index as thread #1, which would confuse GDB. (This problem is partly due to the remote protocol not having a good way to send thread creation/destruction events.) We fix this by using the host thread ID for the identifier passed to GDB when debugging a multi-threaded userspace program. The thread ID might wrap, but the same sort of problems with wrapping thread IDs would come up with debugging programs natively, so this doesn't represent a problem. Signed-off-by:
Nathan Froyd <froydnj@codesourcery.com>
-
- 26 May, 2009 2 commits
-
-
Edgar E. Iglesias authored
Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Edgar E. Iglesias authored
Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
- 19 May, 2009 2 commits
-
-
Paul Brook authored
Signed-off-by:
Paul Brook <paul@codesourcery.com>
-
Paul Brook authored
Signed-off-by:
Paul Brook <paul@codesourcery.com>
-
- 15 May, 2009 2 commits
-
-
Nathan Froyd authored
Signed-off-by:
Nathan Froyd <froydnj@codesourcery.com> Signed-off-by:
malc <av1474@comtv.ru>
-
Nathan Froyd authored
Implement setup_{,rt_}frame and do_{,rt_}sigreturn for PPC 32-bit. Use the same TARGET_QEMU_ESIGRETURN hack as for MIPS to avoid clobbering register state on a sigreturn. Signed-off-by:
Nathan Froyd <froydnj@codesourcery.com> Signed-off-by:
malc <av1474@comtv.ru>
-
- 13 May, 2009 1 commit
-
-
Blue Swirl authored
Signed-off-by:
Blue Swirl <blauwirbel@gmail.com>
-
- 04 May, 2009 1 commit
-
-
Paul Brook authored
Signed-off-by:
Paul Brook <paul@codesourcery.com>
-
- 20 Apr, 2009 3 commits
-
-
pbrook authored
Also fixes a register corruption bug in do_sigreturn. When "returning" from sigreturn we are actually restoring the virtual cpu state from the signal frame. This is actually surprisingly hard to observe in practice. Typically an thread be blocked in a FUTEX_WAIT call when the signal arrives, so the effect is a spurious syscall success and the introduction of a subtle race condition. On x86/arm a syscall modifies a single word sized register, so do_sigreturn can just return that value. On MIPS a syscall clobbers multiple registers, so we need additional smarts. My solution is to invent a magic errno value that means "don't touch CPU state". git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7194 c046a42c-6fe2-441c-8c8c-71466251a162
-
pbrook authored
Signed-off-by:
Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7193 c046a42c-6fe2-441c-8c8c-71466251a162
-
pbrook authored
Signed-off-by:
Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7192 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 19 Apr, 2009 1 commit
-
-
aurel32 authored
In Linux kernel, fchmodat() and faccessat() take tree args. 4th value <int flags> is only processed by libc. Signed-off-by:
Takashi YOSHII <takasi-y@ops.dti.ne.jp> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7187 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 18 Apr, 2009 1 commit
-
-
aurel32 authored
Fix and cleanup IPCOP_sem* ipc calls handling and implement sem* syscalls. Riku: 1) Uglify whitespace so that diff gets smaller and easier to review 2) use __get_user in target_to_host_sembuf Signed-off-by:
Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7184 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 17 Apr, 2009 1 commit
-
-
aurel32 authored
Configure test was broken, so the breakage of the #ifdef'd code was not noticed. Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7134 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 16 Apr, 2009 2 commits
-
-
pbrook authored
Signed-off-by:
Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7131 c046a42c-6fe2-441c-8c8c-71466251a162
-
aurel32 authored
The patch called "prefer glibc over direct syscalls" (commit 7118) has replaced the getcwd syscall with a call to the glibc. With this change, the syscall is returning -1 in error case and 0 otherwise. This is problematic as the sys_getcwd syscall should return the number of bytes written to the buffer including the '\0'. Signed-off-by:
Arnaud Patard <arnaud.patard@rtp-net.org> Acked-By:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7130 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 15 Apr, 2009 7 commits
-
-
aurel32 authored
Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7120 c046a42c-6fe2-441c-8c8c-71466251a162
-
aurel32 authored
The proper exit code for dieing from an uncaught signal is -<signal>. The kernel doesn't allow exit() or _exit() to pass a negative value. To get the proper exit code we need to actually die from an uncaught signal. A default signal handler is installed, we send ourself a signal and we wait for it to arrive. Patch originates from Scratchbox Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7119 c046a42c-6fe2-441c-8c8c-71466251a162
-
aurel32 authored
The openat/*at syscalls are incredibly common with modern coreutils, calling them directly via syscalls breaks for example fakeroot. Use glibc stubs whenever directly available and provide old syscall calling for people still using older libc. Patch originally from Mika Westerberg, Adapted to apply to current trunk and cleaned up by Riku Voipio. Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7118 c046a42c-6fe2-441c-8c8c-71466251a162
-
aurel32 authored
- This check is not needed because kernel will check whether given buffer is too small and there is no upper limit for size of the buffer. From: Mika Westerberg <mika.westerberg@iki.fi> Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7117 c046a42c-6fe2-441c-8c8c-71466251a162
-
aurel32 authored
dbus sends too short (according to man 7 unix) addrlen for it's unix socket. I've been told that happens with other applications as well. Linux kernel doesn't appear to mind, so I guess we whould be tolerant as well. Expand sockaddr with +1 to fit the \0 of the pathname passed. (scratchbox1 qemu had a very different workaround for the same issue). Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7116 c046a42c-6fe2-441c-8c8c-71466251a162
-
aurel32 authored
Added switch -0 (zero) which can be used to pass argv[0] to target process. The main use is for a binfmt_misc wrapper when the "P - preserve-argv[0]" setting is used. From: Mika Westerberg Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7115 c046a42c-6fe2-441c-8c8c-71466251a162
-
aurel32 authored
Signed-off-by:
Lionel Landwerlin <lionel.landwerlin@openwide.fr> Signed-off-by:
Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7114 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 09 Apr, 2009 1 commit
-
-
pbrook authored
Signed-off-by:
Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7051 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 08 Apr, 2009 2 commits
-
-
aurel32 authored
There are two different syscall names for the same goal. On systems with sizeof(long) == 64 it calls newfstatat. On systems with sizeof(long) == 32 it calls fstatat64. Signed-off-by:
Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7050 c046a42c-6fe2-441c-8c8c-71466251a162
-
aurel32 authored
The sys_inotify* calls are defined if the target supports them and the host supports the necessary syscalls. But the syscalls are handled if the target supports them. This situation leads to compilation failures when the host doesn't support the necessary syscalls, as the linker will complain about undefined functions. Fix this state of affairs by making the handling conditions the same as the call definition conditions. Signed-off-by:
Nathan Froyd <froydnj@codesourcery.com> Acked-By:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7038 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 07 Apr, 2009 1 commit
-
-
pbrook authored
Allows distributors to identify their builds without needing to hack the sources. Signed-off-by:
Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7036 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 05 Apr, 2009 1 commit
-
-
aurel32 authored
This replaces a compile time option for some targets and adds this feature to targets which did not have a compile time option. Add monitor command to enable or disable single step mode. Modify monitor command "info status" to display single step mode. Signed-off-by:
Stefan Weil <weil@mail.berlios.de> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7004 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 07 Mar, 2009 2 commits
-
-
aurel32 authored
Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6762 c046a42c-6fe2-441c-8c8c-71466251a162
-
pbrook authored
and process termination in legacy applications. Try to guess which we want based on the presence of multiple threads. Also implement locking when modifying the CPU list. Signed-off-by:
Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6735 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 28 Feb, 2009 1 commit
-
-
blueswir1 authored
Fixes qemu-arm|grep cpu - with _exit() getting output from qemu --help is a bit random. Since no atexit() handlers are registered for user mode emulation, just use exit() instead. Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6657 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 09 Feb, 2009 1 commit
-
-
aurel32 authored
Signed-off-by:
Stefan Weil <weil@mail.berlios.de> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6580 c046a42c-6fe2-441c-8c8c-71466251a162
-
- 03 Feb, 2009 2 commits
-
-
edgar_igl authored
Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6510 c046a42c-6fe2-441c-8c8c-71466251a162
-
aurel32 authored
Reported-By:
Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by:
Riku Voipio <riku.voipio@iki.fi> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6503 c046a42c-6fe2-441c-8c8c-71466251a162
-