This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [preliminary patch] sim/h8300/compile.c: abort when abort iscalled.
- From: Michael Snyder <msnyder at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 24 Jun 2003 15:24:18 -0700
- Subject: Re: [preliminary patch] sim/h8300/compile.c: abort when abort iscalled.
- Organization: Red Hat, Inc.
- References: <20030624.035043.10249396.kazu@cs.umass.edu> <3EF87254.1060900@redhat.com>
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