[Ltrace-devel] [PATCH] Fix ppc64 ABI support

Olaf Hering olh at suse.de
Wed Feb 27 13:48:34 UTC 2008


On Mon, Feb 25, Luis Machado wrote:

> +++ trunk/sysdeps/linux-gnu/ppc/regs.c	2008-02-25 09:04:49.000000000 -0800

> +void *get_instruction (struct process *proc, void *addr)
> +{
> +	long data;
> +
> +	data = ptrace (PTRACE_PEEKTEXT, proc->pid, addr,0);
> +
> +	if (proc->mask_32bit)
> +	    data = (data >> 32) & 0x00000000ffffffff;
> +
> +	return data;

regs.c:58: warning: return makes pointer from integer without a cast

get_instruction() is currently unused.



More information about the Ltrace-devel mailing list