mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
Print exit status/signal number if -I
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||||
|
|
||||||
|
* psim.c (psim_print_info): Print exit status or signal number.
|
||||||
|
|
||||||
Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com>
|
Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||||
|
|
||||||
* cpu.c (struct _cpu): Add number_of_insns field to trace how many
|
* cpu.c (struct _cpu): Add number_of_insns field to trace how many
|
||||||
|
@ -910,7 +910,24 @@ psim_write_memory(psim *system,
|
|||||||
INLINE_PSIM void
|
INLINE_PSIM void
|
||||||
psim_print_info(psim *system, int verbose)
|
psim_print_info(psim *system, int verbose)
|
||||||
{
|
{
|
||||||
|
psim_status status;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
||||||
|
status = psim_get_status(system);
|
||||||
|
switch (status.reason) {
|
||||||
|
default:
|
||||||
|
break; /* our caller will print an appropriate error message */
|
||||||
|
|
||||||
|
case was_exited:
|
||||||
|
printf ("Exit status = %d\n", status.signal);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case was_signalled:
|
||||||
|
printf ("Got signal %d\n", status.signal);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < system->nr_cpus; i++)
|
for (i = 0; i < system->nr_cpus; i++)
|
||||||
cpu_print_info (system->processors[i], verbose);
|
cpu_print_info (system->processors[i], verbose);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user