This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] target.c: eliminate one use of DEPRECATED_REGISTER_SIZE
- From: Andrew Cagney <cagney at gnu dot org>
- To: Kevin Buettner <kevinb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 11 Jan 2004 14:15:08 -0500
- Subject: Re: [RFA] target.c: eliminate one use of DEPRECATED_REGISTER_SIZE
- References: <1040109032011.ZM30010@localhost.localdomain>
default_region_size_ok_for_hw_watchpoint (int byte_count)
{
- return (byte_count <= DEPRECATED_REGISTER_SIZE);
+ return (byte_count <= (TARGET_PTR_BIT / TARGET_CHAR_BIT));
}
Ok, but with `TYPE_LENGTH (builtin_type_void_{code/data}_ptr)'. Here I
believe that the data pointer would be more correct.
Andrew