This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/17471] New: repeating a background command makes it foreground
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 09 Oct 2014 13:31:18 +0000
- Subject: [Bug gdb/17471] New: repeating a background command makes it foreground
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17471
Bug ID: 17471
Summary: repeating a background command makes it foreground
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: palves at redhat dot com
Running a background command, and then pressing "enter" to repeat it repeats
the same command, but in the foreground.
This only happens if the command is passed some extra argument other than the
"&", such as "c 1&", "next 2&", "c -a&", etc.
Example:
(gdb) b foo
Breakpoint 2 at 0x4005d4: file bg-execution-repeat.c, line 23.
(gdb) c 1&
Not stopped at any breakpoint; argument ignored.
Continuing.
(gdb)
Breakpoint 2, foo () at bg-execution-repeat.c:23
23 return 0; /* set break here */
<enter is pressed here>
Will stop next time breakpoint 2 is reached. Continuing.
*commands here are ignored here, the inferior running in the foreground*
^C
Program received signal SIGINT, Interrupt.
0x0000003b36abc6d0 in __nanosleep_nocancel () at
../sysdeps/unix/syscall-template.S:81
81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb)
--
You are receiving this mail because:
You are on the CC list for the bug.