diff options
Diffstat (limited to 'gdb/testsuite/gdb.dap/memory.exp')
-rw-r--r-- | gdb/testsuite/gdb.dap/memory.exp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.dap/memory.exp b/gdb/testsuite/gdb.dap/memory.exp index 7082706..e62679c 100644 --- a/gdb/testsuite/gdb.dap/memory.exp +++ b/gdb/testsuite/gdb.dap/memory.exp @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Free Software Foundation, Inc. +# Copyright 2023-2025 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 @@ -25,17 +25,20 @@ if {[build_executable ${testfile}.exp $testfile] == -1} { return } -save_vars { env(ASAN_OPTIONS) } { +save_vars { env(ASAN_OPTIONS) env(TSAN_OPTIONS) } { # The request readMemory with count 18446744073709551615 triggers address # sanitizer. Suppress the error, leaving us with just this warning: # WARNING: AddressSanitizer failed to allocate 0xffffffffffffffff bytes - set_sanitizer ASAN_OPTIONS allocator_may_return_null 1 + append_environment ASAN_OPTIONS allocator_may_return_null 1 + append_environment TSAN_OPTIONS allocator_may_return_null 1 if {[dap_initialize] == ""} { return } } +set launch_id [dap_launch $testfile] + set line [gdb_get_line_number "BREAK"] set obj [dap_check_request_and_response "set breakpoint by line number" \ setBreakpoints \ @@ -45,9 +48,8 @@ set line_bpno [dap_get_breakpoint_number $obj] dap_check_request_and_response "configurationDone" configurationDone -if {[dap_launch $testfile] == ""} { - return -} +dap_check_response "launch response" launch $launch_id + dap_wait_for_event_and_check "inferior started" thread "body reason" started dap_wait_for_event_and_check "stopped at line breakpoint" stopped \ |