Skip to content

Commit

Permalink
memleak:Add reminder information
Browse files Browse the repository at this point in the history
Signed-off-by: anjiahao <[email protected]>
  • Loading branch information
anjiahao1 authored and XuNeo committed Nov 19, 2024
1 parent 0ee5cf1 commit 23eb8b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/gdb/memdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,11 @@ def invoke(self, args, from_tty):
if arg is None:
return

if CONFIG_MM_BACKTRACE <= 0:
gdb.write("Better use CONFIG_MM_BACKTRACE=16 or 8 get more information\n")
if CONFIG_MM_BACKTRACE < 0:
gdb.write("Need to set CONFIG_MM_BACKTRACE to 8 or 16 better.\n")
return
elif CONFIG_MM_BACKTRACE == 0:
gdb.write("CONFIG_MM_BACKTRACE is 0, no backtrace available\n")

start = last = time.time()
white_dict = self.collect_white_dict()
Expand Down

0 comments on commit 23eb8b2

Please sign in to comment.