mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 04:24:45 +00:00
libdebugger/rtems-debugger-*.c: Address ignored qualifier warnings
GCC generates a warning when the return type of a function has a type qualifier such as 'const'.
This commit is contained in:
@@ -1027,7 +1027,7 @@ static void rtems_debugger_set_int_reg(
|
||||
memcpy( &thread->registers[ offset ], &value, sizeof( uint64_t ) );
|
||||
}
|
||||
|
||||
static const uint64_t rtems_debugger_get_int_reg(
|
||||
static uint64_t rtems_debugger_get_int_reg(
|
||||
rtems_debugger_thread *thread,
|
||||
size_t reg
|
||||
)
|
||||
@@ -1050,7 +1050,7 @@ static void rtems_debugger_set_halfint_reg(
|
||||
memcpy( &thread->registers[ offset ], &value, sizeof( uint32_t ) );
|
||||
}
|
||||
|
||||
static const uint32_t rtems_debugger_get_halfint_reg(
|
||||
static uint32_t rtems_debugger_get_halfint_reg(
|
||||
rtems_debugger_thread *thread,
|
||||
size_t reg
|
||||
)
|
||||
@@ -1073,7 +1073,7 @@ static void rtems_debugger_set_fp_reg(
|
||||
memcpy( &thread->registers[ offset ], &value, sizeof( uint128_t ) );
|
||||
}
|
||||
|
||||
static const uint128_t rtems_debugger_get_fp_reg(
|
||||
static uint128_t rtems_debugger_get_fp_reg(
|
||||
rtems_debugger_thread *thread,
|
||||
size_t reg
|
||||
)
|
||||
|
||||
@@ -1344,7 +1344,7 @@ target_print_frame(CPU_Exception_frame* frame)
|
||||
EXC_FRAME_PRINT(target_printk, "[} ", frame);
|
||||
}
|
||||
|
||||
static const size_t
|
||||
static size_t
|
||||
target_exc_offset(CPU_Exception_frame* frame)
|
||||
{
|
||||
size_t thumb = (FRAME_SR(frame) & (1 << 5)) == 0 ? 0 : 1;
|
||||
@@ -1975,7 +1975,7 @@ rtems_debugger_set_int_reg(rtems_debugger_thread* thread,
|
||||
memcpy(&thread->registers[offset], &value, sizeof(uint32_t));
|
||||
}
|
||||
|
||||
static const uint32_t
|
||||
static uint32_t
|
||||
rtems_debugger_get_int_reg(rtems_debugger_thread* thread, size_t reg)
|
||||
{
|
||||
const size_t offset = arm_reg_offsets[reg];
|
||||
|
||||
@@ -251,7 +251,7 @@ rtems_debugger_set_int_reg(rtems_debugger_thread* thread,
|
||||
memcpy(&thread->registers[offset], &value, sizeof(uint32_t));
|
||||
}
|
||||
|
||||
static const uint32_t
|
||||
static uint32_t
|
||||
rtems_debugger_get_int_reg(rtems_debugger_thread* thread, size_t reg)
|
||||
{
|
||||
const size_t offset = i386_reg_offsets[reg];
|
||||
|
||||
@@ -566,7 +566,7 @@ static void rtems_debugger_set_int_reg(
|
||||
memcpy( &thread->registers[ offset ], &value, sizeof( uint32_t ) );
|
||||
}
|
||||
|
||||
static const uint32_t rtems_debugger_get_int_reg(
|
||||
static uint32_t rtems_debugger_get_int_reg(
|
||||
rtems_debugger_thread *thread,
|
||||
size_t reg
|
||||
)
|
||||
|
||||
@@ -840,7 +840,7 @@ rtems_debugger_set_int_reg(rtems_debugger_thread* thread,
|
||||
memcpy(&thread->registers[offset], &value, sizeof(uintptr_t));
|
||||
}
|
||||
|
||||
static const uintptr_t
|
||||
static uintptr_t
|
||||
rtems_debugger_get_int_reg(rtems_debugger_thread* thread, const size_t reg)
|
||||
{
|
||||
const size_t offset = ppc_reg_offsets[reg];
|
||||
|
||||
Reference in New Issue
Block a user