From 102261043a5bd91bf2a588d22380796d071fd35e Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Fri, 15 Oct 2021 19:18:02 -0500 Subject: cpukit/libdebugger: Use uintptr_t for pointers Use uintptr_t instead of DB_UINT when the variable in question describes a pointer. --- cpukit/libdebugger/rtems-debugger-target.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpukit/libdebugger/rtems-debugger-target.h') diff --git a/cpukit/libdebugger/rtems-debugger-target.h b/cpukit/libdebugger/rtems-debugger-target.h index db356e1f07..1e132fb28c 100644 --- a/cpukit/libdebugger/rtems-debugger-target.h +++ b/cpukit/libdebugger/rtems-debugger-target.h @@ -164,22 +164,22 @@ extern int rtems_debugger_target_write_regs(rtems_debugger_thread* thread); /** * Return the thread's program counter (PC). */ -extern DB_UINT rtems_debugger_target_reg_pc(rtems_debugger_thread* thread); +extern uintptr_t rtems_debugger_target_reg_pc(rtems_debugger_thread* thread); /** * Return the frame's program counter (PC). */ -extern DB_UINT rtems_debugger_target_frame_pc(CPU_Exception_frame* frame); +extern uintptr_t rtems_debugger_target_frame_pc(CPU_Exception_frame* frame); /** * Return the thread's stack pointer (SP). */ -extern DB_UINT rtems_debugger_target_reg_sp(rtems_debugger_thread* thread); +extern uintptr_t rtems_debugger_target_reg_sp(rtems_debugger_thread* thread); /** * Return the thread's TCB stack pointer (SP). */ -extern DB_UINT rtems_debugger_target_tcb_sp(rtems_debugger_thread* thread); +extern uintptr_t rtems_debugger_target_tcb_sp(rtems_debugger_thread* thread); /** * The thread is stepping. Setup the thread to step an instruction. @@ -228,7 +228,7 @@ extern int rtems_debugger_target_hwbreak_remove(void); */ extern int rtems_debugger_target_hwbreak_control(rtems_debugger_target_watchpoint type, bool insert, - DB_UINT addr, + uintptr_t addr, DB_UINT kind); /** -- cgit v1.2.3