diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-02-25 08:28:07 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-02-25 08:28:07 +0000 |
commit | 1d94651b5c68b31c6ac08bd6580f36aeb89f8e76 (patch) | |
tree | 90c64d29e39c5ab63320284eb1aa5c31d3b08b17 /gdb/testsuite/gdb.dwarf2/dw2-ranges.c | |
parent | 15a44d573df5846c607c0d5345a04ac81d78ce1c (diff) | |
download | gdb-1d94651b5c68b31c6ac08bd6580f36aeb89f8e76.zip gdb-1d94651b5c68b31c6ac08bd6580f36aeb89f8e76.tar.gz gdb-1d94651b5c68b31c6ac08bd6580f36aeb89f8e76.tar.bz2 |
gdb/testsuite/
* gdb.dwarf2/dw2-ranges.S: Rename to ...
* gdb.dwarf2/dw2-ranges.c: ... here, convert it to C.
* gdb.dwarf2/dw2-ranges.exp: Skip the testcase on !$gcc_compiled.
Rename srcfile, srcfile2 and srcfile3, new asmfile, asmfile2 and
asmfile3. Comment the STABS (#3) file compilation. Compile
everything through assembler. Provide KFAIL for symtab/12497.
* gdb.dwarf2/dw2-ranges2.S: Rename to ...
* gdb.dwarf2/dw2-ranges2.c: ... here, convert it to C.
* gdb.dwarf2/dw2-ranges3.S: Rename to ...
* gdb.dwarf2/dw2-ranges3.c: ... here, convert it to C.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-ranges.c')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-ranges.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges.c b/gdb/testsuite/gdb.dwarf2/dw2-ranges.c new file mode 100644 index 0000000..3572645 --- /dev/null +++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges.c @@ -0,0 +1,34 @@ +/* + Copyright 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/* Despite the sections below will be adjacent the assembler has to produce + DW_AT_ranges as the linker could place both sections at arbitrary locations. + */ + +/* `.fini' section is here to make sure `dw2-ranges.c' + vs. `dw2-ranges2.c' overlap their DW_AT_ranges with each other. */ + +void __attribute__ ((section (".fini"))) +func (void) +{ +} + +int +main (void) +{ + return 0; +} |