From: Tom Tromey <tom@tromey.com>
To: Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org>
Cc: Andrew Burgess <aburgess@redhat.com>
Subject: Re: [PATCH 2/3] gdb/dwarf: pass an array of values to the dwarf evaluator
Date: Fri, 01 Apr 2022 13:16:23 -0600 [thread overview]
Message-ID: <874k3cmx6g.fsf@tromey.com> (raw)
In-Reply-To: <c481d85aaf132cd7687fc9ebb683522698cc74dd.1648036751.git.aburgess@redhat.com> (Andrew Burgess via Gdb-patches's message of "Wed, 23 Mar 2022 11:59:57 +0000")
>>>>> "Andrew" == Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org> writes:
Andrew> In the couple of places where we previously passed push_initial_value
Andrew> as true (mostly this was defaulting to false), we now have to pass the
Andrew> address from the addr_stack as an item in the array view.
Andrew> In the next commit, when we want to handle passing the array rank,
Andrew> this will easily be supported too.
This looks good, though I have one minor suggestion.
Andrew> - PUSH_INITIAL_VALUE is true if the first address from ADDR_STACK, should
Andrew> - be pushed on the DWARF expression evaluation stack before evaluating the
Andrew> - expression; this is required by certain forms of DWARF expression. When
Andrew> - PUSH_INITIAL_VALUE is true ADDR_STACK can't be nullptr.
Andrew> + PUSH_VALUES is an array of values to be pushed to the expression stack
Andrew> + before evaluation starts.
I think it would be good to indicate which value is pushed first.
Tom
next prev parent reply other threads:[~2022-04-01 19:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-19 17:57 [PATCH] Support for Fortran's ASSUMED RANK Potharla, Rupesh
2022-01-21 19:07 ` Andrew Burgess
2022-01-22 7:17 ` Potharla, Rupesh
2022-01-28 7:49 ` Potharla, Rupesh
2022-02-06 13:39 ` Andrew Burgess
2022-03-16 11:54 ` Potharla, Rupesh
2022-03-23 11:58 ` Andrew Burgess
2022-03-23 11:59 ` [PATCH 0/3] Fortran assumed rank array support Andrew Burgess
2022-03-23 11:59 ` [PATCH 1/3] gdb: small simplification in dwarf2_locexpr_baton_eval Andrew Burgess
2022-04-01 19:11 ` Tom Tromey
2022-03-23 11:59 ` [PATCH 2/3] gdb/dwarf: pass an array of values to the dwarf evaluator Andrew Burgess
2022-04-01 19:16 ` Tom Tromey [this message]
2022-03-23 11:59 ` [PATCH 3/3] gdb: add support for Fortran's ASSUMED RANK arrays Andrew Burgess
2022-04-01 19:38 ` Tom Tromey
2022-04-03 16:21 ` Andrew Burgess
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=874k3cmx6g.fsf@tromey.com \
--to=tom@tromey.com \
--cc=aburgess@redhat.com \
--cc=gdb-patches@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).