adb - set function call params?

Doug Toppin toppin at melpar.UUCP
Fri Aug 4 02:14:23 AEST 1989


I am using adb heavily for debugging and constantly run into
a problem. How can I set the parameters that are to be passed
to a function which is started with ':co'? For example:
char *something = "a string";
main()
{
	a();
	b(something);
}
If I want to execute 'b' by itself I can do a 'b:co', but if I want
to just skip 'a' I have to modify the code.
What I want to do is
	* start 'b' as if it had been invoked by the calling function
	  (so it will return and continue normally)
	* set the parameter to be sent to 'b'
	* not have to modify code just for debugging purposes
I am running IBM Xenix on the 286.
thanks
Doug Toppin
uunet!melpar!toppin



More information about the Comp.unix.questions mailing list