[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 5/6] linux-user: fix the breakpoint inheritance in
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PULL v2 5/6] linux-user: fix the breakpoint inheritance in spawned threads |
Date: |
Tue, 16 Jun 2015 10:06:31 +0300 |
From: Thierry Bultel <address@hidden>
When a thread is spawned, cpu_copy re-initializes
the bp & wp lists of current thread, instead of the ones
of the new thread.
The effect is that breakpoints are no longer hit.
Signed-off-by: Thierry Bultel <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/linux-user/main.c b/linux-user/main.c
index a0d3e58..c855bcc 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -3459,8 +3459,8 @@ CPUArchState *cpu_copy(CPUArchState *env)
/* Clone all break/watchpoints.
Note: Once we support ptrace with hw-debug register access, make sure
BP_CPU break/watchpoints are handled correctly on clone. */
- QTAILQ_INIT(&cpu->breakpoints);
- QTAILQ_INIT(&cpu->watchpoints);
+ QTAILQ_INIT(&new_cpu->breakpoints);
+ QTAILQ_INIT(&new_cpu->watchpoints);
QTAILQ_FOREACH(bp, &cpu->breakpoints, entry) {
cpu_breakpoint_insert(new_cpu, bp->pc, bp->flags, NULL);
}
--
2.1.4
- [Qemu-devel] [PULL v2 0/6] linux-user patches for 2.4 softfreeze, riku . voipio, 2015/06/16
- [Qemu-devel] [PULL v2 1/6] linux-user: Allocate thunk size dynamically, riku . voipio, 2015/06/16
- [Qemu-devel] [PULL v2 2/6] linux-user: Use abi_ulong for TARGET_ELF_PAGESTART, riku . voipio, 2015/06/16
- [Qemu-devel] [PULL v2 3/6] linux-user: Fix length handling in host_to_target_cmsg, riku . voipio, 2015/06/16
- [Qemu-devel] [PULL v2 4/6] linux-user: use __get_user and __put_user in cmsg conversions, riku . voipio, 2015/06/16
- [Qemu-devel] [PULL v2 5/6] linux-user: fix the breakpoint inheritance in spawned threads,
riku . voipio <=
- [Qemu-devel] [PULL v2 6/6] linux-user: ioctl() command type is int, riku . voipio, 2015/06/16
- Re: [Qemu-devel] [PULL v2 0/6] linux-user patches for 2.4 softfreeze, Peter Maydell, 2015/06/16