This is the mail archive of the gdb@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]

Re: Async function calls


On Thu, Mar 20, 2008 at 03:21:44PM +0300, Vladimir Prus wrote:
> Will it help? Say, we do:
> 
>         print foo()
> 
> then to do it async way, we have to do the function call, and then
> 'print' should get back to action and print the value. Right now,
> print_command has no continuations, so we'll have to add it.
> And likewise, it seems that every command that can call a function
> will have to be converted to use continuation.

You're right, it wouldn't help unless we did this all the way from
the top: centralized parsing for commands before we dispatched to
the command functions, that knew what was an expression.  And I don't
think that's a practical idea.

-- 
Daniel Jacobowitz
CodeSourcery


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