Lines Matching full:memory

2 Test the 'memory read' command.
22 """Test that reading memory as a c string respects the size limit given
26 # The size here is the size in memory so it includes the null terminator.
27 cmd = 'memory read --format "c-string" --size {} &my_string'
45 """Test the 'memory read' command with plain and vector formats."""
48 # (lldb) memory read -f d -c 1 `&argc`
50 self.runCmd("memory read -f d -c 1 `&argc`")
62 # (lldb) memory read --format uint32_t[] --size 4 --count 4 `&argc`
67 self.runCmd("memory read --format uint32_t[] --size 4 --count 4 `&argc`")
77 # (lldb) memory read --format char[] --size 7 --count 1 `&my_string`
80 "memory read --format char[] --size 7 --count 1 `&my_string`",
84 # (lldb) memory read --format 'hex float' --size 16 `&argc`
88 "memory read --format 'hex float' --size 16 `&argc`",
93 "memory read --format 'float' --count 1 --size 8 `&my_double`",
97 # (lldb) memory read --format 'float' --count 1 --size 20 `&my_double`
100 "memory read --format 'float' --count 1 --size 20 `&my_double`",
105 "memory read --type int --count 5 `&my_ints[0]`",
110 "memory read --type int --count 5 --format hex `&my_ints[0]`",
115 "memory read --type int --count 5 --offset 5 `&my_ints[0]`",
125 self.runCmd("memory read --gdb-format 4%s &my_uint64s" % formatter)
138 self.ci.HandleCommand("memory read -f d -c 1 `&argc`", res)
139 self.assertTrue(res.Succeeded(), "memory read failed:" + res.GetError())
144 memory_read_file = self.getBuildArtifact("memory-read-output")
154 self.runCmd("memory read -f d -c 1 -o '{}' `&argc`".format(memory_read_file))
162 self.runCmd("memory read -f d -c 1 -o '{}' `&argc`".format(memory_read_file))
167 "memory read -f d -c 1 -o '{}' --append-outfile `&argc`".format(