diff options
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S | 8 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c | 12 |
3 files changed, 23 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0b0f759..ed44b37 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2013-11-14 Omair Javaid <Omair.Javaid@linaro.org> + + * gdb.dwarf2/dw2-case-insensitive-debug.S: Updated compile unit + and function label names. + * gdb.dwarf2/dw2-case-insensitive.c: Created function and + compile unit labels. + 2013-11-14 Joel Brobecker <brobecker@adacore.com> * gdb.mi/mi-language.exp: New file. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S index db3cce8..22b01f9 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S @@ -29,14 +29,14 @@ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 8 /* DW_AT_language (DW_LANG_Fortran90) */ - .4byte FUNC_lang /* DW_AT_low_pc */ - .4byte main /* DW_AT_high_pc */ + .4byte cu_text_start /* DW_AT_low_pc */ + .4byte cu_text_end /* DW_AT_high_pc */ .uleb128 3 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .ascii "FUNC_lang\0" /* DW_AT_name */ - .4byte FUNC_lang /* DW_AT_low_pc */ - .4byte main /* DW_AT_high_pc */ + .4byte FUNC_lang_start /* DW_AT_low_pc */ + .4byte FUNC_lang_end /* DW_AT_high_pc */ .byte 1 /* DW_AT_prototyped */ .4byte .Ltype - .Lcu1_begin /* DW_AT_type */ diff --git a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c index 09e9683..4b3ea07 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c +++ b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c @@ -16,12 +16,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Use DW_LANG_Fortran90 for case insensitive DWARF. */ +asm (".globl cu_text_start"); +asm ("cu_text_start:"); + +asm (".globl FUNC_lang_start"); +asm (".p2align 4"); +asm ("FUNC_lang_start:"); void FUNC_lang (void) { } +asm (".globl FUNC_lang_end"); +asm ("FUNC_lang_end:"); + /* Symbol is present only in ELF .symtab. */ void @@ -36,3 +45,6 @@ main (void) FUNC_symtab (); return 0; } + +asm (".globl cu_text_end"); +asm ("cu_text_end:"); |