Lines Matching refs:ptr

215 static int hexToInt(char **ptr, unsigned long *intValue);
407 static int hexToInt(char **ptr, unsigned long *_value) in hexToInt() argument
412 while (**ptr) { in hexToInt()
413 ch = hex(**ptr); in hexToInt()
420 (*ptr)++; in hexToInt()
1397 char *ptr; in gdbstub() local
1495 ptr = output_buffer; in gdbstub()
1496 *ptr++ = 'O'; in gdbstub()
1497 ptr = mem2hex(title, ptr, sizeof(title) - 1,0); in gdbstub()
1500 ptr = hex_byte_pack(ptr, hx); in gdbstub()
1502 ptr = hex_byte_pack(ptr, hx); in gdbstub()
1504 ptr = hex_byte_pack(ptr, hx); in gdbstub()
1506 ptr = hex_byte_pack(ptr, hx); in gdbstub()
1508 ptr = hex_byte_pack(ptr, hx); in gdbstub()
1510 ptr = hex_byte_pack(ptr, hx); in gdbstub()
1512 ptr = hex_byte_pack(ptr, hx); in gdbstub()
1514 ptr = hex_byte_pack(ptr, hx); in gdbstub()
1516 ptr = mem2hex(crlf, ptr, sizeof(crlf) - 1, 0); in gdbstub()
1517 *ptr = 0; in gdbstub()
1524 ptr = output_buffer; in gdbstub()
1527 *ptr++ = 'T'; in gdbstub()
1528 ptr = hex_byte_pack(ptr, sigval); in gdbstub()
1531 ptr = hex_byte_pack(ptr, GDB_REG_PC); in gdbstub()
1532 *ptr++ = ':'; in gdbstub()
1533 ptr = mem2hex(&__debug_frame->pc, ptr, 4, 0); in gdbstub()
1534 *ptr++ = ';'; in gdbstub()
1539 ptr = hex_byte_pack(ptr, GDB_REG_FP); in gdbstub()
1540 *ptr++ = ':'; in gdbstub()
1541 ptr = mem2hex(&__debug_frame->fp, ptr, 4, 0); in gdbstub()
1542 *ptr++ = ';'; in gdbstub()
1547 ptr = hex_byte_pack(ptr, GDB_REG_SP); in gdbstub()
1548 *ptr++ = ':'; in gdbstub()
1549 ptr = mem2hex(&__debug_frame->sp, ptr, 4, 0); in gdbstub()
1550 *ptr++ = ';'; in gdbstub()
1552 *ptr++ = 0; in gdbstub()
1606 ptr = output_buffer; in gdbstub()
1609 ptr = mem2hex(&zero, ptr, 4, 0); in gdbstub()
1612 ptr = mem2hex(&__debug_user_context->i.gr[loop], ptr, 4, 0); in gdbstub()
1614 ptr = mem2hex(&temp, ptr, 4, 0); in gdbstub()
1615 ptr = mem2hex(&__debug_user_context->i.gr[29], ptr, 4, 0); in gdbstub()
1616 ptr = mem2hex(&__debug_user_context->i.gr[30], ptr, 4, 0); in gdbstub()
1618 ptr = mem2hex(&__debug_user_context->i.gr[31], ptr, 4, 0); in gdbstub()
1621 ptr = mem2hex(&temp, ptr, 4, 0); in gdbstub()
1625 ptr = mem2hex(&__debug_user_context->i.gr[loop], ptr, 4, 0); in gdbstub()
1629 ptr = mem2hex(&__debug_user_context->f.fr[loop], ptr, 4, 0); in gdbstub()
1632 ptr = mem2hex(&__debug_frame->pc, ptr, 4, 0); in gdbstub()
1633 ptr = mem2hex(&__debug_frame->psr, ptr, 4, 0); in gdbstub()
1634 ptr = mem2hex(&__debug_frame->ccr, ptr, 4, 0); in gdbstub()
1635 ptr = mem2hex(&__debug_frame->cccr, ptr, 4, 0); in gdbstub()
1636 ptr = mem2hex(&zero, ptr, 4, 0); in gdbstub()
1637 ptr = mem2hex(&zero, ptr, 4, 0); in gdbstub()
1638 ptr = mem2hex(&zero, ptr, 4, 0); in gdbstub()
1639 ptr = mem2hex(&__debug_frame->tbr, ptr, 4, 0); in gdbstub()
1640 ptr = mem2hex(&__debug_status.brr , ptr, 4, 0); in gdbstub()
1643 ptr = mem2hex(&dbar, ptr, 4, 0); in gdbstub()
1645 ptr = mem2hex(&dbar, ptr, 4, 0); in gdbstub()
1647 ptr = mem2hex(&dbar, ptr, 4, 0); in gdbstub()
1649 ptr = mem2hex(&dbar, ptr, 4, 0); in gdbstub()
1652 ptr = mem2hex(&dbar, ptr, 4, 0); in gdbstub()
1654 ptr = mem2hex(&dbar, ptr, 4, 0); in gdbstub()
1656 ptr = mem2hex(&dbar, ptr, 4, 0); in gdbstub()
1658 ptr = mem2hex(&dbar, ptr, 4, 0); in gdbstub()
1660 ptr = mem2hex(&__debug_frame->lr, ptr, 4, 0); in gdbstub()
1661 ptr = mem2hex(&__debug_frame->lcr, ptr, 4, 0); in gdbstub()
1663 ptr = mem2hex(&__debug_frame->iacc0, ptr, 8, 0); in gdbstub()
1665 ptr = mem2hex(&__debug_user_context->f.fsr[0], ptr, 4, 0); in gdbstub()
1668 ptr = mem2hex(&__debug_user_context->f.acc[loop], ptr, 4, 0); in gdbstub()
1670 ptr = mem2hex(&__debug_user_context->f.accg, ptr, 8, 0); in gdbstub()
1673 ptr = mem2hex(&__debug_user_context->f.msr[loop], ptr, 4, 0); in gdbstub()
1675 ptr = mem2hex(&__debug_frame->gner0, ptr, 4, 0); in gdbstub()
1676 ptr = mem2hex(&__debug_frame->gner1, ptr, 4, 0); in gdbstub()
1678 ptr = mem2hex(&__debug_user_context->f.fner[0], ptr, 4, 0); in gdbstub()
1679 ptr = mem2hex(&__debug_user_context->f.fner[1], ptr, 4, 0); in gdbstub()
1685 ptr = &input_buffer[1]; in gdbstub()
1688 ptr = hex2mem(ptr, &temp, 4); in gdbstub()
1691 ptr = hex2mem(ptr, &__debug_user_context->i.gr[loop], 4); in gdbstub()
1693 ptr = hex2mem(ptr, &temp, 4); in gdbstub()
1695 ptr = hex2mem(ptr, &__debug_frame->gr29, 4); in gdbstub()
1696 ptr = hex2mem(ptr, &__debug_frame->gr30, 4); in gdbstub()
1698 ptr = hex2mem(ptr, &__debug_frame->gr31, 4); in gdbstub()
1700 ptr = hex2mem(ptr, &temp, 4); in gdbstub()
1704 ptr = hex2mem(ptr, &__debug_user_context->i.gr[loop], 4); in gdbstub()
1708 ptr = mem2hex(&__debug_user_context->f.fr[loop], ptr, 4, 0); in gdbstub()
1711 ptr = hex2mem(ptr, &__debug_frame->pc, 4); in gdbstub()
1712 ptr = hex2mem(ptr, &__debug_frame->psr, 4); in gdbstub()
1713 ptr = hex2mem(ptr, &__debug_frame->ccr, 4); in gdbstub()
1714 ptr = hex2mem(ptr, &__debug_frame->cccr,4); in gdbstub()
1717 ptr = hex2mem(ptr, &temp, 4); in gdbstub()
1719 ptr = hex2mem(ptr, &temp, 4); in gdbstub()
1721 ptr = hex2mem(ptr, &temp, 4); in gdbstub()
1723 ptr = hex2mem(ptr, &temp, 4); in gdbstub()
1725 ptr = hex2mem(ptr, &temp, 4); in gdbstub()
1728 ptr = hex2mem(ptr, &__debug_frame->lr, 4); in gdbstub()
1729 ptr = hex2mem(ptr, &__debug_frame->lcr, 4); in gdbstub()
1731 ptr = hex2mem(ptr, &__debug_frame->iacc0, 8); in gdbstub()
1733 ptr = hex2mem(ptr, &__debug_user_context->f.fsr[0], 4); in gdbstub()
1736 ptr = hex2mem(ptr, &__debug_user_context->f.acc[loop], 4); in gdbstub()
1738 ptr = hex2mem(ptr, &__debug_user_context->f.accg, 8); in gdbstub()
1741 ptr = hex2mem(ptr, &__debug_user_context->f.msr[loop], 4); in gdbstub()
1743 ptr = hex2mem(ptr, &__debug_frame->gner0, 4); in gdbstub()
1744 ptr = hex2mem(ptr, &__debug_frame->gner1, 4); in gdbstub()
1746 ptr = hex2mem(ptr, &__debug_user_context->f.fner[0], 4); in gdbstub()
1747 ptr = hex2mem(ptr, &__debug_user_context->f.fner[1], 4); in gdbstub()
1754 ptr = &input_buffer[1]; in gdbstub()
1756 if (hexToInt(&ptr, &addr) && in gdbstub()
1757 *ptr++ == ',' && in gdbstub()
1758 hexToInt(&ptr, &length) in gdbstub()
1771 ptr = &input_buffer[1]; in gdbstub()
1773 if (hexToInt(&ptr, &addr) && in gdbstub()
1774 *ptr++ == ',' && in gdbstub()
1775 hexToInt(&ptr, &length) && in gdbstub()
1776 *ptr++ == ':' in gdbstub()
1778 if (hex2mem(ptr, (char *)addr, length)) { in gdbstub()
1799 ptr = &input_buffer[1]; in gdbstub()
1801 if (!hexToInt(&ptr, &addr) || in gdbstub()
1802 *ptr++ != '=' || in gdbstub()
1803 !hexToInt(&ptr, &temp) in gdbstub()
1877 ptr = &input_buffer[1]; in gdbstub()
1878 if (hexToInt(&ptr, &addr)) in gdbstub()
1912 ptr = &input_buffer[1]; in gdbstub()
1913 if (!hexToInt(&ptr, &temp)) { in gdbstub()
1927 ptr = &input_buffer[1]; in gdbstub()
1929 if (!hexToInt(&ptr,&temp) || *ptr++ != ',' || in gdbstub()
1930 !hexToInt(&ptr,&addr) || *ptr++ != ',' || in gdbstub()
1931 !hexToInt(&ptr,&length) in gdbstub()
1955 ptr = &input_buffer[1]; in gdbstub()
1957 if (!hexToInt(&ptr,&temp) || *ptr++ != ',' || in gdbstub()
1958 !hexToInt(&ptr,&addr) || *ptr++ != ',' || in gdbstub()
1959 !hexToInt(&ptr,&length) in gdbstub()
2063 ptr = output_buffer; in gdbstub_init()
2064 *ptr++ = 'O'; in gdbstub_init()
2065 ptr = mem2hex(gdbstub_banner, ptr, sizeof(gdbstub_banner) - 1, 0); in gdbstub_init()