mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-24 19:42:32 +00:00
* target.c (default_region_size_ok_for_hw_watchpoint): Compare
the region size against the size of a pointer, not the size of a register as given by DEPRECATED_REGISTER_SIZE.
This commit is contained in:
parent
55fb071392
commit
437b434f9a
@ -1,3 +1,9 @@
|
||||
2004-01-19 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* target.c (default_region_size_ok_for_hw_watchpoint): Compare
|
||||
the region size against the size of a pointer, not the size of
|
||||
a register as given by DEPRECATED_REGISTER_SIZE.
|
||||
|
||||
2004-01-19 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* tui/tui-regs.h: Include "tui-data.h".
|
||||
|
@ -1360,7 +1360,7 @@ find_default_create_inferior (char *exec_file, char *allargs, char **env)
|
||||
static int
|
||||
default_region_size_ok_for_hw_watchpoint (int byte_count)
|
||||
{
|
||||
return (byte_count <= DEPRECATED_REGISTER_SIZE);
|
||||
return (byte_count <= TYPE_LENGTH (builtin_type_void_data_ptr));
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user