[Lldb-commits] [PATCH] Add =shlibs-added/=shlibs-removed notifications (MI)
Ilia K
ki.stfu at gmail.com
Wed Mar 11 08:16:12 PDT 2015
In http://reviews.llvm.org/D8201#138864, @abidh 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.
I looked how it works in GDB, and I have seen =shlibs-added/=shlibs-removed format. For example:
100=shlibs-added,shlib-info={num="2",name="nb-test",kind="-",dyld-addr="0x100000000",reason="exec",requested-state="Y",state="Y",path="/Users/bpontarelli/dev/inversoft/cleanspeak/cleanspeak-domain/projects/nb-test/dist/Debug/GNU-MacOSX/nb-test",description="/Users/bpontarelli/dev/inversoft/cleanspeak/cleanspeak-domain/projects/nb-test/dist/Debug/GNU-MacOSX/nb-test",loaded_addr="",slide="0x0",prefix=""}
100=shlibs-added,shlib-info={num="3",name="libgtest.0.0.0.dylib",kind="-",dyld-addr="0x1000f4000",reason="dyld",requested-state="Y",state="Y",path="/usr/local/lib/libgtest.0.0.0.dylib",description="/usr/local/lib/libgtest.0.0.0.dylib",loaded_addr="0x1000f4000",slide="-0xfffffffefff0c000",prefix=""}
100=shlibs-added,shlib-info={num="4",name="libmysqlclient.15.dylib",kind="-",dyld-addr="0x100152000",reason="dyld",requested-state="Y",state="Y",path="/usr/local/mysql-5.0.51b-osx10.5-x86_64/lib/libmysqlclient.15.dylib",description="/usr/local/mysql-5.0.51b-osx10.5-x86_64/lib/libmysqlclient.15.dylib",loaded_addr="0x100152000",slide="-0xfffffffeffeae000",prefix=""}
100=shlibs-added,shlib-info={num="5",name="libstdc++.6.0.4.dylib",kind="-",dyld-addr="0x7fff81e61000",reason="dyld",requested-state="Y",state="Y",path="/usr/lib/libstdc++.6.0.4.dylib",description="/usr/lib/libstdc++.6.0.4.dylib",loaded_addr="0x7fff81e61000",slide="-0xffff80007e19f000",prefix=""}
100=shlibs-added,shlib-info={num="6",name="libgcc_s.1.dylib",kind="-",dyld-addr="0x7fff80ef3000",reason="dyld",requested-state="Y",state="Y",path="/usr/lib/libgcc_s.1.dylib",description="/usr/lib/libgcc_s.1.dylib",loaded_addr="0x7fff80ef3000",slide="-0xffff80007f10d000",prefix=""}
100=shlibs-added,shlib-info={num="7",name="libSystem.B.dylib",kind="-",dyld-addr="0x7fff81728000",reason="dyld",requested-state="Y",state="Y",path="/usr/lib/libSystem.B.dylib",description="/usr/lib/libSystem.B.dylib",loaded_addr="0x7fff81728000",slide="-0xffff80007e8d8000",prefix="",commpage-objpath="/usr/lib/libSystem.B.dylib[LC_SEGMENT.__DATA.__commpage]"}
100=shlibs-added,shlib-info={num="8",name="libmathCommon.A.dylib",kind="-",dyld-addr="0x7fff824a4000",reason="dyld",requested-state="Y",state="Y",path="/usr/lib/system/libmathCommon.A.dylib",description="/usr/lib/system/libmathCommon.A.dylib",loaded_addr="0x7fff824a4000",slide="-0xffff80007db5c000",prefix=""}
Original link: https://bugzilla-attachments-169842.netbeans.org/bugzilla/attachment.cgi?id=85852
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