On 07.10.2020 13:19, Simon Marchi wrote: > On 2020-10-07 12:36 a.m., Kamil Rytarowski wrote: >> I prefer to keep all the local static functions in gdbserver citizens of >> the NetBSD gdbserver. > > I don't understand what this means. > I mean I prefer having functions as members of the class. >> Long term, shared functionality with the native >> target will go to gdb/nat and perhaps some functions like >> elf_64_file_p() could be shared by ELF targets. > > If the goal is sharing them in gdb/nat, it seems to me like it's easier > to keep it as a free function, that will be easier to share. > OK. I will abandon the idea of adding the freestanding functions to the target class, unless they interact the class members. > Simon >