You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This optionally adds gdb to the Rust build, allowing gdb to be
installed via rustup. This makes it simpler to make debuginfo
changes, as gdb updates can now be shipped immediately.
If gdb is not checked out, nothing changes.
The build is perhaps a bit chatty, as gdb's "make" and "make install"
are run each time, even if they do nothing.
rust-gdb is modified to prefer the gdb installed by rustup. This is
analogous to what was done for rust-lldb.
The built gdb requires Python 2.7 as a shared library (other
dependencies are statically linked). This is a
least-common-denominator Python that is widely available and stable;
dynamic linking is used to avoid breaking existing gdb Python code
that might load shared libraries that themselves require a dynamic
libpython. To avoid problems here, a small wrapper program is used
that attemps to dlopen libpython; with failures being reported to the
user in an intelligible way.
Two of the Linux dist builds are updated to build gdb. More could be
added if need be.
If gdb is built as part of the build, and if no other gdb was
specified in config.toml, then the just-built gdb will be used for
debuginfo testing.
Closes#34457
0 commit comments