mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-03 01:30:50 +00:00
* run.c (main): Grab return value from right register.
This commit is contained in:
parent
ba0784fe48
commit
c8aea29bd6
9
sim/arm/ChangeLog
Normal file
9
sim/arm/ChangeLog
Normal file
@ -0,0 +1,9 @@
|
||||
Thu Jun 8 14:37:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
|
||||
|
||||
* run.c (main): Grab return value from right register.
|
||||
|
||||
Wed May 24 14:37:31 1995 Steve Chamberlain <sac@slash.cygnus.com>
|
||||
|
||||
* New.
|
||||
|
||||
|
@ -117,11 +117,11 @@ main (ac, av)
|
||||
sim_info (0);
|
||||
|
||||
/* Assume we left through the exit system call,
|
||||
in which case r5 has the exit code */
|
||||
in which case r0 has the exit code */
|
||||
{
|
||||
unsigned char b[4];
|
||||
sim_fetch_register (5, b);
|
||||
return b[3];
|
||||
sim_fetch_register (0, b);
|
||||
return b[0];
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user