CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
97 lines
3.0 KiB
Plaintext
97 lines
3.0 KiB
Plaintext
# Copyright 2010-2024 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"
|
|
|
|
require allow_ada_tests
|
|
|
|
standard_ada_testfile foo
|
|
|
|
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
|
|
return -1
|
|
}
|
|
|
|
clean_restart ${testfile}
|
|
|
|
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
|
|
if {![runto "foo.adb:$bp_location"]} {
|
|
return
|
|
}
|
|
|
|
# The xfail mentioned below triggers for the "after" print, but may not
|
|
# trigger for the "before" print, though it will for -readnow. This is
|
|
# related to PR25764 - "LOC_UNRESOLVED symbol missing from partial symtab".
|
|
# Stabilize test results by ensuring that the xfail triggers for the "before"
|
|
# print.
|
|
gdb_test_no_output {maint expand-symtabs "\(pck\|foo\)\.adb"}
|
|
|
|
set gcc_major_version [gcc_major_version]
|
|
set have_xfail [expr $gcc_major_version >= 8 && $gcc_major_version <= 9]
|
|
|
|
# The xfail is for PR gcc/94469, which occurs with target board
|
|
# unix/-flto/-O0/-flto-partition=none/-ffat-lto-objects and gcc-8 and later.
|
|
# Note: We don't check for the filename in xfail_re because it might be
|
|
# wrong, filed as gdb PR25771.
|
|
set xfail_re \
|
|
[multi_line \
|
|
"Multiple matches for last_node_id" \
|
|
"\\\[0\\\] cancel" \
|
|
"\\\[1\\\] pck\\.last_node_id at .*.adb:17" \
|
|
"\\\[2\\\] pck\\.last_node_id at .*.adb:17" \
|
|
"> $"]
|
|
|
|
# Make sure that last_node_id is set to zero...
|
|
gdb_test_multiple "print last_node_id" "print last_node_id before calling pn" {
|
|
-re $xfail_re {
|
|
if { $have_xfail } {
|
|
setup_xfail *-*-*
|
|
}
|
|
fail $gdb_test_name
|
|
# One of the choices will print the correct value, the other one
|
|
# <optimized out>. Since we don't known which one to choose to get
|
|
# the correct value, cancel.
|
|
gdb_test_multiple "0" "cancel after xfail 1" {
|
|
-re -wrap "cancelled" {
|
|
}
|
|
}
|
|
}
|
|
-re -wrap "= 0" {
|
|
pass $gdb_test_name
|
|
}
|
|
}
|
|
|
|
# Now, call procedure Pn, which should set Last_Node_Id to the value
|
|
# of the parameter used in the function call. Verify that we can print
|
|
# the returned value correctly, while we're at it.
|
|
gdb_test "print pn(4321)" "= 4321"
|
|
|
|
# Make sure that last_node_id now has the correct value...
|
|
gdb_test_multiple "print last_node_id" "print last_node_id after calling pn" {
|
|
-re $xfail_re {
|
|
if { $have_xfail } {
|
|
setup_xfail *-*-*
|
|
}
|
|
fail $gdb_test_name
|
|
# Cancel
|
|
gdb_test_multiple "0" "cancel after xfail 2" {
|
|
-re -wrap "cancelled" {
|
|
}
|
|
}
|
|
}
|
|
-re -wrap "= 4321" {
|
|
pass $gdb_test_name
|
|
}
|
|
}
|