summaryrefslogtreecommitdiff
path: root/devel/cgdb/patches/patch-lib_util_fork__util.cpp
blob: caf38c35a70968f0d924802062fc5dfd2fca58d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-lib_util_fork__util.cpp,v 1.1 2020/10/14 05:32:16 kamil Exp $

Make CGDB work again with GDB 8.3 and newer.
https://github.com/cgdb/cgdb/commit/00e26a33579e4b3e553d26fdbe26eb98b4b062ac

--- lib/util/fork_util.cpp.orig	2019-05-17 23:22:33.000000000 +0000
+++ lib/util/fork_util.cpp
@@ -188,7 +188,7 @@ int invoke_debugger(const char *path,
     const char *const ANNOTATE_TWO = "--annotate=2";
     const char *const GDBMI = "-i=mi2";
     const char *const SET_ANNOTATE_TWO = "set annotate 2";
-    const char *const SET_HEIGHT_ZERO = "set height 0";
+    const char *const SET_PAGINATION_OFF = "set pagination off";
     char **local_argv;
     int i, j = 0, extra = 8;
     int malloc_size = argc + extra;
@@ -213,7 +213,7 @@ int invoke_debugger(const char *path,
     local_argv[j++] = cgdb_strdup(SET_ANNOTATE_TWO);
 
     local_argv[j++] = cgdb_strdup(EX);
-    local_argv[j++] = cgdb_strdup(SET_HEIGHT_ZERO);
+    local_argv[j++] = cgdb_strdup(SET_PAGINATION_OFF);
 
     /* add the init file that the user did not type */
     if (choice == 0)