mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
gdb/mm: fix memdump when mempool backtrace is disabled
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
ee9673f62e
commit
8667f911bc
1 changed files with 4 additions and 1 deletions
|
@ -93,10 +93,13 @@ class MemPoolBlock:
|
|||
|
||||
@property
|
||||
def is_free(self) -> bool:
|
||||
if CONFIG_MM_BACKTRACE < 0:
|
||||
return False
|
||||
|
||||
if not self._magic:
|
||||
self._magic = int(self.blk["magic"])
|
||||
|
||||
return CONFIG_MM_BACKTRACE and self._magic != self.MAGIC_ALLOC
|
||||
return self._magic != self.MAGIC_ALLOC
|
||||
|
||||
@property
|
||||
def seqno(self) -> int:
|
||||
|
|
Loading…
Reference in a new issue