Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2019 00:35:17 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351369 - head/sys/amd64/include
Message-ID:  <201908220035.x7M0ZH3R088142@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Thu Aug 22 00:35:17 2019
New Revision: 351369
URL: https://svnweb.freebsd.org/changeset/base/351369

Log:
  gdb(4):amd64: Bump MI GDB_BUFSZ for more efficient transfers
  
  A bigger buffer reduces the RTTs to transfer long messages and is otherwise
  relatively harmless, especially on systems with plenty of memory.

Modified:
  head/sys/amd64/include/gdb_machdep.h

Modified: head/sys/amd64/include/gdb_machdep.h
==============================================================================
--- head/sys/amd64/include/gdb_machdep.h	Thu Aug 22 00:34:11 2019	(r351368)
+++ head/sys/amd64/include/gdb_machdep.h	Thu Aug 22 00:35:17 2019	(r351369)
@@ -31,9 +31,10 @@
 #ifndef _MACHINE_GDB_MACHDEP_H_
 #define	_MACHINE_GDB_MACHDEP_H_
 
-#define	GDB_BUFSZ	(GDB_NREGS * 16)
+#define	GDB_BUFSZ	4096
 #define	GDB_NREGS	56
 #define	GDB_REG_PC	16
+_Static_assert(GDB_BUFSZ >= (GDB_NREGS * 16), "buffer fits 'g' regs");
 
 static __inline size_t
 gdb_cpu_regsz(int regnum)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908220035.x7M0ZH3R088142>