(self, f, straddress, datakind)
| 3205 | return html.escape(str(heap_object or "")) |
| 3206 | |
| 3207 | def output_data(self, f, straddress, datakind): |
| 3208 | try: |
| 3209 | self.output_header(f) |
| 3210 | address = int(straddress, 0) |
| 3211 | if not self.reader.IsValidAddress(address): |
| 3212 | f.write("<h3>Address 0x%x not found in the dump.</h3>" % address) |
| 3213 | return |
| 3214 | region = self.reader.FindRegion(address) |
| 3215 | if datakind == "address": |
| 3216 | self.output_words(f, region[0], region[0] + region[1], address, "Dump", |
| 3217 | self.heap.MachinePointerSize()) |
| 3218 | if datakind == "tagged": |
| 3219 | self.output_words(f, region[0], region[0] + region[1], address, |
| 3220 | "Tagged Dump", self.heap.TaggedPointerSize()) |
| 3221 | elif datakind == "ascii": |
| 3222 | self.output_ascii(f, region[0], region[0] + region[1], address) |
| 3223 | self.output_footer(f) |
| 3224 | |
| 3225 | except ValueError: |
| 3226 | f.write("<h3>Unrecognized address format \"%s\".</h3>" % straddress) |
| 3227 | return |
| 3228 | |
| 3229 | def output_words(self, f, start_address, end_address, highlight_address, desc, |
| 3230 | size): |
no test coverage detected