Commit Graph

58 Commits

Author SHA1 Message Date
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
Devang Patel
2d1d1f4942 New test case for r132949.
llvm-svn: 132950
2011-06-13 23:16:05 +00:00
Devang Patel
30a67a14e5 Remove working directory path from intermediate files. They are not checked in the output anyway.
llvm-svn: 132375
2011-05-31 23:57:48 +00:00
Eli Friedman
8f630d9ffc Fix tests broken by r132257.
llvm-svn: 132277
2011-05-29 03:51:55 +00:00
Renato Golin
161505f480 adding XFAIL and XTARGET to those that require Darwin host
llvm-svn: 132257
2011-05-28 14:03:16 +00:00
Douglas Gregor
097984480d Clang is now correctly marking this as a class, so update the test case accordingly
llvm-svn: 131797
2011-05-21 18:17:06 +00:00
Devang Patel
cef3760460 Test case for r131441.
llvm-svn: 131442
2011-05-17 00:20:50 +00:00
Devang Patel
539cde8bce Test case for r131422.
llvm-svn: 131423
2011-05-16 21:25:49 +00:00
Devang Patel
4a14cd9cf9 Test case for r130373.
llvm-svn: 130374
2011-04-28 02:23:17 +00:00
Devang Patel
443e46f16d Silence return-type warning.
llvm-svn: 130349
2011-04-28 00:02:06 +00:00
Devang Patel
90955228bb These tests are x86_64 specific.
llvm-svn: 128421
2011-03-28 20:00:34 +00:00
Devang Patel
2b54299705 Test case for r128150.
llvm-svn: 128151
2011-03-23 16:30:03 +00:00
Devang Patel
d9bc8e0817 test case for r125249.
llvm-svn: 125250
2011-02-10 00:41:14 +00:00
Devang Patel
d3a7ee6bfc Test case for r125142.
llvm-svn: 125144
2011-02-09 00:37:52 +00:00