diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-03-02 19:31:53 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-03-02 19:31:53 +0000 |
commit | c0eac87f844a1e9c8338366d8d4647fcc2c9a2f5 (patch) | |
tree | a6743733ca5bda9c01f6a04a0bd67a256cdae4fa /gdb/testsuite/gdb.ada/info_locals_renaming.exp | |
parent | 4f42c881de4ade98bc138da312a58b5af0829825 (diff) | |
download | fsf-binutils-gdb-c0eac87f844a1e9c8338366d8d4647fcc2c9a2f5.zip fsf-binutils-gdb-c0eac87f844a1e9c8338366d8d4647fcc2c9a2f5.tar.gz fsf-binutils-gdb-c0eac87f844a1e9c8338366d8d4647fcc2c9a2f5.tar.bz2 |
Testcase: "info locals" with Ada renamings.
gdb/testsuite/ChangeLog:
* gdb.ada/info_locals_renaming: New testcase.
Diffstat (limited to 'gdb/testsuite/gdb.ada/info_locals_renaming.exp')
-rw-r--r-- | gdb/testsuite/gdb.ada/info_locals_renaming.exp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.ada/info_locals_renaming.exp b/gdb/testsuite/gdb.ada/info_locals_renaming.exp new file mode 100644 index 0000000..a8c6469 --- /dev/null +++ b/gdb/testsuite/gdb.ada/info_locals_renaming.exp @@ -0,0 +1,36 @@ +# Copyright 2012 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 3 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, see <http://www.gnu.org/licenses/>. + +load_lib "ada.exp" + +if { [skip_ada_tests] } { return -1 } + +set testdir "info_locals_renaming" +set testfile "${testdir}/foo" +set srcfile ${srcdir}/${subdir}/${testfile}.adb +set binfile ${objdir}/${subdir}/${testfile} + +file mkdir ${objdir}/${subdir}/${testdir} +if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} { + return -1 +} + +clean_restart ${testfile} + +set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb] +runto "foo.adb:$bp_location" + +gdb_test "info locals" "gv = 1" + |