Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: Mark Kettenis <kettenis@jive.nl>
Cc: drow@false.org, cagney@gnu.org, gdb@sources.redhat.com
Subject: Re: interface to partial support for DW_OP_piece in dwarf2expr.[ch]
Date: Thu, 05 Aug 2004 14:31:00 -0000	[thread overview]
Message-ID: <vt2llgtd5h6.fsf@zenia.home> (raw)
In-Reply-To: <200408050952.i759qXFK010181@juw15.nfra.nl>


Mark Kettenis <kettenis@jive.nl> writes:
>    It seems worthwhile to me, because it will allow GDB to work
>    correctly, assignments and all, in the cases where the current value
>    structures can handle it, and it's very little work.  At some point,
>    resources will materialize to do the larger project, but what's the
>    harm in getting the best behavior we can out of the current structures
>    until then?
> 
> The harm is introducing hacks that are very hard to remove in the
> feature.  GDB is full of such hacks, and apart from Andrew nobody
> seems to actively work on trying to remove these.  We really don't
> need any more of them.

That is a good argument for not adding something.  But this will be
trivial to remove.  You'll just delete it.

Once 'struct value' can handle arbitrary piece lists, there will be no
need to try to reduce Dwarf expression results to a simpler form.
You'll instead have arch-independent code that takes any result of
Dwarf location expression evaluation and produces an assignable value.
Every case that the reduction arch method would handle will be
supported by arch-independent code instead.  So if the intermediate
step of reducing piece lists we couldn't formerly handle to locations
we could simply stops happening, there will be no visible change in
behavior.

We know the cases supported by the arch-independent code will be a
superset of the cases supported by the arch-dependent reducer.  The
latter can only support cases that can be reduced to our current
'struct value', and the arch-independent implementation will extend
that.

Again, I don't see any need for GDB to be broken until the larger
project is complete.  GDB is broken for targets today that could use
this reduction method.


  reply	other threads:[~2004-08-05 14:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-03  7:15 Jim Blandy
2004-08-04 16:53 ` Andrew Cagney
     [not found]   ` <vt2fz7292z3 dot fsf at zenia dot home>
     [not found]     ` <41112BAE dot 9080304 at gnu dot org>
     [not found]       ` <vt2hdri4mi1 dot fsf at zenia dot home>
     [not found]         ` <41115B4F dot 1080700 at gnu dot org>
     [not found]           ` <vt2pt66zgul dot fsf at zenia dot home>
2004-08-04 18:26   ` Jim Blandy
2004-08-04 18:32     ` Andrew Cagney
2004-08-04 21:35       ` Jim Blandy
2004-08-04 21:55         ` Andrew Cagney
2004-08-04 22:22           ` Jim Blandy
2004-08-04 23:04             ` Daniel Jacobowitz
2004-08-04 23:17               ` Jim Blandy
2004-08-05  9:54                 ` Mark Kettenis
2004-08-05 14:31                   ` Jim Blandy [this message]
2004-08-05 16:27                     ` Joel Brobecker
2004-08-05 18:45                       ` Jim Blandy
2004-08-05 18:47                         ` Daniel Jacobowitz
2004-08-05 19:56                           ` Andrew Cagney
2004-08-05 20:36                             ` Daniel Jacobowitz
2004-08-05 20:50                               ` Andrew Cagney
2004-08-06  9:39                     ` Eli Zaretskii
2004-08-10 19:55                       ` Jim Blandy
2004-08-11 20:31                         ` Jim Blandy
2004-08-11 20:33                           ` Daniel Jacobowitz

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=vt2llgtd5h6.fsf@zenia.home \
    --to=jimb@redhat.com \
    --cc=cagney@gnu.org \
    --cc=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=kettenis@jive.nl \
    /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