Date: Tue, 29 Nov 2005 07:34:26 -0800 From: Arun Sharma <arun@sharma-home.net> To: freebsd-ppc@freebsd.org Cc: alex@rinet.ru Subject: Re: strace for powerpc Message-ID: <438C7502.8050401@sharma-home.net> In-Reply-To: <4389EB8A.9070200@sharma-home.net> References: <4389EB8A.9070200@sharma-home.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Arun Sharma wrote: > > I needed to apply this patch to ports/devel/strace (please review) > > http://www.sharma-home.net/people/arun/misc/strace-powerpc.patch > > and symlink freebsd/i386 to freebsd/powerpc (perhaps the directory > should be renamed?) to build. > > Couple of things that I noticed aren't working well: - when a system call fails, the return value and the error code are wrong. - I'm not sure if frame.lr is the equivalent of regs.r_eip on i386. From the powerpc manuals, it looks like SRR0 contains the address where the syscall would return to. -Arun
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?438C7502.8050401>