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

Tom Tromey
2019-09-30T16:23:55Z

>>>>> "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.

Tom