summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86
Commit message (Collapse)AuthorAgeFilesLines
* PR14566: Debug Info: Removing top level lexical blocksDavid Blaikie2013-01-261-23/+22
| | | | | | | | | | This adds support for LLVM to accept metadata that doesn't include a top level lexical block in a function. Specifically LLVM couldn't handle this when there were file changes relating to these blocks. I've updated a few test cases to ensure other functionality (such as inlining) isn't affected by this change, but haven't pervasively updated all the test cases. llvm-svn: 173592
* Add back a RUN line removed by mistake by a previous commitEli Bendersky2013-01-251-0/+1
| | | | llvm-svn: 173502
* Now that llvm-dwarfdump supports flags to specify which DWARF section to dump,Eli Bendersky2013-01-2532-35/+34
| | | | | | | use them in tests that run llvm-dwarfdump. This is in order to make tests as specific as possible. llvm-svn: 173498
* The last of PR14471 - emission of constant floatsDavid Blaikie2013-01-201-28/+30
| | | | llvm-svn: 172941
* Fix a latent bug exposed by recent static member debug info changes.David Blaikie2013-01-191-29/+30
| | | | | | | We weren't encoding boolean constants correctly due to modeling boolean as a signed type & then sign extending an i1 up to a byte & getting 255. llvm-svn: 172926
* Split out DW_OP_addr for the split debug info DWARF5 proposal.Eric Christopher2013-01-181-0/+6
| | | | llvm-svn: 172857
* Fix the assembly and dissassembly of DW_FORM_sec_offset. Found this byEric Christopher2013-01-171-4/+8
| | | | | | | | | changing both the string of the dwo_name to be correct and the type of the statement list. Testcases all around. llvm-svn: 172699
* Add the DW_AT_GNU_addr_base for the skeleton cu. Add support forEric Christopher2013-01-171-0/+1
| | | | | | | emitting the dwarf32 version of DW_FORM_sec_offset and correct disassembler support. llvm-svn: 172698
* Make this test X86 only.Eric Christopher2013-01-161-1/+1
| | | | llvm-svn: 172652
* Move this to X86.Eric Christopher2013-01-161-0/+172
| | | | llvm-svn: 172651
* Split address information for DWARF5 split dwarf proposal. This involvesEric Christopher2013-01-151-1/+39
| | | | | | | | | | | | | | | using the DW_FORM_GNU_addr_index and a separate .debug_addr section which stays in the executable and is fully linked. Sneak in two other small changes: a) Print out the debug_str_offsets.dwo section. b) Change form we're expecting the entries in the debug_str_offsets.dwo section to take from ULEB128 to U32. Add tests for all of this in the fission-cu.ll test. llvm-svn: 172578
* Add the C testcase to this file.Eric Christopher2013-01-081-0/+6
| | | | | | Suggested by Dave Blaikie. llvm-svn: 171839
* Remove the llvm-local DW_TAG_vector_type tag and add a test toEric Christopher2013-01-081-0/+23
| | | | | | make sure that vector types do work. llvm-svn: 171833
* Mark artificial types as such in the annotated debug output.David Blaikie2013-01-081-0/+3
| | | | llvm-svn: 171826
* Add support for separating strings for the split debug info DWARF5Eric Christopher2013-01-071-4/+4
| | | | | | | | | | | | | proposal. This leaves the strings in the skeleton die as strp, but in all dwo files they're accessed now via DW_FORM_GNU_str_index. Add support for dumping these sections and modify the fission-cu.ll testcase to have the correct strings and form. Fix a small bug in the fixed form sizes routine that involved out of array accesses for the table and add a FIXME in the extractFast routine to fix this up. llvm-svn: 171779
* Emit DW_TAG_formal_parameter for unnamed parameters.David Blaikie2013-01-051-7/+14
| | | | | | | | | | This change essentially reverts r87069 which came without a test case. It causes no regressions in the GDB 7.5 test suite & fixes 25 xfails (commit to the test suite to follow). If anyone can present a test case that demonstrates why this check is necessary I'd be happy to account for it in one way or another. llvm-svn: 171609
* Add a name for the anonymous type we're creating for subrangeEric Christopher2013-01-044-42/+83
| | | | | | | | types and a FIXME for what we should be doing. Should solve the immediacy of PR12069 where our debug info is crashing another tool. llvm-svn: 171536
* Extend the dumping infrastructure to deal with additionalEric Christopher2013-01-021-2/+12
| | | | | | | | | | | | sections for debug info. These are some of the dwo sections from the DWARF5 split debug info proposal. Update the fission-cu.ll testcase to show what we should be able to dump more of now. Work in progress: Ultimately the relocations will be gone for the dwo section and the strings will be a different form (as well as the rest of the sections will be included). llvm-svn: 171428
* For the dwarf5 split debug info code split out the string sectionEric Christopher2012-12-272-4/+4
| | | | | | per compile unit/skeleton compile unit. Update tests accordingly. llvm-svn: 171133
* FileCheck-ize.Eric Christopher2012-12-271-5/+8
| | | | llvm-svn: 171132
* FileCheck-ize.Eric Christopher2012-12-271-7/+11
| | | | llvm-svn: 171131
* Right now all of the relocations are 32-bit dwarf, and the relocationEric Christopher2012-12-271-3/+4
| | | | | | | | information doesn't return an addend for Rel relocations. Go ahead and use this information to fix relocation handling inside dwarfdump for 32-bit ELF REL. llvm-svn: 171126
* Move these files over to the debug info directory.Eric Christopher2012-12-212-0/+112
| | | | llvm-svn: 170810
* Split out abbreviations for the skeleton info from the rest ofEric Christopher2012-12-191-0/+3
| | | | | | the abbreviations. Part of implementing split dwarf. llvm-svn: 170589
* Add support for passing -main-file-name all the way through toEric Christopher2012-12-182-1/+18
| | | | | | | | the assembler. Part of PR14624 llvm-svn: 170390
* Debug Info: add support to mark member variables as artificialDavid Blaikie2012-12-131-0/+1
| | | | | | This is the LLVM portion of r170154. llvm-svn: 170156
* Refactor out the abbreviation handling into a separate class thatEric Christopher2012-12-101-1/+1
| | | | | | | | | | | | controls each of the abbreviation sets (only a single one at the moment) and computes offsets separately as well for each set of DIEs. No real function change, ordering of abbreviations for the skeleton CU changed but only because we're computing in a separate order. Fix the testcase not to care. llvm-svn: 169793
* Use the somewhat semantic term "split dwarf" it more matches what'sEric Christopher2012-12-101-1/+1
| | | | | | going on and makes a lot of the terminology in comments make more sense. llvm-svn: 169758
* Handle non-default array bounds.Bill Wendling2012-12-061-0/+48
| | | | | | | | | Some languages, e.g. Ada and Pascal, allow you to specify that the array bounds are different from the default (1 in these cases). If we have a lower bound that's non-default, then we emit the lower bound. We also calculate the correct upper bound in those cases. llvm-svn: 169484
* Use the 'count' attribute to calculate the upper bound of an array.Bill Wendling2012-12-043-4/+6
| | | | | | | | | The count attribute is more accurate with regards to the size of an array. It also obviates the upper bound attribute in the subrange. We can also better handle an unbound array by setting the count to -1 instead of the lower bound to 1 and upper bound to 0. llvm-svn: 169312
* Reapply r160148 (reverted in r163570) fixing spurious breakpoints in modern GDBDavid Blaikie2012-12-041-0/+28
| | | | | | | | | | | | | | | | | This reapplies the fix for PR13303 now with more justification. Based on my execution of the GDB 7.5 test suite this results in: expected passes: 16101 -> 20890 (+30%) unexpected failures: 4826 -> 637 (-77%) There are 23 checks that used to pass and now fail. They are all in gdb.reverse. Investigating a few looks like they were accidentally passing due to extra breakpoints being set by this bug. They're generally due to the difference in end location between gcc and clang, the test suite is trying to set breakpoints on the closing '}' that clang doesn't associate with any instructions. llvm-svn: 169304
* Add a 'count' field to the DWARF subrange.Bill Wendling2012-12-042-0/+136
| | | | | | | | | The count field is necessary because there isn't a difference between the 'lo' and 'hi' attributes for a one-element array and a zero-element array. When the count is '0', we know that this is a zero-element array. When it's >=1, then it's a normal constant sized array. When it's -1, then the array is unbounded. llvm-svn: 169218
* Add some first skeleton work for the DWARF5 Fission proposal. EmitEric Christopher2012-11-301-0/+26
| | | | | | | | | part of the compile unit CU and start separating out information into the various sections that will be pulled out later. WIP. llvm-svn: 169061
* Add a relocation visitor to lib object. This works via caching relocatedEric Christopher2012-11-071-0/+109
| | | | | | | values in a map that can be passed to consumers. Add a testcase that ensures this works for llvm-dwarfdump. llvm-svn: 167558
* Make sure to generate the right kind of MDNode for enum forward declarations.Eli Friedman2012-10-051-9/+7
| | | | | | PR14029, LLVM part. llvm-svn: 165288
* Update this a bit more to represent how the prologue should work:Eric Christopher2012-10-041-0/+35
| | | | | | | | | | a) frame setup instructions define the prologue b) we shouldn't change our location mid-stream Add a test to make sure that the stack adjustment stays within the prologue. llvm-svn: 165250
* Revert 165051-165049 while looking into the foreach.m failure inEric Christopher2012-10-031-65/+0
| | | | | | more detail. llvm-svn: 165099
* Revert "Don't use a debug location for frame setup instructions in the"Eric Christopher2012-10-021-35/+0
| | | | | | | This reverts 165055 and 165052 temporarily while I look at debugger failures. llvm-svn: 165071
* Allow alternate instructions to silence bot.Eric Christopher2012-10-021-1/+1
| | | | llvm-svn: 165055
* Don't use a debug location for frame setup instructions in theEric Christopher2012-10-021-0/+35
| | | | | | | prologue. Also skip frame setup instructions when looking for the first location. llvm-svn: 165052
* Remove the SavePoint infrastructure from fast isel, replaceEric Christopher2012-10-021-0/+65
| | | | | | | with just an insert point from the MachineBasicBlock and let the location be updated as we access it. llvm-svn: 165049
* Fix broken tests.Benjamin Kramer2012-10-021-1/+2
| | | | llvm-svn: 165019
* Only emit DW_AT_object_pointer if this is a definition.Eric Christopher2012-09-201-2/+2
| | | | llvm-svn: 164326
* llvm/test/DebugInfo: Move two tests, 2010-04-13-PubType.ll and ↵NAKAMURA Takumi2012-09-182-0/+103
| | | | | | linkage-name.ll to X86. llvm-svn: 164129
* Recommit, with fixes:Eric Christopher2012-09-121-0/+79
| | | | | | | | | | | Add some support for dealing with an object pointer on arguments. Part of rdar://9797999 which now supports adding the object pointer attribute to the subprogram as it should. llvm-svn: 163754
* Revert "Add some support for dealing with an object pointer on arguments."Eric Christopher2012-09-121-77/+0
| | | | | | This should be done on the subprogram, not the variable itself. llvm-svn: 163734
* Add some support for dealing with an object pointer on arguments.Eric Christopher2012-09-121-0/+77
| | | | | | Part of rdar://9797999 llvm-svn: 163667
* Revert r160148 it seems to cause more problems than it shouldEric Christopher2012-09-101-28/+0
| | | | | | right now. We'll fix PR13303 a different way. llvm-svn: 163570
* Use DW_FORM_flag_present to save space in debug information if we'reEric Christopher2012-08-242-5/+5
| | | | | | | | not in darwin gdb compat mode. Fixes rdar://10975088 llvm-svn: 162526
* Remove the DW_AT_MIPS_linkage name attribute when we don't need itEric Christopher2012-08-231-4/+3
| | | | | | | | | | | output (we're emitting a specification already and the information isn't changing) and we're not in old gdb compat mode. Saves 1% on the debug information for a build of llvm. Fixes rdar://11043421 llvm-svn: 162493
OpenPOWER on IntegriCloud