|
|
e1d87d |
http://sourceware.org/ml/gdb-patches/2012-10/msg00231.html
|
|
|
e1d87d |
Subject: Re: [PATCH] Expand fortran array bounds sizes to LONGEST
|
|
|
e1d87d |
|
|
|
e1d87d |
On Mon, 15 Oct 2012 15:25:55 +0200, Jan Kratochvil wrote:
|
|
|
e1d87d |
> I have filed for it now:
|
|
|
e1d87d |
> Invalid debug/ array bounds w/-fno-range-check and 32-bit target
|
|
|
e1d87d |
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54934
|
|
|
e1d87d |
|
|
|
e1d87d |
Therefore it looks as a valid gfortran FSF GCC HEAD bug so provided
|
|
|
e1d87d |
a hand-patched .S file for i386; patched GDB PASSes with it.
|
|
|
e1d87d |
|
|
|
e1d87d |
|
|
|
e1d87d |
Thanks,
|
|
|
e1d87d |
Jan
|
|
|
e1d87d |
|
|
|
e1d87d |
|
|
|
e1d87d |
2012-10-15 Siddhesh Poyarekar <siddhesh@redhat.com>
|
|
|
e1d87d |
Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
e1d87d |
|
|
|
e1d87d |
* gdb.fortran/array-bounds.exp: New test file.
|
|
|
e1d87d |
* gdb.fortran/array-bounds.f: New test file.
|
|
|
e1d87d |
* gdb.fortran/array-bounds.S: New test file.
|
|
|
e1d87d |
|
|
|
e1d87d |
--- /dev/null 2012-09-26 15:32:16.098506310 +0200
|
|
|
e1d87d |
+++ gdb-7.2/gdb/testsuite/gdb.fortran/array-bounds.exp 2012-10-15 20:53:26.427072583 +0200
|
|
|
e1d87d |
@@ -0,0 +1,43 @@
|
|
|
e1d87d |
+# Copyright 2012 Free Software Foundation, Inc.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+# This program is free software; you can redistribute it and/or modify
|
|
|
e1d87d |
+# it under the terms of the GNU General Public License as published by
|
|
|
e1d87d |
+# the Free Software Foundation; either version 3 of the License, or
|
|
|
e1d87d |
+# (at your option) any later version.
|
|
|
e1d87d |
+#
|
|
|
e1d87d |
+# This program is distributed in the hope that it will be useful,
|
|
|
e1d87d |
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
e1d87d |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
e1d87d |
+# GNU General Public License for more details.
|
|
|
e1d87d |
+#
|
|
|
e1d87d |
+# You should have received a copy of the GNU General Public License
|
|
|
e1d87d |
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+# This file is part of the gdb testsuite. It contains test to ensure that
|
|
|
e1d87d |
+# array bounds accept LONGEST.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+if { [skip_fortran_tests] } { return -1 }
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+set testfile "array-bounds"
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+if { [is_ilp32_target] && ([istarget "i\[34567\]86-*-linux*"]
|
|
|
e1d87d |
+ || [istarget "x86_64-*-linux*"]) } {
|
|
|
e1d87d |
+ set srcfile ${testfile}.S
|
|
|
e1d87d |
+ set opts {nodebug f90}
|
|
|
e1d87d |
+} else {
|
|
|
e1d87d |
+ set srcfile ${testfile}.f
|
|
|
e1d87d |
+ set opts {debug f90}
|
|
|
e1d87d |
+}
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+if {[prepare_for_testing $testfile.exp $testfile $srcfile $opts]} {
|
|
|
e1d87d |
+ print "compile failed"
|
|
|
e1d87d |
+ return -1
|
|
|
e1d87d |
+}
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+if { ![runto MAIN__] } {
|
|
|
e1d87d |
+ perror "Could not run to breakpoint `MAIN__'."
|
|
|
e1d87d |
+ continue
|
|
|
e1d87d |
+}
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+gdb_test "print &foo" {.*\(4294967296:4294967297\).*}
|
|
|
e1d87d |
+gdb_test "print &bar" {.*\(-4294967297:-4294967296\).*}
|
|
|
e1d87d |
--- /dev/null 2012-09-26 15:32:16.098506310 +0200
|
|
|
e1d87d |
+++ gdb-7.2/gdb/testsuite/gdb.fortran/array-bounds.f 2012-10-15 19:35:12.500254261 +0200
|
|
|
e1d87d |
@@ -0,0 +1,22 @@
|
|
|
e1d87d |
+c Copyright 2012 Free Software Foundation, Inc.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+c This program is free software; you can redistribute it and/or modify
|
|
|
e1d87d |
+c it under the terms of the GNU General Public License as published by
|
|
|
e1d87d |
+c the Free Software Foundation; either version 3 of the License, or
|
|
|
e1d87d |
+c (at your option) any later version.
|
|
|
e1d87d |
+c
|
|
|
e1d87d |
+c This program is distributed in the hope that it will be useful,
|
|
|
e1d87d |
+c but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
e1d87d |
+c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
e1d87d |
+c GNU General Public License for more details.
|
|
|
e1d87d |
+c
|
|
|
e1d87d |
+c You should have received a copy of the GNU General Public License
|
|
|
e1d87d |
+c along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+ dimension foo(4294967296_8:4294967297_8)
|
|
|
e1d87d |
+ dimension bar(-4294967297_8:-4294967296_8)
|
|
|
e1d87d |
+ bar = 42
|
|
|
e1d87d |
+ foo=bar
|
|
|
e1d87d |
+ stop
|
|
|
e1d87d |
+ end
|
|
|
e1d87d |
+
|
|
|
e1d87d |
--- /dev/null 2012-09-26 15:32:16.098506310 +0200
|
|
|
e1d87d |
+++ gdb-7.2/gdb/testsuite/gdb.fortran/array-bounds.S 2012-10-15 20:52:36.851118215 +0200
|
|
|
e1d87d |
@@ -0,0 +1,529 @@
|
|
|
e1d87d |
+/* Copyright 2012 Free Software Foundation, Inc.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+ This program is free software; you can redistribute it and/or modify
|
|
|
e1d87d |
+ it under the terms of the GNU General Public License as published by
|
|
|
e1d87d |
+ the Free Software Foundation; either version 3 of the License, or
|
|
|
e1d87d |
+ (at your option) any later version.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+ This program is distributed in the hope that it will be useful,
|
|
|
e1d87d |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
e1d87d |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
e1d87d |
+ GNU General Public License for more details.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+ You should have received a copy of the GNU General Public License
|
|
|
e1d87d |
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+ This file is part of the gdb testsuite. */
|
|
|
e1d87d |
+
|
|
|
e1d87d |
+ .file "array-bounds.f"
|
|
|
e1d87d |
+ .text
|
|
|
e1d87d |
+.Ltext0:
|
|
|
e1d87d |
+ .type MAIN__, @function
|
|
|
e1d87d |
+MAIN__:
|
|
|
e1d87d |
+.LFB0:
|
|
|
e1d87d |
+ .file 1 "gdb.fortran/array-bounds.f"
|
|
|
e1d87d |
+ # gdb.fortran/array-bounds.f:16
|
|
|
e1d87d |
+ .loc 1 16 0
|
|
|
e1d87d |
+ .cfi_startproc
|
|
|
e1d87d |
+# BLOCK 2 seq:0
|
|
|
e1d87d |
+# PRED: ENTRY (FALLTHRU)
|
|
|
e1d87d |
+ pushl %ebp
|
|
|
e1d87d |
+.LCFI0:
|
|
|
e1d87d |
+ .cfi_def_cfa_offset 8
|
|
|
e1d87d |
+ .cfi_offset 5, -8
|
|
|
e1d87d |
+ movl %esp, %ebp
|
|
|
e1d87d |
+.LCFI1:
|
|
|
e1d87d |
+ .cfi_def_cfa_register 5
|
|
|
e1d87d |
+ subl $40, %esp
|
|
|
e1d87d |
+.LBB2:
|
|
|
e1d87d |
+# SUCC: 3 (FALLTHRU)
|
|
|
e1d87d |
+ # gdb.fortran/array-bounds.f:18
|
|
|
e1d87d |
+ .loc 1 18 0
|
|
|
e1d87d |
+ movl $-1, %eax
|
|
|
e1d87d |
+# BLOCK 3 seq:1
|
|
|
e1d87d |
+# PRED: 2 (FALLTHRU) 4 [100.0%]
|
|
|
e1d87d |
+.L3:
|
|
|
e1d87d |
+ # gdb.fortran/array-bounds.f:18
|
|
|
e1d87d |
+ .loc 1 18 0 is_stmt 0 discriminator 1
|
|
|
e1d87d |
+ testl %eax, %eax
|
|
|
e1d87d |
+# SUCC: 5 4 (FALLTHRU)
|
|
|
e1d87d |
+ jg .L2
|
|
|
e1d87d |
+# BLOCK 4 seq:2
|
|
|
e1d87d |
+# PRED: 3 (FALLTHRU)
|
|
|
e1d87d |
+ # gdb.fortran/array-bounds.f:18
|
|
|
e1d87d |
+ .loc 1 18 0 discriminator 2
|
|
|
e1d87d |
+ leal 1(%eax), %ecx
|
|
|
e1d87d |
+ movl .LC0, %edx
|
|
|
e1d87d |
+ movl %edx, -16(%ebp,%ecx,4)
|
|
|
e1d87d |
+ addl $1, %eax
|
|
|
e1d87d |
+# SUCC: 3 [100.0%]
|
|
|
e1d87d |
+ jmp .L3
|
|
|
e1d87d |
+# BLOCK 5 seq:3
|
|
|
e1d87d |
+# PRED: 3
|
|
|
e1d87d |
+.L2:
|
|
|
e1d87d |
+.LBE2:
|
|
|
e1d87d |
+ # gdb.fortran/array-bounds.f:19
|
|
|
e1d87d |
+ .loc 1 19 0 is_stmt 1
|
|
|
e1d87d |
+ movl -16(%ebp), %eax
|
|
|
e1d87d |
+ movl -12(%ebp), %edx
|
|
|
e1d87d |
+ movl %eax, -24(%ebp)
|
|
|
e1d87d |
+ movl %edx, -20(%ebp)
|
|
|
e1d87d |
+ # gdb.fortran/array-bounds.f:20
|
|
|
e1d87d |
+ .loc 1 20 0
|
|
|
e1d87d |
+ movl $0, 4(%esp)
|
|
|
e1d87d |
+ movl $0, (%esp)
|
|
|
e1d87d |
+# SUCC:
|
|
|
e1d87d |
+ call _gfortran_stop_string
|
|
|
e1d87d |
+ .cfi_endproc
|
|
|
e1d87d |
+.LFE0:
|
|
|
e1d87d |
+ .size MAIN__, .-MAIN__
|
|
|
e1d87d |
+ .globl main
|
|
|
e1d87d |
+ .type main, @function
|
|
|
e1d87d |
+main:
|
|
|
e1d87d |
+.LFB1:
|
|
|
e1d87d |
+ # gdb.fortran/array-bounds.f:21
|
|
|
e1d87d |
+ .loc 1 21 0
|
|
|
e1d87d |
+ .cfi_startproc
|
|
|
e1d87d |
+# BLOCK 2 seq:0
|
|
|
e1d87d |
+# PRED: ENTRY (FALLTHRU)
|
|
|
e1d87d |
+ pushl %ebp
|
|
|
e1d87d |
+.LCFI2:
|
|
|
e1d87d |
+ .cfi_def_cfa_offset 8
|
|
|
e1d87d |
+ .cfi_offset 5, -8
|
|
|
e1d87d |
+ movl %esp, %ebp
|
|
|
e1d87d |
+.LCFI3:
|
|
|
e1d87d |
+ .cfi_def_cfa_register 5
|
|
|
e1d87d |
+ andl $-16, %esp
|
|
|
e1d87d |
+ subl $16, %esp
|
|
|
e1d87d |
+ # gdb.fortran/array-bounds.f:21
|
|
|
e1d87d |
+ .loc 1 21 0
|
|
|
e1d87d |
+ movl 12(%ebp), %eax
|
|
|
e1d87d |
+ movl %eax, 4(%esp)
|
|
|
e1d87d |
+ movl 8(%ebp), %eax
|
|
|
e1d87d |
+ movl %eax, (%esp)
|
|
|
e1d87d |
+ call _gfortran_set_args
|
|
|
e1d87d |
+ movl $options.1.1824, 4(%esp)
|
|
|
e1d87d |
+ movl $7, (%esp)
|
|
|
e1d87d |
+ call _gfortran_set_options
|
|
|
e1d87d |
+ call MAIN__
|
|
|
e1d87d |
+ movl $0, %eax
|
|
|
e1d87d |
+ leave
|
|
|
e1d87d |
+.LCFI4:
|
|
|
e1d87d |
+ .cfi_restore 5
|
|
|
e1d87d |
+ .cfi_def_cfa 4, 4
|
|
|
e1d87d |
+# SUCC: EXIT [100.0%]
|
|
|
e1d87d |
+ ret
|
|
|
e1d87d |
+ .cfi_endproc
|
|
|
e1d87d |
+.LFE1:
|
|
|
e1d87d |
+ .size main, .-main
|
|
|
e1d87d |
+ .section .rodata
|
|
|
e1d87d |
+ .align 4
|
|
|
e1d87d |
+ .type options.1.1824, @object
|
|
|
e1d87d |
+ .size options.1.1824, 28
|
|
|
e1d87d |
+options.1.1824:
|
|
|
e1d87d |
+ .long 68
|
|
|
e1d87d |
+ .long 1023
|
|
|
e1d87d |
+ .long 0
|
|
|
e1d87d |
+ .long 0
|
|
|
e1d87d |
+ .long 1
|
|
|
e1d87d |
+ .long 1
|
|
|
e1d87d |
+ .long 0
|
|
|
e1d87d |
+ .align 4
|
|
|
e1d87d |
+.LC0:
|
|
|
e1d87d |
+ .long 1109917696
|
|
|
e1d87d |
+ .text
|
|
|
e1d87d |
+.Letext0:
|
|
|
e1d87d |
+ .section .debug_info,"",@progbits
|
|
|
e1d87d |
+.Ldebug_info0:
|
|
|
e1d87d |
+ .long 2f - 1f # Length of Compilation Unit Info
|
|
|
e1d87d |
+1:
|
|
|
e1d87d |
+ .value 0x2 # DWARF version number
|
|
|
e1d87d |
+ .long .Ldebug_abbrev0 # Offset Into Abbrev. Section
|
|
|
e1d87d |
+ .byte 0x4 # Pointer Size (in bytes)
|
|
|
e1d87d |
+dieb: .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit)
|
|
|
e1d87d |
+ .long .LASF5 # DW_AT_producer: "GNU Fortran 4.8.0 20121015 (experimental) -ffixed-form -m32 -mtune=generic -march=x86-64 -g -gdwarf-2 -fintrinsic-modules-path .../gcchead-root/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/finclude"
|
|
|
e1d87d |
+ .byte 0xe # DW_AT_language
|
|
|
e1d87d |
+ .byte 0x2 # DW_AT_identifier_case
|
|
|
e1d87d |
+ .long .LASF6 # DW_AT_name: "gdb.fortran/array-bounds.f"
|
|
|
e1d87d |
+ .long .LASF7 # DW_AT_comp_dir: ""
|
|
|
e1d87d |
+ .long .Ltext0 # DW_AT_low_pc
|
|
|
e1d87d |
+ .long .Letext0 # DW_AT_high_pc
|
|
|
e1d87d |
+ .long .Ldebug_line0 # DW_AT_stmt_list
|
|
|
e1d87d |
+die26: .uleb128 0x2 # (DIE (0x26) DW_TAG_subprogram)
|
|
|
e1d87d |
+ .long .LASF8 # DW_AT_name: "MAIN__"
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_decl_file (gdb.fortran/array-bounds.f)
|
|
|
e1d87d |
+ .byte 0x10 # DW_AT_decl_line
|
|
|
e1d87d |
+ .long .LFB0 # DW_AT_low_pc
|
|
|
e1d87d |
+ .long .LFE0 # DW_AT_high_pc
|
|
|
e1d87d |
+ .long .LLST0 # DW_AT_frame_base
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_GNU_all_tail_call_sites
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_main_subprogram
|
|
|
e1d87d |
+ .byte 0x2 # DW_AT_calling_convention
|
|
|
e1d87d |
+ .long die66 - .Ldebug_info0 # DW_AT_sibling
|
|
|
e1d87d |
+die40: .uleb128 0x3 # (DIE (0x40) DW_TAG_variable)
|
|
|
e1d87d |
+ .ascii "bar\0" # DW_AT_name
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_decl_file (gdb.fortran/array-bounds.f)
|
|
|
e1d87d |
+ .byte 0x11 # DW_AT_decl_line
|
|
|
e1d87d |
+ .long die66 - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+ .byte 0x2 # DW_AT_location
|
|
|
e1d87d |
+ .byte 0x91 # DW_OP_fbreg
|
|
|
e1d87d |
+ .sleb128 -24
|
|
|
e1d87d |
+die4e: .uleb128 0x3 # (DIE (0x4e) DW_TAG_variable)
|
|
|
e1d87d |
+ .ascii "foo\0" # DW_AT_name
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_decl_file (gdb.fortran/array-bounds.f)
|
|
|
e1d87d |
+ .byte 0x10 # DW_AT_decl_line
|
|
|
e1d87d |
+ .long die88 - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+ .byte 0x2 # DW_AT_location
|
|
|
e1d87d |
+ .byte 0x91 # DW_OP_fbreg
|
|
|
e1d87d |
+ .sleb128 -32
|
|
|
e1d87d |
+die5c: .uleb128 0x4 # (DIE (0x5c) DW_TAG_lexical_block)
|
|
|
e1d87d |
+ .long .LBB2 # DW_AT_low_pc
|
|
|
e1d87d |
+ .long .LBE2 # DW_AT_high_pc
|
|
|
e1d87d |
+ .byte 0 # end of children of DIE 0x26
|
|
|
e1d87d |
+die66: .uleb128 0x5 # (DIE (0x66) DW_TAG_array_type)
|
|
|
e1d87d |
+ .long die81 - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+ .long die7a - .Ldebug_info0 # DW_AT_sibling
|
|
|
e1d87d |
+die6f: .uleb128 0x6 # (DIE (0x6f) DW_TAG_subrange_type)
|
|
|
e1d87d |
+ .long die7a - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+#if 0
|
|
|
e1d87d |
+ .long 0xffffffff # DW_AT_lower_bound
|
|
|
e1d87d |
+ .byte 0 # DW_AT_upper_bound
|
|
|
e1d87d |
+#else
|
|
|
e1d87d |
+ .quad 0xfffffffeffffffff # DW_AT_lower_bound
|
|
|
e1d87d |
+ .quad 0xffffffff00000000 # DW_AT_upper_bound
|
|
|
e1d87d |
+#endif
|
|
|
e1d87d |
+ .byte 0 # end of children of DIE 0x66
|
|
|
e1d87d |
+die7a: .uleb128 0x7 # (DIE (0x7a) DW_TAG_base_type)
|
|
|
e1d87d |
+#if 0
|
|
|
e1d87d |
+ .byte 0x4 # DW_AT_byte_size
|
|
|
e1d87d |
+#else
|
|
|
e1d87d |
+ .byte 0x8 # DW_AT_byte_size
|
|
|
e1d87d |
+#endif
|
|
|
e1d87d |
+ .byte 0x5 # DW_AT_encoding
|
|
|
e1d87d |
+ .long .LASF0 # DW_AT_name: "integer(kind=4)"
|
|
|
e1d87d |
+die81: .uleb128 0x7 # (DIE (0x81) DW_TAG_base_type)
|
|
|
e1d87d |
+ .byte 0x4 # DW_AT_byte_size
|
|
|
e1d87d |
+ .byte 0x4 # DW_AT_encoding
|
|
|
e1d87d |
+ .long .LASF1 # DW_AT_name: "real(kind=4)"
|
|
|
e1d87d |
+die88: .uleb128 0x5 # (DIE (0x88) DW_TAG_array_type)
|
|
|
e1d87d |
+ .long die81 - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+ .long die99 - .Ldebug_info0 # DW_AT_sibling
|
|
|
e1d87d |
+die91: .uleb128 0x8 # (DIE (0x91) DW_TAG_subrange_type)
|
|
|
e1d87d |
+ .long die7a - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+#if 0
|
|
|
e1d87d |
+ .byte 0 # DW_AT_lower_bound
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_upper_bound
|
|
|
e1d87d |
+#else
|
|
|
e1d87d |
+ .quad 0x100000000 # DW_AT_lower_bound
|
|
|
e1d87d |
+ .quad 0x100000001 # DW_AT_upper_bound
|
|
|
e1d87d |
+#endif
|
|
|
e1d87d |
+ .byte 0 # end of children of DIE 0x88
|
|
|
e1d87d |
+die99: .uleb128 0x9 # (DIE (0x99) DW_TAG_subprogram)
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_external
|
|
|
e1d87d |
+ .long .LASF9 # DW_AT_name: "main"
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_decl_file (gdb.fortran/array-bounds.f)
|
|
|
e1d87d |
+ .byte 0x15 # DW_AT_decl_line
|
|
|
e1d87d |
+ .long die7a - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+ .long .LFB1 # DW_AT_low_pc
|
|
|
e1d87d |
+ .long .LFE1 # DW_AT_high_pc
|
|
|
e1d87d |
+ .long .LLST1 # DW_AT_frame_base
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_GNU_all_tail_call_sites
|
|
|
e1d87d |
+ .long died4 - .Ldebug_info0 # DW_AT_sibling
|
|
|
e1d87d |
+dieb6: .uleb128 0xa # (DIE (0xb6) DW_TAG_formal_parameter)
|
|
|
e1d87d |
+ .long .LASF2 # DW_AT_name: "argc"
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_decl_file (gdb.fortran/array-bounds.f)
|
|
|
e1d87d |
+ .byte 0x15 # DW_AT_decl_line
|
|
|
e1d87d |
+ .long died4 - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+ .byte 0x2 # DW_AT_location
|
|
|
e1d87d |
+ .byte 0x91 # DW_OP_fbreg
|
|
|
e1d87d |
+ .sleb128 0
|
|
|
e1d87d |
+diec4: .uleb128 0xa # (DIE (0xc4) DW_TAG_formal_parameter)
|
|
|
e1d87d |
+ .long .LASF3 # DW_AT_name: "argv"
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_decl_file (gdb.fortran/array-bounds.f)
|
|
|
e1d87d |
+ .byte 0x15 # DW_AT_decl_line
|
|
|
e1d87d |
+ .long died9 - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+ .byte 0x3 # DW_AT_location
|
|
|
e1d87d |
+ .byte 0x91 # DW_OP_fbreg
|
|
|
e1d87d |
+ .sleb128 4
|
|
|
e1d87d |
+ .byte 0x6 # DW_OP_deref
|
|
|
e1d87d |
+ .byte 0 # end of children of DIE 0x99
|
|
|
e1d87d |
+died4: .uleb128 0xb # (DIE (0xd4) DW_TAG_const_type)
|
|
|
e1d87d |
+ .long die7a - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+died9: .uleb128 0xc # (DIE (0xd9) DW_TAG_pointer_type)
|
|
|
e1d87d |
+ .byte 0x4 # DW_AT_byte_size
|
|
|
e1d87d |
+ .long diedf - .Ldebug_info0 # DW_AT_type
|
|
|
e1d87d |
+diedf: .uleb128 0x7 # (DIE (0xdf) DW_TAG_base_type)
|
|
|
e1d87d |
+ .byte 0x1 # DW_AT_byte_size
|
|
|
e1d87d |
+ .byte 0x8 # DW_AT_encoding
|
|
|
e1d87d |
+ .long .LASF4 # DW_AT_name: "character(kind=1)"
|
|
|
e1d87d |
+ .byte 0 # end of children of DIE 0xb
|
|
|
e1d87d |
+2:
|
|
|
e1d87d |
+ .section .debug_abbrev,"",@progbits
|
|
|
e1d87d |
+.Ldebug_abbrev0:
|
|
|
e1d87d |
+ .uleb128 0x1 # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x11 # (TAG: DW_TAG_compile_unit)
|
|
|
e1d87d |
+ .byte 0x1 # DW_children_yes
|
|
|
e1d87d |
+ .uleb128 0x25 # (DW_AT_producer)
|
|
|
e1d87d |
+ .uleb128 0xe # (DW_FORM_strp)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_AT_language)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x42 # (DW_AT_identifier_case)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x3 # (DW_AT_name)
|
|
|
e1d87d |
+ .uleb128 0xe # (DW_FORM_strp)
|
|
|
e1d87d |
+ .uleb128 0x1b # (DW_AT_comp_dir)
|
|
|
e1d87d |
+ .uleb128 0xe # (DW_FORM_strp)
|
|
|
e1d87d |
+ .uleb128 0x11 # (DW_AT_low_pc)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
|
e1d87d |
+ .uleb128 0x12 # (DW_AT_high_pc)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
|
e1d87d |
+ .uleb128 0x10 # (DW_AT_stmt_list)
|
|
|
e1d87d |
+ .uleb128 0x6 # (DW_FORM_data4)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0x2 # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x2e # (TAG: DW_TAG_subprogram)
|
|
|
e1d87d |
+ .byte 0x1 # DW_children_yes
|
|
|
e1d87d |
+ .uleb128 0x3 # (DW_AT_name)
|
|
|
e1d87d |
+ .uleb128 0xe # (DW_FORM_strp)
|
|
|
e1d87d |
+ .uleb128 0x3a # (DW_AT_decl_file)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x3b # (DW_AT_decl_line)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x11 # (DW_AT_low_pc)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
|
e1d87d |
+ .uleb128 0x12 # (DW_AT_high_pc)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
|
e1d87d |
+ .uleb128 0x40 # (DW_AT_frame_base)
|
|
|
e1d87d |
+ .uleb128 0x6 # (DW_FORM_data4)
|
|
|
e1d87d |
+ .uleb128 0x2116 # (DW_AT_GNU_all_tail_call_sites)
|
|
|
e1d87d |
+ .uleb128 0xc # (DW_FORM_flag)
|
|
|
e1d87d |
+ .uleb128 0x6a # (DW_AT_main_subprogram)
|
|
|
e1d87d |
+ .uleb128 0xc # (DW_FORM_flag)
|
|
|
e1d87d |
+ .uleb128 0x36 # (DW_AT_calling_convention)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_AT_sibling)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0x3 # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x34 # (TAG: DW_TAG_variable)
|
|
|
e1d87d |
+ .byte 0 # DW_children_no
|
|
|
e1d87d |
+ .uleb128 0x3 # (DW_AT_name)
|
|
|
e1d87d |
+ .uleb128 0x8 # (DW_FORM_string)
|
|
|
e1d87d |
+ .uleb128 0x3a # (DW_AT_decl_file)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x3b # (DW_AT_decl_line)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x49 # (DW_AT_type)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+ .uleb128 0x2 # (DW_AT_location)
|
|
|
e1d87d |
+ .uleb128 0xa # (DW_FORM_block1)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0x4 # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0xb # (TAG: DW_TAG_lexical_block)
|
|
|
e1d87d |
+ .byte 0 # DW_children_no
|
|
|
e1d87d |
+ .uleb128 0x11 # (DW_AT_low_pc)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
|
e1d87d |
+ .uleb128 0x12 # (DW_AT_high_pc)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0x5 # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x1 # (TAG: DW_TAG_array_type)
|
|
|
e1d87d |
+ .byte 0x1 # DW_children_yes
|
|
|
e1d87d |
+ .uleb128 0x49 # (DW_AT_type)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_AT_sibling)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0x6 # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x21 # (TAG: DW_TAG_subrange_type)
|
|
|
e1d87d |
+ .byte 0 # DW_children_no
|
|
|
e1d87d |
+ .uleb128 0x49 # (DW_AT_type)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+#if 0
|
|
|
e1d87d |
+ .uleb128 0x22 # (DW_AT_lower_bound)
|
|
|
e1d87d |
+ .uleb128 0x6 # (DW_FORM_data4)
|
|
|
e1d87d |
+ .uleb128 0x2f # (DW_AT_upper_bound)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+#else
|
|
|
e1d87d |
+ .uleb128 0x22 # (DW_AT_lower_bound)
|
|
|
e1d87d |
+ .uleb128 0x7 # (DW_FORM_data8)
|
|
|
e1d87d |
+ .uleb128 0x2f # (DW_AT_upper_bound)
|
|
|
e1d87d |
+ .uleb128 0x7 # (DW_FORM_data8)
|
|
|
e1d87d |
+#endif
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0x7 # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x24 # (TAG: DW_TAG_base_type)
|
|
|
e1d87d |
+ .byte 0 # DW_children_no
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_AT_byte_size)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x3e # (DW_AT_encoding)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x3 # (DW_AT_name)
|
|
|
e1d87d |
+ .uleb128 0xe # (DW_FORM_strp)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0x8 # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x21 # (TAG: DW_TAG_subrange_type)
|
|
|
e1d87d |
+ .byte 0 # DW_children_no
|
|
|
e1d87d |
+ .uleb128 0x49 # (DW_AT_type)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+#if 0
|
|
|
e1d87d |
+ .uleb128 0x22 # (DW_AT_lower_bound)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x2f # (DW_AT_upper_bound)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+#else
|
|
|
e1d87d |
+ .uleb128 0x22 # (DW_AT_lower_bound)
|
|
|
e1d87d |
+ .uleb128 0x7 # (DW_FORM_data8)
|
|
|
e1d87d |
+ .uleb128 0x2f # (DW_AT_upper_bound)
|
|
|
e1d87d |
+ .uleb128 0x7 # (DW_FORM_data8)
|
|
|
e1d87d |
+#endif
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0x9 # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x2e # (TAG: DW_TAG_subprogram)
|
|
|
e1d87d |
+ .byte 0x1 # DW_children_yes
|
|
|
e1d87d |
+ .uleb128 0x3f # (DW_AT_external)
|
|
|
e1d87d |
+ .uleb128 0xc # (DW_FORM_flag)
|
|
|
e1d87d |
+ .uleb128 0x3 # (DW_AT_name)
|
|
|
e1d87d |
+ .uleb128 0xe # (DW_FORM_strp)
|
|
|
e1d87d |
+ .uleb128 0x3a # (DW_AT_decl_file)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x3b # (DW_AT_decl_line)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x49 # (DW_AT_type)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+ .uleb128 0x11 # (DW_AT_low_pc)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
|
e1d87d |
+ .uleb128 0x12 # (DW_AT_high_pc)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_FORM_addr)
|
|
|
e1d87d |
+ .uleb128 0x40 # (DW_AT_frame_base)
|
|
|
e1d87d |
+ .uleb128 0x6 # (DW_FORM_data4)
|
|
|
e1d87d |
+ .uleb128 0x2116 # (DW_AT_GNU_all_tail_call_sites)
|
|
|
e1d87d |
+ .uleb128 0xc # (DW_FORM_flag)
|
|
|
e1d87d |
+ .uleb128 0x1 # (DW_AT_sibling)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0xa # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x5 # (TAG: DW_TAG_formal_parameter)
|
|
|
e1d87d |
+ .byte 0 # DW_children_no
|
|
|
e1d87d |
+ .uleb128 0x3 # (DW_AT_name)
|
|
|
e1d87d |
+ .uleb128 0xe # (DW_FORM_strp)
|
|
|
e1d87d |
+ .uleb128 0x3a # (DW_AT_decl_file)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x3b # (DW_AT_decl_line)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x49 # (DW_AT_type)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+ .uleb128 0x2 # (DW_AT_location)
|
|
|
e1d87d |
+ .uleb128 0xa # (DW_FORM_block1)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0xb # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0x26 # (TAG: DW_TAG_const_type)
|
|
|
e1d87d |
+ .byte 0 # DW_children_no
|
|
|
e1d87d |
+ .uleb128 0x49 # (DW_AT_type)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .uleb128 0xc # (abbrev code)
|
|
|
e1d87d |
+ .uleb128 0xf # (TAG: DW_TAG_pointer_type)
|
|
|
e1d87d |
+ .byte 0 # DW_children_no
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_AT_byte_size)
|
|
|
e1d87d |
+ .uleb128 0xb # (DW_FORM_data1)
|
|
|
e1d87d |
+ .uleb128 0x49 # (DW_AT_type)
|
|
|
e1d87d |
+ .uleb128 0x13 # (DW_FORM_ref4)
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .byte 0
|
|
|
e1d87d |
+ .section .debug_loc,"",@progbits
|
|
|
e1d87d |
+.Ldebug_loc0:
|
|
|
e1d87d |
+.LLST0:
|
|
|
e1d87d |
+ .long .LFB0-.Ltext0 # Location list begin address (*.LLST0)
|
|
|
e1d87d |
+ .long .LCFI0-.Ltext0 # Location list end address (*.LLST0)
|
|
|
e1d87d |
+ .value 0x2 # Location expression size
|
|
|
e1d87d |
+ .byte 0x74 # DW_OP_breg4
|
|
|
e1d87d |
+ .sleb128 4
|
|
|
e1d87d |
+ .long .LCFI0-.Ltext0 # Location list begin address (*.LLST0)
|
|
|
e1d87d |
+ .long .LCFI1-.Ltext0 # Location list end address (*.LLST0)
|
|
|
e1d87d |
+ .value 0x2 # Location expression size
|
|
|
e1d87d |
+ .byte 0x74 # DW_OP_breg4
|
|
|
e1d87d |
+ .sleb128 8
|
|
|
e1d87d |
+ .long .LCFI1-.Ltext0 # Location list begin address (*.LLST0)
|
|
|
e1d87d |
+ .long .LFE0-.Ltext0 # Location list end address (*.LLST0)
|
|
|
e1d87d |
+ .value 0x2 # Location expression size
|
|
|
e1d87d |
+ .byte 0x75 # DW_OP_breg5
|
|
|
e1d87d |
+ .sleb128 8
|
|
|
e1d87d |
+ .long 0 # Location list terminator begin (*.LLST0)
|
|
|
e1d87d |
+ .long 0 # Location list terminator end (*.LLST0)
|
|
|
e1d87d |
+.LLST1:
|
|
|
e1d87d |
+ .long .LFB1-.Ltext0 # Location list begin address (*.LLST1)
|
|
|
e1d87d |
+ .long .LCFI2-.Ltext0 # Location list end address (*.LLST1)
|
|
|
e1d87d |
+ .value 0x2 # Location expression size
|
|
|
e1d87d |
+ .byte 0x74 # DW_OP_breg4
|
|
|
e1d87d |
+ .sleb128 4
|
|
|
e1d87d |
+ .long .LCFI2-.Ltext0 # Location list begin address (*.LLST1)
|
|
|
e1d87d |
+ .long .LCFI3-.Ltext0 # Location list end address (*.LLST1)
|
|
|
e1d87d |
+ .value 0x2 # Location expression size
|
|
|
e1d87d |
+ .byte 0x74 # DW_OP_breg4
|
|
|
e1d87d |
+ .sleb128 8
|
|
|
e1d87d |
+ .long .LCFI3-.Ltext0 # Location list begin address (*.LLST1)
|
|
|
e1d87d |
+ .long .LCFI4-.Ltext0 # Location list end address (*.LLST1)
|
|
|
e1d87d |
+ .value 0x2 # Location expression size
|
|
|
e1d87d |
+ .byte 0x75 # DW_OP_breg5
|
|
|
e1d87d |
+ .sleb128 8
|
|
|
e1d87d |
+ .long .LCFI4-.Ltext0 # Location list begin address (*.LLST1)
|
|
|
e1d87d |
+ .long .LFE1-.Ltext0 # Location list end address (*.LLST1)
|
|
|
e1d87d |
+ .value 0x2 # Location expression size
|
|
|
e1d87d |
+ .byte 0x74 # DW_OP_breg4
|
|
|
e1d87d |
+ .sleb128 4
|
|
|
e1d87d |
+ .long 0 # Location list terminator begin (*.LLST1)
|
|
|
e1d87d |
+ .long 0 # Location list terminator end (*.LLST1)
|
|
|
e1d87d |
+ .section .debug_aranges,"",@progbits
|
|
|
e1d87d |
+ .long 0x1c # Length of Address Ranges Info
|
|
|
e1d87d |
+ .value 0x2 # DWARF Version
|
|
|
e1d87d |
+ .long .Ldebug_info0 # Offset of Compilation Unit Info
|
|
|
e1d87d |
+ .byte 0x4 # Size of Address
|
|
|
e1d87d |
+ .byte 0 # Size of Segment Descriptor
|
|
|
e1d87d |
+ .value 0 # Pad to 8 byte boundary
|
|
|
e1d87d |
+ .value 0
|
|
|
e1d87d |
+ .long .Ltext0 # Address
|
|
|
e1d87d |
+ .long .Letext0-.Ltext0 # Length
|
|
|
e1d87d |
+ .long 0
|
|
|
e1d87d |
+ .long 0
|
|
|
e1d87d |
+ .section .debug_line,"",@progbits
|
|
|
e1d87d |
+.Ldebug_line0:
|
|
|
e1d87d |
+ .section .debug_str,"MS",@progbits,1
|
|
|
e1d87d |
+.LASF4:
|
|
|
e1d87d |
+ .string "character(kind=1)"
|
|
|
e1d87d |
+.LASF5:
|
|
|
e1d87d |
+ .string "GNU Fortran 4.8.0 20121015 (experimental) -ffixed-form -m32 -mtune=generic -march=x86-64 -g -gdwarf-2 -fintrinsic-modules-path .../gcchead-root/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/finclude"
|
|
|
e1d87d |
+.LASF7:
|
|
|
e1d87d |
+ .string ""
|
|
|
e1d87d |
+.LASF0:
|
|
|
e1d87d |
+#if 0
|
|
|
e1d87d |
+ .string "integer(kind=4)"
|
|
|
e1d87d |
+#else
|
|
|
e1d87d |
+ .string "integer(kind=8)"
|
|
|
e1d87d |
+#endif
|
|
|
e1d87d |
+.LASF9:
|
|
|
e1d87d |
+ .string "main"
|
|
|
e1d87d |
+.LASF8:
|
|
|
e1d87d |
+ .string "MAIN__"
|
|
|
e1d87d |
+.LASF6:
|
|
|
e1d87d |
+ .string "gdb.fortran/array-bounds.f"
|
|
|
e1d87d |
+.LASF2:
|
|
|
e1d87d |
+ .string "argc"
|
|
|
e1d87d |
+.LASF1:
|
|
|
e1d87d |
+ .string "real(kind=4)"
|
|
|
e1d87d |
+.LASF3:
|
|
|
e1d87d |
+ .string "argv"
|
|
|
e1d87d |
+ .ident "GCC: (GNU) 4.8.0 20121015 (experimental)"
|
|
|
e1d87d |
+ .section .note.GNU-stack,"",@progbits
|
|
|
e1d87d |
|