Re: No set_gdbarch_* functions for hardware watchpoints

Andrew Cagney
2004-03-04T15:53:22Z

> Hello,
>
> I'm implementing hardware watchpoints for m32r target and
> I found that there was no set_gdbarch_* functions for hardware
> watchpoints.
>
> I can use macros instead of set_gdbarch_* functions like other
> targets, but it means m32r target becomes MULTI_ARCH_PARTIAL.
> I don't think it's a good implementation.
>
> Would anyone add set_gdbarch_* functions for hardware watchpoints?

Check the target vector [target.h] many of of the watchpoint operations
are implemented there - this is because watchpoints often have target
dependant semantics.

In terms of adding target/architecture methods. Its probably useful to
go over old discussions. The bug database (of all places) has entries,
for instance:
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=967
which leads to the thread:
http://sources.redhat.com/ml/gdb-patches/2002-09/msg00739.html
(there are a number of threads from that time period).

Andrew