Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: ppluzhnikov@google.com (Paul Pluzhnikov)
To: gdb-patches@sourceware.org
Subject: [patch] [python] Initialize owned_by_gdb field
Date: Thu, 23 Oct 2008 17:15:00 -0000	[thread overview]
Message-ID: <20081023171450.551A83A6AFD@localhost> (raw)

Greetings,

I merged the change below from archer-tromey-python.
Committed as obvious.

Original change was:

commit f1b043e93320576a2e882a7745f581223accc8af
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Oct 20 10:59:23 2008 -0600

        * python/python-value.c (value_to_value_object): Initialize
        owned_by_gdb field.
        (valpy_new): Likewise.


--
Paul Pluzhnikov

2008-10-23  Tom Tromey  <tromey@redhat.com>

	* python/python-value.c (value_to_value_object): Initialize
	owned_by_gdb field.
	(valpy_new): Likewise.
	
diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c
index 8b47994..7d677dd 100644
--- a/gdb/python/python-value.c
+++ b/gdb/python/python-value.c
@@ -106,6 +106,7 @@ valpy_new (PyTypeObject *subtype, PyObject *args, PyObject *keywords)
     }
 
   value_obj->value = value;
+  value_obj->owned_by_gdb = 0;
   release_value (value);
   value_prepend_to_list (&values_in_python, value);
 
@@ -671,6 +672,7 @@ value_to_value_object (struct value *val)
   if (val_obj != NULL)
     {
       val_obj->value = val;
+      val_obj->owned_by_gdb = 0;
       release_value (val);
       value_prepend_to_list (&values_in_python, val);
     }


                 reply	other threads:[~2008-10-23 17:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20081023171450.551A83A6AFD@localhost \
    --to=ppluzhnikov@google.com \
    --cc=gdb-patches@sourceware.org \
    /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