From: Tom Tromey <tromey@redhat.com>
To: Phil Muldoon <pmuldoon@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [python][patch] Fix 11036
Date: Thu, 25 Feb 2010 18:34:00 -0000 [thread overview]
Message-ID: <m31vg9rwqa.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20100225142823.GA10175@localhost.localdomain> (Phil Muldoon's message of "Thu, 25 Feb 2010 14:28:50 +0000")
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> 2010-02-25 Phil Muldoon <pmuldoon@redhat.com>
Phil> PR python/11036
Phil> * python/py-frame.c (frapy_read_var): Add block argument and logic
Phil> to cope with user provided blocks.
Phil> + argument must be an instance of gdb.Block. Returns None if GDB
Phil> + can't find the specified variable. */
This last sentence in this comment seems to be wrong.
Sometimes the function returns None, sometimes it throws an exception.
I think the function should behave more predictably somehow.
Phil> + block = block_object_to_block (block_obj);
Phil> + if (block == NULL)
Phil> + return NULL;
When block_object_to_block returns NULL, it does not set the Python
exception. That makes this code erroneous.
In other respects the code bits seem reasonable to me.
Tom
next prev parent reply other threads:[~2010-02-25 18:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 14:29 Phil Muldoon
2010-02-25 18:34 ` Tom Tromey [this message]
2010-02-26 12:38 ` Phil Muldoon
2010-02-26 14:56 ` Eli Zaretskii
2010-02-26 23:16 ` Tom Tromey
2010-02-28 22:06 ` Phil Muldoon
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=m31vg9rwqa.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pmuldoon@redhat.com \
/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