mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
Updating gdb to 7.9.
I can remove the patch of edit-signals. It seems to work without it. I tested the change over release-14.12.
This commit is contained in:
parent
4dd1b8cc22
commit
745b1ce04a
|
@ -8,7 +8,7 @@
|
|||
|
||||
let
|
||||
|
||||
basename = "gdb-7.8.2";
|
||||
basename = "gdb-7.9";
|
||||
|
||||
# Whether (cross-)building for GNU/Hurd. This is an approximation since
|
||||
# having `stdenv ? cross' doesn't tell us if we're building `crossDrv' and
|
||||
|
@ -27,10 +27,10 @@ stdenv.mkDerivation rec {
|
|||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/gdb/${basename}.tar.xz";
|
||||
sha256 = "11a4fj1vpsny71kz7xqqbqk3kgzbs5cfjj3z9gm0hpvxfkam8nb0";
|
||||
sha256 = "14l3hhsy7fmpn2dk7ivc67gnbjdhkxlq90kxijpzfa35l58mcccv";
|
||||
};
|
||||
|
||||
patches = [ ./edit-signals.patch ];
|
||||
# patches = [ ./edit-signals.patch ];
|
||||
|
||||
# I think python is not a native input, but I leave it
|
||||
# here while I will not need it cross building
|
||||
|
@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
postInstall =
|
||||
'' # Remove Info files already provided by Binutils and other packages.
|
||||
rm -v $out/share/info/{standards,configure,bfd}.info
|
||||
rm -v $out/share/info/bfd.info
|
||||
'';
|
||||
|
||||
# TODO: Investigate & fix the test failures.
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
Patch adapted from
|
||||
https://www.sourceware.org/ml/gdb-patches/2012-08/msg00439.html
|
||||
|
||||
Without it, spawning a terminal 'vim' from gdb 'edit' cmd, makes
|
||||
all gdb grazy.
|
||||
|
||||
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
|
||||
index 7ea0fec..be5455c 100644
|
||||
--- a/gdb/tui/tui-win.c
|
||||
+++ b/gdb/tui/tui-win.c
|
||||
@@ -831,11 +831,12 @@ void
|
||||
tui_initialize_win (void)
|
||||
{
|
||||
#ifdef SIGWINCH
|
||||
-#ifdef HAVE_SIGACTION
|
||||
+#if defined (HAVE_SIGACTION) && defined (SA_RESTART)
|
||||
struct sigaction old_winch;
|
||||
|
||||
- memset (&old_winch, 0, sizeof (old_winch));
|
||||
+ sigemptyset (&old_winch.sa_mask);
|
||||
old_winch.sa_handler = &tui_sigwinch_handler;
|
||||
+ old_winch.sa_flags = SA_RESTART;
|
||||
sigaction (SIGWINCH, &old_winch, NULL);
|
||||
#else
|
||||
signal (SIGWINCH, &tui_sigwinch_handler);
|
Loading…
Reference in a new issue