This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Watch point for unaligned stores
- From: Daniel Jacobowitz <drow at false dot org>
- To: Shaun Jackman <sjackman at gmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Sun, 24 Apr 2005 18:36:40 -0400
- Subject: Re: Watch point for unaligned stores
- References: <7f45d939050423132561dbe16c@mail.gmail.com>
On Sat, Apr 23, 2005 at 01:25:24PM -0700, Shaun Jackman wrote:
> I had a bug where the word at 0x8 was being clobbered by some bug in
> my program. I set at a watchpoint (watch *(int*)8) but it was never
> triggered even though the memory was modified. I found in the end that
> the errant instruction was writing a word at address 0x9, which on the
> ARM architecture modifies the word at 0x8 due to alignment. Could I
> set a watchpoint that would have caught this bug, other than say
> setting a watchpoint at all four addresses of the word?
This sounds like a bug in your remote debugging stub.
--
Daniel Jacobowitz
CodeSourcery, LLC