binutils-gdb/gdb/testsuite/gdb.python
John Baldwin 467a34bb9e gdb tests: Allow for "LWP" or "process" in thread IDs from info threads
Several tests assume that the first word after a thread ID in 'info
threads' output is "Thread".  However, several targets use "LWP"
instead such as the FreeBSD and NetBSD native targets.  The Linux
native target also uses "LWP" if libthread_db is not being used.
Targets that do not support threads use "process" as the first word
via normal_pid_to_str.

Add a tdlabel_re global variable as a regular-expression for a thread
label in `info threads' that matches either "process", "Thread", or
"LWP".

Some other tests in the tree don't require a specific word, and
some targets may use other first words (e.g. OpenBSD uses "thread"
and Ravenscar threads use "Ravenscar Thread").
2024-03-22 17:29:47 -07:00
..
amd64-py-framefilter-invalidarg.S
compare-enum-type-a.c
compare-enum-type-b.c
compare-enum-type.exp
compare-enum-type.h
flexible-array-member.c
flexible-array-member.exp
lib-types.cc
lib-types.exp
libpy-autoloaded-pretty-printers-in-newobjfile-event.so-gdb.py
lotsa-lines.exp
pretty-print-call-by-hand.c
pretty-print-call-by-hand.exp
pretty-print-call-by-hand.py
py-arch-reg-groups.exp
py-arch-reg-names.exp
py-arch.c
py-arch.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-as-string.c
py-as-string.exp
py-auto-load-chaining-f1.c
py-auto-load-chaining-f1.o-gdb.py
py-auto-load-chaining-f2.c
py-auto-load-chaining-f2.o-gdb.py
py-auto-load-chaining.c
py-auto-load-chaining.exp
py-autoloaded-pretty-printers-in-newobjfile-event-lib.cc
py-autoloaded-pretty-printers-in-newobjfile-event-lib.h
py-autoloaded-pretty-printers-in-newobjfile-event-main.cc
py-autoloaded-pretty-printers-in-newobjfile-event.exp
py-autoloaded-pretty-printers-in-newobjfile-event.py
py-bad-printers.c
py-bad-printers.exp
py-bad-printers.py
py-block.c
py-block.exp [gdb/python] Normalize exceptions in gdbpy_err_fetch 2024-03-09 16:13:10 +01:00
py-bp-locations.c
py-bp-locations.exp
py-breakpoint-create-fail.c
py-breakpoint-create-fail.exp
py-breakpoint-create-fail.py
py-breakpoint.c
py-breakpoint.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-caller-is.c
py-caller-is.exp
py-charset.exp
py-cmd-exception.c gdb, python: selectively omit enabling stdin in gdb.execute 2024-02-19 10:55:32 +01:00
py-cmd-exception.exp gdb, python: selectively omit enabling stdin in gdb.execute 2024-02-19 10:55:32 +01:00
py-cmd-exception.py testsuite, python: reformat python files using black 2024-02-19 14:08:31 +01:00
py-cmd-prompt.c gdb, python: selectively omit enabling stdin in gdb.execute 2024-02-19 10:55:32 +01:00
py-cmd-prompt.exp gdb, python: selectively omit enabling stdin in gdb.execute 2024-02-19 10:55:32 +01:00
py-cmd-prompt.py testsuite, python: reformat python files using black 2024-02-19 14:08:31 +01:00
py-cmd.c
py-cmd.exp
py-completion.exp
py-completion.py
py-connection-removed.exp
py-connection.c
py-connection.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-disasm.c
py-disasm.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-disasm.py
py-doc-reformat.exp
py-error.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-error.py
py-event-load.c
py-event-load.exp
py-event-load.py
py-events-shlib.c
py-events.c
py-events.exp
py-events.py
py-evsignal.exp
py-evthreads.c
py-evthreads.exp
py-exec-file.c
py-exec-file.exp
py-exec-mi.exp
py-explore-cc.exp
py-explore.c
py-explore.cc
py-explore.exp
py-finish-breakpoint2.cc
py-finish-breakpoint2.exp
py-finish-breakpoint2.py
py-finish-breakpoint-deletion.c
py-finish-breakpoint-deletion.exp
py-finish-breakpoint-deletion.py
py-finish-breakpoint.c
py-finish-breakpoint.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-finish-breakpoint.py
py-format-address.c
py-format-address.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-format-string.c
py-format-string.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-format-string.py
py-frame-args.c
py-frame-args.exp
py-frame-args.py
py-frame-inline.c
py-frame-inline.exp
py-frame.c
py-frame.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-framefilter-addr.c
py-framefilter-addr.exp
py-framefilter-addr.py
py-framefilter-gdb.py
py-framefilter-invalidarg-gdb.py
py-framefilter-invalidarg.exp
py-framefilter-invalidarg.py
py-framefilter-mi.c
py-framefilter-mi.exp
py-framefilter.c
py-framefilter.exp
py-framefilter.py
py-function.exp
py-inferior-leak.c
py-inferior-leak.exp
py-inferior-leak.py
py-inferior.c
py-inferior.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-infthread.c
py-infthread.exp
py-label-symbol-value.c
py-label-symbol-value.exp
py-lazy-string.c
py-lazy-string.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-linetable-empty.c gdb/python: Fix segfault when iterating over empty linetable 2024-03-19 11:34:16 +00:00
py-linetable-empty.exp gdb/python: Fix segfault when iterating over empty linetable 2024-03-19 11:34:16 +00:00
py-linetable.c
py-linetable.exp
py-linetable.S
py-lookup-type.exp
py-mi-cmd.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-mi-cmd.py
py-mi-events-gdb.py
py-mi-events.c
py-mi-events.exp
py-mi-notify.exp
py-mi-objfile-gdb.py
py-mi-objfile.c
py-mi-objfile.exp
py-mi-var-info-path-expression.c
py-mi-var-info-path-expression.exp
py-mi-var-info-path-expression.py
py-mi.exp
py-missing-debug.c
py-missing-debug.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-missing-debug.py
py-nested-maps.c
py-nested-maps.exp
py-nested-maps.py
py-objfile-script-gdb.py
py-objfile-script.c
py-objfile-script.exp
py-objfile.c
py-objfile.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-parameter.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-pending-frame-level.c
py-pending-frame-level.exp
py-pending-frame-level.py
py-pp-cast.c
py-pp-cast.exp
py-pp-cast.py
py-pp-integral.c
py-pp-integral.exp
py-pp-integral.py
py-pp-maint.c
py-pp-maint.exp
py-pp-maint.py
py-pp-re-notag.c
py-pp-re-notag.exp
py-pp-re-notag.py
py-pp-registration.c
py-pp-registration.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-pp-registration.py
py-prettyprint-stub-2.cc
py-prettyprint-stub.cc
py-prettyprint-stub.exp
py-prettyprint-stub.h
py-prettyprint-stub.py
py-prettyprint.c
py-prettyprint.exp
py-prettyprint.py gdb: re-format Python files with black 24.1.1 2024-02-12 12:10:34 -05:00
py-progspace-events.c
py-progspace-events.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-progspace-events.py
py-progspace.c
py-progspace.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-prompt.c
py-prompt.exp
py-rbreak-func2.c
py-rbreak.c
py-rbreak.exp
py-record-btrace-threads.c
py-record-btrace-threads.exp
py-record-btrace.c
py-record-btrace.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-record-full.c
py-record-full.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-recurse-unwind.c
py-recurse-unwind.exp
py-recurse-unwind.py
py-rvalue-ref-value-cc.cc
py-rvalue-ref-value-cc.exp
py-section-script.c
py-section-script.exp
py-section-script.py
py-send-packet.c
py-send-packet.exp
py-send-packet.py
py-shared-sl.c
py-shared.c
py-shared.exp gdb/python: test exception case for gdb.solib_name 2024-03-19 16:03:34 +00:00
py-source-styling.c
py-source-styling.exp
py-startup-opt.exp
py-strfns.c
py-strfns.exp
py-symbol-2.c
py-symbol.c
py-symbol.exp
py-symtab.exp
py-sync-interp.c
py-sync-interp.exp
py-template.cc
py-template.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-thread-exited.c
py-thread-exited.exp
py-thread-exited.py
py-thrhandle.c
py-thrhandle.exp gdb tests: Allow for "LWP" or "process" in thread IDs from info threads 2024-03-22 17:29:47 -07:00
py-type.c
py-type.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-typeprint.cc
py-typeprint.exp
py-typeprint.py
py-unwind-inline.c
py-unwind-inline.exp
py-unwind-inline.py
py-unwind-maint.c
py-unwind-maint.exp
py-unwind-maint.py
py-unwind-user-regs.c
py-unwind-user-regs.exp
py-unwind-user-regs.py
py-unwind.c
py-unwind.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-unwind.py
py-value-cc.cc Allow calling of C++ methods from python 2024-02-08 20:09:56 +01:00
py-value-cc.exp Allow calling of C++ methods from python 2024-02-08 20:09:56 +01:00
py-value.c
py-value.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
py-varobj.c
py-varobj.exp
py-varobj.py
py-watchpoint.c
py-watchpoint.exp
py-watchpoint.py
py-xmethods.cc
py-xmethods.exp
py-xmethods.py
python-1.c
python.c
python.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
source1
source2.py Set __file__ when source'ing a Python script 2024-03-18 07:20:14 -06:00
tui-window-disabled.c
tui-window-disabled.exp
tui-window-disabled.py
tui-window-factory.exp
tui-window-factory.py
tui-window-names.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
tui-window.exp Rewrite "python" command exception handling 2024-02-27 09:46:31 -07:00
tui-window.py