This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] add comments to extension-priv.h
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org, sivachandra at google dot com
- Date: Fri, 07 Feb 2014 11:57:44 -0800
- Subject: [commit] add comments to extension-priv.h
- Authentication-results: sourceware.org; auth=none
Hi.
fyi I checked this in.
2014-02-07 Doug Evans <dje@google.com>
* extension-priv.h (extension_language_script_ops): Add comment.
(extension_language_ops): Add comment.
(active_ext_lang_state): Fix typo in comment.
diff --git a/gdb/extension-priv.h b/gdb/extension-priv.h
index 25d086d..9e63a9c 100644
--- a/gdb/extension-priv.h
+++ b/gdb/extension-priv.h
@@ -86,7 +86,10 @@ struct extension_language_defn
/* The interface for loading scripts from external extension languages,
as well as GDB's own scripting language.
- All of these methods are required to be implemented. */
+ All of these methods are required to be implemented.
+
+ By convention all of these functions take a pseudo-this parameter
+ as the first argument. */
struct extension_language_script_ops
{
@@ -112,7 +115,10 @@ struct extension_language_script_ops
makes no use of these. There is no (current) intention to split
extension_language_ops up any further.
All of these methods are optional and may be NULL, except where
- otherwise indicated. */
+ otherwise indicated.
+
+ By convention all of these functions take a pseudo-this parameter
+ as the first argument. */
struct extension_language_ops
{
@@ -264,7 +270,7 @@ struct signal_handler
};
/* State necessary to restore the currently active extension language
- to is previous value. */
+ to its previous value. */
struct active_ext_lang_state
{