public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-python: gdb Date: Tue, 24 Mar 2009 17:27:00 -0000 [thread overview] Message-ID: <20090324172724.19169.qmail@sourceware.org> (raw) The branch, archer-tromey-python has been updated via cb7eaa7343fa9fa04f8deee2471b85be2b44fe13 (commit) from cb27ee6e1ada4fd6992dd51da402baef10ad88e3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit cb7eaa7343fa9fa04f8deee2471b85be2b44fe13 Author: Tom Tromey <tromey@redhat.com> Date: Tue Mar 24 11:26:59 2009 -0600 gdb * python/python-type.c (convert_field): Handle a NULL type. gdb/doc * gdb.texinfo (Types From Inferior): Update. ----------------------------------------------------------------------- Summary of changes: gdb/doc/gdb.texinfo | 3 ++- gdb/python/python-type.c | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) First 500 lines of diff: diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 7c01732..af3d12b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -18522,7 +18522,8 @@ non-zero value, which is the size of the field in bits. Otherwise, this will be zero; in this case the field's size is given by its type. @item type -The type of the field. +The type of the field. This is usually an instance of @code{Type}, +but it can be @code{None} in some situations. @end table @end defmethod diff --git a/gdb/python/python-type.c b/gdb/python/python-type.c index d336456..2a54556 100644 --- a/gdb/python/python-type.c +++ b/gdb/python/python-type.c @@ -175,7 +175,14 @@ convert_field (struct type *type, int field) if (PyObject_SetAttrString (result, "bitsize", arg) < 0) goto failarg; - arg = type_to_type_object (TYPE_FIELD_TYPE (type, field)); + /* A field can have a NULL type in some situations. */ + if (TYPE_FIELD_TYPE (type, field) == NULL) + { + arg = Py_None; + Py_INCREF (arg); + } + else + arg = type_to_type_object (TYPE_FIELD_TYPE (type, field)); if (!arg) goto fail; if (PyObject_SetAttrString (result, "type", arg) < 0) hooks/post-receive -- Repository for Project Archer.
next reply other threads:[~2009-03-24 17:27 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-03-24 17:27 tromey [this message] -- strict thread matches above, loose matches on Subject: below -- 2009-04-07 20:28 tromey 2009-02-05 19:56 tromey 2008-12-17 23:10 tromey 2008-12-15 22:38 tromey 2008-12-13 0:37 tromey 2008-12-12 23:54 tromey 2008-12-10 15:28 tromey 2008-12-09 0:33 tromey 2008-12-02 21:29 tromey 2008-12-01 19:10 tromey 2008-11-25 21:17 tromey 2008-11-21 18:25 tromey 2008-11-18 18:52 tromey 2008-11-18 15:54 tromey 2008-11-17 15:45 tromey 2008-11-16 22:18 tromey 2008-11-16 16:56 tromey 2008-11-12 1:54 tromey 2008-11-10 14:15 tromey 2008-11-06 21:11 tromey 2008-11-06 19:58 tromey 2008-10-23 22:27 tromey 2008-10-23 21:28 tromey 2008-10-22 18:18 tromey 2008-10-21 18:32 tromey
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=20090324172724.19169.qmail@sourceware.org \ --to=tromey@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: linkBe 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).