4 from __future__
import print_function
6 _python3 = sys.version_info.major == 3
12 return " ".join(
"0x{0:02x}".format(c)
for c
in s)
14 return " ".join(
"{0:02x}".format(c)
for c
in s)
17 return " ".join(
"0x{0:02x}".format(ord(c))
for c
in s)
19 return " ".join(
"{0:02x}".format(ord(c))
for c
in s)
23 r =
"".join(
"{0:02x}".format(c)
for c
in s)
25 r =
"".join(
"{0:02x}".format(ord(c))
for c
in s)
26 while r[0] ==
'0': r = r[1:]
30 from struct
import pack
33 while x[0]
in (
'\0', 0): x = x[1:]
37 from struct
import pack
40 while x[0]
in (
'\0', 0): x = x[1:]
def to_hex(s, prefix_0x=True)
int pack(libgdbr_t *g, const char *msg)