Adrian Prantl
efd2b8f824
Add a test for PR33166.
...
This tests optimized code where a variable is allocated on the
stack for some part of the function.
llvm-svn: 303903
2017-05-25 19:33:16 +00:00
Adrian Prantl
18c18deb77
Add additional CHECKs to safestack.c.
...
llvm-svn: 300469
2017-04-17 17:57:05 +00:00
Adrian Prantl
7b2bf89ebe
Revert "Revert "Add a test for debug info with the safestack sanitizer enabled.""
...
This reapplies commit r299730 with an additional REQUIRES line.
llvm-svn: 300468
2017-04-17 17:57:03 +00:00
Adrian Prantl
c26059f831
Revert "Revert "Add a test for __block variables + asan.""
...
This reapplies commit r300228.
llvm-svn: 300467
2017-04-17 17:57:01 +00:00
Adrian Prantl
67caa192df
Revert "Revert "Add an end-to-end testcase for address sanitizer.""
...
This reapplies r299731 and adds an appropriate REQUIRES line.
llvm-svn: 300466
2017-04-17 17:56:59 +00:00
Ahmed Bougacha
27d260baec
Revert "Add a test for debug info with the safestack sanitizer enabled."
...
This reverts commit r299730.
It's causing failures on a bot because of missing compiler-rt:
http://green.lab.llvm.org/green/job/clang-stage2-cmake-RgSan_check
llvm-svn: 300460
2017-04-17 16:59:29 +00:00
Ahmed Bougacha
0f36aacc46
Revert "Add an end-to-end testcase for address sanitizer."
...
This reverts commit r299731.
It's causing failures on a bot because of missing compiler-rt:
http://green.lab.llvm.org/green/job/clang-stage2-cmake-RgSan_check
llvm-svn: 300459
2017-04-17 16:59:27 +00:00
Ahmed Bougacha
559d04d4c3
Revert "Add a test for __block variables + asan."
...
This reverts commit r300228.
It's causing failures on a bot because of missing compiler-rt:
http://green.lab.llvm.org/green/job/clang-stage2-cmake-RgSan_check
llvm-svn: 300458
2017-04-17 16:59:25 +00:00
Adrian Prantl
4ae261bcf7
Add a test for __block variables + asan.
...
llvm-svn: 300228
2017-04-13 18:06:59 +00:00
Adrian Prantl
5dcbbbc1c6
Add an end-to-end testcase for address sanitizer.
...
llvm-svn: 299731
2017-04-06 23:36:44 +00:00
Adrian Prantl
37b72b428a
Add a test for debug info with the safestack sanitizer enabled.
...
llvm-svn: 299730
2017-04-06 23:30:51 +00:00
Adrian Prantl
469e119a6f
Add DEBUGGER and CHECKs back to dbg-arg.c
...
When this testcase was migrated from IR to source the DEBUGGER
commands were not migrated together with the rest of the testcase. It
was also compiling without debug info.
Make the testcase slightly less useless by adding them back in :-)
llvm-svn: 299673
2017-04-06 17:59:50 +00:00
Adrian Prantl
7e8f2ae649
Add a testcase for variable-length arrays.
...
VLAs are special-cased in the frontend. This testcase ensures that the
contract between clang and llvm won't be accidentally broken by future
refactorings.
llvm-svn: 299668
2017-04-06 17:40:31 +00:00
Filipe Cabecinhas
090a237f29
New round of fixes for "Always compile debuginfo-tests for the host triple"
...
clang tests were breaking, at least when compiling clang only, from an
installed llvm. Make the lit.cfg script deal with the case when we don't
have a host_triple available.
llvm-svn: 220152
2014-10-18 23:47:59 +00:00
Filipe Cabecinhas
63f2c2cb65
Always compile debuginfo-tests for the host triple
...
Since these tests expect a working debugger, always compile them for the
host triple, assuming a working debugger is present.
This enables us to compile and run them, even when clang is, by default,
a cross-compiler (but can still target the host).
llvm-svn: 219992
2014-10-16 23:43:34 +00:00
Adrian Prantl
17a0011082
cleanup comments and remove an obsolete workaround
...
llvm-svn: 219623
2014-10-13 18:04:10 +00:00
Adrian Prantl
971ad5925c
Address review comments from Justin Bogner.
...
- raise without arguments is preserving the backtrace
- move the call to terminate lldb to the exit handler
llvm-svn: 219618
2014-10-13 16:34:31 +00:00
Adrian Prantl
32cac2e062
Properly shutdown lldb by invoking SBDebugger_Terminate()
...
rdar://problem/18577039
llvm-svn: 219451
2014-10-09 22:16:46 +00:00
Adrian Prantl
8bcc993e27
relax testcase for LLDB output format compatibility.
...
llvm-svn: 204280
2014-03-19 23:06:18 +00:00
Adrian Prantl
5876656c5e
Revert "xfail a test on darwin because some of the public buildbots are stuck on"
...
This reverts commit 203504. We decided that it is better to disable this test on a per-buildbot basis in zorg rather than everywhere on Darwin.
llvm-svn: 203627
2014-03-11 23:49:31 +00:00
Adrian Prantl
de93b01a16
xfail a test on darwin because some of the public buildbots are stuck on
...
older versions of LLDB.
llvm-svn: 203504
2014-03-10 22:30:45 +00:00
Adrian Prantl
cece9ccaf1
Revert "Experimentally enable --verify-debug-info on some testcases and see if"
...
Some of the buildbots need to be upgraded to a more recen version of
dwarfdump first.
Reverting for now.
llvm-svn: 203338
2014-03-08 02:46:36 +00:00
Adrian Prantl
f3c43d14d9
Experimentally enable --verify-debug-info on some testcases and see if
...
the buildbots can take it.
llvm-svn: 203327
2014-03-08 01:23:49 +00:00
Adrian Prantl
8b466d5474
Add back the original version of the test, too. (as XFAILed on Darwin)
...
llvm-svn: 203326
2014-03-08 01:21:37 +00:00
Adrian Prantl
32347758b3
Work around a bug in LLDB (it finds the wrong "C", rdar://problem/14933867)
...
and enable this test on Darwin.
llvm-svn: 203324
2014-03-08 01:03:55 +00:00
Adrian Prantl
eace60b161
Relax testcase: Newer versions of LLDB don't necessarily print the "{".
...
llvm-svn: 202415
2014-02-27 17:51:50 +00:00
Adrian Prantl
11f0d2ce92
Relax testcase: Newer versions of LLDB don't necessarily print the "{" either.
...
llvm-svn: 202319
2014-02-27 00:02:40 +00:00
Adrian Prantl
75c4779943
Add a fallback path for buildbots temporarily stuck on really old
...
versions of LLDB.
llvm-svn: 201828
2014-02-21 00:17:02 +00:00
Adrian Prantl
5cd2f3ee95
Relax testcases. LLDB starts counting at $0.
...
llvm-svn: 201806
2014-02-20 19:51:07 +00:00
Adrian Prantl
d913c86b93
don't use CHECK-NEXT because it may be on the same line.
...
llvm-svn: 190969
2013-09-18 23:01:54 +00:00
Adrian Prantl
7f6f3bb86b
Massage those regexps to work with both lldb and gdb.
...
llvm-svn: 190967
2013-09-18 22:56:35 +00:00
Adrian Prantl
ee30f63cc1
Auto-detect the architecture of the executable instead of using the arch of
...
the kernel.
llvm-svn: 190256
2013-09-07 20:04:29 +00:00
Adrian Prantl
002c2a8ece
Set the architecture when creating a target.
...
llvm-svn: 190252
2013-09-07 17:14:37 +00:00
Adrian Prantl
5ef1c861dd
Use a more backwards-compatible method for evaluating expressions and add
...
more explanatory error messages.
llvm-svn: 190215
2013-09-06 22:33:52 +00:00
Adrian Prantl
888e023e0d
Add an lldb wrapper script that implements gdb-compatible commands on top
...
of lldb. This will be the new default method for executing the tests in
this repository on Darwin.
There is also a related patch for llvm/utils/test_debuginfo.pl coming.
I also relaxed some of the checks to work with both gdb's and lldb's
output.
llvm-svn: 190185
2013-09-06 18:10:44 +00:00
Adrian Prantl
f88c554b10
fix typos
...
llvm-svn: 190184
2013-09-06 18:10:42 +00:00
Eric Christopher
8b6f708cda
Only fail this on darwin since most other platforms should have a newer
...
gdb.
llvm-svn: 189920
2013-09-04 05:06:10 +00:00
Michael Gottesman
9672fcf1e5
XFAILed the static-member.cpp test since we no longer support emitting debug info that support what Eric calls "the member hack".
...
llvm-svn: 189915
2013-09-04 04:44:05 +00:00
David Blaikie
86feadcc76
Now that we get non-trivial value parameters locations correct, un-XFAIL these tests.
...
llvm-svn: 184372
2013-06-19 22:07:11 +00:00
David Blaikie
fbbb8f32b0
We've got the type right, which has broken these tests - but now we need to get the location information correct that the type was papering over
...
llvm-svn: 183576
2013-06-07 22:09:23 +00:00
David Blaikie
7e138ff572
Remove IR scenario tests.
...
These are a burden to maintain & use hand crafted IR to test particular DWARF
generation cases in LLVM. If someone thinks there's high value coverage here
they can rephrase these as IR+dwarfdump tests in the LLVM regression suite so
they'll be portable/easily executed by all developers.
llvm-svn: 177182
2013-03-15 20:52:10 +00:00
David Blaikie
cebc623798
Migrate dbg-arg.ll to a C file test to be resilient to IR changes.
...
llvm-svn: 176964
2013-03-13 18:46:28 +00:00
Eric Christopher
5724ee9765
Harden this test a bit to work on the mac with ancient gdbs.
...
llvm-svn: 172752
2013-01-17 20:09:50 +00:00
Eric Christopher
2ccf3a291d
Add a test for static member debug information.
...
Part of PR14471.
Patch by Paul Robinson.
llvm-svn: 172589
2013-01-16 01:22:09 +00:00
Argyrios Kyrtzidis
8f68817738
XTARGET was removed, update debug-info tests.
...
llvm-svn: 166362
2012-10-20 01:38:50 +00:00
Eric Christopher
118c1961ae
Fix this for gdb 7.4.
...
Patch by Andy Gibbs.
llvm-svn: 160639
2012-07-23 19:41:58 +00:00
Eric Christopher
cc389be552
Fix this for buggy gdb behavior alongside the change
...
to clang that omits debug information for non-user-defined
methods.
llvm-svn: 158008
2012-06-05 18:16:03 +00:00
Eric Christopher
e6a602dfab
Revert previous patch as the corresponding clang patch was reverted.
...
gdb's tests are too dependent upon order in debug info.
llvm-svn: 149050
2012-01-26 07:01:33 +00:00
Eric Christopher
7b878febf1
Reverse the order that these are expected for clang change. Should
...
be no functional change (the offsets in AT_data_member_location are still
correct). If the gdb testsuite itself needs changing then I'll revert this
and the clang patch.
llvm-svn: 149026
2012-01-26 02:33:53 +00:00
Devang Patel
ce04aa5a2c
Testcase for r133065
...
llvm-svn: 133066
2011-06-15 17:57:23 +00:00