public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/9645] GDB needs a --sysroot command line option
[not found] <bug-9645-4717@http.sourceware.org/bugzilla/>
@ 2020-07-14 10:23 ` jg at jguk dot org
2020-07-14 10:54 ` palves at redhat dot com
2020-07-23 13:38 ` jg at jguk dot org
2 siblings, 0 replies; 3+ messages in thread
From: jg at jguk dot org @ 2020-07-14 10:23 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=9645
Jonny Grant <jg at jguk dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jg at jguk dot org
--- Comment #4 from Jonny Grant <jg at jguk dot org> ---
I came up with similar on Ubuntu LTS looking at a core file. Looks like snaps
include allt heir own libs (I'm not really a fan of this approach DLL hell, but
anyway)
Would be great to have this feature.
$ gdb -c chrome_S6_1594713950.core
/snap/chromium/1213/usr/lib/chromium-browser/chrome
GNU gdb (Ubuntu 9.1-0ubuntu1) 9.1
<snip>
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /snap/chromium/1213/usr/lib/chromium-browser/chrome...
(No debugging symbols found in
/snap/chromium/1213/usr/lib/chromium-browser/chrome)
[New LWP 927798]
warning: .dynamic section for "/lib/x86_64-linux-gnu/libpthread.so.0" is not at
the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/lib/x86_64-linux-gnu/librt.so.1" is not at the
expected address (wrong library or version mismatch?)
warning: .dynamic section for "/lib/x86_64-linux-gnu/libsystemd.so.0" is not at
the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/lib/x86_64-linux-gnu/libmount.so.1" is not at
the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/lib/x86_64-linux-gnu/liblzma.so.5" is not at
the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/liblz4.so.1" is not at
the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/lib/x86_64-linux-gnu/libblkid.so.1" is not at
the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/lib/x86_64-linux-gnu/libgpg-error.so.0" is not
at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/lib/x86_64-linux-gnu/libuuid.so.1" is not at
the expected address (wrong library or version mismatch?)
warning: Could not load shared library symbols for
/lib/x86_64-linux-gnu/libgcrypt.so.20.
Do you need "set solib-search-path" or "set sysroot"?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/9645] GDB needs a --sysroot command line option
[not found] <bug-9645-4717@http.sourceware.org/bugzilla/>
2020-07-14 10:23 ` [Bug gdb/9645] GDB needs a --sysroot command line option jg at jguk dot org
@ 2020-07-14 10:54 ` palves at redhat dot com
2020-07-23 13:38 ` jg at jguk dot org
2 siblings, 0 replies; 3+ messages in thread
From: palves at redhat dot com @ 2020-07-14 10:54 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=9645
--- Comment #5 from Pedro Alves <palves at redhat dot com> ---
Doesn't
gdb -iex "set sysroot /whatever" -c chrome_S6_1594713950.core
/snap/chromium/1213/usr/lib/chromium-browser/chrome
work?
Is that really significally worse than:
gdb --sysroot /whatever -c chrome_S6_1594713950.core
/snap/chromium/1213/usr/lib/chromium-browser/chrome
?
You'd just be saving a few keystrokes.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/9645] GDB needs a --sysroot command line option
[not found] <bug-9645-4717@http.sourceware.org/bugzilla/>
2020-07-14 10:23 ` [Bug gdb/9645] GDB needs a --sysroot command line option jg at jguk dot org
2020-07-14 10:54 ` palves at redhat dot com
@ 2020-07-23 13:38 ` jg at jguk dot org
2 siblings, 0 replies; 3+ messages in thread
From: jg at jguk dot org @ 2020-07-23 13:38 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=9645
--- Comment #6 from Jonny Grant <jg at jguk dot org> ---
(In reply to Pedro Alves from comment #5)
> Doesn't
>
> gdb -iex "set sysroot /whatever" -c chrome_S6_1594713950.core
> /snap/chromium/1213/usr/lib/chromium-browser/chrome
>
> work?
>
> Is that really significally worse than:
>
> gdb --sysroot /whatever -c chrome_S6_1594713950.core
> /snap/chromium/1213/usr/lib/chromium-browser/chrome
>
> ?
>
> You'd just be saving a few keystrokes.
Maybe this could be documented in the GDB manual?
https://sourceware.org/gdb/current/onlinedocs/gdb/Invocation.html#Invocation
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-23 13:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-9645-4717@http.sourceware.org/bugzilla/>
2020-07-14 10:23 ` [Bug gdb/9645] GDB needs a --sysroot command line option jg at jguk dot org
2020-07-14 10:54 ` palves at redhat dot com
2020-07-23 13:38 ` jg at jguk dot org
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).