<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">You can set breakpoints at addresses prior to running a process. ASLR will shift shared libraries around each time you run, so it really isn't safe to set these. If you do disable ASLR, and are able to debug, just reverse your statement and do the "process launch" first:</div><div class=""><br class=""></div><div class="">process launch --stop-at-entry --disable-aslr true</div><div class="">br s -a 0x7fff5fc01031</div><div class="">br s -a 0x7fff5fc01271</div><div class="">br s -a 0x7fff5fc05bdc</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Why is this? These addresses mean nothing before the process is launched since what you are specifying is a "load address". Before you run each shared library hasn't be loaded at a specific location, which means if you did a "br s -a 0x1000", this address could match every shared library since each shared library could have a "file address" values of 0x1000. </div><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 17, 2021, at 4:23 AM, Pi Pony via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">why does lldb can't break on an address? What does it say when it says unresolved? And how can I fix it?</div><div class=""><br class=""></div><div class="">Thanks in advance</div><div class=""><br class=""></div><div class="">See this for more details: <a href="https://bugs.llvm.org/show_bug.cgi?id=22323" class="">https://bugs.llvm.org/show_bug.cgi?id=22323</a></div></div>
_______________________________________________<br class="">lldb-dev mailing list<br class=""><a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<br class=""></div></blockquote></div><br class=""></body></html>