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]

Re: [PATCH] sim: nrun: decode signal when crashing


vapier wrote:

> [...]
>        if (sigrc != 0)
> -        fprintf (stderr, "program stopped with signal %d.\n", sigrc);
> +	fprintf (stderr, "program stopped with signal %d (%s).\n", sigrc,
> +		 strsignal (sigrc));
>        break;

I don't know if we can assume that the target signal numbering matches
the host.  Else I suspect we wouldn't have all those TARGET_SIGNAL_*
defs.


- FChE


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