public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Use gdb_sysroot for main executable on attach
@ 2015-03-05 11:37 Gary Benson
  2015-03-05 11:37 ` [PATCH 2/2] Use exec_file_find to locate executable on attach (sometimes) Gary Benson
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Gary Benson @ 2015-03-05 11:37 UTC (permalink / raw)
  To: gdb-patches

Hi all,

This series modifies GDB to prefix the main executable's path with
gdb_sysroot under certain circumstances, namely:

 * The path supplied by target_pid_to_exec_file is absolute, and
 * gdb_sysroot is set and not remote.

This logic is skipped for remote gdb_sysroots because the subsequent
code does not support opening the main executable over the remote
protocol.  This is something I intend to rectify with future patches
but the ability to use gdb_sysroot like this is useful for attaching
to processes running in chroot jails and containerized environments
so I am submitting this series independently.

Built and regtested on RHEL 6.6 x86_64.

Ok to commit?

Thanks,
Gary

--
http://gbenson.net/

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

end of thread, other threads:[~2015-03-18 15:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-05 11:37 [PATCH 0/2] Use gdb_sysroot for main executable on attach Gary Benson
2015-03-05 11:37 ` [PATCH 2/2] Use exec_file_find to locate executable on attach (sometimes) Gary Benson
2015-03-05 11:37 ` [PATCH 1/2] Introduce new function exec_file_find Gary Benson
2015-03-05 12:49 ` [PATCH 0/2] Use gdb_sysroot for main executable on attach Mark Kettenis
2015-03-05 13:39   ` Gary Benson
2015-03-12 11:44 ` [PING][PATCH " Gary Benson
2015-03-18 15:22 ` [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).