Use CORE_ADDR as return type from x86_dr_low_get_addr

On a Windows build locally, watchpoints started failing.  I tracked
this down to x86_dr_low_get_addr returning an 'unsigned long'... in
this particular build, this is a 32-bit type, but the inferior is a
64-bit program.

This patch fixes the problem by changing the return type.  No other
change is required, because this matches the function pointer in
struct x86_dr_low_type.
This commit is contained in:
Tom Tromey
2021-09-03 10:29:58 -06:00
parent a640adf7cf
commit 7a2813c00b

View File

@ -52,7 +52,7 @@ x86_dr_low_set_addr (struct x86_debug_reg_state *new_state, int i)
/* Return the inferior's debug register REGNUM. */
static unsigned long
static CORE_ADDR
x86_dr_low_get_addr (int i)
{
return x86_dr_low.get_addr (i);