From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Buettner To: GDB patches , Stephen Smith Cc: Elena Zannoni , Andrew Cagney Subject: Re: Improved patch: shared libraries and a remote target Date: Fri, 20 Jul 2001 11:10:00 -0000 Message-id: <1010720180936.ZM7649@ocotillo.lan> References: <3B55CD58.13771694@home.com> <15189.59080.526458.935802@krustylu.cygnus.com> <3B575CCC.E4B5E759@home.com> <3B586202.2E1504ED@home.com> X-SW-Source: 2001-07/msg00514.html 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