This is the mail archive of the
mailing list for the GDB project.
Re: RE: question of watchpoint
- From: "jjren at hxgpt dot com" <jjren at hxgpt dot com>
- To: Metzger, Markus T <markus dot t dot metzger at intel dot com>, gdb <gdb at sourceware dot org>
- Date: Mon, 4 Mar 2019 10:30:44 +0800
- Subject: Re: RE: question of watchpoint
- References: <firstname.lastname@example.org>, <A78C989F6D9628469189715575E55B236B3E2880@IRSMSX104.ger.corp.intel.com>
I'm glad to receive your reply. I got your point. You mean it depends on the architecture implementation.
But If the architecture is evaluated on the physical address, how should be gdb do?
From: Metzger, Markus T
Date: 2019-03-02 01:32
To: email@example.com; gdb
Subject: RE: question of watchpoint
The question is what the underlying hardware does. On IA, the watchpoint is evaluated on the linear (virtual) address, so you wouldn't get an exception when modifying the memory via the other mapping.
> -----Original Message-----
> From: firstname.lastname@example.org <email@example.com> On Behalf Of
> Sent: 22 February 2019 03:06
> To: gdb <firstname.lastname@example.org>
> Subject: question of watchpoint
> Hi, guys:
> I have a question about watch-point.
> If the program mapped a physical address(PA) to two（or more than one）
> virtual address (VA and VB), if I set a watchpiont at Va, after this, I modify VB,
> what does gdb do?
> Trigger a watchpoint or do nothing? If triggered a watchpoint how to report it?
> If anyone knows, pls help me with it.
> Thinks a lot.
> Ron Ren
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, , Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928