Calls to error () can cause SIGTTOU to send gdb to the background. For example, on an Arm build: (gdb) b main Breakpoint 1 at 0x10774: file /build/gdb/testsuite/../../../src/binutils-gdb/gdb/testsuite/gdb.base/watchpoi nt.c, line 174. (gdb) r Starting program: /build/gdb/testsuite/outputs/gdb.base/watchpoint/watchpoint [1]+ Stopped ../gdb ./outputs/gdb.base/watchpoint/watchpoint localhost$ fg ../gdb ./outputs/gdb.base/watchpoint/watchpoint Cannot parse expression `.L1199 4@r4'. warning: Probes-based dynamic linker interface failed. Reverting to original interface.
Fixed on master by commit 766f883622 "Suppress SIGTTOU when handling errors".
The gdb-8.3-branch branch has been updated by Tom de Vries <vries@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5ca0b868fa7f767788555b3c32d8931017c0d756 commit 5ca0b868fa7f767788555b3c32d8931017c0d756 Author: Tom de Vries <tdevries@suse.de> Date: Wed Sep 18 16:20:25 2019 +0200 Update ChangeLog entry of commit 8ac39635f6 and mention PR gdb/25010
Fix backported, marking resolved-fixed.
*** Bug 25015 has been marked as a duplicate of this bug. ***
The master branch has been updated by Tom de Vries <vries@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=68255adc03d3256af140432213c8ae136f16e419 commit 68255adc03d3256af140432213c8ae136f16e419 Author: Tom de Vries <tdevries@suse.de> Date: Sun Oct 13 15:09:09 2019 +0200 Mention PR gdb/25010 in ChangeLog entry [ Port of gdb-8.3-branch commit 5ca0b868fa7 "Update ChangeLog entry of commit 8ac39635f6 and mention PR gdb/25010". ]