From: Pedro Alves <palves@redhat.com>
To: Keith Seitz <keiths@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Record nested types
Date: Fri, 01 Dec 2017 12:36:00 -0000 [thread overview]
Message-ID: <48b9640d-05be-d593-ecf0-649c785ee1e9@redhat.com> (raw)
In-Reply-To: <e8c180d6-5340-e3b8-5876-aa5034ecb288@redhat.com>
On 11/30/2017 11:28 PM, Keith Seitz wrote:
> On 11/28/2017 06:39 AM, Pedro Alves wrote:
>>>> W00t, lots of repetition. OOC, did you consider using the preprocessor
>>>> to build the types?
>>>
>>> Preprocessor? I used the logging feature of the test script to generate the struct. [When the log is enabled, it sends the entire struct (up to the nested type limit) to gdb.log.]
>>
>> Ah, that's even better. Could you add a comment at the top of
>> the .cc file, so that the next person that needs to change/extend
>> the file doesn't try to do it manually?
>
> In fact, I've added a proc in the .exp file to generate the source code (sans GPL), but as I usually prefer, this only runs manually to generate the (entire) source file now. I've updated the .cc with the output of this new "make_source" procedure. [I've appended the diff between previous version of .exp below.]
...
> If you'd like me to submit in full again, please let me know. Otherwise, I've appended the diff for nested-types.exp with changes necessary to get "output source file" working. I apparently broke it along the way.
It would have been nice to have seen what the new .cc looks like too.
But if the end result includes a comment in the .cc files mentioned that
this is a generated file (maybe even include a "-*- buffer-read-only: t"
marker at the top), then this is fine with me.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2017-12-01 12:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-20 18:26 Keith Seitz
[not found] ` <83a80ld5f4.fsf@gnu.org>
2017-10-20 18:47 ` Keith Seitz
2017-10-27 12:00 ` Pedro Alves
2017-10-31 19:03 ` Keith Seitz
2017-11-28 14:39 ` Pedro Alves
2017-11-30 23:28 ` Keith Seitz
2017-12-01 12:36 ` Pedro Alves [this message]
2017-12-01 18:20 ` Keith Seitz
2017-12-01 19:13 ` Pedro Alves
2017-12-07 23:03 ` Keith Seitz
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=48b9640d-05be-d593-ecf0-649c785ee1e9@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=keiths@redhat.com \
/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