MCPcopy Index your code
hub / github.com/nodejs/node / do_dd

Method do_dd

deps/v8/tools/grokdump.py:3859–3878  ·  view source on GitHub ↗

Interpret memory in the given region [address, address + num * word_size) (if available) as a sequence of words. Automatic alignment is not performed. If the num is not specified, a default value of 16 words is usif not self.Is If no address is given, dd continues printing at t

(self, args)

Source from the content-addressed store, hash-verified

3857 self.padawan.PrintStackTraceMessage(address)
3858
3859 def do_dd(self, args):
3860 """
3861 Interpret memory in the given region [address, address + num * word_size)
3862
3863 (if available) as a sequence of words. Automatic alignment is not performed.
3864 If the num is not specified, a default value of 16 words is usif not self.Is
3865 If no address is given, dd continues printing at the next word.
3866
3867 Synopsis: dd 0x<address>|$register [0x<num>]
3868 """
3869 if len(args) != 0:
3870 args = args.split(' ')
3871 self.dd_start = self.ParseAddressExpr(args[0])
3872 self.dd_num = int(args[1], 16) if len(args) > 1 else 0x10
3873 else:
3874 self.dd_start += self.dd_num * self.reader.MachinePointerSize()
3875 if not self.reader.IsAlignedAddress(self.dd_start):
3876 print("Warning: Dumping un-aligned memory, is this what you had in mind?")
3877 end = self.dd_start + self.reader.MachinePointerSize() * self.dd_num
3878 self.padawan.InterpretMemory(self.dd_start, end)
3879
3880 def do_do(self, address):
3881 """ see display_object """

Callers

nothing calls this directly

Calls 7

ParseAddressExprMethod · 0.95
intFunction · 0.85
IsAlignedAddressMethod · 0.80
InterpretMemoryMethod · 0.80
printFunction · 0.70
splitMethod · 0.45
MachinePointerSizeMethod · 0.45

Tested by

no test coverage detected