[Lldb-commits] [PATCH] Add =shlibs-added/=shlibs-removed notifications (MI)

jingham at apple.com jingham at apple.com
Wed Mar 11 10:51:51 PDT 2015


If you are on a system using ASLR you also might want to know where the main executable loaded, so it seems useful to send it for the main executable.  shlibs-added is a little funny, for instance on OS X gdb used to read all the directly linked libraries when the main executable was loaded, so they weren't really "added".  To that end we also had a shlibs-updated to say "you already knew about this but it either changed (binary changed) or its load addresses changed.

Jim

> On Mar 11, 2015, at 7:59 AM, Hafiz Abid Qadeer <abidh.haq at gmail.com> wrote:
> 
> I have some questions about this patch.
> 
> Gdb uses library-loaded to notify about the shared libraries. Why are you not using it?
> Where can I get the documentation about the fields of shlibs-added?
> This event is also being generated in case of main executable file. GDB only generates it for shared library. Is this intended behaviour.
> 
> 
> REPOSITORY
>  rL LLVM
> 
> http://reviews.llvm.org/D8201
> 
> EMAIL PREFERENCES
>  http://reviews.llvm.org/settings/panel/emailpreferences/
> 
> 





More information about the lldb-commits mailing list