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

Tom Tromey tom@tromey.com
Mon Sep 30 16:23:00 GMT 2019


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



More information about the Gdb-patches mailing list