mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
kgdb: follow rename pack_hex_byte() to hex_byte_pack()
There is no functional change. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Jesper Nilsson <[email protected]> Cc: David Howells <[email protected]> Cc: Koichi Yasutake <[email protected]> Cc: Jason Wessel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
55036ba76b
commit
50e1499f46
5 changed files with 64 additions and 64 deletions
|
|
@ -694,7 +694,7 @@ mem2hex(char *buf, unsigned char *mem, int count)
|
|||
/* Valid mem address. */
|
||||
for (i = 0; i < count; i++) {
|
||||
ch = *mem++;
|
||||
buf = pack_hex_byte(buf, ch);
|
||||
buf = hex_byte_pack(buf, ch);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -868,7 +868,7 @@ stub_is_stopped(int sigval)
|
|||
/* Send trap type (converted to signal) */
|
||||
|
||||
*ptr++ = 'T';
|
||||
ptr = pack_hex_byte(ptr, sigval);
|
||||
ptr = hex_byte_pack(ptr, sigval);
|
||||
|
||||
/* Send register contents. We probably only need to send the
|
||||
* PC, frame pointer and stack pointer here. Other registers will be
|
||||
|
|
@ -881,7 +881,7 @@ stub_is_stopped(int sigval)
|
|||
status = read_register (regno, ®_cont);
|
||||
|
||||
if (status == SUCCESS) {
|
||||
ptr = pack_hex_byte(ptr, regno);
|
||||
ptr = hex_byte_pack(ptr, regno);
|
||||
*ptr++ = ':';
|
||||
|
||||
ptr = mem2hex(ptr, (unsigned char *)®_cont,
|
||||
|
|
|
|||
|
|
@ -677,7 +677,7 @@ mem2hex(char *buf, unsigned char *mem, int count)
|
|||
/* Valid mem address. */
|
||||
for (i = 0; i < count; i++) {
|
||||
ch = *mem++;
|
||||
buf = pack_hex_byte(buf, ch);
|
||||
buf = hex_byte_pack(buf, ch);
|
||||
}
|
||||
}
|
||||
/* Terminate properly. */
|
||||
|
|
@ -695,7 +695,7 @@ mem2hex_nbo(char *buf, unsigned char *mem, int count)
|
|||
mem += count - 1;
|
||||
for (i = 0; i < count; i++) {
|
||||
ch = *mem--;
|
||||
buf = pack_hex_byte(buf, ch);
|
||||
buf = hex_byte_pack(buf, ch);
|
||||
}
|
||||
|
||||
/* Terminate properly. */
|
||||
|
|
@ -880,7 +880,7 @@ stub_is_stopped(int sigval)
|
|||
/* Send trap type (converted to signal) */
|
||||
|
||||
*ptr++ = 'T';
|
||||
ptr = pack_hex_byte(ptr, sigval);
|
||||
ptr = hex_byte_pack(ptr, sigval);
|
||||
|
||||
if (((reg.exs & 0xff00) >> 8) == 0xc) {
|
||||
|
||||
|
|
@ -988,26 +988,26 @@ stub_is_stopped(int sigval)
|
|||
}
|
||||
/* Only send PC, frame and stack pointer. */
|
||||
read_register(PC, ®_cont);
|
||||
ptr = pack_hex_byte(ptr, PC);
|
||||
ptr = hex_byte_pack(ptr, PC);
|
||||
*ptr++ = ':';
|
||||
ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[PC]);
|
||||
*ptr++ = ';';
|
||||
|
||||
read_register(R8, ®_cont);
|
||||
ptr = pack_hex_byte(ptr, R8);
|
||||
ptr = hex_byte_pack(ptr, R8);
|
||||
*ptr++ = ':';
|
||||
ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[R8]);
|
||||
*ptr++ = ';';
|
||||
|
||||
read_register(SP, ®_cont);
|
||||
ptr = pack_hex_byte(ptr, SP);
|
||||
ptr = hex_byte_pack(ptr, SP);
|
||||
*ptr++ = ':';
|
||||
ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[SP]);
|
||||
*ptr++ = ';';
|
||||
|
||||
/* Send ERP as well; this will save us an entire register fetch in some cases. */
|
||||
read_register(ERP, ®_cont);
|
||||
ptr = pack_hex_byte(ptr, ERP);
|
||||
ptr = hex_byte_pack(ptr, ERP);
|
||||
*ptr++ = ':';
|
||||
ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[ERP]);
|
||||
*ptr++ = ';';
|
||||
|
|
|
|||
Loading…
Reference in a new issue