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 3/7] Use gdb_sysroot for main executable on attach


> From: Gary Benson <gbenson@redhat.com>
> Date: Wed,  1 Apr 2015 12:22:17 +0100
> 
> +* Paths specified by "set sysroot" will be prepended to the path of
> +  the main executable when attaching to already-running processes
> +  (local and remote) if the path of the main executable is reported
> +  to GDB as absolute by the operating system.

Please don't use "path" when you really mean "file name".

OK with that fixed.

> +shared library paths will be prefixed with @var{path}; many runtime
> +loaders store the absolute paths to the shared library in the target
> +program's memory.  When attaching to already-running processes, their
> +paths will be prefixed with @var{path} if reported to @value{GDBN} as
> +absolute by the operating system.  If you use @code{set sysroot} to
> +find executables and shared libraries, they need to be laid out in
> +the same way that they are on the target, with e.g.@: a @file{/bin},
> +@file{/lib} and @file{/usr/lib} hierarchy under @var{path}.

Same here.  (Yes, I know that the previous text also used "path").

Thanks.


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