public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-python:  * python/python-membuf.c (buffer_procs): Add compatibility cast.
@ 2009-01-07 22:06 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2009-01-07 22:06 UTC (permalink / raw)
  To: archer-commits

The branch, archer-tromey-python has been updated
       via  15f17fb6f97d073ac866b8ccae6745a06271b0e6 (commit)
       via  f97a2e509527266aa15b81135e59891dd85b4d64 (commit)
      from  cea140bfd2153ff1539f79d8f842a66422ece3c8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 15f17fb6f97d073ac866b8ccae6745a06271b0e6
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jan 7 15:06:51 2009 -0700

    	* python/python-membuf.c (buffer_procs): Add compatibility cast.

commit f97a2e509527266aa15b81135e59891dd85b4d64
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jan 7 15:04:55 2009 -0700

    	* gdb.texinfo (Python API): Normalize capitalization.
    	(Basic Python): Likewise.
    	(Auto-loading): Likewise.
    	(Functions In Python): Likewise.
    	(Objfiles In Python): Likewise.
    	(Breakpoints In Python): Likewise.
    	(Frames In Python): Likewise.  Fix typo.  Comment out bad xref.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog              |    4 ++++
 gdb/doc/ChangeLog          |   10 ++++++++++
 gdb/doc/gdb.texinfo        |   26 +++++++++++++-------------
 gdb/python/python-membuf.c |    6 ++++--
 4 files changed, 31 insertions(+), 15 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 88c022e..75195da 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-07  Tom Tromey  <tromey@redhat.com>
+
+	* python/python-membuf.c (buffer_procs): Add compatibility cast.
+
 2008-12-29  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
 	* gdb/python/python-membuf.c (gdbpy_write_memory): Remove unused
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 47f1ab9..ce28d50 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,13 @@
+2009-01-07  Tom Tromey  <tromey@redhat.com>
+
+	* gdb.texinfo (Python API): Normalize capitalization.
+	(Basic Python): Likewise.
+	(Auto-loading): Likewise.
+	(Functions In Python): Likewise.
+	(Objfiles In Python): Likewise.
+	(Breakpoints In Python): Likewise.
+	(Frames In Python): Likewise.  Fix typo.  Comment out bad xref.
+
 2008-12-29  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
 	* gdb.texinfo (Basic Python): Document gdb.read_memory and
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index b8c6b9c..eedbb56 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1,6 +1,6 @@
 \input texinfo      @c -*-texinfo-*-
 @c Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998,
-@c 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+@c 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
 @c Free Software Foundation, Inc.
 @c
 @c %**start of header
@@ -18047,8 +18047,8 @@ situation, a Python @code{KeyboardInterrupt} exception is thrown.
 * Commands In Python::          Implementing new commands in Python.
 * Parameters In Python::        Adding new @value{GDBN} parameters.
 * Functions In Python::         Writing new convenience functions.
-* Objfiles in Python::          Object files.
-* Breakpoints in Python::       Manipulating breakpoints using Python.
+* Objfiles In Python::          Object files.
+* Breakpoints In Python::       Manipulating breakpoints using Python.
 * Frames In Python::            Acessing inferior stack frames from Python.
 @end menu
 
@@ -18086,13 +18086,13 @@ this function returns @code{None}.
 @findex gdb.breakpoints
 @defun breakpoints
 Return a sequence holding all of @value{GDBN}'s breakpoints.
-@xref{Breakpoints in Python}, for more information.
+@xref{Breakpoints In Python}, for more information.
 @end defun
 
 @findex gdb.objfiles
 @defun objfiles
 Return a sequence of all the objfiles current known to @value{GDBN}.
-@xref{Objfiles in Python}.
+@xref{Objfiles In Python}.
 @end defun
 
 @findex gdb.parameter
@@ -18228,7 +18228,7 @@ traceback.
 @node Auto-loading
 @subsubsection Auto-loading
 
-When a new object file (@pxref{Objfiles in Python}) is read (for
+When a new object file (@pxref{Objfiles In Python}) is read (for
 example, due to the @code{file} command, or because the inferior has
 loaded a shared library), @value{GDBN} will look for a file named by
 adding @samp{-gdb.py} to the object file's real name (the name formed
@@ -19204,8 +19204,8 @@ registration of the function with @value{GDBN}.  Depending on how the
 Python code is read into @value{GDBN}, you may need to import the
 @code{gdb} module explicitly.
 
-@node Objfiles in Python
-@subsubsection Objfiles in Python
+@node Objfiles In Python
+@subsubsection Objfiles In Python
 
 @cindex objfiles in python
 @cindex python objfiles
@@ -19231,7 +19231,7 @@ expressions (strings) to pretty-printing objects.  @xref{Pretty
 Printing}, for more information.
 @end defivar
 
-@node Breakpoints in Python
+@node Breakpoints In Python
 @subsubsection Manipulating breakpoints using Python
 
 @cindex breakpoints in python
@@ -19307,14 +19307,14 @@ separated by newlines.  If there are no commands, this attribute is
 @code{None}.  This attribute is not writable.
 @end defivar
 
-@node Frames in Python
+@node Frames In Python
 @subsubsection Acessing inferior stack frames from Python.
 
 @cindex frames in python
 @tindex gdb.Frame
 @tindex Frame
 When the debugged program stops, @value{GDBN} is able to analyse its call
-stack (see @xref{Frames,,Stack frames}).  The @code{gdb.Frame} class
+stack (@pxref{Frames,,Stack frames}).  The @code{gdb.Frame} class
 represents a frame in the stack.  You can get a tuple containing all the
 frames in the stack with the @code{gdb.frames} function, the newest
 frame with the @code{gdb.newest_frame} function, and the selected frame
@@ -19360,11 +19360,11 @@ Return the frame immediately older (outer) to this frame.
 @end defmethod
 
 @defmethod Frame newer
-Return the frame immetidaely newer (inner) to this frame.
+Return the frame immediately newer (inner) to this frame.
 @end defmethod
 
 @defmethod Frame find_sal
-Return the frame's symtab and line object (see @xref{Symtab_and_line,, Symtab and line}).
+Return the frame's symtab and line object. @c (see @xref{Symtab_and_line,, Symtab and line}).
 @end defmethod
 
 @defmethod Frame read_var_value @var{symbol}
diff --git a/gdb/python/python-membuf.c b/gdb/python/python-membuf.c
index f4a500f..1b57da7 100644
--- a/gdb/python/python-membuf.c
+++ b/gdb/python/python-membuf.c
@@ -1,6 +1,6 @@
 /* Python interface to the inferior memory.
 
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -172,7 +172,9 @@ static PyBufferProcs buffer_procs = {
   get_read_buffer,
   get_write_buffer,
   get_seg_count,
-  get_char_buffer
+  /* The cast here works around a difference between Python 2.4 and
+     Python 2.5.  */
+  (getcharbufferproc) get_char_buffer
 };
 
 static PyTypeObject membuf_object_type = {


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-07 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-07 22:06 [SCM] archer-tromey-python: * python/python-membuf.c (buffer_procs): Add compatibility cast tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).