Re: [PATCH v2 7/9] compile: New 'compile print'

Paul_Koning
2015-04-06T17:49:33Z

> On Apr 6, 2015, at 1:41 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>> Cc: Phil Muldoon <pmuldoon@redhat.com>
>> Date: Mon, 06 Apr 2015 19:27:16 +0200
>>
>> --- a/gdb/NEWS
>> +++ b/gdb/NEWS
>> @@ -53,6 +53,9 @@ record btrace bts
>> record bts
>> Start branch trace recording using Branch Trace Store (BTS) format.
>>
>> +compile print
>> + Evaluate expression with the compiler and print result.
>
> Perhaps "by using the compiler" or "by compiling and running it"?
> Saying "with the compiler" is slightly incorrect here, and might even
> be confusing, if some non-native speaker interprets the "with" as
> referring to "expression" and not to "evaluate”.

That’s still not fully clear. If it actually is compile-and-run (as opposed to using the compiler to evaluate a compile-time expression), where does it run? Presumably on the target. Does it only work for native gdb? Does it work with gdbserver? It would be good to state the limitations and assumptions.

Also, “the compiler” begs the question: which one, i.e., how is “the compiler” found?

paul