Home | History | Annotate | Download | only in tests
      1 #! /bin/sh
      2 # Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005 Red Hat, Inc.
      3 # This file is part of elfutils.
      4 # Written by Ulrich Drepper <drepper (at] redhat.com>, 1999.
      5 #
      6 # This file is free software; you can redistribute it and/or modify
      7 # it under the terms of the GNU General Public License as published by
      8 # the Free Software Foundation; either version 3 of the License, or
      9 # (at your option) any later version.
     10 #
     11 # elfutils is distributed in the hope that it will be useful, but
     12 # WITHOUT ANY WARRANTY; without even the implied warranty of
     13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14 # GNU General Public License for more details.
     15 #
     16 # You should have received a copy of the GNU General Public License
     17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     18 
     19 . $srcdir/test-subr.sh
     20 
     21 testfiles testfile5 testfile2
     22 
     23 testrun_compare ${abs_builddir}/show-die-info testfile5 testfile2 <<\EOF
     24 file: testfile5
     25 New CU: off = 0, hsize = 11, ab = 0, as = 4, os = 4
     26      DW_TAG_compile_unit
     27       Name      : b.c
     28       Offset    : 11
     29       CU offset : 11
     30       Attrs     : name stmt_list low_pc high_pc language comp_dir producer
     31       low PC    : 0x804842c
     32       high PC   : 0x8048436
     33       language  : 1
     34       directory : /home/drepper/gnu/new-bu/build/ttt
     35       producer  : GNU C 2.96 20000731 (Red Hat Linux 7.0)
     36           DW_TAG_subprogram
     37            Name      : bar
     38            Offset    : 104
     39            CU offset : 104
     40            Attrs     : name low_pc high_pc prototyped decl_file decl_line external frame_base type
     41            low PC    : 0x804842c
     42            high PC   : 0x8048436
     43           DW_TAG_base_type
     44            Name      : int
     45            Offset    : 127
     46            CU offset : 127
     47            Attrs     : name byte_size encoding
     48            byte size : 4
     49 New CU: off = 135, hsize = 11, ab = 54, as = 4, os = 4
     50      DW_TAG_compile_unit
     51       Name      : f.c
     52       Offset    : 146
     53       CU offset : 11
     54       Attrs     : name stmt_list low_pc high_pc language comp_dir producer
     55       low PC    : 0x8048438
     56       high PC   : 0x8048442
     57       language  : 1
     58       directory : /home/drepper/gnu/new-bu/build/ttt
     59       producer  : GNU C 2.96 20000731 (Red Hat Linux 7.0)
     60           DW_TAG_subprogram
     61            Name      : foo
     62            Offset    : 239
     63            CU offset : 104
     64            Attrs     : name low_pc high_pc prototyped decl_file decl_line external frame_base type
     65            low PC    : 0x8048438
     66            high PC   : 0x8048442
     67           DW_TAG_base_type
     68            Name      : int
     69            Offset    : 262
     70            CU offset : 127
     71            Attrs     : name byte_size encoding
     72            byte size : 4
     73 New CU: off = 270, hsize = 11, ab = 108, as = 4, os = 4
     74      DW_TAG_compile_unit
     75       Name      : m.c
     76       Offset    : 281
     77       CU offset : 11
     78       Attrs     : name stmt_list low_pc high_pc language comp_dir producer
     79       low PC    : 0x8048444
     80       high PC   : 0x8048472
     81       language  : 1
     82       directory : /home/drepper/gnu/new-bu/build/ttt
     83       producer  : GNU C 2.96 20000731 (Red Hat Linux 7.0)
     84           DW_TAG_subprogram
     85            Name      : main
     86            Offset    : 374
     87            CU offset : 104
     88            Attrs     : sibling name low_pc high_pc prototyped decl_file decl_line external frame_base type
     89            low PC    : 0x8048444
     90            high PC   : 0x8048472
     91                DW_TAG_subprogram
     92                 Name      : bar
     93                 Offset    : 402
     94                 CU offset : 132
     95                 Attrs     : sibling name decl_file decl_line declaration external type
     96                     DW_TAG_unspecified_parameters
     97                      Name      : * NO NAME *
     98                      Offset    : 419
     99                      CU offset : 149
    100                      Attrs     :
    101                DW_TAG_subprogram
    102                 Name      : foo
    103                 Offset    : 421
    104                 CU offset : 151
    105                 Attrs     : name decl_file decl_line declaration external type
    106                     DW_TAG_unspecified_parameters
    107                      Name      : * NO NAME *
    108                      Offset    : 434
    109                      CU offset : 164
    110                      Attrs     :
    111           DW_TAG_base_type
    112            Name      : int
    113            Offset    : 437
    114            CU offset : 167
    115            Attrs     : name byte_size encoding
    116            byte size : 4
    117           DW_TAG_variable
    118            Name      : a
    119            Offset    : 444
    120            CU offset : 174
    121            Attrs     : location name decl_file decl_line external type
    122 file: testfile2
    123 New CU: off = 0, hsize = 11, ab = 0, as = 4, os = 4
    124      DW_TAG_compile_unit
    125       Name      : b.c
    126       Offset    : 11
    127       CU offset : 11
    128       Attrs     : name stmt_list low_pc high_pc language comp_dir producer
    129       low PC    : 0x10000470
    130       high PC   : 0x10000490
    131       language  : 1
    132       directory : /shoggoth/drepper
    133       producer  : GNU C 2.96-laurel-000912
    134           DW_TAG_subprogram
    135            Name      : bar
    136            Offset    : 72
    137            CU offset : 72
    138            Attrs     : name low_pc high_pc prototyped decl_file decl_line external frame_base type
    139            low PC    : 0x10000470
    140            high PC   : 0x10000490
    141           DW_TAG_base_type
    142            Name      : int
    143            Offset    : 95
    144            CU offset : 95
    145            Attrs     : name byte_size encoding
    146            byte size : 4
    147           DW_TAG_typedef
    148            Name      : size_t
    149            Offset    : 102
    150            CU offset : 102
    151            Attrs     : name decl_file decl_line type
    152           DW_TAG_base_type
    153            Name      : unsigned int
    154            Offset    : 116
    155            CU offset : 116
    156            Attrs     : name byte_size encoding
    157            byte size : 4
    158           DW_TAG_typedef
    159            Name      : __gnuc_va_list
    160            Offset    : 132
    161            CU offset : 132
    162            Attrs     : name decl_file decl_line type
    163           DW_TAG_array_type
    164            Name      : __builtin_va_list
    165            Offset    : 154
    166            CU offset : 154
    167            Attrs     : sibling name type
    168                DW_TAG_subrange_type
    169                 Name      : * NO NAME *
    170                 Offset    : 181
    171                 CU offset : 181
    172                 Attrs     : upper_bound type
    173           DW_TAG_base_type
    174            Name      : unsigned int
    175            Offset    : 188
    176            CU offset : 188
    177            Attrs     : name byte_size encoding
    178            byte size : 4
    179           DW_TAG_structure_type
    180            Name      : __va_list_tag
    181            Offset    : 204
    182            CU offset : 204
    183            Attrs     : sibling name byte_size decl_file decl_line
    184            byte size : 12
    185                DW_TAG_member
    186                 Name      : gpr
    187                 Offset    : 226
    188                 CU offset : 226
    189                 Attrs     : name data_member_location decl_file decl_line type
    190                DW_TAG_member
    191                 Name      : fpr
    192                 Offset    : 240
    193                 CU offset : 240
    194                 Attrs     : name data_member_location decl_file decl_line type
    195                DW_TAG_member
    196                 Name      : overflow_arg_area
    197                 Offset    : 254
    198                 CU offset : 254
    199                 Attrs     : name data_member_location decl_file decl_line type
    200                DW_TAG_member
    201                 Name      : reg_save_area
    202                 Offset    : 282
    203                 CU offset : 282
    204                 Attrs     : name data_member_location decl_file decl_line type
    205           DW_TAG_base_type
    206            Name      : unsigned char
    207            Offset    : 307
    208            CU offset : 307
    209            Attrs     : name byte_size encoding
    210            byte size : 1
    211           DW_TAG_pointer_type
    212            Name      : * NO NAME *
    213            Offset    : 324
    214            CU offset : 324
    215            Attrs     : byte_size
    216            byte size : 4
    217           DW_TAG_typedef
    218            Name      : __u_char
    219            Offset    : 326
    220            CU offset : 326
    221            Attrs     : name decl_file decl_line type
    222           DW_TAG_typedef
    223            Name      : __u_short
    224            Offset    : 342
    225            CU offset : 342
    226            Attrs     : name decl_file decl_line type
    227           DW_TAG_base_type
    228            Name      : short unsigned int
    229            Offset    : 359
    230            CU offset : 359
    231            Attrs     : name byte_size encoding
    232            byte size : 2
    233           DW_TAG_typedef
    234            Name      : __u_int
    235            Offset    : 381
    236            CU offset : 381
    237            Attrs     : name decl_file decl_line type
    238           DW_TAG_typedef
    239            Name      : __u_long
    240            Offset    : 396
    241            CU offset : 396
    242            Attrs     : name decl_file decl_line type
    243           DW_TAG_base_type
    244            Name      : long unsigned int
    245            Offset    : 412
    246            CU offset : 412
    247            Attrs     : name byte_size encoding
    248            byte size : 4
    249           DW_TAG_typedef
    250            Name      : __u_quad_t
    251            Offset    : 433
    252            CU offset : 433
    253            Attrs     : name decl_file decl_line type
    254           DW_TAG_base_type
    255            Name      : long long unsigned int
    256            Offset    : 451
    257            CU offset : 451
    258            Attrs     : name byte_size encoding
    259            byte size : 8
    260           DW_TAG_typedef
    261            Name      : __quad_t
    262            Offset    : 477
    263            CU offset : 477
    264            Attrs     : name decl_file decl_line type
    265           DW_TAG_base_type
    266            Name      : long long int
    267            Offset    : 493
    268            CU offset : 493
    269            Attrs     : name byte_size encoding
    270            byte size : 8
    271           DW_TAG_typedef
    272            Name      : __int8_t
    273            Offset    : 510
    274            CU offset : 510
    275            Attrs     : name decl_file decl_line type
    276           DW_TAG_base_type
    277            Name      : signed char
    278            Offset    : 526
    279            CU offset : 526
    280            Attrs     : name byte_size encoding
    281            byte size : 1
    282           DW_TAG_typedef
    283            Name      : __uint8_t
    284            Offset    : 541
    285            CU offset : 541
    286            Attrs     : name decl_file decl_line type
    287           DW_TAG_typedef
    288            Name      : __int16_t
    289            Offset    : 558
    290            CU offset : 558
    291            Attrs     : name decl_file decl_line type
    292           DW_TAG_base_type
    293            Name      : short int
    294            Offset    : 575
    295            CU offset : 575
    296            Attrs     : name byte_size encoding
    297            byte size : 2
    298           DW_TAG_typedef
    299            Name      : __uint16_t
    300            Offset    : 588
    301            CU offset : 588
    302            Attrs     : name decl_file decl_line type
    303           DW_TAG_typedef
    304            Name      : __int32_t
    305            Offset    : 606
    306            CU offset : 606
    307            Attrs     : name decl_file decl_line type
    308           DW_TAG_typedef
    309            Name      : __uint32_t
    310            Offset    : 623
    311            CU offset : 623
    312            Attrs     : name decl_file decl_line type
    313           DW_TAG_typedef
    314            Name      : __int64_t
    315            Offset    : 641
    316            CU offset : 641
    317            Attrs     : name decl_file decl_line type
    318           DW_TAG_typedef
    319            Name      : __uint64_t
    320            Offset    : 658
    321            CU offset : 658
    322            Attrs     : name decl_file decl_line type
    323           DW_TAG_typedef
    324            Name      : __qaddr_t
    325            Offset    : 676
    326            CU offset : 676
    327            Attrs     : name decl_file decl_line type
    328           DW_TAG_pointer_type
    329            Name      : * NO NAME *
    330            Offset    : 693
    331            CU offset : 693
    332            Attrs     : byte_size type
    333            byte size : 4
    334           DW_TAG_typedef
    335            Name      : __dev_t
    336            Offset    : 699
    337            CU offset : 699
    338            Attrs     : name decl_file decl_line type
    339           DW_TAG_typedef
    340            Name      : __uid_t
    341            Offset    : 714
    342            CU offset : 714
    343            Attrs     : name decl_file decl_line type
    344           DW_TAG_typedef
    345            Name      : __gid_t
    346            Offset    : 729
    347            CU offset : 729
    348            Attrs     : name decl_file decl_line type
    349           DW_TAG_typedef
    350            Name      : __ino_t
    351            Offset    : 744
    352            CU offset : 744
    353            Attrs     : name decl_file decl_line type
    354           DW_TAG_typedef
    355            Name      : __mode_t
    356            Offset    : 759
    357            CU offset : 759
    358            Attrs     : name decl_file decl_line type
    359           DW_TAG_typedef
    360            Name      : __nlink_t
    361            Offset    : 775
    362            CU offset : 775
    363            Attrs     : name decl_file decl_line type
    364           DW_TAG_typedef
    365            Name      : __off_t
    366            Offset    : 792
    367            CU offset : 792
    368            Attrs     : name decl_file decl_line type
    369           DW_TAG_base_type
    370            Name      : long int
    371            Offset    : 807
    372            CU offset : 807
    373            Attrs     : name byte_size encoding
    374            byte size : 4
    375           DW_TAG_typedef
    376            Name      : __loff_t
    377            Offset    : 819
    378            CU offset : 819
    379            Attrs     : name decl_file decl_line type
    380           DW_TAG_typedef
    381            Name      : __pid_t
    382            Offset    : 835
    383            CU offset : 835
    384            Attrs     : name decl_file decl_line type
    385           DW_TAG_typedef
    386            Name      : __ssize_t
    387            Offset    : 850
    388            CU offset : 850
    389            Attrs     : name decl_file decl_line type
    390           DW_TAG_typedef
    391            Name      : __rlim_t
    392            Offset    : 867
    393            CU offset : 867
    394            Attrs     : name decl_file decl_line type
    395           DW_TAG_typedef
    396            Name      : __rlim64_t
    397            Offset    : 883
    398            CU offset : 883
    399            Attrs     : name decl_file decl_line type
    400           DW_TAG_typedef
    401            Name      : __id_t
    402            Offset    : 901
    403            CU offset : 901
    404            Attrs     : name decl_file decl_line type
    405           DW_TAG_structure_type
    406            Name      : * NO NAME *
    407            Offset    : 915
    408            CU offset : 915
    409            Attrs     : sibling byte_size decl_file decl_line
    410            byte size : 8
    411                DW_TAG_member
    412                 Name      : __val
    413                 Offset    : 923
    414                 CU offset : 923
    415                 Attrs     : name data_member_location decl_file decl_line type
    416           DW_TAG_array_type
    417            Name      : * NO NAME *
    418            Offset    : 940
    419            CU offset : 940
    420            Attrs     : sibling type
    421                DW_TAG_subrange_type
    422                 Name      : * NO NAME *
    423                 Offset    : 949
    424                 CU offset : 949
    425                 Attrs     : upper_bound type
    426           DW_TAG_typedef
    427            Name      : __fsid_t
    428            Offset    : 956
    429            CU offset : 956
    430            Attrs     : name decl_file decl_line type
    431           DW_TAG_typedef
    432            Name      : __daddr_t
    433            Offset    : 972
    434            CU offset : 972
    435            Attrs     : name decl_file decl_line type
    436           DW_TAG_typedef
    437            Name      : __caddr_t
    438            Offset    : 989
    439            CU offset : 989
    440            Attrs     : name decl_file decl_line type
    441           DW_TAG_pointer_type
    442            Name      : * NO NAME *
    443            Offset    : 1006
    444            CU offset : 1006
    445            Attrs     : byte_size type
    446            byte size : 4
    447           DW_TAG_base_type
    448            Name      : char
    449            Offset    : 1012
    450            CU offset : 1012
    451            Attrs     : name byte_size encoding
    452            byte size : 1
    453           DW_TAG_typedef
    454            Name      : __time_t
    455            Offset    : 1020
    456            CU offset : 1020
    457            Attrs     : name decl_file decl_line type
    458           DW_TAG_typedef
    459            Name      : __swblk_t
    460            Offset    : 1036
    461            CU offset : 1036
    462            Attrs     : name decl_file decl_line type
    463           DW_TAG_typedef
    464            Name      : __clock_t
    465            Offset    : 1053
    466            CU offset : 1053
    467            Attrs     : name decl_file decl_line type
    468           DW_TAG_typedef
    469            Name      : __fd_mask
    470            Offset    : 1070
    471            CU offset : 1070
    472            Attrs     : name decl_file decl_line type
    473           DW_TAG_structure_type
    474            Name      : * NO NAME *
    475            Offset    : 1087
    476            CU offset : 1087
    477            Attrs     : sibling byte_size decl_file decl_line
    478            byte size : 128
    479                DW_TAG_member
    480                 Name      : __fds_bits
    481                 Offset    : 1095
    482                 CU offset : 1095
    483                 Attrs     : name data_member_location decl_file decl_line type
    484           DW_TAG_array_type
    485            Name      : * NO NAME *
    486            Offset    : 1117
    487            CU offset : 1117
    488            Attrs     : sibling type
    489                DW_TAG_subrange_type
    490                 Name      : * NO NAME *
    491                 Offset    : 1126
    492                 CU offset : 1126
    493                 Attrs     : upper_bound type
    494           DW_TAG_typedef
    495            Name      : __fd_set
    496            Offset    : 1133
    497            CU offset : 1133
    498            Attrs     : name decl_file decl_line type
    499           DW_TAG_typedef
    500            Name      : __key_t
    501            Offset    : 1149
    502            CU offset : 1149
    503            Attrs     : name decl_file decl_line type
    504           DW_TAG_typedef
    505            Name      : __ipc_pid_t
    506            Offset    : 1164
    507            CU offset : 1164
    508            Attrs     : name decl_file decl_line type
    509           DW_TAG_typedef
    510            Name      : __blkcnt_t
    511            Offset    : 1183
    512            CU offset : 1183
    513            Attrs     : name decl_file decl_line type
    514           DW_TAG_typedef
    515            Name      : __blkcnt64_t
    516            Offset    : 1201
    517            CU offset : 1201
    518            Attrs     : name decl_file decl_line type
    519           DW_TAG_typedef
    520            Name      : __fsblkcnt_t
    521            Offset    : 1221
    522            CU offset : 1221
    523            Attrs     : name decl_file decl_line type
    524           DW_TAG_typedef
    525            Name      : __fsblkcnt64_t
    526            Offset    : 1241
    527            CU offset : 1241
    528            Attrs     : name decl_file decl_line type
    529           DW_TAG_typedef
    530            Name      : __fsfilcnt_t
    531            Offset    : 1263
    532            CU offset : 1263
    533            Attrs     : name decl_file decl_line type
    534           DW_TAG_typedef
    535            Name      : __fsfilcnt64_t
    536            Offset    : 1283
    537            CU offset : 1283
    538            Attrs     : name decl_file decl_line type
    539           DW_TAG_typedef
    540            Name      : __ino64_t
    541            Offset    : 1305
    542            CU offset : 1305
    543            Attrs     : name decl_file decl_line type
    544           DW_TAG_typedef
    545            Name      : __off64_t
    546            Offset    : 1322
    547            CU offset : 1322
    548            Attrs     : name decl_file decl_line type
    549           DW_TAG_typedef
    550            Name      : __t_scalar_t
    551            Offset    : 1339
    552            CU offset : 1339
    553            Attrs     : name decl_file decl_line type
    554           DW_TAG_typedef
    555            Name      : __t_uscalar_t
    556            Offset    : 1359
    557            CU offset : 1359
    558            Attrs     : name decl_file decl_line type
    559           DW_TAG_typedef
    560            Name      : __intptr_t
    561            Offset    : 1380
    562            CU offset : 1380
    563            Attrs     : name decl_file decl_line type
    564           DW_TAG_structure_type
    565            Name      : _IO_FILE
    566            Offset    : 1398
    567            CU offset : 1398
    568            Attrs     : sibling name byte_size decl_file decl_line
    569            byte size : 152
    570                DW_TAG_member
    571                 Name      : _flags
    572                 Offset    : 1415
    573                 CU offset : 1415
    574                 Attrs     : name data_member_location decl_file decl_line type
    575                DW_TAG_member
    576                 Name      : _IO_read_ptr
    577                 Offset    : 1432
    578                 CU offset : 1432
    579                 Attrs     : name data_member_location decl_file decl_line type
    580                DW_TAG_member
    581                 Name      : _IO_read_end
    582                 Offset    : 1455
    583                 CU offset : 1455
    584                 Attrs     : name data_member_location decl_file decl_line type
    585                DW_TAG_member
    586                 Name      : _IO_read_base
    587                 Offset    : 1478
    588                 CU offset : 1478
    589                 Attrs     : name data_member_location decl_file decl_line type
    590                DW_TAG_member
    591                 Name      : _IO_write_base
    592                 Offset    : 1502
    593                 CU offset : 1502
    594                 Attrs     : name data_member_location decl_file decl_line type
    595                DW_TAG_member
    596                 Name      : _IO_write_ptr
    597                 Offset    : 1527
    598                 CU offset : 1527
    599                 Attrs     : name data_member_location decl_file decl_line type
    600                DW_TAG_member
    601                 Name      : _IO_write_end
    602                 Offset    : 1551
    603                 CU offset : 1551
    604                 Attrs     : name data_member_location decl_file decl_line type
    605                DW_TAG_member
    606                 Name      : _IO_buf_base
    607                 Offset    : 1575
    608                 CU offset : 1575
    609                 Attrs     : name data_member_location decl_file decl_line type
    610                DW_TAG_member
    611                 Name      : _IO_buf_end
    612                 Offset    : 1598
    613                 CU offset : 1598
    614                 Attrs     : name data_member_location decl_file decl_line type
    615                DW_TAG_member
    616                 Name      : _IO_save_base
    617                 Offset    : 1620
    618                 CU offset : 1620
    619                 Attrs     : name data_member_location decl_file decl_line type
    620                DW_TAG_member
    621                 Name      : _IO_backup_base
    622                 Offset    : 1644
    623                 CU offset : 1644
    624                 Attrs     : name data_member_location decl_file decl_line type
    625                DW_TAG_member
    626                 Name      : _IO_save_end
    627                 Offset    : 1670
    628                 CU offset : 1670
    629                 Attrs     : name data_member_location decl_file decl_line type
    630                DW_TAG_member
    631                 Name      : _markers
    632                 Offset    : 1693
    633                 CU offset : 1693
    634                 Attrs     : name data_member_location decl_file decl_line type
    635                DW_TAG_member
    636                 Name      : _chain
    637                 Offset    : 1712
    638                 CU offset : 1712
    639                 Attrs     : name data_member_location decl_file decl_line type
    640                DW_TAG_member
    641                 Name      : _fileno
    642                 Offset    : 1729
    643                 CU offset : 1729
    644                 Attrs     : name data_member_location decl_file decl_line type
    645                DW_TAG_member
    646                 Name      : _blksize
    647                 Offset    : 1747
    648                 CU offset : 1747
    649                 Attrs     : name data_member_location decl_file decl_line type
    650                DW_TAG_member
    651                 Name      : _old_offset
    652                 Offset    : 1766
    653                 CU offset : 1766
    654                 Attrs     : name data_member_location decl_file decl_line type
    655                DW_TAG_member
    656                 Name      : _cur_column
    657                 Offset    : 1788
    658                 CU offset : 1788
    659                 Attrs     : name data_member_location decl_file decl_line type
    660                DW_TAG_member
    661                 Name      : _vtable_offset
    662                 Offset    : 1810
    663                 CU offset : 1810
    664                 Attrs     : name data_member_location decl_file decl_line type
    665                DW_TAG_member
    666                 Name      : _shortbuf
    667                 Offset    : 1835
    668                 CU offset : 1835
    669                 Attrs     : name data_member_location decl_file decl_line type
    670                DW_TAG_member
    671                 Name      : _lock
    672                 Offset    : 1855
    673                 CU offset : 1855
    674                 Attrs     : name data_member_location decl_file decl_line type
    675                DW_TAG_member
    676                 Name      : _offset
    677                 Offset    : 1871
    678                 CU offset : 1871
    679                 Attrs     : name data_member_location decl_file decl_line type
    680                DW_TAG_member
    681                 Name      : _unused2
    682                 Offset    : 1889
    683                 CU offset : 1889
    684                 Attrs     : name data_member_location decl_file decl_line type
    685           DW_TAG_structure_type
    686            Name      : _IO_marker
    687            Offset    : 1909
    688            CU offset : 1909
    689            Attrs     : sibling name byte_size decl_file decl_line
    690            byte size : 12
    691                DW_TAG_member
    692                 Name      : _next
    693                 Offset    : 1928
    694                 CU offset : 1928
    695                 Attrs     : name data_member_location decl_file decl_line type
    696                DW_TAG_member
    697                 Name      : _sbuf
    698                 Offset    : 1944
    699                 CU offset : 1944
    700                 Attrs     : name data_member_location decl_file decl_line type
    701                DW_TAG_member
    702                 Name      : _pos
    703                 Offset    : 1960
    704                 CU offset : 1960
    705                 Attrs     : name data_member_location decl_file decl_line type
    706           DW_TAG_pointer_type
    707            Name      : * NO NAME *
    708            Offset    : 1976
    709            CU offset : 1976
    710            Attrs     : byte_size type
    711            byte size : 4
    712           DW_TAG_pointer_type
    713            Name      : * NO NAME *
    714            Offset    : 1982
    715            CU offset : 1982
    716            Attrs     : byte_size type
    717            byte size : 4
    718           DW_TAG_array_type
    719            Name      : * NO NAME *
    720            Offset    : 1988
    721            CU offset : 1988
    722            Attrs     : sibling type
    723                DW_TAG_subrange_type
    724                 Name      : * NO NAME *
    725                 Offset    : 1997
    726                 CU offset : 1997
    727                 Attrs     : upper_bound type
    728           DW_TAG_pointer_type
    729            Name      : * NO NAME *
    730            Offset    : 2004
    731            CU offset : 2004
    732            Attrs     : byte_size
    733            byte size : 4
    734           DW_TAG_array_type
    735            Name      : * NO NAME *
    736            Offset    : 2006
    737            CU offset : 2006
    738            Attrs     : sibling type
    739                DW_TAG_subrange_type
    740                 Name      : * NO NAME *
    741                 Offset    : 2015
    742                 CU offset : 2015
    743                 Attrs     : upper_bound type
    744           DW_TAG_typedef
    745            Name      : FILE
    746            Offset    : 2022
    747            CU offset : 2022
    748            Attrs     : name decl_file decl_line type
    749           DW_TAG_typedef
    750            Name      : wchar_t
    751            Offset    : 2034
    752            CU offset : 2034
    753            Attrs     : name decl_file decl_line type
    754           DW_TAG_typedef
    755            Name      : wint_t
    756            Offset    : 2050
    757            CU offset : 2050
    758            Attrs     : name decl_file decl_line type
    759           DW_TAG_typedef
    760            Name      : _G_int16_t
    761            Offset    : 2065
    762            CU offset : 2065
    763            Attrs     : name decl_file decl_line type
    764           DW_TAG_typedef
    765            Name      : _G_int32_t
    766            Offset    : 2083
    767            CU offset : 2083
    768            Attrs     : name decl_file decl_line type
    769           DW_TAG_typedef
    770            Name      : _G_uint16_t
    771            Offset    : 2101
    772            CU offset : 2101
    773            Attrs     : name decl_file decl_line type
    774           DW_TAG_typedef
    775            Name      : _G_uint32_t
    776            Offset    : 2120
    777            CU offset : 2120
    778            Attrs     : name decl_file decl_line type
    779           DW_TAG_structure_type
    780            Name      : _IO_jump_t
    781            Offset    : 2139
    782            CU offset : 2139
    783            Attrs     : name declaration
    784           DW_TAG_typedef
    785            Name      : _IO_lock_t
    786            Offset    : 2152
    787            CU offset : 2152
    788            Attrs     : name decl_file decl_line
    789           DW_TAG_typedef
    790            Name      : _IO_FILE
    791            Offset    : 2166
    792            CU offset : 2166
    793            Attrs     : name decl_file decl_line type
    794           DW_TAG_structure_type
    795            Name      : _IO_FILE_plus
    796            Offset    : 2182
    797            CU offset : 2182
    798            Attrs     : name declaration
    799           DW_TAG_typedef
    800            Name      : __io_read_fn
    801            Offset    : 2198
    802            CU offset : 2198
    803            Attrs     : name decl_file decl_line type
    804           DW_TAG_subroutine_type
    805            Name      : * NO NAME *
    806            Offset    : 2219
    807            CU offset : 2219
    808            Attrs     : sibling prototyped type
    809                DW_TAG_formal_parameter
    810                 Name      : * NO NAME *
    811                 Offset    : 2229
    812                 CU offset : 2229
    813                 Attrs     : type
    814                DW_TAG_formal_parameter
    815                 Name      : * NO NAME *
    816                 Offset    : 2234
    817                 CU offset : 2234
    818                 Attrs     : type
    819                DW_TAG_formal_parameter
    820                 Name      : * NO NAME *
    821                 Offset    : 2239
    822                 CU offset : 2239
    823                 Attrs     : type
    824           DW_TAG_typedef
    825            Name      : __io_write_fn
    826            Offset    : 2245
    827            CU offset : 2245
    828            Attrs     : name decl_file decl_line type
    829           DW_TAG_subroutine_type
    830            Name      : * NO NAME *
    831            Offset    : 2267
    832            CU offset : 2267
    833            Attrs     : sibling prototyped type
    834                DW_TAG_formal_parameter
    835                 Name      : * NO NAME *
    836                 Offset    : 2277
    837                 CU offset : 2277
    838                 Attrs     : type
    839                DW_TAG_formal_parameter
    840                 Name      : * NO NAME *
    841                 Offset    : 2282
    842                 CU offset : 2282
    843                 Attrs     : type
    844                DW_TAG_formal_parameter
    845                 Name      : * NO NAME *
    846                 Offset    : 2287
    847                 CU offset : 2287
    848                 Attrs     : type
    849           DW_TAG_pointer_type
    850            Name      : * NO NAME *
    851            Offset    : 2293
    852            CU offset : 2293
    853            Attrs     : byte_size type
    854            byte size : 4
    855           DW_TAG_const_type
    856            Name      : * NO NAME *
    857            Offset    : 2299
    858            CU offset : 2299
    859            Attrs     : type
    860           DW_TAG_typedef
    861            Name      : __io_seek_fn
    862            Offset    : 2304
    863            CU offset : 2304
    864            Attrs     : name decl_file decl_line type
    865           DW_TAG_subroutine_type
    866            Name      : * NO NAME *
    867            Offset    : 2325
    868            CU offset : 2325
    869            Attrs     : sibling prototyped type
    870                DW_TAG_formal_parameter
    871                 Name      : * NO NAME *
    872                 Offset    : 2335
    873                 CU offset : 2335
    874                 Attrs     : type
    875                DW_TAG_formal_parameter
    876                 Name      : * NO NAME *
    877                 Offset    : 2340
    878                 CU offset : 2340
    879                 Attrs     : type
    880                DW_TAG_formal_parameter
    881                 Name      : * NO NAME *
    882                 Offset    : 2345
    883                 CU offset : 2345
    884                 Attrs     : type
    885           DW_TAG_typedef
    886            Name      : __io_close_fn
    887            Offset    : 2351
    888            CU offset : 2351
    889            Attrs     : name decl_file decl_line type
    890           DW_TAG_subroutine_type
    891            Name      : * NO NAME *
    892            Offset    : 2373
    893            CU offset : 2373
    894            Attrs     : sibling prototyped type
    895                DW_TAG_formal_parameter
    896                 Name      : * NO NAME *
    897                 Offset    : 2383
    898                 CU offset : 2383
    899                 Attrs     : type
    900           DW_TAG_typedef
    901            Name      : fpos_t
    902            Offset    : 2389
    903            CU offset : 2389
    904            Attrs     : name decl_file decl_line type
    905           DW_TAG_typedef
    906            Name      : off_t
    907            Offset    : 2403
    908            CU offset : 2403
    909            Attrs     : name decl_file decl_line type
    910 New CU: off = 2418, hsize = 11, ab = 213, as = 4, os = 4
    911      DW_TAG_compile_unit
    912       Name      : f.c
    913       Offset    : 2429
    914       CU offset : 11
    915       Attrs     : name stmt_list low_pc high_pc language comp_dir producer
    916       low PC    : 0x10000490
    917       high PC   : 0x100004b0
    918       language  : 1
    919       directory : /shoggoth/drepper
    920       producer  : GNU C 2.96-laurel-000912
    921           DW_TAG_subprogram
    922            Name      : foo
    923            Offset    : 2490
    924            CU offset : 72
    925            Attrs     : name low_pc high_pc prototyped decl_file decl_line external frame_base type
    926            low PC    : 0x10000490
    927            high PC   : 0x100004b0
    928           DW_TAG_base_type
    929            Name      : int
    930            Offset    : 2513
    931            CU offset : 95
    932            Attrs     : name byte_size encoding
    933            byte size : 4
    934 New CU: off = 2521, hsize = 11, ab = 267, as = 4, os = 4
    935      DW_TAG_compile_unit
    936       Name      : m.c
    937       Offset    : 2532
    938       CU offset : 11
    939       Attrs     : name stmt_list low_pc high_pc language comp_dir producer
    940       low PC    : 0x100004b0
    941       high PC   : 0x10000514
    942       language  : 1
    943       directory : /shoggoth/drepper
    944       producer  : GNU C 2.96-laurel-000912
    945           DW_TAG_subprogram
    946            Name      : main
    947            Offset    : 2593
    948            CU offset : 72
    949            Attrs     : sibling name low_pc high_pc prototyped decl_file decl_line external frame_base type
    950            low PC    : 0x100004b0
    951            high PC   : 0x10000514
    952                DW_TAG_subprogram
    953                 Name      : bar
    954                 Offset    : 2621
    955                 CU offset : 100
    956                 Attrs     : sibling name decl_file decl_line declaration external type
    957                     DW_TAG_unspecified_parameters
    958                      Name      : * NO NAME *
    959                      Offset    : 2638
    960                      CU offset : 117
    961                      Attrs     :
    962                DW_TAG_subprogram
    963                 Name      : foo
    964                 Offset    : 2640
    965                 CU offset : 119
    966                 Attrs     : name decl_file decl_line declaration external type
    967                     DW_TAG_unspecified_parameters
    968                      Name      : * NO NAME *
    969                      Offset    : 2653
    970                      CU offset : 132
    971                      Attrs     :
    972           DW_TAG_base_type
    973            Name      : int
    974            Offset    : 2656
    975            CU offset : 135
    976            Attrs     : name byte_size encoding
    977            byte size : 4
    978           DW_TAG_variable
    979            Name      : a
    980            Offset    : 2663
    981            CU offset : 142
    982            Attrs     : location name decl_file decl_line external type
    983 EOF
    984 
    985 exit 0
    986