Bug 25015

Summary: GDB errors can cause GDB to go into the background
Product: gdb Reporter: Alan Hayward <alahay01>
Component: gdbAssignee: Alan Hayward <alahay01>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 8.2   
Target Milestone: 8.3.1   
Host: Target:
Build: Last reconfirmed:

Description Alan Hayward 2019-09-18 17:16:46 UTC
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/watchpoint.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.
Comment 1 Alan Hayward 2019-09-19 14:39:28 UTC
Already raised.

*** This bug has been marked as a duplicate of bug 25010 ***