Port-m68k archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: return CERROR result in a0 too (was: More toolchain issues)



On Mon, 5 Oct 2009, John Klos wrote:

I tried getting the 4-Oct HEAD sets from nyftp.netbsd.org, but apparently the changes weren't in there, and 5-Oct doesn't have Amiga sets...

  The 4-Oct HEAD sets has the change:

amiga$ gdb lib/libc.so.12.171
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "m68k--netbsdelf"...(no debugging symbols found)

(gdb) x/7i __cerror
0xd0534 <__cerror>:     movel %d0,%sp@-
0xd0536 <__cerror+2>:   bsrl 0x2c3d0 <__errno@plt>
0xd053c <__cerror+8>:   movel %sp@+,%a0@
0xd053e <__cerror+10>:  moveq #-1,%d0
0xd0540 <__cerror+12>:  moveq #-1,%d1
0xd0542 <__cerror+14>:  moveal %d0,%a0
0xd0544 <__cerror+16>:  rts


--
Michael L. Hitch                        mhitch%montana.edu@localhost
Computer Consultant
Information Technology Center
Montana State University        Bozeman, MT     USA


Home | Main Index | Thread Index | Old Index