Type used to represent addresses in traced program

John Hughes john at Calva.COM
Tue Jul 10 14:05:46 UTC 2001


Currently strace uses the type "long" to represent addresses in the
user program.

It might be nice if this were a typedef, so it would be clearer from
the code what was going on.

E.G.

	void
	dumpiov(tcp, len, addr)
	struct tcb * tcp;
	int len;
	long addr; 

would become

	void
	dumpiov(tcp, len, addr)
	struct tcb * tcp;
	int len;
	addr_t addr;

?

-- 
John Hughes <john at Calva.COM>
 




More information about the Strace-devel mailing list