Greg Clayton
3d51b9f957
<rdar://problem/12106825>
...
Allow the expression parser to see more than just data symbols. We now accept any symbol that has an address. We take precautions to only accept symbols by their mangled or demangled names only if the demangled name was not synthesized. If the demangled name is synthesized, then we now mark symbols accordingly and only compare against the mangled original name.
llvm-svn: 168668
2012-11-27 01:52:16 +00:00
Jim Ingham
9732e08a4d
The skipOnLinux decorator wasn't calling the test method correctly (no need to pass in the "self") resulting
...
in errors on MacOS X for the tests so decorated.
llvm-svn: 168662
2012-11-27 01:21:28 +00:00
Greg Clayton
37c36e486e
<rdar://problem/12636970>
...
Detect the new fixed clang that properly supports bitfields in objc classes.
llvm-svn: 168655
2012-11-27 00:59:26 +00:00
Jim Ingham
8559a35508
The Function calling thread plan was replacing the stored stop info too soon, causing recursive entry into the
...
breakpoint StopInfo's PerformAction, which is bad. Reworked this so that it is now correct.
<rdar://problem/12501259>
llvm-svn: 168634
2012-11-26 23:52:18 +00:00
Daniel Malea
b0916015ae
Improvement to TestGlobalVariables fix
...
- use lldb settings command instead of os.environ
- use dyldPath fixture variable instead of hardcoding LD_LIBRARY_PATH
- add tear-down hook to restore environment after testcase is run
llvm-svn: 168613
2012-11-26 21:23:12 +00:00
Daniel Malea
179ff29811
Fix for TestSharedLib.py (on Linux)
...
- use lldb 'settings' command to help testcase find shared library
- pull up dyldPath variable from TestLoadUnload.py to fixture base class (applicable in multiple cases)
llvm-svn: 168612
2012-11-26 21:21:11 +00:00
Han Ming Ong
84145857b4
<rdar://problem/12723044> For 'process plugin packet send…', we just send it async by default
...
There is no good reason not to use async.
llvm-svn: 168606
2012-11-26 20:42:03 +00:00
Jim Ingham
d77557d0d9
Missing “if (log)” on a log printf.
...
llvm-svn: 168602
2012-11-26 19:54:04 +00:00
Daniel Malea
bdf0fef067
Fix TestGlobalVariables.py (on Linux)
...
- setting LD_LIBRARY_PATH required for the test program to run correctly
llvm-svn: 168595
2012-11-26 16:54:53 +00:00
Daniel Malea
561e218517
Skip objC test on non-darwin platforms
...
llvm-svn: 168531
2012-11-23 22:15:09 +00:00
Daniel Malea
662f2b8be0
Remove decorator to skip event tests
...
- hang resolved in r168503
llvm-svn: 168530
2012-11-23 22:10:20 +00:00
Daniel Malea
93aec0f9a9
Update test status on Linux
...
- add decorators @expectedFailLinux and @skipOnLinux
- skip/mark xfail cases due to open bugzillas # 14323, 14416, 14423, 14424, 14425, 14426
Patch by Ashok Thirumurthi!
llvm-svn: 168529
2012-11-23 21:59:29 +00:00
Daniel Malea
a35970a6f6
Fix Linux bug that leaves lldb in invalid state after expression evaluation times out.
...
- Handle EINVAL return code from ptrace(GETSIGINFO, ...): not an error, but 'group-stop' state on Linux
- propagate SIGSTOP to inferior in above case
- this commit resolves the failure in expression_command/timeout testcase
Thanks to Sean Callanan & Matt Kopec for helping debug this problem
llvm-svn: 168523
2012-11-23 18:09:58 +00:00
Daniel Malea
8b9e71e6ef
Remove call to StopMonitor() from ProcessMonitor::Detach()
...
- StopMonitor() is called anyways from ProcessMonitor destructor later
- resolves hang in TestEvents.py
Patch by Matt Kopec!
llvm-svn: 168503
2012-11-22 18:21:05 +00:00
Daniel Malea
4bd152d8e6
Disable darwin-specific test on non-darwin platforms
...
llvm-svn: 168454
2012-11-21 20:17:07 +00:00
Daniel Malea
b90c36868e
Linux test case fixes
...
- missing includes in cpp test programs
- mismatched dwarf/dsym test cases
- make "com.apple.main-thread" expected string conditional on darwin platform
llvm-svn: 168452
2012-11-21 20:12:12 +00:00
Daniel Malea
1b8b392889
Clear auto-confirm setting on teardown for tests that use it
...
llvm-svn: 168382
2012-11-20 19:46:54 +00:00
Daniel Malea
096925233b
Use auto-confirm setting to avoid prompts causing some tests to appear to hang
...
- this commit addresses bugzilla #14385
llvm-svn: 168375
2012-11-20 18:53:21 +00:00
Daniel Malea
e199a571cb
Fix incorrect usage of buildDsym() in dwarf test
...
llvm-svn: 168371
2012-11-20 16:08:36 +00:00
Daniel Malea
a750049171
Skip dsym tests on Linux
...
llvm-svn: 168370
2012-11-20 16:07:33 +00:00
Filipe Cabecinhas
b3d5d71dfa
Rest of the fix for Thread
...
llvm-svn: 168343
2012-11-20 00:11:13 +00:00
Filipe Cabecinhas
648c5bd273
Remove unneeded const qualifier
...
llvm-svn: 168342
2012-11-20 00:03:38 +00:00
Filipe Cabecinhas
64b0107379
Remove unused member variable.
...
llvm-svn: 168339
2012-11-19 23:00:57 +00:00
Daniel Malea
218894788d
Temporarily skip tests known to hang on Linux
...
- opened bugzilla defects #14384 and #14385
llvm-svn: 168323
2012-11-19 20:55:52 +00:00
Daniel Malea
95ab3612f9
Linux fix: remove reference to cellspu (backend removed in llvm r167984)
...
llvm-svn: 168322
2012-11-19 19:46:04 +00:00
Greg Clayton
20921e1883
Added malloc introspection commands for Mac OS X for both GDB and LLDB.
...
llvm-svn: 168315
2012-11-19 17:47:29 +00:00
Greg Clayton
e4afd4d175
Add more info for shell commands being used by DebugSymbols.framework.
...
llvm-svn: 168314
2012-11-19 17:38:24 +00:00
Jason Molenda
d251c9d163
Han Ming's commit in r168228 had a bunch of 4-space tabs
...
in the source files. Expand to spaces. No content changes,
just whitespace.
llvm-svn: 168238
2012-11-17 01:41:04 +00:00
Han Ming Ong
c811d382f0
Follow up on <rdar://12720514>. Removed commented out code.
...
llvm-svn: 168232
2012-11-17 00:33:14 +00:00
Han Ming Ong
ab3b8b22a1
<rdar://problem/12720514> Sub-TLF: Provide service to profile the inferior
...
This allows client to query profiling states on the inferior.
llvm-svn: 168228
2012-11-17 00:21:04 +00:00
Greg Clayton
6670c7e4b4
Added symbols page for Mac OS X that explains how DebugSymbols.framework can be customized.
...
llvm-svn: 168224
2012-11-16 23:50:32 +00:00
Filipe Cabecinhas
83ae33d461
Fix expected error message in test.
...
llvm-svn: 168220
2012-11-16 23:18:41 +00:00
Greg Clayton
d97ec1c0ce
<rdar://problem/12238339>
...
Make sure architectures are obeyed for skinny mach files.
llvm-svn: 168205
2012-11-16 21:36:10 +00:00
Greg Clayton
38d880ac01
Fix lldb to compile with top of tree LLVM/clang.
...
llvm-svn: 168204
2012-11-16 21:35:22 +00:00
Greg Clayton
474148e4ac
<rdar://problem/12712928>
...
Removed an assert that was for debug only.
llvm-svn: 168190
2012-11-16 20:00:00 +00:00
Daniel Malea
f0854b070a
Update RecordingMemoryManager as per change to RuntimeDyld base class
...
made in upstream llvm (r168114)
llvm-svn: 168184
2012-11-16 19:17:44 +00:00
Jason Molenda
c78555c540
Change RegisterContextLLDB's unwind logging to report which stack frame
...
finally was able to restore a register, instead of just reporting the
frames that couldn't supply the reg.
llvm-svn: 168139
2012-11-16 06:15:40 +00:00
Jason Molenda
aff2a269e3
A change in how we search for saved register values unintentionally
...
allowed volatile registers to be returned up the stack. That leads
to unexpected/incorrect values provided to the user and we need to
avoid that.
<rdar://problem/12714247>
llvm-svn: 168123
2012-11-16 01:03:31 +00:00
Jim Ingham
b42f3af336
Don't lock the thread list during ThreadList::ShouldStop. That does too
...
much work for this to make sense. Just copy the current thread list and
operate on that. Prevents some deadlocks.
llvm-svn: 168106
2012-11-15 22:44:04 +00:00
Greg Clayton
824e7c0dfb
<rdar://problem/12125010>
...
Handle universal BSD archives correctly when parsing DWARF in .o files with debug map.
llvm-svn: 168075
2012-11-15 19:37:18 +00:00
Jim Ingham
ef404fc9c6
Explain how to use "expr -u" as the lldb equivalent of "set unwind-on-signal 0; print".
...
llvm-svn: 168071
2012-11-15 19:13:33 +00:00
Greg Clayton
fbea0f64e2
<rdar://problem/11782181>
...
Fixed an issue where lldb was setting breakpoints on too many methods when a partial function name with namespaces or class qualifiers was used. For example setting a breakpoint of "Foo::dealloc" was accidentally settings breakpoints on all objective C functions whose selector was "dealloc"...
llvm-svn: 168053
2012-11-15 18:05:43 +00:00
Sean Callanan
e0b23b5198
In cases where the Objective-C ivar symbols are stripped out,
...
expressions that refer to ivars will not work because Clang
emits IR that refers to them to get the ivar offsets.
However, it is possible to search the runtime for these values.
I have added support for reading the relevant tables to the
Objective-C runtime, and extended ClangExpressionDeclMap to
query that information if and only if it doesn't find the symbols
in the binary.
Also added a testcase.
<rdar://problem/12628122>
llvm-svn: 168018
2012-11-15 02:02:04 +00:00
Enrico Granata
e78fe11b6c
<rdar://problem/12408181> Test case to make sure this area of ObjC support does not regress in the future
...
llvm-svn: 168000
2012-11-14 23:45:48 +00:00
Jason Molenda
d525d0746e
Patch from Andrew Kaylor andrew.kaylor@intel.com to have
...
Thread::ResetFrameZeroRegisters() clear the UnwindLLDB object when
resetting the thread's register state.
llvm-svn: 167910
2012-11-14 04:26:02 +00:00
Greg Clayton
dffc54be70
<rdar://problem/12695557>
...
Added missing plist files for iOS.
llvm-svn: 167895
2012-11-14 00:23:48 +00:00
Jim Ingham
e9322ce61a
Revision of the patch from Andrew Kaylor <andrew.kaylor@intel.com> to prevent missing an event added in WaitForEventsInternal, narrowing the time in which we are not accepting new events. Also, made everything that was protected private, since there really isn't any good reason why subclasses would have to muck with the listener internals.
...
llvm-svn: 167857
2012-11-13 19:09:45 +00:00
Enrico Granata
5ce1d01887
Giving at least some error information when a Python exception happens during command script import
...
llvm-svn: 167810
2012-11-13 02:57:43 +00:00
Enrico Granata
c24eacc85d
<rdar://problem/11814875>
...
If a ValueObjectDynamic has no formatter, try using its static type to figure one out
llvm-svn: 167803
2012-11-13 02:05:45 +00:00
Greg Clayton
8defc464d5
Patch from Andrew Kaylor that fixes a race condition in the Listener.cpp.
...
llvm-svn: 167778
2012-11-12 23:15:22 +00:00