mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-25 02:13:06 +00:00
coredump: fix spelling of container_of in exceptions
This commit is contained in:
parent
89f58ffd4f
commit
226bdd20d6
@ -164,9 +164,9 @@ class CoredumpObject:
|
||||
if not isinstance(type, Type):
|
||||
type = self.coredump_.type(type)
|
||||
if not isinstance(type, CompoundType):
|
||||
raise ValueError('containerof is only valid with struct or union types')
|
||||
raise ValueError('container_of is only valid with struct or union types')
|
||||
if not isinstance(self._real_type, PointerType):
|
||||
raise ValueError('containerof is only valid on pointers')
|
||||
raise ValueError('container_of is only valid on pointers')
|
||||
address = self.value_() - type.offsetof(member)
|
||||
return CoredumpObject(self.coredump_, address, type)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user