LLDB相当于GDB的“info malloc-history< address>”命令? [英] LLDB equivalent to GDB's "info malloc-history <address>" command?

查看:201
本文介绍了LLDB相当于GDB的“info malloc-history< address>”命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在iOS中解决发送到解除分配的实例的消息错误。

I am trying to resolve a "message sent to deallocated instance " error in iOS.

推荐答案

请参阅LLDB-GDB命令图( http://lldb.llvm.org/lldb-gdb.html ) - 您必须导入脚本,该命令现在名为malloc_info。显然,仍然需要在方案选项中打开malloc堆栈日志记录。

See the LLDB-GDB command map (http://lldb.llvm.org/lldb-gdb.html) - you have to import a script, and the command is named malloc_info now. Obviously, malloc stack logging still needs to be turned on in the scheme options.

(lldb) script import lldb.macosx.heap
(lldb) malloc_info --stack-history 0x10010d680

不幸的是,它没有显示dealloc的 - 没有GDBs malloc-history也表明了这一点?

Unfortunately, it doesn't show dealloc's - didn't GDBs malloc-history show that as well?

这篇关于LLDB相当于GDB的“info malloc-history< address>”命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆