GDB: Added support for memory write.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This commit is contained in:
Marcin Rajwa 2019-02-05 16:20:06 +01:00 committed by Janusz Jankowski
parent 7f4950e368
commit 1cbc83650d
2 changed files with 4 additions and 2 deletions

View File

@ -322,8 +322,9 @@ while (1) {
strcpy((char *)remcom_out_buffer, "E01");
}
break;
/* write memory (binary) */
case 'X':
/* write memory */
case 'X': /* binary mode */
case 'M':
if (hex_to_int(&request, &addr) && *request++ == ',' &&
hex_to_int(&request, &length) && *request++ == ':') {
if (hex_to_mem(request, (void *)addr, length))

View File

@ -8,6 +8,7 @@
#define FIRST_BYTE_MASK 0xF0000000
#define VALID_MEM_START_BYTE 0xB
#define VALID_MEM_ADDRESS_LEN 0x8
void gdb_handle_exception(void);
void gdb_debug_info(unsigned char *str);
void gdb_init_debug_exception(void);