mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
kgdb: follow rename pack_hex_byte() to hex_byte_pack()
There is no functional change. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> Cc: David Howells <dhowells@redhat.com> Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com> Cc: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
55036ba76b
commit
50e1499f46
5 changed files with 64 additions and 64 deletions
|
@ -217,7 +217,7 @@ void gdbstub_msg_write(const char *s, int len)
|
|||
|
||||
/* Pack in hex chars */
|
||||
for (i = 0; i < wcount; i++)
|
||||
bufptr = pack_hex_byte(bufptr, s[i]);
|
||||
bufptr = hex_byte_pack(bufptr, s[i]);
|
||||
*bufptr = '\0';
|
||||
|
||||
/* Move up */
|
||||
|
@ -249,7 +249,7 @@ char *kgdb_mem2hex(char *mem, char *buf, int count)
|
|||
if (err)
|
||||
return NULL;
|
||||
while (count > 0) {
|
||||
buf = pack_hex_byte(buf, *tmp);
|
||||
buf = hex_byte_pack(buf, *tmp);
|
||||
tmp++;
|
||||
count--;
|
||||
}
|
||||
|
@ -411,14 +411,14 @@ static char *pack_threadid(char *pkt, unsigned char *id)
|
|||
limit = id + (BUF_THREAD_ID_SIZE / 2);
|
||||
while (id < limit) {
|
||||
if (!lzero || *id != 0) {
|
||||
pkt = pack_hex_byte(pkt, *id);
|
||||
pkt = hex_byte_pack(pkt, *id);
|
||||
lzero = 0;
|
||||
}
|
||||
id++;
|
||||
}
|
||||
|
||||
if (lzero)
|
||||
pkt = pack_hex_byte(pkt, 0);
|
||||
pkt = hex_byte_pack(pkt, 0);
|
||||
|
||||
return pkt;
|
||||
}
|
||||
|
@ -486,7 +486,7 @@ static void gdb_cmd_status(struct kgdb_state *ks)
|
|||
dbg_remove_all_break();
|
||||
|
||||
remcom_out_buffer[0] = 'S';
|
||||
pack_hex_byte(&remcom_out_buffer[1], ks->signo);
|
||||
hex_byte_pack(&remcom_out_buffer[1], ks->signo);
|
||||
}
|
||||
|
||||
static void gdb_get_regs_helper(struct kgdb_state *ks)
|
||||
|
@ -954,7 +954,7 @@ int gdb_serial_stub(struct kgdb_state *ks)
|
|||
/* Reply to host that an exception has occurred */
|
||||
ptr = remcom_out_buffer;
|
||||
*ptr++ = 'T';
|
||||
ptr = pack_hex_byte(ptr, ks->signo);
|
||||
ptr = hex_byte_pack(ptr, ks->signo);
|
||||
ptr += strlen(strcpy(ptr, "thread:"));
|
||||
int_to_threadref(thref, shadow_pid(current->pid));
|
||||
ptr = pack_threadid(ptr, thref);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue