Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Andrew Cagney <cagney@gnu.org>, Eli Zaretskii <eliz@elta.co.il>
Cc: gdb-patches@sources.redhat.com, kettenis@chello.nl
Subject: Re: [patch/rfc] Separate gdbarch_data_register_pre_init
Date: Fri, 19 Mar 2004 00:09:00 -0000	[thread overview]
Message-ID: <40561DA0.9040106@gnu.org> (raw)
In-Reply-To: <40561C75.5000908@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1858 bytes --]

[hopefully with the correct patch]

 >>> Date: Mon, 15 Mar 2004 12:21:07 -0500
 >>> From: Andrew Cagney <cagney@gnu.org>
 >>>
 >>> How does the doco part of this change look?
 >
 >
 >
 > Looks okay to me, except for the following small gotchas:
 >
 >
 >>> ! @var{post_init} is used to obtain an initial value for a
 >>> ! per-architecture data-pointer @emph{after}.  Since @var{post_init} is
 >>> ! always called after architecture creation, it both receives the fully
 >>> ! initialized architecture and is free to call modules that use
 >>> ! per-architecture data (care should be taken to avoid cycles in the
 >>> ! call graph).
 >>> ! @end deftypefun
 >
 >
 >
 > This sounds like important notes, but they are worded too vaguely,
 > IMHO.  A question that popped up in my mind when I read that was: what
 > cycles should I avoid in the call graph, and how?
 >
 > Perhaps an example would help drive these points home.


I've tried to make the problem more explict.

 >>> ! current value of the per-architecture data-pointer.  If the data
 >>> ! pointer is @code{NULL}, it is first initialize by calling the
 >
 >
 >                             ^^^^^^^^^^^^^^^^^^^^^^
 > A typo: it should be "initialized".


yes.

 >>> ! The examples below assuming the following definitions:
 >
 >
 >                        ^^^^^^^^
 > "The examples ... assume ..."


yes

 >>> ! A module can extend the architecture vector, adding additional
 >>> ! per-architecture attributes, using the @var{pre_init} method.  These
 >>> ! attribute being set by the architecture's @var{gdbarch_init} method
 >>> ! during architecture creation.
 >
 >
 >
 > "These attributes are set by the architecture's @var{gdbarch_init}
 > method ...".
 >
 > Btw, what ``attributes'' are those?  The text doesn't explain that.


I've re-worded it so that it doesn't use "attribute".

ok?
Andrew



[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 8645 bytes --]

2004-03-15  Andrew Cagney  <cagney@redhat.com>
 
 	* gdbint.texinfo (Coding): Update section on gdbarch_data,
 	describe pre_init and post_init.
 
Index: gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.190
diff -c -r1.190 gdbint.texinfo
*** gdbint.texinfo	26 Feb 2004 20:52:08 -0000	1.190
--- gdbint.texinfo	15 Mar 2004 21:11:49 -0000
***************
*** 4872,5004 ****
  @cindex multi-arch data
  @cindex data-pointer, per-architecture/per-module
  
! The multi-arch framework includes a mechanism for adding module specific
! per-architecture data-pointers to the @code{struct gdbarch} architecture
! object.
! 
! A module registers one or more per-architecture data-pointers using the
! function @code{register_gdbarch_data}:
! 
! @deftypefun struct gdbarch_data *register_gdbarch_data (gdbarch_data_init_ftype *@var{init})
! 
! The @var{init} function is used to obtain an initial value for a
! per-architecture data-pointer.  The function is called, after the
! architecture has been created, when the data-pointer is still
! uninitialized (@code{NULL}) and its value has been requested via a call
! to @code{gdbarch_data}.  A data-pointer can also be initialize
! explicitly using @code{set_gdbarch_data}.
! 
! Any memory required by the @var{init} function should be allocated
! using @code{GDBARCH_OBSTACK_ZALLOC}.  That memory is automatically
! released when the corresponding architecture is deleted.
! 
! The function @code{register_gdbarch_data} returns a @code{struct
! gdbarch_data} that is used to identify the data-pointer that was added
! to the module.
! 
  @end deftypefun
  
! A typical module has an @code{init} function of the form:
! 
! @smallexample
! struct nozel @{ int total; @};
! static struct gdbarch_data *nozel_handle;
! static void *
! nozel_init (struct gdbarch *gdbarch)
! @{
!   struct nozel *data = GDBARCH_OBSTACK_ZALLOC (gdbarch, struct nozel);
!   @dots{}
!   return data;
! @}
! @end smallexample
! 
! Since uninitialized (@code{NULL}) data-pointers are initialized
! on-demand, an @code{init} function is free to call other modules that
! use data-pointers.  Those modules data-pointers will be initialized as
! needed.  Care should be taken to ensure that the @code{init} call graph
! does not contain cycles.
! 
! The data-pointer is registered with the call:
  
! @smallexample
! void
! _initialize_nozel (void)
! @{
!   nozel_handle = register_gdbarch_data (nozel_init);
! @dots{}
! @end smallexample
  
  The per-architecture data-pointer is accessed using the function:
  
  @deftypefun void *gdbarch_data (struct gdbarch *@var{gdbarch}, struct gdbarch_data *@var{data_handle})
  Given the architecture @var{arch} and module data handle
! @var{data_handle} (returned by @code{register_gdbarch_data}, this
! function returns the current value of the per-architecture data-pointer.
  @end deftypefun
  
! The non-@code{NULL} data-pointer returned by @code{gdbarch_data} should
! be saved in a local variable and then used directly:
  
  @smallexample
! int
! nozel_total (struct gdbarch *gdbarch)
! @{
!   int total;
!   struct nozel *data = gdbarch_data (gdbarch, nozel_handle);
!   @dots{}
!   return total;
! @}
  @end smallexample
  
! It is also possible to directly initialize the data-pointer using:
! 
! @deftypefun void set_gdbarch_data (struct gdbarch *@var{gdbarch}, struct gdbarch_data *@var{handle}, void *@var{pointer})
! Set the still @code{NULL} data-pointer corresponding to @var{handle}
! to the non-@code{NULL} @var{pointer} value.
! @end deftypefun
! 
! This function is used by modules that require a mechanism for explicitly
! setting the per-architecture data-pointer during architecture creation:
  
  @smallexample
! /* Always return a non-NULL nozel.  */
! static struct nozel *
! gdbarch_nozel (struct gdbarch *gdbarch)
  @{
!   struct nozel *nozel = gdbarch_data (gdbarch, nozel_handle);
!   if (nozel == NULL)
!     @{
!       nozel = nozel_init (gdbarch);
!       set_gdbarch_data (gdbarch, nozel_handle, nozel);
!     @}
!   return nozel;
  @}
  @end smallexample
  
  @smallexample
- /* Called during architecture creation.  */
  extern void
  set_gdbarch_nozel (struct gdbarch *gdbarch, int total)
  @{
!   struct nozel *data = gdbarch_nozel (gdbarch);
!   @dots{}
!   data->total = total;
  @}
  @end smallexample
  
  @smallexample
! void
! _initialize_nozel (void)
  @{
!   nozel_handle = register_gdbarch_data (nozel_init);
!   @dots{}
  @end smallexample
  
! @noindent
! Note that an @code{init} function still needs to be registered.  It is
! used to initialize the data-pointer when the architecture creation phase
! fail to set an initial value.
! 
  
  @section Wrapping Output Lines
  @cindex line wrap in output
--- 4872,4974 ----
  @cindex multi-arch data
  @cindex data-pointer, per-architecture/per-module
  
! The multi-arch framework includes a mechanism for adding module
! specific per-architecture data-pointers to the @code{struct gdbarch}
! architecture object.
! 
! A module registers one or more per-architecture data-pointers using:
! 
! @deftypefun struct gdbarch_data *gdbarch_data_register_pre_init (gdbarch_data_pre_init_ftype *@var{pre_init})
! @var{pre_init} is used to, on-demand, allocate an initial value for a
! per-architecture data-pointer using the architecture's obstack (passed
! in as a parameter).  Since @var{pre_init} can be called during
! architecture creation, it is not parameterized with the architecture.
! and must not call modules that use per-architecture data.
  @end deftypefun
  
! @deftypefun struct gdbarch_data *gdbarch_data_register_post_init (gdbarch_data_post_init_ftype *@var{post_init})
! @var{post_init} is used to obtain an initial value for a
! per-architecture data-pointer @emph{after}.  Since @var{post_init} is
! always called after architecture creation, it both receives the fully
! initialized architecture and is free to call modules that use
! per-architecture data (care needs to be taken to ensure that those
! other modules do not try to call back to this module as that will
! create in cycles in the initialization call graph).
! @end deftypefun
  
! These functions return a @code{struct gdbarch_data} that is used to
! identify the per-architecture data-pointer added for that module.
  
  The per-architecture data-pointer is accessed using the function:
  
  @deftypefun void *gdbarch_data (struct gdbarch *@var{gdbarch}, struct gdbarch_data *@var{data_handle})
  Given the architecture @var{arch} and module data handle
! @var{data_handle} (returned by @code{gdbarch_data_register_pre_init}
! or @code{gdbarch_data_register_post_init}), this function returns the
! current value of the per-architecture data-pointer.  If the data
! pointer is @code{NULL}, it is first initialized by calling the
! corresponding @var{pre_init} or @var{post_init} method.
  @end deftypefun
  
! The examples below assume the following definitions:
  
  @smallexample
! struct nozel @{ int total; @};
! static struct gdbarch_data *nozel_handle;
  @end smallexample
  
! A module can extend the architecture vector, adding additional
! per-architecture data, using the @var{pre_init} method.  The module's
! per-architecture data is then initialized during architecture
! creation.
! 
! In the below, the module's per-architecture @emph{nozel} is added.  An
! architecture can specify its nozel by calling @code{set_gdbarch_nozel}
! from @code{gdbarch_init}.
  
  @smallexample
! static void *
! nozel_pre_init (struct obstack *obstack)
  @{
!   struct nozel *data = OBSTACK_ZALLOC (obstack, struct nozel);
!   return data;
  @}
  @end smallexample
  
  @smallexample
  extern void
  set_gdbarch_nozel (struct gdbarch *gdbarch, int total)
  @{
!   struct nozel *data = gdbarch_data (gdbarch, nozel_handle);
!   data->total = nozel;
  @}
  @end smallexample
  
+ A module can on-demand create architecture dependant data structures
+ using @code{post_init}.
+ 
+ In the below, the nozel's total is computed on-demand by
+ @code{nozel_post_init} using information obtained from the
+ architecture.
+ 
  @smallexample
! static void *
! nozel_post_init (struct gdbarch *gdbarch)
  @{
!   struct nozel *data = GDBARCH_OBSTACK_ZALLOC (gdbarch, struct nozel);
!   nozel->total = gdbarch@dots{} (gdbarch);
!   return data;
! @}
  @end smallexample
  
! @smallexample
! extern int
! nozel_total (struct gdbarch *gdbarch)
! @{
!   struct nozel *data = gdbarch_data (gdbarch, nozel_handle);
!   return data->total;
! @}
! @end smallexample
  
  @section Wrapping Output Lines
  @cindex line wrap in output

WARNING: multiple messages have this Message-ID
From: Andrew Cagney <cagney@gnu.org>
To: Andrew Cagney <cagney@gnu.org>, Eli Zaretskii <eliz@elta.co.il>
Cc: gdb-patches@sources.redhat.com, kettenis@chello.nl
Subject: Re: [patch/rfc] Separate gdbarch_data_register_pre_init
Date: Mon, 15 Mar 2004 21:18:00 -0000	[thread overview]
Message-ID: <40561DA0.9040106@gnu.org> (raw)
Message-ID: <20040315211800.VJ3Ek8PTAAc3IYvuHmXPZbg7sH_XBq9SbQTBqDsnkzc@z> (raw)
In-Reply-To: <40561C75.5000908@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1858 bytes --]

[hopefully with the correct patch]

 >>> Date: Mon, 15 Mar 2004 12:21:07 -0500
 >>> From: Andrew Cagney <cagney@gnu.org>
 >>>
 >>> How does the doco part of this change look?
 >
 >
 >
 > Looks okay to me, except for the following small gotchas:
 >
 >
 >>> ! @var{post_init} is used to obtain an initial value for a
 >>> ! per-architecture data-pointer @emph{after}.  Since @var{post_init} is
 >>> ! always called after architecture creation, it both receives the fully
 >>> ! initialized architecture and is free to call modules that use
 >>> ! per-architecture data (care should be taken to avoid cycles in the
 >>> ! call graph).
 >>> ! @end deftypefun
 >
 >
 >
 > This sounds like important notes, but they are worded too vaguely,
 > IMHO.  A question that popped up in my mind when I read that was: what
 > cycles should I avoid in the call graph, and how?
 >
 > Perhaps an example would help drive these points home.


I've tried to make the problem more explict.

 >>> ! current value of the per-architecture data-pointer.  If the data
 >>> ! pointer is @code{NULL}, it is first initialize by calling the
 >
 >
 >                             ^^^^^^^^^^^^^^^^^^^^^^
 > A typo: it should be "initialized".


yes.

 >>> ! The examples below assuming the following definitions:
 >
 >
 >                        ^^^^^^^^
 > "The examples ... assume ..."


yes

 >>> ! A module can extend the architecture vector, adding additional
 >>> ! per-architecture attributes, using the @var{pre_init} method.  These
 >>> ! attribute being set by the architecture's @var{gdbarch_init} method
 >>> ! during architecture creation.
 >
 >
 >
 > "These attributes are set by the architecture's @var{gdbarch_init}
 > method ...".
 >
 > Btw, what ``attributes'' are those?  The text doesn't explain that.


I've re-worded it so that it doesn't use "attribute".

ok?
Andrew



[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 8645 bytes --]

2004-03-15  Andrew Cagney  <cagney@redhat.com>
 
 	* gdbint.texinfo (Coding): Update section on gdbarch_data,
 	describe pre_init and post_init.
 
Index: gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.190
diff -c -r1.190 gdbint.texinfo
*** gdbint.texinfo	26 Feb 2004 20:52:08 -0000	1.190
--- gdbint.texinfo	15 Mar 2004 21:11:49 -0000
***************
*** 4872,5004 ****
  @cindex multi-arch data
  @cindex data-pointer, per-architecture/per-module
  
! The multi-arch framework includes a mechanism for adding module specific
! per-architecture data-pointers to the @code{struct gdbarch} architecture
! object.
! 
! A module registers one or more per-architecture data-pointers using the
! function @code{register_gdbarch_data}:
! 
! @deftypefun struct gdbarch_data *register_gdbarch_data (gdbarch_data_init_ftype *@var{init})
! 
! The @var{init} function is used to obtain an initial value for a
! per-architecture data-pointer.  The function is called, after the
! architecture has been created, when the data-pointer is still
! uninitialized (@code{NULL}) and its value has been requested via a call
! to @code{gdbarch_data}.  A data-pointer can also be initialize
! explicitly using @code{set_gdbarch_data}.
! 
! Any memory required by the @var{init} function should be allocated
! using @code{GDBARCH_OBSTACK_ZALLOC}.  That memory is automatically
! released when the corresponding architecture is deleted.
! 
! The function @code{register_gdbarch_data} returns a @code{struct
! gdbarch_data} that is used to identify the data-pointer that was added
! to the module.
! 
  @end deftypefun
  
! A typical module has an @code{init} function of the form:
! 
! @smallexample
! struct nozel @{ int total; @};
! static struct gdbarch_data *nozel_handle;
! static void *
! nozel_init (struct gdbarch *gdbarch)
! @{
!   struct nozel *data = GDBARCH_OBSTACK_ZALLOC (gdbarch, struct nozel);
!   @dots{}
!   return data;
! @}
! @end smallexample
! 
! Since uninitialized (@code{NULL}) data-pointers are initialized
! on-demand, an @code{init} function is free to call other modules that
! use data-pointers.  Those modules data-pointers will be initialized as
! needed.  Care should be taken to ensure that the @code{init} call graph
! does not contain cycles.
! 
! The data-pointer is registered with the call:
  
! @smallexample
! void
! _initialize_nozel (void)
! @{
!   nozel_handle = register_gdbarch_data (nozel_init);
! @dots{}
! @end smallexample
  
  The per-architecture data-pointer is accessed using the function:
  
  @deftypefun void *gdbarch_data (struct gdbarch *@var{gdbarch}, struct gdbarch_data *@var{data_handle})
  Given the architecture @var{arch} and module data handle
! @var{data_handle} (returned by @code{register_gdbarch_data}, this
! function returns the current value of the per-architecture data-pointer.
  @end deftypefun
  
! The non-@code{NULL} data-pointer returned by @code{gdbarch_data} should
! be saved in a local variable and then used directly:
  
  @smallexample
! int
! nozel_total (struct gdbarch *gdbarch)
! @{
!   int total;
!   struct nozel *data = gdbarch_data (gdbarch, nozel_handle);
!   @dots{}
!   return total;
! @}
  @end smallexample
  
! It is also possible to directly initialize the data-pointer using:
! 
! @deftypefun void set_gdbarch_data (struct gdbarch *@var{gdbarch}, struct gdbarch_data *@var{handle}, void *@var{pointer})
! Set the still @code{NULL} data-pointer corresponding to @var{handle}
! to the non-@code{NULL} @var{pointer} value.
! @end deftypefun
! 
! This function is used by modules that require a mechanism for explicitly
! setting the per-architecture data-pointer during architecture creation:
  
  @smallexample
! /* Always return a non-NULL nozel.  */
! static struct nozel *
! gdbarch_nozel (struct gdbarch *gdbarch)
  @{
!   struct nozel *nozel = gdbarch_data (gdbarch, nozel_handle);
!   if (nozel == NULL)
!     @{
!       nozel = nozel_init (gdbarch);
!       set_gdbarch_data (gdbarch, nozel_handle, nozel);
!     @}
!   return nozel;
  @}
  @end smallexample
  
  @smallexample
- /* Called during architecture creation.  */
  extern void
  set_gdbarch_nozel (struct gdbarch *gdbarch, int total)
  @{
!   struct nozel *data = gdbarch_nozel (gdbarch);
!   @dots{}
!   data->total = total;
  @}
  @end smallexample
  
  @smallexample
! void
! _initialize_nozel (void)
  @{
!   nozel_handle = register_gdbarch_data (nozel_init);
!   @dots{}
  @end smallexample
  
! @noindent
! Note that an @code{init} function still needs to be registered.  It is
! used to initialize the data-pointer when the architecture creation phase
! fail to set an initial value.
! 
  
  @section Wrapping Output Lines
  @cindex line wrap in output
--- 4872,4974 ----
  @cindex multi-arch data
  @cindex data-pointer, per-architecture/per-module
  
! The multi-arch framework includes a mechanism for adding module
! specific per-architecture data-pointers to the @code{struct gdbarch}
! architecture object.
! 
! A module registers one or more per-architecture data-pointers using:
! 
! @deftypefun struct gdbarch_data *gdbarch_data_register_pre_init (gdbarch_data_pre_init_ftype *@var{pre_init})
! @var{pre_init} is used to, on-demand, allocate an initial value for a
! per-architecture data-pointer using the architecture's obstack (passed
! in as a parameter).  Since @var{pre_init} can be called during
! architecture creation, it is not parameterized with the architecture.
! and must not call modules that use per-architecture data.
  @end deftypefun
  
! @deftypefun struct gdbarch_data *gdbarch_data_register_post_init (gdbarch_data_post_init_ftype *@var{post_init})
! @var{post_init} is used to obtain an initial value for a
! per-architecture data-pointer @emph{after}.  Since @var{post_init} is
! always called after architecture creation, it both receives the fully
! initialized architecture and is free to call modules that use
! per-architecture data (care needs to be taken to ensure that those
! other modules do not try to call back to this module as that will
! create in cycles in the initialization call graph).
! @end deftypefun
  
! These functions return a @code{struct gdbarch_data} that is used to
! identify the per-architecture data-pointer added for that module.
  
  The per-architecture data-pointer is accessed using the function:
  
  @deftypefun void *gdbarch_data (struct gdbarch *@var{gdbarch}, struct gdbarch_data *@var{data_handle})
  Given the architecture @var{arch} and module data handle
! @var{data_handle} (returned by @code{gdbarch_data_register_pre_init}
! or @code{gdbarch_data_register_post_init}), this function returns the
! current value of the per-architecture data-pointer.  If the data
! pointer is @code{NULL}, it is first initialized by calling the
! corresponding @var{pre_init} or @var{post_init} method.
  @end deftypefun
  
! The examples below assume the following definitions:
  
  @smallexample
! struct nozel @{ int total; @};
! static struct gdbarch_data *nozel_handle;
  @end smallexample
  
! A module can extend the architecture vector, adding additional
! per-architecture data, using the @var{pre_init} method.  The module's
! per-architecture data is then initialized during architecture
! creation.
! 
! In the below, the module's per-architecture @emph{nozel} is added.  An
! architecture can specify its nozel by calling @code{set_gdbarch_nozel}
! from @code{gdbarch_init}.
  
  @smallexample
! static void *
! nozel_pre_init (struct obstack *obstack)
  @{
!   struct nozel *data = OBSTACK_ZALLOC (obstack, struct nozel);
!   return data;
  @}
  @end smallexample
  
  @smallexample
  extern void
  set_gdbarch_nozel (struct gdbarch *gdbarch, int total)
  @{
!   struct nozel *data = gdbarch_data (gdbarch, nozel_handle);
!   data->total = nozel;
  @}
  @end smallexample
  
+ A module can on-demand create architecture dependant data structures
+ using @code{post_init}.
+ 
+ In the below, the nozel's total is computed on-demand by
+ @code{nozel_post_init} using information obtained from the
+ architecture.
+ 
  @smallexample
! static void *
! nozel_post_init (struct gdbarch *gdbarch)
  @{
!   struct nozel *data = GDBARCH_OBSTACK_ZALLOC (gdbarch, struct nozel);
!   nozel->total = gdbarch@dots{} (gdbarch);
!   return data;
! @}
  @end smallexample
  
! @smallexample
! extern int
! nozel_total (struct gdbarch *gdbarch)
! @{
!   struct nozel *data = gdbarch_data (gdbarch, nozel_handle);
!   return data->total;
! @}
! @end smallexample
  
  @section Wrapping Output Lines
  @cindex line wrap in output

  parent reply	other threads:[~2004-03-15 21:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-08 19:28 Andrew Cagney
2004-03-08 22:41 ` Mark Kettenis
2004-03-19  0:09   ` Andrew Cagney
2004-03-08 23:51     ` Andrew Cagney
2004-03-19  0:09   ` Mark Kettenis
2004-03-15 20:44 ` Andrew Cagney
2004-03-19  0:09   ` Andrew Cagney
2004-03-19  0:09 ` Andrew Cagney
2004-03-19  0:09 ` Andrew Cagney
2004-03-15 17:21   ` Andrew Cagney
2004-03-15 19:55   ` Eli Zaretskii
2004-03-15 21:13     ` Andrew Cagney
2004-03-17 11:30       ` Eli Zaretskii
2004-03-19  0:09         ` Andrew Cagney
2004-03-19  0:09         ` Eli Zaretskii
2004-03-19  0:09       ` Andrew Cagney [this message]
2004-03-15 21:18         ` Andrew Cagney
2004-03-19  0:09       ` Andrew Cagney
2004-03-19  0:09     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40561DA0.9040106@gnu.org \
    --to=cagney@gnu.org \
    --cc=eliz@elta.co.il \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kettenis@chello.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox