This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Force array coercion in c_get_string
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> So with the patch, we coerce the array to inferior memory, in order
Pedro> to read its contents back from the inferior? Is that right?
Pedro> Why not skip the detour and save the memory allocation in the inferior?
Yeah, that's weird, isn't it.
I think I was confused and thinking that value_coerce_to_target would
not bother for things already in memory.
I'll look at a different approach.
Tom