mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-11 18:06:03 +08:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user