public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 04/36] Guile extension language: breakpoint.c changes
@ 2014-01-20 21:53 Doug Evans
  0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2014-01-20 21:53 UTC (permalink / raw)
  To: gdb-patches

One can examine breakpoints from Python and then from Guile,
so we need to keep a copy of both underlying objects in the breakpoint.
The Guile object (scm_bp_object) is only created on demand,
so setting aside the additional member, there is no cost if Guile
isn't used.

2014-01-20  Doug Evans  <xdje42@gmail.com>

	* breakpoint.c (condition_command): Tweak comment to include Scheme.
	* breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
	(struct breakpoint): New member scm_bp_object.

diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 8a5c4e8..4be9f23 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -29,6 +29,7 @@
 struct value;
 struct block;
 struct gdbpy_breakpoint_object;
+struct gdbscm_breakpoint_object;
 struct get_number_or_range_state;
 struct thread_info;
 struct bpstats;
@@ -739,6 +740,9 @@ struct breakpoint
        can sometimes be NULL for enabled GDBs as not all breakpoint
        types are tracked by the scripting language API.  */
     struct gdbpy_breakpoint_object *py_bp_object;
+
+    /* Same as py_bp_object, but for Scheme.  */
+    struct gdbscm_breakpoint_object *scm_bp_object;
   };
 
 /* An instance of this type is used to represent a watchpoint.  It

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-20 21:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-20 21:53 [PATCH v2 04/36] Guile extension language: breakpoint.c changes Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).