aadsm added a comment.

Yeah, I'm not sure why the LoadModules function is calling 
target.SetExecutableModule. It is true that the libraries-svr4 will not include 
the main executable in its list.
This code was added in the context of providing qXfer:libraries support here: 
https://reviews.llvm.org/D9471. I don't see any mention of including the 
executable on that packet though: 
https://sourceware.org/gdb/current/onlinedocs/gdb/Library-List-Format.html. 
@clayborg was the main reviewer there (although this was 5 years ago or so) and 
he does mention multiple times in the comments this exact issue with calling 
target.SetExecutableModule. Maybe he can still remember and provide some light 
here :).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72751/new/

https://reviews.llvm.org/D72751



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to