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