[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: Problem with watchpoint in gdbstub
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] Re: Problem with watchpoint in gdbstub |
Date: |
Tue, 27 Apr 2010 10:10:56 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
Jun Koi wrote:
> Hi,
>
> I am trying to debug a VM using gdb. I connected gdb to Qemu (latest
> code from git repo), and issued below command:
>
> ...
> (gdb) watch *0x77f44cd8
> (gdb) c
>
> The idea is to catch the write access to address 0x77f44cd8.
>
> But after the "c" command, I saw that the window title of my VM
> continuously flip between "QEMU [Stopped]" and "QEMU", non-stop.
> This makes the VM unusable.
>
> Is it a bug? Anybody sees the same problem?
I would bet your watchpoint was established by gdb as a software
watchpoint. In that case gdb will step through the target, checking
after each instruction if the memory changed.
Is that address valid at the time gdb wants to install it? I saw gdb
choosing a software watchpoint before when it wasn't.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux