Abort on thread layer errors
PATCH 1/1 Abort on thread layer errors
Makes it easier to catch the bug in gdb as there is no need to set an explicit breakpoint.
Signed-off-by Jan Kiszka <[email protected]>
--- qemu-thread-posix.c | 2 +- qemu-thread-win32.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
qemu-thread-posix.c +1 -1
@@ -22,7 +22,7 @@static void error_exit (int err,const char *msg) {fprintf (stderr,"qemu: %s: %s\n" , msg,strerror (err)); -exit (1 ); +abort (); }void qemu_mutex_init (QemuMutex *mutex)
qemu-thread-win32.c +1 -1
@@ -24,7 +24,7 @@ static void error_exit(int err, const char *msg) NULL, err, 0, (LPTSTR)&pstr, 2, NULL);fprintf (stderr,"qemu: %s: %s\n" , msg, pstr);LocalFree (pstr); -exit (1 ); +abort (); }void qemu_mutex_init (QemuMutex *mutex)
Signature · 1 line
1.7.3.4
Stefan Hajnoczi
AppliedQuoted 8 lines · Jan Kiszka
Makes it easier to catch the bug in gdb as there is no need to set an explicit breakpoint.
Signed-off-by Jan Kiszka <[email protected]>--- qemu-thread-posix.c | 2 +- qemu-thread-win32.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches
Stefan