From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5074 invoked by alias); 13 Mar 2013 23:51:57 -0000 Received: (qmail 5056 invoked by uid 48); 13 Mar 2013 23:51:55 -0000 From: "gareth at blacksphere dot co.nz" To: gdb-prs@sourceware.org Subject: [Bug remote/15275] New: gdb quit command fails if remote serial link is broken Date: Wed, 13 Mar 2013 23:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gareth at blacksphere dot co.nz X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-q1/txt/msg00440.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15275 Bug #: 15275 Summary: gdb quit command fails if remote serial link is broken Product: gdb Version: 7.5 Status: NEW Severity: normal Priority: P2 Component: remote AssignedTo: unassigned@sourceware.org ReportedBy: gareth@blacksphere.co.nz Classification: Unclassified If debugging with a remote connection over a serial link and the link is disconnected, say by disconnecting USB serial port, the GDB quit command no longer works. GDB must be forcibly killed. The MI -gdb-exit command does still work. This is tested on a Debian Wheezy amd64 host system with GDB 7.5.1 for arm-none-eabi target. This may be a duplicate of bug 11221 and/or 12853 as the symptoms are very similar. (gdb) tar ext /dev/ttyACM0 &"tar ext /dev/ttyACM0\n" ~"Remote debugging using /dev/ttyACM0\n" ^done (gdb) set debug remote 1 &"set debug remote 1\n" ^done (gdb) quit &"quit\n" &"Sending packet: $qTStatus#49..." &"putpkt: write failed: Input/output error.\n" ^error,msg="putpkt: write failed: Input/output error." (gdb) -gdb-exit ^exit -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.