File: lang.exp

package info (click to toggle)
gdb 15.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 235,088 kB
  • sloc: ansic: 2,126,999; asm: 374,605; exp: 201,030; cpp: 71,828; makefile: 70,476; sh: 25,278; python: 13,135; yacc: 11,318; ada: 7,264; xml: 6,209; perl: 5,077; pascal: 3,370; tcl: 2,753; f90: 2,735; lisp: 1,970; cs: 879; lex: 737; sed: 228; awk: 153; objc: 137; fortran: 57
file content (40 lines) | stat: -rw-r--r-- 1,405 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2005 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

# This file was written by Wu Zhou. ([email protected])

# This file is part of the gdb testsuite.  It is intended to test that gdb
# could recognize the Fortran language after loading the binary

if $tracelevel then {
	strace $tracelevel
}

set testfile "array-element"
set srcfile ${srcdir}/${subdir}/${testfile}.f
set binfile ${objdir}/${subdir}/${testfile}

if  { [gdb_compile "${srcfile}" "${binfile}" executable {debug f77}] != "" } {
    untested "Couldn't compile ${srcfile}"
    return -1
}

gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}

gdb_test "show language" ".*currently fortran.*" "show language(fortran)"