This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]