Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfa] gdbserver 1/n - PBUFSIZ
@ 2001-07-19 11:36 Daniel Jacobowitz
  2001-07-19 13:14 ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2001-07-19 11:36 UTC (permalink / raw)
  To: gdb-patches

The things I've been discussing w.r.t. qRegisters and such need to be done,
but they also need to be done properly, and I certainly won't have time to
do enough testing before 5.1.  It's possible to make gdbserver work in
roughly the right way, such that it will be friendly to the new work when
that's ready, without all the intrusive changes.  I'm going to try to do
that in time for 5.1.

Here's the first bit.  PBUFSIZ is used as an array initializer, but defined
in terms of REGISTER_BYTES - which might not be a constant, and which I'd
rather hide anyway.  Later on, the design I'm hashing out for gdbserver's
register cache will make it very easy to find the maximum value of
REGISTER_BYTES, and we can make PBUFSIZ flexible again; for now, I made it
"big enough".

OK to commit?

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

2001-07-19  Daniel Jacobowitz  <drow@mvista.com>

	* gdbserver/server.h: Make PBUFSIZ a constant.

Index: server.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/server.h,v
retrieving revision 1.3
diff -u -r1.3 server.h
--- server.h	2001/03/06 08:21:44	1.3
+++ server.h	2001/07/19 18:28:05
@@ -81,6 +81,9 @@
 
 /* Buffer sizes for transferring memory, registers, etc.  Round up PBUFSIZ to
    hold all the registers, at least.  */
+/* FIXME - REGISTER_BYTES is not known at this time.
 #define	PBUFSIZ ((REGISTER_BYTES > MAXBUFBYTES (2000)) \
 		 ? (REGISTER_BYTES * 2 + 32) \
 		 : 2000)
+*/
+#define PBUFSIZ 4096


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-07-20 16:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-19 11:36 [rfa] gdbserver 1/n - PBUFSIZ Daniel Jacobowitz
2001-07-19 13:14 ` Andrew Cagney
2001-07-19 13:21   ` Daniel Jacobowitz
     [not found]     ` <3B575B8F.4050407@cygnus.com>
2001-07-19 16:12       ` Daniel Jacobowitz
2001-07-19 16:16     ` Daniel Jacobowitz
2001-07-20 16:54       ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox