This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug remote/20398] New: File-IO write always outputs QUIT.
- From: "currygt52 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 22 Jul 2016 04:03:41 +0000
- Subject: [Bug remote/20398] New: File-IO write always outputs QUIT.
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20398
Bug ID: 20398
Summary: File-IO write always outputs QUIT.
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: remote
Assignee: unassigned at sourceware dot org
Reporter: currygt52 at gmail dot com
Target Milestone: ---
Hi,
We implemented File-IO functionality in our simulator.
But it fails to output since commit bb7c96deb1a14ef7e8b51d5339a65a8064515c78
gdb/remote-fileio.c: Eliminate custom SIGINT signal handler
This issue can also be reproduced using arm-qemu.
Please help to check this.
[Code]
#include <stdio.h>
int main(void)
{
int i;
for (i = 0; i < 10; i++)
printf("i: %d\n", i);
return 0;
}
[Failed output]
(gdb) target remote :8888
Remote debugging using :8888
0x00008098 in _start ()
(gdb) c
Continuing.
Quit
Quit
Quit
Quit
Quit
Quit
Quit
Quit
Quit
Quit
Quit
[Inferior 1 (Remote target) exited normally]
[Expected output]
(gdb) target remote :8888
Remote debugging using :8888
0x00008098 in _start ()
(gdb) c
Continuing.
i: 0
i: 1
i: 2
i: 3
i: 4
i: 5
i: 6
i: 7
i: 8
i: 9
[Inferior 1 (Remote target) exited normally]
[Step to reproduce]
arm-none-eabi-gcc -g -mthumb -mcpu=cortex-m3 -lc -lg -lm -lrdimon
-specs=rdimon.specs -o print print.c
qemu-system-arm -machine versatilepb -cpu cortex-m3 -nographic -semihosting
-kernel print -S -gdb tcp::8888
[Packet at failed run]
Packet received: Fwrite,00000001,000181b8,00000005
Sending packet: $m181b8,5#02...Ack
Packet received: 693a20300a
Quit <=== This may come from QUIT in target_read()
Sending packet: $F-1,4#04...Ack
Packet received: Fwrite,00000001,000181b8,00000005
Sending packet: $m181b8,5#02...Ack
Packet received: 693a20310a
Quit
Sending packet: $F-1,4#04...Ack
[Pakcet at workable run]
Packet received: Fwrite,00000001,000181b8,00000005
Sending packet: $m181b8,5#02...Ack
Packet received: 693a20300a
i: 0
Sending packet: $F5#7b...Ack
Packet received: Fwrite,00000001,000181b8,00000005
Sending packet: $m181b8,5#02...Ack
Packet received: 693a20310a
i: 1
Sending packet: $F5#7b...Ack
--
You are receiving this mail because:
You are on the CC list for the bug.