Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pkgs/development/tools/misc/gdb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ stdenv.mkDerivation rec {

patches = [
./debug-info-from-env.patch

# Backport musl fix
(fetchpatch {
url = "https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=2e977d9901393ea1bacbe1896af0929e968bc811";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems a fix but does this actually related to musl?

Subject: [PATCH] gdbserver/linux-low.cc: Fix a typo in ternary operator

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The new musl removes the LFS64 functions, e.g. pread64. gdb has a path for if those functions don't exist, but it had a typo that caused it not to compile, which this patch fixes.

hash = "sha256-/+UYjiOxrszJy1x8xavs63/ptNZ+ISIAQhG+i86VDpA=";
})
] ++ lib.optionals stdenv.isDarwin [
./darwin-target-match.patch
];
Expand Down