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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to