mirror of https://github.com/thesofproject/sof.git
GDB: Added support for memory write.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This commit is contained in:
parent
7f4950e368
commit
1cbc83650d
|
@ -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))
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue