This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [preliminary patch] sim/h8300/compile.c: abort when abort iscalled.


Andrew,

Re: sim and abort/SIGABRT, I discovered something interesting when
I fixed the h8 simulator so that it would return SIGABRT to gdb.
Thanks to these lines in remote-sim.c,


case sim_stopped: switch (sigrc) { case SIGABRT: quit (); break; case SIGINT: case SIGTRAP: default: status->kind = TARGET_WAITKIND_STOPPED;

instead of saying "program stopped with signal SIGABRT",
gdb says "Quit." and detaches from the target.

Have you any idea why it's doing that?

Michael


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