* [Qemu-devel] gdbstub breakpoints not working across virtual address spaces
@ 2007-09-19 12:28 Bradley Schatz
2007-09-19 13:18 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Bradley Schatz @ 2007-09-19 12:28 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] gdbstub breakpoints not working across virtual address spaces
2007-09-19 12:28 [Qemu-devel] gdbstub breakpoints not working across virtual address spaces Bradley Schatz
@ 2007-09-19 13:18 ` Daniel Jacobowitz
2007-09-19 21:57 ` Bradley Schatz
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-09-19 13:18 UTC (permalink / raw)
To: qemu-devel
On Wed, Sep 19, 2007 at 10:28:00PM +1000, Bradley Schatz wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] gdbstub breakpoints not working across virtual address spaces
2007-09-19 13:18 ` Daniel Jacobowitz
@ 2007-09-19 21:57 ` Bradley Schatz
2007-09-20 23:50 ` Bradley Schatz
0 siblings, 1 reply; 4+ messages in thread
From: Bradley Schatz @ 2007-09-19 21:57 UTC (permalink / raw)
To: qemu-devel
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
On 9/19/07, Daniel Jacobowitz <drow@false.org> wrote:
> On Wed, Sep 19, 2007 at 10:28:00PM +1000, Bradley Schatz wrote:
> > 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
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] gdbstub breakpoints not working across virtual address spaces
2007-09-19 21:57 ` Bradley Schatz
@ 2007-09-20 23:50 ` Bradley Schatz
0 siblings, 0 replies; 4+ messages in thread
From: Bradley Schatz @ 2007-09-20 23:50 UTC (permalink / raw)
To: qemu-devel
Trying things a different way, I find that issuing a:
breakpoint *0xc...
will break properly.
On 9/20/07, Bradley Schatz <blschatz@gmail.com> wrote:
> 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
>
>
>
> On 9/19/07, Daniel Jacobowitz <drow@false.org> wrote:
> > On Wed, Sep 19, 2007 at 10:28:00PM +1000, Bradley Schatz wrote:
> > > 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
> >
> >
> >
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-09-20 23:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-19 12:28 [Qemu-devel] gdbstub breakpoints not working across virtual address spaces Bradley Schatz
2007-09-19 13:18 ` Daniel Jacobowitz
2007-09-19 21:57 ` Bradley Schatz
2007-09-20 23:50 ` Bradley Schatz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).