| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 186304
|
|
|
|
|
|
| |
with the changes in r186211.
llvm-svn: 186299
|
|
|
|
| |
llvm-svn: 186221
|
|
|
|
|
|
|
| |
On FreeBSD inferior thread names are available through ptrace, so we won't
use Host::GetThreadName anyway.
llvm-svn: 186086
|
|
|
|
| |
llvm-svn: 186033
|
|
|
|
| |
llvm-svn: 185466
|
|
|
|
| |
llvm-svn: 185425
|
|
|
|
| |
llvm-svn: 185366
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The build system is currently miss-identifying GNU/kFreeBSD as FreeBSD.
This kind of simplification is sometimes useful, but in general it's not correct.
As GNU/kFreeBSD is an hybrid system, for kernel-related issues we want to match the
build definitions used for FreeBSD, whereas for userland-related issues we want to
match the definitions used for other systems with Glibc.
The current modification adjusts the build system so that they can be distinguished,
and explicitly adds GNU/kFreeBSD to the build checks in which it belongs.
Fixes bug #16446.
Patch by Robert Millan in the context of Debian.
llvm-svn: 185313
|
|
|
|
| |
llvm-svn: 185147
|
|
|
|
|
|
|
| |
Host::GetOSVersion's caller already sets it to UINT32_MAX to determine
which version number components are set.
llvm-svn: 184953
|
|
|
|
|
|
| |
Release strings are of the form 9.1-RELEASE-p3 or 10.0-CURRENT.
llvm-svn: 184876
|
|
|
|
|
|
|
|
|
|
|
| |
It is defined on recent FreeBSD versions, so must not be mutually
exclusive with an #elif FreeBSD block.
Patch submitted by Robert Millan.
Fixes PR#16447.
llvm-svn: 184867
|
|
|
|
|
|
|
|
|
| |
- Sort functions in the same order
- Match whitespace
- Remove commetned out code
- Make filename in comments match filename
llvm-svn: 184746
|
|
|
|
| |
llvm-svn: 183936
|
|
|
|
| |
llvm-svn: 183929
|
|
|
|
| |
llvm-svn: 183862
|
|
|
|
|
|
| |
Making sure that if you invoke LLDB as lldb ./someBinary you can then launch the inferior with process launch —tty
llvm-svn: 183453
|
|
|
|
| |
llvm-svn: 183140
|
|
|
|
|
|
| |
All running threads will be detected and stopped on attach and all threads get resumed on detach.
llvm-svn: 183049
|
|
|
|
|
|
| |
Add 'JoinExistingSession' to XPC for root debugging.
llvm-svn: 183037
|
|
|
|
|
|
| |
Also adding multithreaded test cases.
llvm-svn: 182809
|
|
|
|
|
|
|
| |
Which means "platform process list" should work and list the architecture.
We are now parsing the elf build-id if it exists, which should allow us to load stripped symbols (looking at that next).
llvm-svn: 182610
|
|
|
|
| |
llvm-svn: 182538
|
|
|
|
| |
llvm-svn: 182064
|
|
|
|
| |
llvm-svn: 181911
|
|
|
|
|
|
|
|
|
| |
- read process information from /proc
- resolves llvm.org/pr14541 :)
Patch by Mike Sartain!
llvm-svn: 181904
|
|
|
|
|
|
| |
KFreeBSD for example)
llvm-svn: 181885
|
|
|
|
|
|
| |
Patch by Mike Sartain.
llvm-svn: 181722
|
|
|
|
| |
llvm-svn: 181374
|
|
|
|
|
|
|
| |
print "//mach_kernel" if you are debugging an executable
in the top level directory.
llvm-svn: 181190
|
|
|
|
|
|
|
| |
Most important was a new[] + delete mismatch in ScanFormatDescriptor()
and a couple of possible memory leaks in FileSpec::EnumerateDirectory().
llvm-svn: 181080
|
|
|
|
|
|
|
| |
UUID string in; added UUID::GetAsString() which returns the uuid string in
a std::string. Updated callers to use the new method.
llvm-svn: 181078
|
|
|
|
|
|
|
|
| |
- TODO: Support extended register sets on FreeBSD.
Patch by Samuel Jacob.
llvm-svn: 180879
|
|
|
|
|
|
|
|
|
|
|
| |
Also added a similar function for modules:
std::string
Module::GetSpecificationDescription () const;
This returns the module as "/usr/lib/libfoo.dylib" for normal files (calls "std::string FileSpec::GetPath()" on m_file) but it also might include the object name in case the module is for a .o file in a BSD archive ("/usr/lib/libfoo.a(bar.o)"). Cleaned up necessary logging code to use it.
llvm-svn: 180717
|
|
|
|
| |
llvm-svn: 180713
|
|
|
|
|
|
|
|
|
|
|
| |
with directories, without increasing the size of the FileSpec object.
GetPath() returns a std::string of the full pathname of the file.
IsDirectory(), IsPipe(), IsRegularFile(), IsSocket(), and IsSymbolicLink()
can be used instead of getting the FileType() and comparing it to an enum.
Update PlatformDarwinKernel to use these new methods.
llvm-svn: 180704
|
|
|
|
| |
llvm-svn: 180243
|
|
|
|
|
|
| |
“plugin load” tries to be more helpful when it fails to load a plugin
llvm-svn: 180218
|
|
|
|
|
|
| |
Pass the user set target.env-vars when launching through a terminal.
llvm-svn: 180201
|
|
|
|
|
|
| |
right thing".
llvm-svn: 179909
|
|
|
|
| |
llvm-svn: 179892
|
|
|
|
|
|
| |
the macros and just use C++11.
llvm-svn: 179805
|
|
|
|
|
|
|
|
| |
C++11 is being used. To do this, we follow what we have done for shared pointers and we define a STD_UNIQUE_PTR macro that can be used and it will "do the right thing". Due to some API differences in std::unique_ptr and due to the fact that we need to be able to compile without C++11, we can't use move semantics so some code needed to change so that it can compile with either C++.
Anyone wanting to use a unique_ptr or auto_ptr should now use the "STD_UNIQUE_PTR(TYPE)" macro.
llvm-svn: 179779
|
|
|
|
|
|
| |
so it can be re-entered while iterating over a directory safely.
llvm-svn: 178738
|
|
|
|
|
|
|
|
| |
LLDB is crashing when logging is enabled from lldb-perf-clang. This has to do with the global destructor chain as the process and its threads are being torn down.
All logging channels now make one and only one instance that is kept in a global pointer which is never freed. This guarantees that logging can correctly continue as the process tears itself down.
llvm-svn: 178191
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a very basic implementation of a library that easily allows to drive LLDB.framework to write test cases for performance
This is separate from the LLDB testsuite in test/ in that:
a) this uses C++ instead of Python to avoid measures being affected by SWIG
b) this is in very early development and needs lots of tweaking before it can be considered functionally complete
c) this is not meant to test correctness but to help catch performance regressions
There is a sample application built against the library (in darwin/sketch) that uses the famous sample app Sketch as an inferior to measure certain basic parameters of LLDB's behavior.
The resulting output is a PLIST much like the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>fetch-frames</key>
<real>0.13161715522222225</real>
</dict>
<dict>
<key>file-line-bkpt</key>
<real>0.029111678750000002</real>
</dict>
<dict>
<key>fetch-modules</key>
<real>0.00026376766666666668</real>
</dict>
<dict>
<key>fetch-vars</key>
<real>0.17820429311111111</real>
</dict>
<dict>
<key>run-expr</key>
<real>0.029676525769230768</real>
</dict>
</array>
</plist>
Areas for improvement:
- code cleanups (I will be out of the office for a couple days this coming week, but please keep ideas coming!)
- more metrics and test cases
- better error checking
This toolkit also comprises a simple event-loop-driven controller for LLDB, similar yet much simpler to what the Driver does to implement the lldb command-line tool.
llvm-svn: 176715
|
|
|
|
|
|
|
| |
updated the build system to support the new Apple
LLDB versioning scheme.
llvm-svn: 176662
|
|
|
|
|
|
| |
Reap the child process (debugserver) when it is done.
llvm-svn: 176594
|
|
|
|
|
|
| |
called on a local variable and returned as a const char * incorrectly. We used to cache the thread names for threads in the current host process, but we shoudn't be caching that as the names can change over time, so now a std::string is returned from Host::GetThreadName().
llvm-svn: 176217
|