This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Convenience functions (was: Re: New scope checking patch)
- From: Daniel Jacobowitz <drow at false dot org>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Rob Quill <rob dot quill at gmail dot com>, gdb-patches at sourceware dot org
- Date: Thu, 23 Oct 2008 09:41:50 -0400
- Subject: Convenience functions (was: Re: New scope checking patch)
- References: <baf6008d0801181443s5321e5d5ud1c935aa8487a549@mail.gmail.com> <m34pda7ira.fsf@codesourcery.com> <baf6008d0801300405i47646b05pdb799d32ab71e005@mail.gmail.com> <u1w7zxjid.fsf@gnu.org> <8f2776cb0801301557t2e265b62u56d6df7cbcec1c84@mail.gmail.com> <utzkuws6q.fsf@gnu.org> <baf6008d0807271645o7d03dd94rd5b3f0d08302085a@mail.gmail.com> <m38wvk77qd.fsf@fleche.redhat.com> <baf6008d0807291404x255213b7id79efc6939d92eb1@mail.gmail.com> <m3bq0g59md.fsf@fleche.redhat.com>
[Preachy interlude: splitting up patches good! posting unrelated
patches at the bottom of threads bad! Until Tom mentioned it on IRC
this week I'd completely forgotten this patch had been posted.]
On Tue, Jul 29, 2008 at 09:33:30PM -0600, Tom Tromey wrote:
> >>>>> "Rob" == Rob Quill <rob.quill@gmail.com> writes:
>
> Rob> Where can I find out about internal functions?
>
> I've appended the patch. It adds a new sort of value, which is an
> internal function. These are just like ordinary functions in an
> expression but they run inside gdb -- not the inferior. The user sees
> them as convenience variables of "internal function" type.
I looked through this patch, since I have another use for it too. It
looks fine to me, except that of course it is missing documentation
and test cases. For test cases we'd need a function to test with;
perhaps Rob's?
--
Daniel Jacobowitz
CodeSourcery