Skip to content

Commit 4957db1

Browse files
jithu83Anas Nashif
authored andcommitted
subsys: gdb_server: Fix type mismatch
This was flagged by ISSM icx compiler. JIRA: ZEP-1806 Change-Id: Iebd04febbdce9b92a4d0cae986ca7f84f4da58a0 Signed-off-by: Jithu Joseph <[email protected]> (cherry picked from commit fce0d9a)
1 parent e0ff3a5 commit 4957db1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subsys/debug/gdb_server.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ static void post_event(void)
11071107

11081108
static int get_debug_char_raw(void)
11091109
{
1110-
char ch;
1110+
unsigned char ch;
11111111

11121112
while (uart_poll_in(uart_console_dev, &ch) != 0) {
11131113
if (event_is_pending) {
@@ -1577,7 +1577,7 @@ static ALWAYS_INLINE unsigned char *handle_write_memory(unsigned char *packet,
15771577
packet = p;
15781578

15791579
p = (void *)((long)addr);
1580-
if (mem_probe(p, SYS_MEM_SAFE_WRITE, len, 0, 1) == -1) {
1580+
if (mem_probe((char *) p, SYS_MEM_SAFE_WRITE, len, 0, 1) == -1) {
15811581
/* No write access */
15821582
fill_output_buffer("E02");
15831583
return packet;
@@ -2262,7 +2262,7 @@ static inline int handle_single_stepping(void)
22622262

22632263
static void control_loop(void)
22642264
{
2265-
char ch;
2265+
unsigned char ch;
22662266

22672267
UNINSTALL_BREAKPOINTS();
22682268

0 commit comments

Comments
 (0)