public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/9] New default sysroot "target:"
@ 2015-03-20 16:48 Gary Benson
  2015-03-20 16:48 ` [PATCH 1/9] Introduce target_fileio_fstat Gary Benson
                   ` (10 more replies)
  0 siblings, 11 replies; 31+ messages in thread
From: Gary Benson @ 2015-03-20 16:48 UTC (permalink / raw)
  To: gdb-patches

Hi all,

This series introduces a new "target:" prefix to "set sysroot".  Files
specified with a "target:" prefix will be loaded via the target: from
the remote if the target is remote, and from the local file system
otherwise.  This new prefix replaces the "remote:" prefix, and the
final patch in the series makes it the default.

The way the "target:" prefix is implemented differs somewhat from the
way the "remote:" prefix was implemented:

 - It's hooked in at a lower level.  The remote stuff looked to have
   been added piecemeal: various BFD-opening functions did checks on
   their filenames and diverted to remote_bfd_open.  There was also
   gdb_bfd_open_maybe_remote, which handled both local and remote
   cases.  The "target:" prefix is baked into gdb_bfd_open, so all
   functions that open BFDs gain support.

 - Various functions locally strip the "target:" prefix from the
   filenames they're working on if the target filesystem is the
   same as the local filesystem.  This serves two purposes:

     1) It ensures files accessed locally are handled the same
        way regardless of how they are specified.  Things like
	the shared library search algorithm in solib_find, for
	example.

     2) It avoids cluttering GDB's output with "target:" prefixes.

Built and regtested on RHEL 6.6 x86_64.

Ok to commit?

Thanks,
Gary

--
http://gbenson.net/

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2015-04-02 13:00 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-20 16:48 [PATCH 0/9] New default sysroot "target:" Gary Benson
2015-03-20 16:48 ` [PATCH 1/9] Introduce target_fileio_fstat Gary Benson
2015-04-01 12:11   ` Pedro Alves
2015-03-20 16:48 ` [PATCH 4/9] Convert "remote:" sysroots to "target:" and remove "remote:" Gary Benson
2015-04-01 12:13   ` Pedro Alves
2015-04-01 13:48     ` Gary Benson
2015-03-20 16:48 ` [PATCH 6/9] Strip "target:" prefix in solib_find if accessing local files Gary Benson
2015-04-01 12:14   ` Pedro Alves
2015-03-20 16:57 ` [PATCH 9/9] Document "target:" sysroot changes Gary Benson
2015-03-20 17:51   ` Eli Zaretskii
2015-04-01 12:15   ` Pedro Alves
2015-03-20 16:57 ` [PATCH 8/9] Make the default sysroot be "target:" Gary Benson
2015-04-01 12:15   ` Pedro Alves
2015-04-01 14:12     ` Gary Benson
2015-04-01 14:18       ` Pedro Alves
2015-03-20 17:18 ` [PATCH 7/9] Update exec_file_attach to cope with "target:" filenames Gary Benson
2015-04-01 12:14   ` Pedro Alves
2015-04-01 13:55     ` Gary Benson
2015-04-01 14:16       ` Pedro Alves
2015-04-01 15:59         ` Gary Benson
2015-03-20 17:32 ` [PATCH 2/9] Introduce target_filesystem_is_local Gary Benson
2015-04-01 12:11   ` Pedro Alves
2015-03-20 17:46 ` [PATCH 5/9] Rearrange symfile_bfd_open Gary Benson
2015-04-01 12:13   ` Pedro Alves
2015-04-01 15:50     ` Gary Benson
2015-04-01 16:03       ` Pedro Alves
2015-03-20 17:47 ` [PATCH 3/9] Make gdb_bfd_open able to open BFDs using target fileio Gary Benson
2015-04-01 12:13   ` Pedro Alves
2015-04-01 12:17 ` [PATCH 0/9] New default sysroot "target:" Pedro Alves
2015-04-02 13:00   ` Gary Benson
2015-04-01 12:22 ` [PING][PATCH " Gary Benson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).