This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] sim/avr: allow C-c in gdb
- From: Tristan Gingold <gingold at adacore dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Thu, 22 Oct 2009 18:03:35 +0200
- Subject: [RFA] sim/avr: allow C-c in gdb
Hi,
in order to make C-c working within gdb, sim_stop should return non-
zero (as indicated by
remote-sim.c:gdbsim_stop).
Ok for trunk ?
Tristan.
sim/
2009-10-22 Tristan Gingold <gingold@adacore.com>
* avr/interp.c (sim_stop): Return 1.
RCS file: /cvs/src/src/sim/avr/interp.c,v
retrieving revision 1.1
diff -c -r1.1 interp.c
*** sim/avr/interp.c 27 Apr 2009 10:50:53 -0000 1.1
--- sim/avr/interp.c 22 Oct 2009 16:01:26 -0000
***************
*** 1760,1766 ****
{
cpu_exception = sim_stopped;
cpu_signal = TARGET_SIGNAL_INT;
! return 0;
}
void
--- 1760,1766 ----
{
cpu_exception = sim_stopped;
cpu_signal = TARGET_SIGNAL_INT;
! return 1;
}
void