- Use gcc-9 for SLE-12 (default gcc 4.8.5 doesn't support C++17). - Maintenance script qa-local.sh: * Update version to 15.1. - Maintenance script qa.sh: * Add kfails due to gcc 4.8.5 DW_TAG_lexical_block oddity. * Extend PR24845 kfails. * Add PR31721 and PR32608 kfails. - Patches added: * gdb-guile-use-scm_debug_typing_strictness-0.patch * gdb-doc-fix-gdb.unwinder-docs.patch * gdb-doc-fix-qisaddresstagged-anchor.patch * gdb-doc-fix-standard-replies-xref.patch * gdb-testsuite-fix-gdb_py_module_available-for-python.patch * gdb-testsuite-fix-another-regexp-in-gdb.threads-step.patch * gdb-testsuite-fix-timeouts-in-gdb.threads-step-over-.patch - Patches updated: * gdb-6.3-gstack-20050411.patch * gdb-6.6-buildid-locate-solib-missing-ids.patch * gdb-6.6-buildid-locate.patch * gdb-add-rpm-suggestion-script.patch * gdb-gcore-bash.patch * gdb-python-avoid-depending-on-the-curses-library.patch * gdb-python-finishbreakpoint-update.patch - Patches dropped: * gdb-add-missing-debug-ext-lang-hook.patch * gdb-add-missing-debug-info-python-hook.patch * gdb-do-not-import-py-curses-ascii-module.patch * gdb-ftbs-swapped-calloc-args.patch * gdb-handle-no-python-gdb-module.patch * gdb-merge-debug-symbol-lookup.patch * gdb-refactor-find-and-add-separate-symbol-file.patch * gdb-reformat-missing-debug-py-file.patch * gdb-remove-path-in-test-name.patch * gdb-rhbz-2232086-cpp-ify-mapped-symtab.patch * gdb-rhbz-2232086-generate-dwarf-5-index-consistently.patch * gdb-rhbz-2232086-generate-gdb-index-consistently.patch * gdb-rhbz-2232086-reduce-size-of-gdb-index.patch * gdb-rhbz2232086-refactor-selftest-support.patch * gdb-rhbz2250652-avoid-PyOS_ReadlineTState.patch * gdb-rhbz2250652-gdbpy_gil.patch * gdb-rhbz2261580-intrusive_list-assertion-fix.patch * gdb-rhbz2277160-apx-disasm.patch * gdb-rhel2295897-pre-read-DWZ-file-in-DWARF-reader.patch * gdb-sync-coffread-with-elfread.patch * gdb-remove-use-of-py-isascii * change-gdb.base-examine-backwards.exp-for-aix.patch * fix-regression-on-aarch64-linux-gdbserver.patch * fix-the-gdb.ada-inline-section-gc.exp-test.patch * fixup-powerpc-and-aarch64-fix-reverse-stepping-failu.patch * gdb-arm-fix-epilogue-frame-id.patch * gdb-arm-remove-thumb-bit-in-arm_adjust_breakpoint_ad.patch * gdb-arm-remove-tpidruro-register-from-non-freebsd-ta.patch * gdb-build-fix-gdbserver-linux-aarch64-low.cc-build.patch * gdb-exp-fix-cast-handling-for-indirection.patch * gdb-exp-fix-printing-of-out-of-bounds-struct-members.patch * gdb-exp-redo-cast-handling-for-indirection.patch * gdb-fix-heap-use-after-free-in-select_event_lwp.patch * gdb-fix-segfault-in-for_each_block-part-1.patch * gdb-fix-segfault-in-for_each_block-part-2.patch * gdb-python-fix-gdb.python-py-disasm.exp-on-arm-linux.patch * gdb-python-make-gdb.unwindinfo.add_saved_register-mo-fixup.patch * gdb-python-make-gdb.unwindinfo.add_saved_register-mo.patch * gdb-remote-fix-abort-on-remote_close_error.patch * gdb-s390-add-arch14-record-replay-support.patch * gdb-symtab-add-producer_is_gas.patch * gdb-symtab-don-t-defer-backward-refs-inter-cu-intra-.patch * gdb-symtab-factor-out-m_deferred_entries-usage.patch * gdb-symtab-factor-out-m_die_range_map-usage.patch * gdb-symtab-fix-dw_tag_inlined_subroutine-entries-in-.patch * gdb-symtab-handle-nullptr-parent-in-parent_map-set_p.patch * gdb-symtab-keep-track-of-all-parents-for-cooked-inde.patch * gdb-symtab-keep-track-of-processed-dies-in-shard.patch * gdb-symtab-refactor-condition-in-scan_attributes.patch * gdb-symtab-resolve-deferred-entries-inter-shard-case.patch * gdb-symtab-resolve-deferred-entries-intra-shard-case.patch * gdb-symtab-work-around-gas-pr28629.patch * gdb-symtab-work-around-pr-gas-29517-dwarf2-case.patch * gdb-symtab-work-around-pr-gas-29517.patch * gdb-symtab-workaround-pr-gas-31115.patch * gdb-tdep-fix-catching-syscall-execve-exit-for-arm.patch * gdb-tdep-fix-gdb.base-watch-bitfields.exp-on-aarch64.patch * gdb-tdep-fix-gdb.base-watchpoint-running-on-arm-ppc6.patch * gdb-tdep-fix-gdb.base-watchpoint-unaligned.exp-on-aa.patch * gdb-tdep-fix-nr-array-elements-in-ppc64_aggregate_ca.patch * gdb-tdep-fix-reverse-execution-of-ldr-immediate-t4.patch * gdb-testsuite-add-gdb.dwarf2-backward-spec-inter-cu..patch * gdb-testsuite-add-gdb.dwarf2-forward-spec-inter-cu.e.patch * gdb-testsuite-add-missing-include-in-gdb.base-ctf-pt.patch * gdb-testsuite-add-missing-include-in-gdb.base-rtld-s.patch * gdb-testsuite-add-missing-includes-in-gdb.trace-coll.patch * gdb-testsuite-add-missing-no-prompt-anchor-in-gdb.ba.patch * gdb-testsuite-add-pr-gdb-26967-kfail-in-two-more-tes.patch * gdb-testsuite-call-ldd-version-in-gdb.testsuite-dump.patch * gdb-testsuite-factor-out-proc-get_portnum.patch * gdb-testsuite-factor-out-proc-lock_dir.patch * gdb-testsuite-factor-out-proc-with_lock.patch * gdb-testsuite-fix-gdb.ada-verylong.exp-on-32-bit-tar.patch * gdb-testsuite-fix-gdb.base-eh_return.exp.patch * gdb-testsuite-fix-gdb.base-ending-run.exp-on-manjaro.patch * gdb-testsuite-fix-gdb.base-list-no-debug.exp-on-debi.patch * gdb-testsuite-fix-gdb.cp-namespace.exp-with-read1.patch * gdb-testsuite-fix-gdb.dwarf2-dw2-gas-workaround.exp.patch * gdb-testsuite-fix-gdb.mi-mi-dprintf.exp-with-read1.patch * gdb-testsuite-fix-gdbserver-pid-in-gdb.server-server.patch * gdb-testsuite-fix-gdb.server-server-connect.exp-for-.patch * gdb-testsuite-fix-license-text-in-gdb.reverse-map-to.patch * gdb-testsuite-fix-missing-return-type-in-gdb.linespe.patch * gdb-testsuite-fix-regexp-in-vgdb_start.patch * gdb-testsuite-fix-spurious-fails-with-examine-backwa.patch * gdb-testsuite-fix-test-case-gdb.threads-attach-stopp.patch * gdb-testsuite-fix-test-in-gdb.python-py-finish-break.patch * gdb-testsuite-fix-typo-in-gdb.base-catch-syscall.exp.patch * gdb-testsuite-fix-valgrind-tests-on-debian.patch * gdb-testsuite-further-handle-long-filenames-in-gdb.b.patch * gdb-testsuite-handle-core-without-build-id-in-gdb.ba.patch * gdb-testsuite-handle-pac-marker.patch * gdb-testsuite-make-gdb.base-solib-search.exp-more-ro.patch * gdb-testsuite-make-portnum-a-persistent-global.patch * gdb-testsuite-move-gpu-parallel.lock-to-cache-dir.patch * gdb-testsuite-remove-spurious-in-save_vars.patch * gdb-testsuite-reset-errcnt-and-warncnt-in-default_gd.patch * gdb-testsuite-simplify-gdb.server-server-kill-python.patch * gdb-testsuite-use-find_gnatmake-instead-of-gdb_find_.patch * gdb-testsuite-use-more-progbits-for-arm.patch * gdb-testsuite-use-unique-portnum-in-parallel-testing-check-slash-slash-case.patch * gdb-testsuite-use-unique-portnum-in-parallel-testing.patch * gdb-tui-allow-command-window-of-1-or-2-lines.patch * gdb-tui-fix-resizing-of-terminal-to-1-or-2-lines.patch * gdb-tui-fix-wmaybe-uninitialized-in-tui_find_disasse.patch * make-pascal_language-print_type-handle-varstring-nul.patch * powerpc-and-aarch64-fix-reverse-stepping-failure.patch * powerpc-fix-test-gdb.ada-finish-large.exp.patch * riscv-lrsc.patch * rs6000-unwind-on-each-instruction-fix.patch * s390-provide-ibm-z16-arch14-instruction-descriptions.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=425
104 lines
4.0 KiB
Diff
104 lines
4.0 KiB
Diff
From 2723a9ea67f16593591c4db9101e423ff73e6353 Mon Sep 17 00:00:00 2001
|
|
From: Tom de Vries <tdevries@suse.de>
|
|
Date: Thu, 16 Jan 2025 09:39:55 +0100
|
|
Subject: [PATCH 31/37] [gdb/testsuite] Fix timeouts in
|
|
gdb.threads/step-over-thread-exit.exp
|
|
|
|
Once in a while, I run into a timeout in test-case
|
|
gdb.threads/step-over-thread-exit.exp:
|
|
...
|
|
(gdb) continue^M
|
|
Continuing.^M
|
|
[New Thread 0xfffff7cff1a0 (LWP 2874854)]^M
|
|
^M
|
|
Thread 97 "step-over-threa" hit Breakpoint 2, 0x0000000000410314 in \
|
|
my_exit_syscall () at gdb/testsuite/lib/my-syscalls.S:74^M
|
|
74 SYSCALL (my_exit, __NR_exit)^M
|
|
(gdb) [Thread 0xfffff7cff1a0 (LWP 2874853) exited]^M
|
|
FAIL: $exp: step_over_mode=displaced: non-stop=on: target-non-stop=on: \
|
|
schedlock=off: cmd=continue: ns_stop_all=0: iter 95: continue (timeout)
|
|
...
|
|
|
|
I can reproduce it more frequently by running with taskset -c <slow core id>.
|
|
|
|
Fix this by using -no-prompt-anchor.
|
|
|
|
This requires us to add -no-prompt-anchor to proc gdb_test_multiple.
|
|
|
|
Tested on aarch64-linux.
|
|
|
|
PR testsuite/32489
|
|
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32489
|
|
---
|
|
gdb/testsuite/gdb.threads/step-over-thread-exit.exp | 5 +++--
|
|
gdb/testsuite/lib/gdb.exp | 9 ++++++++-
|
|
2 files changed, 11 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/gdb/testsuite/gdb.threads/step-over-thread-exit.exp b/gdb/testsuite/gdb.threads/step-over-thread-exit.exp
|
|
index 8eb93995657..98cc94e9528 100644
|
|
--- a/gdb/testsuite/gdb.threads/step-over-thread-exit.exp
|
|
+++ b/gdb/testsuite/gdb.threads/step-over-thread-exit.exp
|
|
@@ -193,7 +193,7 @@ proc test {step_over_mode non-stop target-non-stop schedlock cmd ns_stop_all} {
|
|
with_test_prefix "iter $i" {
|
|
set ok 0
|
|
set thread "<unknown>"
|
|
- gdb_test_multiple "continue" "" {
|
|
+ gdb_test_multiple "continue" "" -no-prompt-anchor {
|
|
-re -wrap "Thread ($::decimal) .*hit Breakpoint $::decimal.* my_exit_syscall .*" {
|
|
set thread $expect_out(1,string)
|
|
set ok 1
|
|
@@ -206,7 +206,8 @@ proc test {step_over_mode non-stop target-non-stop schedlock cmd ns_stop_all} {
|
|
}
|
|
|
|
if {${non-stop}} {
|
|
- gdb_test -nopass "thread $thread" "Switching to thread .*" \
|
|
+ gdb_test -nopass -no-prompt-anchor "thread $thread" \
|
|
+ "Switching to thread .*" \
|
|
"switch to event thread"
|
|
}
|
|
}
|
|
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
|
|
index c32dccab43e..008c1b83c1e 100644
|
|
--- a/gdb/testsuite/lib/gdb.exp
|
|
+++ b/gdb/testsuite/lib/gdb.exp
|
|
@@ -977,6 +977,10 @@ proc fill_in_default_prompt {prompt_regexp with_anchor} {
|
|
# if one of them matches. If MESSAGE is empty COMMAND will be used.
|
|
# -prompt PROMPT_REGEXP specifies a regexp matching the expected prompt
|
|
# after the command output. If empty, defaults to "$gdb_prompt $".
|
|
+# -no-prompt-anchor specifies that if the default prompt regexp is used, it
|
|
+# should not be anchored at the end of the buffer. This means that the
|
|
+# pattern can match even if there is stuff output after the prompt. Does not
|
|
+# have any effect if -prompt is specified.
|
|
# -lbl specifies that line-by-line matching will be used.
|
|
# EXPECT_ARGUMENTS will be fed to expect in addition to the standard
|
|
# patterns. Pattern elements will be evaluated in the caller's
|
|
@@ -1076,6 +1080,7 @@ proc gdb_test_multiple { command message args } {
|
|
|
|
set line_by_line 0
|
|
set prompt_regexp ""
|
|
+ set prompt_anchor 1
|
|
for {set i 0} {$i < [llength $args]} {incr i} {
|
|
set arg [lindex $args $i]
|
|
if { $arg == "-prompt" } {
|
|
@@ -1083,6 +1088,8 @@ proc gdb_test_multiple { command message args } {
|
|
set prompt_regexp [lindex $args $i]
|
|
} elseif { $arg == "-lbl" } {
|
|
set line_by_line 1
|
|
+ } elseif { $arg == "-no-prompt-anchor" } {
|
|
+ set prompt_anchor 0
|
|
} else {
|
|
set user_code $arg
|
|
break
|
|
@@ -1094,7 +1101,7 @@ proc gdb_test_multiple { command message args } {
|
|
error "Too few arguments to gdb_test_multiple"
|
|
}
|
|
|
|
- set prompt_regexp [fill_in_default_prompt $prompt_regexp true]
|
|
+ set prompt_regexp [fill_in_default_prompt $prompt_regexp $prompt_anchor]
|
|
|
|
if { $message == "" } {
|
|
set message $command
|
|
--
|
|
2.43.0
|
|
|