This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Convenience functions (was: Re: New scope checking patch)


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]