Re: [PATCH] Change some arguments to gdb::string_view instead of name+len

Christian Biesinger via gdb-patches
2019-09-30T19:33:50Z

On Mon, Sep 30, 2019 at 11:24 AM Tom Tromey <tom@tromey.com> wrote:
>
> >>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> >> Maybe safest is just to transform it to a std::string here?
>
> Pedro> Or
>
> Pedro> "%.*s", name.size (), name.data ()
>
> Yeah, even better; not sure why I didn't remember this.
>
> Also I think it has to cast to int there.

OK, fixed. Sending a new version of the patch now.

Christian