This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfa:doc] Make gdbarch_data() on-demand
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 3 Jun 2002 14:24:18 -0400
- Subject: Re: [patch/rfa:doc] Make gdbarch_data() on-demand
- References: <3CF92376.8070801@cygnus.com>
On Sat, Jun 01, 2002 at 03:41:42PM -0400, Andrew Cagney wrote:
> Index: gdbarch.sh
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbarch.sh,v
> retrieving revision 1.140
> diff -u -r1.140 gdbarch.sh
> --- gdbarch.sh 29 May 2002 16:39:55 -0000 1.140
> +++ gdbarch.sh 1 Jun 2002 19:13:37 -0000
> @@ -1082,20 +1082,15 @@
> for the reserved data-pointer is returned. That identifer should
> be saved in a local static variable.
>
> - The per-architecture data-pointer can be initialized in one of two
> - ways: The value can be set explicitly using a call to
> - set_gdbarch_data(); the value can be set implicitly using the value
> - returned by a non-NULL INIT() callback. INIT(), when non-NULL is
> - called after the basic architecture vector has been created.
> + The per-architecture data-pointer is either initialized explicitly
> + (set_gdbarch_data()) or implicitly (by INIT() via a call to
> + gdbarch_data()). FREE() is called to delete either an existing
> + data-poitner overridden by set_gdbarch_data() or when the
> + architecture object is being deleted.
data-pointer, not data-poitner. Other than that, looks good.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer