Find and Print object pointers in the given range. Print all possible object pointers that are on the stack or in the given address range. Usage: dso [START_ADDR,[END_ADDR]]
(self, args)
| 3905 | return self.do_display_stack_objects(args) |
| 3906 | |
| 3907 | def do_display_stack_objects(self, args): |
| 3908 | """ |
| 3909 | Find and Print object pointers in the given range. |
| 3910 | |
| 3911 | Print all possible object pointers that are on the stack or in the given |
| 3912 | address range. |
| 3913 | |
| 3914 | Usage: dso [START_ADDR,[END_ADDR]] |
| 3915 | """ |
| 3916 | start = self.reader.StackTop() |
| 3917 | end = self.reader.StackBottom() |
| 3918 | if len(args) != 0: |
| 3919 | args = args.split(' ') |
| 3920 | start = self.ParseAddressExpr(args[0]) |
| 3921 | end = self.ParseAddressExpr(args[1]) if len(args) > 1 else end |
| 3922 | objects = self.heap.FindObjectPointers(start, end) |
| 3923 | for address in objects: |
| 3924 | heap_object = self.padawan.SenseObject(address) |
| 3925 | info = "" |
| 3926 | if heap_object: |
| 3927 | info = str(heap_object) |
| 3928 | print("%s %s" % (self.padawan.FormatIntPtr(address), info)) |
| 3929 | |
| 3930 | def do_do_desc(self, address): |
| 3931 | """ |
no test coverage detected