Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: gdb@sourceware.org
Subject: Re: GDB Focus Group at the 2008 GCC Summit
Date: Thu, 26 Jun 2008 00:24:00 -0000	[thread overview]
Message-ID: <m3lk0tqbzv.fsf@fleche.redhat.com> (raw)
In-Reply-To: <m3mylc18tn.fsf@fleche.redhat.com> (Tom Tromey's message of "Mon\, 23 Jun 2008 09\:15\:32 -0600")

Tom> Our consensus was to use the function-like syntax (second example
Tom> above) and to parse the arguments as expressions.

I've pushed this to gitorious.  Let me know if you run into problems.
(I also pushed a fix for a pretty serious bug in the "python" command,
so we are not exercising this code as much as I'd like... :)

This change defines a new "internal function" type code.  A
newly-registered internal function is just a value with this type,
which is assigned to a convenience variable of the given name.

This underscores the need for the gdb.Value class to be much more
robust.  Arguments to an implementation of gdb.Function are boxed as
Value objects.  (I considered instead unboxing the 'struct value *'s
into ordinary Python values, but I thought that perhaps it would be
valuable for user functions to be able to access types, even types for
scalars.)

I think at the very least we need a way to unbox a Value.  Perhaps we
should also implement the full range of numeric operators.

Tom


  reply	other threads:[~2008-06-26  0:24 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-19 19:10 Joel Brobecker
2008-06-22  6:08 ` Thiago Jung Bauermann
2008-06-22 11:52 ` Nick Roberts
2008-06-22 13:53   ` Joel Brobecker
2008-06-23 15:17   ` Tom Tromey
2008-06-23 17:35     ` Jim Ingham
2008-06-23 21:55     ` Nick Roberts
2008-06-23 15:16 ` Tom Tromey
2008-06-26  0:24   ` Tom Tromey [this message]
2008-07-03  3:27   ` Thiago Jung Bauermann
2008-07-03  8:12     ` Andreas Schwab
2008-07-03 12:35     ` Daniel Jacobowitz
2008-07-03 14:28       ` Thiago Jung Bauermann
2008-07-04  2:33       ` Tom Tromey
2008-07-04  3:19         ` Daniel Jacobowitz
2008-06-23 21:46 ` Jason Molenda
2008-06-23 22:22   ` Nick Roberts
2008-06-24 21:18     ` Nick Roberts
2008-06-25  6:56       ` [MI] changing breakpoint location (Was: GDB Focus Group at the 2008 GCC Summit) Vladimir Prus
2008-06-23 22:09 ` GDB Focus Group at the 2008 GCC Summit Mark Kettenis
2008-06-23 22:26   ` Joel Brobecker
2008-06-24  8:35   ` Andrew STUBBS
2008-06-24  8:56     ` Andreas Schwab
2008-06-24 18:12     ` Michael Snyder
2008-06-24 18:28     ` Daniel Jacobowitz
2008-06-24 19:33     ` Dave Korn

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=m3lk0tqbzv.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb@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: 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