Lazily regenerate the `gef help` object if it was modified
(self)
| 9576 | return self.__add__(command) |
| 9577 | |
| 9578 | def __str__(self) -> str: |
| 9579 | """Lazily regenerate the `gef help` object if it was modified""" |
| 9580 | # quick check in case the docs have changed |
| 9581 | if self.should_refresh or self.command_size != len(gef.gdb.commands): |
| 9582 | self.__rebuild() |
| 9583 | return self.__doc__ or "" |
| 9584 | |
| 9585 | |
| 9586 | class GefConfigCommand(gdb.Command): |