jimingham wrote:

That seems a common enough problem that there should be a more straightforward 
way to do it than having to barge into the middle of target setup...  

The SBPlatform already has a "module location callback" that you can hook in to 
find debug modules in a programmatic way.  It also knows things like the SDK 
Path on the host.  So it seems consistent with this design that you could put 
the "debug file location for this platform" into the platform, and then pass 
the platform to the target as you create it (you can already do that), and have 
the Target consult that first for where to find debug files.

Jim



> On Oct 16, 2024, at 1:19 PM, cmtice ***@***.***> wrote:
> 
> 
> I have wanted to be able to hook into target creation to be able to setup 
> targets when they get created. It would be also nice to get an event when a 
> process is not longer being debugged due to process exit or detach.
> 
> Something I have wanted for a long time is a stop hook just BEFORE the target 
> is created, to that I can change the setting for 
> target.debug-file-search-paths before LLDB tries to read all the debug info 
> (that it can't find because the search path setting hasn't been properly set 
> up for us).
> 
> —
> Reply to this email directly, view it on GitHub 
> <https://github.com/llvm/llvm-project/pull/111206#issuecomment-2417865348>, 
> or unsubscribe 
> <https://github.com/notifications/unsubscribe-auth/ADUPVWYWL24PEAN2SVJDXITZ33C4TAVCNFSM6AAAAABPMR6QDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJXHA3DKMZUHA>.
> You are receiving this because you were mentioned.
> 



https://github.com/llvm/llvm-project/pull/111206
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to