Volshell: Add support for constructing objects at specific offsets.

This commit is contained in:
Mike Auty
2019-09-25 01:22:48 +01:00
parent 926288a7ac
commit c05b8dfd6a
4 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -50,12 +50,12 @@ class Volshell(generic.Volshell):
self.change_task(self.config['pid'])
return result
def display_type(self, object: Union[str, interfaces.objects.ObjectInterface]):
def display_type(self, object: Union[str, interfaces.objects.ObjectInterface], offset: int = None):
"""Display Type describes the members of a particular object in alphabetical order"""
if isinstance(object, str):
if constants.BANG not in object:
object = self.config['vmlinux'] + constants.BANG + object
return super().display_type(object)
return super().display_type(object, offset)
def display_symbols(self, symbol_table: str = None):
"""Prints an alphabetical list of symbols for a symbol table"""