public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: ppluzhnikov@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-tromey-python: 2008-11-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
Date: Mon, 03 Nov 2008 22:17:00 -0000	[thread overview]
Message-ID: <20081103221747.17150.qmail@sourceware.org> (raw)

The branch, archer-tromey-python has been updated
       via  be661861f7b40daae7718ca354c8f0e4c9903691 (commit)
      from  216d6dbe872c72303a3d24b1538e44560b003df3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit be661861f7b40daae7718ca354c8f0e4c9903691
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date:   Mon Nov 3 14:17:27 2008 -0800

    2008-11-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
    
    	* python/python.c (find_pretty_printer): Fix gcc-4.3.1 warnings.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog       |    4 ++++
 gdb/python/python.c |    7 ++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 51e62a8..5533820 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+	* python/python.c (find_pretty_printer): Fix gcc-4.3.1 warnings.
+	
 2008-11-03  Tom Tromey  <tromey@redhat.com>
 
 	* python/python-value.c (valpy_getitem): Convert field name to
diff --git a/gdb/python/python.c b/gdb/python/python.c
index af50c4c..5f6a269 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -684,7 +684,7 @@ search_pp_dictionary (PyObject *dict, char *type_name)
 static PyObject *
 find_pretty_printer (struct type *type, PyObject **dictp, int is_mi)
 {
-  PyObject *dict, *found;
+  PyObject *dict, *found = NULL;
   char *type_name = NULL;
   char *dict_name;
   struct objfile *obj;
@@ -701,10 +701,7 @@ find_pretty_printer (struct type *type, PyObject **dictp, int is_mi)
       type_name = get_type (type);
     }
   if (except.reason < 0)
-    {
-      Py_DECREF (dict);
-      return NULL;
-    }
+    return NULL;
 
   /* Look at the pretty-printer dictionary for each objfile.  */
   ALL_OBJFILES (obj)


hooks/post-receive
--
Repository for Project Archer.


             reply	other threads:[~2008-11-03 22:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03 22:17 ppluzhnikov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-11-03 22:30 ppluzhnikov
2008-11-03 18:34 ppluzhnikov

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=20081103221747.17150.qmail@sourceware.org \
    --to=ppluzhnikov@sourceware.org \
    --cc=archer-commits@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).