gdbstub breakpoints not working across virtual address spaces
I have breakpoints failing in the case where a breakpoint is set on a virtual address in another virtual address space. The virtual address is mapped to nothing in the current virtual address space.
I would like breakpoints to arbitrarily apply across all virtual address spaces.
My initial investigations suggest that a call to breakpoint_invalidate after cr3 has been set to the new virtual address space, somewhere in the softmmu, would be the place to start.
Any suggestions to point me on the right path?
Thanks,
Bradley
Quoted 6 lines · Bradley Schatz
I have breakpoints failing in the case where a breakpoint is set on a virtual address in another virtual address space. The virtual address is mapped to nothing in the current virtual address space.
I would like breakpoints to arbitrarily apply across all virtual address spaces.
I think they already do. Specific example, please.
Signature · 2 lines
Daniel Jacobowitz CodeSourcery
I am running a windows2k guest, which in turn is running coLinux. I wish to set a breakpoint in the linux instance.
A windows driver loads, and builds the page tables of two independent virtual address spaces, and backs them with page frames allocated using the windows driver API. The two addreess spaces are a trampoline address space, and then the coLinux address space. The driver then switches to the linux virtual address space via the trampoline space.
I am currently setting a breakpoint on an address in the linux address space before the driver is even loaded. On running, the breakpoint is ignored, but colinux runs.
Thanks,
Bradley
Quoted 16 lines · Daniel Jacobowitz
Quoted 6 lines · Bradley Schatz
I have breakpoints failing in the case where a breakpoint is set on a virtual address in another virtual address space. The virtual address is mapped to nothing in the current virtual address space.
I would like breakpoints to arbitrarily apply across all virtual address spaces.
I think they already do. Specific example, please.
--
Daniel Jacobowitz
CodeSourcery
Trying things a different way, I find that issuing a:
breakpoint *0xc...
will break properly.
Quoted 37 lines · Bradley Schatz
I am running a windows2k guest, which in turn is running coLinux. I wish to set a breakpoint in the linux instance.
A windows driver loads, and builds the page tables of two independent virtual address spaces, and backs them with page frames allocated using the windows driver API. The two addreess spaces are a trampoline address space, and then the coLinux address space. The driver then switches to the linux virtual address space via the trampoline space.
I am currently setting a breakpoint on an address in the linux address space before the driver is even loaded. On running, the breakpoint is ignored, but colinux runs.
Thanks,
Bradley
Quoted 16 lines · Daniel Jacobowitz
Quoted 6 lines · Bradley Schatz
I have breakpoints failing in the case where a breakpoint is set on a virtual address in another virtual address space. The virtual address is mapped to nothing in the current virtual address space.
I would like breakpoints to arbitrarily apply across all virtual address spaces.
I think they already do. Specific example, please.
--
Daniel Jacobowitz
CodeSourcery