This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 4/9] Convert "remote:" sysroots to "target:" and remove "remote:"


Pedro Alves wrote:
> Looks good.
> 
> On 03/20/2015 04:48 PM, Gary Benson wrote:
> > +/* Wrapper for reload_shared_libraries that replaces "remote:"
> > +   at the start of gdb_sysroot with "target:".  */
> > +
> > +static void
> > +gdb_sysroot_changed (char *ignored, int from_tty,
> > +		     struct cmd_list_element *e)
> > +{
> > +  const char *old_prefix = "remote:";
> > +  const char *new_prefix = TARGET_SYSROOT_PREFIX;
> > +
> > +  if (startswith (gdb_sysroot, old_prefix))
> > +    {
> > +      gdb_assert (strlen (old_prefix) == strlen (new_prefix));
> > +      memcpy (gdb_sysroot, new_prefix, strlen (new_prefix));
> 
> Should this output a warning (once per gdb invocation)?

Sure, I'll add one.

Cheers,
Gary

-- 
http://gbenson.net/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]