Jim Ingham
8646d3c164
Rename eExecution*** to eExpression*** to be consistent with the result type.
...
llvm-svn: 207945
2014-05-05 02:47:44 +00:00
Jim Ingham
1624a2d3c8
Make the Expression Execution result enum available to the SB API layer.
...
Add a callback that will allow an expression to be cancelled between the
expression evaluation stages (for the ClangUserExpressions.)
<rdar://problem/16790467>, <rdar://problem/16573440>
llvm-svn: 207944
2014-05-05 02:26:40 +00:00
Alp Toker
cf55e88a11
Track recent changes in clang internals
...
llvm-svn: 207913
2014-05-03 15:05:45 +00:00
Greg Clayton
745b6688b4
LLDB could segfault if it got a .a file that had extra padding bytes at the end of the file.
...
<rdar://problem/16732178>
llvm-svn: 207877
2014-05-02 22:25:51 +00:00
Joerg Sonnenberger
a53b3593f0
Use posix_spawn on NetBSD as well.
...
llvm-svn: 207864
2014-05-02 19:09:40 +00:00
Joerg Sonnenberger
420708a374
Fix format string for 32bit systems.
...
llvm-svn: 207862
2014-05-02 19:00:27 +00:00
Joerg Sonnenberger
ff9620f975
LLDB_INVALID_ADDRESS may not be too large for a uintptr_t, so cast
...
first.
llvm-svn: 207860
2014-05-02 18:58:51 +00:00
Joerg Sonnenberger
6764b3e82a
EOF is outside the value range of char on architectures with unsigned
...
char like ARM. Check for EOF explicitly.
llvm-svn: 207859
2014-05-02 18:53:53 +00:00
Joerg Sonnenberger
4f51a0740a
LLDB_INVALID_OFFSET can be large than a size_t on ILP32 systems, so use
...
SIZE_MAX here.
llvm-svn: 207855
2014-05-02 18:26:40 +00:00
Greg Clayton
f29bf9a169
"DONE" is being left in multi-line results when it shouldn't for non terminal input.
...
<rdar://problem/16790579>
llvm-svn: 207818
2014-05-02 01:03:07 +00:00
Greg Clayton
f0066ad07f
Fixed CTRL+C related issues:
...
- CTRL+C wasn't clearing the command in lldb
- CTRL+C doesn't work in python macros in lldb
- Ctrl+C no longer interrupts the running process that you attach to
<rdar://problem/15949205>
<rdar://problem/16778652>
<rdar://problem/16774411>
llvm-svn: 207816
2014-05-02 00:45:31 +00:00
Greg Clayton
4cc3ba56bf
Fixed whitespace issues.
...
llvm-svn: 207778
2014-05-01 18:13:08 +00:00
Greg Clayton
40286e0b6d
Sometimes when launching through a shell, we can run into cases where the /bin/sh or /usr/bin/arch can crash the process due to security measures. Now we correctly report when a process exited in the process of launching so we can show the reason why it crashed instead of just showing “initial process state wasn't stopped: exited”.
...
llvm-svn: 207700
2014-04-30 20:29:09 +00:00
Ed Maste
e61c7b06c9
Typo: forever is one word
...
llvm-svn: 207564
2014-04-29 17:48:06 +00:00
Ed Maste
abb813275f
Address warnings in EmulateInstructionARM64
...
- Remove default for switch which covers all enumeration values
- Remove unused functions
LSL_C is left in the source under #if 0, as it may be needed in the
future for emulating other instructions.
Differential Revision: http://reviews.llvm.org/D3528
llvm-svn: 207449
2014-04-28 21:34:04 +00:00
Greg Clayton
28432c24e9
Since one or more Editline instances of the same kind (lldb commands, expressions, etc) can exist at once, they should all shared a ref counted history object.
...
Now they do.
llvm-svn: 207293
2014-04-25 23:55:26 +00:00
Greg Clayton
ed6499fe64
Free the strong reference to a lldb::SBDebugger that the script interpreter was holding onto in the "lldb.debugger" global variable.
...
llvm-svn: 207292
2014-04-25 23:55:12 +00:00
Greg Clayton
0c4129f2f7
Make sure that the CommandInterpreter::m_command_io_handler_sp gets reset when we quit.
...
Currently if you run _any_ python, python has the "lldb.debugger" global variable and it has a strong reference to a lldb_private::Debugger since it is a lldb::SBDebugger object with a shared pointer.
This makes sure that your LLDB command interpreter history is saved each time you quit command line LLDB.
llvm-svn: 207164
2014-04-25 00:35:14 +00:00
Jason Molenda
a0560152cb
Only allow on thread to run when calling libBacktraceRecording.
...
Make sure the timeout is set to 0.5s for these.
<rdar://problem/16719510>
llvm-svn: 207163
2014-04-25 00:06:26 +00:00
Jason Molenda
2dd5deb1e6
Missed this file with the r207160 commit.
...
llvm-svn: 207161
2014-04-25 00:02:11 +00:00
Jason Molenda
b9ffa98cab
Add a new SBThread::GetQueue() method to get the queue that is
...
currently associated with a given thread, on relevant targets.
Change the queue detection code to verify that the queues
associated with all live threads are included in the list.
<rdar://problem/16411314>
llvm-svn: 207160
2014-04-25 00:01:15 +00:00
Sean Callanan
4640a01c1c
Fixed a flipped conditional when writing back the
...
values of variables in the Materializer.
The Materializer should not write the variable
back if its new value is the *same* as the old
value, not if the new value is *different*.
<rdar://problem/16712205>
llvm-svn: 207148
2014-04-24 21:43:04 +00:00
Enrico Granata
8a068e6c43
Allow summary formatters to take ValueObjects into account when deciding whether values/children should be printed and if child names should be shown
...
This decision has always been statically-bound to the individual formatter. With this patch, the idea is that this decision could potentially be dynamic depending on the ValueObject itself
llvm-svn: 207046
2014-04-23 23:16:25 +00:00
Greg Clayton
885a33a0a3
Remove the using namespace directives to make it clear where code is scoped.
...
llvm-svn: 207041
2014-04-23 22:20:25 +00:00
Greg Clayton
cc3594d6ee
Change the default key bindings for multi-line mode:
...
Up/down arrows select next/prev line in multi-line mode
CTRL+N and CTRL+P do next/prev history
llvm-svn: 207033
2014-04-23 21:42:31 +00:00
Greg Clayton
90e9692d05
Fixed a case where if someone added a "bind -v" to their ~/.editrc file, key mappings would get messed up.
...
I fixed this by only doing el_set(e, EL_BIND, ...) calls before sourcing the .editrc files.
<rdar://problem/16614095>
llvm-svn: 207005
2014-04-23 17:57:26 +00:00
Jason Molenda
48cd333b7c
When increasing the amount of a file read, read the total of the Mach-O header
...
plus the size of the load commands in case the LC_UUID load command comes near
the end of the file.
<rdar://problem/16599318>
llvm-svn: 206865
2014-04-22 04:52:30 +00:00
Jim Ingham
23ef27cd46
Give the clang functions names. This is only for logging.
...
llvm-svn: 206836
2014-04-22 01:42:22 +00:00
Jim Ingham
fd95f8961e
Make RunThreadPlan start the timeout clock for each part of the expression evaluation AFTER the
...
successful resume for that part. This will make the timeouts more stable when lldb is running
in a busy program.
llvm-svn: 206835
2014-04-22 01:41:52 +00:00
Sylvestre Ledru
b96ca6b0c8
Remove useless declaration
...
llvm-svn: 206764
2014-04-21 17:43:17 +00:00
Ed Maste
d4612ad0f3
Switch NULL to C++11 nullptr in source/Symbol and source/Utility
...
Patch by Robert Matusewicz
llvm-svn: 206713
2014-04-20 13:17:36 +00:00
Ed Maste
d78c9576ca
Switch NULL to C++11 nullptr in source/Interpreter
...
Patch by Robert Matusewicz
llvm-svn: 206711
2014-04-20 00:31:37 +00:00
Saleem Abdulrasool
97fb5e128a
Utility: fix compilation on Linux
...
When compiling on Linux with GCC 4.8, compilation would fail due to the use of
the offsetof macro. This is a standard macro, defined in stddef.h. Include
this header to ensure that offsetof is declared.
llvm-svn: 206702
2014-04-19 21:18:28 +00:00
Sean Callanan
af90cf528c
Included <inttypes.h> in a few headers that were
...
using preprocessor constants for printf() format
specifications.
llvm-svn: 206679
2014-04-19 03:09:28 +00:00
Todd Fiala
3dbe13f6a8
Address hung tests in Linux.
...
Follow-up patch coming to address test failures exposed by this change.
llvm-svn: 206618
2014-04-18 17:01:01 +00:00
Greg Clayton
c71e7bc415
After updating to Xcode.5.1.1 LLDB framework stopped to support partial (only for STDIN) pseudo terminal usage in the debugging process.
...
Here is the fix resolving this issue.
Patch from Alexey Ushakov.
llvm-svn: 206476
2014-04-17 17:27:28 +00:00
Ed Maste
94ba368946
elf-core: Add FreeBSD signals
...
Sponsored by: DARPA, AFRL
Differential Revision: http://reviews.llvm.org/D3401
llvm-svn: 206469
2014-04-17 13:09:29 +00:00
Ed Maste
41736e3c0d
elf-core: Strip trailing whitespace
...
llvm-svn: 206468
2014-04-17 13:06:49 +00:00
Ed Maste
dbb67c46db
Move FreeBSDSignals to Utility
...
It will shortly be need by FreeBSD elf core support on all hosts.
llvm-svn: 206466
2014-04-17 13:03:10 +00:00
Jim Ingham
fe1c34266f
Clean up the logic in setting timeouts a bit, and the logging as well.
...
llvm-svn: 206351
2014-04-16 02:24:48 +00:00
Jim Ingham
b8cd5750b4
m_interrupt_sent wasn't being initialized, and wasn't being reset after an
...
interrupt. Do both of those.
llvm-svn: 206350
2014-04-16 02:24:17 +00:00
Ed Maste
9b8d847b8f
Add FreeBSD-specific SIGTHR and SIGLIBRT signals
...
llvm-svn: 206319
2014-04-15 20:22:32 +00:00
Sylvestre Ledru
a3e4cebd96
Remove trailing spaces
...
llvm-svn: 206278
2014-04-15 12:08:57 +00:00
Sylvestre Ledru
5ac35ae6f7
Make LLDB builds against the current LLVM sources (modification on createMCDisassembler introduced by r206241)
...
llvm-svn: 206277
2014-04-15 12:07:25 +00:00
Hafiz Abid Qadeer
224746a400
Remove > 1 check against a boolean.
...
I saw a complain about this code on the LLVM channel. It looks wrong to me
as has_tag is a boolean. I am committing it as obvious.
llvm-svn: 206270
2014-04-15 10:06:47 +00:00
Jason Molenda
c6fa5db747
Add some basic sanity checks to DynamicLoaderDarwinKernel::ReadKextSummaryHeader()
...
when it is reading the kext table, in case we're reading out of a core file with
corrupt contents in this region.
<rdar://problem/16601915>
llvm-svn: 206233
2014-04-15 01:04:00 +00:00
Greg Clayton
3434b578be
Fix LLDB to build with top of tree LLVM/Clang.
...
Patch from Michael Tao.
llvm-svn: 206213
2014-04-14 21:33:38 +00:00
Greg Clayton
8334e14efc
Fixed SBThread.GetStopReasonDataAtIndex() to correctly return breakpoint location ID.
...
Patch from Vyacheslav Karpukhin.
llvm-svn: 206040
2014-04-11 17:27:02 +00:00
Enrico Granata
bd4885f129
<rdar://problem/16540961>
...
The "unexpected value" message only matters to me, but is bound to make the experience more confusing for people when some uninitialized memory looks like an NSNumber and then can't be formatted properly, and that error comes out in the UI
Just drop the error message entirely - nobody but me cares
llvm-svn: 205978
2014-04-10 18:17:30 +00:00
Enrico Granata
1ac6296376
<rdar://problem/12055586>
...
Enable data formatters to see-through pointers/references to typedefs
For instance, if Foo is a typedef to Bar, and there is a formatter for any/all of Bar*, Bar&, Bar&&, then Foo*, Foo&, and Foo&& should pick these up if Foo-specific formatters don't exist
llvm-svn: 205939
2014-04-10 00:14:07 +00:00