mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-25 22:07:15 +00:00
cpukit/libdebugger: Use uintptr_t for pointers
Use uintptr_t instead of DB_UINT when the variable in question describes a pointer.
This commit is contained in:
committed by
Joel Sherrill
parent
a678d1a99c
commit
102261043a
@@ -376,7 +376,7 @@ rtems_debugger_target_write_regs(rtems_debugger_thread* thread)
|
||||
return 0;
|
||||
}
|
||||
|
||||
DB_UINT
|
||||
uintptr_t
|
||||
rtems_debugger_target_reg_pc(rtems_debugger_thread* thread)
|
||||
{
|
||||
int r;
|
||||
@@ -387,13 +387,13 @@ rtems_debugger_target_reg_pc(rtems_debugger_thread* thread)
|
||||
return 0;
|
||||
}
|
||||
|
||||
DB_UINT
|
||||
uintptr_t
|
||||
rtems_debugger_target_frame_pc(CPU_Exception_frame* frame)
|
||||
{
|
||||
return (DB_UINT) frame->eip;
|
||||
return (uintptr_t) frame->eip;
|
||||
}
|
||||
|
||||
DB_UINT
|
||||
uintptr_t
|
||||
rtems_debugger_target_reg_sp(rtems_debugger_thread* thread)
|
||||
{
|
||||
int r;
|
||||
@@ -404,7 +404,7 @@ rtems_debugger_target_reg_sp(rtems_debugger_thread* thread)
|
||||
return 0;
|
||||
}
|
||||
|
||||
DB_UINT
|
||||
uintptr_t
|
||||
rtems_debugger_target_tcb_sp(rtems_debugger_thread* thread)
|
||||
{
|
||||
return (DB_UINT) thread->tcb->Registers.esp;
|
||||
@@ -503,7 +503,7 @@ rtems_debugger_target_hwbreak_remove(void)
|
||||
int
|
||||
rtems_debugger_target_hwbreak_control(rtems_debugger_target_watchpoint wp,
|
||||
bool insert,
|
||||
DB_UINT addr,
|
||||
uintptr_t addr,
|
||||
DB_UINT kind)
|
||||
{
|
||||
/*
|
||||
|
||||
@@ -315,7 +315,7 @@ rtems_debugger_target_exception(CPU_Exception_frame* frame)
|
||||
Thread_Control* thread = _Thread_Get_executing();
|
||||
const rtems_id tid = thread->Object.id;
|
||||
rtems_id* excludes;
|
||||
DB_UINT pc;
|
||||
uintptr_t pc;
|
||||
const rtems_debugger_thread_stepper* stepper;
|
||||
rtems_debugger_exception target_exception;
|
||||
size_t i;
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
@@ -469,8 +469,8 @@ rtems_debugger_thread_step(rtems_debugger_thread* thread)
|
||||
|
||||
int
|
||||
rtems_debugger_thread_stepping(rtems_debugger_thread* thread,
|
||||
DB_UINT start,
|
||||
DB_UINT end)
|
||||
uintptr_t start,
|
||||
uintptr_t end)
|
||||
{
|
||||
/* add lock */
|
||||
rtems_debugger_threads* threads = rtems_debugger->threads;
|
||||
@@ -496,7 +496,7 @@ rtems_debugger_thread_stepping(rtems_debugger_thread* thread,
|
||||
}
|
||||
|
||||
const rtems_debugger_thread_stepper*
|
||||
rtems_debugger_thread_is_stepping(rtems_id id, DB_UINT pc)
|
||||
rtems_debugger_thread_is_stepping(rtems_id id, uintptr_t pc)
|
||||
{
|
||||
/* add lock */
|
||||
rtems_debugger_threads* threads = rtems_debugger->threads;
|
||||
|
||||
@@ -102,8 +102,8 @@ typedef struct rtems_debugger_thread
|
||||
typedef struct rtems_debugger_thread_stepper
|
||||
{
|
||||
rtems_debugger_thread* thread;
|
||||
DB_UINT start;
|
||||
DB_UINT end;
|
||||
uintptr_t start;
|
||||
uintptr_t end;
|
||||
} rtems_debugger_thread_stepper;
|
||||
|
||||
/**
|
||||
@@ -165,15 +165,15 @@ extern int rtems_debugger_thread_step(rtems_debugger_thread* thread);
|
||||
* Thread is stepping so record the details.
|
||||
*/
|
||||
extern int rtems_debugger_thread_stepping(rtems_debugger_thread* thread,
|
||||
DB_UINT start,
|
||||
DB_UINT end);
|
||||
uintptr_t start,
|
||||
uintptr_t end);
|
||||
|
||||
/**
|
||||
* Thread's PC in the stepping range? Returns the stepper is in range else
|
||||
* NULL.
|
||||
*/
|
||||
extern const rtems_debugger_thread_stepper*
|
||||
rtems_debugger_thread_is_stepping(rtems_id id, DB_UINT pc);
|
||||
rtems_debugger_thread_is_stepping(rtems_id id, uintptr_t pc);
|
||||
|
||||
/**
|
||||
* Return the thread's current priority/
|
||||
|
||||
Reference in New Issue
Block a user