| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
We currently have two log channel registration mechanisms. One uses a
set of function pointers and the other one is based on the
PluginManager.
The PluginManager dependency is unfortunate, as logging
is also used in lldb-server, and the PluginManager pulls in a lot of
classes which are not used in lldb-server.
Both approach have the problem that they leave too much to do for the
user, and so the individual log channels end up reimplementing command
line argument parsing, category listing, etc.
Here, I replace the PluginManager-based approach with a one. The new API
is more declarative, so the user only needs to specify the list of list
of channels, their descriptions, etc., and all the common tasks like
enabling/disabling categories are hadled by common code. I migrate the
LogChannelDWARF (only user of the PluginManager method) to the new API.
In the follow-up commits I'll replace the other channels with something
similar.
Reviewers: clayborg, zturner, beanz
Subscribers: aprantl, lldb-commits
Differential Revision: https://reviews.llvm.org/D29895
llvm-svn: 295190
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
It turns out listing each library twice is not enough to resolve all
references in a debug build on linux - a number of executables fails to
link with random symbols missing. Increasing the number to three seems
to be enough. The choice of lldbCore to set the multiplicity on is
somewhat arbitrary, but it seems fitting, as it is the biggest layering
transgressor.
Reviewers: beanz
Subscribers: mgorny, lldb-commits
Differential Revision: https://reviews.llvm.org/D29888
llvm-svn: 295189
|
|
|
|
|
|
|
| |
This resurrects TestModule.so which got lost during the move and is
needed for the ModuleCache test.
llvm-svn: 295171
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
GCC emits also symbols for the __PRETTY_FUNCTION__ virtual variable,
which we accidentaly pick up when looking for functions for with
"unique_function_name" in the name. This makes the target.FindFunctions
call fail, as that symbol is not a function.
I also strenghten the test a bit to make sure we actually find all the
functions we are interested in. I've put a check that we find at least 6
functions, but maybe this should be *exactly* 6 ?
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D29932
llvm-svn: 295170
|
|
|
|
|
|
|
|
|
| |
Differential Revisions:
https://reviews.llvm.org/D26497 (committed r290168, temporary reverted r290197)
https://reviews.llvm.org/D28945 (fix for Ubuntu tests fail)
https://reviews.llvm.org/D29909 (fix for TestCallThatThrows test fail)
llvm-svn: 295168
|
|
|
|
| |
llvm-svn: 295091
|
|
|
|
|
|
|
|
|
|
| |
With this patch, the only dependency left is from Utility
to Host. After this is broken, Utility will finally be
standalone.
Differential Revision: https://reviews.llvm.org/D29909
llvm-svn: 295088
|
|
|
|
|
|
|
| |
I think I have a fix for this, but it needs review. This should keep the
bots happy until then.
llvm-svn: 295047
|
|
|
|
|
|
|
| |
run it through the ABI's FixCodeAddress method.
<rdar://problem/29711506>
llvm-svn: 295025
|
|
|
|
| |
llvm-svn: 294991
|
|
|
|
|
|
| |
<rdar://problem/28147057>
llvm-svn: 294990
|
|
|
|
|
|
| |
Utility is directly referenced from Breakpoint.
llvm-svn: 294987
|
|
|
|
|
|
| |
Utility is directly referenced from API.
llvm-svn: 294986
|
|
|
|
|
|
| |
log->Debug is gone, switch to using log->Verbose
llvm-svn: 294944
|
|
|
|
| |
llvm-svn: 294940
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
We've had two ways to print a "debug" log message.
- Log::GetDebug() was testing a Stream flag which was never set.
- Log::Debug() was checking for the presence of "log enable --debug"
flag.
Given that these two were used very rarely and we already have a
different way to specify "I want a more verbose log", I propose to remove
these two functions and migrate the callers to LLDB_LOGV. This commit
does that.
Reviewers: clayborg, zturner
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D29823
llvm-svn: 294939
|
|
|
|
|
|
|
|
| |
mangled name correctly. Previously this was getting the function type's name which was not correct.
This info appears in the output of "image lookup --verbose --address ADDRESS".
llvm-svn: 294804
|
|
|
|
|
|
| |
In r294767, I added these dependencies in the wrong place.
llvm-svn: 294768
|
|
|
|
| |
llvm-svn: 294767
|
|
|
|
| |
llvm-svn: 294763
|
|
|
|
|
|
| |
this time I have actually tried that it compiles on windows.
llvm-svn: 294744
|
|
|
|
|
|
| |
Update the platform-specific log classes to match the new interface.
llvm-svn: 294743
|
|
|
|
|
|
|
| |
- move the header file to the include folder
- enclose the class in the proper namespace
llvm-svn: 294741
|
|
|
|
| |
llvm-svn: 294739
|
|
|
|
|
|
|
|
|
|
| |
and use it in the appropriate log statements.
Formatting of chrono types in log messages was very clunky. This should
make it much nicer to use and give better output. For details of the
formatting options see the chrono formatter in llvm.
llvm-svn: 294738
|
|
|
|
|
|
|
|
| |
This test is flaky on the windows->android bot. Change assertTrue to
assertEqual in the hope better error messages will direct us to the
problem.
llvm-svn: 294737
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This converts LLDB's logging to use llvm streams instead of
lldb_private::Stream and friends. The changes are mostly
straight-forward and amount to s/lldb_private::Stream/llvm::raw_ostream.
The part worth calling out is the rewrite of the StreamCallback class.
Previously this class contained a per-thread buffer of data written. I
assume this had something to do with it trying to make sure each log
line is delivered as a single event, instead of multiple (possibly
interleaved) events. However, this is no longer relevant as the Log
class already writes things to a temporary buffer and then delivers the
message as a single "write", so I have just removed the code in
question.
Reviewers: zturner, clayborg
Subscribers: emaste, lldb-commits, mgorny
Differential Revision: https://reviews.llvm.org/D29615
llvm-svn: 294736
|
|
|
|
|
|
| |
<rdar://problem/27580297>
llvm-svn: 294611
|
|
|
|
| |
llvm-svn: 294603
|
|
|
|
|
|
|
|
|
|
|
|
| |
through reserved ranges.
After many expressions are evaluated we were spending time looking for open blocks on memory in the one or more AllocatedBlock objects and it would slow down expression evaluation.
I implemented a fixed size blocks implementation that maintains a sorted free list to fix the issue.
<rdar://problem/17962974>
llvm-svn: 294600
|
|
|
|
| |
llvm-svn: 294597
|
|
|
|
| |
llvm-svn: 294583
|
|
|
|
| |
llvm-svn: 294580
|
|
|
|
|
|
|
|
|
|
| |
CommandObjectVersion.cpp calls lldb_private::GetVersion (present in lldbBase).
This should fix the unittest link on windows. I am not sure why is this not
present on other platforms -- my guess is that there lldbBase is included in
the link through some other dependency chain.
llvm-svn: 294549
|
|
|
|
|
|
|
|
|
|
| |
The Mips plugins conditionally link the Mips backend, so we need to conditionally add the target as a dependency.
This resolves a bot failure from r294515.
http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-buildserver/builds/4606/steps/build%20android/logs/stdio
llvm-svn: 294521
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This patch removes the over-specified dependencies from LLDBDependencies and instead relies on the dependencies as expressed in each library and tool.
This also removes the library looping in favor of allowing CMake to do its thing. I've tested this patch on Darwin, and found no issues, but since linker semantics vary by system I'll also work on testing it on other platforms too.
Help testing would be greatly appreciated.
Reviewers: labath, zturner
Subscribers: danalbert, srhines, mgorny, jgosnell, lldb-commits
Differential Revision: https://reviews.llvm.org/D29352
llvm-svn: 294515
|
|
|
|
|
| |
Subscribers: jaydeep, bhushan, lldb-commits, slthakur
llvm-svn: 294418
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: labath, clayborg
Subscribers: jaydeep, bhushan, lldb-commits, slthakur
Differential Revision: https://reviews.llvm.org/D29215
llvm-svn: 294415
|
|
|
|
| |
llvm-svn: 294372
|
|
|
|
|
|
|
|
|
|
| |
Inspired by r294145 for NetBSD, this reduces diffs between the FreeBSD
and Linux/NetBSD Platform implementations. Further diff reduction will
occur once FreeBSD switches to using the remote process plugin.
Differential Revision: https://reviews.llvm.org/D29667
llvm-svn: 294340
|
|
|
|
| |
llvm-svn: 294244
|
|
|
|
| |
llvm-svn: 294243
|
|
|
|
|
|
| |
replace by LLDB_LOGV
llvm-svn: 294224
|
|
|
|
|
|
| |
replace by LLDB_LOGV
llvm-svn: 294223
|
|
|
|
| |
llvm-svn: 294222
|
|
|
|
| |
llvm-svn: 294221
|
|
|
|
| |
llvm-svn: 294219
|
|
|
|
| |
llvm-svn: 294215
|
|
|
|
| |
llvm-svn: 294213
|
|
|
|
| |
llvm-svn: 294211
|