[binutils-gdb] gdb.rocm/step-abort.exp: prevent ROCr core dumps on exceptions

Luis Machado via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e5f566bbfcbf624e4a2a613313a5b729c7948ca0

commit e5f566bbfcbf624e4a2a613313a5b729c7948ca0
Author: Luis Machado <[email protected]>
Date:   Mon Aug 17 12:09:48 2026 -0500

    gdb.rocm/step-abort.exp: prevent ROCr core dumps on exceptions
    
    Do not let the runtime generate core dumps. It slows things down and it does
    not get used in the test.
    
    Approved-by: Lancelot Six <[email protected]>

Diff:
---
 gdb/testsuite/gdb.rocm/step-abort.exp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/testsuite/gdb.rocm/step-abort.exp b/gdb/testsuite/gdb.rocm/step-abort.exp
index 510161020e9..ac915eb9bec 100644
--- a/gdb/testsuite/gdb.rocm/step-abort.exp
+++ b/gdb/testsuite/gdb.rocm/step-abort.exp
@@ -33,6 +33,8 @@ proc do_test {} {
     clean_restart $::testfile
 
     with_rocm_gpu_lock {
+	# Prevent ROCr from generating a GPU core dump.
+	gdb_test_no_output "set environment HSA_DISABLE_COREDUMP_ON_EXCEPTION=1"
 	if {![runto_main]} {
 	    return
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.