From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15450 invoked by alias); 9 Oct 2014 13:31:20 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 15426 invoked by uid 48); 9 Oct 2014 13:31:20 -0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17471] New: repeating a background command makes it foreground Date: Thu, 09 Oct 2014 13:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palves at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00046.txt.bz2 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 */ 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.