OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.dwarf2/] [dw2-inheritance.S] - Blame information for rev 318

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* This testcase is part of GDB, the GNU debugger.
2
 
3
   Copyright 2009, 2010 Free Software Foundation, Inc.
4
 
5
   This program is free software; you can redistribute it and/or modify
6
   it under the terms of the GNU General Public License as published by
7
   the Free Software Foundation; either version 3 of the License, or
8
   (at your option) any later version.
9
 
10
   This program is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
   GNU General Public License for more details.
14
 
15
   You should have received a copy of the GNU General Public License
16
   along with this program.  If not, see .  */
17
 
18
/* Test DW_TAG_inheritance using constant DW_AT_data_member_location
19
   introduced by GCC PR debug/40659.  */
20
 
21
/* Debug information */
22
 
23
        .section .debug_info
24
.Lcu1_begin:
25
        /* CU header */
26
        .4byte  .Lcu1_end - .Lcu1_start         /* Length of Compilation Unit */
27
.Lcu1_start:
28
        .2byte  2                               /* DWARF Version */
29
        .4byte  .Labbrev1_begin                 /* Offset into abbrev section */
30
        .byte   4                               /* Pointer size */
31
 
32
        /* CU die */
33
        .uleb128 1                              /* Abbrev: DW_TAG_compile_unit */
34
        .4byte  .Lline1_begin                   /* DW_AT_stmt_list */
35
        .ascii  "file1.txt\0"                   /* DW_AT_name */
36
        .ascii  "GNU C 3.3.3\0"                 /* DW_AT_producer */
37
        .byte   4                               /* DW_LANG_C_plus_plus (C++) */
38
 
39
.Lbase:
40
        .uleb128        3                       /* Abbrev: DW_TAG_class_type */
41
        .ascii          "base\0"                /* DW_AT_name */
42
        .byte           4                       /* DW_AT_byte_size */
43
 
44
        .byte           0                        /* End of children of "base" */
45
 
46
        .uleb128        3                       /* Abbrev: DW_TAG_class_type */
47
        .ascii          "inherited\0"           /* DW_AT_name */
48
        .byte           8                       /* DW_AT_byte_size */
49
 
50
        .uleb128        2                       /* Abbrev: DW_TAG_inheritance */
51
        .4byte          .Lbase-.Lcu1_begin      /* DW_AT_type */
52
        .byte           0                        /* DW_AT_data_member_location */
53
 
54
        .byte           0                        /* End of children of "inherited" */
55
 
56
        .byte           0                        /* End of children of CU */
57
 
58
.Lcu1_end:
59
 
60
/* Abbrev table */
61
        .section .debug_abbrev
62
.Labbrev1_begin:
63
        .uleb128        1                       /* Abbrev code */
64
        .uleb128        0x11                    /* DW_TAG_compile_unit */
65
        .byte           1                       /* has_children */
66
        .uleb128        0x10                    /* DW_AT_stmt_list */
67
        .uleb128        0x6                     /* DW_FORM_data4 */
68
        .uleb128        0x3                     /* DW_AT_name */
69
        .uleb128        0x8                     /* DW_FORM_string */
70
        .uleb128        0x25                    /* DW_AT_producer */
71
        .uleb128        0x8                     /* DW_FORM_string */
72
        .uleb128        0x13                    /* DW_AT_language */
73
        .uleb128        0xb                     /* DW_FORM_data1 */
74
        .byte           0x0                     /* Terminator */
75
        .byte           0x0                     /* Terminator */
76
 
77
        .uleb128        2                       /* Abbrev code */
78
        .uleb128        0x1c                    /* DW_TAG_inheritance */
79
        .byte           0                        /* has_children */
80
        .uleb128        0x49                    /* DW_AT_type */
81
        .uleb128        0x13                    /* DW_FORM_ref4 */
82
        .uleb128        0x38                    /* DW_AT_data_member_location */
83
        .uleb128        0xb                     /* DW_FORM_data1 */
84
        .byte           0x0                     /* Terminator */
85
        .byte           0x0                     /* Terminator */
86
 
87
        .uleb128        3                       /* Abbrev code */
88
        .uleb128        0x02                    /* DW_TAG_class_type */
89
        .byte           1                       /* has_children */
90
        .uleb128        0x3                     /* DW_AT_name */
91
        .uleb128        0x8                     /* DW_FORM_string */
92
        .uleb128        0xb                     /* DW_AT_byte_size */
93
        .uleb128        0xb                     /* DW_FORM_data1 */
94
        .byte           0x0                     /* Terminator */
95
        .byte           0x0                     /* Terminator */
96
 
97
        .byte           0x0                     /* Terminator */
98
        .byte           0x0                     /* Terminator */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.