This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]