Lines Matching refs:ostrm
1576 std::ostringstream ostrm; in HandlePacket_qShlibInfoAddr() local
1577 ostrm << RAW_HEXBASE << shlib_info_addr; in HandlePacket_qShlibInfoAddr()
1578 return SendPacket(ostrm.str()); in HandlePacket_qShlibInfoAddr()
1624 std::ostringstream ostrm; in HandlePacket_qThreadInfo() local
1625 ostrm << "m"; in HandlePacket_qThreadInfo()
1631 ostrm << ","; in HandlePacket_qThreadInfo()
1633 ostrm << std::hex << th; in HandlePacket_qThreadInfo()
1635 return SendPacket(ostrm.str()); in HandlePacket_qThreadInfo()
1833 std::ostringstream ostrm; in HandlePacket_qRegisterInfo() local
1835 ostrm << "name:" << reg_entry->nub_info.name << ';'; in HandlePacket_qRegisterInfo()
1837 ostrm << "alt-name:" << reg_entry->nub_info.alt << ';'; in HandlePacket_qRegisterInfo()
1839 ostrm << "bitsize:" << std::dec << reg_entry->nub_info.size * 8 << ';'; in HandlePacket_qRegisterInfo()
1840 ostrm << "offset:" << std::dec << reg_entry->offset << ';'; in HandlePacket_qRegisterInfo()
1844 ostrm << "encoding:uint;"; in HandlePacket_qRegisterInfo()
1847 ostrm << "encoding:sint;"; in HandlePacket_qRegisterInfo()
1850 ostrm << "encoding:ieee754;"; in HandlePacket_qRegisterInfo()
1853 ostrm << "encoding:vector;"; in HandlePacket_qRegisterInfo()
1859 ostrm << "format:binary;"; in HandlePacket_qRegisterInfo()
1862 ostrm << "format:decimal;"; in HandlePacket_qRegisterInfo()
1865 ostrm << "format:hex;"; in HandlePacket_qRegisterInfo()
1868 ostrm << "format:float;"; in HandlePacket_qRegisterInfo()
1871 ostrm << "format:vector-sint8;"; in HandlePacket_qRegisterInfo()
1874 ostrm << "format:vector-uint8;"; in HandlePacket_qRegisterInfo()
1877 ostrm << "format:vector-sint16;"; in HandlePacket_qRegisterInfo()
1880 ostrm << "format:vector-uint16;"; in HandlePacket_qRegisterInfo()
1883 ostrm << "format:vector-sint32;"; in HandlePacket_qRegisterInfo()
1886 ostrm << "format:vector-uint32;"; in HandlePacket_qRegisterInfo()
1889 ostrm << "format:vector-float32;"; in HandlePacket_qRegisterInfo()
1892 ostrm << "format:vector-uint128;"; in HandlePacket_qRegisterInfo()
1897 ostrm << "set:" << reg_set_info[reg_entry->nub_info.set].name << ';'; in HandlePacket_qRegisterInfo()
1900 ostrm << "ehframe:" << std::dec << reg_entry->nub_info.reg_ehframe << ';'; in HandlePacket_qRegisterInfo()
1903 ostrm << "dwarf:" << std::dec << reg_entry->nub_info.reg_dwarf << ';'; in HandlePacket_qRegisterInfo()
1907 ostrm << "generic:fp;"; in HandlePacket_qRegisterInfo()
1910 ostrm << "generic:pc;"; in HandlePacket_qRegisterInfo()
1913 ostrm << "generic:sp;"; in HandlePacket_qRegisterInfo()
1916 ostrm << "generic:ra;"; in HandlePacket_qRegisterInfo()
1919 ostrm << "generic:flags;"; in HandlePacket_qRegisterInfo()
1922 ostrm << "generic:arg1;"; in HandlePacket_qRegisterInfo()
1925 ostrm << "generic:arg2;"; in HandlePacket_qRegisterInfo()
1928 ostrm << "generic:arg3;"; in HandlePacket_qRegisterInfo()
1931 ostrm << "generic:arg4;"; in HandlePacket_qRegisterInfo()
1934 ostrm << "generic:arg5;"; in HandlePacket_qRegisterInfo()
1937 ostrm << "generic:arg6;"; in HandlePacket_qRegisterInfo()
1940 ostrm << "generic:arg7;"; in HandlePacket_qRegisterInfo()
1943 ostrm << "generic:arg8;"; in HandlePacket_qRegisterInfo()
1950 ostrm << "container-regs:"; in HandlePacket_qRegisterInfo()
1953 ostrm << ','; in HandlePacket_qRegisterInfo()
1954 ostrm << RAW_HEXBASE << reg_entry->value_regnums[i]; in HandlePacket_qRegisterInfo()
1956 ostrm << ';'; in HandlePacket_qRegisterInfo()
1960 ostrm << "invalidate-regs:"; in HandlePacket_qRegisterInfo()
1963 ostrm << ','; in HandlePacket_qRegisterInfo()
1964 ostrm << RAW_HEXBASE << reg_entry->invalidate_regnums[i]; in HandlePacket_qRegisterInfo()
1966 ostrm << ';'; in HandlePacket_qRegisterInfo()
1969 return SendPacket(ostrm.str()); in HandlePacket_qRegisterInfo()
2531 void append_hex_value(std::ostream &ostrm, const void *buf, size_t buf_size, in append_hex_value() argument
2537 ostrm << RAWHEX8(p[i]); in append_hex_value()
2540 ostrm << RAWHEX8(p[i]); in append_hex_value()
2556 void append_hexified_string(std::ostream &ostrm, const std::string &string) { in append_hexified_string() argument
2560 ostrm << RAWHEX8(*(string_buf + i)); in append_hexified_string()
2564 void register_value_in_hex_fixed_width(std::ostream &ostrm, nub_process_t pid, in register_value_in_hex_fixed_width() argument
2577 append_hex_value(ostrm, reg_value_ptr->value.v_uint8, reg->nub_info.size, in register_value_in_hex_fixed_width()
2585 append_hex_value(ostrm, zeros.data(), zeros.size(), false); in register_value_in_hex_fixed_width()
2592 std::ostream &ostrm, nub_process_t pid, nub_thread_t tid, in debugserver_regnum_with_fixed_width_hex_register_value() argument
2598 ostrm << RAWHEX8(reg->debugserver_regnum) << ':'; in debugserver_regnum_with_fixed_width_hex_register_value()
2599 register_value_in_hex_fixed_width(ostrm, pid, tid, reg, reg_value_ptr); in debugserver_regnum_with_fixed_width_hex_register_value()
2600 ostrm << ';'; in debugserver_regnum_with_fixed_width_hex_register_value()
2704 std::ostringstream ostrm; in SendStopReplyPacketForThread() local
2706 ostrm << 'T'; in SendStopReplyPacketForThread()
2743 ostrm << RAWHEX8(signum & 0xff); in SendStopReplyPacketForThread()
2745 ostrm << std::hex << "thread:" << tid << ';'; in SendStopReplyPacketForThread()
2752 ostrm << std::hex << "name:" << thread_name << ';'; in SendStopReplyPacketForThread()
2755 ostrm << std::hex << "hexname:"; in SendStopReplyPacketForThread()
2758 ostrm << RAWHEX8(u_thread_name[i]); in SendStopReplyPacketForThread()
2759 ostrm << ';'; in SendStopReplyPacketForThread()
2775 ostrm << std::hex << "threads:"; in SendStopReplyPacketForThread()
2779 ostrm << ','; in SendStopReplyPacketForThread()
2780 ostrm << std::hex << th; in SendStopReplyPacketForThread()
2797 ostrm << ';'; in SendStopReplyPacketForThread()
2805 ostrm << std::hex << "thread-pcs:"; in SendStopReplyPacketForThread()
2808 ostrm << ','; in SendStopReplyPacketForThread()
2809 ostrm << std::hex << pc_values[i]; in SendStopReplyPacketForThread()
2811 ostrm << ';'; in SendStopReplyPacketForThread()
2826 ostrm << std::hex << "jstopinfo:"; in SendStopReplyPacketForThread()
2830 append_hexified_string(ostrm, json_strm.str()); in SendStopReplyPacketForThread()
2831 ostrm << ';'; in SendStopReplyPacketForThread()
2852 ostrm, pid, tid, &g_reg_entries[reg], ®_value); in SendStopReplyPacketForThread()
2858 ostrm << "reason:exec;"; in SendStopReplyPacketForThread()
2860 ostrm << "metype:" << std::hex << tid_stop_info.details.exception.type in SendStopReplyPacketForThread()
2862 ostrm << "mecount:" << std::hex in SendStopReplyPacketForThread()
2866 ostrm << "medata:" << std::hex in SendStopReplyPacketForThread()
2877 ostrm << "memory:" << HEXBASE << stack_memory.first << '='; in SendStopReplyPacketForThread()
2878 append_hex_value(ostrm, stack_memory.second.bytes, in SendStopReplyPacketForThread()
2880 ostrm << ';'; in SendStopReplyPacketForThread()
2884 return SendPacket(ostrm.str()); in SendStopReplyPacketForThread()
3084 std::ostringstream ostrm; in HandlePacket_m() local
3086 ostrm << RAWHEX8(buf[i]); in HandlePacket_m()
3087 return SendPacket(ostrm.str()); in HandlePacket_m()
3158 std::ostringstream ostrm; in HandlePacket_x() local
3160 ostrm << buf_quoted[i]; in HandlePacket_x()
3162 return SendPacket(ostrm.str()); in HandlePacket_x()
3225 std::ostringstream ostrm; in HandlePacket_g() local
3249 append_hex_value(ostrm, reg_ctx.data(), reg_ctx.size(), false); in HandlePacket_g()
3250 return SendPacket(ostrm.str()); in HandlePacket_g()
3357 std::ostringstream ostrm; in HandlePacket_AllocateMemory() local
3358 ostrm << RAW_HEXBASE << addr; in HandlePacket_AllocateMemory()
3359 return SendPacket(ostrm.str()); in HandlePacket_AllocateMemory()
4161 std::ostringstream ostrm; in HandlePacket_p() local
4166 ostrm << "00000000"; in HandlePacket_p()
4170 append_hex_value(ostrm, zeros.data(), zeros.size(), false); in HandlePacket_p()
4173 register_value_in_hex_fixed_width(ostrm, pid, tid, reg_entry, NULL); in HandlePacket_p()
4175 return SendPacket(ostrm.str()); in HandlePacket_p()
4320 std::ostringstream ostrm; in HandlePacket_MemoryRegionInfo() local
4323 ostrm << "start:" << std::hex << region_info.addr << ';'; in HandlePacket_MemoryRegionInfo()
4326 ostrm << "size:" << std::hex << region_info.size << ';'; in HandlePacket_MemoryRegionInfo()
4329 ostrm << "permissions:"; in HandlePacket_MemoryRegionInfo()
4332 ostrm << 'r'; in HandlePacket_MemoryRegionInfo()
4334 ostrm << 'w'; in HandlePacket_MemoryRegionInfo()
4336 ostrm << 'x'; in HandlePacket_MemoryRegionInfo()
4337 ostrm << ';'; in HandlePacket_MemoryRegionInfo()
4339 ostrm << "dirty-pages:"; in HandlePacket_MemoryRegionInfo()
4344 ostrm << ","; in HandlePacket_MemoryRegionInfo()
4346 ostrm << std::hex << addr; in HandlePacket_MemoryRegionInfo()
4349 ostrm << ";"; in HandlePacket_MemoryRegionInfo()
4351 ostrm << "type:"; in HandlePacket_MemoryRegionInfo()
4354 ostrm << ","; in HandlePacket_MemoryRegionInfo()
4355 ostrm << region_info.vm_types[i]; in HandlePacket_MemoryRegionInfo()
4357 ostrm << ";"; in HandlePacket_MemoryRegionInfo()
4360 return SendPacket(ostrm.str()); in HandlePacket_MemoryRegionInfo()
4510 std::ostringstream ostrm; in HandlePacket_WatchpointSupportInfo() local
4513 ostrm << "num:" << std::dec << num << ';'; in HandlePacket_WatchpointSupportInfo()
4514 return SendPacket(ostrm.str()); in HandlePacket_WatchpointSupportInfo()