aboutsummaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2015-08-12Have debugserver send the OS version string plusJason Molenda
major, minor, and patchlevel in the qHostInfo reply. Document that qHostInfo may report major/minor/patch separately / in addition to the version: combination. <rdar://problem/22125465> git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244716 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-31Improve man page markupEd Maste
Patch by Baptiste Daroussin Differential Revision: http://reviews.llvm.org/D11561 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@243749 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-16Add jThreadsInfo support to lldb-serverPavel Labath
Summary: This commit adds initial support for the jThreadsInfo packet to lldb-server. The current implementation does not expedite inferior memory. I have also added a description of the new packet to our protocol documentation (mostly taken from Greg's earlier commit message). Reviewers: clayborg, ovyalov, tberghammer Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11187 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@242402 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-10Add a another packet to the gdb-remote protocol,Jason Molenda
jGetLoadedDynamicLibrariesInfos. This packet is similar to qXfer:libraries:read except that lldb supplies the number of solibs that should be reported about, and the start address for the list of them. At the initial process launch we'll read the full list of solibs linked by the process -- at this point we could be using qXfer:libraries:read -- but on subsequence solib-loaded notifications, we'll be fetching a smaller number of solibs, often only one or two. A typical Mac/iOS GUI app may have a couple hundred different solibs loaded - doing all of the loads via memory reads takes a couple of megabytes of traffic between lldb and debugserver. Having debugserver summarize the load addresses of all the solibs and sending it in JSON requires a couple of hundred kilobytes of traffic. It's a significant performance improvement when communicating over a slower channel. This patch leaves all of the logic for loading the libraries in DynamicLoaderMacOSXDYLD -- it only call over ot ProcesGDBRemote to get the JSON result. If the jGetLoadedDynamicLibrariesInfos packet is not implemented, the normal technique of using memory read packets to get all of the details from the target will be used. <rdar://problem/21007465> git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@241964 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-18Add a new wart, I mean feature, on to gdb-remote protocol: compression.Jason Molenda
For some communication channels, sending large packets can be very slow. In those cases, it may be faster to compress the contents of the packet on the target device and decompress it on the debug host system. For instance, communicating with a device using something like Bluetooth may be an environment where this tradeoff is a good one. This patch adds a new field to the response to the "qSupported" packet (which returns a "qXfer:features:" response) -- SupportedCompressions and DefaultCompressionMinSize. These tell you what the remote stub can support. lldb, if it wants to enable compression and can handle one of those algorithms, it can send a QEnableCompression packet specifying the algorithm and optionally the minimum packet size to use compression on. lldb may have better knowledge about the best tradeoff for a given communication channel. I added support to debugserver an lldb to use the zlib APIs (if -DHAVE_LIBZ=1 is in CFLAGS and -lz is in LDFLAGS) and the libcompression APIs on Mac OS X 10.11 and later (if -DHAVE_LIBCOMPRESSION=1). libz "zlib-deflate" compression. libcompression can support deflate, lz4, lzma, and a proprietary lzfse algorithm. libcompression has been hand-tuned for Apple hardware so it should be preferred if available. debugserver currently only adds the SupportedCompressions when it is being run on an Apple watch (TARGET_OS_WATCH). Comment that #if out from RNBRemote.cpp if you want to enable it to see how it works. I haven't tested this on a native system configuration but surely it will be slower to compress & decompress the packets in a same-system debug session. I haven't had a chance to add support for this to GDBRemoteCommunciationServer.cpp yet. <rdar://problem/21090180> git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@240066 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-18Fetch object file load address if it isn't specified by the linkerTamas Berghammer
Differential revision: http://reviews.llvm.org/D10490 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@240052 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-18Fix a variety of typos.Bruce Mitchener
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@239995 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-11Doc talks about Platform_RunCommand while we actually use Platform_shell.Chaoren Lin
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@237016 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-28test commitEwan Crawford
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@235980 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-24Start to share SWIG interface files between languages.Bruce Mitchener
Summary: Move scripts/Python/interface to scripts/interface so that we can start making iterative improvements towards sharing the interface files between multiple languages (each of which would have their own directory as now). Test Plan: Build and see. Reviewers: zturner, emaste, clayborg Reviewed By: clayborg Subscribers: mjsabby, lldb-commits Differential Revision: http://reviews.llvm.org/D9212 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@235676 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-17test commit.Aidan Dodds
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@235199 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-04Copy paste error in gdb-remote doc.Chaoren Lin
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@234102 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-25Add qModuleInfo request in order to get module information (uuid, triple,..) ↵Oleksiy Vyalov
by module path from remote platform. http://reviews.llvm.org/D7709 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@230556 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-23Fix the communication in qPlatform_[mkdir,chmod]Tamas Berghammer
With the previous implementation the protocol used by the client and the server for the response was different and worked only by an accident. With this change the communication is fixed and the return code from mkdir and chmod correctly captured by lldb. The change also add documentation for the qPlatform__[mkdir,chmod] packages. Differential revision: http://reviews.llvm.org/D7786 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@230213 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-27Fix a typo in code-signing.txtEnrico Granata
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@227268 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-29[cmake/multilib] Teach LLDB to respect the multlib LLVM_LIBDIR_SUFFIXChandler Carruth
variable (now provided both by the normal parent LLVM CMake files and by the LLVMConfig.cmake file used by the standalone build). This allows LLDB to build into and install into correctly suffixed libdirs. This is especially significant for LLDB because the python extension building done by CMake directly uses multilib suffixes when the host OS does, and the host OS will not always look back and forth between them. As a consequence, before LLVM, Clang, and LLDB (and every other subproject) had support for using LLVM_LIBDIR_SUFFIX, you couldn't build or install LLDB on a multilib system with its python extensions enabled. With this patch (on top of all the others I have submitted throughout the project), I'm finally able to build and install LLDB on my system with Python support enabled. I'm also able to actually run the LLDB test suite, etc. Now, a *huge* number of the tests still fail on my Linux system, but hey, actually running them and them testing the debugger is a huge step forward. =D git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@224930 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-24Fix lldb(1) man page formattingEd Maste
- Use canonical date order (per groff & mandoc) - Fix capitalization on one .Nm - Remove EOL whitespace Patch by Baptiste Daroussin in FreeBSD svn r274927. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@222655 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-20Fix a typo in lldb-gdb-remote.txt.Stephane Sezer
Test Plan: None. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D6342 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@222440 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-01Change the encoding of the Triple string exchanged across GDB-RSPMatthew Gardiner
and update documentation to suit, as suggested by Jason Molenda and discussed in: http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140721/011978.html Differential Revision: http://reviews.llvm.org/D4704 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@214480 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-23Improve documentation on triple encoding expectations for qHostInfo response.Todd Fiala
Change by Matthew Gardiner. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@213756 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-01Fix typos.Bruce Mitchener
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212132 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-30Add lldb-gdbserver support for Linux x86_64.Todd Fiala
This change brings in lldb-gdbserver (llgs) specifically for Linux x86_64. (More architectures coming soon). Not every debugserver option is covered yet. Currently the lldb-gdbserver command line can start unattached, start attached to a pid (process-name attach not supported yet), or accept lldb attaching and launching a process or connecting by process id. The history of this large change can be found here: https://github.com/tfiala/lldb/tree/dev-tfiala-native-protocol-linux-x86_64 Until mid/late April, I was not sharing the work and continued to rebase it off of head (developed via id tfiala@google.com). I switched over to user todd.fiala@gmail.com in the middle, and once I went to github, I did merges rather than rebasing so I could share with others. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@212069 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-27Fix a few typos.Bruce Mitchener
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211851 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-13Add documentation about the jThreadExtendedInfo packet.Jason Molenda
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@210949 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-04Fix a couple minor typos in $qMemoryRegionInfo packet docs.Todd Fiala
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@210163 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-13Fix the quoting in my x packet documentation so it'sJason Molenda
consistent with the rest of the entries. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208736 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-09Documented our "attach" extension packets.Jim Ingham
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208423 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-06Add a simple qSupported packet, fix a bug in decode_binary_data(), Jason Molenda
add a new 'x' packet for reading data in binary format. Document the 'x' packet. <rdar://problem/16032150> git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@208051 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-25Note that qHostInfo prints the cputype and cpusubtype in base10;Jason Molenda
qProcessInfo prints the cputype and cpusubtype in base16. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200068 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-18Added distribution info to ArchSpec and qHostInfo message.Todd Fiala
ArchSpec now contains an optional distribution_id, with getters and setters. Host::GetArchitecture () sets it on non-Apple platforms using Host::GetDistributionId (). The distribution_id is ignored during ArchSpec comparisons. The gdb remote qHostInfo message transmits it, if set, via the distribution_id={id-value} key/value pair. Updated gdb remote docs to reflect this change. As before, GetDistributionId () returns nothing on non-Linux platforms at this time. On Linux, it is returned only if the lsb_platform command is installed (in /bin or /usr/bin), and only if the distributor id key is returned by 'lsb_platform -i'. This id is lowercased, and whitespace is replaced with underscores. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@199539 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-08Undo testEnrico Granata
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198733 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-08TestEnrico Granata
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@198732 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-20Test commit. Capitalize 'os'.Colin Riley
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@195242 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-13Added documentation or the new QSaveRegisterState and QRestoreRegisterState ↵Greg Clayton
packets. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@194631 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-25Update the key/value documentation for the qHostInfo packet.Greg Clayton
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@193426 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-14Remove added file for the test commitDeepak Panickal
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@192580 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-14Test commitDeepak Panickal
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@192579 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-10Document the QEnvironmentHexEncoded packet, and explain why it isJason Molenda
often preferable to use this instead of QEnvironment. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@192400 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-08Clarify how to handle a thread register context with a gapJason Molenda
in the middle because of alignment rules. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@192159 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-01Add a new qGDBServerVersion packet so lldb can queryJason Molenda
the name of the remote gdb-protocol server, and get a version number from it. This can be useful if lldb needs to interoperate with a gdb-protocol server with a known issue or bug. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@191729 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-27As promised in previous commit, docs for qPlatform_RunCommand.Daniel Malea
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189360 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-26merge lldb-platform-work branch (and assorted fixes) into trunkDaniel Malea
Summary: This merge brings in the improved 'platform' command that knows how to interface with remote machines; that is, query OS/kernel information, push and pull files, run shell commands, etc... and implementation for the new communication packets that back that interface, at least on Darwin based operating systems via the POSIXPlatform class. Linux support is coming soon. Verified the test suite runs cleanly on Linux (x86_64), build OK on Mac OS X Mountain Lion. Additional improvements (not in the source SVN branch 'lldb-platform-work'): - cmake build scripts for lldb-platform - cleanup test suite - documentation stub for qPlatform_RunCommand - use log class instead of printf() directly - reverted work-in-progress-looking changes from test/types/TestAbstract.py that work towards running the test suite remotely. - add new logging category 'platform' Reviewers: Matt Kopec, Greg Clayton Review: http://llvm-reviews.chandlerc.com/D1493 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189295 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-22Revert the change that was done to test commit access.Virgile Bello
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@188973 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-22Test commit access.Virgile Bello
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@188972 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-21Remove redundant file.Hafiz Abid Qadeer
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@188907 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-21Revert the change that was done to test commit access.Hafiz Abid Qadeer
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@188892 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-20To test commit access.Hafiz Abid Qadeer
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@188809 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-16Test commit.Richard Mitton
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@188570 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-19Minor typeo fixes in doc scriptsDaniel Malea
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@186698 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-19include only LLDB API in docs generated by lldb-cpp-doc (cmake) targetDaniel Malea
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@186693 91177308-0d34-0410-b5e6-96231b3b80d8