Would it be reasonable to add an execute_command wrapper to wrapper.c? I'm thinking of a situation where one has added a different scripting language to gdb and one wants to execute a gdb command.