This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Improved patch: shared libraries and a remote target
On Jul 20, 9:53am, Stephen Smith wrote:
> Unless someone can point me at how to add the command and then link
> it to the appropriate variable, the switch is my best try (sorry
> Elena).
Stephen,
Look in _initialize_remote() where a good number of commands are added.
Off the top of my head, I think it might look something like this...
add_show_from_set
(add_set_cmd ("remote-shared-libs", no_class,
var_boolean, (char *) &remote_shared_libs,
"Set whether remote target supports qLibraries packet\n",
&setlist),
&showlist);
Or, perhaps it ought to be one of the packet config commands?...
add_packet_config_cmd (&remote_protocol_qLibraries,
"qLibraries", "shared-library-lookup",
set_remote_protocol_qLibraries_packet_cmd,
show_remote_protocol_qLibraries_packet_cmd,
&remote_set_cmdlist, &remote_show_cmdlist,
0);
I'm not sure which is preferable in this case, but this should provide
you with a starting point...
Kevin