rtems-debugger: Fixed pointer types to work on 32 and 64 bit architectures

Using 32bit types like uint32_t for pointers creates issues on 64 bit
architectures like AArch64. Replaced occurrences of these with
uintptr_t, which will work for both 32 and 64 bit architectures. Added
hex_decode_addr function to rtems-debugger.
This commit is contained in:
Stephen Clark
2021-05-13 10:13:57 -05:00
committed by Joel Sherrill
parent 75c133bda0
commit 9b088157ed
3 changed files with 28 additions and 8 deletions

View File

@@ -168,7 +168,7 @@ rtems_debugger_target_reg_table_size(void)
}
int
rtems_debugger_target_swbreak_control(bool insert, DB_UINT addr, DB_UINT kind)
rtems_debugger_target_swbreak_control(bool insert, uintptr_t addr, DB_UINT kind)
{
rtems_debugger_target* target = rtems_debugger->target;
rtems_debugger_target_swbreak* swbreaks;