[PATCH 1/2] sim: export cb_get_string for people to use

Tom Tromey tromey@redhat.com
Fri May 27 18:24:00 GMT 2011


>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:

Mike> The common sim code provides a useful "get_string" function which reads
Mike> a C string out of the target's memory space.  So rename and export it
Mike> for other people to use.

I don't know enough about sim to say whether callback.h is the right
place for this.  I would appreciate comments on this.

One nit:

Mike> +int cb_get_string PARAMS ((host_callback *, CB_SYSCALL *, char *, int,
Mike> +			   unsigned long));

Don't use PARAMS.

Tom



More information about the Gdb-patches mailing list