The GDB 4.8 features are: * Guile scripting support. * Python scripting enhancements. * New commands: ** guile ** guile-repl ** info auto-load guile-scripts [REGEXP] * New options: ** maint ada set ignore-descriptive-types (on|off) ** maint set target-async (on|off) ** set|show auto-load guile-scripts (on|off) ** set|show auto-connect-native-target ** set|show guile print-stack (none|message|full) ** set|show mi-async (on|off) ** set|show print symbol-loading (off|brief|full) ** set|show record btrace replay-memory-access (read-only|read-write) * Remote Protocol: ** The qXfer:btrace:read packet supports a new annex 'delta'. * GDB/MI: ** A new option "-gdb-set mi-async" replaces "-gdb-set target-async". * New target configurations: ** PowerPC64 GNU/Linux little-endian * btrace enhancements: ** The btrace record target now supports the 'record goto' command. ** The btrace record target supports limited reverse execution and replay. * ISO C99 variable length automatic arrays support. * It is no longer required to "set target-async on" in order to use background execution commands (e.g., "c&", "s&", etc.). OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=102
73 lines
2.5 KiB
Diff
73 lines
2.5 KiB
Diff
http://sourceware.org/ml/gdb-patches/2014-07/msg00154.html
|
|
Subject: Re: [PATCH] PR python/16699: GDB Python command completion with overriden complete vs. completer class
|
|
|
|
|
|
--pWyiEgJYm5f9v55/
|
|
Content-Type: text/plain; charset=us-ascii
|
|
Content-Disposition: inline
|
|
|
|
On Tue, 08 Jul 2014 17:32:21 +0200, Jan Kratochvil wrote:
|
|
> - -re "^completefilecommandcond ${objdir}/${subdir}/py-completion-t$" {
|
|
> + -re "^completefilecommandcond ${completion_regex}$" {
|
|
|
|
There was a racy bug here - and even in the former test - here should be:
|
|
+ -re "^completefilecommandcond ${completion_regex}\007$" {
|
|
|
|
Updated fix attached.
|
|
|
|
|
|
Jan
|
|
|
|
--pWyiEgJYm5f9v55/
|
|
Content-Type: text/plain; charset=us-ascii
|
|
Content-Disposition: inline; filename="py-completion-race2.patch"
|
|
|
|
--- ./gdb/testsuite/gdb.python/py-completion.exp-orig 2014-07-07 21:32:17.891045058 +0200
|
|
+++ ./gdb/testsuite/gdb.python/py-completion.exp 2014-07-08 20:14:57.189791928 +0200
|
|
@@ -26,9 +26,9 @@ if { [skip_python_tests] } { continue }
|
|
gdb_test_no_output "source ${srcdir}/${subdir}/${testfile}.py"
|
|
|
|
# Create a temporary directory
|
|
-set testdir "${objdir}/${subdir}/py-completion-testdir/"
|
|
+set testdir "[standard_output_file "py-completion-testdir"]/"
|
|
set testdir_regex [string_to_regexp $testdir]
|
|
-set testdir_complete "${objdir}/${subdir}/py-completion-test"
|
|
+set testdir_complete [standard_output_file "py-completion-test"]
|
|
file mkdir $testdir
|
|
|
|
# This one should always pass.
|
|
@@ -40,8 +40,7 @@ gdb_test_multiple "" "completefileinit c
|
|
}
|
|
|
|
# Just discarding whatever we typed.
|
|
-send_gdb "\n"
|
|
-gdb_test "print" ".*"
|
|
+gdb_test " " ".*" "discard #1"
|
|
|
|
# This is the problematic one.
|
|
send_gdb "completefilemethod ${testdir_complete}\t"
|
|
@@ -55,16 +54,16 @@ gdb_test_multiple "" "completefilemethod
|
|
}
|
|
|
|
# Discarding again
|
|
-send_gdb "\n"
|
|
-gdb_test "print" ".*"
|
|
+gdb_test " " ".*" "discard #2"
|
|
|
|
# Another problematic
|
|
-send_gdb "completefilecommandcond ${objdir}/${subdir}/py-completion-t\t"
|
|
+set completion_regex "[string_to_regexp [standard_output_file "py-completion-t"]]"
|
|
+send_gdb "completefilecommandcond [standard_output_file "py-completion-t\t"]"
|
|
gdb_test_multiple "" "completefilecommandcond completion" {
|
|
-re "^completefilecommandcond ${testdir}$" {
|
|
fail "completefilecommandcond completion (completed filename instead of command)"
|
|
}
|
|
- -re "^completefilecommandcond ${objdir}/${subdir}/py-completion-t$" {
|
|
+ -re "^completefilecommandcond ${completion_regex}\007$" {
|
|
pass "completefilecommandcond completion"
|
|
}
|
|
}
|
|
|
|
--pWyiEgJYm5f9v55/--
|
|
|