debug: fixed style and align code
Change-Id: I75875680feb7b814ed1fdafeb42de6f2d7049a90 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
569f0b4105
commit
e6b7ba40d1
2 changed files with 130 additions and 128 deletions
|
@ -402,9 +402,11 @@ static volatile int cpu_stop_signal = GDB_SIG_NULL;
|
||||||
static volatile int cpu_pending_signal;
|
static volatile int cpu_pending_signal;
|
||||||
static struct gdb_reg_set gdb_regs;
|
static struct gdb_reg_set gdb_regs;
|
||||||
|
|
||||||
static const char *xml_target_header = "<?xml version=\"1.0\"?> "
|
static const char *xml_target_header =
|
||||||
|
"<?xml version=\"1.0\"?> "
|
||||||
"<!DOCTYPE target SYSTEM "
|
"<!DOCTYPE target SYSTEM "
|
||||||
"\"gdb-target.dtd\"> <target version=\"1.0\">\n";
|
"\"gdb-target.dtd\"> <target version=\"1.0\">\n";
|
||||||
|
|
||||||
static const char *xml_target_footer = "</target>";
|
static const char *xml_target_footer = "</target>";
|
||||||
static unsigned char gdb_buffer[GDB_BUF_SIZE];
|
static unsigned char gdb_buffer[GDB_BUF_SIZE];
|
||||||
|
|
||||||
|
@ -1371,6 +1373,7 @@ static ALWAYS_INLINE int is_valid_xml_query(unsigned char **packet,
|
||||||
unsigned char *p = *packet;
|
unsigned char *p = *packet;
|
||||||
int is_valid = hex_str_to_int(&p, off) && *p++ == ','
|
int is_valid = hex_str_to_int(&p, off) && *p++ == ','
|
||||||
&& hex_str_to_int(&p, len) && *p == '\0';
|
&& hex_str_to_int(&p, len) && *p == '\0';
|
||||||
|
|
||||||
*packet = p;
|
*packet = p;
|
||||||
return is_valid;
|
return is_valid;
|
||||||
}
|
}
|
||||||
|
@ -1596,7 +1599,6 @@ static ALWAYS_INLINE unsigned char *handle_write_memory(unsigned char *packet,
|
||||||
return packet;
|
return packet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static WRITE_MEM_SIG(write_memory)
|
static WRITE_MEM_SIG(write_memory)
|
||||||
{
|
{
|
||||||
unsigned char value;
|
unsigned char value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue